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

xignzi006 发布系统代码,系统代码表处理

上级 e0f46b3f
......@@ -222,8 +222,9 @@ export default {
main_grid: {
columns: {
quotename: "报价名称",
updateman: "更新人",
updatedate: "更新时间",
totalamount: "总金额",
customerid: "潜在客户",
statecode: "状态",
},
uiactions: {
},
......
......@@ -221,8 +221,9 @@ export default {
main_grid: {
columns: {
quotename: '报价名称',
updateman: '更新人',
updatedate: '更新时间',
totalamount: '总金额',
customerid: '潜在客户',
statecode: '状态',
},
uiactions: {
},
......
......@@ -543,28 +543,16 @@ export default class AccountGridViewBase extends GridViewBase {
const deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'editview', parameterName: 'editview' },
];
const _this: any = this;
const openDrawer = (view: any, data: any) => {
let container: Subject<any> = this.$appdrawer.openDrawer(view, tempContext, data);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
if (!xData || !(xData.refresh instanceof Function)) {
return;
}
xData.refresh(result.datas);
});
const openIndexViewTab = (data: any) => {
const _data: any = { w: (new Date().getTime()) };
Object.assign(_data, data);
const routePath = this.$viewTool.buildUpRoutePath(this.$route, tempContext, deResParameters, parameters, args, _data);
this.$router.push(routePath);
}
const view: any = {
viewname: 'account-edit-view',
height: 0,
width: 0,
title: this.$t('entities.account.views.editview.title'),
placement: 'DRAWER_TOP',
};
openDrawer(view, data);
openIndexViewTab(data);
}
......
......@@ -273,32 +273,17 @@ export default class AccountUIServiceBase extends UIService {
let deResParameters: any[] = [];
const parameters: any[] = [
{ pathName: 'accounts', parameterName: 'account' },
{ pathName: 'editview', parameterName: 'editview' },
];
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;
const openIndexViewTab = (data: any) => {
const routePath = actionContext.$viewTool.buildUpRoutePath(actionContext.$route, context, deResParameters, parameters, _args, data);
actionContext.$router.push(routePath);
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;
});
return null;
}
const view: any = {
viewname: 'account-edit-view',
height: 0,
width: 0,
title: actionContext.$t('entities.account.views.editview.title'),
placement: 'DRAWER_TOP',
};
openDrawer(view, data);
openIndexViewTab(data);
}
/**
......
......@@ -23,7 +23,7 @@
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.n_statecode_eq.disabled"
tag='State'
tag='Account__StateCode'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
......
......@@ -70,7 +70,7 @@
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.statecode" tag='State' codelistType='STATIC' ></codelist>
<codelist :value="row.statecode" tag='Activitypointer__StateCode' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
......@@ -1036,7 +1036,7 @@ export default class MainBase extends Vue implements ControlInterface {
},
{
name: 'statecode',
srfkey: 'State',
srfkey: 'Activitypointer__StateCode',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
......
......@@ -42,7 +42,7 @@
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.statuscode.disabled"
tag='Status'
tag='Campaign__StatusCode'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
......
......@@ -52,7 +52,7 @@
<div v-show="detailsModel.statuscode.visible" :style="{}">
<app-form-item name='statuscode' :itemRules="this.rules.statuscode" class='' :caption="$t('entities.campaign.info_head_form.details.statuscode')" uiStyle="DEFAULT" :labelWidth="130" :isShowCaption="true" :error="detailsModel.statuscode.error" :isEmptyCaption="false" labelPos="BOTTOM">
<app-span name='statuscode' :value="data.statuscode" tag='Status' codelistType='STATIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
<app-span name='statuscode' :value="data.statuscode" tag='Campaign__StatusCode' codelistType='STATIC' :data="data" :context="context" :viewparams="viewparams" :localContext ='{ }' :localParam ='{ }' style=""></app-span>
</app-form-item>
</div>
......
......@@ -96,7 +96,7 @@
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.statuscode" tag='Status' codelistType='STATIC' ></codelist>
<codelist :value="row.statuscode" tag='Campaign__StatusCode' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
......@@ -1082,7 +1082,7 @@ export default class MainBase extends Vue implements ControlInterface {
},
{
name: 'statuscode',
srfkey: 'Status',
srfkey: 'Campaign__StatusCode',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
......
......@@ -23,7 +23,7 @@
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.n_statecode_eq.disabled"
tag='State'
tag='Contact__StateCode'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
......
......@@ -17,7 +17,7 @@
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.n_statecode_eq.disabled"
tag='State'
tag='Lead__StateCode'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
......
......@@ -56,7 +56,7 @@
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.statuscode" tag='Status' codelistType='STATIC' ></codelist>
<codelist :value="row.statuscode" tag='Lead__StatusCode' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
......@@ -934,7 +934,7 @@ export default class MainBase extends Vue implements ControlInterface {
let codelistColumns:Array<any> = [
{
name: 'statuscode',
srfkey: 'Status',
srfkey: 'Lead__StatusCode',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
......
......@@ -68,7 +68,7 @@
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.statecode" tag='State' codelistType='STATIC' ></codelist>
<codelist :value="row.statecode" tag='Account__StateCode' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
......@@ -967,7 +967,7 @@ export default class MainBase extends Vue implements ControlInterface {
let codelistColumns:Array<any> = [
{
name: 'statecode',
srfkey: 'State',
srfkey: 'Account__StateCode',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
......
......@@ -80,7 +80,7 @@
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.statecode" tag='State' codelistType='STATIC' ></codelist>
<codelist :value="row.statecode" tag='Contact__StateCode' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
......@@ -951,7 +951,7 @@ export default class InnerBase extends Vue implements ControlInterface {
let codelistColumns:Array<any> = [
{
name: 'statecode',
srfkey: 'State',
srfkey: 'Contact__StateCode',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
......
......@@ -80,7 +80,7 @@
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.statecode" tag='State' codelistType='STATIC' ></codelist>
<codelist :value="row.statecode" tag='Contact__StateCode' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
......@@ -986,7 +986,7 @@ export default class MainBase extends Vue implements ControlInterface {
let codelistColumns:Array<any> = [
{
name: 'statecode',
srfkey: 'State',
srfkey: 'Contact__StateCode',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
......
......@@ -68,7 +68,7 @@
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.statuscode" tag='Status' codelistType='STATIC' ></codelist>
<codelist :value="row.statuscode" tag='Lead__StatusCode' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
......@@ -967,7 +967,7 @@ export default class MainBase extends Vue implements ControlInterface {
let codelistColumns:Array<any> = [
{
name: 'statuscode',
srfkey: 'Status',
srfkey: 'Lead__StatusCode',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
......
......@@ -122,7 +122,7 @@
:localContext ='{ }'
:localParam ='{ }'
:disabled="detailsModel.statecode.disabled"
tag='State'
tag='Quote__StateCode'
codelistType='STATIC'
placeholder='请选择...' style="">
</dropdown-list>
......
......@@ -24,7 +24,7 @@
<el-table-column align="center" type='selection' :width="checkboxColWidth"></el-table-column>
</template>
<template v-if="getColumnState('quotename')">
<el-table-column show-overflow-tooltip :prop="'quotename'" :label="$t('entities.quote.main_grid.columns.quotename')" :width="150" :align="'left'" :sortable="'custom'">
<el-table-column show-overflow-tooltip :prop="'quotename'" :label="$t('entities.quote.main_grid.columns.quotename')" :width="180" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.quote.main_grid.columns.quotename')}}
......@@ -35,29 +35,41 @@
</template>
</el-table-column>
</template>
<template v-if="getColumnState('updateman')">
<el-table-column show-overflow-tooltip :prop="'updateman'" :label="$t('entities.quote.main_grid.columns.updateman')" :width="150" :align="'left'" :sortable="'custom'">
<template v-if="getColumnState('totalamount')">
<el-table-column show-overflow-tooltip :prop="'totalamount'" :label="$t('entities.quote.main_grid.columns.totalamount')" :width="150" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.quote.main_grid.columns.updateman')}}
{{$t('entities.quote.main_grid.columns.totalamount')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.updateman" tag='SysOperator' codelistType='DYNAMIC' ></codelist>
<span>{{row.totalamount}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('customerid')">
<el-table-column show-overflow-tooltip :prop="'customerid'" :label="$t('entities.quote.main_grid.columns.customerid')" :width="180" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.quote.main_grid.columns.customerid')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.customerid}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('updatedate')">
<el-table-column show-overflow-tooltip :prop="'updatedate'" :label="$t('entities.quote.main_grid.columns.updatedate')" :width="150" :align="'left'" :sortable="'custom'">
<template v-if="getColumnState('statecode')">
<el-table-column show-overflow-tooltip :prop="'statecode'" :label="$t('entities.quote.main_grid.columns.statecode')" :width="150" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.quote.main_grid.columns.updatedate')}}
{{$t('entities.quote.main_grid.columns.statecode')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<app-format-data format="YYYY-MM-DD hh:mm:ss" :data="row.updatedate"></app-format-data>
<template >
<codelist :value="row.statecode" tag='Quote__StateCode' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
</template>
......@@ -546,16 +558,23 @@ export default class MainBase extends Vue implements ControlInterface {
util: 'PX'
},
{
name: 'updateman',
label: '更新人',
langtag: 'entities.quote.main_grid.columns.updateman',
name: 'totalamount',
label: '总金额',
langtag: 'entities.quote.main_grid.columns.totalamount',
show: true,
util: 'PX'
},
{
name: 'customerid',
label: '潜在客户',
langtag: 'entities.quote.main_grid.columns.customerid',
show: true,
util: 'PX'
},
{
name: 'updatedate',
label: '更新时间',
langtag: 'entities.quote.main_grid.columns.updatedate',
name: 'statecode',
label: '状态',
langtag: 'entities.quote.main_grid.columns.statecode',
show: true,
util: 'PX'
},
......@@ -947,9 +966,9 @@ export default class MainBase extends Vue implements ControlInterface {
public async formatExcelData(filterVal:any, jsonData:any) {
let codelistColumns:Array<any> = [
{
name: 'updateman',
srfkey: 'SysOperator',
codelistType : 'DYNAMIC',
name: 'statecode',
srfkey: 'Quote__StateCode',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册