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

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

上级 a588ccb3
...@@ -452,6 +452,46 @@ ...@@ -452,6 +452,46 @@
} }
] ]
}, },
{
"srfkey": "CodeList",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "100",
"label": "第一图书馆",
"text": "第一图书馆",
"class":"",
"data":"",
"codename":"Item_100",
"value": "100",
"disabled": false
}
, {
"id": "300",
"label": "第三图书馆",
"text": "第三图书馆",
"class":"",
"data":"",
"codename":"Item_300",
"value": "300",
"disabled": false
}
, {
"id": "200",
"label": "第二图书馆",
"text": "第二图书馆",
"class":"",
"data":"",
"codename":"Item_200",
"value": "200",
"disabled": false
}
]
},
{ {
"srfkey": "BookType", "srfkey": "BookType",
"emptytext": "未定义", "emptytext": "未定义",
...@@ -579,6 +619,46 @@ ...@@ -579,6 +619,46 @@
"codename":"Item_3", "codename":"Item_3",
"value": "3", "value": "3",
"disabled": false
}
]
},
{
"srfkey": "CodeList25",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "10",
"label": "押金",
"text": "押金",
"class":"",
"data":"",
"codename":"Item_10",
"value": "10",
"disabled": false
}
, {
"id": "20",
"label": "身份证",
"text": "身份证",
"class":"",
"data":"",
"codename":"Item_20",
"value": "20",
"disabled": false
}
, {
"id": "30",
"label": "学生证",
"text": "学生证",
"class":"",
"data":"",
"codename":"Item_30",
"value": "30",
"disabled": false "disabled": false
} }
] ]
......
...@@ -66,6 +66,12 @@ export default { ...@@ -66,6 +66,12 @@ export default {
"4": "类型3", "4": "类型3",
"empty": "" "empty": ""
}, },
CodeList: {
"100": "第一图书馆",
"300": "第三图书馆",
"200": "第二图书馆",
"empty": ""
},
BookType: { BookType: {
"仙侠": "仙侠", "仙侠": "仙侠",
"武侠": "武侠", "武侠": "武侠",
...@@ -85,4 +91,10 @@ export default { ...@@ -85,4 +91,10 @@ export default {
"3": "已完成", "3": "已完成",
"empty": "" "empty": ""
}, },
CodeList25: {
"10": "押金",
"20": "身份证",
"30": "学生证",
"empty": ""
},
}; };
\ No newline at end of file
...@@ -66,6 +66,12 @@ export default { ...@@ -66,6 +66,12 @@ export default {
"4": "类型3", "4": "类型3",
"empty": "", "empty": "",
}, },
CodeList: {
"100": "第一图书馆",
"300": "第三图书馆",
"200": "第二图书馆",
"empty": "",
},
BookType: { BookType: {
"仙侠": "仙侠", "仙侠": "仙侠",
"武侠": "武侠", "武侠": "武侠",
...@@ -85,4 +91,10 @@ export default { ...@@ -85,4 +91,10 @@ export default {
"3": "已完成", "3": "已完成",
"empty": "", "empty": "",
}, },
CodeList25: {
"10": "押金",
"20": "身份证",
"30": "学生证",
"empty": "",
},
}; };
\ No newline at end of file
...@@ -230,6 +230,7 @@ export default { ...@@ -230,6 +230,7 @@ export default {
}, },
guideborrowform_form: { guideborrowform_form: {
details: { details: {
grouppanel1: "借阅基本信息",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -239,15 +240,18 @@ export default { ...@@ -239,15 +240,18 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
stepstatus: "步骤",
ibizbookid: "图书标识", ibizbookid: "图书标识",
borrower: "借阅人",
borrowway: "借阅方式",
lendouttime: "借出日期", lendouttime: "借出日期",
stepstatus: "步骤",
}, },
uiactions: { uiactions: {
}, },
}, },
guidereturnform_form: { guidereturnform_form: {
details: { details: {
grouppanel1: "归还基本信息",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -259,6 +263,7 @@ export default { ...@@ -259,6 +263,7 @@ export default {
srfsourcekey: "", srfsourcekey: "",
ibizbookid: "图书标识", ibizbookid: "图书标识",
stepstatus: "步骤", stepstatus: "步骤",
returnlib: "归还图馆",
returntime: "归还日期", returntime: "归还日期",
}, },
uiactions: { uiactions: {
......
...@@ -229,6 +229,7 @@ export default { ...@@ -229,6 +229,7 @@ export default {
}, },
guideborrowform_form: { guideborrowform_form: {
details: { details: {
grouppanel1: "借阅基本信息",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -238,15 +239,18 @@ export default { ...@@ -238,15 +239,18 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
stepstatus: "步骤",
ibizbookid: "图书标识", ibizbookid: "图书标识",
borrower: "借阅人",
borrowway: "借阅方式",
lendouttime: "借出日期", lendouttime: "借出日期",
stepstatus: "步骤",
}, },
uiactions: { uiactions: {
}, },
}, },
guidereturnform_form: { guidereturnform_form: {
details: { details: {
grouppanel1: "归还基本信息",
formpage1: "基本信息", formpage1: "基本信息",
srfupdatedate: "更新时间", srfupdatedate: "更新时间",
srforikey: "", srforikey: "",
...@@ -258,6 +262,7 @@ export default { ...@@ -258,6 +262,7 @@ export default {
srfsourcekey: "", srfsourcekey: "",
ibizbookid: "图书标识", ibizbookid: "图书标识",
stepstatus: "步骤", stepstatus: "步骤",
returnlib: "归还图馆",
returntime: "归还日期", returntime: "归还日期",
}, },
uiactions: { uiactions: {
......
...@@ -460,6 +460,46 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -460,6 +460,46 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
}, },
] ]
}, },
{
srfkey: "CodeList",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "100",
label: "第一图书馆",
text: "第一图书馆",
"class":"",
"data":"",
"codename":"Item_100",
value: "100",
disabled: false,
},
{
id: "300",
label: "第三图书馆",
text: "第三图书馆",
"class":"",
"data":"",
"codename":"Item_300",
value: "300",
disabled: false,
},
{
id: "200",
label: "第二图书馆",
text: "第二图书馆",
"class":"",
"data":"",
"codename":"Item_200",
value: "200",
disabled: false,
},
]
},
{ {
srfkey: "BookType", srfkey: "BookType",
emptytext: "未定义", emptytext: "未定义",
...@@ -587,6 +627,46 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => { ...@@ -587,6 +627,46 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
"codename":"Item_3", "codename":"Item_3",
value: "3", value: "3",
disabled: false,
},
]
},
{
srfkey: "CodeList25",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "10",
label: "押金",
text: "押金",
"class":"",
"data":"",
"codename":"Item_10",
value: "10",
disabled: false,
},
{
id: "20",
label: "身份证",
text: "身份证",
"class":"",
"data":"",
"codename":"Item_20",
value: "20",
disabled: false,
},
{
id: "30",
label: "学生证",
text: "学生证",
"class":"",
"data":"",
"codename":"Item_30",
value: "30",
disabled: false, disabled: false,
}, },
] ]
......
...@@ -55,21 +55,31 @@ export default class GuideBorrowFormModel { ...@@ -55,21 +55,31 @@ export default class GuideBorrowFormModel {
{ {
name: 'srfsourcekey', name: 'srfsourcekey',
}, },
{
name: 'stepstatus',
prop: 'stepstatus',
dataType: 'TEXT',
},
{ {
name: 'ibizbookid', name: 'ibizbookid',
prop: 'ibizbookid', prop: 'ibizbookid',
dataType: 'GUID', dataType: 'GUID',
}, },
{
name: 'borrower',
prop: 'borrower',
dataType: 'TEXT',
},
{
name: 'borrowway',
prop: 'borrowway',
dataType: 'SSCODELIST',
},
{ {
name: 'lendouttime', name: 'lendouttime',
prop: 'lendouttime', prop: 'lendouttime',
dataType: 'DATE', dataType: 'DATE',
}, },
{
name: 'stepstatus',
prop: 'stepstatus',
dataType: 'TEXT',
},
{ {
name: 'ibizbook', name: 'ibizbook',
prop: 'ibizbookid', prop: 'ibizbookid',
......
...@@ -2,12 +2,41 @@ ...@@ -2,12 +2,41 @@
<i-form :model="this.data" class='app-form' ref='wizardpanel_form_ThirdForm' id='ibizbook_guidereturnform' style="" @on-validate="formItemValidate"> <i-form :model="this.data" class='app-form' ref='wizardpanel_form_ThirdForm' id='ibizbook_guidereturnform' style="" @on-validate="formItemValidate">
<input style="display:none;" /> <input style="display:none;" />
<row > <row >
<i-col v-show="detailsModel.returntime.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <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.ibizbook.guidereturnform_form.details.grouppanel1')" :isShowCaption="true" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.returnlib.visible" :style="{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='returnlib' :itemRules="this.rules().returnlib" class='' :caption="$t('entities.ibizbook.guidereturnform_form.details.returnlib')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.returnlib.error" :isEmptyCaption="false" labelPos="LEFT">
<dropdown-list
v-model="data.returnlib"
:data="data"
:context="context"
:viewparams="viewparams"
:formState="formState"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.returnlib.disabled"
valueType="string"
tag='CodeList'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.returntime.visible" :style="{}" :sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12, offset: 0 }" :xl="{ span: 12, offset: 0 }">
<app-form-item name='returntime' :itemRules="this.rules().returntime" class='' :caption="$t('entities.ibizbook.guidereturnform_form.details.returntime')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.returntime.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='returntime' :itemRules="this.rules().returntime" class='' :caption="$t('entities.ibizbook.guidereturnform_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> <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> </app-form-item>
</i-col>
</row>
</app-form-group>
</i-col> </i-col>
...@@ -406,6 +435,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -406,6 +435,7 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
srfsourcekey: null, srfsourcekey: null,
ibizbookid: null, ibizbookid: null,
stepstatus: null, stepstatus: null,
returnlib: null,
returntime: null, returntime: null,
ibizbook:null, ibizbook:null,
}; };
...@@ -458,6 +488,10 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -458,6 +488,10 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
*/ */
public rules() :any { public rules() :any {
return { return {
returnlib: [
{ required: this.detailsModel.returnlib.required, type: 'string', message: '归还图馆 值不能为空', trigger: 'change' },
{ required: this.detailsModel.returnlib.required, type: 'string', message: '归还图馆 值不能为空', trigger: 'blur' },
],
returntime: [ returntime: [
{ required: this.detailsModel.returntime.required, type: 'string', message: '归还日期 值不能为空', trigger: 'change' }, { required: this.detailsModel.returntime.required, type: 'string', message: '归还日期 值不能为空', trigger: 'change' },
{ required: this.detailsModel.returntime.required, type: 'string', message: '归还日期 值不能为空', trigger: 'blur' }, { required: this.detailsModel.returntime.required, type: 'string', message: '归还日期 值不能为空', trigger: 'blur' },
...@@ -567,6 +601,8 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -567,6 +601,8 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
* @memberof GuideReturnFormBase * @memberof GuideReturnFormBase
*/ */
public detailsModel: any = { public detailsModel: any = {
grouppanel1: new FormGroupPanelModel({ caption: '归还基本信息', detailType: 'GROUPPANEL', name: 'grouppanel1', visible: true, isShowCaption: true, form: this, isControlledContent: false , uiActionGroup: { caption: '', langbase: 'entities.ibizbook.guidereturnform_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 })
, ,
srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) srfupdatedate: new FormItemModel({ caption: '更新时间', detailType: 'FORMITEM', name: 'srfupdatedate', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
...@@ -588,6 +624,8 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -588,6 +624,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 }) ibizbookid: new FormItemModel({ caption: '图书标识', detailType: 'FORMITEM', name: 'ibizbookid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
stepstatus: new FormItemModel({ caption: '步骤', detailType: 'FORMITEM', name: 'stepstatus', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) stepstatus: new FormItemModel({ caption: '步骤', detailType: 'FORMITEM', name: 'stepstatus', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
returnlib: new FormItemModel({ caption: '归还图馆', detailType: 'FORMITEM', name: 'returnlib', 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 }) returntime: new FormItemModel({ caption: '归还日期', detailType: 'FORMITEM', name: 'returntime', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
, ,
...@@ -713,6 +751,18 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -713,6 +751,18 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
this.formDataChange({ name: 'stepstatus', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'stepstatus', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 returnlib 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof GuideReturnFormBase
*/
@Watch('data.returnlib')
onReturnlibChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'returnlib', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 returntime 值 * 监控表单属性 returntime 值
* *
...@@ -791,6 +841,8 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface ...@@ -791,6 +841,8 @@ export default class GuideReturnFormBase extends Vue implements ControlInterface
} }
/** /**
......
...@@ -65,6 +65,11 @@ export default class GuideReturnFormModel { ...@@ -65,6 +65,11 @@ export default class GuideReturnFormModel {
prop: 'stepstatus', prop: 'stepstatus',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'returnlib',
prop: 'returnlib',
dataType: 'SSCODELIST',
},
{ {
name: 'returntime', name: 'returntime',
prop: 'returntime', prop: 'returntime',
......
...@@ -438,6 +438,7 @@ ...@@ -438,6 +438,7 @@
"field_logic_name":"借阅方式", "field_logic_name":"借阅方式",
"entity_name":"IBIZBOOK", "entity_name":"IBIZBOOK",
"field_type":"SSCODELIST", "field_type":"SSCODELIST",
"dict":"CodeList25",
"nullable":1, "nullable":1,
"physical_field":1, "physical_field":1,
"data_type":"VARCHAR", "data_type":"VARCHAR",
...@@ -452,6 +453,7 @@ ...@@ -452,6 +453,7 @@
"field_logic_name":"归还图馆", "field_logic_name":"归还图馆",
"entity_name":"IBIZBOOK", "entity_name":"IBIZBOOK",
"field_type":"SSCODELIST", "field_type":"SSCODELIST",
"dict":"CodeList",
"nullable":1, "nullable":1,
"physical_field":1, "physical_field":1,
"data_type":"VARCHAR", "data_type":"VARCHAR",
......
...@@ -11,8 +11,9 @@ public class StaticDict { ...@@ -11,8 +11,9 @@ public class StaticDict {
*/ */
@Getter @Getter
public enum CodeList25 { public enum CodeList25 {
ITEM_200("200","押金"), ITEM_10("10","押金"),
ITEM_100("100","身份证"); ITEM_20("20","身份证"),
ITEM_30("30","学生证");
private String value; private String value;
private String text; private String text;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册