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

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

上级 d577a83e
...@@ -672,8 +672,7 @@ export default { ...@@ -672,8 +672,7 @@ export default {
ibizordername: "订单名称", ibizordername: "订单名称",
ibizorderid: "订单标识", ibizorderid: "订单标识",
ibizcustomerid: "客户标识", ibizcustomerid: "客户标识",
ibizcustomername: "客户名称", gridselect: "表格选择视图",
ordertype: "订单类型",
}, },
uiactions: { uiactions: {
}, },
...@@ -2060,9 +2059,13 @@ export default { ...@@ -2060,9 +2059,13 @@ export default {
uiactions: { uiactions: {
}, },
}, },
tree_treeview: { selecttree_treeview: {
nodata:"", nodata:"",
nodes: { nodes: {
root: "默认根节点",
orderdata: "订单数据",
ordertype: "订单类型",
orderstate: "订单状态",
}, },
uiactions: { uiactions: {
}, },
......
...@@ -671,8 +671,7 @@ export default { ...@@ -671,8 +671,7 @@ export default {
ibizordername: "订单名称", ibizordername: "订单名称",
ibizorderid: "订单标识", ibizorderid: "订单标识",
ibizcustomerid: "客户标识", ibizcustomerid: "客户标识",
ibizcustomername: "客户名称", gridselect: "表格选择视图",
ordertype: "订单类型",
}, },
uiactions: { uiactions: {
}, },
...@@ -2059,9 +2058,13 @@ export default { ...@@ -2059,9 +2058,13 @@ export default {
uiactions: { uiactions: {
}, },
}, },
tree_treeview: { selecttree_treeview: {
nodata:"", nodata:"",
nodes: { nodes: {
root: "默认根节点",
orderdata: "订单数据",
ordertype: "订单类型",
orderstate: "订单状态",
}, },
uiactions: { uiactions: {
}, },
......
...@@ -602,7 +602,7 @@ export const viewstate: any = { ...@@ -602,7 +602,7 @@ export const viewstate: any = {
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'f7ce60a7707de1ef9f926b3f9d5d6954', '460fc1d5b6f2e2012b281df34d929f3b',
], ],
}, },
{ {
......
...@@ -15,11 +15,6 @@ ...@@ -15,11 +15,6 @@
<template slot="empty"> <template slot="empty">
{{$t('entities.ibizbook.treetable_treegridex.nodata')}} {{$t('entities.ibizbook.treetable_treegridex.nodata')}}
</template> </template>
<el-table-column show-overflow-tooltip prop="author" label="作者" :width="50" :align="''">
<template v-slot="{ row }">
<span>{{ getColumnValue(row, 'author') }}</span>
</template>
</el-table-column>
<el-table-column show-overflow-tooltip prop="subtext" label="图书描述" :width="50" :align="''"> <el-table-column show-overflow-tooltip prop="subtext" label="图书描述" :width="50" :align="''">
<template v-slot="{ row }"> <template v-slot="{ row }">
<span>{{ getColumnValue(row, 'subtext') }}</span> <span>{{ getColumnValue(row, 'subtext') }}</span>
...@@ -30,6 +25,11 @@ ...@@ -30,6 +25,11 @@
<span>{{ getColumnValue(row, 'ibizbookname') }}</span> <span>{{ getColumnValue(row, 'ibizbookname') }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column show-overflow-tooltip prop="author" label="作者" :width="50" :align="''">
<template v-slot="{ row }">
<span>{{ getColumnValue(row, 'author') }}</span>
</template>
</el-table-column>
</el-table> </el-table>
</template> </template>
......
...@@ -19,15 +19,8 @@ ...@@ -19,15 +19,8 @@
</app-form-item> </app-form-item>
</i-col> </i-col>
<i-col v-show="detailsModel.ibizcustomerid.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }"> <i-col v-show="detailsModel.gridselect.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<app-form-item name='ibizcustomerid' :itemRules="this.rules().ibizcustomerid" class='' :caption="$t('entities.ibizorder.selectview_form_form.details.ibizcustomerid')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ibizcustomerid.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='gridselect' :itemRules="this.rules().gridselect" class='' :caption="$t('entities.ibizorder.selectview_form_form.details.gridselect')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.gridselect.error" :isEmptyCaption="false" labelPos="LEFT">
</app-form-item>
</i-col>
<i-col v-show="detailsModel.ibizcustomername.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<app-form-item name='ibizcustomername' :itemRules="this.rules().ibizcustomername" class='' :caption="$t('entities.ibizorder.selectview_form_form.details.ibizcustomername')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ibizcustomername.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker <app-picker
:formState="formState" :formState="formState"
...@@ -36,28 +29,19 @@ ...@@ -36,28 +29,19 @@
:viewparams="viewparams" :viewparams="viewparams"
:localContext ='{ }' :localContext ='{ }'
:localParam ='{ }' :localParam ='{ }'
:disabled="detailsModel.ibizcustomername.disabled" :disabled="detailsModel.gridselect.disabled"
name='ibizcustomername' name='gridselect'
deMajorField='ibizcustomername'
deKeyField='ibizcustomer'
:service="service" :service="service"
:acParams="{ serviceName: 'IBIZCustomerService', interfaceName: 'FetchDefault'}" :acParams="{ }"
valueitem='ibizcustomerid' valueitem='ibizcustomerid'
:value="data.ibizcustomername" :value="data.gridselect"
editortype="" editortype=""
:pickupView="{ viewname: 'ibizcustomer-pickup-view', title: $t('entities.ibizcustomer.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }" :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="" style=""
@formitemvaluechange="onFormItemValueChange"> @formitemvaluechange="onFormItemValueChange">
</app-picker> </app-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.ordertype.visible" :style="{}" :sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6, offset: 0 }">
<app-form-item name='ordertype' :itemRules="this.rules().ordertype" class='' :caption="$t('entities.ibizorder.selectview_form_form.details.ordertype')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ordertype.error" :isEmptyCaption="false" labelPos="LEFT">
</app-form-item> </app-form-item>
</i-col> </i-col>
...@@ -464,8 +448,7 @@ export default class SelectView_FormBase extends Vue implements ControlInterface ...@@ -464,8 +448,7 @@ export default class SelectView_FormBase extends Vue implements ControlInterface
ibizordername: null, ibizordername: null,
ibizorderid: null, ibizorderid: null,
ibizcustomerid: null, ibizcustomerid: null,
ibizcustomername: null, gridselect: null,
ordertype: null,
ibizorder:null, ibizorder:null,
}; };
...@@ -521,17 +504,9 @@ export default class SelectView_FormBase extends Vue implements ControlInterface ...@@ -521,17 +504,9 @@ export default class SelectView_FormBase extends Vue implements ControlInterface
{ required: this.detailsModel.ibizordername.required, type: 'string', message: '订单名称 值不能为空', trigger: 'change' }, { required: this.detailsModel.ibizordername.required, type: 'string', message: '订单名称 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ibizordername.required, type: 'string', message: '订单名称 值不能为空', trigger: 'blur' }, { required: this.detailsModel.ibizordername.required, type: 'string', message: '订单名称 值不能为空', trigger: 'blur' },
], ],
ibizcustomerid: [ gridselect: [
{ required: this.detailsModel.ibizcustomerid.required, type: 'string', message: '客户标识 值不能为空', trigger: 'change' }, { required: this.detailsModel.gridselect.required, type: 'string', message: '表格选择视图 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ibizcustomerid.required, type: 'string', message: '客户标识 值不能为空', trigger: 'blur' }, { required: this.detailsModel.gridselect.required, type: 'string', message: '表格选择视图 值不能为空', trigger: 'blur' },
],
ibizcustomername: [
{ required: this.detailsModel.ibizcustomername.required, type: 'string', message: '客户名称 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ibizcustomername.required, type: 'string', message: '客户名称 值不能为空', trigger: 'blur' },
],
ordertype: [
{ required: this.detailsModel.ordertype.required, type: 'string', message: '订单类型 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ordertype.required, type: 'string', message: '订单类型 值不能为空', trigger: 'blur' },
], ],
} }
} }
...@@ -664,9 +639,7 @@ export default class SelectView_FormBase extends Vue implements ControlInterface ...@@ -664,9 +639,7 @@ export default class SelectView_FormBase extends Vue implements ControlInterface
, ,
ibizcustomerid: new FormItemModel({ caption: '客户标识', detailType: 'FORMITEM', name: 'ibizcustomerid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) ibizcustomerid: new FormItemModel({ caption: '客户标识', detailType: 'FORMITEM', name: 'ibizcustomerid', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
ibizcustomername: new FormItemModel({ caption: '客户名称', detailType: 'FORMITEM', name: 'ibizcustomername', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 }) gridselect: new FormItemModel({ caption: '表格选择视图', detailType: 'FORMITEM', name: 'gridselect', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
,
ordertype: new FormItemModel({ caption: '订单类型', detailType: 'FORMITEM', name: 'ordertype', visible: true, isShowCaption: true, form: this, isControlledContent: false , required:false, disabled: false, enableCond: 3 })
, ,
}; };
...@@ -803,27 +776,15 @@ export default class SelectView_FormBase extends Vue implements ControlInterface ...@@ -803,27 +776,15 @@ export default class SelectView_FormBase extends Vue implements ControlInterface
} }
/** /**
* 监控表单属性 ibizcustomername * 监控表单属性 gridselect
* *
* @param {*} newVal * @param {*} newVal
* @param {*} oldVal * @param {*} oldVal
* @memberof SelectView_FormBase * @memberof SelectView_FormBase
*/ */
@Watch('data.ibizcustomername') @Watch('data.gridselect')
onIbizcustomernameChange(newVal: any, oldVal: any) { onGridselectChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'ibizcustomername', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'gridselect', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 ordertype 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof SelectView_FormBase
*/
@Watch('data.ordertype')
onOrdertypeChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'ordertype', newVal: newVal, oldVal: oldVal });
} }
...@@ -894,7 +855,6 @@ export default class SelectView_FormBase extends Vue implements ControlInterface ...@@ -894,7 +855,6 @@ export default class SelectView_FormBase extends Vue implements ControlInterface
} }
/** /**
......
...@@ -71,14 +71,8 @@ export default class SelectView_FormModel { ...@@ -71,14 +71,8 @@ export default class SelectView_FormModel {
dataType: 'PICKUP', dataType: 'PICKUP',
}, },
{ {
name: 'ibizcustomername', name: 'gridselect',
prop: 'ibizcustomername', dataType:'FORMITEM',
dataType: 'PICKUPTEXT',
},
{
name: 'ordertype',
prop: 'ordertype',
dataType: 'SSCODELIST',
}, },
{ {
name: 'ibizorder', name: 'ibizorder',
......
...@@ -2,7 +2,6 @@ import { Http,Util,Errorlog } from '@/utils'; ...@@ -2,7 +2,6 @@ import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service'; import ControlService from '@/widgets/control-service';
import IBIZOrderService from '@/service/ibizorder/ibizorder-service'; import IBIZOrderService from '@/service/ibizorder/ibizorder-service';
import SelectView_FormModel from './select-view-form-form-model'; import SelectView_FormModel from './select-view-form-form-model';
import IBIZCustomerService from '@/service/ibizcustomer/ibizcustomer-service';
/** /**
...@@ -42,14 +41,6 @@ export default class SelectView_FormService extends ControlService { ...@@ -42,14 +41,6 @@ export default class SelectView_FormService extends ControlService {
this.model = new SelectView_FormModel(); this.model = new SelectView_FormModel();
} }
/**
* 客户服务对象
*
* @type {IBIZCustomerService}
* @memberof SelectView_FormService
*/
public ibizcustomerService: IBIZCustomerService = new IBIZCustomerService();
/** /**
* 远端数据 * 远端数据
* *
...@@ -99,9 +90,6 @@ export default class SelectView_FormService extends ControlService { ...@@ -99,9 +90,6 @@ export default class SelectView_FormService extends ControlService {
public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> { public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> {
data.page = data.page ? data.page : 0; data.page = data.page ? data.page : 0;
data.size = data.size ? data.size : 1000; data.size = data.size ? data.size : 1000;
if (Object.is(serviceName, 'IBIZCustomerService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.ibizcustomerService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'ibizcustomerid', 'ibizcustomer');
}
return Promise.reject([]) return Promise.reject([])
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册