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

xignzi006 发布系统代码

上级 057f18e8
<studio-view-style2 viewName="opportunitygridview" viewTitle="商机表格视图" class='degridview opportunity-grid-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<i-input slot="quickSearch" v-show="!isExpandSearchForm" v-model="query" search @on-search="onSearch($event)"/>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </template>
<template slot="searchForm">
<view_searchform
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:showBusyIndicator="true"
v-show="isExpandSearchForm"
loaddraftAction="FilterGetDraft"
loadAction="FilterGet"
name="searchform"
ref='searchform'
@save="searchform_save($event)"
@search="searchform_search($event)"
@load="searchform_load($event)"
@closeview="closeView($event)">
</view_searchform>
</template>
<view_grid
:viewState="viewState"
:viewparams="viewparams"
:context="context"
:isSingleSelect="isSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="false"
:gridRowActiveMode="gridRowActiveMode"
@save="onSave"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchDefault"
:newdata="newdata"
:opendata="opendata"
name="grid"
ref='grid'
@selectionchange="grid_selectionchange($event)"
@beforeload="grid_beforeload($event)"
@rowdblclick="grid_rowdblclick($event)"
@remove="grid_remove($event)"
@load="grid_load($event)"
@closeview="closeView($event)">
</view_grid>
</studio-view-style2>
\ No newline at end of file
<template src="./opportunity-grid-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { OpportunityGridViewBase } from './opportunity-grid-view-base';
import view_grid from '@widgets/opportunity/main-grid/main-grid.vue';
import view_searchform from '@widgets/opportunity/default-searchform/default-searchform.vue';
/**
* 商机表格视图视图
*
* @export
* @class OpportunityGridView
* @extends {OpportunityGridViewBase}
*/
@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 });
});
}
})
@VueLifeCycleProcessing()
export default class OpportunityGridView extends OpportunityGridViewBase { }
</script>
......@@ -16,13 +16,14 @@ export const PageComponents = {
Vue.component('task-quick-create', () => import('@pages/base/task-quick-create/task-quick-create.vue'));
Vue.component('opportunity-quick-create', () => import('@pages/sales/opportunity-quick-create/opportunity-quick-create.vue'));
Vue.component('opportunity-info-product', () => import('@pages/sales/opportunity-info-product/opportunity-info-product.vue'));
Vue.component('contact-info-person', () => import('@pages/base/contact-info-person/contact-info-person.vue'));
Vue.component('invoice-quick-create-view', () => import('@pages/finance/invoice-quick-create-view/invoice-quick-create-view.vue'));
Vue.component('opportunity-competitor-opp-comp-grid-view', () => import('@pages/sales/opportunity-competitor-opp-comp-grid-view/opportunity-competitor-opp-comp-grid-view.vue'));
Vue.component('contact-info-person', () => import('@pages/base/contact-info-person/contact-info-person.vue'));
Vue.component('campaign-info-schedule', () => import('@pages/marketing/campaign-info-schedule/campaign-info-schedule.vue'));
Vue.component('lead-con-lead-grid-view', () => import('@pages/sales/lead-con-lead-grid-view/lead-con-lead-grid-view.vue'));
Vue.component('sales-order-info-view', () => import('@pages/sales/sales-order-info-view/sales-order-info-view.vue'));
Vue.component('sales-order-detail-edit-view', () => import('@pages/sales/sales-order-detail-edit-view/sales-order-detail-edit-view.vue'));
Vue.component('opportunity-grid-view', () => import('@pages/sales/opportunity-grid-view/opportunity-grid-view.vue'));
Vue.component('letter-edit-view', () => import('@pages/base/letter-edit-view/letter-edit-view.vue'));
Vue.component('goal-edit-view', () => import('@pages/sales/goal-edit-view/goal-edit-view.vue'));
Vue.component('transaction-currency-pickup-view', () => import('@pages/base/transaction-currency-pickup-view/transaction-currency-pickup-view.vue'));
......@@ -106,7 +107,6 @@ export const PageComponents = {
Vue.component('quote-opp-qua-grid-view', () => import('@pages/sales/quote-opp-qua-grid-view/quote-opp-qua-grid-view.vue'));
Vue.component('invoice-info-view', () => import('@pages/finance/invoice-info-view/invoice-info-view.vue'));
Vue.component('contact-by-account', () => import('@pages/base/contact-by-account/contact-by-account.vue'));
Vue.component('opportunity-list-exp-view', () => import('@pages/sales/opportunity-list-exp-view/opportunity-list-exp-view.vue'));
Vue.component('opportunity-opp-pro-dashboard-view', () => import('@pages/sales/opportunity-opp-pro-dashboard-view/opportunity-opp-pro-dashboard-view.vue'));
Vue.component('sales-literature-edit-view', () => import('@pages/sales/sales-literature-edit-view/sales-literature-edit-view.vue'));
Vue.component('ibiz-list-summary', () => import('@pages/marketing/ibiz-list-summary/ibiz-list-summary.vue'));
......
......@@ -459,6 +459,35 @@ const router = new Router({
},
component: () => import('@pages/sales/opportunity-info-product/opportunity-info-product.vue'),
},
{
path: 'accounts/:account?/contacts/:contact?/info_person/:info_person?',
meta: {
caption: 'entities.contact.views.info_person.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'info_person', parameterName: 'info_person' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-info-person/contact-info-person.vue'),
},
{
path: 'contacts/:contact?/info_person/:info_person?',
meta: {
caption: 'entities.contact.views.info_person.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'info_person', parameterName: 'info_person' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-info-person/contact-info-person.vue'),
},
{
path: 'invoices/:invoice?/quickcreateview/:quickcreateview?',
meta: {
......@@ -550,35 +579,6 @@ const router = new Router({
},
component: () => import('@pages/sales/opportunity-competitor-opp-comp-grid-view/opportunity-competitor-opp-comp-grid-view.vue'),
},
{
path: 'accounts/:account?/contacts/:contact?/info_person/:info_person?',
meta: {
caption: 'entities.contact.views.info_person.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'info_person', parameterName: 'info_person' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-info-person/contact-info-person.vue'),
},
{
path: 'contacts/:contact?/info_person/:info_person?',
meta: {
caption: 'entities.contact.views.info_person.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'info_person', parameterName: 'info_person' },
],
requireAuth: true,
},
component: () => import('@pages/base/contact-info-person/contact-info-person.vue'),
},
{
path: 'campaigns/:campaign?/info_schedule/:info_schedule?',
meta: {
......@@ -696,6 +696,51 @@ const router = new Router({
},
component: () => import('@pages/sales/sales-order-detail-edit-view/sales-order-detail-edit-view.vue'),
},
{
path: 'accounts/:account?/contacts/:contact?/opportunities/:opportunity?/gridview/:gridview?',
meta: {
caption: 'entities.opportunity.views.gridview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'opportunities', parameterName: 'opportunity' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/opportunity-grid-view/opportunity-grid-view.vue'),
},
{
path: 'contacts/:contact?/opportunities/:opportunity?/gridview/:gridview?',
meta: {
caption: 'entities.opportunity.views.gridview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'opportunities', parameterName: 'opportunity' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/opportunity-grid-view/opportunity-grid-view.vue'),
},
{
path: 'opportunities/:opportunity?/gridview/:gridview?',
meta: {
caption: 'entities.opportunity.views.gridview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'opportunities', parameterName: 'opportunity' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/opportunity-grid-view/opportunity-grid-view.vue'),
},
{
path: 'letters/:letter?/editview/:editview?',
meta: {
......@@ -3204,51 +3249,6 @@ const router = new Router({
},
component: () => import('@pages/base/contact-by-account/contact-by-account.vue'),
},
{
path: 'accounts/:account?/contacts/:contact?/opportunities/:opportunity?/listexpview/:listexpview?',
meta: {
caption: 'entities.opportunity.views.listexpview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'opportunities', parameterName: 'opportunity' },
{ pathName: 'listexpview', parameterName: 'listexpview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/opportunity-list-exp-view/opportunity-list-exp-view.vue'),
},
{
path: 'contacts/:contact?/opportunities/:opportunity?/listexpview/:listexpview?',
meta: {
caption: 'entities.opportunity.views.listexpview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'contacts', parameterName: 'contact' },
{ pathName: 'opportunities', parameterName: 'opportunity' },
{ pathName: 'listexpview', parameterName: 'listexpview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/opportunity-list-exp-view/opportunity-list-exp-view.vue'),
},
{
path: 'opportunities/:opportunity?/listexpview/:listexpview?',
meta: {
caption: 'entities.opportunity.views.listexpview.title',
info:'',
parameters: [
{ pathName: 'central', parameterName: 'central' },
{ pathName: 'opportunities', parameterName: 'opportunity' },
{ pathName: 'listexpview', parameterName: 'listexpview' },
],
requireAuth: true,
},
component: () => import('@pages/sales/opportunity-list-exp-view/opportunity-list-exp-view.vue'),
},
{
path: 'accounts/:account?/contacts/:contact?/opportunities/:opportunity?/oppprodashboardview/:oppprodashboardview?',
meta: {
......
......@@ -611,6 +611,17 @@ export const viewstate: any = {
'c420212fae385872d6ae89e3d237350a',
],
},
{
viewtag: '5f8f689d5dccc3db6d2b74a24a8b24ef',
viewmodule: 'Sales',
viewname: 'OpportunityGridView',
viewaction: '',
viewdatachange: false,
refviews: [
'8bfcd7acdd1f36afc1714f1071671f2c',
'a243cd62accb02ceba4fb128703128f0',
],
},
{
viewtag: '615ceb2945e3cfe7404850aeadae188d',
viewmodule: 'Base',
......@@ -902,8 +913,8 @@ export const viewstate: any = {
'07c5035fbb847e889f3dbb9657723f30',
'24a93674ec4c976c08902a3e95421ca6',
'6978259896338a7ace85a9fbc5d70395',
'9f92696f8eeec188f5ea674b925df275',
'b38bc0256ecd5be1a58a3c2210a98d05',
'5f8f689d5dccc3db6d2b74a24a8b24ef',
'dfc0051ae4813115e03f3d095f8cd7d3',
'631a4276161c551802f3aaf4bd7e607c',
'15d12c1173fcb6e742b6a6d92cbc53ed',
......@@ -1067,16 +1078,6 @@ export const viewstate: any = {
'a5213905238dbc5d8e1a505029105cc9',
],
},
{
viewtag: '9f92696f8eeec188f5ea674b925df275',
viewmodule: 'Sales',
viewname: 'OpportunityListExpView',
viewaction: '',
viewdatachange: false,
refviews: [
'8bfcd7acdd1f36afc1714f1071671f2c',
],
},
{
viewtag: 'a0baf844a4d48914ee2623448b1a73fb',
viewmodule: 'Marketing',
......
......@@ -261,7 +261,7 @@ export class CentralBase extends Vue {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'opportunities', parameterName: 'opportunity' },
{ pathName: 'listexpview', parameterName: 'listexpview' },
{ pathName: 'gridview', parameterName: 'gridview' },
];
const path: string = this.$viewTool.buildUpRoutePath(this.$route, {}, deResParameters, parameters, [], viewparam);
this.$router.push(path);
......
......@@ -349,7 +349,7 @@ export default class CentralModel {
textcls: '',
appfunctag: 'Auto10',
appfuncyype: 'APPVIEW',
viewname: 'opportunity-list-exp-view',
viewname: 'opportunity-grid-view',
resourcetag: '',
}
,
......@@ -901,12 +901,12 @@ export default class CentralModel {
appfunctag: 'Auto10',
appfuncyype: 'APPVIEW',
openmode: '',
codename: 'opportunitylistexpview',
codename: 'opportunitygridview',
deResParameters: [],
routepath: '/central/:central?/opportunities/:opportunity?/listexpview/:listexpview?',
routepath: '/central/:central?/opportunities/:opportunity?/gridview/:gridview?',
parameters: [
{ pathName: 'opportunities', parameterName: 'opportunity' },
{ pathName: 'listexpview', parameterName: 'listexpview' },
{ pathName: 'gridview', parameterName: 'gridview' },
],
},
{
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册