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

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

上级 7b5f1e50
......@@ -222,6 +222,7 @@ export default {
srfsourcekey: "",
ibizbookid: "图书标识",
lendouttime: "借出日期",
borrowstatus: "图书借阅状态",
},
uiactions: {
},
......@@ -240,6 +241,7 @@ export default {
srfsourcekey: "",
ibizbookid: "图书标识",
returntime: "归还日期",
borrowstatus: "图书借阅状态",
},
uiactions: {
},
......
......@@ -221,6 +221,7 @@ export default {
srfsourcekey: "",
ibizbookid: "图书标识",
lendouttime: "借出日期",
borrowstatus: "图书借阅状态",
},
uiactions: {
},
......@@ -239,6 +240,7 @@ export default {
srfsourcekey: "",
ibizbookid: "图书标识",
returntime: "归还日期",
borrowstatus: "图书借阅状态",
},
uiactions: {
},
......
......@@ -11,6 +11,25 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.borrowstatus.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='borrowstatus' :itemRules="this.rules().borrowstatus" class='' :caption="$t('entities.ibizbook.guideborrowform_form.details.borrowstatus')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.borrowstatus.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.borrowstatus"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.borrowstatus.disabled"
valueType="number"
style="width:100px;width: 100px;"
placeholder='请选择...'>
</dropdown-list>
</app-form-item>
</i-col>
</row>
......@@ -414,6 +433,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
srfsourcekey: null,
ibizbookid: null,
lendouttime: null,
borrowstatus: null,
ibizbook:null,
};
......@@ -469,6 +489,10 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
{ required: this.detailsModel.lendouttime.required, type: 'string', message: '借出日期 值不能为空', trigger: 'change' },
{ required: this.detailsModel.lendouttime.required, type: 'string', message: '借出日期 值不能为空', trigger: 'blur' },
],
borrowstatus: [
{ required: this.detailsModel.borrowstatus.required, type: 'number', message: '图书借阅状态 值不能为空', trigger: 'change' },
{ required: this.detailsModel.borrowstatus.required, type: 'number', message: '图书借阅状态 值不能为空', trigger: 'blur' },
],
}
}
......@@ -597,6 +621,8 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
ibizbookid: new FormItemModel({ caption: '图书标识', detailType: 'FORMITEM', name: 'ibizbookid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, 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 })
,
borrowstatus: new FormItemModel({ caption: '图书借阅状态', detailType: 'FORMITEM', name: 'borrowstatus', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
};
......@@ -720,6 +746,18 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
this.formDataChange({ name: 'lendouttime', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 borrowstatus 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof GuideBorrowFormBase
*/
@Watch('data.borrowstatus')
onBorrowstatusChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'borrowstatus', newVal: newVal, oldVal: oldVal });
}
/**
* 显示更多模式切换操作
......@@ -786,6 +824,7 @@ export default class GuideBorrowFormBase extends Vue implements ControlInterface
}
/**
......
......@@ -65,6 +65,11 @@ export default class GuideBorrowFormModel {
prop: 'lendouttime',
dataType: 'DATE',
},
{
name: 'borrowstatus',
prop: 'borrowstatus',
dataType: 'TRUEFALSE',
},
{
name: 'ibizbook',
prop: 'ibizbookid',
......
......@@ -11,6 +11,25 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.borrowstatus.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='borrowstatus' :itemRules="this.rules().borrowstatus" class='' :caption="$t('entities.ibizbook.guidereturnform_form.details.borrowstatus')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.borrowstatus.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.borrowstatus"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.borrowstatus.disabled"
valueType="number"
style="width:100px;width: 100px;"
placeholder='请选择...'>
</dropdown-list>
</app-form-item>
</i-col>
</row>
......@@ -414,6 +433,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
srfsourcekey: null,
ibizbookid: null,
returntime: null,
borrowstatus: null,
ibizbook:null,
};
......@@ -469,6 +489,10 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
{ required: this.detailsModel.returntime.required, type: 'string', message: '归还日期 值不能为空', trigger: 'change' },
{ required: this.detailsModel.returntime.required, type: 'string', message: '归还日期 值不能为空', trigger: 'blur' },
],
borrowstatus: [
{ required: this.detailsModel.borrowstatus.required, type: 'number', message: '图书借阅状态 值不能为空', trigger: 'change' },
{ required: this.detailsModel.borrowstatus.required, type: 'number', message: '图书借阅状态 值不能为空', trigger: 'blur' },
],
}
}
......@@ -597,6 +621,8 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
ibizbookid: new FormItemModel({ caption: '图书标识', detailType: 'FORMITEM', name: 'ibizbookid', 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 })
,
borrowstatus: new FormItemModel({ caption: '图书借阅状态', detailType: 'FORMITEM', name: 'borrowstatus', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
};
......@@ -720,6 +746,18 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
this.formDataChange({ name: 'returntime', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 borrowstatus 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof GuideReturnFormBase
*/
@Watch('data.borrowstatus')
onBorrowstatusChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'borrowstatus', newVal: newVal, oldVal: oldVal });
}
/**
* 显示更多模式切换操作
......@@ -786,6 +824,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
}
/**
......
......@@ -65,6 +65,11 @@ export default class GuideReturnFormModel {
prop: 'returntime',
dataType: 'DATE',
},
{
name: 'borrowstatus',
prop: 'borrowstatus',
dataType: 'TRUEFALSE',
},
{
name: 'ibizbook',
prop: 'ibizbookid',
......
......@@ -75,6 +75,25 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.borrowstatus.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='borrowstatus' :itemRules="this.rules().borrowstatus" class='' :caption="$t('entities.ibizbook.guideviewform_form.details.borrowstatus')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.borrowstatus.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.borrowstatus"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.borrowstatus.disabled"
valueType="number"
style="width:100px;width: 100px;"
placeholder='请选择...'>
</dropdown-list>
</app-form-item>
</i-col>
</row>
......@@ -482,6 +501,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
booknumber: null,
press: null,
price: null,
borrowstatus: null,
ibizbook:null,
};
......@@ -553,6 +573,10 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
{ required: this.detailsModel.price.required, type: 'number', message: '图书价格 值不能为空', trigger: 'change' },
{ required: this.detailsModel.price.required, type: 'number', message: '图书价格 值不能为空', trigger: 'blur' },
],
borrowstatus: [
{ required: this.detailsModel.borrowstatus.required, type: 'number', message: '图书借阅状态 值不能为空', trigger: 'change' },
{ required: this.detailsModel.borrowstatus.required, type: 'number', message: '图书借阅状态 值不能为空', trigger: 'blur' },
],
}
}
......@@ -689,6 +713,8 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
press: new FormItemModel({ caption: '图书出版社', detailType: 'FORMITEM', name: 'press', 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 })
,
borrowstatus: new FormItemModel({ caption: '图书借阅状态', detailType: 'FORMITEM', name: 'borrowstatus', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
};
......@@ -860,6 +886,18 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
this.formDataChange({ name: 'price', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 borrowstatus 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof GuideViewFormBase
*/
@Watch('data.borrowstatus')
onBorrowstatusChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'borrowstatus', newVal: newVal, oldVal: oldVal });
}
/**
* 显示更多模式切换操作
......@@ -930,6 +968,7 @@ export default class GuideViewFormBase extends Vue implements ControlInterface {
}
/**
......
......@@ -85,6 +85,11 @@ export default class GuideViewFormModel {
prop: 'price',
dataType: 'FLOAT',
},
{
name: 'borrowstatus',
prop: 'borrowstatus',
dataType: 'TRUEFALSE',
},
{
name: 'ibizbook',
prop: 'ibizbookid',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册