提交 063fb28c authored 作者: lidongxu's avatar lidongxu

Merge branch 'release' into dev

...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
:label="col.label" :label="col.label"
:key="col.prop" :key="col.prop"
align="center" align="center"
:show-overflow-tooltip="col.showOverflowTooltip"
class-name="column-style" class-name="column-style"
:width="col.width" :width="col.width"
:fixed="operation === '填报模式' && col.fixed"> :fixed="operation === '填报模式' && col.fixed">
......
...@@ -94,6 +94,7 @@ ...@@ -94,6 +94,7 @@
}, },
{ {
label: "经销商-类型", label: "经销商-类型",
showOverflowTooltip: true,
prop: "dealerType", prop: "dealerType",
visible: true, visible: true,
type: 'string', type: 'string',
...@@ -142,10 +143,11 @@ ...@@ -142,10 +143,11 @@
}, },
{ {
label: "门店名称", label: "门店名称",
prop: "storeNameCodeDealerName", // 新增动态列(只在填报列显示) prop: "storeNameCodeDealerName", //d 新增动态列(只在填报列显示)
visible: true, visible: true,
type: 'string', type: 'string',
fill: true, fill: true,
showOverflowTooltip: true,
onlyFill: true,// 仅仅在填报模式下生效 onlyFill: true,// 仅仅在填报模式下生效
fixed: 'left', fixed: 'left',
width: 215, width: 215,
...@@ -173,6 +175,7 @@ ...@@ -173,6 +175,7 @@
{ {
label: "门店名称", label: "门店名称",
prop: "storeName", prop: "storeName",
showOverflowTooltip: true,
visible: true, visible: true,
type: 'string', type: 'string',
fill: false, fill: false,
...@@ -274,6 +277,7 @@ ...@@ -274,6 +277,7 @@
label: "门店分级(销量坎级)", label: "门店分级(销量坎级)",
prop: "storeLevel", prop: "storeLevel",
visible: true, visible: true,
showOverflowTooltip: true,
type: 'string', type: 'string',
fill: false, fill: false,
width: 165 width: 165
...@@ -281,6 +285,7 @@ ...@@ -281,6 +285,7 @@
{ {
label: "门店地址", label: "门店地址",
prop: "storeAddress", prop: "storeAddress",
showOverflowTooltip: true,
visible: true, visible: true,
type: 'string', type: 'string',
fill: false, fill: false,
...@@ -850,7 +855,7 @@ ...@@ -850,7 +855,7 @@
visible: true, visible: true,
type: 'string', type: 'string',
fill: false, fill: false,
width: 140 width: 180
} }
], ],
visible: true visible: true
...@@ -985,6 +990,9 @@ ...@@ -985,6 +990,9 @@
item.openingDate = parseTime(item.openingDate, '{y}-{m}-{d}') item.openingDate = parseTime(item.openingDate, '{y}-{m}-{d}')
// 闭户日期 // 闭户日期
item.closingDate = parseTime(item.closingDate, '{y}-{m}-{d}') item.closingDate = parseTime(item.closingDate, '{y}-{m}-{d}')
// 修改时间
item.updateTime = parseTime(item.updateTime, '{y}-{m}-{d} {h}:{i}:{s}')
// 动态新增列:门店名称+门店编码+经销山名称(填报模式下,合并到一起) // 动态新增列:门店名称+门店编码+经销山名称(填报模式下,合并到一起)
item.storeNameCodeDealerName = item.storeName + '\n(' + item.storeCode + ')' + '\n(' + item.dealerName + ')' item.storeNameCodeDealerName = item.storeName + '\n(' + item.storeCode + ')' + '\n(' + item.dealerName + ')'
}) })
......
...@@ -99,6 +99,7 @@ ...@@ -99,6 +99,7 @@
label: "经销商名称", label: "经销商名称",
prop: "dealerName", prop: "dealerName",
visible: true, visible: true,
showOverflowTooltip: true,
type: "string", type: "string",
fill: true, fill: true,
fixed: 'left', fixed: 'left',
...@@ -108,6 +109,7 @@ ...@@ -108,6 +109,7 @@
label: "经销商类型", label: "经销商类型",
prop: "dealerType", prop: "dealerType",
visible: true, visible: true,
showOverflowTooltip: true,
type: "string", type: "string",
fill: false, fill: false,
width: 115 width: 115
...@@ -227,6 +229,7 @@ ...@@ -227,6 +229,7 @@
{ {
label: "档期计划-促销口味", label: "档期计划-促销口味",
prop: "plannedPromotionFlavor", prop: "plannedPromotionFlavor",
showOverflowTooltip: true,
visible: true, visible: true,
type: "string", type: "string",
fill: false, fill: false,
...@@ -987,7 +990,7 @@ ...@@ -987,7 +990,7 @@
visible: true, visible: true,
type: 'string', type: 'string',
fill: false, fill: false,
width: 140 width: 180
} }
], ],
visible: true visible: true
...@@ -1006,7 +1009,7 @@ ...@@ -1006,7 +1009,7 @@
chooseColumns.value = baseColumns.value chooseColumns.value = baseColumns.value
tableColumns.value = baseColumns.value.flatMap(item => { tableColumns.value = baseColumns.value.flatMap(item => {
if (item.children) { if (item.children) {
return item.children.filter(child => child); return item.children.filter(child => !child.onlyFill);
} }
return []; return [];
}); });
...@@ -1087,6 +1090,8 @@ ...@@ -1087,6 +1090,8 @@
item.actualPromotionEndDate = parseTime(item.actualPromotionEndDate, '{y}-{m}-{d}') item.actualPromotionEndDate = parseTime(item.actualPromotionEndDate, '{y}-{m}-{d}')
item.totalCostRate = item.totalCostRate ? `${(item.totalCostRate).toFixed(2)}%` : '-' item.totalCostRate = item.totalCostRate ? `${(item.totalCostRate).toFixed(2)}%` : '-'
item.adjustmentCostRatio = item.adjustmentCostRatio ? `${(item.adjustmentCostRatio).toFixed(2)}%` : '-' item.adjustmentCostRatio = item.adjustmentCostRatio ? `${(item.adjustmentCostRatio).toFixed(2)}%` : '-'
// 修改时间
item.updateTime = parseTime(item.updateTime, '{y}-{m}-{d} {h}:{i}:{s}')
}) })
tableData.value = res.data.rows tableData.value = res.data.rows
total.value = res.data.total total.value = res.data.total
......
...@@ -90,11 +90,13 @@ ...@@ -90,11 +90,13 @@
"type": "string", "type": "string",
"fill": true, "fill": true,
"width": 200, "width": 200,
showOverflowTooltip: true,
fixed: 'left' fixed: 'left'
}, },
{ {
"label": "经销商类型", "label": "经销商类型",
"prop": "dealerType", "prop": "dealerType",
showOverflowTooltip: true,
"visible": true, "visible": true,
"type": "string", "type": "string",
"fill": false, "fill": false,
...@@ -215,6 +217,7 @@ ...@@ -215,6 +217,7 @@
{ {
"label": "档期计划 - 促销口味", "label": "档期计划 - 促销口味",
"prop": "plannedPromotionFlavor", "prop": "plannedPromotionFlavor",
showOverflowTooltip: true,
"visible": true, "visible": true,
"type": "string", "type": "string",
"fill": false, "fill": false,
...@@ -312,6 +315,7 @@ ...@@ -312,6 +315,7 @@
"prop": "storeCode", "prop": "storeCode",
"visible": true, "visible": true,
"type": "string", "type": "string",
showOverflowTooltip: true,
"fill": false, "fill": false,
"width": 120 "width": 120
}, },
...@@ -320,6 +324,7 @@ ...@@ -320,6 +324,7 @@
"prop": "storeName", "prop": "storeName",
"visible": true, "visible": true,
"type": "string", "type": "string",
showOverflowTooltip: true,
"fill": false, "fill": false,
"width": 170 "width": 170
}, },
...@@ -342,6 +347,7 @@ ...@@ -342,6 +347,7 @@
{ {
"label": "门店地址", "label": "门店地址",
"prop": "storeAddress", "prop": "storeAddress",
showOverflowTooltip: true,
"visible": true, "visible": true,
"type": "string", "type": "string",
"fill": false, "fill": false,
...@@ -647,6 +653,22 @@ ...@@ -647,6 +653,22 @@
"type": "string", "type": "string",
"fill": false, "fill": false,
"width": 160 "width": 160
},
{
label: '修改人',
prop: 'updateBy',
visible: true,
type: 'string',
fill: false,
width: 120
},
{
label: '修改时间',
prop: 'updateTime',
visible: true,
type: 'string',
fill: false,
width: 180
} }
], ],
visible: true visible: true
...@@ -753,6 +775,8 @@ ...@@ -753,6 +775,8 @@
item.plannedPromotionDisplayStartDate = parseTime(item.plannedPromotionDisplayStartDate, '{y}-{m}-{d}') item.plannedPromotionDisplayStartDate = parseTime(item.plannedPromotionDisplayStartDate, '{y}-{m}-{d}')
// 计划 - 档期陈列结束时间 // 计划 - 档期陈列结束时间
item.plannedPromotionDisplayEndDate = parseTime(item.plannedPromotionDisplayEndDate, '{y}-{m}-{d}') item.plannedPromotionDisplayEndDate = parseTime(item.plannedPromotionDisplayEndDate, '{y}-{m}-{d}')
// 修改时间
item.updateTime = parseTime(item.updateTime, '{y}-{m}-{d} {h}:{i}:{s}')
}) })
tableData.value = res.data.rows tableData.value = res.data.rows
total.value = res.data.total total.value = res.data.total
......
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
"label": "经销商名称", "label": "经销商名称",
"prop": "dealerName", "prop": "dealerName",
"visible": true, "visible": true,
showOverflowTooltip: true,
"type": "string", "type": "string",
"fill": true, "fill": true,
"width": 200, "width": 200,
...@@ -95,6 +96,7 @@ ...@@ -95,6 +96,7 @@
"label": "经销商类型", "label": "经销商类型",
"prop": "dealerType", "prop": "dealerType",
"visible": true, "visible": true,
showOverflowTooltip: true,
"type": "string", "type": "string",
"fill": false, "fill": false,
"width": 150 "width": 150
...@@ -208,6 +210,7 @@ ...@@ -208,6 +210,7 @@
"prop": "storeName", "prop": "storeName",
"visible": true, "visible": true,
"type": "string", "type": "string",
showOverflowTooltip: true,
"fill": false, "fill": false,
"width": 180 "width": 180
}, },
...@@ -223,6 +226,7 @@ ...@@ -223,6 +226,7 @@
"label": "门店地址", "label": "门店地址",
"prop": "storeAddress", "prop": "storeAddress",
"visible": true, "visible": true,
showOverflowTooltip: true,
"type": "string", "type": "string",
"fill": false, "fill": false,
"width": 280 "width": 280
...@@ -401,6 +405,22 @@ ...@@ -401,6 +405,22 @@
"type": "string", "type": "string",
"fill": false, "fill": false,
"width": 150 "width": 150
},
{
label: '修改人',
prop: 'updateBy',
visible: true,
type: 'string',
fill: false,
width: 120
},
{
label: '修改时间',
prop: 'updateTime',
visible: true,
type: 'string',
fill: false,
width: 180
} }
], ],
prop: 'snackColumns', prop: 'snackColumns',
...@@ -533,6 +553,8 @@ ...@@ -533,6 +553,8 @@
item.openingDate = parseTime(item.openingDate, '{y}-{m}-{d}') item.openingDate = parseTime(item.openingDate, '{y}-{m}-{d}')
// 闭户日期 // 闭户日期
item.closingDate = parseTime(item.closingDate, '{y}-{m}-{d}') item.closingDate = parseTime(item.closingDate, '{y}-{m}-{d}')
// 修改时间
item.updateTime = parseTime(item.updateTime, '{y}-{m}-{d} {h}:{i}:{s}')
}) })
tableData.value = res.data.rows tableData.value = res.data.rows
total.value = res.data.total total.value = res.data.total
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论