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

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

上级 b36361a6
......@@ -363,7 +363,9 @@ export default {
orderstate: "订单状态",
opinion: "审批意见",
formitem: "文本框(=)",
formitem1: "数值框(=)",
formitem1: "数值框(>)",
formitem2: "密码框(=)",
formitem3: "多行输入框(=)",
ibizcustomerid: "客户标识",
ibizorderid: "订单标识",
},
......
......@@ -362,7 +362,9 @@ export default {
orderstate: "订单状态",
opinion: "审批意见",
formitem: "文本框(=)",
formitem1: "数值框(=)",
formitem1: "数值框(>)",
formitem2: "密码框(=)",
formitem3: "多行输入框(=)",
ibizcustomerid: "客户标识",
ibizorderid: "订单标识",
},
......
......@@ -153,6 +153,20 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem2.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='formitem2' :itemRules="this.rules().formitem2" class='' :caption="$t('entities.ibizorder.uipart_0011_form.details.formitem2')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem2.error" :isEmptyCaption="false" labelPos="LEFT">
<i-input type="password" v-model="data.formitem2" :disabled="detailsModel.formitem2.disabled" style=""></i-input>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem3.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='formitem3' :itemRules="this.rules().formitem3" class='' :caption="$t('entities.ibizorder.uipart_0011_form.details.formitem3')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem3.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.formitem3" :disabled="detailsModel.formitem3.disabled" type='textarea' style="" ></input-box>
</app-form-item>
</i-col>
</row>
......@@ -555,6 +569,8 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
opinion: null,
formitem: null,
formitem1: null,
formitem2: null,
formitem3: null,
ibizcustomerid: null,
ibizorderid: null,
ibizorder:null,
......@@ -641,8 +657,16 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
{ required: this.detailsModel.formitem.required, type: 'string', message: '文本框(=) 值不能为空', trigger: 'blur' },
],
formitem1: [
{ required: this.detailsModel.formitem1.required, type: 'string', message: '数值框(=) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem1.required, type: 'string', message: '数值框(=) 值不能为空', trigger: 'blur' },
{ required: this.detailsModel.formitem1.required, type: 'string', message: '数值框(>) 值不能为空', trigger: 'change' },
{ 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' },
],
formitem3: [
{ required: this.detailsModel.formitem3.required, type: 'string', message: '多行输入框(=) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem3.required, type: 'string', message: '多行输入框(=) 值不能为空', trigger: 'blur' },
],
}
}
......@@ -781,7 +805,11 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
,
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 })
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 })
,
ibizcustomerid: new FormItemModel({ caption: '客户标识', detailType: 'FORMITEM', name: 'ibizcustomerid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......@@ -993,6 +1021,30 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'formitem1', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem2 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UIPART_0011Base
*/
@Watch('data.formitem2')
onFormitem2Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem2', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem3 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UIPART_0011Base
*/
@Watch('data.formitem3')
onFormitem3Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem3', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizcustomerid 值
*
......@@ -1109,7 +1161,7 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
if (Object.is(name, '') || Object.is(name, 'formitem1')) {
let ret = false;
const _formitem1 = this.data.formitem1;
if (this.$verify.testCond(_formitem1, 'EQ', '100')) {
if (this.$verify.testCond(_formitem1, 'GT', '100')) {
ret = true;
}
this.detailsModel.formitem1.setVisible(ret);
......@@ -1117,6 +1169,8 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
}
/**
......@@ -2204,6 +2258,12 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
if (this.data.hasOwnProperty('formitem1')) {
this.data['formitem1'] = '111';
}
if (this.data.hasOwnProperty('formitem2')) {
this.data['formitem2'] = '123';
}
if (this.data.hasOwnProperty('formitem3')) {
this.data['formitem3'] = '显示';
}
}
/**
......
......@@ -98,6 +98,14 @@ export default class UIPART_0011Model {
name: 'formitem1',
dataType:'FORMITEM',
},
{
name: 'formitem2',
dataType:'FORMITEM',
},
{
name: 'formitem3',
dataType:'FORMITEM',
},
{
name: 'ibizcustomerid',
prop: 'ibizcustomerid',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册