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

xignzi006 发布系统代码

上级 9f6726c6
{
"ibizserviceeditview": {
"title": "服务编辑视图",
"caption": "服务",
"viewtype": "DEEDITVIEW",
"viewmodule": "Service",
"viewname": "IBizServiceEditView",
"viewfilename": "ibiz-service-edit-view",
"viewtag": "0027cf632b1ee99cb364d2b6aa2b6511",
"memo": "系统自动添加"
},
"contacteditabstract": {
"title": "联系人选项操作视图",
"caption": "摘要信息",
......@@ -309,6 +319,16 @@
"viewtag": "3124753ba4abff3aaf49355a5197c4ab",
"memo": "系统自动添加"
},
"accountinfo_all": {
"title": "客户编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountInfo_All",
"viewfilename": "account-info-all",
"viewtag": "31f2ad06ced735d250dfa5f309b5aea4",
"memo": ""
},
"incidentgridview": {
"title": "案例表格视图",
"caption": "案例",
......@@ -579,6 +599,16 @@
"viewtag": "7877d7e7e55fe21f48e8382e07579f33",
"memo": "系统自动添加"
},
"ibizservicegridview": {
"title": "服务表格视图",
"caption": "服务",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Service",
"viewname": "IBizServiceGridView",
"viewfilename": "ibiz-service-grid-view",
"viewtag": "7b487e231caf16a33620396ad7c90634",
"memo": "系统自动添加"
},
"campaignresponsequickcreate": {
"title": "快速新建",
"caption": "快速新建",
......
/**
* 服务
*
* @export
* @interface IBizService
*/
export interface IBizService {
/**
* 建立时间
*
* @returns {*}
* @memberof IBizService
*/
createdate?: any;
/**
* Time Zone Rule Version Number
*
* @returns {*}
* @memberof IBizService
*/
timezoneruleversionnumber?: any;
/**
* Record Created On
*
* @returns {*}
* @memberof IBizService
*/
overriddencreatedon?: any;
/**
* 定位偏差
*
* @returns {*}
* @memberof IBizService
*/
anchoroffset?: any;
/**
* 初始状态描述
*
* @returns {*}
* @memberof IBizService
*/
initialstatuscode?: any;
/**
* 粒度
*
* @returns {*}
* @memberof IBizService
*/
granularity?: any;
/**
* 更新人
*
* @returns {*}
* @memberof IBizService
*/
updateman?: any;
/**
* 说明
*
* @returns {*}
* @memberof IBizService
*/
description?: any;
/**
* 显示资源
*
* @returns {*}
* @memberof IBizService
*/
showresources?: any;
/**
* service名称
*
* @returns {*}
* @memberof IBizService
*/
servicename?: any;
/**
* Import Sequence Number
*
* @returns {*}
* @memberof IBizService
*/
importsequencenumber?: any;
/**
* 可公开
*
* @returns {*}
* @memberof IBizService
*/
visible?: any;
/**
* 日历
*
* @returns {*}
* @memberof IBizService
*/
calendarid?: any;
/**
* 建立人
*
* @returns {*}
* @memberof IBizService
*/
createman?: any;
/**
* 状态
*
* @returns {*}
* @memberof IBizService
*/
schedulable?: any;
/**
* 策略
*
* @returns {*}
* @memberof IBizService
*/
strategyid?: any;
/**
* Version Number
*
* @returns {*}
* @memberof IBizService
*/
versionnumber?: any;
/**
* 服务
*
* @returns {*}
* @memberof IBizService
*/
serviceid?: any;
/**
* 持续时间
*
* @returns {*}
* @memberof IBizService
*/
duration?: any;
/**
* 更新时间
*
* @returns {*}
* @memberof IBizService
*/
updatedate?: any;
/**
* UTC Conversion Time Zone Code
*
* @returns {*}
* @memberof IBizService
*/
utcconversiontimezonecode?: any;
/**
* 所需资源
*
* @returns {*}
* @memberof IBizService
*/
resourcespecid?: any;
}
\ No newline at end of file
......@@ -11,6 +11,7 @@ import invoice_en_US from '@locale/lanres/entities/invoice/invoice_en_US';
import campaign_en_US from '@locale/lanres/entities/campaign/campaign_en_US';
import lead_en_US from '@locale/lanres/entities/lead/lead_en_US';
import incident_en_US from '@locale/lanres/entities/incident/incident_en_US';
import ibizservice_en_US from '@locale/lanres/entities/ibiz-service/ibiz-service_en_US';
import ibizlist_en_US from '@locale/lanres/entities/ibiz-list/ibiz-list_en_US';
import campaignresponse_en_US from '@locale/lanres/entities/campaign-response/campaign-response_en_US';
import phonecall_en_US from '@locale/lanres/entities/phone-call/phone-call_en_US';
......@@ -147,6 +148,7 @@ export default {
campaign: campaign_en_US,
lead: lead_en_US,
incident: incident_en_US,
ibizservice: ibizservice_en_US,
ibizlist: ibizlist_en_US,
campaignresponse: campaignresponse_en_US,
phonecall: phonecall_en_US,
......
......@@ -11,6 +11,7 @@ import invoice_zh_CN from '@locale/lanres/entities/invoice/invoice_zh_CN';
import campaign_zh_CN from '@locale/lanres/entities/campaign/campaign_zh_CN';
import lead_zh_CN from '@locale/lanres/entities/lead/lead_zh_CN';
import incident_zh_CN from '@locale/lanres/entities/incident/incident_zh_CN';
import ibizservice_zh_CN from '@locale/lanres/entities/ibiz-service/ibiz-service_zh_CN';
import ibizlist_zh_CN from '@locale/lanres/entities/ibiz-list/ibiz-list_zh_CN';
import campaignresponse_zh_CN from '@locale/lanres/entities/campaign-response/campaign-response_zh_CN';
import phonecall_zh_CN from '@locale/lanres/entities/phone-call/phone-call_zh_CN';
......@@ -147,6 +148,7 @@ export default {
campaign: campaign_zh_CN,
lead: lead_zh_CN,
incident: incident_zh_CN,
ibizservice: ibizservice_zh_CN,
ibizlist: ibizlist_zh_CN,
campaignresponse: campaignresponse_zh_CN,
phonecall: phonecall_zh_CN,
......
export default {
fields: {
createdate: '建立时间',
timezoneruleversionnumber: 'Time Zone Rule Version Number',
overriddencreatedon: 'Record Created On',
anchoroffset: '定位偏差',
initialstatuscode: '初始状态描述',
granularity: '粒度',
updateman: '更新人',
description: '说明',
showresources: '显示资源',
servicename: 'service名称',
importsequencenumber: 'Import Sequence Number',
visible: '可公开',
calendarid: '日历',
createman: '建立人',
schedulable: '状态',
strategyid: '策略',
versionnumber: 'Version Number',
serviceid: '服务',
duration: '持续时间',
updatedate: '更新时间',
utcconversiontimezonecode: 'UTC Conversion Time Zone Code',
resourcespecid: '所需资源',
},
views: {
editview: {
caption: "服务",
title: '服务编辑视图',
},
gridview: {
caption: "服务",
title: '服务表格视图',
},
},
main_form: {
details: {
group1: "service基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "服务",
srfmajortext: "service名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
servicename: "service名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
serviceid: "服务",
},
uiactions: {
},
},
main_grid: {
columns: {
servicename: "service名称",
updateman: "更新人",
updatedate: "更新时间",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: "Save",
tip: "Save",
},
tbitem4: {
caption: "Save And New",
tip: "Save And New",
},
tbitem5: {
caption: "Save And Close",
tip: "Save And Close Window",
},
tbitem6: {
caption: "-",
tip: "",
},
tbitem7: {
caption: "Remove And Close",
tip: "Remove And Close Window",
},
tbitem8: {
caption: "-",
tip: "",
},
tbitem12: {
caption: "New",
tip: "New",
},
tbitem13: {
caption: "-",
tip: "",
},
tbitem14: {
caption: "Copy",
tip: "Copy {0}",
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: "New",
tip: "New",
},
tbitem4: {
caption: "Edit",
tip: "Edit {0}",
},
tbitem6: {
caption: "Copy",
tip: "Copy {0}",
},
tbitem7: {
caption: "-",
tip: "",
},
tbitem8: {
caption: "Remove",
tip: "Remove {0}",
},
tbitem9: {
caption: "-",
tip: "",
},
tbitem13: {
caption: "Export",
tip: "Export {0} Data To Excel",
},
tbitem10: {
caption: "-",
tip: "",
},
tbitem19: {
caption: "Filter",
tip: "Filter",
},
},
};
\ No newline at end of file
export default {
fields: {
createdate: '建立时间',
timezoneruleversionnumber: 'Time Zone Rule Version Number',
overriddencreatedon: 'Record Created On',
anchoroffset: '定位偏差',
initialstatuscode: '初始状态描述',
granularity: '粒度',
updateman: '更新人',
description: '说明',
showresources: '显示资源',
servicename: 'service名称',
importsequencenumber: 'Import Sequence Number',
visible: '可公开',
calendarid: '日历',
createman: '建立人',
schedulable: '状态',
strategyid: '策略',
versionnumber: 'Version Number',
serviceid: '服务',
duration: '持续时间',
updatedate: '更新时间',
utcconversiontimezonecode: 'UTC Conversion Time Zone Code',
resourcespecid: '所需资源',
},
views: {
editview: {
caption: '服务',
title: '服务编辑视图',
},
gridview: {
caption: '服务',
title: '服务表格视图',
},
},
main_form: {
details: {
group1: 'service基本信息',
formpage1: '基本信息',
group2: '操作信息',
formpage2: '其它',
srfupdatedate: '更新时间',
srforikey: '',
srfkey: '服务',
srfmajortext: 'service名称',
srftempmode: '',
srfuf: '',
srfdeid: '',
srfsourcekey: '',
servicename: 'service名称',
createman: '建立人',
createdate: '建立时间',
updateman: '更新人',
updatedate: '更新时间',
serviceid: '服务',
},
uiactions: {
},
},
main_grid: {
columns: {
servicename: 'service名称',
updateman: '更新人',
updatedate: '更新时间',
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: '常规条件',
},
uiactions: {
},
},
editviewtoolbar_toolbar: {
tbitem3: {
caption: '保存',
tip: '保存',
},
tbitem4: {
caption: '保存并新建',
tip: '保存并新建',
},
tbitem5: {
caption: '保存并关闭',
tip: '保存并关闭',
},
tbitem6: {
caption: '-',
tip: '',
},
tbitem7: {
caption: '删除并关闭',
tip: '删除并关闭',
},
tbitem8: {
caption: '-',
tip: '',
},
tbitem12: {
caption: '新建',
tip: '新建',
},
tbitem13: {
caption: '-',
tip: '',
},
tbitem14: {
caption: '拷贝',
tip: '拷贝',
},
},
gridviewtoolbar_toolbar: {
tbitem3: {
caption: '新建',
tip: '新建',
},
tbitem4: {
caption: '编辑',
tip: '编辑',
},
tbitem6: {
caption: '拷贝',
tip: '拷贝',
},
tbitem7: {
caption: '-',
tip: '',
},
tbitem8: {
caption: '删除',
tip: '删除',
},
tbitem9: {
caption: '-',
tip: '',
},
tbitem13: {
caption: '导出',
tip: '导出',
},
tbitem10: {
caption: '-',
tip: '',
},
tbitem19: {
caption: '过滤',
tip: '过滤',
},
},
};
\ No newline at end of file
......@@ -20,6 +20,7 @@ import './entity/invoices/invoices';
import './entity/campaigns/campaigns';
import './entity/leads/leads';
import './entity/incidents/incidents';
import './entity/ibiz-services/ibiz-services';
import './entity/ibiz-lists/ibiz-lists';
import './entity/campaign-responses/campaign-responses';
import './entity/phone-calls/phone-calls';
......
......@@ -7,7 +7,15 @@ import Mock from 'mockjs'
mock.onGet('./assets/json/view-config.json').reply((config: any) => {
let status = MockAdapter.mockStatus(config);
return [status,{
"contacteditabstract": {
"ibizserviceeditview": {
"title": "服务编辑视图",
"caption": "服务",
"viewtype": "DEEDITVIEW",
"viewmodule": "Service",
"viewname": "IBizServiceEditView",
"viewtag": "0027cf632b1ee99cb364d2b6aa2b6511"
},
"contacteditabstract": {
"title": "联系人选项操作视图",
"caption": "摘要信息",
"viewtype": "DEOPTVIEW",
......@@ -255,6 +263,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ListContactGridView",
"viewtag": "3124753ba4abff3aaf49355a5197c4ab"
},
"accountinfo_all": {
"title": "客户编辑视图",
"caption": "客户",
"viewtype": "DEEDITVIEW",
"viewmodule": "Base",
"viewname": "AccountInfo_All",
"viewtag": "31f2ad06ced735d250dfa5f309b5aea4"
},
"incidentgridview": {
"title": "案例表格视图",
"caption": "案例",
......@@ -471,6 +487,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "GoalEditView",
"viewtag": "7877d7e7e55fe21f48e8382e07579f33"
},
"ibizservicegridview": {
"title": "服务表格视图",
"caption": "服务",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Service",
"viewname": "IBizServiceGridView",
"viewtag": "7b487e231caf16a33620396ad7c90634"
},
"campaignresponsequickcreate": {
"title": "快速新建",
"caption": "快速新建",
......
// 避免空文件,后台不让空文件过
.ibiz-service-edit-view {
--ibiz-service-edit-view: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBizServiceEditViewBase from './ibiz-service-edit-view-base.vue';
import view_form from '@widgets/ibiz-service/main-form/main-form.vue';
@Component({
components: {
view_form,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class IBizServiceEditView extends IBizServiceEditViewBase {
}
</script>
\ No newline at end of file
// 避免空文件,后台不让空文件过
.ibiz-service-grid-view {
--ibiz-service-grid-view: 0;
}
// 视图样式
// this is less
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import IBizServiceGridViewBase from './ibiz-service-grid-view-base.vue';
import view_grid from '@widgets/ibiz-service/main-grid/main-grid.vue';
import view_searchform from '@widgets/ibiz-service/default-searchform/default-searchform.vue';
@Component({
components: {
view_grid,
view_searchform,
},
beforeRouteEnter: (to: any, from: any, next: any) => {
next((vm: any) => {
vm.$store.commit('addCurPageViewtag', { route: to, viewtag: vm.viewtag });
});
},
})
export default class IBizServiceGridView extends IBizServiceGridViewBase {
}
</script>
\ No newline at end of file
......@@ -52,6 +52,7 @@ export const PageComponents = {
Vue.component('ibiz-list-info-abstract', () => import('@pages/marketing/ibiz-list-info-abstract/ibiz-list-info-abstract.vue'));
Vue.component('ibiz-list-info', () => import('@pages/marketing/ibiz-list-info/ibiz-list-info.vue'));
Vue.component('ibiz-list-summary', () => import('@pages/marketing/ibiz-list-summary/ibiz-list-summary.vue'));
Vue.component('ibiz-service-edit-view', () => import('@pages/service/ibiz-service-edit-view/ibiz-service-edit-view.vue'));
Vue.component('lead-pickup-grid-view', () => import('@pages/sales/lead-pickup-grid-view/lead-pickup-grid-view.vue'));
Vue.component('list-account-quick-create-by-list', () => import('@pages/marketing/list-account-quick-create-by-list/list-account-quick-create-by-list.vue'));
Vue.component('campaign-list-edit-view', () => import('@pages/marketing/campaign-list-edit-view/campaign-list-edit-view.vue'));
......@@ -66,6 +67,7 @@ export const PageComponents = {
Vue.component('campaign-grid-view', () => import('@pages/marketing/campaign-grid-view/campaign-grid-view.vue'));
Vue.component('list-lead-by-list', () => import('@pages/marketing/list-lead-by-list/list-lead-by-list.vue'));
Vue.component('account-info-major-contact', () => import('@pages/base/account-info-major-contact/account-info-major-contact.vue'));
Vue.component('ibiz-service-grid-view', () => import('@pages/service/ibiz-service-grid-view/ibiz-service-grid-view.vue'));
Vue.component('sales-order-grid-view', () => import('@pages/sales/sales-order-grid-view/sales-order-grid-view.vue'));
Vue.component('contact-option-view', () => import('@pages/base/contact-option-view/contact-option-view.vue'));
Vue.component('contact-edit-abstract', () => import('@pages/base/contact-edit-abstract/contact-edit-abstract.vue'));
......@@ -81,6 +83,7 @@ export const PageComponents = {
Vue.component('contact-info-market', () => import('@pages/base/contact-info-market/contact-info-market.vue'));
Vue.component('competitor-grid-view', () => import('@pages/sales/competitor-grid-view/competitor-grid-view.vue'));
Vue.component('quote-edit-view', () => import('@pages/sales/quote-edit-view/quote-edit-view.vue'));
Vue.component('account-summary', () => import('@pages/base/account-summary/account-summary.vue'));
Vue.component('incident-grid-view', () => import('@pages/service/incident-grid-view/incident-grid-view.vue'));
Vue.component('ibiz-list-quick-create', () => import('@pages/marketing/ibiz-list-quick-create/ibiz-list-quick-create.vue'));
Vue.component('account-inner-pickup-view', () => import('@pages/base/account-inner-pickup-view/account-inner-pickup-view.vue'));
......
......@@ -943,6 +943,20 @@ const router = new Router({
},
component: () => import('@pages/marketing/ibiz-list-summary/ibiz-list-summary.vue'),
},
{
path: 'ibizservices/:ibizservice?/editview/:editview?',
meta: {
caption: 'entities.ibizservice.views.editview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'ibizservices', parameterName: 'ibizservice' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/service/ibiz-service-edit-view/ibiz-service-edit-view.vue'),
},
{
path: 'campaignresponses/:campaignresponse?/quickcreate/:quickcreate?',
meta: {
......@@ -1425,6 +1439,20 @@ const router = new Router({
},
component: () => import('@pages/base/account-info-major-contact/account-info-major-contact.vue'),
},
{
path: 'ibizservices/:ibizservice?/gridview/:gridview?',
meta: {
caption: 'entities.ibizservice.views.gridview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'ibizservices', parameterName: 'ibizservice' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/service/ibiz-service-grid-view/ibiz-service-grid-view.vue'),
},
{
path: 'salesorders/:salesorder?/gridview/:gridview?',
meta: {
......@@ -1752,6 +1780,20 @@ const router = new Router({
},
component: () => import('@pages/base/contact-edit-address/contact-edit-address.vue'),
},
{
path: 'accounts/:account?/summary/:summary?',
meta: {
caption: 'entities.account.views.summary.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'summary', parameterName: 'summary' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-summary/account-summary.vue'),
},
{
path: 'incidents/:incident?/gridview/:gridview?',
meta: {
......@@ -1797,6 +1839,19 @@ const router = new Router({
...indexRoutes,
],
},
{
path: '/ibizservices/:ibizservice?/editview/:editview?',
meta: {
caption: 'entities.ibizservice.views.editview.title',
info:'',
parameters: [
{ pathName: 'ibizservices', parameterName: 'ibizservice' },
{ pathName: 'editview', parameterName: 'editview' },
],
requireAuth: true,
},
component: () => import('@pages/service/ibiz-service-edit-view/ibiz-service-edit-view.vue'),
},
{
path: '/contacts/:contact?/editabstract/:editabstract?',
meta: {
......@@ -1810,6 +1865,19 @@ const router = new Router({
},
component: () => import('@pages/base/contact-edit-abstract/contact-edit-abstract.vue'),
},
{
path: '/accounts/:account?/summary/:summary?',
meta: {
caption: 'entities.account.views.summary.title',
info:'',
parameters: [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'summary', parameterName: 'summary' },
],
requireAuth: true,
},
component: () => import('@pages/base/account-summary/account-summary.vue'),
},
{
path: '/invoices/:invoice?/editview/:editview?',
meta: {
......@@ -2743,6 +2811,19 @@ const router = new Router({
},
component: () => import('@pages/sales/goal-edit-view/goal-edit-view.vue'),
},
{
path: '/ibizservices/:ibizservice?/gridview/:gridview?',
meta: {
caption: 'entities.ibizservice.views.gridview.title',
info:'',
parameters: [
{ pathName: 'ibizservices', parameterName: 'ibizservice' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/service/ibiz-service-grid-view/ibiz-service-grid-view.vue'),
},
{
path: '/campaignresponses/:campaignresponse?/quickcreate/:quickcreate?',
meta: {
......
......@@ -52,6 +52,7 @@ export class EntityServiceRegister {
this.allEntityService.set('campaign', () => import('@/service/campaign/campaign-service'));
this.allEntityService.set('lead', () => import('@/service/lead/lead-service'));
this.allEntityService.set('incident', () => import('@/service/incident/incident-service'));
this.allEntityService.set('ibizservice', () => import('@/service/ibiz-service/ibiz-service-service'));
this.allEntityService.set('ibizlist', () => import('@/service/ibiz-list/ibiz-list-service'));
this.allEntityService.set('campaignresponse', () => import('@/service/campaign-response/campaign-response-service'));
this.allEntityService.set('phonecall', () => import('@/service/phone-call/phone-call-service'));
......
import { Http,Util } from '@/utils';
import EntityService from '../entity-service';
/**
* 服务服务对象基类
*
* @export
* @class IBizServiceServiceBase
* @extends {EntityServie}
*/
export default class IBizServiceServiceBase extends EntityService {
/**
* Creates an instance of IBizServiceServiceBase.
*
* @param {*} [opts={}]
* @memberof IBizServiceServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础数据
*
* @memberof IBizServiceServiceBase
*/
public initBasicData(){
this.APPLYDEKEY ='ibizservice';
this.APPDEKEY = 'serviceid';
this.APPDENAME = 'ibizservices';
this.APPDETEXT = 'servicename';
this.APPNAME = 'businesscentral';
this.SYSTEMNAME = 'ibizbusinesscentral';
}
// 实体接口
/**
* Select接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBizServiceServiceBase
*/
public async Select(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().get(`/ibizservices/${context.ibizservice}/select`,isloading);
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBizServiceServiceBase
*/
public async GetDraft(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/ibizservices/getdraft`,isloading);
res.data.ibizservice = data.ibizservice;
return res;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBizServiceServiceBase
*/
public async Remove(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().delete(`/ibizservices/${context.ibizservice}`,isloading);
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBizServiceServiceBase
*/
public async CheckKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
return Http.getInstance().post(`/ibizservices/${context.ibizservice}/checkkey`,data,isloading);
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBizServiceServiceBase
*/
public async Save(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().post(`/ibizservices/${context.ibizservice}/save`,data,isloading);
return res;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBizServiceServiceBase
*/
public async Update(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
let res:any = await Http.getInstance().put(`/ibizservices/${context.ibizservice}`,data,isloading);
return res;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBizServiceServiceBase
*/
public async Create(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let masterData:any = {};
Object.assign(data,masterData);
if(!data.srffrontuf || data.srffrontuf !== "1"){
data[this.APPDEKEY] = null;
}
if(data.srffrontuf){
delete data.srffrontuf;
}
let tempContext:any = JSON.parse(JSON.stringify(context));
let res:any = await Http.getInstance().post(`/ibizservices`,data,isloading);
return res;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBizServiceServiceBase
*/
public async Get(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let res:any = await Http.getInstance().get(`/ibizservices/${context.ibizservice}`,isloading);
return res;
}
/**
* FetchDefault接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBizServiceServiceBase
*/
public async FetchDefault(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/ibizservices/fetchdefault`,tempData,isloading);
}
}
\ No newline at end of file
import { Http,Util } from '@/utils';
import IBizServiceServiceBase from './ibiz-service-service-base';
/**
* 服务服务对象
*
* @export
* @class IBizServiceService
* @extends {IBizServiceServiceBase}
*/
export default class IBizServiceService extends IBizServiceServiceBase {
/**
* Creates an instance of IBizServiceService.
*
* @param {*} [opts={}]
* @memberof IBizServiceService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -3,6 +3,15 @@
*/
export const viewstate: any = {
appviews: [
{
viewtag: '0027cf632b1ee99cb364d2b6aa2b6511',
viewmodule: 'Service',
viewname: 'IBizServiceEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: '016506dd3f47a5cf8530f2ca3dbdc7b7',
viewmodule: 'Base',
......@@ -12,6 +21,20 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '016e75bb460270519a0ee9dda57b2c90',
viewmodule: 'Base',
viewname: 'AccountSummary',
viewaction: '',
viewdatachange: false,
refviews: [
'aa79d35850f36fbc1a5085353ecd5af5',
'7b487e231caf16a33620396ad7c90634',
'a95d7d9111bc13a8b73a11ee1e4ff92a',
'893e62d6fbdc4580de7e3e802aec9108',
'a5213905238dbc5d8e1a505029105cc9',
],
},
{
viewtag: '01c28e25ad9d42977cb91ee890731b64',
viewmodule: 'Finance',
......@@ -236,7 +259,7 @@ export const viewstate: any = {
refviews: [
'fb06f2c1cea1ac2a5a70c20f4a277ae5',
'bae77557d2f7a7852b634dc5d5a93435',
'6e18ac74e5685439110f9b4e534ee005',
'016e75bb460270519a0ee9dda57b2c90',
],
},
{
......@@ -531,6 +554,16 @@ export const viewstate: any = {
refviews: [
],
},
{
viewtag: '7b487e231caf16a33620396ad7c90634',
viewmodule: 'Service',
viewname: 'IBizServiceGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'0027cf632b1ee99cb364d2b6aa2b6511',
],
},
{
viewtag: '7b7560b6d508b7bb0447d3204ed1c8be',
viewmodule: 'Marketing',
......
......@@ -84,6 +84,7 @@ export default class AccountUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'info_account',srfappde:'accounts'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'info',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'info_all',srfappde:'accounts'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'accounts'});
this.allViewMap.set(':',{viewname:'edit_accountinfo',srfappde:'accounts'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'accounts'});
......@@ -167,72 +168,6 @@ export default class AccountUIServiceBase extends UIService {
openDrawer(view, data);
}
/**
* 编辑
*
* @param {any[]} args 当前数据
* @param {any} context 行为附加上下文
* @param {*} [params] 附加参数
* @param {*} [$event] 事件源
* @param {*} [xData] 执行行为所需当前部件
* @param {*} [actionContext] 执行行为上下文
* @param {*} [srfParentDeName] 父实体名称
* @returns {Promise<any>}
*/
public async Account_Edit_Address(args: any[], context:any = {} ,params: any={}, $event?: any, xData?: any,actionContext?:any,srfParentDeName?:string) {
let data: any = {};
let parentContext:any = {};
let parentViewParam:any = {};
const _this: any = actionContext;
const _args: any[] = Util.deepCopy(args);
const actionTarget: string | null = 'SINGLEKEY';
Object.assign(context, { account: '%account%' });
Object.assign(params, { accountid: '%account%' });
Object.assign(params, { accountname: '%accountname%' });
if(_this.context){
parentContext = _this.context;
}
if(_this.viewparams){
parentViewParam = _this.viewparams;
}
context = UIActionTool.handleContextParam(actionTarget,_args,parentContext,parentViewParam,context);
data = UIActionTool.handleActionParam(actionTarget,_args,parentContext,parentViewParam,params);
context = Object.assign({},actionContext.context,context);
let parentObj:any = {srfparentdename:srfParentDeName?srfParentDeName:null,srfparentkey:srfParentDeName?context[srfParentDeName.toLowerCase()]:null};
Object.assign(data,parentObj);
Object.assign(context,parentObj);
let deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'accounts', parameterName: 'account' },
];
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = actionContext.$appdrawer.openDrawer(view, context,data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
const _this: any = actionContext;
if (xData && xData.refresh && xData.refresh instanceof Function) {
xData.refresh(args);
}
if(window.opener){
window.opener.postMessage({status:'OK',identification:'WF'},Environment.uniteAddress);
window.close();
}
return result.datas;
});
}
const view: any = {
viewname: 'account-edit-address',
height: 0,
width: 450,
title: actionContext.$t('entities.account.views.edit_address.title'),
placement: 'DRAWER_RIGHT',
};
openDrawer(view, data);
}
/**
* 编辑
*
......
import { Environment } from '@/environments/environment';
import { UIActionTool,Util } from '@/utils';
import UIService from '../ui-service';
import { Subject } from 'rxjs';
import IBizServiceService from '@/service/ibiz-service/ibiz-service-service';
/**
* 服务UI服务对象基类
*
* @export
* @class IBizServiceUIServiceBase
*/
export default class IBizServiceUIServiceBase extends UIService {
/**
* 是否支持工作流
*
* @memberof IBizServiceUIServiceBase
*/
public isEnableWorkflow:boolean = false;
/**
* 当前UI服务对应的数据服务对象
*
* @memberof IBizServiceUIServiceBase
*/
public dataService:IBizServiceService = new IBizServiceService();
/**
* 所有关联视图
*
* @memberof IBizServiceUIServiceBase
*/
public allViewMap: Map<string, Object> = new Map();
/**
* 状态值
*
* @memberof IBizServiceUIServiceBase
*/
public stateValue: number = 0;
/**
* 状态属性
*
* @memberof IBizServiceUIServiceBase
*/
public stateField: string = "";
/**
* 主状态属性集合
*
* @memberof IBizServiceUIServiceBase
*/
public mainStateFields:Array<any> = [];
/**
* 主状态集合Map
*
* @memberof IBizServiceUIServiceBase
*/
public allDeMainStateMap:Map<string,string> = new Map();
/**
* Creates an instance of IBizServiceUIServiceBase.
*
* @param {*} [opts={}]
* @memberof IBizServiceUIServiceBase
*/
constructor(opts: any = {}) {
super(opts);
this.initViewMap();
this.initDeMainStateMap();
}
/**
* 初始化视图Map
*
* @memberof IBizServiceUIServiceBase
*/
public initViewMap(){
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'ibizservices'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'ibizservices'});
}
/**
* 初始化主状态集合
*
* @memberof IBizServiceUIServiceBase
*/
public initDeMainStateMap(){
}
/**
* 获取指定数据的重定向页面
*
* @param srfkey 数据主键
* @param isEnableWorkflow 重定向视图是否需要处理流程中的数据
* @memberof IBizServiceUIServiceBase
*/
public async getRDAppView(srfkey:string,isEnableWorkflow:boolean){
this.isEnableWorkflow = isEnableWorkflow;
// 进行数据查询
let result:any = await this.dataService.Get({ibizservice:srfkey});
const curData:any = result.data;
//判断当前数据模式,默认为true,todo
const iRealDEModel:boolean = true;
let bDataInWF:boolean = false;
let bWFMode:any = false;
// 计算数据模式
if (this.isEnableWorkflow) {
bDataInWF = await this.dataService.testDataInWF({stateValue:this.stateValue,stateField:this.stateField},curData);
if (bDataInWF) {
bDataInWF = true;
bWFMode = await this.dataService.testUserExistWorklist(null,curData);
}
}
let strPDTViewParam:string = await this.getDESDDEViewPDTParam(curData, bDataInWF, bWFMode);
//若不是当前数据模式,处理strPDTViewParam,todo
//查找视图
//返回视图
return this.allViewMap.get(strPDTViewParam);
}
/**
* 获取实际的数据类型
*
* @memberof IBizServiceUIServiceBase
*/
public getRealDEType(entity:any){
}
/**
* 获取实体单数据实体视图预定义参数
*
* @param curData 当前数据
* @param bDataInWF 是否有数据在工作流中
* @param bWFMode 是否工作流模式
* @memberof IBizServiceUIServiceBase
*/
public async getDESDDEViewPDTParam(curData:any, bDataInWF:boolean, bWFMode:boolean){
let strPDTParam:string = '';
if (bDataInWF) {
// 判断数据是否在流程中
}
//多表单,todo
const isEnableMultiForm:boolean = false;
const multiFormDEField:string|null =null;
if (isEnableMultiForm && multiFormDEField) {
const objFormValue:string = curData[multiFormDEField];
if(!Environment.isAppMode){
return 'MOBEDITVIEW'+objFormValue;
}
return 'EDITVIEW'+objFormValue;
}
if(!Environment.isAppMode){
if(this.getDEMainStateTag(curData)){
return `MOBEDITVIEW:MSTAG:${ await this.getDEMainStateTag(curData)}`;
}
return 'MOBEDITVIEW:';
}
if(this.getDEMainStateTag(curData)){
return `EDITVIEW:MSTAG:${ await this.getDEMainStateTag(curData)}`;
}
return 'EDITVIEW:';
}
/**
* 获取数据对象的主状态标识
*
* @param curData 当前数据
* @memberof IBizServiceUIServiceBase
*/
public async getDEMainStateTag(curData:any){
if(this.mainStateFields.length === 0) return null;
this.mainStateFields.forEach((singleMainField:any) =>{
if(!(singleMainField in curData)){
console.error(`当前数据对象不包含属性singleMainField,可能会发生错误`);
}
})
let strTag:String = "";
for (let i = 0; i <= 1; i++) {
let strTag:string = (curData[this.mainStateFields[0]])?(i == 0) ? curData[this.mainStateFields[0]] : "":"";
if (this.mainStateFields.length >= 2) {
for (let j = 0; j <= 1; j++) {
let strTag2:string = (curData[this.mainStateFields[1]])?`${strTag}__${(j == 0) ? curData[this.mainStateFields[1]] : ""}`:strTag;
if (this.mainStateFields.length >= 3) {
for (let k = 0; k <= 1; k++) {
let strTag3:string = (curData[this.mainStateFields[2]])?`${strTag2}__${(k == 0) ? curData[this.mainStateFields[2]] : ""}`:strTag2;
// 判断是否存在
return this.allDeMainStateMap.get(strTag3);
}
}else{
return this.allDeMainStateMap.get(strTag2);
}
}
}else{
return this.allDeMainStateMap.get(strTag);
}
}
return null;
}
}
\ No newline at end of file
import IBizServiceUIServiceBase from './ibiz-service-ui-service-base';
/**
* 服务UI服务对象
*
* @export
* @class IBizServiceUIService
*/
export default class IBizServiceUIService extends IBizServiceUIServiceBase {
/**
* Creates an instance of IBizServiceUIService.
*
* @param {*} [opts={}]
* @memberof IBizServiceUIService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -52,6 +52,7 @@ export class UIServiceRegister {
this.allUIService.set('campaign', () => import('@/uiservice/campaign/campaign-ui-service'));
this.allUIService.set('lead', () => import('@/uiservice/lead/lead-ui-service'));
this.allUIService.set('incident', () => import('@/uiservice/incident/incident-ui-service'));
this.allUIService.set('ibizservice', () => import('@/uiservice/ibiz-service/ibiz-service-ui-service'));
this.allUIService.set('ibizlist', () => import('@/uiservice/ibiz-list/ibiz-list-ui-service'));
this.allUIService.set('campaignresponse', () => import('@/uiservice/campaign-response/campaign-response-ui-service'));
this.allUIService.set('phonecall', () => import('@/uiservice/phone-call/phone-call-ui-service'));
......
<template>
<div class='tabviewpanel' style="height:100%;" v-if = 'isActivied' >
<account-edit-view
<account-summary
class='viewcontainer2'
:viewdata="viewdata"
:viewparam="viewparam"
@viewload="viewDatasChange($event)"
:viewDefaultUsage="false" >
</account-edit-view>
</account-summary>
</div>
</template>
<script lang='tsx'>
......
......@@ -2,21 +2,13 @@
import { Component } from 'vue-property-decorator';
import SummaryBase from './summary-dashboard-base.vue';
import view_dashboard_sysportlet8 from '@widgets/activity-pointer/list-by-parent-key-portlet/list-by-parent-key-portlet.vue';
import view_dashboard_sysportlet4 from '@widgets/account/view-contact-setting-portlet/view-contact-setting-portlet.vue';
import view_dashboard_sysportlet5 from '@widgets/account/view-distribution-portlet/view-distribution-portlet.vue';
import view_dashboard_sysportlet2 from '@widgets/account/view-address-portlet/view-address-portlet.vue';
import view_dashboard_sysportlet3 from '@widgets/account/view-introduction-portlet/view-introduction-portlet.vue';
import view_dashboard_sysportlet1 from '@widgets/account/view-account-info-portlet/view-account-info-portlet.vue';
import view_dashboard_sysportlet6 from '@widgets/account/view-account-info-all-portlet/view-account-info-all-portlet.vue';
@Component({
components: {
view_dashboard_sysportlet8,
view_dashboard_sysportlet4,
view_dashboard_sysportlet5,
view_dashboard_sysportlet2,
view_dashboard_sysportlet3,
view_dashboard_sysportlet1,
view_dashboard_sysportlet6,
}
})
......
import { Http } from '@/utils';
import ControlService from '@/widgets/control-service';
/**
* View_AccountInfoAll 部件服务对象
*
* @export
* @class View_AccountInfoAllService
*/
export default class View_AccountInfoAllService extends ControlService {
}
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import AccountView_AccountInfoAllBase from './view-account-info-all-portlet-base.vue';
@Component({
components: {
}
})
export default class AccountView_AccountInfoAll extends AccountView_AccountInfoAllBase {
}
</script>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import DefaultBase from './default-searchform-base.vue';
@Component({
components: {
}
})
export default class Default extends DefaultBase {
}
</script>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册