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

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

上级 220fdeb0
......@@ -371,6 +371,9 @@ export default {
lendouttime: "借出日期",
returntime: "归还日期",
borrower: "借阅人",
formitem: "表格选择视图",
formitem1: "数据选择视图",
formitem2: "多选数据选择",
},
uiactions: {
},
......
......@@ -370,6 +370,9 @@ export default {
lendouttime: "借出日期",
returntime: "归还日期",
borrower: "借阅人",
formitem: "表格选择视图",
formitem1: "数据选择视图",
formitem2: "多选数据选择",
},
uiactions: {
},
......
......@@ -27,6 +27,7 @@ export const PageComponents = {
Vue.component('ibizhardware-index-pickup-data-view', () => import('@pages/sample/ibizhardware-index-pickup-data-view/ibizhardware-index-pickup-data-view.vue'));
Vue.component('ibizorder-sgrid-view2', () => import('@pages/sample/ibizorder-sgrid-view2/ibizorder-sgrid-view2.vue'));
Vue.component('ibizbooktree-grid-ex-view', () => import('@pages/sample/ibizbooktree-grid-ex-view/ibizbooktree-grid-ex-view.vue'));
Vue.component('ibizcustomer-mpickup-view', () => import('@pages/sample/ibizcustomer-mpickup-view/ibizcustomer-mpickup-view.vue'));
Vue.component('ibizuniproduct-pickup-grid-view', () => import('@pages/sample/ibizuniproduct-pickup-grid-view/ibizuniproduct-pickup-grid-view.vue'));
Vue.component('ibizorder-odsp-wfexp-view', () => import('@pages/sample/ibizorder-odsp-wfexp-view/ibizorder-odsp-wfexp-view.vue'));
Vue.component('ibizorder-detail-sgrid-view', () => import('@pages/sample/ibizorder-detail-sgrid-view/ibizorder-detail-sgrid-view.vue'));
......
......@@ -503,6 +503,20 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizbooktree-grid-ex-view/ibizbooktree-grid-ex-view.vue'),
},
{
path: 'ibizcustomers/:ibizcustomer?/mpickupview/:mpickupview?',
meta: {
caption: 'entities.ibizcustomer.views.mpickupview.caption',
info:'',
parameters: [
{ pathName: 'index', parameterName: 'index' },
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'mpickupview', parameterName: 'mpickupview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-mpickup-view/ibizcustomer-mpickup-view.vue'),
},
{
path: 'ibizuniproducts/:ibizuniproduct?/pickupgridview/:pickupgridview?',
meta: {
......@@ -3909,6 +3923,19 @@ const router = new Router({
},
component: () => import('@pages/sample/ibizuniproduct-pickup-grid-view/ibizuniproduct-pickup-grid-view.vue'),
},
{
path: '/ibizcustomers/:ibizcustomer?/mpickupview/:mpickupview?',
meta: {
caption: 'entities.ibizcustomer.views.mpickupview.caption',
info:'',
parameters: [
{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' },
{ pathName: 'mpickupview', parameterName: 'mpickupview' },
],
requireAuth: true,
},
component: () => import('@pages/sample/ibizcustomer-mpickup-view/ibizcustomer-mpickup-view.vue'),
},
{
path: '/ibizordertypes/:ibizordertype?/usr2editview/:usr2editview?',
meta: {
......
......@@ -524,7 +524,10 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'f7ce60a7707de1ef9f926b3f9d5d6954',
'b3a27af7c6e3cea3b600057793da2bd1',
'81e92e837f6fa81fed5b6beaa75f6bbd',
'460fc1d5b6f2e2012b281df34d929f3b',
],
},
{
......@@ -926,6 +929,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '81e92e837f6fa81fed5b6beaa75f6bbd',
viewmodule: 'Sample',
viewname: 'IBIZCustomerMPickupView',
viewaction: '',
viewdatachange: false,
refviews: [
'460fc1d5b6f2e2012b281df34d929f3b',
],
},
{
viewtag: '82014278d03dfb22039740c03d2a461f',
viewmodule: 'Sample',
......
......@@ -41,6 +41,66 @@
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='formitem' :itemRules="this.rules().formitem" class='' :caption="$t('entities.ibizbook.interfuncform_2_form.details.formitem')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.formitem.disabled"
name='formitem'
valueitem='borrower'
:value="data.formitem"
editortype="pickup-no-ac"
:pickupView="{ viewname: 'ibizcustomer-pickup-grid-view', title: $t('entities.ibizcustomer.views.pickupgridview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'pickupgridview', parameterName: 'pickupgridview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem1.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='formitem1' :itemRules="this.rules().formitem1" class='' :caption="$t('entities.ibizbook.interfuncform_2_form.details.formitem1')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem1.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.formitem1.disabled"
name='formitem1'
valueitem='borrower'
:value="data.formitem1"
editortype="pickup-no-ac"
:pickupView="{ viewname: 'ibizcustomer-pickup-view', title: $t('entities.ibizcustomer.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.formitem2.visible" :style="{}" :lg="{ span: 24, offset: 0 }" :xl="{ span: 8, offset: 0 }">
<app-form-item name='formitem2' :itemRules="this.rules().formitem2" class='' :caption="$t('entities.ibizbook.interfuncform_2_form.details.formitem2')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.formitem2.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box
v-model="data.formitem2"
@enter="onEnter($event)"
:disabled="detailsModel.formitem2.disabled"
type='text'
style="">
</input-box>
</app-form-item>
</i-col>
</row>
......@@ -447,6 +507,9 @@ export default class InterFuncForm_2Base extends Vue implements ControlInterface
lendouttime: null,
returntime: null,
borrower: null,
formitem: null,
formitem1: null,
formitem2: null,
ibizbook:null,
};
......@@ -510,6 +573,18 @@ export default class InterFuncForm_2Base extends Vue implements ControlInterface
{ required: this.detailsModel.returntime.required, type: 'string', message: '归还日期 值不能为空', trigger: 'change' },
{ required: this.detailsModel.returntime.required, type: 'string', message: '归还日期 值不能为空', trigger: 'blur' },
],
formitem: [
{ required: this.detailsModel.formitem.required, type: 'string', message: '表格选择视图 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem.required, type: 'string', message: '表格选择视图 值不能为空', trigger: 'blur' },
],
formitem1: [
{ required: this.detailsModel.formitem1.required, type: 'string', message: '数据选择视图 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem1.required, type: 'string', message: '数据选择视图 值不能为空', trigger: 'blur' },
],
formitem2: [
{ required: this.detailsModel.formitem2.required, type: 'string', message: '多选数据选择 值不能为空', trigger: 'change' },
{ required: this.detailsModel.formitem2.required, type: 'string', message: '多选数据选择 值不能为空', trigger: 'blur' },
],
}
}
......@@ -644,6 +719,12 @@ export default class InterFuncForm_2Base extends Vue implements ControlInterface
returntime: new FormItemModel({ caption: '归还日期', detailType: 'FORMITEM', name: 'returntime', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:true, disabled: false, enableCond: 3 })
,
borrower: new FormItemModel({ caption: '借阅人', detailType: 'FORMITEM', name: 'borrower', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem: new FormItemModel({ caption: '表格选择视图', detailType: 'FORMITEM', name: 'formitem', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem1: new FormItemModel({ caption: '数据选择视图', detailType: 'FORMITEM', name: 'formitem1', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
formitem2: new FormItemModel({ caption: '多选数据选择', detailType: 'FORMITEM', name: 'formitem2', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
};
......@@ -803,6 +884,42 @@ export default class InterFuncForm_2Base extends Vue implements ControlInterface
this.formDataChange({ name: 'borrower', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof InterFuncForm_2Base
*/
@Watch('data.formitem')
onFormitemChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem1 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof InterFuncForm_2Base
*/
@Watch('data.formitem1')
onFormitem1Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem1', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 formitem2 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof InterFuncForm_2Base
*/
@Watch('data.formitem2')
onFormitem2Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'formitem2', newVal: newVal, oldVal: oldVal });
}
/**
* 显示更多模式切换操作
......@@ -872,6 +989,9 @@ export default class InterFuncForm_2Base extends Vue implements ControlInterface
}
/**
......
......@@ -80,6 +80,18 @@ export default class InterFuncForm_2Model {
prop: 'borrower',
dataType: 'TEXT',
},
{
name: 'formitem',
dataType:'FORMITEM',
},
{
name: 'formitem1',
dataType:'FORMITEM',
},
{
name: 'formitem2',
dataType:'FORMITEM',
},
{
name: 'ibizbook',
prop: 'ibizbookid',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册