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

xignzi006 发布系统代码

上级 1ad56d76
...@@ -15,7 +15,7 @@ export interface Campaign { ...@@ -15,7 +15,7 @@ export interface Campaign {
expectedresponse?: any; expectedresponse?: any;
/** /**
* 市场活动类型 * 活动类型
* *
* @returns {*} * @returns {*}
* @memberof Campaign * @memberof Campaign
...@@ -223,7 +223,7 @@ export interface Campaign { ...@@ -223,7 +223,7 @@ export interface Campaign {
entityimage?: any; entityimage?: any;
/** /**
* 市场活动代码 * 活动代码
* *
* @returns {*} * @returns {*}
* @memberof Campaign * @memberof Campaign
...@@ -343,7 +343,7 @@ export interface Campaign { ...@@ -343,7 +343,7 @@ export interface Campaign {
overriddencreatedon?: any; overriddencreatedon?: any;
/** /**
* 拟定开始日期 * 拟定日期
* *
* @returns {*} * @returns {*}
* @memberof Campaign * @memberof Campaign
...@@ -391,7 +391,7 @@ export interface Campaign { ...@@ -391,7 +391,7 @@ export interface Campaign {
transactioncurrencyid?: any; transactioncurrencyid?: any;
/** /**
* 货币名称 * 货币
* *
* @returns {*} * @returns {*}
* @memberof Campaign * @memberof Campaign
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
export default { export default {
fields: { fields: {
expectedresponse: '预期响应百分比', expectedresponse: '预期响应百分比',
typecode: '市场活动类型', typecode: '活动类型',
budgetedcost: '预算分配', budgetedcost: '预算分配',
createdate: '建立时间', createdate: '建立时间',
totalactualcost: '市场活动总费用', totalactualcost: '市场活动总费用',
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
proposedend: '拟定结束日期', proposedend: '拟定结束日期',
versionnumber: 'Version Number', versionnumber: 'Version Number',
entityimage: '实体图像', entityimage: '实体图像',
codename: '市场活动代码', codename: '活动代码',
description: '说明', description: '说明',
actualend: '实际结束日期', actualend: '实际结束日期',
expectedrevenue: '估计收入', expectedrevenue: '估计收入',
...@@ -43,13 +43,13 @@ export default { ...@@ -43,13 +43,13 @@ export default {
stageid: 'Stage Id', stageid: 'Stage Id',
statuscode: '状态描述', statuscode: '状态描述',
overriddencreatedon: 'Record Created On', overriddencreatedon: 'Record Created On',
proposedstart: '拟定开始日期', proposedstart: '拟定日期',
totalactualcost_base: '市场活动总费用 (Base)', totalactualcost_base: '市场活动总费用 (Base)',
emailaddress: 'Email Address', emailaddress: 'Email Address',
promotioncodename: '促销代码', promotioncodename: '促销代码',
pricelistid: '价目表', pricelistid: '价目表',
transactioncurrencyid: '货币', transactioncurrencyid: '货币',
currencyname: '货币名称', currencyname: '货币',
}, },
views: { views: {
info_head: { info_head: {
...@@ -158,9 +158,9 @@ export default { ...@@ -158,9 +158,9 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
campaignname: "活动名称", campaignname: "活动名称",
codename: "市场活动代码", codename: "活动代码",
transactioncurrencyname: "货币名称", transactioncurrencyname: "货币",
typecode: "市场活动类型", typecode: "活动类型",
expectedresponse: "预期响应百分比", expectedresponse: "预期响应百分比",
createman: "建立人", createman: "建立人",
createdate: "建立时间", createdate: "建立时间",
...@@ -185,9 +185,9 @@ export default { ...@@ -185,9 +185,9 @@ export default {
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
campaignname: "活动名称", campaignname: "活动名称",
codename: "市场活动代码", codename: "活动代码",
transactioncurrencyname: "货币名称", transactioncurrencyname: "货币",
typecode: "市场活动类型", typecode: "活动类型",
expectedresponse: "预期响应百分比", expectedresponse: "预期响应百分比",
objective: "活动内容", objective: "活动内容",
campaignid: "市场活动", campaignid: "市场活动",
...@@ -207,7 +207,7 @@ export default { ...@@ -207,7 +207,7 @@ export default {
srfuf: "", srfuf: "",
srfdeid: "", srfdeid: "",
srfsourcekey: "", srfsourcekey: "",
proposedstart: "拟定开始日期", proposedstart: "拟定日期",
proposedend: "拟定结束日期", proposedend: "拟定结束日期",
actualstart: "实际开始日期", actualstart: "实际开始日期",
actualend: "实际结束日期", actualend: "实际结束日期",
...@@ -240,8 +240,14 @@ export default { ...@@ -240,8 +240,14 @@ export default {
main_grid: { main_grid: {
columns: { columns: {
campaignname: "活动名称", campaignname: "活动名称",
updateman: "更新人", codename: "活动代码",
updatedate: "更新时间", typecode: "活动类型",
transactioncurrencyname: "货币",
template: "模板",
statuscode: "状态描述",
proposedstart: "拟定日期",
budgetedcost: "预算分配",
createdate: "建立时间",
}, },
uiactions: { uiactions: {
}, },
......
export default { export default {
fields: { fields: {
expectedresponse: '预期响应百分比', expectedresponse: '预期响应百分比',
typecode: '市场活动类型', typecode: '活动类型',
budgetedcost: '预算分配', budgetedcost: '预算分配',
createdate: '建立时间', createdate: '建立时间',
totalactualcost: '市场活动总费用', totalactualcost: '市场活动总费用',
...@@ -27,7 +27,7 @@ export default { ...@@ -27,7 +27,7 @@ export default {
proposedend: '拟定结束日期', proposedend: '拟定结束日期',
versionnumber: 'Version Number', versionnumber: 'Version Number',
entityimage: '实体图像', entityimage: '实体图像',
codename: '市场活动代码', codename: '活动代码',
description: '说明', description: '说明',
actualend: '实际结束日期', actualend: '实际结束日期',
expectedrevenue: '估计收入', expectedrevenue: '估计收入',
...@@ -42,13 +42,13 @@ export default { ...@@ -42,13 +42,13 @@ export default {
stageid: 'Stage Id', stageid: 'Stage Id',
statuscode: '状态描述', statuscode: '状态描述',
overriddencreatedon: 'Record Created On', overriddencreatedon: 'Record Created On',
proposedstart: '拟定开始日期', proposedstart: '拟定日期',
totalactualcost_base: '市场活动总费用 (Base)', totalactualcost_base: '市场活动总费用 (Base)',
emailaddress: 'Email Address', emailaddress: 'Email Address',
promotioncodename: '促销代码', promotioncodename: '促销代码',
pricelistid: '价目表', pricelistid: '价目表',
transactioncurrencyid: '货币', transactioncurrencyid: '货币',
currencyname: '货币名称', currencyname: '货币',
}, },
views: { views: {
info_head: { info_head: {
...@@ -157,9 +157,9 @@ export default { ...@@ -157,9 +157,9 @@ export default {
srfdeid: '', srfdeid: '',
srfsourcekey: '', srfsourcekey: '',
campaignname: '活动名称', campaignname: '活动名称',
codename: '市场活动代码', codename: '活动代码',
transactioncurrencyname: '货币名称', transactioncurrencyname: '货币',
typecode: '市场活动类型', typecode: '活动类型',
expectedresponse: '预期响应百分比', expectedresponse: '预期响应百分比',
createman: '建立人', createman: '建立人',
createdate: '建立时间', createdate: '建立时间',
...@@ -184,9 +184,9 @@ export default { ...@@ -184,9 +184,9 @@ export default {
srfdeid: '', srfdeid: '',
srfsourcekey: '', srfsourcekey: '',
campaignname: '活动名称', campaignname: '活动名称',
codename: '市场活动代码', codename: '活动代码',
transactioncurrencyname: '货币名称', transactioncurrencyname: '货币',
typecode: '市场活动类型', typecode: '活动类型',
expectedresponse: '预期响应百分比', expectedresponse: '预期响应百分比',
objective: '活动内容', objective: '活动内容',
campaignid: '市场活动', campaignid: '市场活动',
...@@ -206,7 +206,7 @@ export default { ...@@ -206,7 +206,7 @@ export default {
srfuf: '', srfuf: '',
srfdeid: '', srfdeid: '',
srfsourcekey: '', srfsourcekey: '',
proposedstart: '拟定开始日期', proposedstart: '拟定日期',
proposedend: '拟定结束日期', proposedend: '拟定结束日期',
actualstart: '实际开始日期', actualstart: '实际开始日期',
actualend: '实际结束日期', actualend: '实际结束日期',
...@@ -239,8 +239,14 @@ export default { ...@@ -239,8 +239,14 @@ export default {
main_grid: { main_grid: {
columns: { columns: {
campaignname: '活动名称', campaignname: '活动名称',
updateman: '更新人', codename: '活动代码',
updatedate: '更新时间', typecode: '活动类型',
transactioncurrencyname: '货币',
template: '模板',
statuscode: '状态描述',
proposedstart: '拟定日期',
budgetedcost: '预算分配',
createdate: '建立时间',
}, },
uiactions: { uiactions: {
}, },
......
...@@ -463,22 +463,22 @@ export default class Info_CampaginBase extends Vue implements ControlInterface { ...@@ -463,22 +463,22 @@ export default class Info_CampaginBase extends Vue implements ControlInterface {
{ required: false, type: 'string', message: '活动名称 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '活动名称 值不能为空', trigger: 'blur' },
], ],
codename: [ codename: [
{ type: 'string', message: '市场活动代码 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '活动代码 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '市场活动代码 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '活动代码 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '市场活动代码 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '活动代码 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '市场活动代码 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '活动代码 值不能为空', trigger: 'blur' },
], ],
transactioncurrencyname: [ transactioncurrencyname: [
{ type: 'string', message: '货币名称 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '货币 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '货币名称 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '货币 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '货币名称 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '货币 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '货币名称 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '货币 值不能为空', trigger: 'blur' },
], ],
typecode: [ typecode: [
{ type: 'string', message: '市场活动类型 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '活动类型 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '市场活动类型 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '活动类型 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '市场活动类型 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '活动类型 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '市场活动类型 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '活动类型 值不能为空', trigger: 'blur' },
], ],
expectedresponse: [ expectedresponse: [
{ type: 'number', message: '预期响应百分比 值必须为数值类型', trigger: 'change' }, { type: 'number', message: '预期响应百分比 值必须为数值类型', trigger: 'change' },
...@@ -529,11 +529,11 @@ export default class Info_CampaginBase extends Vue implements ControlInterface { ...@@ -529,11 +529,11 @@ export default class Info_CampaginBase extends Vue implements ControlInterface {
, ,
campaignname: new FormItemModel({ caption: '活动名称', detailType: 'FORMITEM', name: 'campaignname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) campaignname: new FormItemModel({ caption: '活动名称', detailType: 'FORMITEM', name: 'campaignname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
codename: new FormItemModel({ caption: '市场活动代码', detailType: 'FORMITEM', name: 'codename', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 }) codename: new FormItemModel({ caption: '活动代码', detailType: 'FORMITEM', name: 'codename', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 })
, ,
transactioncurrencyname: new FormItemModel({ caption: '货币名称', detailType: 'FORMITEM', name: 'transactioncurrencyname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) transactioncurrencyname: new FormItemModel({ caption: '货币', detailType: 'FORMITEM', name: 'transactioncurrencyname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
typecode: new FormItemModel({ caption: '市场活动类型', detailType: 'FORMITEM', name: 'typecode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) typecode: new FormItemModel({ caption: '活动类型', detailType: 'FORMITEM', name: 'typecode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
expectedresponse: new FormItemModel({ caption: '预期响应百分比', detailType: 'FORMITEM', name: 'expectedresponse', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) expectedresponse: new FormItemModel({ caption: '预期响应百分比', detailType: 'FORMITEM', name: 'expectedresponse', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
......
...@@ -441,10 +441,10 @@ export default class Info_ScheduleBase extends Vue implements ControlInterface { ...@@ -441,10 +441,10 @@ export default class Info_ScheduleBase extends Vue implements ControlInterface {
{ required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: ' 值不能为空', trigger: 'blur' },
], ],
proposedstart: [ proposedstart: [
{ type: 'string', message: '拟定开始日期 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '拟定日期 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '拟定开始日期 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '拟定日期 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '拟定开始日期 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '拟定日期 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '拟定开始日期 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '拟定日期 值不能为空', trigger: 'blur' },
], ],
proposedend: [ proposedend: [
{ type: 'string', message: '拟定结束日期 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '拟定结束日期 值必须为字符串类型', trigger: 'change' },
...@@ -499,7 +499,7 @@ export default class Info_ScheduleBase extends Vue implements ControlInterface { ...@@ -499,7 +499,7 @@ export default class Info_ScheduleBase extends Vue implements ControlInterface {
, ,
srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) srfsourcekey: new FormItemModel({ caption: '', detailType: 'FORMITEM', name: 'srfsourcekey', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
proposedstart: new FormItemModel({ caption: '拟定开始日期', detailType: 'FORMITEM', name: 'proposedstart', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) proposedstart: new FormItemModel({ caption: '拟定日期', detailType: 'FORMITEM', name: 'proposedstart', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
proposedend: new FormItemModel({ caption: '拟定结束日期', detailType: 'FORMITEM', name: 'proposedend', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) proposedend: new FormItemModel({ caption: '拟定结束日期', detailType: 'FORMITEM', name: 'proposedend', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
......
...@@ -548,22 +548,22 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -548,22 +548,22 @@ export default class MainBase extends Vue implements ControlInterface {
{ required: true, type: 'string', message: '活动名称 值不能为空', trigger: 'blur' }, { required: true, type: 'string', message: '活动名称 值不能为空', trigger: 'blur' },
], ],
codename: [ codename: [
{ type: 'string', message: '市场活动代码 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '活动代码 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '市场活动代码 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '活动代码 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '市场活动代码 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '活动代码 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '市场活动代码 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '活动代码 值不能为空', trigger: 'blur' },
], ],
transactioncurrencyname: [ transactioncurrencyname: [
{ type: 'string', message: '货币名称 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '货币 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '货币名称 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '货币 值必须为字符串类型', trigger: 'blur' },
{ required: true, type: 'string', message: '货币名称 值不能为空', trigger: 'change' }, { required: true, type: 'string', message: '货币 值不能为空', trigger: 'change' },
{ required: true, type: 'string', message: '货币名称 值不能为空', trigger: 'blur' }, { required: true, type: 'string', message: '货币 值不能为空', trigger: 'blur' },
], ],
typecode: [ typecode: [
{ type: 'string', message: '市场活动类型 值必须为字符串类型', trigger: 'change' }, { type: 'string', message: '活动类型 值必须为字符串类型', trigger: 'change' },
{ type: 'string', message: '市场活动类型 值必须为字符串类型', trigger: 'blur' }, { type: 'string', message: '活动类型 值必须为字符串类型', trigger: 'blur' },
{ required: false, type: 'string', message: '市场活动类型 值不能为空', trigger: 'change' }, { required: false, type: 'string', message: '活动类型 值不能为空', trigger: 'change' },
{ required: false, type: 'string', message: '市场活动类型 值不能为空', trigger: 'blur' }, { required: false, type: 'string', message: '活动类型 值不能为空', trigger: 'blur' },
], ],
expectedresponse: [ expectedresponse: [
{ type: 'number', message: '预期响应百分比 值必须为数值类型', trigger: 'change' }, { type: 'number', message: '预期响应百分比 值必须为数值类型', trigger: 'change' },
...@@ -642,11 +642,11 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -642,11 +642,11 @@ export default class MainBase extends Vue implements ControlInterface {
, ,
campaignname: new FormItemModel({ caption: '活动名称', detailType: 'FORMITEM', name: 'campaignname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) campaignname: new FormItemModel({ caption: '活动名称', detailType: 'FORMITEM', name: 'campaignname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
codename: new FormItemModel({ caption: '市场活动代码', detailType: 'FORMITEM', name: 'codename', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 }) codename: new FormItemModel({ caption: '活动代码', detailType: 'FORMITEM', name: 'codename', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 1 })
, ,
transactioncurrencyname: new FormItemModel({ caption: '货币名称', detailType: 'FORMITEM', name: 'transactioncurrencyname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) transactioncurrencyname: new FormItemModel({ caption: '货币', detailType: 'FORMITEM', name: 'transactioncurrencyname', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
typecode: new FormItemModel({ caption: '市场活动类型', detailType: 'FORMITEM', name: 'typecode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) typecode: new FormItemModel({ caption: '活动类型', detailType: 'FORMITEM', name: 'typecode', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
expectedresponse: new FormItemModel({ caption: '预期响应百分比', detailType: 'FORMITEM', name: 'expectedresponse', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 }) expectedresponse: new FormItemModel({ caption: '预期响应百分比', detailType: 'FORMITEM', name: 'expectedresponse', visible: true, isShowCaption: true, form: this, disabled: false, enableCond: 3 })
, ,
......
...@@ -35,29 +35,105 @@ ...@@ -35,29 +35,105 @@
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('updateman')"> <template v-if="getColumnState('codename')">
<el-table-column show-overflow-tooltip :prop="'updateman'" :label="$t('entities.campaign.main_grid.columns.updateman')" :width="150" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'codename'" :label="$t('entities.campaign.main_grid.columns.codename')" :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.campaign.main_grid.columns.updateman')}} {{$t('entities.campaign.main_grid.columns.codename')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.codename}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('typecode')">
<el-table-column show-overflow-tooltip :prop="'typecode'" :label="$t('entities.campaign.main_grid.columns.typecode')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.campaign.main_grid.columns.typecode')}}
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<template > <template >
<codelist :value="row.updateman" tag='SysOperator' codelistType='DYNAMIC' ></codelist> <codelist :value="row.typecode" tag='Campaign__TypeCode' codelistType='STATIC' ></codelist>
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
<template v-if="getColumnState('updatedate')"> <template v-if="getColumnState('transactioncurrencyname')">
<el-table-column show-overflow-tooltip :prop="'updatedate'" :label="$t('entities.campaign.main_grid.columns.updatedate')" :width="150" :align="'left'" :sortable="'custom'"> <el-table-column show-overflow-tooltip :prop="'transactioncurrencyname'" :label="$t('entities.campaign.main_grid.columns.transactioncurrencyname')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.campaign.main_grid.columns.transactioncurrencyname')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<span>{{row.transactioncurrencyname}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('template')">
<el-table-column show-overflow-tooltip :prop="'template'" :label="$t('entities.campaign.main_grid.columns.template')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.campaign.main_grid.columns.template')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.template" tag='YesNo' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('statuscode')">
<el-table-column show-overflow-tooltip :prop="'statuscode'" :label="$t('entities.campaign.main_grid.columns.statuscode')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.campaign.main_grid.columns.statuscode')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<template >
<codelist :value="row.statuscode" tag='Status' codelistType='STATIC' ></codelist>
</template>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('proposedstart')">
<el-table-column show-overflow-tooltip :prop="'proposedstart'" :label="$t('entities.campaign.main_grid.columns.proposedstart')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.campaign.main_grid.columns.proposedstart')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<app-format-data format="YYYY-MM-DD hh:mm:ss" :data="row.proposedstart"></app-format-data>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('budgetedcost')">
<el-table-column show-overflow-tooltip :prop="'budgetedcost'" :label="$t('entities.campaign.main_grid.columns.budgetedcost')" :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.campaign.main_grid.columns.updatedate')}} {{$t('entities.campaign.main_grid.columns.budgetedcost')}}
</span> </span>
</template> </template>
<template v-slot="{row,column,$index}"> <template v-slot="{row,column,$index}">
<app-format-data format="YYYY-MM-DD hh:mm:ss" :data="row.updatedate"></app-format-data> <span>{{row.budgetedcost}}</span>
</template>
</el-table-column>
</template>
<template v-if="getColumnState('createdate')">
<el-table-column show-overflow-tooltip :prop="'createdate'" :label="$t('entities.campaign.main_grid.columns.createdate')" :width="100" :align="'left'" :sortable="'custom'">
<template v-slot:header="{column}">
<span class="column-header ">
{{$t('entities.campaign.main_grid.columns.createdate')}}
</span>
</template>
<template v-slot="{row,column,$index}">
<app-format-data format="YYYY-MM-DD hh:mm:ss" :data="row.createdate"></app-format-data>
</template> </template>
</el-table-column> </el-table-column>
</template> </template>
...@@ -546,16 +622,58 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -546,16 +622,58 @@ export default class MainBase extends Vue implements ControlInterface {
util: 'PX' util: 'PX'
}, },
{ {
name: 'updateman', name: 'codename',
label: '更新人', label: '活动代码',
langtag: 'entities.campaign.main_grid.columns.updateman', langtag: 'entities.campaign.main_grid.columns.codename',
show: true,
util: 'PX'
},
{
name: 'typecode',
label: '活动类型',
langtag: 'entities.campaign.main_grid.columns.typecode',
show: true,
util: 'PX'
},
{
name: 'transactioncurrencyname',
label: '货币',
langtag: 'entities.campaign.main_grid.columns.transactioncurrencyname',
show: true, show: true,
util: 'PX' util: 'PX'
}, },
{ {
name: 'updatedate', name: 'template',
label: '更新时间', label: '模板',
langtag: 'entities.campaign.main_grid.columns.updatedate', langtag: 'entities.campaign.main_grid.columns.template',
show: true,
util: 'PX'
},
{
name: 'statuscode',
label: '状态描述',
langtag: 'entities.campaign.main_grid.columns.statuscode',
show: true,
util: 'PX'
},
{
name: 'proposedstart',
label: '拟定日期',
langtag: 'entities.campaign.main_grid.columns.proposedstart',
show: true,
util: 'PX'
},
{
name: 'budgetedcost',
label: '预算分配',
langtag: 'entities.campaign.main_grid.columns.budgetedcost',
show: true,
util: 'PX'
},
{
name: 'createdate',
label: '建立时间',
langtag: 'entities.campaign.main_grid.columns.createdate',
show: true, show: true,
util: 'PX' util: 'PX'
}, },
...@@ -947,9 +1065,25 @@ export default class MainBase extends Vue implements ControlInterface { ...@@ -947,9 +1065,25 @@ export default class MainBase extends Vue implements ControlInterface {
public async formatExcelData(filterVal:any, jsonData:any) { public async formatExcelData(filterVal:any, jsonData:any) {
let codelistColumns:Array<any> = [ let codelistColumns:Array<any> = [
{ {
name: 'updateman', name: 'typecode',
srfkey: 'SysOperator', srfkey: 'Campaign__TypeCode',
codelistType : 'DYNAMIC', codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
},
{
name: 'template',
srfkey: 'YesNo',
codelistType : 'STATIC',
renderMode: 'other',
textSeparator: '、',
valueSeparator: ',',
},
{
name: 'statuscode',
srfkey: 'Status',
codelistType : 'STATIC',
renderMode: 'other', renderMode: 'other',
textSeparator: '、', textSeparator: '、',
valueSeparator: ',', valueSeparator: ',',
......
...@@ -26,20 +26,35 @@ export default class MainModel { ...@@ -26,20 +26,35 @@ export default class MainModel {
] ]
}else{ }else{
return [ return [
{
name: 'template',
prop: 'template',
dataType: 'YESNO',
},
{ {
name: 'campaignname', name: 'campaignname',
prop: 'campaignname', prop: 'campaignname',
dataType: 'TEXT', dataType: 'TEXT',
}, },
{ {
name: 'pricelistid', name: 'typecode',
prop: 'pricelistid', prop: 'typecode',
dataType: 'PICKUP', dataType: 'SSCODELIST',
}, },
{ {
name: 'updateman', name: 'transactioncurrencyname',
prop: 'updateman', prop: 'currencyname',
dataType: 'TEXT', dataType: 'PICKUPTEXT',
},
{
name: 'createdate',
prop: 'createdate',
dataType: 'DATETIME',
},
{
name: 'budgetedcost',
prop: 'budgetedcost',
dataType: 'BIGDECIMAL',
}, },
{ {
name: 'transactioncurrencyid', name: 'transactioncurrencyid',
...@@ -47,8 +62,8 @@ export default class MainModel { ...@@ -47,8 +62,8 @@ export default class MainModel {
dataType: 'PICKUP', dataType: 'PICKUP',
}, },
{ {
name: 'updatedate', name: 'proposedstart',
prop: 'updatedate', prop: 'proposedstart',
dataType: 'DATETIME', dataType: 'DATETIME',
}, },
{ {
...@@ -57,15 +72,30 @@ export default class MainModel { ...@@ -57,15 +72,30 @@ export default class MainModel {
dataType: 'TEXT', dataType: 'TEXT',
}, },
{ {
name: 'srfdataaccaction', name: 'srfkey',
prop: 'campaignid', prop: 'campaignid',
dataType: 'GUID', dataType: 'GUID',
}, },
{ {
name: 'srfkey', name: 'srfdataaccaction',
prop: 'campaignid', prop: 'campaignid',
dataType: 'GUID', dataType: 'GUID',
}, },
{
name: 'codename',
prop: 'codename',
dataType: 'TEXT',
},
{
name: 'pricelistid',
prop: 'pricelistid',
dataType: 'PICKUP',
},
{
name: 'statuscode',
prop: 'statuscode',
dataType: 'NSCODELIST',
},
{ {
name: 'campaign', name: 'campaign',
prop: 'campaignid', prop: 'campaignid',
......
...@@ -47,7 +47,7 @@ public class Campaign extends EntityMP implements Serializable { ...@@ -47,7 +47,7 @@ public class Campaign extends EntityMP implements Serializable {
@JsonProperty("expectedresponse") @JsonProperty("expectedresponse")
private Integer expectedresponse; private Integer expectedresponse;
/** /**
* 市场活动类型 * 活动类型
*/ */
@TableField(value = "typecode") @TableField(value = "typecode")
@JSONField(name = "typecode") @JSONField(name = "typecode")
...@@ -241,7 +241,7 @@ public class Campaign extends EntityMP implements Serializable { ...@@ -241,7 +241,7 @@ public class Campaign extends EntityMP implements Serializable {
@JsonProperty("entityimage") @JsonProperty("entityimage")
private String entityimage; private String entityimage;
/** /**
* 市场活动代码 * 活动代码
*/ */
@TableField(value = "codename") @TableField(value = "codename")
@JSONField(name = "codename") @JSONField(name = "codename")
...@@ -351,7 +351,7 @@ public class Campaign extends EntityMP implements Serializable { ...@@ -351,7 +351,7 @@ public class Campaign extends EntityMP implements Serializable {
@JsonProperty("overriddencreatedon") @JsonProperty("overriddencreatedon")
private Timestamp overriddencreatedon; private Timestamp overriddencreatedon;
/** /**
* 拟定开始日期 * 拟定日期
*/ */
@TableField(value = "proposedstart") @TableField(value = "proposedstart")
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8") @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
...@@ -395,7 +395,7 @@ public class Campaign extends EntityMP implements Serializable { ...@@ -395,7 +395,7 @@ public class Campaign extends EntityMP implements Serializable {
@JsonProperty("transactioncurrencyid") @JsonProperty("transactioncurrencyid")
private String transactioncurrencyid; private String transactioncurrencyid;
/** /**
* 货币名称 * 货币
*/ */
@DEField(name = "transactioncurrencyname") @DEField(name = "transactioncurrencyname")
@TableField(value = "transactioncurrencyname") @TableField(value = "transactioncurrencyname")
...@@ -430,7 +430,7 @@ public class Campaign extends EntityMP implements Serializable { ...@@ -430,7 +430,7 @@ public class Campaign extends EntityMP implements Serializable {
} }
/** /**
* 设置 [市场活动类型] * 设置 [活动类型]
*/ */
public void setTypecode(String typecode){ public void setTypecode(String typecode){
this.typecode = typecode ; this.typecode = typecode ;
...@@ -616,7 +616,7 @@ public class Campaign extends EntityMP implements Serializable { ...@@ -616,7 +616,7 @@ public class Campaign extends EntityMP implements Serializable {
} }
/** /**
* 设置 [市场活动代码] * 设置 [活动代码]
*/ */
public void setCodename(String codename){ public void setCodename(String codename){
this.codename = codename ; this.codename = codename ;
...@@ -758,7 +758,7 @@ public class Campaign extends EntityMP implements Serializable { ...@@ -758,7 +758,7 @@ public class Campaign extends EntityMP implements Serializable {
return sdf.format(overriddencreatedon); return sdf.format(overriddencreatedon);
} }
/** /**
* 设置 [拟定开始日期] * 设置 [拟定日期]
*/ */
public void setProposedstart(Timestamp proposedstart){ public void setProposedstart(Timestamp proposedstart){
this.proposedstart = proposedstart ; this.proposedstart = proposedstart ;
...@@ -766,7 +766,7 @@ public class Campaign extends EntityMP implements Serializable { ...@@ -766,7 +766,7 @@ public class Campaign extends EntityMP implements Serializable {
} }
/** /**
* 格式化日期 [拟定开始日期] * 格式化日期 [拟定日期]
*/ */
public String formatProposedstart(){ public String formatProposedstart(){
if (this.proposedstart == null) { if (this.proposedstart == null) {
...@@ -816,7 +816,7 @@ public class Campaign extends EntityMP implements Serializable { ...@@ -816,7 +816,7 @@ public class Campaign extends EntityMP implements Serializable {
} }
/** /**
* 设置 [货币名称] * 设置 [货币]
*/ */
public void setCurrencyname(String currencyname){ public void setCurrencyname(String currencyname){
this.currencyname = currencyname ; this.currencyname = currencyname ;
......
...@@ -27,7 +27,7 @@ import cn.ibizlab.businesscentral.core.marketing.domain.Campaign; ...@@ -27,7 +27,7 @@ import cn.ibizlab.businesscentral.core.marketing.domain.Campaign;
@Data @Data
public class CampaignSearchContext extends QueryWrapperContext<Campaign> { public class CampaignSearchContext extends QueryWrapperContext<Campaign> {
private String n_typecode_eq;//[市场活动类型] private String n_typecode_eq;//[活动类型]
public void setN_typecode_eq(String n_typecode_eq) { public void setN_typecode_eq(String n_typecode_eq) {
this.n_typecode_eq = n_typecode_eq; this.n_typecode_eq = n_typecode_eq;
if(!ObjectUtils.isEmpty(this.n_typecode_eq)){ if(!ObjectUtils.isEmpty(this.n_typecode_eq)){
...@@ -69,14 +69,14 @@ public class CampaignSearchContext extends QueryWrapperContext<Campaign> { ...@@ -69,14 +69,14 @@ public class CampaignSearchContext extends QueryWrapperContext<Campaign> {
this.getSearchCond().eq("transactioncurrencyid", n_transactioncurrencyid_eq); this.getSearchCond().eq("transactioncurrencyid", n_transactioncurrencyid_eq);
} }
} }
private String n_transactioncurrencyname_eq;//[货币名称] private String n_transactioncurrencyname_eq;//[货币]
public void setN_transactioncurrencyname_eq(String n_transactioncurrencyname_eq) { public void setN_transactioncurrencyname_eq(String n_transactioncurrencyname_eq) {
this.n_transactioncurrencyname_eq = n_transactioncurrencyname_eq; this.n_transactioncurrencyname_eq = n_transactioncurrencyname_eq;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_eq)){ if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_eq)){
this.getSearchCond().eq("transactioncurrencyname", n_transactioncurrencyname_eq); this.getSearchCond().eq("transactioncurrencyname", n_transactioncurrencyname_eq);
} }
} }
private String n_transactioncurrencyname_like;//[货币名称] private String n_transactioncurrencyname_like;//[货币]
public void setN_transactioncurrencyname_like(String n_transactioncurrencyname_like) { public void setN_transactioncurrencyname_like(String n_transactioncurrencyname_like) {
this.n_transactioncurrencyname_like = n_transactioncurrencyname_like; this.n_transactioncurrencyname_like = n_transactioncurrencyname_like;
if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_like)){ if(!ObjectUtils.isEmpty(this.n_transactioncurrencyname_like)){
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册