Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
iBiz企业中心
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
iBiz企业套件
iBiz企业中心
提交
fbf95442
提交
fbf95442
编写于
7月 06, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chitanda 发布系统代码
上级
17349a60
变更
227
隐藏空白字符变更
内嵌
并排
正在显示
227 个修改的文件
包含
795 行增加
和
1879 行删除
+795
-1879
app-file-upload.vue
app_CRM/src/components/app-file-upload/app-file-upload.vue
+18
-10
dropdown-list-mpicker.vue
...omponents/dropdown-list-mpicker/dropdown-list-mpicker.vue
+1
-1
tab-page-exp.vue
app_CRM/src/components/tab-page-exp/tab-page-exp.vue
+21
-34
edit-view-engine.ts
app_CRM/src/engine/view/edit-view-engine.ts
+1
-2
account-edit-account-info.vue
...e/account-edit-account-info/account-edit-account-info.vue
+0
-6
account-edit-address.vue
.../pages/base/account-edit-address/account-edit-address.vue
+0
-6
account-edit-introduction.vue
...e/account-edit-introduction/account-edit-introduction.vue
+0
-6
account-edit-view.vue
...RM/src/pages/base/account-edit-view/account-edit-view.vue
+0
-6
account-grid-view.vue
...RM/src/pages/base/account-grid-view/account-grid-view.vue
+0
-6
account-info-all.vue
app_CRM/src/pages/base/account-info-all/account-info-all.vue
+0
-6
account-info-major-contact.vue
...account-info-major-contact/account-info-major-contact.vue
+0
-6
account-info-base.tsx
app_CRM/src/pages/base/account-info/account-info-base.tsx
+1
-4
account-info.vue
app_CRM/src/pages/base/account-info/account-info.vue
+0
-6
account-inner-pickup-grid-view.vue
...inner-pickup-grid-view/account-inner-pickup-grid-view.vue
+0
-6
account-inner-pickup-view.vue
...e/account-inner-pickup-view/account-inner-pickup-view.vue
+0
-6
account-pickup-grid-view.vue
...ase/account-pickup-grid-view/account-pickup-grid-view.vue
+0
-6
account-pickup-view.vue
...rc/pages/base/account-pickup-view/account-pickup-view.vue
+0
-6
account-quick-create.vue
.../pages/base/account-quick-create/account-quick-create.vue
+0
-6
account-status-tab-view-base.tsx
.../account-status-tab-view/account-status-tab-view-base.tsx
+1
-4
account-status-tab-view.vue
.../base/account-status-tab-view/account-status-tab-view.vue
+0
-6
account-stop-grid-view.vue
...es/base/account-stop-grid-view/account-stop-grid-view.vue
+0
-6
account-summary.vue
app_CRM/src/pages/base/account-summary/account-summary.vue
+0
-6
account-usable-grid-view.vue
...ase/account-usable-grid-view/account-usable-grid-view.vue
+0
-6
activity-pointer-by-parent-key.vue
...-pointer-by-parent-key/activity-pointer-by-parent-key.vue
+0
-6
activity-pointer-edit-view.vue
...activity-pointer-edit-view/activity-pointer-edit-view.vue
+0
-6
activity-pointer-grid-view.vue
...activity-pointer-grid-view/activity-pointer-grid-view.vue
+0
-6
activity-pointer-redirect-view.vue
...-pointer-redirect-view/activity-pointer-redirect-view.vue
+0
-6
appointment-edit-view.vue
...ages/base/appointment-edit-view/appointment-edit-view.vue
+0
-6
appointment-quick-create.vue
...ase/appointment-quick-create/appointment-quick-create.vue
+0
-6
contact-by-account.vue
.../src/pages/base/contact-by-account/contact-by-account.vue
+0
-6
contact-edit-address.vue
.../pages/base/contact-edit-address/contact-edit-address.vue
+0
-6
contact-edit-book.vue
...RM/src/pages/base/contact-edit-book/contact-edit-book.vue
+0
-6
contact-edit-market.vue
...rc/pages/base/contact-edit-market/contact-edit-market.vue
+0
-6
contact-edit-person.vue
...rc/pages/base/contact-edit-person/contact-edit-person.vue
+0
-6
contact-grid-view.vue
...RM/src/pages/base/contact-grid-view/contact-grid-view.vue
+0
-6
contact-info-abstract.vue
...ages/base/contact-info-abstract/contact-info-abstract.vue
+0
-6
contact-info-base.tsx
app_CRM/src/pages/base/contact-info/contact-info-base.tsx
+1
-4
contact-info.vue
app_CRM/src/pages/base/contact-info/contact-info.vue
+0
-6
contact-pickup-grid-view.vue
...ase/contact-pickup-grid-view/contact-pickup-grid-view.vue
+0
-6
contact-pickup-view.vue
...rc/pages/base/contact-pickup-view/contact-pickup-view.vue
+0
-6
contact-quick-create.vue
.../pages/base/contact-quick-create/contact-quick-create.vue
+0
-6
contact-stop-grid-view.vue
...es/base/contact-stop-grid-view/contact-stop-grid-view.vue
+0
-6
contact-summary-view.vue
.../pages/base/contact-summary-view/contact-summary-view.vue
+0
-6
contact-tab-exp-view-base.tsx
...s/base/contact-tab-exp-view/contact-tab-exp-view-base.tsx
+1
-4
contact-tab-exp-view.vue
.../pages/base/contact-tab-exp-view/contact-tab-exp-view.vue
+0
-6
contact-usable-grid-view.vue
...ase/contact-usable-grid-view/contact-usable-grid-view.vue
+0
-6
email-edit-view.vue
app_CRM/src/pages/base/email-edit-view/email-edit-view.vue
+0
-6
fax-edit-view.vue
app_CRM/src/pages/base/fax-edit-view/fax-edit-view.vue
+0
-6
letter-edit-view.vue
app_CRM/src/pages/base/letter-edit-view/letter-edit-view.vue
+0
-6
metric-edit-view.vue
app_CRM/src/pages/base/metric-edit-view/metric-edit-view.vue
+0
-6
metric-grid-view.vue
app_CRM/src/pages/base/metric-grid-view/metric-grid-view.vue
+0
-6
metric-pickup-grid-view.vue
.../base/metric-pickup-grid-view/metric-pickup-grid-view.vue
+0
-6
metric-pickup-view.vue
.../src/pages/base/metric-pickup-view/metric-pickup-view.vue
+0
-6
phone-call-edit-view.vue
.../pages/base/phone-call-edit-view/phone-call-edit-view.vue
+0
-6
subject-pickup-grid-view.vue
...ase/subject-pickup-grid-view/subject-pickup-grid-view.vue
+0
-6
subject-pickup-view.vue
...rc/pages/base/subject-pickup-view/subject-pickup-view.vue
+0
-6
task-edit-view.vue
app_CRM/src/pages/base/task-edit-view/task-edit-view.vue
+0
-6
task-quick-create.vue
...RM/src/pages/base/task-quick-create/task-quick-create.vue
+0
-6
transaction-currency-pickup-grid-view.vue
...ickup-grid-view/transaction-currency-pickup-grid-view.vue
+0
-6
transaction-currency-pickup-view.vue
...currency-pickup-view/transaction-currency-pickup-view.vue
+0
-6
uom-pickup-grid-view.vue
.../pages/base/uom-pickup-grid-view/uom-pickup-grid-view.vue
+0
-6
uom-pickup-view.vue
app_CRM/src/pages/base/uom-pickup-view/uom-pickup-view.vue
+0
-6
invoice-detail-edit-view.vue
...nce/invoice-detail-edit-view/invoice-detail-edit-view.vue
+0
-6
invoice-detail-invoice-pro-grid-view.vue
...ce-pro-grid-view/invoice-detail-invoice-pro-grid-view.vue
+0
-6
invoice-grid-view.vue
...src/pages/finance/invoice-grid-view/invoice-grid-view.vue
+0
-6
invoice-info-invoice-view.vue
...e/invoice-info-invoice-view/invoice-info-invoice-view.vue
+0
-6
invoice-info-view-base.tsx
...ages/finance/invoice-info-view/invoice-info-view-base.tsx
+1
-4
invoice-info-view.vue
...src/pages/finance/invoice-info-view/invoice-info-view.vue
+0
-6
invoice-quick-create-view.vue
...e/invoice-quick-create-view/invoice-quick-create-view.vue
+0
-6
invoice-summary-view.vue
...ges/finance/invoice-summary-view/invoice-summary-view.vue
+0
-6
campaign-activity-by-parent-key.vue
...ctivity-by-parent-key/campaign-activity-by-parent-key.vue
+0
-6
campaign-activity-edit-view.vue
...mpaign-activity-edit-view/campaign-activity-edit-view.vue
+0
-6
campaign-activity-quick-create.vue
...-activity-quick-create/campaign-activity-quick-create.vue
+0
-6
campaign-edit-head.vue
...pages/marketing/campaign-edit-head/campaign-edit-head.vue
+0
-6
campaign-grid-view.vue
...pages/marketing/campaign-grid-view/campaign-grid-view.vue
+0
-6
campaign-info-campagin.vue
...rketing/campaign-info-campagin/campaign-info-campagin.vue
+0
-6
campaign-info-head.vue
...pages/marketing/campaign-info-head/campaign-info-head.vue
+0
-6
campaign-info-manager.vue
...marketing/campaign-info-manager/campaign-info-manager.vue
+0
-6
campaign-info-schedule.vue
...rketing/campaign-info-schedule/campaign-info-schedule.vue
+0
-6
campaign-info-base.tsx
.../src/pages/marketing/campaign-info/campaign-info-base.tsx
+1
-4
campaign-info.vue
app_CRM/src/pages/marketing/campaign-info/campaign-info.vue
+0
-6
campaign-list-edit-view.vue
...eting/campaign-list-edit-view/campaign-list-edit-view.vue
+0
-6
campaign-list-grid-view.vue
...eting/campaign-list-grid-view/campaign-list-grid-view.vue
+0
-6
campaign-quick-create-view.vue
...campaign-quick-create-view/campaign-quick-create-view.vue
+0
-6
campaign-response-by-parent-key.vue
...esponse-by-parent-key/campaign-response-by-parent-key.vue
+0
-6
campaign-response-edit-view.vue
...mpaign-response-edit-view/campaign-response-edit-view.vue
+0
-6
campaign-response-quick-create.vue
...-response-quick-create/campaign-response-quick-create.vue
+0
-6
campaign-summary-head.vue
...marketing/campaign-summary-head/campaign-summary-head.vue
+0
-6
campaign-summary.vue
...src/pages/marketing/campaign-summary/campaign-summary.vue
+0
-6
ibiz-list-grid-view.vue
...ges/marketing/ibiz-list-grid-view/ibiz-list-grid-view.vue
+0
-6
ibiz-list-info-abstract.vue
...eting/ibiz-list-info-abstract/ibiz-list-info-abstract.vue
+0
-6
ibiz-list-info-base.tsx
...rc/pages/marketing/ibiz-list-info/ibiz-list-info-base.tsx
+1
-4
ibiz-list-info.vue
...CRM/src/pages/marketing/ibiz-list-info/ibiz-list-info.vue
+0
-6
ibiz-list-option-view.vue
...marketing/ibiz-list-option-view/ibiz-list-option-view.vue
+0
-6
ibiz-list-quick-create.vue
...rketing/ibiz-list-quick-create/ibiz-list-quick-create.vue
+0
-6
ibiz-list-summary.vue
...c/pages/marketing/ibiz-list-summary/ibiz-list-summary.vue
+0
-6
list-account-by-list.vue
...s/marketing/list-account-by-list/list-account-by-list.vue
+0
-6
list-account-edit-view.vue
...rketing/list-account-edit-view/list-account-edit-view.vue
+0
-6
list-account-inner.vue
...pages/marketing/list-account-inner/list-account-inner.vue
+0
-6
list-account-quick-create-by-list.vue
...uick-create-by-list/list-account-quick-create-by-list.vue
+0
-6
list-contact-edit-view.vue
...rketing/list-contact-edit-view/list-contact-edit-view.vue
+0
-6
list-contact-grid-view.vue
...rketing/list-contact-grid-view/list-contact-grid-view.vue
+0
-6
list-contact-inner.vue
...pages/marketing/list-contact-inner/list-contact-inner.vue
+0
-6
list-lead-by-list.vue
...c/pages/marketing/list-lead-by-list/list-lead-by-list.vue
+0
-6
list-lead-quick-create-by-list.vue
...d-quick-create-by-list/list-lead-quick-create-by-list.vue
+0
-6
price-level-pickup-grid-view.vue
...e-level-pickup-grid-view/price-level-pickup-grid-view.vue
+0
-6
price-level-pickup-view.vue
...oduct/price-level-pickup-view/price-level-pickup-view.vue
+0
-6
product-association-edit-view.vue
...t-association-edit-view/product-association-edit-view.vue
+0
-6
product-association-grid-view.vue
...t-association-grid-view/product-association-grid-view.vue
+0
-6
product-grid-view.vue
...src/pages/product/product-grid-view/product-grid-view.vue
+0
-6
product-info-pro-info.vue
...s/product/product-info-pro-info/product-info-pro-info.vue
+0
-6
product-info-view-base.tsx
...ages/product/product-info-view/product-info-view-base.tsx
+1
-4
product-info-view.vue
...src/pages/product/product-info-view/product-info-view.vue
+0
-6
product-pickup-grid-view.vue
...uct/product-pickup-grid-view/product-pickup-grid-view.vue
+0
-6
product-pickup-view.vue
...pages/product/product-pickup-view/product-pickup-view.vue
+0
-6
product-price-level-pro-prilv-edit-view.vue
...ilv-edit-view/product-price-level-pro-prilv-edit-view.vue
+0
-6
product-price-level-pro-prilv-grid-view.vue
...ilv-grid-view/product-price-level-pro-prilv-grid-view.vue
+0
-6
product-quick-create-view.vue
...t/product-quick-create-view/product-quick-create-view.vue
+0
-6
product-substitute-edit-view.vue
...uct-substitute-edit-view/product-substitute-edit-view.vue
+0
-6
product-substitute-grid-view.vue
...uct-substitute-grid-view/product-substitute-grid-view.vue
+0
-6
product-summary-view.vue
...ges/product/product-summary-view/product-summary-view.vue
+0
-6
competitor-grid-view.vue
...pages/sales/competitor-grid-view/competitor-grid-view.vue
+0
-6
competitor-info-abstract.vue
...les/competitor-info-abstract/competitor-info-abstract.vue
+0
-6
competitor-info-base.tsx
.../src/pages/sales/competitor-info/competitor-info-base.tsx
+1
-4
competitor-info.vue
app_CRM/src/pages/sales/competitor-info/competitor-info.vue
+0
-6
competitor-option-view.vue
...s/sales/competitor-option-view/competitor-option-view.vue
+0
-6
competitor-pickup-grid-view.vue
...mpetitor-pickup-grid-view/competitor-pickup-grid-view.vue
+0
-6
competitor-pickup-view.vue
...s/sales/competitor-pickup-view/competitor-pickup-view.vue
+0
-6
competitor-sales-literature-sal-lit-comp-edit-view.vue
...ew/competitor-sales-literature-sal-lit-comp-edit-view.vue
+0
-6
competitor-sales-literature-sal-lit-comp-grid-view.vue
...ew/competitor-sales-literature-sal-lit-comp-grid-view.vue
+0
-6
competitor-summary.vue
...src/pages/sales/competitor-summary/competitor-summary.vue
+0
-6
discount-type-pickup-grid-view.vue
...-type-pickup-grid-view/discount-type-pickup-grid-view.vue
+0
-6
discount-type-pickup-view.vue
...s/discount-type-pickup-view/discount-type-pickup-view.vue
+0
-6
goal-child-goal-grid-view.vue
...s/goal-child-goal-grid-view/goal-child-goal-grid-view.vue
+0
-6
goal-edit-child-goal-view.vue
...s/goal-edit-child-goal-view/goal-edit-child-goal-view.vue
+0
-6
goal-grid-view.vue
app_CRM/src/pages/sales/goal-grid-view/goal-grid-view.vue
+0
-6
goal-info-goal-view.vue
...c/pages/sales/goal-info-goal-view/goal-info-goal-view.vue
+0
-6
goal-info-view-base.tsx
...RM/src/pages/sales/goal-info-view/goal-info-view-base.tsx
+1
-4
goal-info-view.vue
app_CRM/src/pages/sales/goal-info-view/goal-info-view.vue
+0
-6
goal-pickup-grid-view.vue
...ges/sales/goal-pickup-grid-view/goal-pickup-grid-view.vue
+0
-6
goal-pickup-view.vue
...CRM/src/pages/sales/goal-pickup-view/goal-pickup-view.vue
+0
-6
goal-quick-create-view.vue
...s/sales/goal-quick-create-view/goal-quick-create-view.vue
+0
-6
goal-state-tab-view-base.tsx
...es/sales/goal-state-tab-view/goal-state-tab-view-base.tsx
+1
-4
goal-state-tab-view.vue
...c/pages/sales/goal-state-tab-view/goal-state-tab-view.vue
+0
-6
goal-summary-view.vue
...M/src/pages/sales/goal-summary-view/goal-summary-view.vue
+0
-6
lead-con-lead-grid-view.vue
...sales/lead-con-lead-grid-view/lead-con-lead-grid-view.vue
+0
-6
lead-dashboard-view.vue
...c/pages/sales/lead-dashboard-view/lead-dashboard-view.vue
+0
-6
lead-excluded-grid-view.vue
...sales/lead-excluded-grid-view/lead-excluded-grid-view.vue
+0
-6
lead-grid-view.vue
app_CRM/src/pages/sales/lead-grid-view/lead-grid-view.vue
+0
-6
lead-info-contact.vue
...M/src/pages/sales/lead-info-contact/lead-info-contact.vue
+0
-6
lead-info-base.tsx
app_CRM/src/pages/sales/lead-info/lead-info-base.tsx
+1
-4
lead-info.vue
app_CRM/src/pages/sales/lead-info/lead-info.vue
+0
-6
lead-on-grid-view.vue
...M/src/pages/sales/lead-on-grid-view/lead-on-grid-view.vue
+0
-6
lead-pickup-grid-view.vue
...ges/sales/lead-pickup-grid-view/lead-pickup-grid-view.vue
+0
-6
lead-pickup-view.vue
...CRM/src/pages/sales/lead-pickup-view/lead-pickup-view.vue
+0
-6
lead-qualification.vue
...src/pages/sales/lead-qualification/lead-qualification.vue
+0
-6
lead-quick-create.vue
...M/src/pages/sales/lead-quick-create/lead-quick-create.vue
+0
-6
lead-status-tab-view-base.tsx
.../sales/lead-status-tab-view/lead-status-tab-view-base.tsx
+1
-4
lead-status-tab-view.vue
...pages/sales/lead-status-tab-view/lead-status-tab-view.vue
+0
-6
opportunity-competitor-edit-view.vue
...competitor-edit-view/opportunity-competitor-edit-view.vue
+0
-6
opportunity-competitor-opp-comp-grid-view.vue
...p-grid-view/opportunity-competitor-opp-comp-grid-view.vue
+0
-6
opportunity-con-opp-grid-view.vue
...unity-con-opp-grid-view/opportunity-con-opp-grid-view.vue
+0
-6
opportunity-edit-view.vue
...ges/sales/opportunity-edit-view/opportunity-edit-view.vue
+0
-6
opportunity-grid-view.vue
...ges/sales/opportunity-grid-view/opportunity-grid-view.vue
+0
-6
opportunity-info-abstract.vue
...s/opportunity-info-abstract/opportunity-info-abstract.vue
+0
-6
opportunity-info-base.tsx
...rc/pages/sales/opportunity-info/opportunity-info-base.tsx
+1
-4
opportunity-info.vue
...CRM/src/pages/sales/opportunity-info/opportunity-info.vue
+0
-6
opportunity-pickup-grid-view.vue
...rtunity-pickup-grid-view/opportunity-pickup-grid-view.vue
+0
-6
opportunity-pickup-view.vue
...sales/opportunity-pickup-view/opportunity-pickup-view.vue
+0
-6
opportunity-product-edit-view.vue
...unity-product-edit-view/opportunity-product-edit-view.vue
+0
-6
opportunity-product-opp-opp-pro-grid-view.vue
...o-grid-view/opportunity-product-opp-opp-pro-grid-view.vue
+0
-6
opportunity-quick-create.vue
...les/opportunity-quick-create/opportunity-quick-create.vue
+0
-6
opportunity-summary.vue
...c/pages/sales/opportunity-summary/opportunity-summary.vue
+0
-6
product-sales-literature-sal-lit-pro-edit-view.vue
...t-view/product-sales-literature-sal-lit-pro-edit-view.vue
+0
-6
product-sales-literature-sal-lit-pro-grid-view.vue
...d-view/product-sales-literature-sal-lit-pro-grid-view.vue
+0
-6
quote-detail-edit-view.vue
...s/sales/quote-detail-edit-view/quote-detail-edit-view.vue
+0
-6
quote-detail-quo-detail-grid-view.vue
...uo-detail-grid-view/quote-detail-quo-detail-grid-view.vue
+0
-6
quote-edit-view.vue
app_CRM/src/pages/sales/quote-edit-view/quote-edit-view.vue
+0
-6
quote-grid-view.vue
app_CRM/src/pages/sales/quote-grid-view/quote-grid-view.vue
+0
-6
quote-info-abstract.vue
...c/pages/sales/quote-info-abstract/quote-info-abstract.vue
+0
-6
quote-info-base.tsx
app_CRM/src/pages/sales/quote-info/quote-info-base.tsx
+1
-4
quote-info.vue
app_CRM/src/pages/sales/quote-info/quote-info.vue
+0
-6
quote-opp-qua-grid-view.vue
...sales/quote-opp-qua-grid-view/quote-opp-qua-grid-view.vue
+0
-6
quote-option-view.vue
...M/src/pages/sales/quote-option-view/quote-option-view.vue
+0
-6
quote-summary.vue
app_CRM/src/pages/sales/quote-summary/quote-summary.vue
+0
-6
sales-literature-grid-view.vue
...sales-literature-grid-view/sales-literature-grid-view.vue
+0
-6
sales-literature-info-sal-lit-view.vue
...-info-sal-lit-view/sales-literature-info-sal-lit-view.vue
+0
-6
sales-literature-info-view-base.tsx
...-literature-info-view/sales-literature-info-view-base.tsx
+1
-4
sales-literature-info-view.vue
...sales-literature-info-view/sales-literature-info-view.vue
+0
-6
sales-literature-item-edit-view.vue
...rature-item-edit-view/sales-literature-item-edit-view.vue
+0
-6
sales-literature-item-grid-view.vue
...rature-item-grid-view/sales-literature-item-grid-view.vue
+0
-6
sales-literature-quick-create-view.vue
...-quick-create-view/sales-literature-quick-create-view.vue
+0
-6
sales-literature-summary-view.vue
...literature-summary-view/sales-literature-summary-view.vue
+0
-6
sales-order-detail-edit-view.vue
...s-order-detail-edit-view/sales-order-detail-edit-view.vue
+0
-6
sales-order-detail-soproduct-grid-view.vue
...duct-grid-view/sales-order-detail-soproduct-grid-view.vue
+0
-6
sales-order-grid-view.vue
...ges/sales/sales-order-grid-view/sales-order-grid-view.vue
+0
-6
sales-order-info-soview.vue
...sales/sales-order-info-soview/sales-order-info-soview.vue
+0
-6
sales-order-info-view-base.tsx
...ales/sales-order-info-view/sales-order-info-view-base.tsx
+1
-4
sales-order-info-view.vue
...ges/sales/sales-order-info-view/sales-order-info-view.vue
+0
-6
sales-order-quick-create-view.vue
...order-quick-create-view/sales-order-quick-create-view.vue
+0
-6
sales-order-summary-view.vue
...les/sales-order-summary-view/sales-order-summary-view.vue
+0
-6
entitlement-pickup-grid-view.vue
...tlement-pickup-grid-view/entitlement-pickup-grid-view.vue
+0
-6
entitlement-pickup-view.vue
...rvice/entitlement-pickup-view/entitlement-pickup-view.vue
+0
-6
incident-child-incident-grid-view.vue
...-incident-grid-view/incident-child-incident-grid-view.vue
+0
-6
incident-edit-chlid-incident.vue
...dent-edit-chlid-incident/incident-edit-chlid-incident.vue
+0
-6
incident-grid-view.vue
...c/pages/service/incident-grid-view/incident-grid-view.vue
+0
-6
incident-info-incident-view.vue
...cident-info-incident-view/incident-info-incident-view.vue
+0
-6
incident-info-view-base.tsx
...es/service/incident-info-view/incident-info-view-base.tsx
+1
-4
incident-info-view.vue
...c/pages/service/incident-info-view/incident-info-view.vue
+0
-6
incident-quick-create-view.vue
...incident-quick-create-view/incident-quick-create-view.vue
+0
-6
incident-summary-view.vue
...s/service/incident-summary-view/incident-summary-view.vue
+0
-6
service-appointment-edit-view.vue
...e-appointment-edit-view/service-appointment-edit-view.vue
+0
-6
centeral-portal.vue
...CRM/src/pages/ungroup/centeral-portal/centeral-portal.vue
+0
-6
campaign-service-base.ts
app_CRM/src/service/campaign/campaign-service-base.ts
+52
-52
contact-service-base.ts
app_CRM/src/service/contact/contact-service-base.ts
+139
-139
ibiz-list-service-base.ts
app_CRM/src/service/ibiz-list/ibiz-list-service-base.ts
+50
-50
opportunity-service-base.ts
app_CRM/src/service/opportunity/opportunity-service-base.ts
+219
-219
product-service-base.ts
app_CRM/src/service/product/product-service-base.ts
+50
-50
sales-literature-service-base.ts
...service/sales-literature/sales-literature-service-base.ts
+47
-47
studio-view-layout.less
...tudio-core/components/studio-view/studio-view-layout.less
+1
-1
UIStateService.ts
app_CRM/src/studio-core/service/UIStateService.ts
+10
-0
AppNavHistoryBase.ts
.../studio-core/service/app-nav-history/AppNavHistoryBase.ts
+97
-52
index.d.ts
app_CRM/src/studio-core/types/index.d.ts
+24
-0
js-basic-extension.ts
app_CRM/src/studio-core/utils/js-basic-extension.ts
+31
-1
studio-drawer.less
...RM/src/studio-core/utils/studio-drawer/studio-drawer.less
+7
-0
ViewBase.tsx
app_CRM/src/studio-core/view/ViewBase.tsx
+8
-2
central-appmenu-base.tsx
.../src/widgets/app/central-appmenu/central-appmenu-base.tsx
+1
-1
未找到文件。
app_CRM/src/components/app-file-upload/app-file-upload.vue
浏览文件 @
fbf95442
...
...
@@ -136,7 +136,8 @@ export default class AppFileUpload extends Vue {
if
(
this
.
ignorefieldvaluechange
)
{
return
;
}
this
.
setFiles
(
newval
)
this
.
getParams
();
this
.
setFiles
(
newval
);
this
.
dataProcess
();
}
...
...
@@ -288,6 +289,7 @@ export default class AppFileUpload extends Vue {
this
.
formStateEvent
=
this
.
formState
.
subscribe
((
$event
:
any
)
=>
{
// 表单加载完成
if
(
Object
.
is
(
$event
.
type
,
'load'
))
{
this
.
getParams
();
this
.
setFiles
(
this
.
value
);
this
.
dataProcess
();
}
...
...
@@ -303,27 +305,36 @@ export default class AppFileUpload extends Vue {
*/
public
mounted
()
{
this
.
appData
=
this
.
$store
.
getters
.
getAppData
();
this
.
getParams
();
this
.
setFiles
(
this
.
value
);
this
.
dataProcess
();
}
let
uploadparams
:
any
=
{};
let
exportparams
:
any
=
{};
/**
*获取上传,导出参数
*
*@memberof AppFileUpload
*/
public
getParams
(){
let
uploadparams
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
uploadparams
));
let
exportparams
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
exportparams
));
let
upload_params
:
Array
<
string
>
=
[];
let
export_params
:
Array
<
string
>
=
[];
let
custom_arr
:
Array
<
string
>
=
[];
let
param
:
any
=
this
.
viewparams
;
let
context
:
any
=
this
.
context
;
let
_data
:
any
=
JSON
.
parse
(
this
.
data
);
if
(
this
.
uploadparams
&&
!
Object
.
is
(
this
.
uploadparams
,
''
))
{
uploadparams
=
this
.
uploadparams
;
upload_params
=
this
.
$util
.
computedNavData
(
_data
,
param
,
context
,
uploadparams
);
}
if
(
this
.
exportparams
&&
!
Object
.
is
(
this
.
exportparams
,
''
))
{
exportparams
=
this
.
exportparams
;
export_params
=
this
.
$util
.
computedNavData
(
_data
,
param
,
context
,
exportparams
);
}
this
.
upload_params
=
[];
this
.
export_params
=
[];
for
(
const
item
in
upload_params
)
{
this
.
upload_params
.
push
({
...
...
@@ -335,9 +346,6 @@ export default class AppFileUpload extends Vue {
[
item
]:
export_params
[
item
]
})
}
this
.
setFiles
(
this
.
value
);
this
.
dataProcess
();
}
/**
...
...
app_CRM/src/components/dropdown-list-mpicker/dropdown-list-mpicker.vue
浏览文件 @
fbf95442
...
...
@@ -9,7 +9,7 @@
:filterable=
"filterable === true ? true : false"
@
on-open-change=
"onClick"
:placeholder=
"$t('components.dropDownListMpicker.placeholder')"
>
<i-option
v-for=
"(item, index) in items"
:key=
"index"
:value=
"item.value"
:label=
"item.text"
>
<i-option
v-for=
"(item, index) in items"
:key=
"index"
:value=
"item.value
.toString()
"
:label=
"item.text"
>
<Checkbox
:value =
"(currentVal.indexOf(item.value))==-1?false:true"
>
{{
Object
.
is
(
codelistType
,
'STATIC'
)
?
$t
(
'codelist.'
+
tag
+
'.'
+
item
.
value
)
:
item
.
text
}}
</Checkbox>
...
...
app_CRM/src/components/tab-page-exp/tab-page-exp.vue
浏览文件 @
fbf95442
...
...
@@ -7,12 +7,12 @@
<div
ref=
"scrollChild"
class=
"tags-container"
:style=
"
{left: styleLeft + 'px'}">
<transition-group
name=
"tags-transition"
>
<template
v-for=
"(item, index) of appService.navHistory.historyList"
>
<Tag
ref=
"tagElement"
:key=
"index"
:class=
"isActive(item) ? 'tag-is-active' : ''"
:name=
"index"
closable
@
click
.
native=
"changePage(item)"
@
on-close=
"onClose(item)"
>
<Tag
ref=
"tagElement"
:key=
"i
tem.tag + i
ndex"
:class=
"isActive(item) ? 'tag-is-active' : ''"
:name=
"index"
closable
@
click
.
native=
"changePage(item)"
@
on-close=
"onClose(item)"
>
<div
class=
"tag-text"
>
<div
:title=
"
getCaption(item.meta.caption, item.meta.info)
"
style=
"max-width: 300px;"
>
<div
:title=
"
item.title
"
style=
"max-width: 300px;"
>
<i
v-if=
"item.meta.iconCls && !Object.is(item.meta.iconCls, '')"
:class=
"item.meta.iconCls"
></i>
<img
v-else
:src=
"item.meta.imgPath"
class=
"text-icon"
/>
{{
getCaption
(
item
.
meta
.
caption
,
item
.
meta
.
info
)
}}
{{
item
.
title
}}
</div>
</div>
</Tag>
...
...
@@ -63,10 +63,6 @@ export default class TabPageExp extends Vue {
Vue
.
prototype
.
$tabPageExp
=
this
;
}
public
getCaption
(
caption
:
any
,
info
:
any
):
any
{
return
info
&&
!
Object
.
is
(
info
,
''
)
?
`
${
this
.
$t
(
caption
)}
-
${
info
}
`
:
this
.
$t
(
caption
);
}
/**
* 向左移动
*
...
...
@@ -107,10 +103,7 @@ export default class TabPageExp extends Vue {
* @memberof TabPageExp
*/
public
isActive
(
item
:
HistoryItem
):
boolean
{
if
(
Object
.
is
(
item
.
to
.
fullPath
,
this
.
$route
.
fullPath
))
{
return
true
;
}
return
false
;
return
this
.
appService
.
navHistory
.
isRouteSame
(
item
.
to
,
this
.
$route
);
}
/**
...
...
@@ -129,14 +122,24 @@ export default class TabPageExp extends Vue {
content
:
content
,
onOk
:
()
=>
{
this
.
appService
.
navHistory
.
remove
(
item
);
this
.
gotoPage
(
item
.
to
);
},
onCancel
:
()
=>
{
if
(
this
.
appService
.
navHistory
.
historyList
.
length
>
0
)
{
if
(
this
.
appService
.
navHistory
.
isRouteSame
(
item
.
to
,
this
.
$route
))
{
this
.
$router
.
back
();
}
}
else
{
this
.
$router
.
push
(
'/'
);
}
}
});
}
else
{
this
.
appService
.
navHistory
.
remove
(
item
);
this
.
gotoPage
(
item
.
to
);
if
(
this
.
appService
.
navHistory
.
historyList
.
length
>
0
)
{
if
(
this
.
appService
.
navHistory
.
isRouteSame
(
item
.
to
,
this
.
$route
))
{
this
.
$router
.
back
();
}
}
else
{
this
.
$router
.
push
(
'/'
);
}
}
}
...
...
@@ -170,7 +173,7 @@ export default class TabPageExp extends Vue {
* @memberof TabPageExp
*/
public
gotoPage
(
page
?:
any
)
{
if
(
page
)
{
if
(
page
&&
this
.
appService
.
navHistory
.
historyList
.
length
>
0
)
{
if
(
Object
.
is
(
page
.
fullPath
,
this
.
$route
.
fullPath
))
{
return
;
}
...
...
@@ -178,29 +181,13 @@ export default class TabPageExp extends Vue {
}
else
{
const
path
:
string
|
null
=
window
.
sessionStorage
.
getItem
(
Environment
.
AppName
);
if
(
path
)
{
this
.
$router
.
push
({
path
:
path
});
this
.
$router
.
push
({
path
:
path
});
}
else
{
this
.
$router
.
push
(
'/'
);
}
}
}
/**
* 设置当前页标题
*
* @param {*} caption
* @memberof TabPageExp
*/
public
setCurPageCaption
(
caption
:
string
,
title
:
any
,
info
:
string
)
{
if
(
this
.
$route
.
meta
&&
(
!
Object
.
is
(
this
.
$route
.
meta
.
caption
,
caption
)))
{
return
;
}
this
.
appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
caption
:
title
,
info
:
info
});
setTimeout
(()
=>
{
this
.
moveToView
(
this
.
$route
);
},
1
);
}
/**
* 移动至指定页面标签
*
...
...
@@ -264,4 +251,4 @@ export default class TabPageExp extends Vue {
<
style
lang=
"less"
>
@import './tab-page-exp.less';
</
style
>
</
style
>
\ No newline at end of file
app_CRM/src/engine/view/edit-view-engine.ts
浏览文件 @
fbf95442
...
...
@@ -248,13 +248,12 @@ export default class EditViewEngine extends ViewEngine {
public
setTabCaption
(
info
:
string
):
void
{
let
viewdata
:
any
=
this
.
view
.
model
;
if
(
viewdata
&&
info
&&
!
Object
.
is
(
info
,
''
)
&&
this
.
view
.
$tabPageExp
&&
(
viewdata
.
srfTitle
.
indexOf
(
" - "
)
===
-
1
))
{
this
.
view
.
$tabPageExp
.
setCurPageCaption
(
viewdata
.
srfTitle
,
viewdata
.
srfTitle
,
info
);
if
(
this
.
view
.
$route
){
this
.
view
.
$route
.
meta
.
info
=
info
;
}
const
title
=
this
.
view
.
model
.
srfTitle
=
`
${
this
.
view
.
$t
(
viewdata
.
srfTitle
)}
-
${
viewdata
.
dataInfo
}
`
;
this
.
view
.
$emit
(
'viewModelChange'
,
title
);
this
.
view
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
view
.
$route
,
info
:
viewdata
.
dataInfo
});
this
.
view
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
view
.
viewtag
,
info
:
viewdata
.
dataInfo
});
}
}
...
...
app_CRM/src/pages/base/account-edit-account-info/account-edit-account-info.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/account/edit-account-info-form/edit-account-info
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-edit-address/account-edit-address.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/account/edit-address-form/edit-address-form.vue'
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-edit-introduction/account-edit-introduction.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/account/edit-introduction-form/edit-introduction
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-edit-view/account-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/account/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-grid-view/account-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/account/default-searchform/default-searchf
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-info-all/account-info-all.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/account/info-all-form/info-all-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-info-major-contact/account-info-major-contact.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/account/info-major-contact-form/info-major-conta
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-info/account-info-base.tsx
浏览文件 @
fbf95442
...
...
@@ -457,14 +457,11 @@ export class AccountInfoBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
accountname
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
accountname
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/base/account-info/account-info.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/account/infotabexppanel-tabexppanel/infot
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-inner-pickup-grid-view/account-inner-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_grid from '@widgets/account/inner-pickip-grid/inner-pickip-grid.vue'
@Component({
components: {
view_grid,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-inner-pickup-view/account-inner-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/account/inner-pickup-viewpickupviewpa
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-pickup-grid-view/account-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/account/default-searchform/default-searchf
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-pickup-view/account-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/account/pickup-viewpickupviewpanel-pi
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-quick-create/account-quick-create.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/account/quick-create-form/quick-create-form.vue'
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-status-tab-view/account-status-tab-view-base.tsx
浏览文件 @
fbf95442
...
...
@@ -107,14 +107,11 @@ export class AccountStatusTabViewBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
accountname
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
accountname
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/base/account-status-tab-view/account-status-tab-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/account/status-tab-viewtabexppanel-tabexp
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-stop-grid-view/account-stop-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/account/default-searchform/default-searchf
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-summary/account-summary.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/account/summary-dashboard/summary-dashboard
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/account-usable-grid-view/account-usable-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/account/default-searchform/default-searchf
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/activity-pointer-by-parent-key/activity-pointer-by-parent-key.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/activity-pointer/default-searchform/defaul
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/activity-pointer-edit-view/activity-pointer-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/activity-pointer/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/activity-pointer-grid-view/activity-pointer-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/activity-pointer/default-searchform/defaul
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/activity-pointer-redirect-view/activity-pointer-redirect-view.vue
浏览文件 @
fbf95442
...
...
@@ -13,12 +13,6 @@ import { ActivityPointerRedirectViewBase } from './activity-pointer-redirect-vie
*/
@Component({
components: {
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/appointment-edit-view/appointment-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/appointment/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/appointment-quick-create/appointment-quick-create.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/appointment/quick-create-form/quick-create-form.
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-by-account/contact-by-account.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_grid from '@widgets/contact/by-account-grid/by-account-grid.vue';
@Component({
components: {
view_grid,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-edit-address/contact-edit-address.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/contact/address-edit-form/address-edit-form.vue'
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-edit-book/contact-edit-book.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/contact/book-edit-form/book-edit-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-edit-market/contact-edit-market.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/contact/market-edit-form/market-edit-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-edit-person/contact-edit-person.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/contact/person-edit-form/person-edit-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-grid-view/contact-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/contact/default-searchform/default-searchf
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-info-abstract/contact-info-abstract.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/contact/abstract-info-form/abstract-info-form.vu
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-info/contact-info-base.tsx
浏览文件 @
fbf95442
...
...
@@ -457,14 +457,11 @@ export class ContactInfoBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
fullname
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
fullname
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/base/contact-info/contact-info.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/contact/infotabexppanel-tabexppanel/infot
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-pickup-grid-view/contact-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/contact/default-searchform/default-searchf
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-pickup-view/contact-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/contact/pickup-viewpickupviewpanel-pi
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-quick-create/contact-quick-create.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/contact/quick-create-form/quick-create-form.vue'
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-stop-grid-view/contact-stop-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/contact/default-searchform/default-searchf
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-summary-view/contact-summary-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/contact/con-abs-dashboard/con-abs-dashboard
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-tab-exp-view/contact-tab-exp-view-base.tsx
浏览文件 @
fbf95442
...
...
@@ -107,14 +107,11 @@ export class ContactTabExpViewBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
fullname
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
fullname
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/base/contact-tab-exp-view/contact-tab-exp-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/contact/tab-exp-viewtabexppanel-tabexppan
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/contact-usable-grid-view/contact-usable-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/contact/default-searchform/default-searchf
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/email-edit-view/email-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/email/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/fax-edit-view/fax-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/fax/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/letter-edit-view/letter-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/letter/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/metric-edit-view/metric-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/metric/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/metric-grid-view/metric-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/metric/default-searchform/default-searchfo
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/metric-pickup-grid-view/metric-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/metric/default-searchform/default-searchfo
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/metric-pickup-view/metric-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/metric/pickup-viewpickupviewpanel-pic
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/phone-call-edit-view/phone-call-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/phone-call/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/subject-pickup-grid-view/subject-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/subject/default-searchform/default-searchf
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/subject-pickup-view/subject-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/subject/pickup-viewpickupviewpanel-pi
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/task-edit-view/task-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/task/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/task-quick-create/task-quick-create.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/task/quick-create-form/quick-create-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/transaction-currency-pickup-grid-view/transaction-currency-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/transaction-currency/default-searchform/de
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/transaction-currency-pickup-view/transaction-currency-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/transaction-currency/pickup-viewpicku
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/uom-pickup-grid-view/uom-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/uom/default-searchform/default-searchform.
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/base/uom-pickup-view/uom-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/uom/pickup-viewpickupviewpanel-pickup
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/finance/invoice-detail-edit-view/invoice-detail-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/invoice-detail/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/finance/invoice-detail-invoice-pro-grid-view/invoice-detail-invoice-pro-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/invoice-detail/default-searchform/default-
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/finance/invoice-grid-view/invoice-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/invoice/default-searchform/default-searchf
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/finance/invoice-info-invoice-view/invoice-info-invoice-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/invoice/info-form/info-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/finance/invoice-info-view/invoice-info-view-base.tsx
浏览文件 @
fbf95442
...
...
@@ -458,14 +458,11 @@ export class InvoiceInfoViewBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
invoicename
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
invoicename
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/finance/invoice-info-view/invoice-info-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/invoice/info-viewtabexppanel-tabexppanel/
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/finance/invoice-quick-create-view/invoice-quick-create-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/invoice/quick-create-form/quick-create-form.vue'
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/finance/invoice-summary-view/invoice-summary-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/invoice/board-dashboard/board-dashboard.vue
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-activity-by-parent-key/campaign-activity-by-parent-key.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/campaign-activity/default-searchform/defau
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-activity-edit-view/campaign-activity-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/campaign-activity/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-activity-quick-create/campaign-activity-quick-create.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/campaign-activity/quick-create-form/quick-create
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-edit-head/campaign-edit-head.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/campaign/edit-head-form/edit-head-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-grid-view/campaign-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/campaign/default-searchform/default-search
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-info-campagin/campaign-info-campagin.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/campaign/info-campagin-form/info-campagin-form.v
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-info-head/campaign-info-head.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/campaign/info-head-form/info-head-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-info-manager/campaign-info-manager.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/campaign/info-manager-form/info-manager-form.vue
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-info-schedule/campaign-info-schedule.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/campaign/info-schedule-form/info-schedule-form.v
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-info/campaign-info-base.tsx
浏览文件 @
fbf95442
...
...
@@ -355,14 +355,11 @@ export class CampaignInfoBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
campaignname
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
campaignname
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/marketing/campaign-info/campaign-info.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/campaign/infotabexppanel-tabexppanel/info
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-list-edit-view/campaign-list-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/campaign-list/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-list-grid-view/campaign-list-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/campaign-list/default-searchform/default-s
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-quick-create-view/campaign-quick-create-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/campaign/quick-create-form/quick-create-form.vue
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-response-by-parent-key/campaign-response-by-parent-key.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/campaign-response/default-searchform/defau
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-response-edit-view/campaign-response-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/campaign-response/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-response-quick-create/campaign-response-quick-create.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/campaign-response/quick-create-form/quick-create
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-summary-head/campaign-summary-head.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/campaign/head-summary-dashboard/head-summar
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/campaign-summary/campaign-summary.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/campaign/summary-dashboard/summary-dashboar
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/ibiz-list-grid-view/ibiz-list-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/ibiz-list/default-searchform/default-searc
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/ibiz-list-info-abstract/ibiz-list-info-abstract.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/ibiz-list/abstract-info-form/abstract-info-form.
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/ibiz-list-info/ibiz-list-info-base.tsx
浏览文件 @
fbf95442
...
...
@@ -107,14 +107,11 @@ export class IBizListInfoBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
listname
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
listname
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/marketing/ibiz-list-info/ibiz-list-info.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/ibiz-list/infotabexppanel-tabexppanel/inf
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/ibiz-list-option-view/ibiz-list-option-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/ibiz-list/abstract-edit-form/abstract-edit-form.
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/ibiz-list-quick-create/ibiz-list-quick-create.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/ibiz-list/quick-create-form/quick-create-form.vu
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/ibiz-list-summary/ibiz-list-summary.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/ibiz-list/summary-dashboard/summary-dashboa
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/list-account-by-list/list-account-by-list.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/list-account/default-searchform/default-se
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/list-account-edit-view/list-account-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/list-account/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/list-account-inner/list-account-inner.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_grid from '@widgets/list-account/main-grid/main-grid.vue';
@Component({
components: {
view_grid,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/list-account-quick-create-by-list/list-account-quick-create-by-list.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/list-account/quick-create-by-list-form/quick-cre
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/list-contact-edit-view/list-contact-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/list-contact/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/list-contact-grid-view/list-contact-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/list-contact/default-searchform/default-se
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/list-contact-inner/list-contact-inner.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_grid from '@widgets/list-contact/inner-grid/inner-grid.vue';
@Component({
components: {
view_grid,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/list-lead-by-list/list-lead-by-list.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_grid from '@widgets/list-lead/main-grid/main-grid.vue';
@Component({
components: {
view_grid,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/marketing/list-lead-quick-create-by-list/list-lead-quick-create-by-list.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/list-lead/quick-create-by-list-form/quick-create
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/price-level-pickup-grid-view/price-level-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/price-level/default-searchform/default-sea
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/price-level-pickup-view/price-level-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/price-level/pickup-viewpickupviewpane
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/product-association-edit-view/product-association-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/product-association/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/product-association-grid-view/product-association-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/product-association/default-searchform/def
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/product-grid-view/product-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/product/default-searchform/default-searchf
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/product-info-pro-info/product-info-pro-info.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/product/pro-info-form/pro-info-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/product-info-view/product-info-view-base.tsx
浏览文件 @
fbf95442
...
...
@@ -355,14 +355,11 @@ export class ProductInfoViewBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
productname
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
productname
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/product/product-info-view/product-info-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/product/info-viewtabexppanel-tabexppanel/
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/product-pickup-grid-view/product-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/product/default-searchform/default-searchf
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/product-pickup-view/product-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/product/pickup-viewpickupviewpanel-pi
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/product-price-level-pro-prilv-edit-view/product-price-level-pro-prilv-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/product-price-level/pro-prilv-form/pro-prilv-for
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/product-price-level-pro-prilv-grid-view/product-price-level-pro-prilv-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/product-price-level/default-searchform/def
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/product-quick-create-view/product-quick-create-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/product/quick-create-form/quick-create-form.vue'
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/product-substitute-edit-view/product-substitute-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/product-substitute/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/product-substitute-grid-view/product-substitute-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/product-substitute/default-searchform/defa
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/product/product-summary-view/product-summary-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/product/pro-info-dashboard/pro-info-dashboa
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/competitor-grid-view/competitor-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/competitor/default-searchform/default-sear
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/competitor-info-abstract/competitor-info-abstract.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/competitor/abstract-info-form/abstract-info-form
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/competitor-info/competitor-info-base.tsx
浏览文件 @
fbf95442
...
...
@@ -355,14 +355,11 @@ export class CompetitorInfoBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
competitorname
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
competitorname
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/sales/competitor-info/competitor-info.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/competitor/infotabexppanel-tabexppanel/in
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/competitor-option-view/competitor-option-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/competitor/quick-create-form/quick-create-form.v
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/competitor-pickup-grid-view/competitor-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/competitor/default-searchform/default-sear
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/competitor-pickup-view/competitor-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/competitor/pickup-viewpickupviewpanel
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/competitor-sales-literature-sal-lit-comp-edit-view/competitor-sales-literature-sal-lit-comp-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/competitor-sales-literature/sal-lit-comp-form/sa
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/competitor-sales-literature-sal-lit-comp-grid-view/competitor-sales-literature-sal-lit-comp-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/competitor-sales-literature/default-search
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/competitor-summary/competitor-summary.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/competitor/abstract-info-dashboard/abstract
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/discount-type-pickup-grid-view/discount-type-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/discount-type/default-searchform/default-s
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/discount-type-pickup-view/discount-type-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/discount-type/pickup-viewpickupviewpa
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/goal-child-goal-grid-view/goal-child-goal-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/goal/default-searchform/default-searchform
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/goal-edit-child-goal-view/goal-edit-child-goal-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/goal/edit-child-goal-form/edit-child-goal-form.v
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/goal-grid-view/goal-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/goal/default-searchform/default-searchform
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/goal-info-goal-view/goal-info-goal-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/goal/info-goal-form/info-goal-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/goal-info-view/goal-info-view-base.tsx
浏览文件 @
fbf95442
...
...
@@ -107,14 +107,11 @@ export class GoalInfoViewBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
title
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
title
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/sales/goal-info-view/goal-info-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/goal/info-viewtabexppanel-tabexppanel/inf
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/goal-pickup-grid-view/goal-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/goal/default-searchform/default-searchform
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/goal-pickup-view/goal-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/goal/pickup-viewpickupviewpanel-picku
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/goal-quick-create-view/goal-quick-create-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/goal/quick-create-form/quick-create-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/goal-state-tab-view/goal-state-tab-view-base.tsx
浏览文件 @
fbf95442
...
...
@@ -107,14 +107,11 @@ export class GoalStateTabViewBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
title
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
title
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/sales/goal-state-tab-view/goal-state-tab-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/goal/state-tab-viewtabexppanel-tabexppane
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/goal-summary-view/goal-summary-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/goal/goal-info-dashboard/goal-info-dashboar
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/lead-con-lead-grid-view/lead-con-lead-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/lead/default-searchform/default-searchform
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/lead-dashboard-view/lead-dashboard-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/lead/lead-info-dashboard/lead-info-dashboar
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/lead-excluded-grid-view/lead-excluded-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/lead/default-searchform/default-searchform
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/lead-grid-view/lead-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/lead/default-searchform/default-searchform
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/lead-info-contact/lead-info-contact.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/lead/contact-info-form/contact-info-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/lead-info/lead-info-base.tsx
浏览文件 @
fbf95442
...
...
@@ -492,14 +492,11 @@ export class LeadInfoBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
fullname
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
fullname
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/sales/lead-info/lead-info.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/lead/infotabexppanel-tabexppanel/infotabe
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/lead-on-grid-view/lead-on-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/lead/default-searchform/default-searchform
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/lead-pickup-grid-view/lead-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/lead/default-searchform/default-searchform
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/lead-pickup-view/lead-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/lead/pickup-viewpickupviewpanel-picku
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/lead-qualification/lead-qualification.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/lead/qualification-form/qualification-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/lead-quick-create/lead-quick-create.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/lead/quick-create-form/quick-create-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/lead-status-tab-view/lead-status-tab-view-base.tsx
浏览文件 @
fbf95442
...
...
@@ -107,14 +107,11 @@ export class LeadStatusTabViewBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
fullname
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
fullname
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/sales/lead-status-tab-view/lead-status-tab-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/lead/status-tab-viewtabexppanel-tabexppan
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/opportunity-competitor-edit-view/opportunity-competitor-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/opportunity-competitor/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/opportunity-competitor-opp-comp-grid-view/opportunity-competitor-opp-comp-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/opportunity-competitor/default-searchform/
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/opportunity-con-opp-grid-view/opportunity-con-opp-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/opportunity/default-searchform/default-sea
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/opportunity-edit-view/opportunity-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/opportunity/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/opportunity-grid-view/opportunity-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/opportunity/default-searchform/default-sea
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/opportunity-info-abstract/opportunity-info-abstract.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/opportunity/abstract-info-form/abstract-info-for
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/opportunity-info/opportunity-info-base.tsx
浏览文件 @
fbf95442
...
...
@@ -492,14 +492,11 @@ export class OpportunityInfoBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
opportunityname
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
opportunityname
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/sales/opportunity-info/opportunity-info.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/opportunity/infotabexppanel-tabexppanel/i
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/opportunity-pickup-grid-view/opportunity-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/opportunity/default-searchform/default-sea
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/opportunity-pickup-view/opportunity-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/opportunity/pickup-viewpickupviewpane
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/opportunity-product-edit-view/opportunity-product-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/opportunity-product/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/opportunity-product-opp-opp-pro-grid-view/opportunity-product-opp-opp-pro-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/opportunity-product/default-searchform/def
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/opportunity-quick-create/opportunity-quick-create.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/opportunity/quick-create-form/quick-create-form.
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/opportunity-summary/opportunity-summary.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/opportunity/abstract-info-dashboard/abstrac
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/product-sales-literature-sal-lit-pro-edit-view/product-sales-literature-sal-lit-pro-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/product-sales-literature/sal-lit-pro-form/sal-li
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/product-sales-literature-sal-lit-pro-grid-view/product-sales-literature-sal-lit-pro-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/product-sales-literature/default-searchfor
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/quote-detail-edit-view/quote-detail-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/quote-detail/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/quote-detail-quo-detail-grid-view/quote-detail-quo-detail-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/quote-detail/default-searchform/default-se
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/quote-edit-view/quote-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/quote/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/quote-grid-view/quote-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/quote/default-searchform/default-searchfor
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/quote-info-abstract/quote-info-abstract.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/quote/abstract-info-form/abstract-info-form.vue'
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/quote-info/quote-info-base.tsx
浏览文件 @
fbf95442
...
...
@@ -458,14 +458,11 @@ export class QuoteInfoBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
quotename
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
quotename
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/sales/quote-info/quote-info.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/quote/infotabexppanel-tabexppanel/infotab
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/quote-opp-qua-grid-view/quote-opp-qua-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/quote/default-searchform/default-searchfor
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/quote-option-view/quote-option-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/quote/quick-create-form/quick-create-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/quote-summary/quote-summary.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/quote/abstract-info-dashboard/abstract-info
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/sales-literature-grid-view/sales-literature-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/sales-literature/default-searchform/defaul
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/sales-literature-info-sal-lit-view/sales-literature-info-sal-lit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/sales-literature/info-form/info-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/sales-literature-info-view/sales-literature-info-view-base.tsx
浏览文件 @
fbf95442
...
...
@@ -355,14 +355,11 @@ export class SalesLiteratureInfoViewBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
salesliteraturename
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
salesliteraturename
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/sales/sales-literature-info-view/sales-literature-info-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/sales-literature/info-viewtabexppanel-tab
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/sales-literature-item-edit-view/sales-literature-item-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/sales-literature-item/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/sales-literature-item-grid-view/sales-literature-item-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/sales-literature-item/default-searchform/d
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/sales-literature-quick-create-view/sales-literature-quick-create-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/sales-literature/quick-create-form/quick-create-
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/sales-literature-summary-view/sales-literature-summary-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/sales-literature/sal-lit-info-dashboard/sal
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/sales-order-detail-edit-view/sales-order-detail-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/sales-order-detail/soproduct-edit-form/soproduct
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/sales-order-detail-soproduct-grid-view/sales-order-detail-soproduct-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/sales-order-detail/default-searchform/defa
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/sales-order-grid-view/sales-order-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/sales-order/default-searchform/default-sea
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/sales-order-info-soview/sales-order-info-soview.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/sales-order/info-form/info-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/sales-order-info-view/sales-order-info-view-base.tsx
浏览文件 @
fbf95442
...
...
@@ -458,14 +458,11 @@ export class SalesOrderInfoViewBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
salesordername
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
salesordername
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/sales/sales-order-info-view/sales-order-info-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/sales-order/info-viewtabexppanel-tabexppa
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/sales-order-quick-create-view/sales-order-quick-create-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/sales-order/quick-create-form/quick-create-form.
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/sales/sales-order-summary-view/sales-order-summary-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/sales-order/soinfo-dashboard/soinfo-dashboa
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/service/entitlement-pickup-grid-view/entitlement-pickup-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/entitlement/default-searchform/default-sea
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/service/entitlement-pickup-view/entitlement-pickup-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_pickupviewpanel from '@widgets/entitlement/pickup-viewpickupviewpane
@Component({
components: {
view_pickupviewpanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/service/incident-child-incident-grid-view/incident-child-incident-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/incident/default-searchform/default-search
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/service/incident-edit-chlid-incident/incident-edit-chlid-incident.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/incident/edit-child-incident-form/edit-child-inc
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/service/incident-grid-view/incident-grid-view.vue
浏览文件 @
fbf95442
...
...
@@ -17,12 +17,6 @@ import view_searchform from '@widgets/incident/default-searchform/default-search
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/service/incident-info-incident-view/incident-info-incident-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/incident/info-incident-form/info-incident-form.v
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/service/incident-info-view/incident-info-view-base.tsx
浏览文件 @
fbf95442
...
...
@@ -107,14 +107,11 @@ export class IncidentInfoViewBase extends TabExpViewBase {
const
{
data
:
_data
}
=
response
;
if
(
_data
.
title
)
{
Object
.
assign
(
this
.
model
,
{
dataInfo
:
_data
.
title
});
if
(
this
.
$tabPageExp
)
{
this
.
$tabPageExp
.
setCurPageCaption
(
this
.
model
.
srfTitle
,
this
.
model
.
srfTitle
,
this
.
model
.
dataInfo
);
}
if
(
this
.
$route
){
this
.
$route
.
meta
.
info
=
this
.
model
.
dataInfo
;
}
Object
.
assign
(
this
.
model
,
{
srfTitle
:
`
${
this
.
$t
(
this
.
model
.
srfTitle
)}
-
${
this
.
model
.
dataInfo
}
`
});
this
.
$appService
.
navHistory
.
setCaption
({
route
:
this
.
$route
,
info
:
this
.
model
.
dataInfo
});
this
.
$appService
.
navHistory
.
setCaption
({
tag
:
this
.
viewtag
,
info
:
this
.
model
.
dataInfo
});
}
})
}
...
...
app_CRM/src/pages/service/incident-info-view/incident-info-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_tabexppanel from '@widgets/incident/info-viewtabexppanel-tabexppanel
@Component({
components: {
view_tabexppanel,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/service/incident-quick-create-view/incident-quick-create-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/incident/quick-create-form/quick-create-form.vue
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/service/incident-summary-view/incident-summary-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/incident/incident-info-dashboard/incident-i
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/service/service-appointment-edit-view/service-appointment-edit-view.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_form from '@widgets/service-appointment/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/pages/ungroup/centeral-portal/centeral-portal.vue
浏览文件 @
fbf95442
...
...
@@ -15,12 +15,6 @@ import view_dashboard from '@widgets/app/centeral-portal-db-dashboard/centeral-p
@Component({
components: {
view_dashboard,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$appService.navHistory.setViewTag(vm.viewtag, to);
vm.$appService.navHistory.setViewContext(vm.context, to);
});
}
})
@VueLifeCycleProcessing()
...
...
app_CRM/src/service/campaign/campaign-service-base.ts
浏览文件 @
fbf95442
...
...
@@ -62,21 +62,21 @@ export default class CampaignServiceBase extends EntityService {
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
let
campaigncampaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
campaigncampaign
s'
),
'undefined'
)){
campaigncampaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaigncampaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaigncampaign
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
lead
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
leads
=
lead
sData
;
masterData
.
campaigncampaigns
=
campaigncampaign
sData
;
let
campaignlistsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
)
as
any
);
...
...
@@ -92,21 +92,21 @@ export default class CampaignServiceBase extends EntityService {
}
}
masterData
.
campaignlists
=
campaignlistsData
;
let
campaigncampaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
campaigncampaign
s'
),
'undefined'
)){
campaigncampaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaigncampaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaigncampaign
sData
.
forEach
((
item
:
any
)
=>
{
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
lead
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
campaigncampaigns
=
campaigncampaign
sData
;
masterData
.
leads
=
lead
sData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
...
...
@@ -116,9 +116,9 @@ export default class CampaignServiceBase extends EntityService {
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/campaigns`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
}
...
...
@@ -133,21 +133,21 @@ export default class CampaignServiceBase extends EntityService {
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
let
campaigncampaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
campaigncampaign
s'
),
'undefined'
)){
campaigncampaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaigncampaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaigncampaign
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
lead
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
leads
=
lead
sData
;
masterData
.
campaigncampaigns
=
campaigncampaign
sData
;
let
campaignlistsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
)
as
any
);
...
...
@@ -163,26 +163,26 @@ export default class CampaignServiceBase extends EntityService {
}
}
masterData
.
campaignlists
=
campaignlistsData
;
let
campaigncampaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
campaigncampaign
s'
),
'undefined'
)){
campaigncampaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaigncampaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaigncampaign
sData
.
forEach
((
item
:
any
)
=>
{
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
lead
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
campaigncampaigns
=
campaigncampaign
sData
;
masterData
.
leads
=
lead
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/campaigns/
${
context
.
campaign
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
}
...
...
@@ -210,9 +210,9 @@ export default class CampaignServiceBase extends EntityService {
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/campaigns/
${
context
.
campaign
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
}
...
...
@@ -228,9 +228,9 @@ export default class CampaignServiceBase extends EntityService {
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/campaigns/getdraft`
,
isloading
);
res
.
data
.
campaign
=
data
.
campaign
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
}
...
...
@@ -258,21 +258,21 @@ export default class CampaignServiceBase extends EntityService {
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
let
campaigncampaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
campaigncampaign
s'
),
'undefined'
)){
campaigncampaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaigncampaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaigncampaign
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
lead
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
leads
=
lead
sData
;
masterData
.
campaigncampaigns
=
campaigncampaign
sData
;
let
campaignlistsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
)
as
any
);
...
...
@@ -288,26 +288,26 @@ export default class CampaignServiceBase extends EntityService {
}
}
masterData
.
campaignlists
=
campaignlistsData
;
let
campaigncampaign
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
campaigncampaign
s'
),
'undefined'
)){
campaigncampaignsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaigncampaign
s'
)
as
any
);
if
(
campaigncampaignsData
&&
campaigncampaignsData
.
length
&&
campaigncampaign
sData
.
length
>
0
){
campaigncampaign
sData
.
forEach
((
item
:
any
)
=>
{
let
lead
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
lead
s'
),
'undefined'
)){
leadsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_lead
s'
)
as
any
);
if
(
leadsData
&&
leadsData
.
length
&&
lead
sData
.
length
>
0
){
lead
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
lead
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
campaigncampaigns
=
campaigncampaign
sData
;
masterData
.
leads
=
lead
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/campaigns/
${
context
.
campaign
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaigncampaigns'
,
JSON
.
stringify
(
res
.
data
.
campaigncampaigns
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
return
res
;
}
...
...
app_CRM/src/service/contact/contact-service-base.ts
浏览文件 @
fbf95442
...
...
@@ -83,36 +83,36 @@ export default class ContactServiceBase extends EntityService {
}
}
masterData
.
leads
=
leadsData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
listcontacts
=
listcontact
sData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
opportunity
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontact
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
...
...
@@ -123,8 +123,8 @@ export default class ContactServiceBase extends EntityService {
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
let
masterData
:
any
=
{};
...
...
@@ -143,36 +143,36 @@ export default class ContactServiceBase extends EntityService {
}
}
masterData
.
leads
=
leadsData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
listcontacts
=
listcontact
sData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
opportunity
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontact
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
...
...
@@ -183,8 +183,8 @@ export default class ContactServiceBase extends EntityService {
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
...
...
@@ -215,41 +215,41 @@ export default class ContactServiceBase extends EntityService {
}
}
masterData
.
leads
=
leadsData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
listcontacts
=
listcontact
sData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
opportunity
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontact
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
let
masterData
:
any
=
{};
...
...
@@ -268,41 +268,41 @@ export default class ContactServiceBase extends EntityService {
}
}
masterData
.
leads
=
leadsData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
listcontacts
=
listcontact
sData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
opportunity
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontact
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/contacts/
${
context
.
contact
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
...
...
@@ -335,14 +335,14 @@ export default class ContactServiceBase extends EntityService {
if
(
context
.
account
&&
context
.
contact
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/contacts/
${
context
.
contact
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
...
...
@@ -360,15 +360,15 @@ export default class ContactServiceBase extends EntityService {
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/accounts/
${
context
.
account
}
/contacts/getdraft`
,
isloading
);
res
.
data
.
contact
=
data
.
contact
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/contacts/getdraft`
,
isloading
);
res
.
data
.
contact
=
data
.
contact
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
...
...
@@ -414,41 +414,41 @@ export default class ContactServiceBase extends EntityService {
}
}
masterData
.
leads
=
leadsData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
listcontacts
=
listcontact
sData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
opportunity
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontact
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/addlist`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
return
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/addlist`
,
data
,
isloading
);
...
...
@@ -481,41 +481,41 @@ export default class ContactServiceBase extends EntityService {
}
}
masterData
.
leads
=
leadsData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
listcontacts
=
listcontact
sData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
opportunity
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontact
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/checkkey`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
return
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/checkkey`
,
data
,
isloading
);
...
...
@@ -563,41 +563,41 @@ export default class ContactServiceBase extends EntityService {
}
}
masterData
.
leads
=
leadsData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
listcontacts
=
listcontact
sData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
opportunity
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontact
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
let
masterData
:
any
=
{};
...
...
@@ -616,41 +616,41 @@ export default class ContactServiceBase extends EntityService {
}
}
masterData
.
leads
=
leadsData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
listcontacts
=
listcontact
sData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
opportunity
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontact
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
...
...
@@ -681,41 +681,41 @@ export default class ContactServiceBase extends EntityService {
}
}
masterData
.
leads
=
leadsData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
opportunity
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunities
=
opportunitie
sData
;
let
listcontact
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
listcontact
s'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontact
s'
)
as
any
);
if
(
listcontactsData
&&
listcontactsData
.
length
&&
listcontact
sData
.
length
>
0
){
listcontact
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
listcontacts
=
listcontact
sData
;
let
opportunitie
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
opportunitie
s'
),
'undefined'
)){
opportunitiesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitie
s'
)
as
any
);
if
(
opportunitiesData
&&
opportunitiesData
.
length
&&
opportunitie
sData
.
length
>
0
){
opportunitie
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
opportunity
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
listcontacts
=
listcontact
sData
;
masterData
.
opportunities
=
opportunitie
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/setprimary`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_leads'
,
JSON
.
stringify
(
res
.
data
.
leads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunities'
,
JSON
.
stringify
(
res
.
data
.
opportunities
));
return
res
;
}
return
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/setprimary`
,
data
,
isloading
);
...
...
app_CRM/src/service/ibiz-list/ibiz-list-service-base.ts
浏览文件 @
fbf95442
...
...
@@ -62,21 +62,6 @@ export default class IBizListServiceBase extends EntityService {
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
campaignlistsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlistsData
.
length
>
0
){
campaignlistsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
campaignlists
=
campaignlistsData
;
let
listaccountsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listaccounts'
),
'undefined'
)){
listaccountsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listaccounts'
)
as
any
);
...
...
@@ -107,6 +92,21 @@ export default class IBizListServiceBase extends EntityService {
}
}
masterData
.
listleads
=
listleadsData
;
let
campaignlistsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlistsData
.
length
>
0
){
campaignlistsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
campaignlists
=
campaignlistsData
;
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
...
...
@@ -131,9 +131,9 @@ export default class IBizListServiceBase extends EntityService {
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizlists`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
return
res
;
}
...
...
@@ -149,21 +149,6 @@ export default class IBizListServiceBase extends EntityService {
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
campaignlistsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlistsData
.
length
>
0
){
campaignlistsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
campaignlists
=
campaignlistsData
;
let
listaccountsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listaccounts'
),
'undefined'
)){
listaccountsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listaccounts'
)
as
any
);
...
...
@@ -194,6 +179,21 @@ export default class IBizListServiceBase extends EntityService {
}
}
masterData
.
listleads
=
listleadsData
;
let
campaignlistsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlistsData
.
length
>
0
){
campaignlistsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
campaignlists
=
campaignlistsData
;
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
...
...
@@ -211,9 +211,9 @@ export default class IBizListServiceBase extends EntityService {
masterData
.
listcontacts
=
listcontactsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/ibizlists/
${
context
.
ibizlist
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
return
res
;
}
...
...
@@ -242,9 +242,9 @@ export default class IBizListServiceBase extends EntityService {
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizlists/
${
context
.
ibizlist
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
return
res
;
}
...
...
@@ -261,9 +261,9 @@ export default class IBizListServiceBase extends EntityService {
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizlists/getdraft`
,
isloading
);
res
.
data
.
ibizlist
=
data
.
ibizlist
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
return
res
;
}
...
...
@@ -292,21 +292,6 @@ export default class IBizListServiceBase extends EntityService {
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
campaignlistsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlistsData
.
length
>
0
){
campaignlistsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
campaignlists
=
campaignlistsData
;
let
listaccountsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listaccounts'
),
'undefined'
)){
listaccountsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listaccounts'
)
as
any
);
...
...
@@ -337,6 +322,21 @@ export default class IBizListServiceBase extends EntityService {
}
}
masterData
.
listleads
=
listleadsData
;
let
campaignlistsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
),
'undefined'
)){
campaignlistsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_campaignlists'
)
as
any
);
if
(
campaignlistsData
&&
campaignlistsData
.
length
&&
campaignlistsData
.
length
>
0
){
campaignlistsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
campaignlists
=
campaignlistsData
;
let
listcontactsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
),
'undefined'
)){
listcontactsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_listcontacts'
)
as
any
);
...
...
@@ -354,9 +354,9 @@ export default class IBizListServiceBase extends EntityService {
masterData
.
listcontacts
=
listcontactsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizlists/
${
context
.
ibizlist
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listaccounts'
,
JSON
.
stringify
(
res
.
data
.
listaccounts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listleads'
,
JSON
.
stringify
(
res
.
data
.
listleads
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_campaignlists'
,
JSON
.
stringify
(
res
.
data
.
campaignlists
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_listcontacts'
,
JSON
.
stringify
(
res
.
data
.
listcontacts
));
return
res
;
}
...
...
app_CRM/src/service/opportunity/opportunity-service-base.ts
浏览文件 @
fbf95442
...
...
@@ -69,6 +69,21 @@ export default class OpportunityServiceBase extends EntityService {
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
true
){
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -99,21 +114,6 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
...
...
@@ -123,13 +123,28 @@ export default class OpportunityServiceBase extends EntityService {
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
true
){
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -160,6 +175,21 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
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
(
`/contacts/
${
context
.
contact
}
/opportunities`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
return
res
;
}
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
...
...
@@ -175,21 +205,6 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
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
(
`/contacts/
${
context
.
contact
}
/opportunities`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
let
masterData
:
any
=
{};
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -220,21 +235,6 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
...
...
@@ -244,9 +244,9 @@ export default class OpportunityServiceBase extends EntityService {
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/opportunities`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
...
...
@@ -262,6 +262,21 @@ export default class OpportunityServiceBase extends EntityService {
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -292,6 +307,15 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
...
...
@@ -307,15 +331,6 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -346,6 +361,14 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
return
res
;
}
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
...
...
@@ -361,14 +384,6 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
let
masterData
:
any
=
{};
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -399,26 +414,11 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/opportunities/
${
context
.
opportunity
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
...
...
@@ -453,22 +453,22 @@ export default class OpportunityServiceBase extends EntityService {
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/opportunities/
${
context
.
opportunity
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
...
...
@@ -485,24 +485,24 @@ export default class OpportunityServiceBase extends EntityService {
if
(
context
.
account
&&
context
.
contact
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/getdraft`
,
isloading
);
res
.
data
.
opportunity
=
data
.
opportunity
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
true
){
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/contacts/
${
context
.
contact
}
/opportunities/getdraft`
,
isloading
);
res
.
data
.
opportunity
=
data
.
opportunity
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/opportunities/getdraft`
,
isloading
);
res
.
data
.
opportunity
=
data
.
opportunity
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
...
...
@@ -518,6 +518,21 @@ export default class OpportunityServiceBase extends EntityService {
public
async
Active
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -548,6 +563,15 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/active`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
...
...
@@ -563,15 +587,6 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/active`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -602,26 +617,11 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/active`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
return
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/active`
,
data
,
isloading
);
...
...
@@ -639,6 +639,21 @@ export default class OpportunityServiceBase extends EntityService {
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -669,6 +684,15 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/checkkey`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
...
...
@@ -684,15 +708,6 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/checkkey`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -723,26 +738,11 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/checkkey`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
return
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/checkkey`
,
data
,
isloading
);
...
...
@@ -760,6 +760,21 @@ export default class OpportunityServiceBase extends EntityService {
public
async
Lose
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -790,6 +805,15 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/lose`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
...
...
@@ -805,15 +829,6 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/lose`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -844,26 +859,11 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/lose`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
return
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/lose`
,
data
,
isloading
);
...
...
@@ -881,6 +881,21 @@ export default class OpportunityServiceBase extends EntityService {
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -911,6 +926,15 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
...
...
@@ -926,15 +950,6 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -965,6 +980,14 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
return
res
;
}
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
...
...
@@ -980,14 +1003,6 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
let
masterData
:
any
=
{};
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -1018,26 +1033,11 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
...
...
@@ -1053,6 +1053,21 @@ export default class OpportunityServiceBase extends EntityService {
public
async
Win
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
account
&&
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -1083,6 +1098,15 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/win`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
...
...
@@ -1098,15 +1122,6 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/accounts/
${
context
.
account
}
/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/win`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
if
(
context
.
contact
&&
context
.
opportunity
){
let
masterData
:
any
=
{};
let
opportunityproductsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
),
'undefined'
)){
opportunityproductsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
)
as
any
);
...
...
@@ -1137,26 +1152,11 @@ export default class OpportunityServiceBase extends EntityService {
}
}
masterData
.
quotes
=
quotesData
;
let
opportunitycompetitorsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
),
'undefined'
)){
opportunitycompetitorsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
)
as
any
);
if
(
opportunitycompetitorsData
&&
opportunitycompetitorsData
.
length
&&
opportunitycompetitorsData
.
length
>
0
){
opportunitycompetitorsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationshipsid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
opportunitycompetitors
=
opportunitycompetitorsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/contacts/
${
context
.
contact
}
/opportunities/
${
context
.
opportunity
}
/win`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunityproducts'
,
JSON
.
stringify
(
res
.
data
.
opportunityproducts
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_quotes'
,
JSON
.
stringify
(
res
.
data
.
quotes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_opportunitycompetitors'
,
JSON
.
stringify
(
res
.
data
.
opportunitycompetitors
));
return
res
;
}
return
Http
.
getInstance
().
post
(
`/opportunities/
${
context
.
opportunity
}
/win`
,
data
,
isloading
);
...
...
app_CRM/src/service/product/product-service-base.ts
浏览文件 @
fbf95442
...
...
@@ -62,21 +62,6 @@ export default class ProductServiceBase extends EntityService {
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
productpricelevelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
),
'undefined'
)){
productpricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
)
as
any
);
if
(
productpricelevelsData
&&
productpricelevelsData
.
length
&&
productpricelevelsData
.
length
>
0
){
productpricelevelsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
productpricelevelid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
productpricelevels
=
productpricelevelsData
;
let
productsubstitutesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
),
'undefined'
)){
productsubstitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
)
as
any
);
...
...
@@ -107,6 +92,21 @@ export default class ProductServiceBase extends EntityService {
}
}
masterData
.
productassociations
=
productassociationsData
;
let
productpricelevelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
),
'undefined'
)){
productpricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
)
as
any
);
if
(
productpricelevelsData
&&
productpricelevelsData
.
length
&&
productpricelevelsData
.
length
>
0
){
productpricelevelsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
productpricelevelid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
productpricelevels
=
productpricelevelsData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
...
...
@@ -116,9 +116,9 @@ export default class ProductServiceBase extends EntityService {
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/products`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
return
res
;
}
...
...
@@ -133,21 +133,6 @@ export default class ProductServiceBase extends EntityService {
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
productpricelevelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
),
'undefined'
)){
productpricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
)
as
any
);
if
(
productpricelevelsData
&&
productpricelevelsData
.
length
&&
productpricelevelsData
.
length
>
0
){
productpricelevelsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
productpricelevelid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
productpricelevels
=
productpricelevelsData
;
let
productsubstitutesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
),
'undefined'
)){
productsubstitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
)
as
any
);
...
...
@@ -178,11 +163,26 @@ export default class ProductServiceBase extends EntityService {
}
}
masterData
.
productassociations
=
productassociationsData
;
let
productpricelevelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
),
'undefined'
)){
productpricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
)
as
any
);
if
(
productpricelevelsData
&&
productpricelevelsData
.
length
&&
productpricelevelsData
.
length
>
0
){
productpricelevelsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
productpricelevelid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
productpricelevels
=
productpricelevelsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/products/
${
context
.
product
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
return
res
;
}
...
...
@@ -210,9 +210,9 @@ export default class ProductServiceBase extends EntityService {
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/products/
${
context
.
product
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
return
res
;
}
...
...
@@ -228,9 +228,9 @@ export default class ProductServiceBase extends EntityService {
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/products/getdraft`
,
isloading
);
res
.
data
.
product
=
data
.
product
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
return
res
;
}
...
...
@@ -258,21 +258,6 @@ export default class ProductServiceBase extends EntityService {
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
let
productpricelevelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
),
'undefined'
)){
productpricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
)
as
any
);
if
(
productpricelevelsData
&&
productpricelevelsData
.
length
&&
productpricelevelsData
.
length
>
0
){
productpricelevelsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
productpricelevelid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
productpricelevels
=
productpricelevelsData
;
let
productsubstitutesData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
),
'undefined'
)){
productsubstitutesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
)
as
any
);
...
...
@@ -303,11 +288,26 @@ export default class ProductServiceBase extends EntityService {
}
}
masterData
.
productassociations
=
productassociationsData
;
let
productpricelevelsData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
),
'undefined'
)){
productpricelevelsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_productpricelevels'
)
as
any
);
if
(
productpricelevelsData
&&
productpricelevelsData
.
length
&&
productpricelevelsData
.
length
>
0
){
productpricelevelsData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
productpricelevelid
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
productpricelevels
=
productpricelevelsData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/products/
${
context
.
product
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsubstitutes'
,
JSON
.
stringify
(
res
.
data
.
productsubstitutes
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productassociations'
,
JSON
.
stringify
(
res
.
data
.
productassociations
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productpricelevels'
,
JSON
.
stringify
(
res
.
data
.
productpricelevels
));
return
res
;
}
...
...
app_CRM/src/service/sales-literature/sales-literature-service-base.ts
浏览文件 @
fbf95442
...
...
@@ -77,36 +77,36 @@ export default class SalesLiteratureServiceBase extends EntityService {
}
}
masterData
.
productsalesliteratures
=
productsalesliteraturesData
;
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
let
competitorsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitorsalesliterature
s'
),
'undefined'
)){
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitorsalesliterature
s'
)
as
any
);
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitorsalesliterature
sData
.
length
>
0
){
competitorsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
salesliteratureitem
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
let
competitorsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitorsalesliterature
s'
),
'undefined'
)){
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitorsalesliterature
s'
)
as
any
);
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitorsalesliterature
sData
.
length
>
0
){
competitorsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
competitorsalesliteratures
=
competitorsalesliterature
sData
;
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
salesliteratureitem
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
competitorsalesliteratures
=
competitorsalesliterature
sData
;
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
...
...
@@ -117,8 +117,8 @@ export default class SalesLiteratureServiceBase extends EntityService {
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/salesliteratures`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
tempContext
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
}
...
...
@@ -148,41 +148,41 @@ export default class SalesLiteratureServiceBase extends EntityService {
}
}
masterData
.
productsalesliteratures
=
productsalesliteraturesData
;
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
let
competitorsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitorsalesliterature
s'
),
'undefined'
)){
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitorsalesliterature
s'
)
as
any
);
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitorsalesliterature
sData
.
length
>
0
){
competitorsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
salesliteratureitem
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
let
competitorsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitorsalesliterature
s'
),
'undefined'
)){
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitorsalesliterature
s'
)
as
any
);
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitorsalesliterature
sData
.
length
>
0
){
competitorsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
competitorsalesliteratures
=
competitorsalesliterature
sData
;
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
salesliteratureitem
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
competitorsalesliteratures
=
competitorsalesliterature
sData
;
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/salesliteratures/
${
context
.
salesliterature
}
`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
}
...
...
@@ -211,8 +211,8 @@ export default class SalesLiteratureServiceBase extends EntityService {
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/salesliteratures/
${
context
.
salesliterature
}
`
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
}
...
...
@@ -229,8 +229,8 @@ export default class SalesLiteratureServiceBase extends EntityService {
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/salesliteratures/getdraft`
,
isloading
);
res
.
data
.
salesliterature
=
data
.
salesliterature
;
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
}
...
...
@@ -273,41 +273,41 @@ export default class SalesLiteratureServiceBase extends EntityService {
}
}
masterData
.
productsalesliteratures
=
productsalesliteraturesData
;
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
let
competitorsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitorsalesliterature
s'
),
'undefined'
)){
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitorsalesliterature
s'
)
as
any
);
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitorsalesliterature
sData
.
length
>
0
){
competitorsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
salesliteratureitem
id
=
null
;
item
.
relationships
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
let
competitorsalesliterature
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
competitorsalesliterature
s'
),
'undefined'
)){
competitorsalesliteraturesData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_competitorsalesliterature
s'
)
as
any
);
if
(
competitorsalesliteraturesData
&&
competitorsalesliteraturesData
.
length
&&
competitorsalesliterature
sData
.
length
>
0
){
competitorsalesliterature
sData
.
forEach
((
item
:
any
)
=>
{
masterData
.
competitorsalesliteratures
=
competitorsalesliterature
sData
;
let
salesliteratureitem
sData
:
any
=
[];
if
(
!
Object
.
is
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_
salesliteratureitem
s'
),
'undefined'
)){
salesliteratureitemsData
=
JSON
.
parse
(
this
.
tempStorage
.
getItem
(
context
.
srfsessionkey
+
'_salesliteratureitem
s'
)
as
any
);
if
(
salesliteratureitemsData
&&
salesliteratureitemsData
.
length
&&
salesliteratureitem
sData
.
length
>
0
){
salesliteratureitem
sData
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
srffrontuf
){
if
(
Object
.
is
(
item
.
srffrontuf
,
"0"
)){
item
.
relationships
id
=
null
;
item
.
salesliteratureitem
id
=
null
;
}
delete
item
.
srffrontuf
;
}
});
}
}
masterData
.
competitorsalesliteratures
=
competitorsalesliterature
sData
;
masterData
.
salesliteratureitems
=
salesliteratureitem
sData
;
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/salesliteratures/
${
context
.
salesliterature
}
/save`
,
data
,
isloading
);
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_productsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
productsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_competitorsalesliteratures'
,
JSON
.
stringify
(
res
.
data
.
competitorsalesliteratures
));
this
.
tempStorage
.
setItem
(
context
.
srfsessionkey
+
'_salesliteratureitems'
,
JSON
.
stringify
(
res
.
data
.
salesliteratureitems
));
return
res
;
}
...
...
app_CRM/src/studio-core/components/studio-view/studio-view-layout.less
浏览文件 @
fbf95442
...
...
@@ -438,7 +438,7 @@
>.translate-contant {
display: flex;
height:
calc(100% - 44px)
;
height:
100%
;
width: 100%;
>.center {
...
...
app_CRM/src/studio-core/service/UIStateService.ts
浏览文件 @
fbf95442
...
...
@@ -110,4 +110,14 @@ export class UIStateService {
}
}
/**
* 是否为Style2模式
*
* @returns {boolean}
* @memberof UIStateService
*/
public
isStyle2
():
boolean
{
return
this
.
layoutState
.
styleMode
===
'STYLE2'
;
}
}
\ No newline at end of file
app_CRM/src/studio-core/service/app-nav-history/AppNavHistoryBase.ts
浏览文件 @
fbf95442
import
{
Util
}
from
'@/utils'
;
import
qs
from
'qs'
;
import
i18n
from
'@/locale'
import
{
AppContextStore
}
from
'../app-context-store/AppContextStore'
;
import
{
UIStateService
}
from
'../UIStateService'
;
...
...
@@ -37,6 +38,13 @@ export interface HistoryItem {
* @memberof HistoryItem
*/
context
?:
any
;
/**
* 标题
*
* @type {string}
* @memberof HistoryItem
*/
title
?:
string
;
}
/**
...
...
@@ -89,12 +97,32 @@ export class AppNavHistoryBase {
/**
* Creates an instance of AppNavHistoryBase.
*
* @memberof AppNavHistoryBase
*/
constructor
()
{
addEventListener
(
'popstate'
,
(
event
)
=>
{
this
.
pop
();
});
if
(
this
.
uiStateService
.
layoutState
.
styleMode
===
'STYLE2'
)
{
addEventListener
(
'hashchange'
,
({
oldURL
})
=>
{
const
hash
=
oldURL
.
substring
(
oldURL
.
indexOf
(
'#'
)
+
1
);
const
queryIndex
=
hash
.
indexOf
(
'?'
);
const
path
=
queryIndex
===
-
1
?
hash
:
hash
.
substring
(
0
,
queryIndex
);
const
queryStr
=
queryIndex
===
-
1
?
''
:
hash
.
substring
(
queryIndex
+
1
);
if
(
this
.
isRouteSame
({
path
,
query
:
!
isEmpty
(
queryStr
)
?
qs
.
parse
(
queryStr
)
:
{}
},
this
.
historyList
[
this
.
historyList
.
length
-
1
].
to
))
{
this
.
pop
();
}
});
}
}
/**
* 根据视图标识查找记录
*
* @param {string} tag
* @returns {*}
* @memberof AppNavHistoryBase
*/
public
findHistoryByTag
(
tag
:
string
):
any
{
return
this
.
historyList
.
find
((
item
)
=>
(
isExistAndNotEmpty
(
item
.
tag
)
&&
item
.
tag
===
tag
));
}
/**
...
...
@@ -106,38 +134,53 @@ export class AppNavHistoryBase {
* @memberof AppNavHistoryBase
*/
public
findHistoryIndex
(
page
:
any
,
list
:
any
[]
=
this
.
historyList
):
number
{
if
(
page
===
undefined
||
page
===
null
)
{
if
(
!
isExist
(
page
)
)
{
return
-
1
;
}
return
list
.
findIndex
((
item
:
any
)
=>
{
const
to
=
item
.
to
;
// 基本路径是否一致
if
(
Object
.
is
(
to
.
path
,
page
.
path
))
{
// 历史路径是否存在参数
if
(
this
.
uiStateService
.
layoutState
.
styleMode
===
'STYLE2'
&&
to
.
query
)
{
let
judge
:
boolean
=
true
;
// 新路径是否存在参数
if
(
page
.
query
)
{
for
(
const
key
in
page
.
query
)
{
// 忽略的参数略过
if
(
this
.
navIgnoreParameters
.
test
(
`|
${
key
}
|`
))
{
continue
;
}
if
(
to
.
query
[
key
]
===
undefined
||
to
.
query
[
key
]
===
null
)
{
judge
=
false
;
}
}
}
else
{
judge
=
false
;
}
return
judge
;
}
return
true
;
}
return
false
;
return
this
.
isRouteSame
(
page
,
item
.
to
);
});;
}
/**
* 新旧路由是否相同
*
* @param {*} newRoute
* @param {*} oldRoute
* @returns {boolean}
* @memberof AppNavHistoryBase
*/
public
isRouteSame
(
newRoute
:
any
,
oldRoute
:
any
):
boolean
{
if
(
Object
.
is
(
newRoute
.
path
,
oldRoute
.
path
))
{
return
this
.
isQuerySame
(
newRoute
.
query
,
oldRoute
.
query
);
}
return
false
;
}
/**
* 判断查询参数是否相同,会排除预定义的忽略参数
*
* @param {*} newQuery 新查询参数
* @param {*} oldQuery 旧查询参数
* @returns {boolean}
* @memberof AppNavHistoryBase
*/
public
isQuerySame
(
newQuery
:
any
,
oldQuery
:
any
):
boolean
{
if
(
Object
.
keys
(
newQuery
).
length
!==
Object
.
keys
(
oldQuery
).
length
)
{
return
false
;
}
for
(
const
key
in
newQuery
)
{
// 忽略的参数略过
if
(
this
.
navIgnoreParameters
.
test
(
`|
${
key
}
|`
))
{
continue
;
}
if
(
!
isExist
(
oldQuery
)
||
!
Object
.
is
(
oldQuery
[
key
],
newQuery
[
key
]))
{
return
false
;
}
}
return
true
;
}
/**
* 添加视图缓存
*
...
...
@@ -151,9 +194,10 @@ export class AppNavHistoryBase {
}
this
.
historyList
.
push
({
to
,
meta
:
Util
.
deepCopy
(
to
.
meta
),
meta
:
JSON
.
parse
(
JSON
.
stringify
(
to
.
meta
)
),
tag
:
''
,
context
:
{}
context
:
{},
title
:
i18n
.
t
(
to
.
meta
.
caption
).
toString
()
});
}
}
...
...
@@ -184,21 +228,20 @@ export class AppNavHistoryBase {
/**
* 设置指定缓存视图标题
*
* @param {({
route: any, caption: string | null, info: string | null })} { route
, caption, info }
* @param {({
tag: string, caption: string | null, info: string | null })} { tag
, caption, info }
* @returns {boolean}
* @memberof AppNavHistoryBase
*/
public
setCaption
({
route
,
caption
,
info
}:
{
route
:
any
,
caption
?:
string
,
info
?:
string
}):
boolean
{
const
i
=
this
.
findHistoryIndex
(
route
);
if
(
i
===
-
1
)
{
return
false
;
}
const
item
=
this
.
historyList
[
i
];
if
(
caption
)
{
item
.
meta
.
caption
=
caption
;
}
if
(
info
)
{
item
.
meta
.
info
=
info
;
public
setCaption
({
tag
,
caption
,
info
}:
{
tag
:
string
,
caption
?:
string
,
info
?:
string
}):
boolean
{
const
item
:
HistoryItem
=
this
.
findHistoryByTag
(
tag
);
if
(
item
)
{
if
(
caption
)
{
item
.
meta
.
caption
=
caption
;
}
if
(
isExistAndNotEmpty
(
info
))
{
item
.
meta
.
info
=
info
;
item
.
title
=
`
${
i18n
.
t
(
item
.
meta
.
caption
)}
-
${
info
}
`
;
}
}
return
true
;
}
...
...
@@ -217,6 +260,9 @@ export class AppNavHistoryBase {
return
false
;
}
const
item
=
this
.
historyList
[
i
];
if
(
isExistAndNotEmpty
(
item
.
tag
))
{
return
false
;
}
item
.
tag
=
tag
;
return
true
;
}
...
...
@@ -225,18 +271,17 @@ export class AppNavHistoryBase {
* 设置路由视图上下文
*
* @param {*} context
* @param {*}
route
* @param {*}
tag
* @returns {boolean}
* @memberof AppNavHistoryBase
*/
public
setViewContext
(
context
:
any
,
route
:
any
):
boolean
{
const
i
=
this
.
findHistoryIndex
(
route
);
if
(
i
===
-
1
)
{
return
false
;
public
setViewContext
(
context
:
any
,
tag
:
any
):
boolean
{
const
item
=
this
.
findHistoryByTag
(
tag
);
if
(
item
)
{
item
.
context
=
context
;
return
true
;
}
const
item
=
this
.
historyList
[
i
];
item
.
context
=
context
;
return
true
;
return
false
;
}
/**
...
...
app_CRM/src/studio-core/types/index.d.ts
浏览文件 @
fbf95442
...
...
@@ -22,4 +22,28 @@ declare global {
*/
clearAll
():
void
;
}
/**
* 判断对象是否存在,判断是否为undefined或null,避免数值型0误判
*
* @param {*} obj
* @returns {boolean}
*/
function
isExist
(
obj
:
any
):
boolean
;
/**
* 判断字符串是否为空
*
* @param {string | undefined | null} str
* @returns {boolean}
*/
function
isEmpty
(
str
:
string
|
undefined
|
null
):
boolean
;
/**
* 判断字符串,存在并且不为空
*
* @param {string | undefined | null} str
* @returns {boolean}
*/
function
isExistAndNotEmpty
(
str
:
string
|
undefined
|
null
):
boolean
;
}
\ No newline at end of file
app_CRM/src/studio-core/utils/js-basic-extension.ts
浏览文件 @
fbf95442
...
...
@@ -12,4 +12,34 @@ Object.defineProperty(Object.prototype, 'clearAll', {
}
}
}
});
\ No newline at end of file
});
// 扩展window方法 Start
/**
* 判断对象是否为空,避免发生数值0误判
*
* @param obj
*/
window
.
isExist
=
function
(
obj
:
any
)
{
return
obj
!==
undefined
&&
obj
!==
null
;
}
/**
* 判断字符串是否为空
*
* @param str
*/
window
.
isEmpty
=
function
(
str
:
string
|
undefined
|
null
)
{
return
Object
.
is
(
str
,
''
);
}
/**
* 字符串不为空并且
*
* @param str
*/
window
.
isExistAndNotEmpty
=
function
(
str
:
string
|
undefined
|
null
)
{
return
isExist
(
str
)
&&
!
isEmpty
(
str
);
}
// 扩展window方法 End
\ No newline at end of file
app_CRM/src/studio-core/utils/studio-drawer/studio-drawer.less
浏览文件 @
fbf95442
...
...
@@ -117,6 +117,13 @@
height: 100%;
}
}
>.studio-view.view-container.show-footer {
>.view-content {
height: calc(100% - 46px);
}
}
}
}
}
\ No newline at end of file
app_CRM/src/studio-core/view/ViewBase.tsx
浏览文件 @
fbf95442
...
...
@@ -292,10 +292,16 @@ export class ViewBase extends Vue {
if
(
this
.
viewUsage
===
1
||
this
.
viewUsage
===
2
)
{
this
.
$appService
.
viewStore
.
push
(
this
);
}
const
secondtag
=
this
.
$util
.
createUUID
()
;
const
secondtag
=
(
this
as
any
).
_uid
;
this
.
$store
.
commit
(
'viewaction/createdView'
,
{
viewtag
:
this
.
viewtag
,
secondtag
:
secondtag
});
this
.
viewtag
=
secondtag
;
this
.
parseViewParam
();
if
(
this
.
viewUsage
===
1
)
{
this
.
$appService
.
navHistory
.
setViewTag
(
this
.
viewtag
,
this
.
$route
);
}
this
.
parseViewParam
();
this
.
$t
if
(
this
.
viewUsage
===
1
)
{
this
.
$appService
.
navHistory
.
setViewContext
(
this
.
context
,
this
.
viewtag
);
}
this
.
viewCreated
();
}
...
...
app_CRM/src/widgets/app/central-appmenu/central-appmenu-base.tsx
浏览文件 @
fbf95442
...
...
@@ -56,7 +56,7 @@ export class CentralBase extends Vue {
judge
=
false
;
console
.
warn
(
'未指定应用功能'
);
}
if
(
judge
)
{
if
(
judge
&&
this
.
$uiState
.
isStyle2
()
)
{
this
.
$appService
.
navHistory
.
reset
();
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录