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

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

上级 3049733e
......@@ -40,6 +40,8 @@
:localParam ='{ }'
:disabled="detailsModel.formitem.disabled"
name='formitem'
deMajorField='ibizcustomername'
deKeyField='ibizcustomer'
valueitem='borrower'
:value="data.formitem"
editortype="pickup-no-ac"
......@@ -63,6 +65,8 @@
:localParam ='{ }'
:disabled="detailsModel.formitem1.disabled"
name='formitem1'
deMajorField='ibizcustomername'
deKeyField='ibizcustomer'
valueitem='borrower'
:value="data.formitem1"
editortype="pickup-no-ac"
......@@ -88,7 +92,9 @@
:localParam ='{ }'
:service="service"
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:'' }"
@formitemvaluechange="onFormItemValueChange"
style="">
......
......@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import IBIZBOOKService from '@/service/ibizbook/ibizbook-service';
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 {
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 {
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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册