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

xignzi006 发布系统代码

上级 8fad6a43
......@@ -3334,6 +3334,33 @@
}
]
},
{
"srfkey": "Connection__StatusCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "2",
"label": "停用",
"text": "停用",
"data":"",
"codename":"Item_2",
"value": "2",
"disabled": false
}
, {
"id": "1",
"label": "可用",
"text": "可用",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
]
},
{
"srfkey": "Productpricelevel__QuantitySellingCode",
"emptytext": "未定义",
......@@ -4136,6 +4163,33 @@
}
]
},
{
"srfkey": "Connection__StateCode",
"emptytext": "未定义",
"codelisttype":"static",
"items": [
{
"id": "1",
"label": "停用",
"text": "停用",
"data":"",
"codename":"Item_1",
"value": "1",
"disabled": false
}
, {
"id": "0",
"label": "可用",
"text": "可用",
"data":"",
"codename":"Item_0",
"value": "0",
"disabled": false
}
]
},
{
"srfkey": "Phonecall__PriorityCode",
"emptytext": "未定义",
......
......@@ -759,6 +759,16 @@
"viewtag": "44a690a1d62a390708480cb43f67d98b",
"memo": ""
},
"connectionbyparentkey": {
"title": "连接表格视图",
"caption": "连接",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Runtime",
"viewname": "ConnectionByParentKey",
"viewfilename": "connection-by-parent-key",
"viewtag": "44f1244c0a9e78981a151dc7f247e867",
"memo": "系统自动添加"
},
"activitypointergridview": {
"title": "活动",
"caption": "活动信息",
......@@ -1729,6 +1739,16 @@
"viewtag": "a243cd62accb02ceba4fb128703128f0",
"memo": ""
},
"connectioneditview": {
"title": "连接编辑视图",
"caption": "连接",
"viewtype": "DEEDITVIEW",
"viewmodule": "Runtime",
"viewname": "ConnectionEditView",
"viewfilename": "connection-edit-view",
"viewtag": "a28a28fe9c5b222ded84039205359d96",
"memo": "系统自动添加"
},
"discounttypepickupview": {
"title": "折扣表数据选择视图",
"caption": "折扣表",
......
......@@ -429,6 +429,11 @@ export default {
"5": "邮递",
"empty": ""
},
Connection__StatusCode: {
"2": "停用",
"1": "可用",
"empty": ""
},
Productpricelevel__QuantitySellingCode: {
"2": "整数",
"3": "整数和小数",
......@@ -523,6 +528,11 @@ export default {
"16": "金融业",
"empty": ""
},
Connection__StateCode: {
"1": "停用",
"0": "可用",
"empty": ""
},
Phonecall__PriorityCode: {
"0": "低",
"1": "正常",
......
......@@ -429,6 +429,11 @@ export default {
"5": "邮递",
"empty": "",
},
Connection__StatusCode: {
"2": "停用",
"1": "可用",
"empty": "",
},
Productpricelevel__QuantitySellingCode: {
"2": "整数",
"3": "整数和小数",
......@@ -523,6 +528,11 @@ export default {
"16": "金融业",
"empty": "",
},
Connection__StateCode: {
"1": "停用",
"0": "可用",
"empty": "",
},
Phonecall__PriorityCode: {
"0": "低",
"1": "正常",
......
......@@ -34,4 +34,130 @@ export default {
transactioncurrencyid: "货币",
record2roleid: "角色(目标)",
},
views: {
byparentkey: {
caption: "连接",
title: "连接表格视图",
},
editview: {
caption: "连接",
title: "连接编辑视图",
},
},
main_form: {
details: {
group1: "connection基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "连接",
srfmajortext: "关联名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
connectionname: "关联名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
connectionid: "连接",
},
uiactions: {
},
},
main_grid: {
columns: {
connectionname: "关联名称",
statecode: "状态",
statuscode: "状态描述",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
byparentkeytoolbar_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",
},
},
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}",
},
},
};
\ No newline at end of file
......@@ -33,4 +33,130 @@ export default {
transactioncurrencyid: "货币",
record2roleid: "角色(目标)",
},
views: {
byparentkey: {
caption: "连接",
title: "连接表格视图",
},
editview: {
caption: "连接",
title: "连接编辑视图",
},
},
main_form: {
details: {
group1: "connection基本信息",
formpage1: "基本信息",
group2: "操作信息",
formpage2: "其它",
srfupdatedate: "更新时间",
srforikey: "",
srfkey: "连接",
srfmajortext: "关联名称",
srftempmode: "",
srfuf: "",
srfdeid: "",
srfsourcekey: "",
connectionname: "关联名称",
createman: "建立人",
createdate: "建立时间",
updateman: "更新人",
updatedate: "更新时间",
connectionid: "连接",
},
uiactions: {
},
},
main_grid: {
columns: {
connectionname: "关联名称",
statecode: "状态",
statuscode: "状态描述",
},
uiactions: {
},
},
default_searchform: {
details: {
formpage1: "常规条件",
},
uiactions: {
},
},
byparentkeytoolbar_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: "过滤",
},
},
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: "拷贝",
},
},
};
\ No newline at end of file
......@@ -3342,6 +3342,33 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "Connection__StatusCode",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "2",
label: "停用",
text: "停用",
"data":"",
"codename":"Item_2",
value: "2",
disabled: false,
},
{
id: "1",
label: "可用",
text: "可用",
"data":"",
"codename":"Item_1",
value: "1",
disabled: false,
},
]
},
{
srfkey: "Productpricelevel__QuantitySellingCode",
emptytext: "未定义",
......@@ -4144,6 +4171,33 @@ mock.onGet('./assets/json/data-dictionary.json').reply((config: any) => {
},
]
},
{
srfkey: "Connection__StateCode",
emptytext: "未定义",
"codelisttype":"static",
items: [
{
id: "1",
label: "停用",
text: "停用",
"data":"",
"codename":"Item_1",
value: "1",
disabled: false,
},
{
id: "0",
label: "可用",
text: "可用",
"data":"",
"codename":"Item_0",
value: "0",
disabled: false,
},
]
},
{
srfkey: "Phonecall__PriorityCode",
emptytext: "未定义",
......
......@@ -271,6 +271,50 @@ mock.onPost(new RegExp(/^\/connections\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply
return [status, data];
});
// FetchByParentKey
mock.onGet(new RegExp(/^\/connections\/fetchbyparentkey$/)).reply((config: any) => {
console.groupCollapsed("实体:connection 方法: FetchByParentKey");
console.table({url:config.url, method: config.method, data:config.data});
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(mockDatas);
console.groupEnd();
console.groupEnd();
return [status, mockDatas ? mockDatas : []];
});
// FetchByParentKey
mock.onGet(new RegExp(/^\/connections\/fetchbyparentkey(\?[\w-./?%&=,]*)*$/)).reply((config: any) => {
console.groupCollapsed("实体:connection 方法: FetchByParentKey");
console.table({url:config.url, method: config.method, data:config.data});
if(config.url.includes('page')){
let url = config.url.split('?')[1];
let params = qs.parse(url);
Object.assign(config, params);
}
let status = MockAdapter.mockStatus(config);
if (status !== 200) {
return [status, null];
}
let total = mockDatas.length;
let records: Array<any> = [];
if(!config.page || !config.size){
records = mockDatas;
}else{
if((config.page-1)*config.size < total){
records = mockDatas.slice(config.page,config.size);
}
}
console.groupCollapsed("response数据 status: "+status+" data: ");
console.table(records ? records : []);
console.groupEnd();
console.groupEnd();
return [status, records ? records : []];
});
// FetchDefault
mock.onGet(new RegExp(/^\/connections\/fetchdefault$/)).reply((config: any) => {
console.groupCollapsed("实体:connection 方法: FetchDefault");
......
......@@ -615,6 +615,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "ListAccountInner",
"viewtag": "44a690a1d62a390708480cb43f67d98b"
},
"connectionbyparentkey": {
"title": "连接表格视图",
"caption": "连接",
"viewtype": "DEGRIDVIEW",
"viewmodule": "Runtime",
"viewname": "ConnectionByParentKey",
"viewtag": "44f1244c0a9e78981a151dc7f247e867"
},
"activitypointergridview": {
"title": "活动",
"caption": "活动信息",
......@@ -1391,6 +1399,14 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewname": "OpportunityQuickCreate",
"viewtag": "a243cd62accb02ceba4fb128703128f0"
},
"connectioneditview": {
"title": "连接编辑视图",
"caption": "连接",
"viewtype": "DEEDITVIEW",
"viewmodule": "Runtime",
"viewname": "ConnectionEditView",
"viewtag": "a28a28fe9c5b222ded84039205359d96"
},
"discounttypepickupview": {
"title": "折扣表数据选择视图",
"caption": "折扣表",
......
<studio-view-style2 viewName="connectionbyparentkey" viewTitle="连接表格视图" class='degridview connection-by-parent-key'>
<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="isGridSingleSelect"
:showBusyIndicator="true"
:isOpenEdit="false"
:gridRowActiveMode="gridRowActiveMode"
@save="onSave"
updateAction=""
removeAction="Remove"
loaddraftAction=""
loadAction=""
createAction=""
fetchAction="FetchByParentKey"
: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="./connection-by-parent-key.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { ConnectionByParentKeyBase } from './connection-by-parent-key-base';
import view_grid from '@widgets/connection/main-grid/main-grid.vue';
import view_searchform from '@widgets/connection/default-searchform/default-searchform.vue';
/**
* 连接表格视图视图
*
* @export
* @class ConnectionByParentKey
* @extends {ConnectionByParentKeyBase}
*/
@Component({
components: {
view_grid,
view_searchform,
}
})
@VueLifeCycleProcessing()
export default class ConnectionByParentKey extends ConnectionByParentKeyBase { }
</script>
<studio-view-style2 viewName="connectioneditview" viewTitle="连接编辑视图" class='deeditview connection-edit-view'>
<template slot='title'>
<span class='caption-info'>{{$t(model.srfTitle)}}</span>
</template>
<template slot="toolbar">
<view-toolbar mode="STYLE2" :model="toolBarModels" @item-click="toolbar_click($event)"/> </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>
</studio-view-style2>
\ No newline at end of file
<template src="./connection-edit-view.html"/>
<script lang='tsx'>
import { Component } from 'vue-property-decorator';
import { VueLifeCycleProcessing } from '@/studio-core';
import { ConnectionEditViewBase } from './connection-edit-view-base';
import view_form from '@widgets/connection/main-form/main-form.vue';
/**
* 连接编辑视图视图
*
* @export
* @class ConnectionEditView
* @extends {ConnectionEditViewBase}
*/
@Component({
components: {
view_form,
}
})
@VueLifeCycleProcessing()
export default class ConnectionEditView extends ConnectionEditViewBase { }
</script>
......@@ -441,7 +441,12 @@ export class LeadCompetitorGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.lead && true){
deResParameters = [
{ pathName: 'leads', parameterName: 'lead' },
]
}
const parameters: any[] = [
{ pathName: 'leadcompetitors', parameterName: 'leadcompetitor' },
{ pathName: 'editview', parameterName: 'editview' },
......@@ -475,7 +480,12 @@ export class LeadCompetitorGridViewBase extends GridViewBase {
if(args.length >0){
Object.assign(tempContext,args[0]);
}
const deResParameters: any[] = [];
let deResParameters: any[] = [];
if(tempContext.lead && true){
deResParameters = [
{ pathName: 'leads', parameterName: 'lead' },
]
}
const parameters: any[] = [
{ pathName: 'leadcompetitors', parameterName: 'leadcompetitor' },
{ pathName: 'editview', parameterName: 'editview' },
......
......@@ -42,6 +42,7 @@ export const PageComponents = {
Vue.component('competitor-info-abstract', () => import('@pages/sales/competitor-info-abstract/competitor-info-abstract.vue'));
Vue.component('knowledge-article-info-view', () => import('@pages/base/knowledge-article-info-view/knowledge-article-info-view.vue'));
Vue.component('phone-call-edit-view', () => import('@pages/base/phone-call-edit-view/phone-call-edit-view.vue'));
Vue.component('connection-edit-view', () => import('@pages/runtime/connection-edit-view/connection-edit-view.vue'));
Vue.component('invoice-summary-view', () => import('@pages/finance/invoice-summary-view/invoice-summary-view.vue'));
Vue.component('lead-info-contact', () => import('@pages/sales/lead-info-contact/lead-info-contact.vue'));
Vue.component('account-summary', () => import('@pages/base/account-summary/account-summary.vue'));
......@@ -148,6 +149,7 @@ export const PageComponents = {
Vue.component('lead-competitor-edit-view', () => import('@pages/sales/lead-competitor-edit-view/lead-competitor-edit-view.vue'));
Vue.component('product-summary-view', () => import('@pages/product/product-summary-view/product-summary-view.vue'));
Vue.component('quote-grid-view', () => import('@pages/sales/quote-grid-view/quote-grid-view.vue'));
Vue.component('connection-by-parent-key', () => import('@pages/runtime/connection-by-parent-key/connection-by-parent-key.vue'));
Vue.component('quote-option-view', () => import('@pages/sales/quote-option-view/quote-option-view.vue'));
Vue.component('sales-literature-info-sal-lit-view', () => import('@pages/sales/sales-literature-info-sal-lit-view/sales-literature-info-sal-lit-view.vue'));
Vue.component('goal-pickup-view', () => import('@pages/sales/goal-pickup-view/goal-pickup-view.vue'));
......
......@@ -161,6 +161,20 @@ export default class ConnectionServiceBase extends EntityService {
return res;
}
/**
* FetchByParentKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ConnectionServiceBase
*/
public async FetchByParentKey(context: any = {},data: any = {}, isloading?: boolean): Promise<any> {
let tempData:any = JSON.parse(JSON.stringify(data));
return Http.getInstance().get(`/connections/fetchbyparentkey`,tempData,isloading);
}
/**
* FetchDefault接口方法
*
......
......@@ -551,6 +551,7 @@ export const viewstate: any = {
'bae77557d2f7a7852b634dc5d5a93435',
'd5bc3dd94496dbc1549773a1647ca64d',
'b5ff54b0672efd3222a44d81f4e7362e',
'44f1244c0a9e78981a151dc7f247e867',
],
},
{
......@@ -676,6 +677,16 @@ export const viewstate: any = {
'49dc1a714631338858cd0441f6c720ca',
],
},
{
viewtag: '44f1244c0a9e78981a151dc7f247e867',
viewmodule: 'Runtime',
viewname: 'ConnectionByParentKey',
viewaction: '',
viewdatachange: false,
refviews: [
'a28a28fe9c5b222ded84039205359d96',
],
},
{
viewtag: '45fdc8ee4d1401d2d625e80177395ddc',
viewmodule: 'Base',
......@@ -1579,6 +1590,15 @@ export const viewstate: any = {
'29bfcd628ab25e297248ff0524d12908',
],
},
{
viewtag: 'a28a28fe9c5b222ded84039205359d96',
viewmodule: 'Runtime',
viewname: 'ConnectionEditView',
viewaction: '',
viewdatachange: false,
refviews: [
],
},
{
viewtag: 'a417dead23bae1ec249aef3b3f313c93',
viewmodule: 'Sales',
......
......@@ -79,6 +79,8 @@ export default class ConnectionUIServiceBase extends UIService {
* @memberof ConnectionUIServiceBase
*/
public initViewMap(){
this.allViewMap.set(':',{viewname:'byparentkey',srfappde:'connections'});
this.allViewMap.set('EDITVIEW:',{viewname:'editview',srfappde:'connections'});
}
/**
......
/**
* Default 部件模型
*
* @export
* @class DefaultModel
*/
export default class DefaultModel {
/**
* 获取数据项集合
*
* @returns {any[]}
* @memberof DefaultModel
*/
public getDataItems(): any[] {
return [
{
name: 'srfwfmemo',
prop: 'srfwfmemo',
dataType: 'TEXT',
},
// 前端新增修改标识,新增为"0",修改为"1"或未设值
{
name: 'srffrontuf',
prop: 'srffrontuf',
dataType: 'TEXT',
},
]
}
}
\ No newline at end of file
<i-form :model="this.data" class='app-search-form' ref='searchform' style="">
<input style="display:none;"/>
<div class="search-button">
<i-button size="small" type="primary" ghost @click="onSearch.apply(_self, arguments)">{{$t('app.searchButton.search')}}</i-button>
<i-button size="small" type="default" ghost @click="onReset.apply(_self, arguments)">{{this.$t('app.searchButton.reset')}}</i-button>
</div>
<div class="form-content">
</div>
</i-form>
\ No newline at end of file
此差异已折叠。
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册