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

xignzi006 发布系统代码

上级 4c2f71b9
......@@ -269,6 +269,16 @@
"viewtag": "7FCD2E75-E34A-493C-922E-8AE47BCE08CA",
"memo": ""
},
"contactpickupgridview": {
"title": "contact选择表格视图",
"caption": "联系人",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Base",
"viewname": "ContactPickupGridView",
"viewfilename": "contact-pickup-grid-view",
"viewtag": "85781d107d628dfc6cdf9693797f073e",
"memo": "系统自动添加"
},
"taskquickcreate": {
"title": "任务",
"caption": "任务",
......@@ -429,6 +439,16 @@
"viewtag": "b3cfac5362b3bfb70d1471932f120fa5",
"memo": "系统自动添加"
},
"contactpickupview": {
"title": "contact数据选择视图",
"caption": "联系人",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "Base",
"viewname": "ContactPickupView",
"viewfilename": "contact-pickup-view",
"viewtag": "b6b6215e439e78cdf6959b6f45bd7927",
"memo": "系统自动添加"
},
"activitypointerbyparentkey": {
"title": "活动",
"caption": "活动",
......
......@@ -256,28 +256,12 @@ export default {
srfdeid: "",
srfsourcekey: "",
address1_addressid: "地址 1: ID",
address1_name: "地址 1: 名称",
address1_addresstypecode: "地址 1: 地址类型",
address1_city: "地址 1: 市/县",
address1_composite: "地址 1",
address1_country: "地址 1: 国家/地区",
address1_county: "地址 1: 县",
address1_fax: "地址 1: 传真",
address1_freighttermscode: "地址 1: 货运条款",
address1_latitude: "地址 1: 纬度",
address1_line1: "地址 1: 街道 1",
address1_line2: "地址 1: 街道 2",
address1_line3: "地址 1: 街道 3",
address1_longitude: "地址 1: 经度",
address1_name: "地址 1: 名称",
address1_postalcode: "地址 1: 邮政编码",
address1_postofficebox: "地址 1: 邮政信箱",
address1_primarycontactname: "地址 1: 主要联系人姓名",
address1_shippingmethodcode: "地址 1: 送货方式",
address1_stateorprovince: "地址 1: 省/市/自治区",
address1_telephone2: "地址 1: 电话 2",
address1_telephone3: "地址 1: 电话 3",
address1_upszone: "地址 1: UPS 区域",
address1_utcoffset: "地址 1: UTC 时差",
address1_city: "地址 1: 市/县",
address1_county: "地址 1: 县",
accountid: "客户",
},
uiactions: {
......@@ -358,7 +342,9 @@ export default {
srfuf: "",
srfdeid: "",
srfsourcekey: "",
accountname: "客户名称",
primarycontactname: "主要联系人",
emailaddress1: "电子邮件",
primarycontactid: "主要联系人",
accountid: "客户",
},
uiactions: {
......
......@@ -255,28 +255,12 @@ export default {
srfdeid: '',
srfsourcekey: '',
address1_addressid: '地址 1: ID',
address1_name: '地址 1: 名称',
address1_addresstypecode: '地址 1: 地址类型',
address1_city: '地址 1: 市/县',
address1_composite: '地址 1',
address1_country: '地址 1: 国家/地区',
address1_county: '地址 1: 县',
address1_fax: '地址 1: 传真',
address1_freighttermscode: '地址 1: 货运条款',
address1_latitude: '地址 1: 纬度',
address1_line1: '地址 1: 街道 1',
address1_line2: '地址 1: 街道 2',
address1_line3: '地址 1: 街道 3',
address1_longitude: '地址 1: 经度',
address1_name: '地址 1: 名称',
address1_postalcode: '地址 1: 邮政编码',
address1_postofficebox: '地址 1: 邮政信箱',
address1_primarycontactname: '地址 1: 主要联系人姓名',
address1_shippingmethodcode: '地址 1: 送货方式',
address1_stateorprovince: '地址 1: 省/市/自治区',
address1_telephone2: '地址 1: 电话 2',
address1_telephone3: '地址 1: 电话 3',
address1_upszone: '地址 1: UPS 区域',
address1_utcoffset: '地址 1: UTC 时差',
address1_city: '地址 1: 市/县',
address1_county: '地址 1: 县',
accountid: '客户',
},
uiactions: {
......@@ -357,7 +341,9 @@ export default {
srfuf: '',
srfdeid: '',
srfsourcekey: '',
accountname: '客户名称',
primarycontactname: '主要联系人',
emailaddress1: '电子邮件',
primarycontactid: '主要联系人',
accountid: '客户',
},
uiactions: {
......
......@@ -206,10 +206,18 @@ export default {
gridview: {
caption: "联系人",
title: 'contact表格视图',
},
pickupgridview: {
caption: "联系人",
title: 'contact选择表格视图',
},
editview: {
caption: "联系人",
title: 'contact编辑视图',
},
pickupview: {
caption: "联系人",
title: 'contact数据选择视图',
},
optionview: {
caption: "联系人",
......
......@@ -205,10 +205,18 @@ export default {
gridview: {
caption: '联系人',
title: 'contact表格视图',
},
pickupgridview: {
caption: '联系人',
title: 'contact选择表格视图',
},
editview: {
caption: '联系人',
title: 'contact编辑视图',
},
pickupview: {
caption: '联系人',
title: 'contact数据选择视图',
},
optionview: {
caption: '联系人',
......
......@@ -223,6 +223,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "CenteralPortal",
"viewtag": "7FCD2E75-E34A-493C-922E-8AE47BCE08CA"
},
"contactpickupgridview": {
"title": "contact选择表格视图",
"caption": "联系人",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Base",
"viewname": "ContactPickupGridView",
"viewtag": "85781d107d628dfc6cdf9693797f073e"
},
"taskquickcreate": {
"title": "任务",
"caption": "任务",
......@@ -351,6 +359,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "CampaignResponseEditView",
"viewtag": "b3cfac5362b3bfb70d1471932f120fa5"
},
"contactpickupview": {
"title": "contact数据选择视图",
"caption": "联系人",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "Base",
"viewname": "ContactPickupView",
"viewtag": "b6b6215e439e78cdf6959b6f45bd7927"
},
"activitypointerbyparentkey": {
"title": "活动",
"caption": "活动",
......
......@@ -19,6 +19,7 @@ export const PageComponents = {
Vue.component('account-account-info', () => import('@pages/base/account-account-info/account-account-info.vue'));
Vue.component('invoice-edit-view', () => import('@pages/finance/invoice-edit-view/invoice-edit-view.vue'));
Vue.component('account-summary', () => import('@pages/base/account-summary/account-summary.vue'));
Vue.component('contact-pickup-view', () => import('@pages/base/contact-pickup-view/contact-pickup-view.vue'));
Vue.component('account-contact-setting', () => import('@pages/base/account-contact-setting/account-contact-setting.vue'));
Vue.component('opportunity-grid-view', () => import('@pages/sales/opportunity-grid-view/opportunity-grid-view.vue'));
Vue.component('letter-edit-view', () => import('@pages/base/letter-edit-view/letter-edit-view.vue'));
......@@ -27,6 +28,7 @@ export const PageComponents = {
Vue.component('account-address', () => import('@pages/base/account-address/account-address.vue'));
Vue.component('appointment-edit-view', () => import('@pages/base/appointment-edit-view/appointment-edit-view.vue'));
Vue.component('email-edit-view', () => import('@pages/base/email-edit-view/email-edit-view.vue'));
Vue.component('contact-pickup-grid-view', () => import('@pages/base/contact-pickup-grid-view/contact-pickup-grid-view.vue'));
Vue.component('goal-grid-view', () => import('@pages/sales/goal-grid-view/goal-grid-view.vue'));
Vue.component('contact-grid-view', () => import('@pages/base/contact-grid-view/contact-grid-view.vue'));
Vue.component('service-appointment-edit-view', () => import('@pages/service/service-appointment-edit-view/service-appointment-edit-view.vue'));
......
......@@ -300,6 +300,20 @@ const router = new Router({
},
component: () => import('@pages/base/account-summary/account-summary.vue'),
},
{
path: 'contacts/:contact?/pickupview/:pickupview?',
meta: {
caption: 'entities.contact.views.pickupview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'pickupview', parameterName: 'pickupview' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-pickup-view/contact-pickup-view.vue'),
},
{
path: 'accounts/:account?/contactsetting/:contactsetting?',
meta: {
......@@ -412,6 +426,20 @@ const router = new Router({
},
component: () => import('@pages/base/email-edit-view/email-edit-view.vue'),
},
{
path: 'contacts/:contact?/pickupgridview/:pickupgridview?',
meta: {
caption: 'entities.contact.views.pickupgridview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'pickupgridview', parameterName: 'pickupgridview' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-pickup-grid-view/contact-pickup-grid-view.vue'),
},
{
path: 'goals/:goal?/gridview/:gridview?',
meta: {
......
......@@ -554,6 +554,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'b6b6215e439e78cdf6959b6f45bd7927',
],
},
{
......
......@@ -80,7 +80,9 @@ export default class ContactUIServiceBase extends UIService {
*/
public initViewMap(){
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'contacts'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'contacts'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'contacts'});
this.allViewMap.set(':',{viewname:'optionview',srfappde:'contacts'});
}
......
......@@ -6,56 +6,56 @@
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.account.accountinfo_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="true" >
<row>
<i-col v-show="detailsModel.accountname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.accountname.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='accountname' :itemRules="this.rules.accountname" class='' :caption="$t('entities.account.accountinfo_form.details.accountname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.accountname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='accountname' :value="data.accountname" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.telephone1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.telephone1.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='telephone1' :itemRules="this.rules.telephone1" class='' :caption="$t('entities.account.accountinfo_form.details.telephone1')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.telephone1.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='telephone1' :value="data.telephone1" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.fax.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.fax.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='fax' :itemRules="this.rules.fax" class='' :caption="$t('entities.account.accountinfo_form.details.fax')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.fax.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='fax' :value="data.fax" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.websiteurl.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.websiteurl.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='websiteurl' :itemRules="this.rules.websiteurl" class='' :caption="$t('entities.account.accountinfo_form.details.websiteurl')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.websiteurl.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='websiteurl' :value="data.websiteurl" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.parentaccountname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.parentaccountname.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='parentaccountname' :itemRules="this.rules.parentaccountname" class='' :caption="$t('entities.account.accountinfo_form.details.parentaccountname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.parentaccountname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='parentaccountname' :value="data.parentaccountname" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.tickersymbol.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.tickersymbol.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='tickersymbol' :itemRules="this.rules.tickersymbol" class='' :caption="$t('entities.account.accountinfo_form.details.tickersymbol')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.tickersymbol.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='tickersymbol' :value="data.tickersymbol" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.customertypecode.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.customertypecode.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='customertypecode' :itemRules="this.rules.customertypecode" class='' :caption="$t('entities.account.accountinfo_form.details.customertypecode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.customertypecode.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='customertypecode' :value="data.customertypecode" tag='Account__CustomerTypeCode' codelistType='STATIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.defaultpricelevelname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.defaultpricelevelname.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='defaultpricelevelname' :itemRules="this.rules.defaultpricelevelname" class='' :caption="$t('entities.account.accountinfo_form.details.defaultpricelevelname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.defaultpricelevelname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='defaultpricelevelname' :value="data.defaultpricelevelname" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
......
......@@ -60,116 +60,36 @@ export default class AddressModel {
prop: 'address1_addressid',
dataType: 'TEXT',
},
{
name: 'address1_addresstypecode',
prop: 'address1_addresstypecode',
dataType: 'SSCODELIST',
},
{
name: 'address1_city',
prop: 'address1_city',
dataType: 'TEXT',
},
{
name: 'address1_composite',
prop: 'address1_composite',
dataType: 'TEXT',
},
{
name: 'address1_country',
prop: 'address1_country',
dataType: 'TEXT',
},
{
name: 'address1_county',
prop: 'address1_county',
dataType: 'TEXT',
},
{
name: 'address1_fax',
prop: 'address1_fax',
dataType: 'TEXT',
},
{
name: 'address1_freighttermscode',
prop: 'address1_freighttermscode',
dataType: 'SSCODELIST',
},
{
name: 'address1_latitude',
prop: 'address1_latitude',
dataType: 'DECIMAL',
},
{
name: 'address1_line1',
prop: 'address1_line1',
dataType: 'TEXT',
},
{
name: 'address1_line2',
prop: 'address1_line2',
dataType: 'TEXT',
},
{
name: 'address1_line3',
prop: 'address1_line3',
dataType: 'TEXT',
},
{
name: 'address1_longitude',
prop: 'address1_longitude',
dataType: 'DECIMAL',
},
{
name: 'address1_name',
prop: 'address1_name',
dataType: 'TEXT',
},
{
name: 'address1_postalcode',
prop: 'address1_postalcode',
dataType: 'TEXT',
},
{
name: 'address1_postofficebox',
prop: 'address1_postofficebox',
dataType: 'TEXT',
name: 'address1_addresstypecode',
prop: 'address1_addresstypecode',
dataType: 'SSCODELIST',
},
{
name: 'address1_primarycontactname',
prop: 'address1_primarycontactname',
name: 'address1_country',
prop: 'address1_country',
dataType: 'TEXT',
},
{
name: 'address1_shippingmethodcode',
prop: 'address1_shippingmethodcode',
dataType: 'SSCODELIST',
},
{
name: 'address1_stateorprovince',
prop: 'address1_stateorprovince',
dataType: 'TEXT',
},
{
name: 'address1_telephone2',
prop: 'address1_telephone2',
dataType: 'TEXT',
},
{
name: 'address1_telephone3',
prop: 'address1_telephone3',
name: 'address1_city',
prop: 'address1_city',
dataType: 'TEXT',
},
{
name: 'address1_upszone',
prop: 'address1_upszone',
name: 'address1_county',
prop: 'address1_county',
dataType: 'TEXT',
},
{
name: 'address1_utcoffset',
prop: 'address1_utcoffset',
dataType: 'INT',
},
{
name: 'accountid',
prop: 'accountid',
......
......@@ -6,28 +6,28 @@
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.account.introduction_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="true" >
<row>
<i-col v-show="detailsModel.industrycode.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.industrycode.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='industrycode' :itemRules="this.rules.industrycode" class='' :caption="$t('entities.account.introduction_form.details.industrycode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.industrycode.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='industrycode' :value="data.industrycode" tag='Account__IndustryCode' codelistType='STATIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.sic.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.sic.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='sic' :itemRules="this.rules.sic" class='' :caption="$t('entities.account.introduction_form.details.sic')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.sic.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='sic' :value="data.sic" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.ownershipcode.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.ownershipcode.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='ownershipcode' :itemRules="this.rules.ownershipcode" class='' :caption="$t('entities.account.introduction_form.details.ownershipcode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.ownershipcode.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='ownershipcode' :value="data.ownershipcode" tag='Account__OwnershipCode' codelistType='STATIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.description.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<i-col v-show="detailsModel.description.visible" :style="{}" :md="{ span: 24, offset: 0 }" :lg="{ span: 24, offset: 0 }" :xl="{ span: 24, offset: 0 }">
<app-form-item name='description' :itemRules="this.rules.description" class='' :caption="$t('entities.account.introduction_form.details.description')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.description.error" :isEmptyCaption="false" labelPos="LEFT">
<app-span name='description' :value="data.description" :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
......
......@@ -6,9 +6,36 @@
<i-col v-show="detailsModel.group1.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-group layoutType="TABLE_24COL" titleStyle="" class='' :uiActionGroup="detailsModel.group1.uiActionGroup" @groupuiactionclick="groupUIActionClick($event)" :caption="$t('entities.account.majorcontact_form.details.group1')" :isShowCaption="false" uiStyle="DEFAULT" :titleBarCloseMode="0" :isInfoGroupMode="false" >
<row>
<i-col v-show="detailsModel.accountname.visible" :style="{}" :lg="{ span: 24, offset: 0 }">
<app-form-item name='accountname' :itemRules="this.rules.accountname" class='' :caption="$t('entities.account.majorcontact_form.details.accountname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.accountname.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.accountname" @enter="onEnter($event)" unit="" :disabled="detailsModel.accountname.disabled" type='text' style=""></input-box>
<i-col v-show="detailsModel.primarycontactname.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='primarycontactname' :itemRules="this.rules.primarycontactname" class='' :caption="$t('entities.account.majorcontact_form.details.primarycontactname')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.primarycontactname.error" :isEmptyCaption="false" labelPos="LEFT">
<app-picker
:formState="formState"
:data="data"
:context="context"
:viewparams="viewparams"
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.primarycontactname.disabled"
name='primarycontactname'
deMajorField='fullname'
deKeyField='contact'
:service="service"
:acParams="{ serviceName: 'ContactService', interfaceName: 'FetchDefault'}"
valueitem='primarycontactid'
:value="data.primarycontactname"
editortype=""
:pickupView="{ viewname: 'contact-pickup-view', title: $t('entities.contact.views.pickupview.title'), deResParameters: [], parameters: [{ pathName: 'contacts', parameterName: 'contact' }, { pathName: 'pickupview', parameterName: 'pickupview' } ], placement:'' }"
style=""
@formitemvaluechange="onFormItemValueChange">
</app-picker>
</app-form-item>
</i-col>
<i-col v-show="detailsModel.emailaddress1.visible" :style="{}" :md="{ span: 12, offset: 0 }" :lg="{ span: 8, offset: 0 }" :xl="{ span: 6, offset: 0 }">
<app-form-item name='emailaddress1' :itemRules="this.rules.emailaddress1" class='' :caption="$t('entities.account.majorcontact_form.details.emailaddress1')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.emailaddress1.error" :isEmptyCaption="false" labelPos="LEFT">
<input-box v-model="data.emailaddress1" @enter="onEnter($event)" unit="" :disabled="detailsModel.emailaddress1.disabled" type='text' style=""></input-box>
</app-form-item>
</i-col>
......@@ -323,7 +350,9 @@ export default class MajorContactBase extends Vue implements ControlInterface {
srfuf: null,
srfdeid: null,
srfsourcekey: null,
accountname: null,
primarycontactname: null,
emailaddress1: null,
primarycontactid: null,
accountid: null,
account:null,
};
......@@ -415,11 +444,23 @@ export default class MajorContactBase extends Vue implements ControlInterface {
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' },
],
accountname: [
{ type: 'string', message: '客户名称 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '客户名称 值必须为字符串类型', trigger: 'blur' },
{ required: true, type: 'string', message: '客户名称 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '客户名称 值不能为空', trigger: 'blur' },
primarycontactname: [
{ type: 'string', message: '主要联系人 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '主要联系人 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '主要联系人 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '主要联系人 值不能为空', trigger: 'blur' },
],
emailaddress1: [
{ type: 'string', message: '电子邮件 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '电子邮件 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '电子邮件 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '电子邮件 值不能为空', trigger: 'blur' },
],
primarycontactid: [
{ type: 'string', message: '主要联系人 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '主要联系人 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '主要联系人 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '主要联系人 值不能为空', trigger: 'blur' },
],
accountid: [
{ type: 'string', message: '客户 值必须为字符串类型', trigger: 'change' },
......@@ -456,7 +497,11 @@ export default class MajorContactBase extends Vue implements ControlInterface {
,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
accountname: new FormItemModel({ caption: '客户名称', detailType: 'FORMITEM', name: 'accountname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
primarycontactname: new FormItemModel({ caption: '主要联系人', detailType: 'FORMITEM', name: 'primarycontactname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
emailaddress1: new FormItemModel({ caption: '电子邮件', detailType: 'FORMITEM', name: 'emailaddress1', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
primarycontactid: new FormItemModel({ caption: '主要联系人', detailType: 'FORMITEM', name: 'primarycontactid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
,
accountid: new FormItemModel({ caption: '客户', detailType: 'FORMITEM', name: 'accountid', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 })
,
......@@ -559,15 +604,39 @@ export default class MajorContactBase extends Vue implements ControlInterface {
}
/**
* 监控表单属性 accountname 值
* 监控表单属性 primarycontactname 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MajorContact
*/
@Watch('data.accountname')
onAccountnameChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'accountname', newVal: newVal, oldVal: oldVal });
@Watch('data.primarycontactname')
onPrimarycontactnameChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'primarycontactname', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 emailaddress1 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MajorContact
*/
@Watch('data.emailaddress1')
onEmailaddress1Change(newVal: any, oldVal: any) {
this.formDataChange({ name: 'emailaddress1', newVal: newVal, oldVal: oldVal });
}
/**
* 监控表单属性 primarycontactid 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MajorContact
*/
@Watch('data.primarycontactid')
onPrimarycontactidChange(newVal: any, oldVal: any) {
this.formDataChange({ name: 'primarycontactid', newVal: newVal, oldVal: oldVal });
}
/**
......@@ -630,6 +699,8 @@ export default class MajorContactBase extends Vue implements ControlInterface {
}
/**
......
......@@ -56,10 +56,20 @@ export default class MajorContactModel {
name: 'srfsourcekey',
},
{
name: 'accountname',
prop: 'accountname',
name: 'primarycontactname',
prop: 'primarycontactname',
dataType: 'PICKUPTEXT',
},
{
name: 'emailaddress1',
prop: 'emailaddress1',
dataType: 'TEXT',
},
{
name: 'primarycontactid',
prop: 'primarycontactid',
dataType: 'PICKUP',
},
{
name: 'accountid',
prop: 'accountid',
......
......@@ -2,6 +2,7 @@ import { Http,Util,Errorlog } from '@/utils';
import ControlService from '@/widgets/control-service';
import AccountService from '@/service/account/account-service';
import MajorContactModel from './major-contact-form-model';
import ContactService from '@/service/contact/contact-service';
/**
......@@ -41,6 +42,14 @@ export default class MajorContactService extends ControlService {
this.model = new MajorContactModel();
}
/**
* 联系人服务对象
*
* @type {ContactService}
* @memberof MajorContactService
*/
public contactService: ContactService = new ContactService();
/**
* 处理数据
*
......@@ -80,6 +89,9 @@ export default class MajorContactService extends ControlService {
*/
@Errorlog
public getItems(serviceName: string, interfaceName: string, context: any = {}, data: any, isloading?: boolean): Promise<any[]> {
if (Object.is(serviceName, 'ContactService') && Object.is(interfaceName, 'FetchDefault')) {
return this.doItems(this.contactService.FetchDefault(JSON.parse(JSON.stringify(context)),data, isloading), 'contactid', 'contact');
}
return Promise.reject([])
}
......
......@@ -3152,7 +3152,7 @@
<!--输出实体[CONTACT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-contact-29-42">
<changeSet author="a_LAB01_e85d8801c" id="tab-contact-31-42">
<createTable tableName="CONTACT">
<column name="ADDRESS1_FREIGHTTERMSCODE" remarks="" type="VARCHAR(30)">
</column>
......@@ -4480,7 +4480,7 @@
<!--输出实体[ACCOUNT]数据结构 -->
<changeSet author="a_LAB01_e85d8801c" id="tab-account-123-53">
<changeSet author="a_LAB01_e85d8801c" id="tab-account-129-53">
<createTable tableName="ACCOUNT">
<column name="ADDRESS1_PRIMARYCONTACTNAME" remarks="" type="VARCHAR(100)">
</column>
......@@ -10973,22 +10973,22 @@
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="MONTHLYFISCALCALENDAR" constraintName="DER1N_MONTHLYFISCALCALENDAR__T" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[CONTACT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-29-206">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-31-206">
<addForeignKeyConstraint baseColumnNames="PREFERREDEQUIPMENTID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__EQUIPMENT__PREF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EQUIPMENTID" referencedTableName="EQUIPMENT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-29-207">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-31-207">
<addForeignKeyConstraint baseColumnNames="ORIGINATINGLEADID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__LEAD__ORIGINATI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LEADID" referencedTableName="LEAD" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-29-208">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-31-208">
<addForeignKeyConstraint baseColumnNames="DEFAULTPRICELEVELID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__PRICELEVEL__DEF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-29-209">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-31-209">
<addForeignKeyConstraint baseColumnNames="PREFERREDSERVICEID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__SERVICE__PREFER" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SERVICEID" referencedTableName="SERVICE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-29-210">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-31-210">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-29-211">
<changeSet author="a_LAB01_e85d8801c" id="fk-contact-31-211">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="CONTACT" constraintName="DER1N_CONTACT__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[TEAM]外键关系 -->
......@@ -11074,31 +11074,31 @@
<addForeignKeyConstraint baseColumnNames="METRICID" baseTableName="GOAL" constraintName="DER1N_GOAL__METRIC__METRICID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="METRICID" referencedTableName="METRIC" validate="true"/>
</changeSet>
<!--输出实体[ACCOUNT]外键关系 -->
<changeSet author="a_LAB01_e85d8801c" id="fk-account-123-246">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-129-246">
<addForeignKeyConstraint baseColumnNames="PARENTACCOUNTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__ACCOUNT__PARENT" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="ACCOUNTID" referencedTableName="ACCOUNT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-123-247">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-129-247">
<addForeignKeyConstraint baseColumnNames="PRIMARYCONTACTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__CONTACT__PRIMAR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="CONTACTID" referencedTableName="CONTACT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-123-248">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-129-248">
<addForeignKeyConstraint baseColumnNames="PREFERREDEQUIPMENTID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__EQUIPMENT__PREF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="EQUIPMENTID" referencedTableName="EQUIPMENT" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-123-249">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-129-249">
<addForeignKeyConstraint baseColumnNames="ORIGINATINGLEADID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__LEAD__ORIGINATI" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="LEADID" referencedTableName="LEAD" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-123-250">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-129-250">
<addForeignKeyConstraint baseColumnNames="DEFAULTPRICELEVELID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__PRICELEVEL__DEF" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="PRICELEVELID" referencedTableName="PRICELEVEL" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-123-251">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-129-251">
<addForeignKeyConstraint baseColumnNames="PREFERREDSERVICEID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__SERVICE__PREFER" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SERVICEID" referencedTableName="SERVICE" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-123-252">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-129-252">
<addForeignKeyConstraint baseColumnNames="SLAID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__SLA__SLAID" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="SLAID" referencedTableName="SLA" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-123-253">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-129-253">
<addForeignKeyConstraint baseColumnNames="TERRITORYID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__TERRITORY__TERR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TERRITORYID" referencedTableName="TERRITORY" validate="true"/>
</changeSet>
<changeSet author="a_LAB01_e85d8801c" id="fk-account-123-254">
<changeSet author="a_LAB01_e85d8801c" id="fk-account-129-254">
<addForeignKeyConstraint baseColumnNames="TRANSACTIONCURRENCYID" baseTableName="ACCOUNT" constraintName="DER1N_ACCOUNT__TRANSACTIONCURR" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="TRANSACTIONCURRENCYID" referencedTableName="TRANSACTIONCURRENCY" validate="true"/>
</changeSet>
<!--输出实体[KNOWLEDGEARTICLEVIEWS]外键关系 -->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册