提交 429523b4 编写于 作者: ibizdev's avatar ibizdev

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

上级 35afe119
......@@ -362,10 +362,11 @@ export default {
ordertype: "订单类型",
orderstate: "订单状态",
opinion: "审批意见",
formitem: "文本框(=)",
formitem: "文本框(空值)",
formitem1: "数值框(>)",
formitem2: "密码框(=)",
formitem3: "多行输入框(=)",
formitem4: "进步器(<)",
ibizcustomerid: "客户标识",
ibizorderid: "订单标识",
},
......
......@@ -361,10 +361,11 @@ export default {
ordertype: "订单类型",
orderstate: "订单状态",
opinion: "审批意见",
formitem: "文本框(=)",
formitem: "文本框(空值)",
formitem1: "数值框(>)",
formitem2: "密码框(=)",
formitem3: "多行输入框(=)",
formitem4: "进步器(<)",
ibizcustomerid: "客户标识",
ibizorderid: "订单标识",
},
......
......@@ -167,6 +167,13 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem4.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='formitem4' :itemRules="this.rules().formitem4" class='' :caption="$t('entities.ibizorder.uipart_0011_form.details.formitem4')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem4.error" :isEmptyCaption="false" labelPos="LEFT">
<app-stepper name='formitem4' :value="this.data.formitem4" @change="onFormItemValueChange" :disabled="detailsModel.formitem4.disabled" style=""></app-stepper>
</app-form-item>
</i-col>
</row>
......@@ -571,6 +578,7 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
formitem1: null,
formitem2: null,
formitem3: null,
formitem4: null,
ibizcustomerid: null,
ibizorderid: null,
ibizorder:null,
......@@ -653,8 +661,8 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
{ required: this.detailsModel.opinion.required, type: 'string', message: '审批意见 值不能为空', trigger: 'blur' },
],
formitem: [
{ required: this.detailsModel.formitem.required, type: 'string', message: '文本框(=) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem.required, type: 'string', message: '文本框(=) 值不能为空', trigger: 'blur' },
{ required: this.detailsModel.formitem.required, type: 'string', message: '文本框(空值) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem.required, type: 'string', message: '文本框(空值) 值不能为空', trigger: 'blur' },
],
formitem1: [
{ required: this.detailsModel.formitem1.required, type: 'string', message: '数值框(>) 值不能为空', trigger: 'change' },
......@@ -668,6 +676,10 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
{ required: this.detailsModel.formitem3.required, type: 'string', message: '多行输入框(=) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem3.required, type: 'string', message: '多行输入框(=) 值不能为空', trigger: 'blur' },
],
formitem4: [
{ required: this.detailsModel.formitem4.required, type: 'string', message: '进步器(<) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem4.required, type: 'string', message: '进步器(<) 值不能为空', trigger: 'blur' },
],
}
}
......@@ -803,13 +815,15 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
,
opinion: new FormItemModel({ caption: '审批意见', detailType: 'FORMITEM', name: 'opinion', visible: false, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 0 })
,
formitem: new FormItemModel({ caption: '文本框(=)', detailType: 'FORMITEM', name: 'formitem', visible: false, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
formitem: new FormItemModel({ caption: '文本框(空值)', detailType: 'FORMITEM', name: 'formitem', visible: false, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem1: new FormItemModel({ caption: '数值框(>)', detailType: 'FORMITEM', name: 'formitem1', visible: false, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem2: new FormItemModel({ caption: '密码框(=)', detailType: 'FORMITEM', name: 'formitem2', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem3: new FormItemModel({ caption: '多行输入框(=)', detailType: 'FORMITEM', name: 'formitem3', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem4: new FormItemModel({ caption: '进步器(<)', detailType: 'FORMITEM', name: 'formitem4', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ibizcustomerid: new FormItemModel({ caption: '客户标识', detailType: 'FORMITEM', name: 'ibizcustomerid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......@@ -1045,6 +1059,18 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'formitem3', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem4 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UIPART_0011Base
*/
@Watch('data.formitem4')
onFormitem4Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem4', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizcustomerid 值
*
......@@ -1152,7 +1178,7 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
if (Object.is(name, '') || Object.is(name, 'formitem')) {
let ret = false;
const _formitem = this.data.formitem;
if (this.$verify.testCond(_formitem, 'EQ', '111')) {
if (this.$verify.testCond(_formitem, 'ISNULL', '')) {
ret = true;
}
this.detailsModel.formitem.setVisible(ret);
......@@ -1171,6 +1197,7 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
}
/**
......@@ -2252,9 +2279,6 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
if (this.data.hasOwnProperty('ordertime')) {
this.data['ordertime'] = this.$util.dateFormat(new Date());
}
if (this.data.hasOwnProperty('formitem')) {
this.data['formitem'] = '111';
}
if (this.data.hasOwnProperty('formitem1')) {
this.data['formitem1'] = '111';
}
......@@ -2264,6 +2288,9 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
if (this.data.hasOwnProperty('formitem3')) {
this.data['formitem3'] = '显示';
}
if (this.data.hasOwnProperty('formitem4')) {
this.data['formitem4'] = '90';
}
}
/**
......
......@@ -106,6 +106,10 @@ export default class UIPART_0011Model {
name: 'formitem3',
dataType:'FORMITEM',
},
{
name: 'formitem4',
dataType:'FORMITEM',
},
{
name: 'ibizcustomerid',
prop: 'ibizcustomerid',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册