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

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

上级 82953857
......@@ -250,8 +250,6 @@ export default {
details: {
group1: "图书基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "图书标识",
......@@ -261,11 +259,11 @@ export default {
srfdeid: "",
srfsourcekey: "",
ibizbookname: "图书名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
ibizbookid: "图书标识",
author: "图书作者",
booknumber: "图书数量",
press: "图书出版社",
price: "图书价格",
},
uiactions: {
},
......
......@@ -249,8 +249,6 @@ export default {
details: {
group1: "图书基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "图书标识",
......@@ -260,11 +258,11 @@ export default {
srfdeid: "",
srfsourcekey: "",
ibizbookname: "图书名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
ibizbookid: "图书标识",
author: "图书作者",
booknumber: "图书数量",
press: "图书出版社",
price: "图书价格",
},
uiactions: {
},
......
......@@ -2,17 +2,7 @@
<i-form :model="this.data" class='app-form' ref='wizardpanel_form_FirstForm' id='ibizbook_guideviewform' style="" @on-validate="formItemValidate">
<input style="display:none;" />
<row >
<tabs :animated="false" name='guideviewform' :value="detailsModel.wizardpanel_form_FirstForm.activiedPage"
@on-click="detailsModel.wizardpanel_form_FirstForm.clickPage($event)">
<tab-pane v-show="detailsModel.formpage1.visible" name='formpage1' :index="0" tab='guideviewform' class=''
:label="(h) =>{
return h('span',{
class:'caption'
},[
$t('entities.ibizbook.guideviewform_form.details.formpage1')
])
}">
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.group1.manageContainerStatus" :isManageContainer="detailsModel.group1.isManageContainer" @managecontainerclick="manageContainerClick('group1')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizbook.guideviewform_form.details.group1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.ibizbookname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
......@@ -29,61 +19,59 @@
</app-form-item>
</i-col>
</row>
</app-form-group>
</i-col>
</tab-pane>
<tab-pane v-show="detailsModel.formpage2.visible" name='formpage2' :index="1" tab='guideviewform' class=''
:label="(h) =>{
return h('span',{
class:'caption'
},[
$t('entities.ibizbook.guideviewform_form.details.formpage2')
])
}">
<i-col v-show="detailsModel.group2.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group :uiService="appUIService" :data="transformData(data)" :manageContainerStatus="detailsModel.group2.manageContainerStatus" :isManageContainer="detailsModel.group2.isManageContainer" @managecontainerclick="manageContainerClick('group2')" layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group2.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.ibizbook.guideviewform_form.details.group2')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.createman.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='createman' :itemRules="this.rules().createman" class='' :caption="$t('entities.ibizbook.guideviewform_form.details.createman')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createman.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='createman' :value="data.createman" dataType="TEXT" :precision="0"
tag='SysOperator' codelistType='DYNAMIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
<i-col v-show="detailsModel.author.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='author' :itemRules="this.rules().author" class='' :caption="$t('entities.ibizbook.guideviewform_form.details.author')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.author.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.author"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.author.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.createdate.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='createdate' :itemRules="this.rules().createdate" class='' :caption="$t('entities.ibizbook.guideviewform_form.details.createdate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.createdate.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='createdate' :value="data.createdate" dataType="DATETIME" valueFormat="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
<i-col v-show="detailsModel.booknumber.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='booknumber' :itemRules="this.rules().booknumber" class='' :caption="$t('entities.ibizbook.guideviewform_form.details.booknumber')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.booknumber.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.booknumber"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.booknumber.disabled"
type='number'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.updateman.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='updateman' :itemRules="this.rules().updateman" class='' :caption="$t('entities.ibizbook.guideviewform_form.details.updateman')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.updateman.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='updateman' :value="data.updateman" dataType="TEXT" :precision="0"
tag='SysOperator' codelistType='DYNAMIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
<i-col v-show="detailsModel.press.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='press' :itemRules="this.rules().press" class='' :caption="$t('entities.ibizbook.guideviewform_form.details.press')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.press.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.press"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.press.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.updatedate.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='updatedate' :itemRules="this.rules().updatedate" class='' :caption="$t('entities.ibizbook.guideviewform_form.details.updatedate')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.updatedate.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='updatedate' :value="data.updatedate" dataType="DATETIME" valueFormat="%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
<i-col v-show="detailsModel.price.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='price' :itemRules="this.rules().price" class='' :caption="$t('entities.ibizbook.guideviewform_form.details.price')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.price.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.price"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.price.disabled"
type='number'
:precision="2"
style="">
</input-box>
</app-form-item>
......@@ -95,8 +83,6 @@ tag='SysOperator' codelistType='DYNAMIC' :data="data" :context="context" :viewpa
</i-col>
</tab-pane>
</tabs>
</row>
</i-form>
</template>
......@@ -491,11 +477,11 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
srfdeid: null,
srfsourcekey: null,
ibizbookname: null,
createman: null,
createdate: null,
updateman: null,
updatedate: null,
ibizbookid: null,
author: null,
booknumber: null,
press: null,
price: null,
ibizbook:null,
};
......@@ -551,21 +537,21 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
{ required: this.detailsModel.ibizbookname.required, type: 'string', message: '图书名称 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ibizbookname.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' },
author: [
{ required: this.detailsModel.author.required, type: 'string', message: '图书作者 值不能为空', trigger: 'change' },
{ required: this.detailsModel.author.required, type: 'string', message: '图书作者 值不能为空', trigger: 'blur' },
],
createdate: [
{ required: this.detailsModel.createdate.required, type: 'string', message: '建立时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.createdate.required, type: 'string', message: '建立时间 值不能为空', trigger: 'blur' },
booknumber: [
{ required: this.detailsModel.booknumber.required, type: 'number', message: '图书数量 值不能为空', trigger: 'change' },
{ required: this.detailsModel.booknumber.required, type: 'number', message: '图书数量 值不能为空', trigger: 'blur' },
],
updateman: [
{ required: this.detailsModel.updateman.required, type: 'string', message: '更新人 值不能为空', trigger: 'change' },
{ required: this.detailsModel.updateman.required, type: 'string', message: '更新人 值不能为空', trigger: 'blur' },
press: [
{ required: this.detailsModel.press.required, type: 'string', message: '图书出版社 值不能为空', trigger: 'change' },
{ required: this.detailsModel.press.required, type: 'string', message: '图书出版社 值不能为空', trigger: 'blur' },
],
updatedate: [
{ required: this.detailsModel.updatedate.required, type: 'string', message: '更新时间 值不能为空', trigger: 'change' },
{ required: this.detailsModel.updatedate.required, type: 'string', message: '更新时间 值不能为空', trigger: 'blur' },
price: [
{ required: this.detailsModel.price.required, type: 'number', message: '图书价格 值不能为空', trigger: 'change' },
{ required: this.detailsModel.price.required, type: 'number', message: '图书价格 值不能为空', trigger: 'blur' },
],
}
}
......@@ -675,10 +661,6 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
group1: new FormGroupPanelModel({ caption: '图书基本信息', detailType: 'GROUPPANEL', name: 'group1', visible: true, isShowCaption: true, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizbook.guideviewform_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
formpage1: new FormPageModel({ caption: '基本信息', detailType: 'FORMPAGE', name: 'formpage1', visible: true, isShowCaption: true, form: this, isControlledContent: false })
,
group2: new FormGroupPanelModel({ caption: '操作信息', detailType: 'GROUPPANEL', name: 'group2', visible: true, isShowCaption: true, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizbook.guideviewform_form', extractMode: 'ITEM', details: [] }, isManageContainer: false, showMoreModeItems: [] })
,
formpage2: new FormPageModel({ caption: '其它', detailType: 'FORMPAGE', name: 'formpage2', visible: true, isShowCaption: true, form: this, isControlledContent: false })
,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
......@@ -698,17 +680,16 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
,
ibizbookname: new FormItemModel({ caption: '图书名称', detailType: 'FORMITEM', name: 'ibizbookname', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, 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 })
ibizbookid: new FormItemModel({ caption: '图书标识', detailType: 'FORMITEM', name: 'ibizbookid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
createdate: new FormItemModel({ caption: '建立时间', detailType: 'FORMITEM', name: 'createdate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
author: new FormItemModel({ caption: '图书作者', detailType: 'FORMITEM', name: 'author', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
updateman: new FormItemModel({ caption: '更新人', detailType: 'FORMITEM', name: 'updateman', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
booknumber: new FormItemModel({ caption: '图书数量', detailType: 'FORMITEM', name: 'booknumber', 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 })
press: new FormItemModel({ caption: '图书出版社', detailType: 'FORMITEM', name: 'press', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ibizbookid: new FormItemModel({ caption: '图书标识', detailType: 'FORMITEM', name: 'ibizbookid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
price: new FormItemModel({ caption: '图书价格', detailType: 'FORMITEM', name: 'price', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
wizardpanel_form_FirstForm: new FormTabPanelModel({ caption: 'wizardpanel_form_FirstForm', detailType: 'TABPANEL', name: 'wizardpanel_form_FirstForm', visible: true, isShowCaption: true, form: this, tabPages: [{ name: 'formpage1', index: 0, visible: true }, { name: 'formpage2', index: 1, visible: true }] }),
};
/**
......@@ -820,63 +801,63 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
}
/**
* 监控表单属性 createman
* 监控表单属性 ibizbookid
*
* @param {*} newVal
* @param {*} oldVal
* @memberof GuideViewFormBase
*/
@Watch('data.createman')
onCreatemanChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'createman', newVal: newVal, oldVal: oldVal });
@Watch('data.ibizbookid')
onIbizbookidChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'ibizbookid', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 createdate
* 监控表单属性 author
*
* @param {*} newVal
* @param {*} oldVal
* @memberof GuideViewFormBase
*/
@Watch('data.createdate')
onCreatedateChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'createdate', newVal: newVal, oldVal: oldVal });
@Watch('data.author')
onAuthorChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'author', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 updateman
* 监控表单属性 booknumber
*
* @param {*} newVal
* @param {*} oldVal
* @memberof GuideViewFormBase
*/
@Watch('data.updateman')
onUpdatemanChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'updateman', newVal: newVal, oldVal: oldVal });
@Watch('data.booknumber')
onBooknumberChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'booknumber', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 updatedate
* 监控表单属性 press
*
* @param {*} newVal
* @param {*} oldVal
* @memberof GuideViewFormBase
*/
@Watch('data.updatedate')
onUpdatedateChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'updatedate', newVal: newVal, oldVal: oldVal });
@Watch('data.press')
onPressChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'press', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ibizbookid
* 监控表单属性 price
*
* @param {*} newVal
* @param {*} oldVal
* @memberof GuideViewFormBase
*/
@Watch('data.ibizbookid')
onIbizbookidChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'ibizbookid', newVal: newVal, oldVal: oldVal });
@Watch('data.price')
onPriceChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'price', newVal: newVal, oldVal: oldVal });
}
......@@ -949,8 +930,6 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
}
/**
......
......@@ -61,29 +61,29 @@ export default class GuideViewFormModel {
dataType: 'TEXT',
},
{
name: 'createman',
prop: 'createman',
dataType: 'TEXT',
name: 'ibizbookid',
prop: 'ibizbookid',
dataType: 'GUID',
},
{
name: 'createdate',
prop: 'createdate',
dataType: 'DATETIME',
name: 'author',
prop: 'author',
dataType: 'TEXT',
},
{
name: 'updateman',
prop: 'updateman',
dataType: 'TEXT',
name: 'booknumber',
prop: 'booknumber',
dataType: 'INT',
},
{
name: 'updatedate',
prop: 'updatedate',
dataType: 'DATETIME',
name: 'press',
prop: 'press',
dataType: 'TEXT',
},
{
name: 'ibizbookid',
prop: 'ibizbookid',
dataType: 'GUID',
name: 'price',
prop: 'price',
dataType: 'FLOAT',
},
{
name: 'ibizbook',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册