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

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

上级 28098705
...@@ -76,6 +76,35 @@ ...@@ -76,6 +76,35 @@
} }
] ]
}, },
{
"srfkey": "CodeList12",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "REPORTFOLDER_1",
"label": "经营性报表",
"text": "经营性报表",
"class":"",
"data":"",
"codename":"Reportfolder_1",
"value": "REPORTFOLDER_1",
"disabled": false
}
, {
"id": "REPORTFOLDER_2",
"label": "财务报表",
"text": "财务报表",
"class":"",
"data":"",
"codename":"Reportfolder_2",
"value": "REPORTFOLDER_2",
"disabled": false
}
]
},
{ {
"srfkey": "SCODELIST_TEXT", "srfkey": "SCODELIST_TEXT",
"emptytext": "未定义", "emptytext": "未定义",
......
...@@ -13,6 +13,11 @@ export default { ...@@ -13,6 +13,11 @@ export default {
"4": "类型3", "4": "类型3",
"empty": "" "empty": ""
}, },
CodeList12: {
"REPORTFOLDER_1": "经营性报表",
"REPORTFOLDER_2": "财务报表",
"empty": ""
},
SCODELIST_TEXT: { SCODELIST_TEXT: {
"A": "类型1", "A": "类型1",
"B": "类型2", "B": "类型2",
......
...@@ -13,6 +13,11 @@ export default { ...@@ -13,6 +13,11 @@ export default {
"4": "类型3", "4": "类型3",
"empty": "", "empty": "",
}, },
CodeList12: {
"REPORTFOLDER_1": "经营性报表",
"REPORTFOLDER_2": "财务报表",
"empty": "",
},
SCODELIST_TEXT: { SCODELIST_TEXT: {
"A": "类型1", "A": "类型1",
"B": "类型2", "B": "类型2",
......
...@@ -371,6 +371,8 @@ export default { ...@@ -371,6 +371,8 @@ export default {
formitem6: "滑动输入条(>=60)", formitem6: "滑动输入条(>=60)",
formitem7: "下拉列表框(notnil)", formitem7: "下拉列表框(notnil)",
formitem8: "开关(=0)", formitem8: "开关(=0)",
formitem9: "选项框",
formitem10: "单选项列表",
ibizcustomerid: "客户标识", ibizcustomerid: "客户标识",
ibizorderid: "订单标识", ibizorderid: "订单标识",
}, },
......
...@@ -370,6 +370,8 @@ export default { ...@@ -370,6 +370,8 @@ export default {
formitem6: "滑动输入条(>=60)", formitem6: "滑动输入条(>=60)",
formitem7: "下拉列表框(notnil)", formitem7: "下拉列表框(notnil)",
formitem8: "开关(=0)", formitem8: "开关(=0)",
formitem9: "选项框",
formitem10: "单选项列表",
ibizcustomerid: "客户标识", ibizcustomerid: "客户标识",
ibizorderid: "订单标识", ibizorderid: "订单标识",
}, },
......
...@@ -84,6 +84,35 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -84,6 +84,35 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
}, },
] ]
}, },
{
srfkey: "CodeList12",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "REPORTFOLDER_1",
label: "经营性报表",
text: "经营性报表",
"class":"",
"data":"",
"codename":"Reportfolder_1",
value: "REPORTFOLDER_1",
disabled: false,
},
{
id: "REPORTFOLDER_2",
label: "财务报表",
text: "财务报表",
"class":"",
"data":"",
"codename":"Reportfolder_2",
value: "REPORTFOLDER_2",
disabled: false,
},
]
},
{ {
srfkey: "SCODELIST_TEXT", srfkey: "SCODELIST_TEXT",
emptytext: "未定义", emptytext: "未定义",
......
...@@ -215,6 +215,35 @@ ...@@ -215,6 +215,35 @@
</app-form-item> </app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem9.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='formitem9' :itemRules="this.rules().formitem9" class='' :caption="$t('entities.ibizorder.uipart_0011_form.details.formitem9')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem9.error" :isEmptyCaption="false" labelPos="LEFT">
<div style="">
<app-checkbox :value="this.data.formitem9" @change="($event)=>{this.data.formitem9 = $event} " :disabled="detailsModel.formitem9.disabled"></app-checkbox>
</div>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem10.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='formitem10' :itemRules="this.rules().formitem10" class='' :caption="$t('entities.ibizorder.uipart_0011_form.details.formitem10')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem10.error" :isEmptyCaption="false" labelPos="LEFT">
<app-radio-group
v-model="data.formitem10"
:data="data"
:context="context"
:viewparams="viewparams"
:disabled="detailsModel.formitem10.disabled"
name="formitem10"
:localContext ='{ }'
:localParam ='{ }'
tag='CodeList12'
codelistType='STATIC'
style="">
</app-radio-group>
</app-form-item>
</i-col> </i-col>
</row> </row>
...@@ -624,6 +653,8 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -624,6 +653,8 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
formitem6: null, formitem6: null,
formitem7: null, formitem7: null,
formitem8: null, formitem8: null,
formitem9: null,
formitem10: null,
ibizcustomerid: null, ibizcustomerid: null,
ibizorderid: null, ibizorderid: null,
ibizorder:null, ibizorder:null,
...@@ -741,6 +772,14 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -741,6 +772,14 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
{ required: this.detailsModel.formitem8.required, type: 'string', message: '开关(=0) 值不能为空', trigger: 'change' }, { required: this.detailsModel.formitem8.required, type: 'string', message: '开关(=0) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem8.required, type: 'string', message: '开关(=0) 值不能为空', trigger: 'blur' }, { required: this.detailsModel.formitem8.required, type: 'string', message: '开关(=0) 值不能为空', trigger: 'blur' },
], ],
formitem9: [
{ required: this.detailsModel.formitem9.required, type: 'string', message: '选项框 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem9.required, type: 'string', message: '选项框 值不能为空', trigger: 'blur' },
],
formitem10: [
{ required: this.detailsModel.formitem10.required, type: 'string', message: '单选项列表 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem10.required, type: 'string', message: '单选项列表 值不能为空', trigger: 'blur' },
],
} }
} }
...@@ -890,9 +929,13 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -890,9 +929,13 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
, ,
formitem6: new FormItemModel({ caption: '滑动输入条(>=60)', detailType: 'FORMITEM', name: 'formitem6', visible: false, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) formitem6: new FormItemModel({ caption: '滑动输入条(>=60)', 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: 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 })
, ,
formitem8: new FormItemModel({ caption: '开关(=0)', detailType: 'FORMITEM', name: 'formitem8', visible: false, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) formitem8: new FormItemModel({ caption: '开关(=0)', detailType: 'FORMITEM', name: 'formitem8', visible: false, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem9: new FormItemModel({ caption: '选项框', detailType: 'FORMITEM', name: 'formitem9', visible: false, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem10: new FormItemModel({ caption: '单选项列表', detailType: 'FORMITEM', name: 'formitem10', 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 }) ibizcustomerid: new FormItemModel({ caption: '客户标识', detailType: 'FORMITEM', name: 'ibizcustomerid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
...@@ -1188,6 +1231,30 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -1188,6 +1231,30 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'formitem8', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'formitem8', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 formitem9 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UIPART_0011Base
*/
@Watch('data.formitem9')
onFormitem9Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem9', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem10 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UIPART_0011Base
*/
@Watch('data.formitem10')
onFormitem10Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem10', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 ibizcustomerid 值 * 监控表单属性 ibizcustomerid 值
* *
...@@ -1355,6 +1422,14 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -1355,6 +1422,14 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.detailsModel.formitem6.setVisible(ret); this.detailsModel.formitem6.setVisible(ret);
} }
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);
}
if (Object.is(name, '') || Object.is(name, 'formitem8')) { if (Object.is(name, '') || Object.is(name, 'formitem8')) {
let ret = false; let ret = false;
...@@ -1365,6 +1440,16 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -1365,6 +1440,16 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.detailsModel.formitem8.setVisible(ret); this.detailsModel.formitem8.setVisible(ret);
} }
if (Object.is(name, '') || Object.is(name, 'formitem9')) {
let ret = false;
const _formitem9 = this.data.formitem9;
if (this.$verify.testCond(_formitem9, 'EQ', '0')) {
ret = true;
}
this.detailsModel.formitem9.setVisible(ret);
}
} }
...@@ -2469,6 +2554,9 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -2469,6 +2554,9 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
if (this.data.hasOwnProperty('formitem8')) { if (this.data.hasOwnProperty('formitem8')) {
this.data['formitem8'] = '0'; this.data['formitem8'] = '0';
} }
if (this.data.hasOwnProperty('formitem9')) {
this.data['formitem9'] = '1';
}
} }
/** /**
......
...@@ -126,6 +126,14 @@ export default class UIPART_0011Model { ...@@ -126,6 +126,14 @@ export default class UIPART_0011Model {
name: 'formitem8', name: 'formitem8',
dataType:'FORMITEM', dataType:'FORMITEM',
}, },
{
name: 'formitem9',
dataType:'FORMITEM',
},
{
name: 'formitem10',
dataType:'FORMITEM',
},
{ {
name: 'ibizcustomerid', name: 'ibizcustomerid',
prop: 'ibizcustomerid', prop: 'ibizcustomerid',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册