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

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

上级 bdbc412e
......@@ -129,6 +129,9 @@ export default {
type: "图书类型",
booknumber: "图书数量",
subtext: "图书描述",
icon: "图标",
returntime: "归还日期",
lendouttime: "借出日期",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
......
......@@ -128,6 +128,9 @@ export default {
type: "图书类型",
booknumber: "图书数量",
subtext: "图书描述",
icon: "图标",
returntime: "归还日期",
lendouttime: "借出日期",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
......
......@@ -17,10 +17,14 @@
<row>
<i-col v-show="detailsModel.ibizbookid.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='ibizbookid' :itemRules="this.rules().ibizbookid" class='' :caption="$t('entities.ibizbook.main_form.details.ibizbookid')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ibizbookid.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='ibizbookid' :value="data.ibizbookid" dataType="GUID" :precision="0"
:data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style="">
</app-span>
<input-box
v-model="data.ibizbookid"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.ibizbookid.disabled"
type='text'
style="">
</input-box>
</app-form-item>
......@@ -124,6 +128,34 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.icon.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='icon' :itemRules="this.rules().icon" class='' :caption="$t('entities.ibizbook.main_form.details.icon')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.icon.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.icon"
@enter="onEnter($event)"
unit=""
:disabled="detailsModel.icon.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.returntime.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='returntime' :itemRules="this.rules().returntime" class='' :caption="$t('entities.ibizbook.main_form.details.returntime')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.returntime.error" :isEmptyCaption="false" labelPos="LEFT">
<date-picker type="date" :transfer="true" format="yyyy-MM-dd" :value="data.returntime" :disabled="detailsModel.returntime.disabled" style="min-width: 150px; width:100px;" @on-change="(val1, val2) => { this.data.returntime = val1 }"></date-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.lendouttime.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='lendouttime' :itemRules="this.rules().lendouttime" class='' :caption="$t('entities.ibizbook.main_form.details.lendouttime')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.lendouttime.error" :isEmptyCaption="false" labelPos="LEFT">
<date-picker type="date" :transfer="true" format="yyyy-MM-dd" :value="data.lendouttime" :disabled="detailsModel.lendouttime.disabled" style="min-width: 150px; width:100px;" @on-change="(val1, val2) => { this.data.lendouttime = val1 }"></date-picker>
</app-form-item>
</i-col>
</row>
......@@ -594,6 +626,9 @@ export default class MainBase extends Vue implements ControlInterface {
type: null,
booknumber: null,
subtext: null,
icon: null,
returntime: null,
lendouttime: null,
createman: null,
createdate: null,
updateman: null,
......@@ -681,6 +716,18 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: this.detailsModel.subtext.required, type: 'string', message: '图书描述 值不能为空', trigger: 'change' },
{ required: this.detailsModel.subtext.required, type: 'string', message: '图书描述 值不能为空', trigger: 'blur' },
],
icon: [
{ required: this.detailsModel.icon.required, type: 'string', message: '图标 值不能为空', trigger: 'change' },
{ required: this.detailsModel.icon.required, type: 'string', message: '图标 值不能为空', trigger: 'blur' },
],
returntime: [
{ required: this.detailsModel.returntime.required, type: 'string', message: '归还日期 值不能为空', trigger: 'change' },
{ required: this.detailsModel.returntime.required, type: 'string', message: '归还日期 值不能为空', trigger: 'blur' },
],
lendouttime: [
{ required: this.detailsModel.lendouttime.required, type: 'string', message: '借出日期 值不能为空', trigger: 'change' },
{ required: this.detailsModel.lendouttime.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' },
......@@ -841,6 +888,12 @@ export default class MainBase extends Vue implements ControlInterface {
booknumber: new FormItemModel({ caption: '图书数量', detailType: 'FORMITEM', name: 'booknumber', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
subtext: new FormItemModel({ caption: '图书描述', detailType: 'FORMITEM', name: 'subtext', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
icon: new FormItemModel({ caption: '图标', detailType: 'FORMITEM', name: 'icon', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
returntime: new FormItemModel({ caption: '归还日期', detailType: 'FORMITEM', name: 'returntime', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
,
lendouttime: new FormItemModel({ caption: '借出日期', detailType: 'FORMITEM', name: 'lendouttime', 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 })
,
......@@ -1045,6 +1098,42 @@ export default class MainBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'subtext', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 icon 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.icon')
onIconChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'icon', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 returntime 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.returntime')
onReturntimeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'returntime', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 lendouttime 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@Watch('data.lendouttime')
onLendouttimeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'lendouttime', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 createman 值
*
......@@ -1167,6 +1256,9 @@ export default class MainBase extends Vue implements ControlInterface {
......
......@@ -95,6 +95,21 @@ export default class MainModel {
prop: 'subtext',
dataType: 'TEXT',
},
{
name: 'icon',
prop: 'icon',
dataType: 'TEXT',
},
{
name: 'returntime',
prop: 'returntime',
dataType: 'DATE',
},
{
name: 'lendouttime',
prop: 'lendouttime',
dataType: 'DATE',
},
{
name: 'createman',
prop: 'createman',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册