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

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

上级 2771abd2
......@@ -362,13 +362,14 @@ export default {
ordertype: "订单类型",
orderstate: "订单状态",
opinion: "审批意见",
formitem: "文本框(空值)",
formitem: "文本框(nil)",
formitem1: "数值框(<>)",
formitem2: "密码框(=)",
formitem3: "多行输入框(=)",
formitem4: "进步器(<)",
formitem5: "评分器(=)",
formitem6: "滑动输入条(>=)",
formitem7: "下拉列表框(notnil)",
ibizcustomerid: "客户标识",
ibizorderid: "订单标识",
},
......
......@@ -361,13 +361,14 @@ export default {
ordertype: "订单类型",
orderstate: "订单状态",
opinion: "审批意见",
formitem: "文本框(空值)",
formitem: "文本框(nil)",
formitem1: "数值框(<>)",
formitem2: "密码框(=)",
formitem3: "多行输入框(=)",
formitem4: "进步器(<)",
formitem5: "评分器(=)",
formitem6: "滑动输入条(>=)",
formitem7: "下拉列表框(notnil)",
ibizcustomerid: "客户标识",
ibizorderid: "订单标识",
},
......
......@@ -188,6 +188,24 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem7.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='formitem7' :itemRules="this.rules().formitem7" class='' :caption="$t('entities.ibizorder.uipart_0011_form.details.formitem7')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem7.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.formitem7"
:data="data"
:context="context"
:viewparams="viewparams"
:formState="formState"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.formitem7.disabled"
placeholder='请选择...' style="">
</dropdown-list>
</app-form-item>
</i-col>
</row>
......@@ -595,6 +613,7 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
formitem4: null,
formitem5: null,
formitem6: null,
formitem7: null,
ibizcustomerid: null,
ibizorderid: null,
ibizorder:null,
......@@ -677,8 +696,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: '文本框(nil) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem.required, type: 'string', message: '文本框(nil) 值不能为空', trigger: 'blur' },
],
formitem1: [
{ required: this.detailsModel.formitem1.required, type: 'string', message: '数值框(<>) 值不能为空', trigger: 'change' },
......@@ -704,6 +723,10 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
{ required: this.detailsModel.formitem6.required, type: 'string', message: '滑动输入条(>=) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem6.required, type: 'string', message: '滑动输入条(>=) 值不能为空', trigger: 'blur' },
],
formitem7: [
{ required: this.detailsModel.formitem7.required, type: 'string', message: '下拉列表框(notnil) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem7.required, type: 'string', message: '下拉列表框(notnil) 值不能为空', trigger: 'blur' },
],
}
}
......@@ -839,7 +862,7 @@ 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: '文本框(nil)', 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 })
,
......@@ -852,6 +875,8 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
formitem5: new FormItemModel({ caption: '评分器(=)', detailType: 'FORMITEM', name: 'formitem5', visible: true, 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 })
,
formitem7: new FormItemModel({ caption: '下拉列表框(notnil)', detailType: 'FORMITEM', name: 'formitem7', 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 })
,
......@@ -1123,6 +1148,18 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'formitem6', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem7 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UIPART_0011Base
*/
@Watch('data.formitem7')
onFormitem7Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem7', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizcustomerid 值
*
......@@ -1266,6 +1303,15 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
if (Object.is(name, '') || Object.is(name, 'formitem7')) {
let ret = false;
const _formitem7 = this.data.formitem7;
if (this.$verify.testCond(_formitem7, 'ISNOTNULL', '')) {
ret = true;
}
this.detailsModel.formitem7.setVisible(ret);
}
}
......@@ -2353,7 +2399,7 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.data['formitem1'] = '111';
}
if (this.data.hasOwnProperty('formitem2')) {
this.data['formitem2'] = '111';
this.data['formitem2'] = '123';
}
if (this.data.hasOwnProperty('formitem3')) {
this.data['formitem3'] = '显示';
......
......@@ -118,6 +118,10 @@ export default class UIPART_0011Model {
name: 'formitem6',
dataType:'FORMITEM',
},
{
name: 'formitem7',
dataType:'FORMITEM',
},
{
name: 'ibizcustomerid',
prop: 'ibizcustomerid',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册