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

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

上级 7f406ad6
......@@ -109,13 +109,15 @@ export default {
srfdeid: "",
srfsourcekey: "",
pibizsample0003name: "上级",
field01: "FIELD01",
ibizsample0003name: "名称",
ibizsample0003id: "IBIZSAMPLE0003标识",
memo: "备注",
pibizsample0003id: "IBIZSAMPLE0003标识",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
pibizsample0003id: "IBIZSAMPLE0003标识",
ibizsample0003id: "IBIZSAMPLE0003标识",
},
uiactions: {
},
......
......@@ -108,13 +108,15 @@ export default {
srfdeid: "",
srfsourcekey: "",
pibizsample0003name: "上级",
field01: "FIELD01",
ibizsample0003name: "名称",
ibizsample0003id: "IBIZSAMPLE0003标识",
memo: "备注",
pibizsample0003id: "IBIZSAMPLE0003标识",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
pibizsample0003id: "IBIZSAMPLE0003标识",
ibizsample0003id: "IBIZSAMPLE0003标识",
},
uiactions: {
},
......
......@@ -42,6 +42,20 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.field01.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='field01' :itemRules="this.rules().field01" class='' :caption="$t('entities.ibizsample0003.main_form.details.field01')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.field01.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.field01"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.field01.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.ibizsample0003name.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='ibizsample0003name' :itemRules="this.rules().ibizsample0003name" class='' :caption="$t('entities.ibizsample0003.main_form.details.ibizsample0003name')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ibizsample0003name.error" :isEmptyCaption="false" labelPos="LEFT">
......@@ -56,6 +70,23 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.ibizsample0003id.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='ibizsample0003id' :itemRules="this.rules().ibizsample0003id" class='' :caption="$t('entities.ibizsample0003.main_form.details.ibizsample0003id')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ibizsample0003id.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='ibizsample0003id' :value="data.ibizsample0003id" dataType="GUID" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.memo.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='memo' :itemRules="this.rules().memo" class='' :caption="$t('entities.ibizsample0003.main_form.details.memo')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.memo.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.memo" :textareaId="this.$util.createUUID()" :disabled="detailsModel.memo.disabled" type='textarea' textareaStyle="height:200px;" ></input-box>
</app-form-item>
</i-col>
</row>
......@@ -290,7 +321,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @type {string}
* @memberof MainBase
*/
public formKeyItemName: string = '';
public formKeyItemName: string = 'ibizsample0003id';
/**
* 是否自动加载
......@@ -519,13 +550,15 @@ export default class MainBase extends Vue implements ControlInterface {
srfdeid: null,
srfsourcekey: null,
pibizsample0003name: null,
field01: null,
ibizsample0003name: null,
ibizsample0003id: null,
memo: null,
pibizsample0003id: null,
createman: null,
createdate: null,
updateman: null,
updatedate: null,
pibizsample0003id: null,
ibizsample0003id: null,
ibizsample0003:null,
};
......@@ -581,10 +614,22 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.pibizsample0003name.required, type: 'string', message: '上级 值不能为空', trigger: 'change' },
{ required: this.detailsModel.pibizsample0003name.required, type: 'string', message: '上级 值不能为空', trigger: 'blur' },
],
field01: [
{ required: this.detailsModel.field01.required, type: 'string', message: 'FIELD01 值不能为空', trigger: 'change' },
{ required: this.detailsModel.field01.required, type: 'string', message: 'FIELD01 值不能为空', trigger: 'blur' },
],
ibizsample0003name: [
{ required: this.detailsModel.ibizsample0003name.required, type: 'string', message: '名称 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ibizsample0003name.required, type: 'string', message: '名称 值不能为空', trigger: 'blur' },
],
ibizsample0003id: [
{ required: this.detailsModel.ibizsample0003id.required, type: 'string', message: 'IBIZSAMPLE0003标识 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ibizsample0003id.required, type: 'string', message: 'IBIZSAMPLE0003标识 值不能为空', trigger: 'blur' },
],
memo: [
{ required: this.detailsModel.memo.required, type: 'string', message: '备注 值不能为空', trigger: 'change' },
{ required: this.detailsModel.memo.required, type: 'string', message: '备注 值不能为空', trigger: 'blur' },
],
createman: [
{ required: this.detailsModel.createman.required, type: 'string', message: '建立人 值不能为空', trigger: 'change' },
{ required: this.detailsModel.createman.required, type: 'string', message: '建立人 值不能为空', trigger: 'blur' },
......@@ -731,8 +776,16 @@ export default class MainBase extends Vue implements ControlInterface {
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
pibizsample0003name: new FormItemModel({ caption: '上级', detailType: 'FORMITEM', name: 'pibizsample0003name', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
field01: new FormItemModel({ caption: 'FIELD01', detailType: 'FORMITEM', name: 'field01', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ibizsample0003name: new FormItemModel({ caption: '名称', detailType: 'FORMITEM', name: 'ibizsample0003name', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ibizsample0003id: new FormItemModel({ caption: 'IBIZSAMPLE0003标识', detailType: 'FORMITEM', name: 'ibizsample0003id', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
memo: new FormItemModel({ caption: '备注', detailType: 'FORMITEM', name: 'memo', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
pibizsample0003id: new FormItemModel({ caption: 'IBIZSAMPLE0003标识', detailType: 'FORMITEM', name: 'pibizsample0003id', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
createman: new FormItemModel({ caption: '建立人', detailType: 'FORMITEM', name: 'createman', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......@@ -741,10 +794,6 @@ export default class MainBase extends Vue implements ControlInterface {
updateman: new FormItemModel({ caption: '更新人', detailType: 'FORMITEM', name: 'updateman', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
updatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'updatedate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
pibizsample0003id: new FormItemModel({ caption: 'IBIZSAMPLE0003标识', detailType: 'FORMITEM', name: 'pibizsample0003id', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ibizsample0003id: new FormItemModel({ caption: 'IBIZSAMPLE0003标识', detailType: 'FORMITEM', name: 'ibizsample0003id', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
form: new FormTabPanelModel({ caption: 'form', detailType: 'TABPANEL', name: 'form', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }),
};
......@@ -857,6 +906,18 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'pibizsample0003name', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 field01 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.field01')
onField01Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'field01', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizsample0003name 值
*
......@@ -870,75 +931,87 @@ export default class MainBase extends Vue implements ControlInterface {
}
/**
* 监控表单属性 createman
* 监控表单属性 ibizsample0003id
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.createman')
onCreatemanChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'createman', newVal: newVal, oldVal: oldVal });
@Watch('data.ibizsample0003id')
onIbizsample0003idChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'ibizsample0003id', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 createdate
* 监控表单属性 memo
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.createdate')
onCreatedateChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'createdate', newVal: newVal, oldVal: oldVal });
@Watch('data.memo')
onMemoChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'memo', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 updateman
* 监控表单属性 pibizsample0003id
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.updateman')
onUpdatemanChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'updateman', newVal: newVal, oldVal: oldVal });
@Watch('data.pibizsample0003id')
onPibizsample0003idChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'pibizsample0003id', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 updatedate
* 监控表单属性 createman
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.updatedate')
onUpdatedateChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'updatedate', newVal: newVal, oldVal: oldVal });
@Watch('data.createman')
onCreatemanChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'createman', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 pibizsample0003id
* 监控表单属性 createdate
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.pibizsample0003id')
onPibizsample0003idChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'pibizsample0003id', newVal: newVal, oldVal: oldVal });
@Watch('data.createdate')
onCreatedateChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'createdate', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizsample0003id
* 监控表单属性 updateman
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.ibizsample0003id')
onIbizsample0003idChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'ibizsample0003id', newVal: newVal, oldVal: oldVal });
@Watch('data.updateman')
onUpdatemanChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'updateman', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 updatedate 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.updatedate')
onUpdatedateChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'updatedate', newVal: newVal, oldVal: oldVal });
}
......@@ -1012,6 +1085,8 @@ export default class MainBase extends Vue implements ControlInterface {
......@@ -1476,6 +1551,7 @@ export default class MainBase extends Vue implements ControlInterface {
const data = response.data;
this.resetDraftFormStates();
this.onFormLoad(data,'loadDraft');
this.data.ibizsample0003id = null;
data.ibizsample0003 = null;
this.$emit('load', data);
this.$nextTick(() => {
......
......@@ -60,11 +60,31 @@ export default class MainModel {
prop: 'pibizsample0003name',
dataType: 'PICKUPTEXT',
},
{
name: 'field01',
prop: 'field01',
dataType: 'TEXT',
},
{
name: 'ibizsample0003name',
prop: 'ibizsample0003name',
dataType: 'TEXT',
},
{
name: 'ibizsample0003id',
prop: 'ibizsample0003id',
dataType: 'GUID',
},
{
name: 'memo',
prop: 'memo',
dataType: 'LONGTEXT_1000',
},
{
name: 'pibizsample0003id',
prop: 'pibizsample0003id',
dataType: 'PICKUP',
},
{
name: 'createman',
prop: 'createman',
......@@ -85,16 +105,6 @@ export default class MainModel {
prop: 'updatedate',
dataType: 'DATETIME',
},
{
name: 'pibizsample0003id',
prop: 'pibizsample0003id',
dataType: 'PICKUP',
},
{
name: 'ibizsample0003id',
prop: 'ibizsample0003id',
dataType: 'GUID',
},
{
name: 'ibizsample0003',
prop: 'ibizsample0003id',
......
......@@ -175,6 +175,7 @@ export default class MainService extends ControlService {
@Errorlog
public add(action: string, context: any = {},data: any = {}, isloading?: boolean,isWorkflow?:boolean): Promise<any> {
const {data:Data,context:Context} = this.handleRequestData(action,context,data);
Object.assign(Data,{ibizsample0003id: data.ibizsample0003id, srffrontuf: '1'});
return new Promise((resolve: any, reject: any) => {
let result: Promise<any>;
const _appEntityService: any = this.appEntityService;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册