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

xignzi006 发布系统代码

上级 39d4e1bd
...@@ -40,6 +40,7 @@ export default { ...@@ -40,6 +40,7 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
entity2name: "客户", entity2name: "客户",
entity2id: "客户",
relationshipsid: "关系标识", relationshipsid: "关系标识",
}, },
uiactions: { uiactions: {
......
...@@ -39,6 +39,7 @@ export default { ...@@ -39,6 +39,7 @@ export default {
srfdeid: '', srfdeid: '',
srfsourcekey: '', srfsourcekey: '',
entity2name: '客户', entity2name: '客户',
entity2id: '客户',
relationshipsid: '关系标识', relationshipsid: '关系标识',
}, },
uiactions: { uiactions: {
......
...@@ -676,6 +676,7 @@ export const viewstate: any = { ...@@ -676,6 +676,7 @@ export const viewstate: any = {
viewaction: '', viewaction: '',
viewdatachange: false, viewdatachange: false,
refviews: [ refviews: [
'29bfcd628ab25e297248ff0524d12908',
], ],
}, },
{ {
......
...@@ -9,6 +9,24 @@ ...@@ -9,6 +9,24 @@
<i-col v-show="detailsModel.entity2name.visible" :style="{}" :lg="{ span: 24, offset: 0 }"> <i-col v-show="detailsModel.entity2name.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='entity2name' :itemRules="this.rules.entity2name" class='' :caption="$t('entities.listaccount.quickcreatebylist_form.details.entity2name')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.entity2name.error" :isEmptyCaption="false" labelPos="LEFT"> <app-form-item name='entity2name' :itemRules="this.rules.entity2name" class='' :caption="$t('entities.listaccount.quickcreatebylist_form.details.entity2name')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.entity2name.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker-select-view
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.entity2name.disabled"
name='entity2name'
deMajorField='accountname'
deKeyField='account'
:service="service"
valueitem='entity2id'
:value="data.entity2name"
:pickupView="{ viewname: 'account-pickup-view', title: $t('entities.account.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'accounts', parameterName: 'account' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker-select-view>
</app-form-item> </app-form-item>
...@@ -325,6 +343,7 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa ...@@ -325,6 +343,7 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
srfdeid: null, srfdeid: null,
srfsourcekey: null, srfsourcekey: null,
entity2name: null, entity2name: null,
entity2id: null,
relationshipsid: null, relationshipsid: null,
listaccount:null, listaccount:null,
}; };
...@@ -422,6 +441,12 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa ...@@ -422,6 +441,12 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
{ required: false, type: 'string', message: '客户 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '客户 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '客户 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '客户 值不能为空', trigger: 'blur' },
], ],
entity2id: [
{ type: 'string', message: '客户 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '客户 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '客户 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '客户 值不能为空', trigger: 'blur' },
],
relationshipsid: [ relationshipsid: [
{ type: 'string', message: '关系标识 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '关系标识 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '关系标识 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '关系标识 值必须为字符串类型', trigger: 'blur' },
...@@ -458,6 +483,8 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa ...@@ -458,6 +483,8 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
entity2name: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'entity2name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) entity2name: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'entity2name', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
entity2id: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'entity2id', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
relationshipsid: new FormItemModel({ caption: '关系标识', detailType: 'FORMITEM', name: 'relationshipsid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) relationshipsid: new FormItemModel({ caption: '关系标识', detailType: 'FORMITEM', name: 'relationshipsid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
...@@ -571,6 +598,18 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa ...@@ -571,6 +598,18 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
this.formDataChange({ name: 'entity2name', newVal: newVal, oldVal: oldVal }); this.formDataChange({ name: 'entity2name', newVal: newVal, oldVal: oldVal });
} }
/**
* 监控表单属性 entity2id 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof QuickCreateByList
*/
@Watch('data.entity2id')
onEntity2idChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'entity2id', newVal: newVal, oldVal: oldVal });
}
/** /**
* 监控表单属性 relationshipsid 值 * 监控表单属性 relationshipsid 值
* *
...@@ -631,6 +670,7 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa ...@@ -631,6 +670,7 @@ export default class QuickCreateByListBase extends Vue implements ControlInterfa
} }
/** /**
......
...@@ -60,6 +60,11 @@ export default class QuickCreateByListModel { ...@@ -60,6 +60,11 @@ export default class QuickCreateByListModel {
prop: 'entity2name', prop: 'entity2name',
dataType: 'PICKUPTEXT', dataType: 'PICKUPTEXT',
}, },
{
name: 'entity2id',
prop: 'entity2id',
dataType: 'PICKUP',
},
{ {
name: 'relationshipsid', name: 'relationshipsid',
prop: 'relationshipsid', prop: 'relationshipsid',
......
...@@ -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 ListAccountService from '@/service/list-account/list-account-service'; import ListAccountService from '@/service/list-account/list-account-service';
import QuickCreateByListModel from './quick-create-by-list-form-model'; import QuickCreateByListModel from './quick-create-by-list-form-model';
import AccountService from '@/service/account/account-service';
/** /**
...@@ -41,6 +42,14 @@ export default class QuickCreateByListService extends ControlService { ...@@ -41,6 +42,14 @@ export default class QuickCreateByListService extends ControlService {
this.model = new QuickCreateByListModel(); this.model = new QuickCreateByListModel();
} }
/**
* 客户服务对象
*
* @type {AccountService}
* @memberof QuickCreateByListService
*/
public accountService: AccountService = new AccountService();
/** /**
* 处理数据 * 处理数据
* *
...@@ -80,6 +89,9 @@ export default class QuickCreateByListService extends ControlService { ...@@ -80,6 +89,9 @@ export default class QuickCreateByListService extends ControlService {
*/ */
@Errorlog @Errorlog
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[]> {
if (Object.is(serviceName, 'AccountService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.accountService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'accountid', 'account');
}
return Promise.reject([]) return Promise.reject([])
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册