提交 1f90b78c 编写于 作者: ibizdev's avatar ibizdev

Mosher 发布系统代码 [后台服务,演示应用]

上级 ce5698e0
...@@ -80,6 +80,10 @@ export default { ...@@ -80,6 +80,10 @@ export default {
quantity: "数量", quantity: "数量",
amount: "小计", amount: "小计",
ibizorderid: "订单标识", ibizorderid: "订单标识",
ibizorderdetailname: "订单明细名称",
unit: "单位",
unitprice: "单价",
ibizordername: "订单名称",
ibizuniproductid: "统一产品标识", ibizuniproductid: "统一产品标识",
ibizorderdetailid: "订单明细标识", ibizorderdetailid: "订单明细标识",
}, },
......
...@@ -79,6 +79,10 @@ export default { ...@@ -79,6 +79,10 @@ export default {
quantity: "数量", quantity: "数量",
amount: "小计", amount: "小计",
ibizorderid: "订单标识", ibizorderid: "订单标识",
ibizorderdetailname: "订单明细名称",
unit: "单位",
unitprice: "单价",
ibizordername: "订单名称",
ibizuniproductid: "统一产品标识", ibizuniproductid: "统一产品标识",
ibizorderdetailid: "订单明细标识", ibizorderdetailid: "订单明细标识",
}, },
......
...@@ -937,7 +937,28 @@ export default class IBIZOrderDetailSGridView9Base extends Vue { ...@@ -937,7 +937,28 @@ export default class IBIZOrderDetailSGridView9Base extends Vue {
public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) { public newdata(args: any[],fullargs?:any[], params?: any, $event?: any, xData?: any) {
let localContext:any = null; let localContext:any = null;
let localViewParam:any =null; let localViewParam:any =null;
this.$Notice.warning({ title: '错误', desc: '未指定关系视图' }); const data: any = {};
if(args[0].srfsourcekey){
data.srfsourcekey = args[0].srfsourcekey;
}
let tempContext = JSON.parse(JSON.stringify(this.context));
delete tempContext.ibizorderdetail;
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'seditview9', parameterName: 'seditview9' },
];
const _this: any = this;
const openIndexViewTab = (data: any) => {
const _data: any = { w: (new Date().getTime()) };
Object.assign(_data, data);
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, _data);
this.$router.push(routePath);
}
openIndexViewTab(data);
} }
...@@ -961,7 +982,25 @@ export default class IBIZOrderDetailSGridView9Base extends Vue { ...@@ -961,7 +982,25 @@ export default class IBIZOrderDetailSGridView9Base extends Vue {
} }
let localContext:any = null; let localContext:any = null;
let localViewParam:any =null; let localViewParam:any =null;
this.$Notice.warning({ title: '错误', desc: '未指定关系视图' }); const data: any = {};
let tempContext = JSON.parse(JSON.stringify(this.context));
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'ibizorderdetails', parameterName: 'ibizorderdetail' },
{ pathName: 'seditview9', parameterName: 'seditview9' },
];
const _this: any = this;
if(fullargs && fullargs.copymode){
Object.assign(data,{copymode:true});
}
const openIndexViewTab = (data: any) => {
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, data);
this.$router.push(routePath);
}
openIndexViewTab(data);
} }
......
...@@ -621,6 +621,7 @@ export const viewstate: any = { ...@@ -621,6 +621,7 @@ export const viewstate: any = {
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'17770b42972334457baccfe91828bd46',
'ec6cfd868c34a036250a813b24068519', 'ec6cfd868c34a036250a813b24068519',
], ],
}, },
...@@ -1207,6 +1208,7 @@ export const viewstate: any = { ...@@ -1207,6 +1208,7 @@ export const viewstate: any = {
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'55c0b817ceaaa2894e76b510d94da24c',
], ],
}, },
{ {
......
...@@ -56,6 +56,68 @@ ...@@ -56,6 +56,68 @@
</app-form-item> </app-form-item>
</i-col>
<i-col v-show="detailsModel.ibizorderdetailname.visible" :style="{}" :sm="{ span: 4, offset: 0 }" :md="{ span: 4, offset: 0 }" :lg="{ span: 4, offset: 0 }">
<app-form-item name='ibizorderdetailname' :itemRules="this.rules().ibizorderdetailname" class='' :caption="$t('entities.ibizorderdetail.ui_0007_form.details.ibizorderdetailname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ibizorderdetailname.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.ibizorderdetailname"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.ibizorderdetailname.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.unit.visible" :style="{}" :sm="{ span: 4, offset: 0 }" :md="{ span: 4, offset: 0 }" :lg="{ span: 4, offset: 0 }">
<app-form-item name='unit' :itemRules="this.rules().unit" class='' :caption="$t('entities.ibizorderdetail.ui_0007_form.details.unit')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.unit.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='unit' :value="data.unit" dataType="PICKUPDATA" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.unitprice.visible" :style="{}" :sm="{ span: 4, offset: 0 }" :md="{ span: 4, offset: 0 }" :lg="{ span: 4, offset: 0 }">
<app-form-item name='unitprice' :itemRules="this.rules().unitprice" class='' :caption="$t('entities.ibizorderdetail.ui_0007_form.details.unitprice')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.unitprice.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='unitprice' :value="data.unitprice" dataType="PICKUPDATA" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.ibizordername.visible" :style="{}" :sm="{ span: 4, offset: 0 }" :md="{ span: 4, offset: 0 }" :lg="{ span: 4, offset: 0 }">
<app-form-item name='ibizordername' :itemRules="this.rules().ibizordername" class='' :caption="$t('entities.ibizorderdetail.ui_0007_form.details.ibizordername')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ibizordername.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.ibizordername.disabled"
name='ibizordername'
deMajorField='ibizordername'
deKeyField='ibizorder'
:service="service"
:acParams="{ serviceName: 'IBIZOrderService', interfaceName: 'FetchDefault'}"
valueitem='ibizorderid'
:value="data.ibizordername"
editortype=""
:pickupView="{ viewname: 'ibizorder-pickup-view', title: $t('entities.ibizorder.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizorders', parameterName: 'ibizorder' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
</app-form-item>
</i-col> </i-col>
</row> </row>
...@@ -461,6 +523,10 @@ export default class UI_0007Base extends Vue implements ControlInterface { ...@@ -461,6 +523,10 @@ export default class UI_0007Base extends Vue implements ControlInterface {
quantity: null, quantity: null,
amount: null, amount: null,
ibizorderid: null, ibizorderid: null,
ibizorderdetailname: null,
unit: null,
unitprice: null,
ibizordername: null,
ibizuniproductid: null, ibizuniproductid: null,
ibizorderdetailid: null, ibizorderdetailid: null,
ibizorderdetail:null, ibizorderdetail:null,
...@@ -504,7 +570,7 @@ export default class UI_0007Base extends Vue implements ControlInterface { ...@@ -504,7 +570,7 @@ export default class UI_0007Base extends Vue implements ControlInterface {
* @type {string} * @type {string}
* @memberof UI_0007Base * @memberof UI_0007Base
*/ */
public majorMessageField: string = ""; public majorMessageField: string = "ibizorderdetailname";
/** /**
* 值规则 * 值规则
...@@ -526,6 +592,22 @@ export default class UI_0007Base extends Vue implements ControlInterface { ...@@ -526,6 +592,22 @@ export default class UI_0007Base extends Vue implements ControlInterface {
{ required: this.detailsModel.amount.required, type: 'number', message: '小计 值不能为空', trigger: 'change' }, { required: this.detailsModel.amount.required, type: 'number', message: '小计 值不能为空', trigger: 'change' },
{ required: this.detailsModel.amount.required, type: 'number', message: '小计 值不能为空', trigger: 'blur' }, { required: this.detailsModel.amount.required, type: 'number', message: '小计 值不能为空', trigger: 'blur' },
], ],
ibizorderdetailname: [
{ required: this.detailsModel.ibizorderdetailname.required, type: 'string', message: '订单明细名称 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ibizorderdetailname.required, type: 'string', message: '订单明细名称 值不能为空', trigger: 'blur' },
],
unit: [
{ required: this.detailsModel.unit.required, type: 'string', message: '单位 值不能为空', trigger: 'change' },
{ required: this.detailsModel.unit.required, type: 'string', message: '单位 值不能为空', trigger: 'blur' },
],
unitprice: [
{ required: this.detailsModel.unitprice.required, type: 'number', message: '单价 值不能为空', trigger: 'change' },
{ required: this.detailsModel.unitprice.required, type: 'number', message: '单价 值不能为空', trigger: 'blur' },
],
ibizordername: [
{ required: this.detailsModel.ibizordername.required, type: 'string', message: '订单名称 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ibizordername.required, type: 'string', message: '订单名称 值不能为空', trigger: 'blur' },
],
} }
} }
...@@ -658,6 +740,14 @@ export default class UI_0007Base extends Vue implements ControlInterface { ...@@ -658,6 +740,14 @@ export default class UI_0007Base extends Vue implements ControlInterface {
amount: new FormItemModel({ caption: '小计', detailType: 'FORMITEM', name: 'amount', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) amount: new FormItemModel({ caption: '小计', detailType: 'FORMITEM', name: 'amount', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
ibizorderid: new FormItemModel({ caption: '订单标识', detailType: 'FORMITEM', name: 'ibizorderid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) ibizorderid: new FormItemModel({ caption: '订单标识', detailType: 'FORMITEM', name: 'ibizorderid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ibizorderdetailname: new FormItemModel({ caption: '订单明细名称', detailType: 'FORMITEM', name: 'ibizorderdetailname', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
unit: new FormItemModel({ caption: '单位', detailType: 'FORMITEM', name: 'unit', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
unitprice: new FormItemModel({ caption: '单价', detailType: 'FORMITEM', name: 'unitprice', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ibizordername: new FormItemModel({ caption: '订单名称', detailType: 'FORMITEM', name: 'ibizordername', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
ibizuniproductid: new FormItemModel({ caption: '统一产品标识', detailType: 'FORMITEM', name: 'ibizuniproductid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) ibizuniproductid: new FormItemModel({ caption: '统一产品标识', detailType: 'FORMITEM', name: 'ibizuniproductid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
...@@ -809,6 +899,54 @@ export default class UI_0007Base extends Vue implements ControlInterface { ...@@ -809,6 +899,54 @@ export default class UI_0007Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'ibizorderid', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'ibizorderid', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 ibizorderdetailname 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UI_0007Base
*/
@Watch('data.ibizorderdetailname')
onIbizorderdetailnameChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'ibizorderdetailname', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 unit 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UI_0007Base
*/
@Watch('data.unit')
onUnitChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'unit', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 unitprice 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UI_0007Base
*/
@Watch('data.unitprice')
onUnitpriceChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'unitprice', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizordername 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UI_0007Base
*/
@Watch('data.ibizordername')
onIbizordernameChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'ibizordername', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 ibizuniproductid 值 * 监控表单属性 ibizuniproductid 值
* *
...@@ -905,6 +1043,10 @@ export default class UI_0007Base extends Vue implements ControlInterface { ...@@ -905,6 +1043,10 @@ export default class UI_0007Base extends Vue implements ControlInterface {
} }
......
...@@ -75,6 +75,26 @@ export default class UI_0007Model { ...@@ -75,6 +75,26 @@ export default class UI_0007Model {
prop: 'ibizorderid', prop: 'ibizorderid',
dataType: 'PICKUP', dataType: 'PICKUP',
}, },
{
name: 'ibizorderdetailname',
prop: 'ibizorderdetailname',
dataType: 'TEXT',
},
{
name: 'unit',
prop: 'unit',
dataType: 'PICKUPDATA',
},
{
name: 'unitprice',
prop: 'unitprice',
dataType: 'PICKUPDATA',
},
{
name: 'ibizordername',
prop: 'ibizordername',
dataType: 'PICKUPTEXT',
},
{ {
name: 'ibizuniproductid', name: 'ibizuniproductid',
prop: 'ibizuniproductid', prop: 'ibizuniproductid',
......
...@@ -3,6 +3,7 @@ import ControlService from '@/widgets/control-service'; ...@@ -3,6 +3,7 @@ import ControlService from '@/widgets/control-service';
import IBIZOrderDetailService from '@/service/ibizorder-detail/ibizorder-detail-service'; import IBIZOrderDetailService from '@/service/ibizorder-detail/ibizorder-detail-service';
import UI_0007Model from './ui-0007-form-model'; import UI_0007Model from './ui-0007-form-model';
import IBIZUNIProductService from '@/service/ibizuniproduct/ibizuniproduct-service'; import IBIZUNIProductService from '@/service/ibizuniproduct/ibizuniproduct-service';
import IBIZOrderService from '@/service/ibizorder/ibizorder-service';
/** /**
...@@ -50,6 +51,14 @@ export default class UI_0007Service extends ControlService { ...@@ -50,6 +51,14 @@ export default class UI_0007Service extends ControlService {
*/ */
public ibizuniproductService: IBIZUNIProductService = new IBIZUNIProductService(); public ibizuniproductService: IBIZUNIProductService = new IBIZUNIProductService();
/**
* 订单服务对象
*
* @type {IBIZOrderService}
* @memberof UI_0007Service
*/
public ibizorderService: IBIZOrderService = new IBIZOrderService();
/** /**
* 远端数据 * 远端数据
* *
...@@ -102,6 +111,9 @@ export default class UI_0007Service extends ControlService { ...@@ -102,6 +111,9 @@ export default class UI_0007Service extends ControlService {
if (Object.is(serviceName, 'IBIZUNIProductService') && Object.is(interfaceName, 'FetchDefault')) { if (Object.is(serviceName, 'IBIZUNIProductService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.ibizuniproductService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'ibizuniproductid', 'ibizuniproduct'); return this.doItems(this.ibizuniproductService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'ibizuniproductid', 'ibizuniproduct');
} }
if (Object.is(serviceName, 'IBIZOrderService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.ibizorderService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'ibizorderid', 'ibizorder');
}
return Promise.reject([]) return Promise.reject([])
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册