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

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

上级 429523b4
......@@ -364,9 +364,10 @@ export default {
opinion: "审批意见",
formitem: "文本框(空值)",
formitem1: "数值框(>)",
formitem2: "密码框(=)",
formitem2: "密码框(<>)",
formitem3: "多行输入框(=)",
formitem4: "进步器(<)",
formitem5: "评分器(=)",
ibizcustomerid: "客户标识",
ibizorderid: "订单标识",
},
......
......@@ -363,9 +363,10 @@ export default {
opinion: "审批意见",
formitem: "文本框(空值)",
formitem1: "数值框(>)",
formitem2: "密码框(=)",
formitem2: "密码框(<>)",
formitem3: "多行输入框(=)",
formitem4: "进步器(<)",
formitem5: "评分器(=)",
ibizcustomerid: "客户标识",
ibizorderid: "订单标识",
},
......
......@@ -174,6 +174,13 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem5.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='formitem5' :itemRules="this.rules().formitem5" class='' :caption="$t('entities.ibizorder.uipart_0011_form.details.formitem5')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem5.error" :isEmptyCaption="false" labelPos="LEFT">
<app-rate name='formitem5' :value="this.data.formitem5" @change="($event)=>{this.data.formitem5 = $event} " :disabled="detailsModel.formitem5.disabled" style=""></app-rate>
</app-form-item>
</i-col>
</row>
......@@ -579,6 +586,7 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
formitem2: null,
formitem3: null,
formitem4: null,
formitem5: null,
ibizcustomerid: null,
ibizorderid: null,
ibizorder:null,
......@@ -669,8 +677,8 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
{ required: this.detailsModel.formitem1.required, type: 'string', message: '数值框(>) 值不能为空', trigger: 'blur' },
],
formitem2: [
{ required: this.detailsModel.formitem2.required, type: 'string', message: '密码框(=) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem2.required, type: 'string', message: '密码框(=) 值不能为空', trigger: 'blur' },
{ required: this.detailsModel.formitem2.required, type: 'string', message: '密码框(<>) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem2.required, type: 'string', message: '密码框(<>) 值不能为空', trigger: 'blur' },
],
formitem3: [
{ required: this.detailsModel.formitem3.required, type: 'string', message: '多行输入框(=) 值不能为空', trigger: 'change' },
......@@ -680,6 +688,10 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
{ required: this.detailsModel.formitem4.required, type: 'string', message: '进步器(<) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem4.required, type: 'string', message: '进步器(<) 值不能为空', trigger: 'blur' },
],
formitem5: [
{ required: this.detailsModel.formitem5.required, type: 'string', message: '评分器(=) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem5.required, type: 'string', message: '评分器(=) 值不能为空', trigger: 'blur' },
],
}
}
......@@ -819,11 +831,13 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
,
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 })
formitem2: new FormItemModel({ caption: '密码框(<>)', detailType: 'FORMITEM', name: 'formitem2', visible: false, 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 })
formitem4: new FormItemModel({ caption: '进步器(<)', detailType: 'FORMITEM', name: 'formitem4', visible: false, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem5: new FormItemModel({ caption: '评分器(=)', detailType: 'FORMITEM', name: 'formitem5', 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 })
,
......@@ -1071,6 +1085,18 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'formitem4', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem5 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UIPART_0011Base
*/
@Watch('data.formitem5')
onFormitem5Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem5', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizcustomerid 值
*
......@@ -1193,7 +1219,24 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.detailsModel.formitem1.setVisible(ret);
}
if (Object.is(name, '') || Object.is(name, 'formitem2')) {
let ret = false;
const _formitem2 = this.data.formitem2;
if (this.$verify.testCond(_formitem2, 'NOTEQ', '123')) {
ret = true;
}
this.detailsModel.formitem2.setVisible(ret);
}
if (Object.is(name, '') || Object.is(name, 'formitem4')) {
let ret = false;
const _formitem4 = this.data.formitem4;
if (this.$verify.testCond(_formitem4, 'LT', '100')) {
ret = true;
}
this.detailsModel.formitem4.setVisible(ret);
}
......@@ -2291,6 +2334,9 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
if (this.data.hasOwnProperty('formitem4')) {
this.data['formitem4'] = '90';
}
if (this.data.hasOwnProperty('formitem5')) {
this.data['formitem5'] = '3';
}
}
/**
......
......@@ -110,6 +110,10 @@ export default class UIPART_0011Model {
name: 'formitem4',
dataType:'FORMITEM',
},
{
name: 'formitem5',
dataType:'FORMITEM',
},
{
name: 'ibizcustomerid',
prop: 'ibizcustomerid',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册