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

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

上级 3049733e
...@@ -40,6 +40,8 @@ ...@@ -40,6 +40,8 @@
:localParam ='{ }' :localParam ='{ }'
:disabled="detailsModel.formitem.disabled" :disabled="detailsModel.formitem.disabled"
name='formitem' name='formitem'
deMajorField='ibizcustomername'
deKeyField='ibizcustomer'
valueitem='borrower' valueitem='borrower'
:value="data.formitem" :value="data.formitem"
editortype="pickup-no-ac" editortype="pickup-no-ac"
...@@ -63,6 +65,8 @@ ...@@ -63,6 +65,8 @@
:localParam ='{ }' :localParam ='{ }'
:disabled="detailsModel.formitem1.disabled" :disabled="detailsModel.formitem1.disabled"
name='formitem1' name='formitem1'
deMajorField='ibizcustomername'
deKeyField='ibizcustomer'
valueitem='borrower' valueitem='borrower'
:value="data.formitem1" :value="data.formitem1"
editortype="pickup-no-ac" editortype="pickup-no-ac"
...@@ -88,7 +92,9 @@ ...@@ -88,7 +92,9 @@
:localParam ='{ }' :localParam ='{ }'
:service="service" :service="service"
valueitem='borrower' valueitem='borrower'
:acParams="{ }" deMajorField='ibizcustomername'
deKeyField='ibizcustomer'
:acParams="{ serviceName: 'IBIZCustomerService', interfaceName: 'FetchDefault'}"
:pickupView="{ viewname: 'ibizcustomer-mpickup-view', title: $t('entities.ibizcustomer.views.mpickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'mpickupview', parameterName: 'mpickupview' } ], placement:'' }" :pickupView="{ viewname: 'ibizcustomer-mpickup-view', title: $t('entities.ibizcustomer.views.mpickupview.title'), deResParameters: [], parameters: [{ pathName: 'ibizcustomers', parameterName: 'ibizcustomer' }, { pathName: 'mpickupview', parameterName: 'mpickupview' } ], placement:'' }"
@formitemvaluechange="onFormItemValueChange" @formitemvaluechange="onFormItemValueChange"
style=""> style="">
......
...@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils'; ...@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service'; import ControlService from '@/widgets/control-service';
import IBIZBOOKService from '@/service/ibizbook/ibizbook-service'; import IBIZBOOKService from '@/service/ibizbook/ibizbook-service';
import InterFuncForm_2Model from './inter-func-form-2-form-model'; import InterFuncForm_2Model from './inter-func-form-2-form-model';
import IBIZCustomerService from '@/service/ibizcustomer/ibizcustomer-service';
/** /**
...@@ -41,6 +42,14 @@ export default class InterFuncForm_2Service extends ControlService { ...@@ -41,6 +42,14 @@ export default class InterFuncForm_2Service extends ControlService {
this.model = new InterFuncForm_2Model(); this.model = new InterFuncForm_2Model();
} }
/**
* 客户服务对象
*
* @type {IBIZCustomerService}
* @memberof InterFuncForm_2Service
*/
public ibizcustomerService: IBIZCustomerService = new IBIZCustomerService();
/** /**
* 远端数据 * 远端数据
* *
...@@ -90,6 +99,9 @@ export default class InterFuncForm_2Service extends ControlService { ...@@ -90,6 +99,9 @@ export default class InterFuncForm_2Service 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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册