|
@@ -86,6 +86,21 @@
|
|
|
自定义车主价
|
|
|
</a-checkbox>
|
|
|
</a-menu-item>
|
|
|
+ <a-menu-item>
|
|
|
+ <a-checkbox v-model="isCityPrice">
|
|
|
+ 市级价
|
|
|
+ </a-checkbox>
|
|
|
+ </a-menu-item>
|
|
|
+ <a-menu-item>
|
|
|
+ <a-checkbox v-model="isZdPrice">
|
|
|
+ 终端价
|
|
|
+ </a-checkbox>
|
|
|
+ </a-menu-item>
|
|
|
+ <a-menu-item>
|
|
|
+ <a-checkbox v-model="isCzPrice">
|
|
|
+ 车主价
|
|
|
+ </a-checkbox>
|
|
|
+ </a-menu-item>
|
|
|
</a-menu>
|
|
|
</a-dropdown>
|
|
|
<a-divider type="vertical" style="margin:5px 0;"/>
|
|
@@ -199,8 +214,11 @@ export default {
|
|
|
stockEmptyFlag: undefined
|
|
|
},
|
|
|
openGuideModal: false,
|
|
|
- isTerminalPrice: false,
|
|
|
- isCarOwnersPrice: false,
|
|
|
+ isTerminalPrice: true,
|
|
|
+ isCarOwnersPrice: true,
|
|
|
+ isCityPrice: true,
|
|
|
+ isZdPrice: true,
|
|
|
+ isCzPrice: true,
|
|
|
openEditPriceModal: false, // 自定义报价弹窗
|
|
|
iconShowFlag: false, // 列表配置图标显示
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
@@ -241,8 +259,8 @@ export default {
|
|
|
{ title: '原厂编码', dataIndex: 'origCode', width: '12%', align: 'center', customRender: function (text) { return (!text || text == ' ') ? '--' : text } }
|
|
|
]
|
|
|
const cArr = [
|
|
|
- { title: '终端价', dataIndex: 'terminalPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
- { title: '车主价', dataIndex: 'carOwnersPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
+ // { title: '终端价', dataIndex: 'terminalPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
+ // { title: '车主价', dataIndex: 'carOwnersPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
// { title: '自定义终端价', dataIndex: 'price1', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
// { title: '自定义车主价', dataIndex: 'price2', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
{ title: '可用库存', dataIndex: 'currentStockQty', width: '7%', align: 'center', customRender: function (text) {return text || text == 0 ? text : '--'}},
|
|
@@ -253,9 +271,13 @@ export default {
|
|
|
if (_this.currentDealerInfo.dealerLevel && _this.currentDealerInfo.dealerLevel == 'PROVINCE') { // 省级
|
|
|
arr.push(
|
|
|
{ title: '省级价', dataIndex: 'provincePrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
- { title: '市级价', dataIndex: 'cityPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
|
|
|
)
|
|
|
- } else if (_this.currentDealerInfo.dealerLevel && _this.currentDealerInfo.dealerLevel == 'CITY') { // 市级
|
|
|
+ if(_this.isCityPrice){
|
|
|
+ arr.push(
|
|
|
+ { title: '市级价', dataIndex: 'cityPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
|
|
|
+ )
|
|
|
+ }
|
|
|
+ } else if (_this.currentDealerInfo.dealerLevel && _this.currentDealerInfo.dealerLevel == 'CITY' && _this.isCityPrice) { // 市级
|
|
|
arr.push(
|
|
|
{ title: '市级价', dataIndex: 'cityPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
|
|
|
)
|
|
@@ -263,12 +285,18 @@ export default {
|
|
|
if (_this.currentDealerInfo.isShowSpecialPrice && _this.currentDealerInfo.isShowSpecialPrice == '1') { // 是否展示特约价
|
|
|
arr.push({ title: '特约价', dataIndex: 'specialPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
+
|
|
|
+ if (_this.isZdPrice) {
|
|
|
+ arr.push({ title: '终端价', dataIndex: 'terminalPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ }
|
|
|
if (_this.isTerminalPrice) {
|
|
|
- cArr.splice(1, 0, { title: '自定义终端价', dataIndex: 'dealerProductPrice.terminalPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ arr.push({ title: '自定义终端价', dataIndex: 'dealerProductPrice.terminalPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ }
|
|
|
+ if (_this.isCzPrice) {
|
|
|
+ arr.push({ title: '车主价', dataIndex: 'carOwnersPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
if (_this.isCarOwnersPrice) {
|
|
|
- const pos = _this.isTerminalPrice ? 3 : 2
|
|
|
- cArr.splice(pos, 0, { title: '自定义车主价', dataIndex: 'dealerProductPrice.carOwnersPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ arr.push({ title: '自定义车主价', dataIndex: 'dealerProductPrice.carOwnersPrice', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
arr = [...arr, ...cArr]
|
|
|
return arr
|