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

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

上级 58fa9bdb
...@@ -365,11 +365,12 @@ export default { ...@@ -365,11 +365,12 @@ export default {
formitem: "文本框(nil)", formitem: "文本框(nil)",
formitem1: "数值框(<>)", formitem1: "数值框(<>)",
formitem2: "密码框(=)", formitem2: "密码框(=)",
formitem3: "多行输入框(=)", formitem3: "多行输入框(包含)",
formitem4: "进步器(<)", formitem4: "进步器(<)",
formitem5: "评分器(=)", formitem5: "评分器(=)",
formitem6: "滑动输入条(>=)", formitem6: "滑动输入条(>=)",
formitem7: "下拉列表框(notnil)", formitem7: "下拉列表框(notnil)",
formitem8: "开关(=)",
ibizcustomerid: "客户标识", ibizcustomerid: "客户标识",
ibizorderid: "订单标识", ibizorderid: "订单标识",
}, },
......
...@@ -364,11 +364,12 @@ export default { ...@@ -364,11 +364,12 @@ export default {
formitem: "文本框(nil)", formitem: "文本框(nil)",
formitem1: "数值框(<>)", formitem1: "数值框(<>)",
formitem2: "密码框(=)", formitem2: "密码框(=)",
formitem3: "多行输入框(=)", formitem3: "多行输入框(包含)",
formitem4: "进步器(<)", formitem4: "进步器(<)",
formitem5: "评分器(=)", formitem5: "评分器(=)",
formitem6: "滑动输入条(>=)", formitem6: "滑动输入条(>=)",
formitem7: "下拉列表框(notnil)", formitem7: "下拉列表框(notnil)",
formitem8: "开关(=)",
ibizcustomerid: "客户标识", ibizcustomerid: "客户标识",
ibizorderid: "订单标识", ibizorderid: "订单标识",
}, },
......
...@@ -206,6 +206,13 @@ ...@@ -206,6 +206,13 @@
</app-form-item> </app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem8.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='formitem8' :itemRules="this.rules().formitem8" class='' :caption="$t('entities.ibizorder.uipart_0011_form.details.formitem8')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem8.error" :isEmptyCaption="false" labelPos="LEFT">
<app-switch name='formitem8' :value="this.data.formitem8" @change="($event)=>{this.data.formitem8 = $event} " :disabled="detailsModel.formitem8.disabled" style=""></app-switch>
</app-form-item>
</i-col> </i-col>
</row> </row>
...@@ -614,6 +621,7 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -614,6 +621,7 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
formitem5: null, formitem5: null,
formitem6: null, formitem6: null,
formitem7: null, formitem7: null,
formitem8: null,
ibizcustomerid: null, ibizcustomerid: null,
ibizorderid: null, ibizorderid: null,
ibizorder:null, ibizorder:null,
...@@ -708,8 +716,8 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -708,8 +716,8 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
{ required: this.detailsModel.formitem2.required, type: 'string', message: '密码框(=) 值不能为空', trigger: 'blur' }, { required: this.detailsModel.formitem2.required, type: 'string', message: '密码框(=) 值不能为空', trigger: 'blur' },
], ],
formitem3: [ formitem3: [
{ required: this.detailsModel.formitem3.required, type: 'string', message: '多行输入框(=) 值不能为空', trigger: 'change' }, { required: this.detailsModel.formitem3.required, type: 'string', message: '多行输入框(包含) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem3.required, type: 'string', message: '多行输入框(=) 值不能为空', trigger: 'blur' }, { required: this.detailsModel.formitem3.required, type: 'string', message: '多行输入框(包含) 值不能为空', trigger: 'blur' },
], ],
formitem4: [ formitem4: [
{ required: this.detailsModel.formitem4.required, type: 'string', message: '进步器(<) 值不能为空', trigger: 'change' }, { required: this.detailsModel.formitem4.required, type: 'string', message: '进步器(<) 值不能为空', trigger: 'change' },
...@@ -727,6 +735,10 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -727,6 +735,10 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
{ required: this.detailsModel.formitem7.required, type: 'string', message: '下拉列表框(notnil) 值不能为空', trigger: 'change' }, { required: this.detailsModel.formitem7.required, type: 'string', message: '下拉列表框(notnil) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem7.required, type: 'string', message: '下拉列表框(notnil) 值不能为空', trigger: 'blur' }, { required: this.detailsModel.formitem7.required, type: 'string', message: '下拉列表框(notnil) 值不能为空', trigger: 'blur' },
], ],
formitem8: [
{ required: this.detailsModel.formitem8.required, type: 'string', message: '开关(=) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem8.required, type: 'string', message: '开关(=) 值不能为空', trigger: 'blur' },
],
} }
} }
...@@ -868,15 +880,17 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -868,15 +880,17 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
, ,
formitem2: new FormItemModel({ caption: '密码框(=)', detailType: 'FORMITEM', name: 'formitem2', visible: false, 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 }) formitem3: new FormItemModel({ caption: '多行输入框(包含)', detailType: 'FORMITEM', name: 'formitem3', visible: false, 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 }) 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 }) formitem5: new FormItemModel({ caption: '评分器(=)', detailType: 'FORMITEM', name: 'formitem5', visible: false, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
formitem6: new FormItemModel({ caption: '滑动输入条(>=)', detailType: 'FORMITEM', name: 'formitem6', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) formitem6: new FormItemModel({ caption: '滑动输入条(>=)', detailType: 'FORMITEM', name: 'formitem6', visible: false, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
formitem7: new FormItemModel({ caption: '下拉列表框(notnil)', detailType: 'FORMITEM', name: 'formitem7', visible: false, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) formitem7: new FormItemModel({ caption: '下拉列表框(notnil)', detailType: 'FORMITEM', name: 'formitem7', visible: false, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem8: new FormItemModel({ caption: '开关(=)', detailType: 'FORMITEM', name: 'formitem8', visible: false, 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 }) ibizcustomerid: new FormItemModel({ caption: '客户标识', detailType: 'FORMITEM', name: 'ibizcustomerid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
...@@ -1160,6 +1174,18 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -1160,6 +1174,18 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'formitem7', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'formitem7', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 formitem8 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UIPART_0011Base
*/
@Watch('data.formitem8')
onFormitem8Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem8', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 ibizcustomerid 值 * 监控表单属性 ibizcustomerid 值
* *
...@@ -1291,6 +1317,14 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -1291,6 +1317,14 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.detailsModel.formitem2.setVisible(ret); this.detailsModel.formitem2.setVisible(ret);
} }
if (Object.is(name, '') || Object.is(name, 'formitem3')) {
let ret = false;
const _formitem3 = this.data.formitem3;
if (this.$verify.testCond(_formitem3, 'LIKE', '显现')) {
ret = true;
}
this.detailsModel.formitem3.setVisible(ret);
}
if (Object.is(name, '') || Object.is(name, 'formitem4')) { if (Object.is(name, '') || Object.is(name, 'formitem4')) {
let ret = false; let ret = false;
...@@ -1301,7 +1335,23 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -1301,7 +1335,23 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.detailsModel.formitem4.setVisible(ret); this.detailsModel.formitem4.setVisible(ret);
} }
if (Object.is(name, '') || Object.is(name, 'formitem5')) {
let ret = false;
const _formitem5 = this.data.formitem5;
if (this.$verify.testCond(_formitem5, 'EQ', '3')) {
ret = true;
}
this.detailsModel.formitem5.setVisible(ret);
}
if (Object.is(name, '') || Object.is(name, 'formitem6')) {
let ret = false;
const _formitem6 = this.data.formitem6;
if (this.$verify.testCond(_formitem6, 'GTANDEQ', '60')) {
ret = true;
}
this.detailsModel.formitem6.setVisible(ret);
}
if (Object.is(name, '') || Object.is(name, 'formitem7')) { if (Object.is(name, '') || Object.is(name, 'formitem7')) {
let ret = false; let ret = false;
...@@ -1312,6 +1362,15 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -1312,6 +1362,15 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.detailsModel.formitem7.setVisible(ret); this.detailsModel.formitem7.setVisible(ret);
} }
if (Object.is(name, '') || Object.is(name, 'formitem8')) {
let ret = false;
const _formitem8 = this.data.formitem8;
if (this.$verify.testCond(_formitem8, 'EQ', '0')) {
ret = true;
}
this.detailsModel.formitem8.setVisible(ret);
}
} }
......
...@@ -122,6 +122,10 @@ export default class UIPART_0011Model { ...@@ -122,6 +122,10 @@ export default class UIPART_0011Model {
name: 'formitem7', name: 'formitem7',
dataType:'FORMITEM', dataType:'FORMITEM',
}, },
{
name: 'formitem8',
dataType:'FORMITEM',
},
{ {
name: 'ibizcustomerid', name: 'ibizcustomerid',
prop: 'ibizcustomerid', prop: 'ibizcustomerid',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册