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

xignzi006 发布系统代码

上级 9d6cfedf
......@@ -59,6 +59,16 @@
"viewtag": "15d12c1173fcb6e742b6a6d92cbc53ed",
"memo": ""
},
"accountaccount": {
"title": "account编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountAccount",
"viewfilename": "account-account",
"viewtag": "1d3b94223a5d3f8ab1d2fe334c8c4afd",
"memo": "系统自动添加"
},
"ibizlistgridview": {
"title": "list表格视图",
"caption": "市场营销列表",
......@@ -79,6 +89,16 @@
"viewtag": "24e222a530526aab94ed4ed22cfedf9a",
"memo": "系统自动添加"
},
"accountpickupview": {
"title": "account数据选择视图",
"caption": "客户",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "Base",
"viewname": "AccountPickupView",
"viewfilename": "account-pickup-view",
"viewtag": "29bfcd628ab25e297248ff0524d12908",
"memo": "系统自动添加"
},
"accountsummary": {
"title": "客户摘要",
"caption": "客户摘要",
......@@ -189,6 +209,16 @@
"viewtag": "6e18ac74e5685439110f9b4e534ee005",
"memo": "系统自动添加"
},
"accountintroduction": {
"title": "account编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountIntroduction",
"viewfilename": "account-introduction",
"viewtag": "73bb9f7e653384ca09f8bbbfd580d892",
"memo": "系统自动添加"
},
"goaleditview": {
"title": "goal编辑视图",
"caption": "目标",
......@@ -219,6 +249,16 @@
"viewtag": "8b173077897bf865fe035e56073b763d",
"memo": ""
},
"pricelevelpickupview": {
"title": "pricelevel数据选择视图",
"caption": "价目表",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "Product",
"viewname": "PriceLevelPickupView",
"viewfilename": "price-level-pickup-view",
"viewtag": "8b806fb12589b2fc17d1bb90f4b5422e",
"memo": "系统自动添加"
},
"salesliteraturegridview": {
"title": "salesliterature表格视图",
"caption": "销售宣传资料",
......@@ -229,6 +269,16 @@
"viewtag": "90b48a107932f432e0dde42791a51887",
"memo": ""
},
"accountaddress": {
"title": "account编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountAddress",
"viewfilename": "account-address",
"viewtag": "916febbb65be1c54dd42ccb9914fe973",
"memo": "系统自动添加"
},
"contacteditview": {
"title": "contact编辑视图",
"caption": "联系人",
......@@ -269,6 +319,16 @@
"viewtag": "b38bc0256ecd5be1a58a3c2210a98d05",
"memo": ""
},
"accountdistribution": {
"title": "account编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountDistribution",
"viewfilename": "account-distribution",
"viewtag": "c607e5bc2c07ab2aca084e275ce677b7",
"memo": "系统自动添加"
},
"competitorgridview": {
"title": "competitor表格视图",
"caption": "竞争对手",
......@@ -279,6 +339,16 @@
"viewtag": "d1c35f3c52010e1428d7dc1a6bc82f63",
"memo": ""
},
"pricelevelpickupgridview": {
"title": "pricelevel选择表格视图",
"caption": "价目表",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Product",
"viewname": "PriceLevelPickupGridView",
"viewfilename": "price-level-pickup-grid-view",
"viewtag": "dd10cba0f2ded085120f7dc8eccc7c10",
"memo": "系统自动添加"
},
"salesordergridview": {
"title": "salesorder表格视图",
"caption": "订单",
......@@ -299,6 +369,16 @@
"viewtag": "e0aef8c0d1f1ae28f628a0541b118961",
"memo": ""
},
"accountcontactsetting": {
"title": "account编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountContactSetting",
"viewfilename": "account-contact-setting",
"viewtag": "e38e7b53a449e0f112cb545d2c5d4b85",
"memo": "系统自动添加"
},
"contactoptionview": {
"title": "联系人选项操作视图",
"caption": "联系人",
......@@ -309,6 +389,26 @@
"viewtag": "e404dc93e70d6284d4e1a083017625ed",
"memo": ""
},
"accountpickupgridview": {
"title": "account选择表格视图",
"caption": "客户",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Base",
"viewname": "AccountPickupGridView",
"viewfilename": "account-pickup-grid-view",
"viewtag": "ef9fea872a6a21e7566033fafcc0ccb5",
"memo": "系统自动添加"
},
"accountmajorcontact": {
"title": "account编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountMajorContact",
"viewfilename": "account-major-contact",
"viewtag": "fb06f2c1cea1ac2a5a70c20f4a277ae5",
"memo": "系统自动添加"
},
"competitoreditview": {
"title": "competitor编辑视图",
"caption": "竞争对手",
......
/**
* 价目表
*
* @export
* @interface PriceLevel
*/
export interface PriceLevel {
/**
* 建立人
*
* @returns {*}
* @memberof PriceLevel
*/
createman?: any;
/**
* 更新人
*
* @returns {*}
* @memberof PriceLevel
*/
updateman?: any;
/**
* 说明
*
* @returns {*}
* @memberof PriceLevel
*/
description?: any;
/**
* 状态
*
* @returns {*}
* @memberof PriceLevel
*/
statecode?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof PriceLevel
*/
updatedate?: any;
/**
* 付款方式
*
* @returns {*}
* @memberof PriceLevel
*/
paymentmethodcode?: any;
/**
* 价目表
*
* @returns {*}
* @memberof PriceLevel
*/
pricelevelid?: any;
/**
* 送货方式
*
* @returns {*}
* @memberof PriceLevel
*/
shippingmethodcode?: any;
/**
* Record Created On
*
* @returns {*}
* @memberof PriceLevel
*/
overriddencreatedon?: any;
/**
* UTC Conversion Time Zone Code
*
* @returns {*}
* @memberof PriceLevel
*/
utcconversiontimezonecode?: any;
/**
* Version Number
*
* @returns {*}
* @memberof PriceLevel
*/
versionnumber?: any;
/**
* 结束日期
*
* @returns {*}
* @memberof PriceLevel
*/
enddate?: any;
/**
* 汇率
*
* @returns {*}
* @memberof PriceLevel
*/
exchangerate?: any;
/**
* 开始日期
*
* @returns {*}
* @memberof PriceLevel
*/
begindate?: any;
/**
* Import Sequence Number
*
* @returns {*}
* @memberof PriceLevel
*/
importsequencenumber?: any;
/**
* 价格水平名称
*
* @returns {*}
* @memberof PriceLevel
*/
pricelevelname?: any;
/**
* 状态描述
*
* @returns {*}
* @memberof PriceLevel
*/
statuscode?: any;
/**
* 货运条款
*
* @returns {*}
* @memberof PriceLevel
*/
freighttermscode?: any;
/**
* 建立时间
*
* @returns {*}
* @memberof PriceLevel
*/
createdate?: any;
/**
* Time Zone Rule Version Number
*
* @returns {*}
* @memberof PriceLevel
*/
timezoneruleversionnumber?: any;
/**
* 货币
*
* @returns {*}
* @memberof PriceLevel
*/
transactioncurrencyid?: any;
}
\ No newline at end of file
import pricelevel_en_US from '@locale/lanres/entities/price-level/price-level_en_US';
import opportunity_en_US from '@locale/lanres/entities/opportunity/opportunity_en_US';
import goal_en_US from '@locale/lanres/entities/goal/goal_en_US';
import invoice_en_US from '@locale/lanres/entities/invoice/invoice_en_US';
......@@ -113,6 +114,7 @@ export default {
},
},
entities: {
pricelevel: pricelevel_en_US,
opportunity: opportunity_en_US,
goal: goal_en_US,
invoice: invoice_en_US,
......
import pricelevel_zh_CN from '@locale/lanres/entities/price-level/price-level_zh_CN';
import opportunity_zh_CN from '@locale/lanres/entities/opportunity/opportunity_zh_CN';
import goal_zh_CN from '@locale/lanres/entities/goal/goal_zh_CN';
import invoice_zh_CN from '@locale/lanres/entities/invoice/invoice_zh_CN';
......@@ -113,6 +114,7 @@ export default {
},
},
entities: {
pricelevel: pricelevel_zh_CN,
opportunity: opportunity_zh_CN,
goal: goal_zh_CN,
invoice: invoice_zh_CN,
......
......@@ -2,4 +2,97 @@ export default {
SysOperator: {
empty: '',
},
Account__OwnershipCode: {
'4': 'Other',
'2': 'Private',
'1': 'Public',
'3': 'Subsidiary',
empty: '',
},
YesNo: {
'1': '是',
'0': '否',
empty: '',
},
Account__Address1_FreightTermsCode: {
'1': 'FOB',
'2': 'No Charge',
empty: '',
},
Account__IndustryCode: {
'1': 'Accounting',
'2': 'Agriculture and Non-petrol Natural Resource Extraction',
'3': 'Broadcasting Printing and Publishing',
'4': 'Brokers',
'5': 'Building Supply Retail',
'6': 'Business Services',
'7': 'Consulting',
'8': 'Consumer Services',
'9': 'Design, Direction and Creative Management',
'10': 'Distributors, Dispatchers and Processors',
'11': 'Doctor's Offices and Clinics',
'12': 'Durable Manufacturing',
'13': 'Eating and Drinking Places',
'14': 'Entertainment Retail',
'15': 'Equipment Rental and Leasing',
'16': 'Financial',
'17': 'Food and Tobacco Processing',
'18': 'Inbound Capital Intensive Processing',
'19': 'Inbound Repair and Services',
'20': 'Insurance',
'21': 'Legal Services',
'22': 'Non-Durable Merchandise Retail',
'23': 'Outbound Consumer Service',
'24': 'Petrochemical Extraction and Distribution',
'25': 'Service Retail',
'26': 'SIG Affiliations',
'27': 'Social Services',
'28': 'Special Outbound Trade Contractors',
'29': 'Specialty Realty',
'30': 'Transportation',
'31': 'Utility Creation and Distribution',
'32': 'Vehicle Retail',
'33': 'Wholesale',
empty: '',
},
Account__CustomerTypeCode: {
'1': 'Competitor',
'2': 'Consultant',
'3': 'Customer',
'6': 'Influencer',
'4': 'Investor',
'12': 'Other',
'5': 'Partner',
'7': 'Press',
'8': 'Prospect',
'9': 'Reseller',
'10': 'Supplier',
'11': 'Vendor',
empty: '',
},
Account__Address1_AddressTypeCode: {
'1': 'Bill To',
'4': 'Other',
'3': 'Primary',
'2': 'Ship To',
empty: '',
},
Account__PreferredContactMethodCode: {
'1': 'Any',
'2': 'Email',
'4': 'Fax',
'5': 'Mail',
'3': 'Phone',
empty: '',
},
Account__Address1_ShippingMethodCode: {
'1': 'Airborne',
'2': 'DHL',
'3': 'FedEx',
'6': 'Full Load',
'5': 'Postal Mail',
'4': 'UPS',
'7': 'Will Call',
empty: '',
},
};
\ No newline at end of file
......@@ -2,4 +2,97 @@ export default {
SysOperator: {
empty: '',
},
Account__OwnershipCode: {
'4': 'Other',
'2': 'Private',
'1': 'Public',
'3': 'Subsidiary',
empty: '',
},
YesNo: {
'1': '是',
'0': '否',
empty: '',
},
Account__Address1_FreightTermsCode: {
'1': 'FOB',
'2': 'No Charge',
empty: '',
},
Account__IndustryCode: {
'1': 'Accounting',
'2': 'Agriculture and Non-petrol Natural Resource Extraction',
'3': 'Broadcasting Printing and Publishing',
'4': 'Brokers',
'5': 'Building Supply Retail',
'6': 'Business Services',
'7': 'Consulting',
'8': 'Consumer Services',
'9': 'Design, Direction and Creative Management',
'10': 'Distributors, Dispatchers and Processors',
'11': 'Doctor's Offices and Clinics',
'12': 'Durable Manufacturing',
'13': 'Eating and Drinking Places',
'14': 'Entertainment Retail',
'15': 'Equipment Rental and Leasing',
'16': 'Financial',
'17': 'Food and Tobacco Processing',
'18': 'Inbound Capital Intensive Processing',
'19': 'Inbound Repair and Services',
'20': 'Insurance',
'21': 'Legal Services',
'22': 'Non-Durable Merchandise Retail',
'23': 'Outbound Consumer Service',
'24': 'Petrochemical Extraction and Distribution',
'25': 'Service Retail',
'26': 'SIG Affiliations',
'27': 'Social Services',
'28': 'Special Outbound Trade Contractors',
'29': 'Specialty Realty',
'30': 'Transportation',
'31': 'Utility Creation and Distribution',
'32': 'Vehicle Retail',
'33': 'Wholesale',
empty: '',
},
Account__CustomerTypeCode: {
'1': 'Competitor',
'2': 'Consultant',
'3': 'Customer',
'6': 'Influencer',
'4': 'Investor',
'12': 'Other',
'5': 'Partner',
'7': 'Press',
'8': 'Prospect',
'9': 'Reseller',
'10': 'Supplier',
'11': 'Vendor',
empty: '',
},
Account__Address1_AddressTypeCode: {
'1': 'Bill To',
'4': 'Other',
'3': 'Primary',
'2': 'Ship To',
empty: '',
},
Account__PreferredContactMethodCode: {
'1': 'Any',
'2': 'Email',
'4': 'Fax',
'5': 'Mail',
'3': 'Phone',
empty: '',
},
Account__Address1_ShippingMethodCode: {
'1': 'Airborne',
'2': 'DHL',
'3': 'FedEx',
'6': 'Full Load',
'5': 'Postal Mail',
'4': 'UPS',
'7': 'Will Call',
empty: '',
},
};
\ No newline at end of file
......@@ -165,6 +165,14 @@ export default {
transactioncurrencyname: '货币',
},
views: {
account: {
caption: "客户",
title: 'account编辑视图',
},
pickupview: {
caption: "客户",
title: 'account数据选择视图',
},
summary: {
caption: "客户摘要",
title: '客户摘要',
......@@ -181,6 +189,178 @@ export default {
caption: "客户",
title: 'account编辑视图',
},
introduction: {
caption: "客户",
title: 'account编辑视图',
},
address: {
caption: "客户",
title: 'account编辑视图',
},
distribution: {
caption: "客户",
title: 'account编辑视图',
},
contactsetting: {
caption: "客户",
title: 'account编辑视图',
},
pickupgridview: {
caption: "客户",
title: 'account选择表格视图',
},
majorcontact: {
caption: "客户",
title: 'account编辑视图',
},
},
account_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
accountname: "客户名称",
telephone1: "主要电话",
fax: "传真",
websiteurl: "网站",
parentaccountname: "上级客户",
tickersymbol: "股票代号",
customertypecode: "关系类型",
defaultpricelevelname: "价目表",
defaultpricelevelid: "价目表",
parentaccountid: "上级单位",
accountid: "客户",
},
uiactions: {
},
},
address_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
address1_addressid: "地址 1: ID",
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 时差",
accountid: "客户",
},
uiactions: {
},
},
introduction_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
industrycode: "行业",
sic: "行业编码",
ownershipcode: "所有权",
description: "说明",
accountid: "客户",
},
uiactions: {
},
},
contactsetting_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
preferredcontactmethodcode: "首选联系方式",
donotemail: "不允许使用电子邮件",
donotbulkemail: "不允许使用批量电子邮件",
donotphone: "不允许电话联络",
donotfax: "不允许使用传真",
donotpostalmail: "不允许使用邮件",
accountid: "客户",
},
uiactions: {
},
},
distribution_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
address1_shippingmethodcode: "地址 1: 送货方式",
address1_freighttermscode: "地址 1: 货运条款",
accountid: "客户",
},
uiactions: {
},
},
majorcontact_form: {
details: {
group1: "客户基本信息",
formpage1: "基本信息",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "客户",
srfmajortext: "客户名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
accountname: "客户名称",
accountid: "客户",
},
uiactions: {
},
},
main_form: {
details: {
......
......@@ -164,6 +164,14 @@ export default {
transactioncurrencyname: '货币',
},
views: {
account: {
caption: '客户',
title: 'account编辑视图',
},
pickupview: {
caption: '客户',
title: 'account数据选择视图',
},
summary: {
caption: '客户摘要',
title: '客户摘要',
......@@ -180,6 +188,178 @@ export default {
caption: '客户',
title: 'account编辑视图',
},
introduction: {
caption: '客户',
title: 'account编辑视图',
},
address: {
caption: '客户',
title: 'account编辑视图',
},
distribution: {
caption: '客户',
title: 'account编辑视图',
},
contactsetting: {
caption: '客户',
title: 'account编辑视图',
},
pickupgridview: {
caption: '客户',
title: 'account选择表格视图',
},
majorcontact: {
caption: '客户',
title: 'account编辑视图',
},
},
account_form: {
details: {
group1: '客户基本信息',
formpage1: '基本信息',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '客户',
srfmajortext: '客户名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
accountname: '客户名称',
telephone1: '主要电话',
fax: '传真',
websiteurl: '网站',
parentaccountname: '上级客户',
tickersymbol: '股票代号',
customertypecode: '关系类型',
defaultpricelevelname: '价目表',
defaultpricelevelid: '价目表',
parentaccountid: '上级单位',
accountid: '客户',
},
uiactions: {
},
},
address_form: {
details: {
group1: '客户基本信息',
formpage1: '基本信息',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '客户',
srfmajortext: '客户名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
address1_addressid: '地址 1: ID',
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 时差',
accountid: '客户',
},
uiactions: {
},
},
introduction_form: {
details: {
group1: '客户基本信息',
formpage1: '基本信息',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '客户',
srfmajortext: '客户名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
industrycode: '行业',
sic: '行业编码',
ownershipcode: '所有权',
description: '说明',
accountid: '客户',
},
uiactions: {
},
},
contactsetting_form: {
details: {
group1: '客户基本信息',
formpage1: '基本信息',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '客户',
srfmajortext: '客户名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
preferredcontactmethodcode: '首选联系方式',
donotemail: '不允许使用电子邮件',
donotbulkemail: '不允许使用批量电子邮件',
donotphone: '不允许电话联络',
donotfax: '不允许使用传真',
donotpostalmail: '不允许使用邮件',
accountid: '客户',
},
uiactions: {
},
},
distribution_form: {
details: {
group1: '客户基本信息',
formpage1: '基本信息',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '客户',
srfmajortext: '客户名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
address1_shippingmethodcode: '地址 1: 送货方式',
address1_freighttermscode: '地址 1: 货运条款',
accountid: '客户',
},
uiactions: {
},
},
majorcontact_form: {
details: {
group1: '客户基本信息',
formpage1: '基本信息',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '客户',
srfmajortext: '客户名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
accountname: '客户名称',
accountid: '客户',
},
uiactions: {
},
},
main_form: {
details: {
......
......@@ -216,12 +216,11 @@ export default {
title: '联系人选项操作视图',
},
},
main_form: {
quickcreate_form: {
details: {
group1: "contact基本信息",
group1: "联系人基本信息",
grouppanel1: "地址",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "联系人",
......@@ -231,20 +230,27 @@ export default {
srfdeid: "",
srfsourcekey: "",
fullname: "全名",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
jobtitle: "职务",
emailaddress1: "电子邮件",
telephone1: "商务电话",
mobilephone: "移动电话",
fax: "传真",
address1_country: "国家/地区",
address1_stateorprovince: "省/市/自治区",
address1_city: "市/县",
address1_line1: "街道",
address1_postalcode: "邮政编码",
contactid: "联系人",
},
uiactions: {
},
},
quickcreate_form: {
main_form: {
details: {
group1: "联系人基本信息",
grouppanel1: "地址",
group1: "contact基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "联系人",
......@@ -254,16 +260,10 @@ export default {
srfdeid: "",
srfsourcekey: "",
fullname: "全名",
jobtitle: "职务",
emailaddress1: "电子邮件",
telephone1: "商务电话",
mobilephone: "移动电话",
fax: "传真",
address1_country: "国家/地区",
address1_stateorprovince: "省/市/自治区",
address1_city: "市/县",
address1_line1: "街道",
address1_postalcode: "邮政编码",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
contactid: "联系人",
},
uiactions: {
......@@ -287,10 +287,6 @@ export default {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
......@@ -319,30 +315,10 @@ export default {
caption: "-",
tip: "",
},
tbitem16: {
caption: "其它",
tip: "其它",
},
tbitem21: {
caption: "Export Data Model",
tip: "导出数据模型",
},
tbitem23: {
caption: "数据导入",
tip: "数据导入",
},
tbitem17: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
tbitem18: {
caption: "Help",
tip: "Help",
},
},
editviewtoolbar_toolbar: {
tbitem3: {
......
......@@ -215,12 +215,11 @@ export default {
title: '联系人选项操作视图',
},
},
main_form: {
quickcreate_form: {
details: {
group1: 'contact基本信息',
group1: '联系人基本信息',
grouppanel1: '地址',
formpage1: '基本信息',
group2: '操作信息',
formpage2: '其它',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '联系人',
......@@ -230,20 +229,27 @@ export default {
srfdeid: '',
srfsourcekey: '',
fullname: '全名',
createman: '建立人',
createdate: '建立时间',
updateman: '更新人',
updatedate: '更新时间',
jobtitle: '职务',
emailaddress1: '电子邮件',
telephone1: '商务电话',
mobilephone: '移动电话',
fax: '传真',
address1_country: '国家/地区',
address1_stateorprovince: '省/市/自治区',
address1_city: '市/县',
address1_line1: '街道',
address1_postalcode: '邮政编码',
contactid: '联系人',
},
uiactions: {
},
},
quickcreate_form: {
main_form: {
details: {
group1: '联系人基本信息',
grouppanel1: '地址',
group1: 'contact基本信息',
formpage1: '基本信息',
group2: '操作信息',
formpage2: '其它',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '联系人',
......@@ -253,16 +259,10 @@ export default {
srfdeid: '',
srfsourcekey: '',
fullname: '全名',
jobtitle: '职务',
emailaddress1: '电子邮件',
telephone1: '商务电话',
mobilephone: '移动电话',
fax: '传真',
address1_country: '国家/地区',
address1_stateorprovince: '省/市/自治区',
address1_city: '市/县',
address1_line1: '街道',
address1_postalcode: '邮政编码',
createman: '建立人',
createdate: '建立时间',
updateman: '更新人',
updatedate: '更新时间',
contactid: '联系人',
},
uiactions: {
......@@ -286,10 +286,6 @@ export default {
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: '新建',
tip: '新建',
},
tbitem4: {
caption: '编辑',
tip: '编辑',
......@@ -318,30 +314,10 @@ export default {
caption: '-',
tip: '',
},
tbitem16: {
caption: '其它',
tip: '其它',
},
tbitem21: {
caption: '导出数据模型',
tip: '导出数据模型',
},
tbitem23: {
caption: '数据导入',
tip: '数据导入',
},
tbitem17: {
caption: '-',
tip: '',
},
tbitem19: {
caption: '过滤',
tip: '过滤',
},
tbitem18: {
caption: '帮助',
tip: '帮助',
},
},
editviewtoolbar_toolbar: {
tbitem3: {
......
export default {
fields: {
createman: '建立人',
updateman: '更新人',
description: '说明',
statecode: '状态',
updatedate: '更新时间',
paymentmethodcode: '付款方式',
pricelevelid: '价目表',
shippingmethodcode: '送货方式',
overriddencreatedon: 'Record Created On',
utcconversiontimezonecode: 'UTC Conversion Time Zone Code',
versionnumber: 'Version Number',
enddate: '结束日期',
exchangerate: '汇率',
begindate: '开始日期',
importsequencenumber: 'Import Sequence Number',
pricelevelname: '价格水平名称',
statuscode: '状态描述',
freighttermscode: '货运条款',
createdate: '建立时间',
timezoneruleversionnumber: 'Time Zone Rule Version Number',
transactioncurrencyid: '货币',
},
views: {
pickupview: {
caption: "价目表",
title: 'pricelevel数据选择视图',
},
pickupgridview: {
caption: "价目表",
title: 'pricelevel选择表格视图',
},
},
main_grid: {
columns: {
pricelevelname: "价格水平名称",
updateman: "更新人",
updatedate: "更新时间",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
};
\ No newline at end of file
export default {
fields: {
createman: '建立人',
updateman: '更新人',
description: '说明',
statecode: '状态',
updatedate: '更新时间',
paymentmethodcode: '付款方式',
pricelevelid: '价目表',
shippingmethodcode: '送货方式',
overriddencreatedon: 'Record Created On',
utcconversiontimezonecode: 'UTC Conversion Time Zone Code',
versionnumber: 'Version Number',
enddate: '结束日期',
exchangerate: '汇率',
begindate: '开始日期',
importsequencenumber: 'Import Sequence Number',
pricelevelname: '价格水平名称',
statuscode: '状态描述',
freighttermscode: '货运条款',
createdate: '建立时间',
timezoneruleversionnumber: 'Time Zone Rule Version Number',
transactioncurrencyid: '货币',
},
views: {
pickupview: {
caption: '价目表',
title: 'pricelevel数据选择视图',
},
pickupgridview: {
caption: '价目表',
title: 'pricelevel选择表格视图',
},
},
main_grid: {
columns: {
pricelevelname: '价格水平名称',
updateman: '更新人',
updatedate: '更新时间',
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: '常规条件',
},
uiactions: {
},
},
};
\ No newline at end of file
......@@ -7,6 +7,7 @@ import './login/login';
import './upload/upload';
// 实体级接口对象
import './entity/price-levels/price-levels';
import './entity/opportunitys/opportunitys';
import './entity/goals/goals';
import './entity/invoices/invoices';
......
......@@ -55,6 +55,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "LeadGridView",
"viewtag": "15d12c1173fcb6e742b6a6d92cbc53ed"
},
"accountaccount": {
"title": "account编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountAccount",
"viewtag": "1d3b94223a5d3f8ab1d2fe334c8c4afd"
},
"ibizlistgridview": {
"title": "list表格视图",
"caption": "市场营销列表",
......@@ -71,6 +79,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ActivityPointerEditView",
"viewtag": "24e222a530526aab94ed4ed22cfedf9a"
},
"accountpickupview": {
"title": "account数据选择视图",
"caption": "客户",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "Base",
"viewname": "AccountPickupView",
"viewtag": "29bfcd628ab25e297248ff0524d12908"
},
"accountsummary": {
"title": "客户摘要",
"caption": "客户摘要",
......@@ -159,6 +175,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "AccountEditView",
"viewtag": "6e18ac74e5685439110f9b4e534ee005"
},
"accountintroduction": {
"title": "account编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountIntroduction",
"viewtag": "73bb9f7e653384ca09f8bbbfd580d892"
},
"goaleditview": {
"title": "goal编辑视图",
"caption": "目标",
......@@ -183,6 +207,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "Central",
"viewtag": "8b173077897bf865fe035e56073b763d"
},
"pricelevelpickupview": {
"title": "pricelevel数据选择视图",
"caption": "价目表",
"viewtype": "DEPICKUPVIEW",
"viewmodule": "Product",
"viewname": "PriceLevelPickupView",
"viewtag": "8b806fb12589b2fc17d1bb90f4b5422e"
},
"salesliteraturegridview": {
"title": "salesliterature表格视图",
"caption": "销售宣传资料",
......@@ -191,6 +223,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "SalesLiteratureGridView",
"viewtag": "90b48a107932f432e0dde42791a51887"
},
"accountaddress": {
"title": "account编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountAddress",
"viewtag": "916febbb65be1c54dd42ccb9914fe973"
},
"contacteditview": {
"title": "contact编辑视图",
"caption": "联系人",
......@@ -223,6 +263,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ProductGridView",
"viewtag": "b38bc0256ecd5be1a58a3c2210a98d05"
},
"accountdistribution": {
"title": "account编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountDistribution",
"viewtag": "c607e5bc2c07ab2aca084e275ce677b7"
},
"competitorgridview": {
"title": "competitor表格视图",
"caption": "竞争对手",
......@@ -231,6 +279,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "CompetitorGridView",
"viewtag": "d1c35f3c52010e1428d7dc1a6bc82f63"
},
"pricelevelpickupgridview": {
"title": "pricelevel选择表格视图",
"caption": "价目表",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Product",
"viewname": "PriceLevelPickupGridView",
"viewtag": "dd10cba0f2ded085120f7dc8eccc7c10"
},
"salesordergridview": {
"title": "salesorder表格视图",
"caption": "订单",
......@@ -247,6 +303,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "InvoiceGridView",
"viewtag": "e0aef8c0d1f1ae28f628a0541b118961"
},
"accountcontactsetting": {
"title": "account编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountContactSetting",
"viewtag": "e38e7b53a449e0f112cb545d2c5d4b85"
},
"contactoptionview": {
"title": "联系人选项操作视图",
"caption": "联系人",
......@@ -255,6 +319,22 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ContactOptionView",
"viewtag": "e404dc93e70d6284d4e1a083017625ed"
},
"accountpickupgridview": {
"title": "account选择表格视图",
"caption": "客户",
"viewtype": "DEPICKUPGRIDVIEW",
"viewmodule": "Base",
"viewname": "AccountPickupGridView",
"viewtag": "ef9fea872a6a21e7566033fafcc0ccb5"
},
"accountmajorcontact": {
"title": "account编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountMajorContact",
"viewtag": "fb06f2c1cea1ac2a5a70c20f4a277ae5"
},
"competitoreditview": {
"title": "competitor编辑视图",
"caption": "竞争对手",
......
export const PageComponents = {
install(Vue: any, opt: any) {
Vue.component('ibiz-list-grid-view', () => import('@pages/marketing/ibiz-list-grid-view/ibiz-list-grid-view.vue'));
Vue.component('account-introduction', () => import('@pages/base/account-introduction/account-introduction.vue'));
Vue.component('sales-literature-edit-view', () => import('@pages/sales/sales-literature-edit-view/sales-literature-edit-view.vue'));
Vue.component('product-grid-view', () => import('@pages/product/product-grid-view/product-grid-view.vue'));
Vue.component('sales-order-edit-view', () => import('@pages/sales/sales-order-edit-view/sales-order-edit-view.vue'));
Vue.component('account-edit-view', () => import('@pages/base/account-edit-view/account-edit-view.vue'));
Vue.component('incident-edit-view', () => import('@pages/service/incident-edit-view/incident-edit-view.vue'));
Vue.component('account-pickup-grid-view', () => import('@pages/base/account-pickup-grid-view/account-pickup-grid-view.vue'));
Vue.component('lead-grid-view', () => import('@pages/sales/lead-grid-view/lead-grid-view.vue'));
Vue.component('activity-pointer-edit-view', () => import('@pages/base/activity-pointer-edit-view/activity-pointer-edit-view.vue'));
Vue.component('sales-literature-grid-view', () => import('@pages/sales/sales-literature-grid-view/sales-literature-grid-view.vue'));
......@@ -13,13 +15,19 @@ export const PageComponents = {
Vue.component('competitor-edit-view', () => import('@pages/sales/competitor-edit-view/competitor-edit-view.vue'));
Vue.component('product-edit-view', () => import('@pages/product/product-edit-view/product-edit-view.vue'));
Vue.component('quote-grid-view', () => import('@pages/sales/quote-grid-view/quote-grid-view.vue'));
Vue.component('account-account', () => import('@pages/base/account-account/account-account.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('account-contact-setting', () => import('@pages/base/account-contact-setting/account-contact-setting.vue'));
Vue.component('account-major-contact', () => import('@pages/base/account-major-contact/account-major-contact.vue'));
Vue.component('sales-order-grid-view', () => import('@pages/sales/sales-order-grid-view/sales-order-grid-view.vue'));
Vue.component('opportunity-grid-view', () => import('@pages/sales/opportunity-grid-view/opportunity-grid-view.vue'));
Vue.component('goal-edit-view', () => import('@pages/sales/goal-edit-view/goal-edit-view.vue'));
Vue.component('contact-option-view', () => import('@pages/base/contact-option-view/contact-option-view.vue'));
Vue.component('contact-edit-view', () => import('@pages/base/contact-edit-view/contact-edit-view.vue'));
Vue.component('lead-edit-view', () => import('@pages/sales/lead-edit-view/lead-edit-view.vue'));
Vue.component('account-address', () => import('@pages/base/account-address/account-address.vue'));
Vue.component('price-level-pickup-view', () => import('@pages/product/price-level-pickup-view/price-level-pickup-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('opportunity-edit-view', () => import('@pages/sales/opportunity-edit-view/opportunity-edit-view.vue'));
......@@ -28,6 +36,9 @@ export const PageComponents = {
Vue.component('ibiz-list-edit-view', () => import('@pages/marketing/ibiz-list-edit-view/ibiz-list-edit-view.vue'));
Vue.component('invoice-grid-view', () => import('@pages/finance/invoice-grid-view/invoice-grid-view.vue'));
Vue.component('competitor-grid-view', () => import('@pages/sales/competitor-grid-view/competitor-grid-view.vue'));
Vue.component('account-pickup-view', () => import('@pages/base/account-pickup-view/account-pickup-view.vue'));
Vue.component('account-distribution', () => import('@pages/base/account-distribution/account-distribution.vue'));
Vue.component('price-level-pickup-grid-view', () => import('@pages/product/price-level-pickup-grid-view/price-level-pickup-grid-view.vue'));
Vue.component('quote-edit-view', () => import('@pages/sales/quote-edit-view/quote-edit-view.vue'));
Vue.component('incident-grid-view', () => import('@pages/service/incident-grid-view/incident-grid-view.vue'));
}
......
......@@ -39,7 +39,8 @@ export class EntityServiceRegister {
* @memberof EntityServiceRegister
*/
protected init(): void {
this.allEntityService.set('opportunity', () => import('@/service/opportunity/opportunity-service'));
this.allEntityService.set('pricelevel', () => import('@/service/price-level/price-level-service'));
this.allEntityService.set('opportunity', () => import('@/service/opportunity/opportunity-service'));
this.allEntityService.set('goal', () => import('@/service/goal/goal-service'));
this.allEntityService.set('invoice', () => import('@/service/invoice/invoice-service'));
this.allEntityService.set('lead', () => import('@/service/lead/lead-service'));
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 价目表服务对象基类
*
* @export
* @class PriceLevelServiceBase
* @extends {EntityServie}
*/
export default class PriceLevelServiceBase extends EntityService {
/**
* Creates an instance of PriceLevelServiceBase.
*
* @param {*} [opts={}]
* @memberof PriceLevelServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof PriceLevelServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='pricelevel';
this.APPDEKEY = 'pricelevelid';
this.APPDENAME = 'pricelevels';
this.APPDETEXT = 'pricelevelname';
this.APPNAME = 'businesscentral';
this.SYSTEMNAME = 'ibizbusinesscentral';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PriceLevelServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/pricelevels/${context.pricelevel}/select`,isloading);
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PriceLevelServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/pricelevels`,data,isloading);
return res;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PriceLevelServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/pricelevels/getdraft`,isloading);
res.data.pricelevel = data.pricelevel;
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PriceLevelServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/pricelevels/${context.pricelevel}`,data,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PriceLevelServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/pricelevels/${context.pricelevel}`,isloading);
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PriceLevelServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().delete(`/pricelevels/${context.pricelevel}`,isloading);
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PriceLevelServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/pricelevels/${context.pricelevel}/save`,data,isloading);
return res;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PriceLevelServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().post(`/pricelevels/${context.pricelevel}/checkkey`,data,isloading);
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof PriceLevelServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/pricelevels/fetchdefault`,tempData,isloading);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import PriceLevelServiceBase from './price-level-service-base';
/**
* 价目表服务对象
*
* @export
* @class PriceLevelService
* @extends {PriceLevelServiceBase}
*/
export default class PriceLevelService extends PriceLevelServiceBase {
/**
* Creates an instance of PriceLevelService.
*
* @param {*} [opts={}]
* @memberof PriceLevelService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -19,6 +19,7 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'e404dc93e70d6284d4e1a083017625ed',
'9a96ebf2e57358b3590b9d4479edb77a',
],
},
......@@ -86,6 +87,12 @@ export const viewstate: any = {
viewaction: '',
viewdatachange: false,
refviews: [
'e38e7b53a449e0f112cb545d2c5d4b85',
'fb06f2c1cea1ac2a5a70c20f4a277ae5',
'73bb9f7e653384ca09f8bbbfd580d892',
'c607e5bc2c07ab2aca084e275ce677b7',
'916febbb65be1c54dd42ccb9914fe973',
'1d3b94223a5d3f8ab1d2fe334c8c4afd',
],
},
{
......
......@@ -79,10 +79,18 @@ export default class AccountUIServiceBase extends UIService {
* @memberof AccountUIServiceBase
*/
public initViewMap(){
this.allViewMap.set(':',{viewname:'account',srfappde:'accounts'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'summary',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'info',srfappde:'accounts'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'accounts'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'introduction',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'address',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'distribution',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'contactsetting',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'majorcontact',srfappde:'accounts'});
}
/**
......
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import PriceLevelService from '@/service/price-level/price-level-service';
/**
* 价目表UI服务对象基类
*
* @export
* @class PriceLevelUIServiceBase
*/
export default class PriceLevelUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof PriceLevelUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof PriceLevelUIServiceBase
*/
public dataService:PriceLevelService = new PriceLevelService();
/**
* 所有关联视图
*
* @memberof PriceLevelUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof PriceLevelUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof PriceLevelUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof PriceLevelUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof PriceLevelUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* Creates an instance of PriceLevelUIServiceBase.
*
* @param {*} [opts={}]
* @memberof PriceLevelUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.initViewMap();
this.initDeMainStateMap();
}
/**
* 初始化视图Map
*
* @memberof PriceLevelUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'pricelevels'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'pricelevels'});
}
/**
* 初始化主状态集合
*
* @memberof PriceLevelUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof PriceLevelUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({pricelevel:srfkey});
const curData:any = result.data;
//判断当前数据模式,默认为true,todo
const iRealDEModel:boolean = true;
let bDataInWF:boolean = false;
let bWFMode:any = false;
// 计算数据模式
if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData);
if (bDataInWF) {
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData);
}
}
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam);
}
/**
* 获取实际的数据类型
*
* @memberof PriceLevelUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof PriceLevelUIServiceBase
*/
public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = '';
if (bDataInWF) {
// 判断数据是否在流程中
}
//多表单,todo
const isEnableMultiForm:boolean = false;
const multiFormDEField:string|null =null;
if (isEnableMultiForm && multiFormDEField) {
const objFormValue:string = curData[multiFormDEField];
if(!Environment.isAppMode){
return 'MOBEDITVIEW'+objFormValue;
}
return 'EDITVIEW'+objFormValue;
}
if(!Environment.isAppMode){
if(this.getDEMainStateTag(curData)){
return `MOBEDITVIEW:MSTAG:${ await this.getDEMainStateTag(curData)}`;
}
return 'MOBEDITVIEW:';
}
if(this.getDEMainStateTag(curData)){
return `EDITVIEW:MSTAG:${ await this.getDEMainStateTag(curData)}`;
}
return 'EDITVIEW:';
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof PriceLevelUIServiceBase
*/
public async getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{
if(!(singleMainField in curData)){
console.error(`当前数据对象不包含属性singleMainField,可能会发生错误`);
}
})
let strTag:String = "";
for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]])?(i == 0) ? curData[this.mainStateFields[0]] : "":"";
if (this.mainStateFields.length >= 2) {
for (let j = 0; j <= 1; j++) {
let strTag2:string = (curData[this.mainStateFields[1]])?`${strTag}__${(j == 0) ? curData[this.mainStateFields[1]] : ""}`:strTag;
if (this.mainStateFields.length >= 3) {
for (let k = 0; k <= 1; k++) {
let strTag3:string = (curData[this.mainStateFields[2]])?`${strTag2}__${(k == 0) ? curData[this.mainStateFields[2]] : ""}`:strTag2;
// 判断是否存在
return this.allDeMainStateMap.get(strTag3);
}
}else{
return this.allDeMainStateMap.get(strTag2);
}
}
}else{
return this.allDeMainStateMap.get(strTag);
}
}
return null;
}
}
\ No newline at end of file
import PriceLevelUIServiceBase from './price-level-ui-service-base';
/**
* 价目表UI服务对象
*
* @export
* @class PriceLevelUIService
*/
export default class PriceLevelUIService extends PriceLevelUIServiceBase {
/**
* Creates an instance of PriceLevelUIService.
*
* @param {*} [opts={}]
* @memberof PriceLevelUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -39,7 +39,8 @@ export class UIServiceRegister {
* @memberof UIServiceRegister
*/
protected init(): void {
this.allUIService.set('opportunity', () => import('@/uiservice/opportunity/opportunity-ui-service'));
this.allUIService.set('pricelevel', () => import('@/uiservice/price-level/price-level-ui-service'));
this.allUIService.set('opportunity', () => import('@/uiservice/opportunity/opportunity-ui-service'));
this.allUIService.set('goal', () => import('@/uiservice/goal/goal-ui-service'));
this.allUIService.set('invoice', () => import('@/uiservice/invoice/invoice-ui-service'));
this.allUIService.set('lead', () => import('@/uiservice/lead/lead-ui-service'));
......
<template>
<div class='portlet account ' :style="{'height': isAdaptiveSize ? 'calc(100% - 16px)' : (height > 0 ? height+'px' :'300px'),}">
<p class='portlet-title'>
<span>
账户信息
</span>
</p>
<div class="portlet-with-title">
<account-account :viewdata="JSON.stringify(context)" :viewDefaultUsage="false" ></account-account>
</div>
</div>
</template>
<script lang='tsx'>
import { Vue, Component, Prop, Provide, Emit, Watch, Model } from 'vue-property-decorator';
import { CreateElement } from 'vue';
import { Subject, Subscription } from 'rxjs';
import { ControlInterface } from '@/interface/control';
import { UIActionTool,Util } from '@/utils';
import AccountService from '@/service/account/account-service';
import AccountService from './account-portlet-service';
import { Environment } from '@/environments/environment';
@Component({
components: {
}
})
export default class AccountAccountBase extends Vue implements ControlInterface {
/**
* 名称
*
* @type {string}
* @memberof Account
*/
@Prop() public name?: string;
/**
* 视图通讯对象
*
* @type {Subject<ViewState>}
* @memberof Account
*/
@Prop() public viewState!: Subject<ViewState>;
/**
* 应用上下文
*
* @type {*}
* @memberof Account
*/
@Prop() public context: any;
/**
* 视图参数
*
* @type {*}
* @memberof Account
*/
@Prop() public viewparams: any;
/**
* 视图状态事件
*
* @public
* @type {(Subscription | undefined)}
* @memberof Account
*/
public viewStateEvent: Subscription | undefined;
/**
* 获取部件类型
*
* @returns {string}
* @memberof Account
*/
public getControlType(): string {
return 'PORTLET'
}
/**
* 计数器服务对象集合
*
* @type {Array<*>}
* @memberof Account
*/
public counterServiceArray:Array<any> = [];
/**
* 建构部件服务对象
*
* @type {AccountService}
* @memberof Account
*/
public service: AccountService = new AccountService({ $store: this.$store });
/**
* 实体服务对象
*
* @type {AccountService}
* @memberof Account
*/
public appEntityService: AccountService = new AccountService({ $store: this.$store });
/**
* 关闭视图
*
* @param {any} args
* @memberof Account
*/
public closeView(args: any): void {
let _this: any = this;
_this.$emit('closeview', [args]);
}
/**
* 计数器刷新
*
* @memberof Account
*/
public counterRefresh(){
const _this:any =this;
if(_this.counterServiceArray && _this.counterServiceArray.length >0){
_this.counterServiceArray.forEach((item:any) =>{
if(item.refreshData && item.refreshData instanceof Function){
item.refreshData();
}
})
}
}
/**
* 长度
*
* @type {number}
* @memberof Account
*/
@Prop() public height?: number;
/**
* 宽度
*
* @type {number}
* @memberof Account
*/
@Prop() public width?: number;
/**
* 是否自适应大小
*
* @returns {boolean}
* @memberof AccountBase
*/
@Prop({default: false})public isAdaptiveSize!: boolean;
/**
* 获取多项数据
*
* @returns {any[]}
* @memberof AccountBase
*/
public getDatas(): any[] {
return [];
}
/**
* 获取单项树
*
* @returns {*}
* @memberof AccountBase
*/
public getData(): any {
return {};
}
/**
* vue 生命周期
*
* @memberof AccountBase
*/
public created() {
this.afterCreated();
}
/**
* 执行created后的逻辑
*
* @memberof AccountBase
*/
public afterCreated(){
if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (!Object.is(tag, this.name)) {
return;
}
const refs: any = this.$refs;
Object.keys(refs).forEach((_name: string) => {
this.viewState.next({ tag: _name, action: action, data: data });
});
});
}
}
/**
* vue 生命周期
*
* @memberof AccountBase
*/
public destroyed() {
this.afterDestroy();
}
/**
* 执行destroyed后的逻辑
*
* @memberof AccountBase
*/
public afterDestroy() {
if (this.viewStateEvent) {
this.viewStateEvent.unsubscribe();
}
}
}
</script>
<style lang='less'>
@import './account-portlet.less';
</style>
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Account 部件服务对象
*
* @export
* @class AccountService
*/
export default class AccountService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AccountAccountBase from './account-portlet-base.vue';
@Component({
components: {
}
})
export default class AccountAccount extends AccountAccountBase {
}
</script>
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Address 部件服务对象
*
* @export
* @class AddressService
*/
export default class AddressService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AccountAddressBase from './address-portlet-base.vue';
@Component({
components: {
}
})
export default class AccountAddress extends AccountAddressBase {
}
</script>
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* ContactSetting 部件服务对象
*
* @export
* @class ContactSettingService
*/
export default class ContactSettingService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AccountContactSettingBase from './contact-setting-portlet-base.vue';
@Component({
components: {
}
})
export default class AccountContactSetting extends AccountContactSettingBase {
}
</script>
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Distribution 部件服务对象
*
* @export
* @class DistributionService
*/
export default class DistributionService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AccountDistributionBase from './distribution-portlet-base.vue';
@Component({
components: {
}
})
export default class AccountDistribution extends AccountDistributionBase {
}
</script>
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* Introduction 部件服务对象
*
* @export
* @class IntroductionService
*/
export default class IntroductionService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AccountIntroductionBase from './introduction-portlet-base.vue';
@Component({
components: {
}
})
export default class AccountIntroduction extends AccountIntroductionBase {
}
</script>
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* MajorContact 部件服务对象
*
* @export
* @class MajorContactService
*/
export default class MajorContactService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AccountMajorContactBase from './major-contact-portlet-base.vue';
@Component({
components: {
}
})
export default class AccountMajorContact extends AccountMajorContactBase {
}
</script>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import SummaryBase from './summary-dashboard-base.vue';
import view_dashboard_sysportlet6 from '@widgets/account/major-contact-portlet/major-contact-portlet.vue';
import view_dashboard_sysportlet7 from '@widgets/contact/by-account-portlet/by-account-portlet.vue';
import view_dashboard_sysportlet4 from '@widgets/account/contact-setting-portlet/contact-setting-portlet.vue';
import view_dashboard_sysportlet5 from '@widgets/account/distribution-portlet/distribution-portlet.vue';
import view_dashboard_sysportlet2 from '@widgets/account/address-portlet/address-portlet.vue';
import view_dashboard_sysportlet3 from '@widgets/account/introduction-portlet/introduction-portlet.vue';
import view_dashboard_sysportlet1 from '@widgets/account/account-portlet/account-portlet.vue';
@Component({
components: {
view_dashboard_sysportlet6,
view_dashboard_sysportlet7,
view_dashboard_sysportlet4,
view_dashboard_sysportlet5,
view_dashboard_sysportlet2,
view_dashboard_sysportlet3,
view_dashboard_sysportlet1,
}
})
......
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import ByAccountBase from './by-account-list-base.vue';
import layout_dashboard_sysportlet7_list_itempanel from '@widgets/contact/by-account-panel/by-account-panel.vue';
@Component({
components: {
layout_dashboard_sysportlet7_list_itempanel,
}
})
export default class ByAccount extends ByAccountBase {
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册