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

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

上级 d577a83e
......@@ -672,8 +672,7 @@ export default {
ibizordername: "订单名称",
ibizorderid: "订单标识",
ibizcustomerid: "客户标识",
ibizcustomername: "客户名称",
ordertype: "订单类型",
gridselect: "表格选择视图",
},
uiactions: {
},
......@@ -2060,9 +2059,13 @@ export default {
uiactions: {
},
},
tree_treeview: {
selecttree_treeview: {
nodata:"",
nodes: {
root: "默认根节点",
orderdata: "订单数据",
ordertype: "订单类型",
orderstate: "订单状态",
},
uiactions: {
},
......
......@@ -671,8 +671,7 @@ export default {
ibizordername: "订单名称",
ibizorderid: "订单标识",
ibizcustomerid: "客户标识",
ibizcustomername: "客户名称",
ordertype: "订单类型",
gridselect: "表格选择视图",
},
uiactions: {
},
......@@ -2059,9 +2058,13 @@ export default {
uiactions: {
},
},
tree_treeview: {
selecttree_treeview: {
nodata:"",
nodes: {
root: "默认根节点",
orderdata: "订单数据",
ordertype: "订单类型",
orderstate: "订单状态",
},
uiactions: {
},
......
......@@ -602,7 +602,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'f7ce60a7707de1ef9f926b3f9d5d6954',
'460fc1d5b6f2e2012b281df34d929f3b',
],
},
{
......
......@@ -15,11 +15,6 @@
<template slot="empty">
{{$t('entities.ibizbook.treetable_treegridex.nodata')}}
</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="''">
<template v-slot="{ row }">
<span>{{ getColumnValue(row, 'subtext') }}</span>
......@@ -30,6 +25,11 @@
<span>{{ getColumnValue(row, 'ibizbookname') }}</span>
</template>
</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>
</template>
......
......@@ -19,15 +19,8 @@
</app-form-item>
</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 }">
<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>
</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">
<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='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-picker
:formState="formState"
......@@ -36,28 +29,19 @@
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.ibizcustomername.disabled"
name='ibizcustomername'
:disabled="detailsModel.gridselect.disabled"
name='gridselect'
deMajorField='ibizcustomername'
deKeyField='ibizcustomer'
:service="service"
:acParams="{ serviceName: 'IBIZCustomerService', interfaceName: 'FetchDefault'}"
:acParams="{ }"
valueitem='ibizcustomerid'
:value="data.ibizcustomername"
:value="data.gridselect"
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=""
@formitemvaluechange="onFormItemValueChange">
</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>
</i-col>
......@@ -464,8 +448,7 @@ export default class SelectView_FormBase extends Vue implements ControlInterface
ibizordername: null,
ibizorderid: null,
ibizcustomerid: null,
ibizcustomername: null,
ordertype: null,
gridselect: null,
ibizorder:null,
};
......@@ -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: 'blur' },
],
ibizcustomerid: [
{ required: this.detailsModel.ibizcustomerid.required, type: 'string', message: '客户标识 值不能为空', trigger: 'change' },
{ required: this.detailsModel.ibizcustomerid.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' },
gridselect: [
{ required: this.detailsModel.gridselect.required, type: 'string', message: '表格选择视图 值不能为空', trigger: 'change' },
{ required: this.detailsModel.gridselect.required, type: 'string', message: '表格选择视图 值不能为空', trigger: 'blur' },
],
}
}
......@@ -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 })
,
ibizcustomername: new FormItemModel({ caption: '客户名称', detailType: 'FORMITEM', name: 'ibizcustomername', 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 })
gridselect: new FormItemModel({ caption: '表格选择视图', detailType: 'FORMITEM', name: 'gridselect', 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
}
/**
* 监控表单属性 ibizcustomername
* 监控表单属性 gridselect
*
* @param {*} newVal
* @param {*} oldVal
* @memberof SelectView_FormBase
*/
@Watch('data.ibizcustomername')
onIbizcustomernameChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'ibizcustomername', 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 });
@Watch('data.gridselect')
onGridselectChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'gridselect', newVal: newVal, oldVal: oldVal });
}
......@@ -894,7 +855,6 @@ export default class SelectView_FormBase extends Vue implements ControlInterface
}
/**
......
......@@ -71,14 +71,8 @@ export default class SelectView_FormModel {
dataType: 'PICKUP',
},
{
name: 'ibizcustomername',
prop: 'ibizcustomername',
dataType: 'PICKUPTEXT',
},
{
name: 'ordertype',
prop: 'ordertype',
dataType: 'SSCODELIST',
name: 'gridselect',
dataType:'FORMITEM',
},
{
name: 'ibizorder',
......
......@@ -2,7 +2,6 @@ import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import IBIZOrderService from '@/service/ibizorder/ibizorder-service';
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 {
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 {
public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> {
data.page = data.page ? data.page : 0;
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([])
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册