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

xignzi006 发布系统代码

上级 1c00c80e
...@@ -1219,6 +1219,16 @@ ...@@ -1219,6 +1219,16 @@
"viewtag": "6ab7d7604dbd53cc5b469aa9176dcb2f", "viewtag": "6ab7d7604dbd53cc5b469aa9176dcb2f",
"memo": "" "memo": ""
}, },
"incidentquickcreatebyparentkey": {
"title": "快速新建",
"caption": "案例",
"viewtype": "DEOPTVIEW",
"viewmodule": "Service",
"viewname": "IncidentQuickCreateByParentKey",
"viewfilename": "incident-quick-create-by-parent-key",
"viewtag": "6b1896d002d20fec6591398a98f37e39",
"memo": "系统自动添加"
},
"knowledgearticleincidentgridview": { "knowledgearticleincidentgridview": {
"title": "知识文章事件表格视图", "title": "知识文章事件表格视图",
"caption": "知识文章事件", "caption": "知识文章事件",
......
...@@ -119,6 +119,10 @@ export default { ...@@ -119,6 +119,10 @@ export default {
caption: "案例", caption: "案例",
title: "快速新建", title: "快速新建",
}, },
quickcreatebyparentkey: {
caption: "案例",
title: "快速新建",
},
pickupgridview: { pickupgridview: {
caption: "案例", caption: "案例",
title: "案例选择表格视图", title: "案例选择表格视图",
...@@ -261,7 +265,7 @@ export default { ...@@ -261,7 +265,7 @@ export default {
ticketnumber: "案例号", ticketnumber: "案例号",
prioritycode: "优先级", prioritycode: "优先级",
caseorigincode: "起源", caseorigincode: "起源",
customerid: "客户", customername: "客户",
statecode: "状态", statecode: "状态",
}, },
uiactions: { uiactions: {
......
...@@ -118,6 +118,10 @@ export default { ...@@ -118,6 +118,10 @@ export default {
caption: "案例", caption: "案例",
title: "快速新建", title: "快速新建",
}, },
quickcreatebyparentkey: {
caption: "案例",
title: "快速新建",
},
pickupgridview: { pickupgridview: {
caption: "案例", caption: "案例",
title: "案例选择表格视图", title: "案例选择表格视图",
...@@ -260,7 +264,7 @@ export default { ...@@ -260,7 +264,7 @@ export default {
ticketnumber: "案例号", ticketnumber: "案例号",
prioritycode: "优先级", prioritycode: "优先级",
caseorigincode: "起源", caseorigincode: "起源",
customerid: "客户", customername: "客户",
statecode: "状态", statecode: "状态",
}, },
uiactions: { uiactions: {
......
...@@ -983,6 +983,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -983,6 +983,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "AccountEdit_DataPanel", "viewname": "AccountEdit_DataPanel",
"viewtag": "6ab7d7604dbd53cc5b469aa9176dcb2f" "viewtag": "6ab7d7604dbd53cc5b469aa9176dcb2f"
}, },
"incidentquickcreatebyparentkey": {
"title": "快速新建",
"caption": "案例",
"viewtype": "DEOPTVIEW",
"viewmodule": "Service",
"viewname": "IncidentQuickCreateByParentKey",
"viewtag": "6b1896d002d20fec6591398a98f37e39"
},
"knowledgearticleincidentgridview": { "knowledgearticleincidentgridview": {
"title": "知识文章事件表格视图", "title": "知识文章事件表格视图",
"caption": "知识文章事件", "caption": "知识文章事件",
......
...@@ -512,10 +512,10 @@ export class IncidentByParentKeyBase extends GridViewBase { ...@@ -512,10 +512,10 @@ export class IncidentByParentKeyBase extends GridViewBase {
}); });
} }
const view: any = { const view: any = {
viewname: 'incident-quick-create-view', viewname: 'incident-quick-create-by-parent-key',
height: 0, height: 0,
width: 0, width: 0,
title: this.$t('entities.incident.views.quickcreateview.title'), title: this.$t('entities.incident.views.quickcreatebyparentkey.title'),
placement: 'DRAWER_RIGHT', placement: 'DRAWER_RIGHT',
}; };
openDrawer(view, data); openDrawer(view, data);
......
import { Subject } from 'rxjs';
import { OptionViewBase } from '@/studio-core';
import IncidentService from '@/service/incident/incident-service';
import OptionViewEngine from '@engine/view/option-view-engine';
/**
* 快速新建视图基类
*
* @export
* @class IncidentQuickCreateByParentKeyBase
* @extends {OptionViewBase}
*/
export class IncidentQuickCreateByParentKeyBase extends OptionViewBase {
/**
* 视图对应应用实体名称
*
* @protected
* @type {string}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected appDeName: string = 'incident';
/**
* 应用实体主键
*
* @protected
* @type {string}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected appDeKey: string = 'incidentid';
/**
* 应用实体主信息
*
* @protected
* @type {string}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected appDeMajor: string = 'title';
/**
* 实体服务对象
*
* @type {IncidentService}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected appEntityService: IncidentService = new IncidentService;
/**
* 计数器服务对象集合
*
* @protected
* @type {Array<*>}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected counterServiceArray: Array<any> = [];
/**
* 视图模型数据
*
* @protected
* @type {*}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected model: any = {
srfCaption: 'entities.incident.views.quickcreatebyparentkey.caption',
srfTitle: 'entities.incident.views.quickcreatebyparentkey.title',
srfSubTitle: 'entities.incident.views.quickcreatebyparentkey.subtitle',
dataInfo: ''
}
/**
* 容器模型
*
* @protected
* @type {*}
* @memberof IncidentQuickCreateByParentKeyBase
*/
protected containerModel: any = {
view_form: { name: 'form', type: 'FORM' },
view_okbtn: { name: 'okbtn', type: 'button', text: '确定', disabled: true },
view_cancelbtn: { name: 'cancelbtn', type: 'button', text: '取消', disabled: false },
view_leftbtn: { name: 'leftbtn', type: 'button', text: '左移', disabled: true },
view_rightbtn: { name: 'rightbtn', type: 'button', text: '右移', disabled: true },
view_allleftbtn: { name: 'allleftbtn', type: 'button', text: '全部左移', disabled: true },
view_allrightbtn: { name: 'allrightbtn', type: 'button', text: '全部右移', disabled: true },
};
/**
* 视图唯一标识
*
* @protected
* @type {string}
* @memberof ViewBase
*/
protected viewtag: string = '6b1896d002d20fec6591398a98f37e39';
/**
* 视图引擎
*
* @public
* @type {Engine}
* @memberof IncidentQuickCreateByParentKeyBase
*/
public engine: OptionViewEngine = new OptionViewEngine();
/**
* 引擎初始化
*
* @public
* @memberof IncidentQuickCreateByParentKeyBase
*/
public engineInit(): void {
this.engine.init({
view: this,
form: this.$refs.form,
p2k: '0',
keyPSDEField: 'incident',
majorPSDEField: 'title',
isLoadDefault: true,
});
}
/**
* form 部件 save 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IncidentQuickCreateByParentKeyBase
*/
public form_save($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'save', $event);
}
/**
* form 部件 remove 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IncidentQuickCreateByParentKeyBase
*/
public form_remove($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'remove', $event);
}
/**
* form 部件 load 事件
*
* @param {*} [args={}]
* @param {*} $event
* @memberof IncidentQuickCreateByParentKeyBase
*/
public form_load($event: any, $event2?: any): void {
this.engine.onCtrlEvent('form', 'load', $event);
}
}
\ No newline at end of file
<studio-view-style2 viewName="incidentquickcreatebyparentkey" viewTitle="快速新建" class='deoptview incident-quick-create-by-parent-key'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<view_form
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:autosave="false"
:viewtag="viewtag"
:showBusyIndicator="true"
updateAction="Update"
removeAction="Remove"
loaddraftAction="GetDraft"
loadAction="Get"
createAction="Create"
WFSubmitAction=""
WFStartAction=""
style=''
name="form"
ref='form'
@save="form_save($event)"
@remove="form_remove($event)"
@load="form_load($event)"
@closeview="closeView($event)">
</view_form>
<template slot="footer">
<div class="option-view-footer-actions">
<i-button type='primary' @click="onClickOk.apply(_self, arguments)">{{ containerModel.view_okbtn.text }}</i-button>
&nbsp;&nbsp;
<i-button @click="onClickCancel.apply(_self, arguments)">{{ containerModel.view_cancelbtn.text }}</i-button>
</div>
</template>
</studio-view-style2>
\ No newline at end of file
<template src="./incident-quick-create-by-parent-key.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { IncidentQuickCreateByParentKeyBase } from './incident-quick-create-by-parent-key-base';
import view_form from '@widgets/incident/quick-create-form/quick-create-form.vue';
/**
* 快速新建视图
*
* @export
* @class IncidentQuickCreateByParentKey
* @extends {IncidentQuickCreateByParentKeyBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class IncidentQuickCreateByParentKey extends IncidentQuickCreateByParentKeyBase { }
</script>
...@@ -160,6 +160,7 @@ export const PageComponents = { ...@@ -160,6 +160,7 @@ export const PageComponents = {
Vue.component('sales-literature-item-edit-view', () => import('@pages/sales/sales-literature-item-edit-view/sales-literature-item-edit-view.vue')); Vue.component('sales-literature-item-edit-view', () => import('@pages/sales/sales-literature-item-edit-view/sales-literature-item-edit-view.vue'));
Vue.component('competitor-grid-view', () => import('@pages/sales/competitor-grid-view/competitor-grid-view.vue')); Vue.component('competitor-grid-view', () => import('@pages/sales/competitor-grid-view/competitor-grid-view.vue'));
Vue.component('incident-pickup-grid-view', () => import('@pages/service/incident-pickup-grid-view/incident-pickup-grid-view.vue')); Vue.component('incident-pickup-grid-view', () => import('@pages/service/incident-pickup-grid-view/incident-pickup-grid-view.vue'));
Vue.component('incident-quick-create-by-parent-key', () => import('@pages/service/incident-quick-create-by-parent-key/incident-quick-create-by-parent-key.vue'));
Vue.component('ibiz-list-quick-create', () => import('@pages/marketing/ibiz-list-quick-create/ibiz-list-quick-create.vue')); Vue.component('ibiz-list-quick-create', () => import('@pages/marketing/ibiz-list-quick-create/ibiz-list-quick-create.vue'));
Vue.component('opportunity-product-opp-opp-pro-grid-view', () => import('@pages/sales/opportunity-product-opp-opp-pro-grid-view/opportunity-product-opp-opp-pro-grid-view.vue')); Vue.component('opportunity-product-opp-opp-pro-grid-view', () => import('@pages/sales/opportunity-product-opp-opp-pro-grid-view/opportunity-product-opp-opp-pro-grid-view.vue'));
Vue.component('contact-tab-exp-view', () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue')); Vue.component('contact-tab-exp-view', () => import('@pages/base/contact-tab-exp-view/contact-tab-exp-view.vue'));
......
...@@ -7132,6 +7132,20 @@ const router = new Router({ ...@@ -7132,6 +7132,20 @@ const router = new Router({
}, },
component: () => import('@pages/service/incident-pickup-grid-view/incident-pickup-grid-view.vue'), component: () => import('@pages/service/incident-pickup-grid-view/incident-pickup-grid-view.vue'),
}, },
{
path: 'incidents/:incident?/quickcreatebyparentkey/:quickcreatebyparentkey?',
meta: {
caption: 'entities.incident.views.quickcreatebyparentkey.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'incidents', parameterName: 'incident' },
{ pathName: 'quickcreatebyparentkey', parameterName: 'quickcreatebyparentkey' },
],
requireAuth: true,
},
component: () => import('@pages/service/incident-quick-create-by-parent-key/incident-quick-create-by-parent-key.vue'),
},
{ {
path: 'ibizlists/:ibizlist?/quickcreate/:quickcreate?', path: 'ibizlists/:ibizlist?/quickcreate/:quickcreate?',
meta: { meta: {
......
...@@ -461,6 +461,7 @@ export const viewstate: any = { ...@@ -461,6 +461,7 @@ export const viewstate: any = {
refviews: [ refviews: [
'540213698dac06ea2ef3193da7fe9b11', '540213698dac06ea2ef3193da7fe9b11',
'f440f1d3b950a89e6cb72cadea120b74', 'f440f1d3b950a89e6cb72cadea120b74',
'6b1896d002d20fec6591398a98f37e39',
], ],
}, },
{ {
...@@ -1109,6 +1110,19 @@ export const viewstate: any = { ...@@ -1109,6 +1110,19 @@ export const viewstate: any = {
refviews: [ refviews: [
], ],
}, },
{
viewtag: '6b1896d002d20fec6591398a98f37e39',
viewmodule: 'Service',
viewname: 'IncidentQuickCreateByParentKey',
viewaction: '',
viewdatachange: false,
refviews: [
'05d66c9ecb6eeb18a00a23cca19bf042',
'e52af970c14fd89546ac8ccaecab460c',
'ba34ee36c1d0de288403607e17e7eb3e',
'0dff48c04927315f77dd70a9a2767b59',
],
},
{ {
viewtag: '6c17740cc21fd25906f3feeec10a454a', viewtag: '6c17740cc21fd25906f3feeec10a454a',
viewmodule: 'Service', viewmodule: 'Service',
......
...@@ -84,6 +84,7 @@ export default class IncidentUIServiceBase extends UIService { ...@@ -84,6 +84,7 @@ export default class IncidentUIServiceBase extends UIService {
this.allViewMap.set(':',{viewname:'byparentkey',srfappde:'incidents'}); this.allViewMap.set(':',{viewname:'byparentkey',srfappde:'incidents'});
this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'incidents'}); this.allViewMap.set('MDATAVIEW:',{viewname:'gridview',srfappde:'incidents'});
this.allViewMap.set(':',{viewname:'quickcreateview',srfappde:'incidents'}); this.allViewMap.set(':',{viewname:'quickcreateview',srfappde:'incidents'});
this.allViewMap.set(':',{viewname:'quickcreatebyparentkey',srfappde:'incidents'});
this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'incidents'}); this.allViewMap.set(':',{viewname:'pickupgridview',srfappde:'incidents'});
this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'incidents'}); this.allViewMap.set('PICKUPVIEW:',{viewname:'pickupview',srfappde:'incidents'});
this.allViewMap.set(':',{viewname:'childincidentgridview',srfappde:'incidents'}); this.allViewMap.set(':',{viewname:'childincidentgridview',srfappde:'incidents'});
......
...@@ -94,9 +94,9 @@ export class MainGridBase extends GridControllerBase { ...@@ -94,9 +94,9 @@ export class MainGridBase extends GridControllerBase {
util: 'PX' util: 'PX'
}, },
{ {
name: 'customerid', name: 'customername',
label: '客户', label: '客户',
langtag: 'entities.incident.main_grid.columns.customerid', langtag: 'entities.incident.main_grid.columns.customername',
show: true, show: true,
util: 'PX' util: 'PX'
}, },
...@@ -145,7 +145,7 @@ export class MainGridBase extends GridControllerBase { ...@@ -145,7 +145,7 @@ export class MainGridBase extends GridControllerBase {
'ticketnumber':false, 'ticketnumber':false,
'prioritycode':false, 'prioritycode':false,
'caseorigincode':false, 'caseorigincode':false,
'customerid':false, 'customername':false,
'statecode':false, 'statecode':false,
}; };
......
...@@ -106,11 +106,6 @@ export default class MainModel { ...@@ -106,11 +106,6 @@ export default class MainModel {
prop: 'title', prop: 'title',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{
name: 'customerid',
prop: 'customerid',
dataType: 'TEXT',
},
{ {
name: 'productid', name: 'productid',
prop: 'productid', prop: 'productid',
...@@ -141,6 +136,11 @@ export default class MainModel { ...@@ -141,6 +136,11 @@ export default class MainModel {
prop: 'entitlementid', prop: 'entitlementid',
dataType: 'PICKUP', dataType: 'PICKUP',
}, },
{
name: 'customername',
prop: 'customername',
dataType: 'TEXT',
},
{ {
name: 'incident', name: 'incident',
prop: 'incidentid', prop: 'incidentid',
......
...@@ -75,15 +75,15 @@ ...@@ -75,15 +75,15 @@
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('customerid')"> <template v-if="getColumnState('customername')">
<el-table-column show-overflow-tooltip :prop="'customerid'" :label="$t('entities.incident.main_grid.columns.customerid')" :width="160" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'customername'" :label="$t('entities.incident.main_grid.columns.customername')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}"> <template v-slot:header="{column}">
<span class="column-header "> <span class="column-header ">
{{$t('entities.incident.main_grid.columns.customerid')}} {{$t('entities.incident.main_grid.columns.customername')}}
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<span>{{row.customerid}}</span> <span>{{row.customername}}</span>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册