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

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

上级 b054c1db
...@@ -345,6 +345,7 @@ export default { ...@@ -345,6 +345,7 @@ export default {
uipart_0011_form: { uipart_0011_form: {
details: { details: {
group1: "订单基本信息", group1: "订单基本信息",
grouppanel1: "文本类型动态显示",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -361,6 +362,8 @@ export default { ...@@ -361,6 +362,8 @@ export default {
ordertype: "订单类型", ordertype: "订单类型",
orderstate: "订单状态", orderstate: "订单状态",
opinion: "审批意见", opinion: "审批意见",
formitem: "文本框(=)",
formitem1: "数值框(=)",
ibizcustomerid: "客户标识", ibizcustomerid: "客户标识",
ibizorderid: "订单标识", ibizorderid: "订单标识",
}, },
......
...@@ -344,6 +344,7 @@ export default { ...@@ -344,6 +344,7 @@ export default {
uipart_0011_form: { uipart_0011_form: {
details: { details: {
group1: "订单基本信息", group1: "订单基本信息",
grouppanel1: "文本类型动态显示",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -360,6 +361,8 @@ export default { ...@@ -360,6 +361,8 @@ export default {
ordertype: "订单类型", ordertype: "订单类型",
orderstate: "订单状态", orderstate: "订单状态",
opinion: "审批意见", opinion: "审批意见",
formitem: "文本框(=)",
formitem1: "数值框(=)",
ibizcustomerid: "客户标识", ibizcustomerid: "客户标识",
ibizorderid: "订单标识", ibizorderid: "订单标识",
}, },
......
...@@ -121,6 +121,43 @@ ...@@ -121,6 +121,43 @@
</row> </row>
</app-form-group> </app-form-group>
</i-col>
<i-col v-show="detailsModel.grouppanel1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.grouppanel1.manageContainerStatus" :isManageContainer="detailsModel.grouppanel1.isManageContainer" @managecontainerclick="manageContainerClick('grouppanel1')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.grouppanel1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizorder.uipart_0011_form.details.grouppanel1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.formitem.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='formitem' :itemRules="this.rules().formitem" class='' :caption="$t('entities.ibizorder.uipart_0011_form.details.formitem')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.formitem"
@enter="onEnter($event)"
:disabled="detailsModel.formitem.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem1.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='formitem1' :itemRules="this.rules().formitem1" class='' :caption="$t('entities.ibizorder.uipart_0011_form.details.formitem1')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem1.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.formitem1"
@enter="onEnter($event)"
:disabled="detailsModel.formitem1.disabled"
type='number'
style="">
</input-box>
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col> </i-col>
...@@ -516,6 +553,8 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -516,6 +553,8 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
ordertype: null, ordertype: null,
orderstate: null, orderstate: null,
opinion: null, opinion: null,
formitem: null,
formitem1: null,
ibizcustomerid: null, ibizcustomerid: null,
ibizorderid: null, ibizorderid: null,
ibizorder:null, ibizorder:null,
...@@ -597,6 +636,14 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -597,6 +636,14 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
{ required: this.detailsModel.opinion.required, type: 'string', message: '审批意见 值不能为空', trigger: 'change' }, { required: this.detailsModel.opinion.required, type: 'string', message: '审批意见 值不能为空', trigger: 'change' },
{ required: this.detailsModel.opinion.required, type: 'string', message: '审批意见 值不能为空', trigger: 'blur' }, { 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' },
],
formitem1: [
{ required: this.detailsModel.formitem1.required, type: 'string', message: '数值框(=) 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem1.required, type: 'string', message: '数值框(=) 值不能为空', trigger: 'blur' },
],
} }
} }
...@@ -697,6 +744,8 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -697,6 +744,8 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
*/ */
public detailsModel: any = { public detailsModel: any = {
group1: new FormGroupPanelModel({ caption: '订单基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizorder.uipart_0011_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] }) group1: new FormGroupPanelModel({ caption: '订单基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: false, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizorder.uipart_0011_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
grouppanel1: new FormGroupPanelModel({ caption: '文本类型动态显示', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: true, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizorder.uipart_0011_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
, ,
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this, isControlledContent: false }) formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this, isControlledContent: false })
, ,
...@@ -729,6 +778,10 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -729,6 +778,10 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
orderstate: new FormItemModel({ caption: '订单状态', detailType: 'FORMITEM', name: 'orderstate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) orderstate: new FormItemModel({ caption: '订单状态', detailType: 'FORMITEM', name: 'orderstate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
opinion: new FormItemModel({ caption: '审批意见', detailType: 'FORMITEM', name: 'opinion', visible: false, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 0 }) 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 })
,
formitem1: new FormItemModel({ caption: '数值框(=)', detailType: 'FORMITEM', name: 'formitem1', 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 })
, ,
...@@ -916,6 +969,30 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -916,6 +969,30 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.formDataChange({ name: 'opinion', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'opinion', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 formitem 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UIPART_0011Base
*/
@Watch('data.formitem')
onFormitemChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem1 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof UIPART_0011Base
*/
@Watch('data.formitem1')
onFormitem1Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem1', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 ibizcustomerid 值 * 监控表单属性 ibizcustomerid 值
* *
...@@ -1010,6 +1087,7 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -1010,6 +1087,7 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
if (Object.is(name, '') || Object.is(name, 'orderstate')) { if (Object.is(name, '') || Object.is(name, 'orderstate')) {
let ret = false; let ret = false;
const _orderstate = this.data.orderstate; const _orderstate = this.data.orderstate;
...@@ -1019,6 +1097,16 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -1019,6 +1097,16 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
this.detailsModel.opinion.setVisible(ret); this.detailsModel.opinion.setVisible(ret);
} }
if (Object.is(name, '') || Object.is(name, 'formitem')) {
let ret = false;
const _formitem = this.data.formitem;
if (this.$verify.testCond(_formitem, 'EQ', '111')) {
ret = true;
}
this.detailsModel.formitem.setVisible(ret);
}
} }
...@@ -2102,6 +2190,12 @@ export default class UIPART_0011Base extends Vue implements ControlInterface { ...@@ -2102,6 +2190,12 @@ export default class UIPART_0011Base extends Vue implements ControlInterface {
if (this.data.hasOwnProperty('ordertime')) { if (this.data.hasOwnProperty('ordertime')) {
this.data['ordertime'] = this.$util.dateFormat(new Date()); this.data['ordertime'] = this.$util.dateFormat(new Date());
} }
if (this.data.hasOwnProperty('formitem')) {
this.data['formitem'] = '111';
}
if (this.data.hasOwnProperty('formitem1')) {
this.data['formitem1'] = '111';
}
} }
/** /**
......
...@@ -90,6 +90,14 @@ export default class UIPART_0011Model { ...@@ -90,6 +90,14 @@ export default class UIPART_0011Model {
prop: 'opinion', prop: 'opinion',
dataType: 'LONGTEXT', dataType: 'LONGTEXT',
}, },
{
name: 'formitem',
dataType:'FORMITEM',
},
{
name: 'formitem1',
dataType:'FORMITEM',
},
{ {
name: 'ibizcustomerid', name: 'ibizcustomerid',
prop: 'ibizcustomerid', prop: 'ibizcustomerid',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册