|
@@ -63,6 +63,14 @@
|
|
|
</a-col>
|
|
|
<a-col class="gutter-row" :span="12">
|
|
|
<div class="setTableList">
|
|
|
+ <a-checkbox v-modal="isTerminalPrice" @change="changeTerminalPrice">
|
|
|
+ 自定义终端价
|
|
|
+ </a-checkbox>
|
|
|
+ <a-checkbox v-modal="isCarOwnersPrice" @change="changeCarOwnersPrice">
|
|
|
+ 自定义车主价
|
|
|
+ </a-checkbox>
|
|
|
+ </div>
|
|
|
+ <!-- <div class="setTableList">
|
|
|
<span @click="iconShowFlag=!iconShowFlag">列表显示配置</span>
|
|
|
<a-icon :type="iconShowFlag?'up':'down'" :style="{ color: '#d5d5d5' }" @click="iconShowFlag=!iconShowFlag"/>
|
|
|
<div class="setTableList-box" v-show="iconShowFlag">
|
|
@@ -92,7 +100,7 @@
|
|
|
</a-checkbox></div>
|
|
|
</a-checkbox-group>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</div>
|
|
@@ -186,13 +194,14 @@ export default {
|
|
|
onlineFalg: '',
|
|
|
enabledFlag: '1'
|
|
|
},
|
|
|
+ isTerminalPrice: false,
|
|
|
+ isCarOwnersPrice: false,
|
|
|
openEditPriceModal: false, // 自定义报价弹窗
|
|
|
iconShowFlag: false, // 列表配置图标显示
|
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
|
exportLoading: false, // 导出loading
|
|
|
dateFormat: 'YYYY-MM-DD',
|
|
|
columns: [],
|
|
|
- chooseShowList: ['A', 'B', 'C', 'D', 'E'],
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
|
this.disabled = true
|
|
@@ -240,9 +249,6 @@ export default {
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- onChangeList (checkedValues) {
|
|
|
- this.chooseShowList = checkedValues
|
|
|
- },
|
|
|
// 详情
|
|
|
handleDetail (row) {
|
|
|
this.$router.push({ name: 'viewProduct', params: { sn: row.productSn } })
|
|
@@ -278,10 +284,10 @@ 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: '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: '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: '状态', scopedSlots: { customRender: 'enabledFlag' }, width: '7%', align: 'center' },
|
|
|
{ title: '产品图片', scopedSlots: { customRender: 'imageUrl' }, width: '6%', align: 'center' },
|
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '12%', align: 'center' }
|
|
@@ -291,20 +297,36 @@ export default {
|
|
|
if (res.data.dealerLevel && res.data.dealerLevel == 'PROVINCE') { // 省级
|
|
|
this.columns.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) : '--') } }
|
|
|
+ { title: '市级价', dataIndex: 'cityPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } }
|
|
|
)
|
|
|
} else if (res.data.dealerLevel && res.data.dealerLevel == 'CITY') { // 市级
|
|
|
this.columns.push(
|
|
|
- { title: '市级建议价', dataIndex: 'cityPrice', 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) : '--') } }
|
|
|
)
|
|
|
}
|
|
|
if (res.data.isShowSpecialPrice && res.data.isShowSpecialPrice == '1') { // 是否展示特约价
|
|
|
- this.columns.push({ title: '特约建议价', dataIndex: 'specialPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ this.columns.push({ title: '特约价', dataIndex: 'specialPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ }
|
|
|
+ if (_this.terminalPrice) {
|
|
|
+ cArr.splice(1, 0, { title: '自定义终端价', dataIndex: 'price1', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
+ }
|
|
|
+ if (_this.isCarOwnersPrice) {
|
|
|
+ const pos = _this.terminalPrice ? 3 : 2
|
|
|
+ cArr.splice(pos, 0, { title: '自定义车主价', dataIndex: 'price2', width: '8%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } })
|
|
|
}
|
|
|
this.columns = [...this.columns, ...cArr]
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ // 显示自定义终端价
|
|
|
+ changeTerminalPrice (e) {
|
|
|
+ this.terminalPrice = e.target.checked
|
|
|
+ this.getColumns()
|
|
|
+ },
|
|
|
+ changeCarOwnersPrice (e) {
|
|
|
+ this.isCarOwnersPrice = e.target.checked
|
|
|
+ this.getColumns()
|
|
|
+ },
|
|
|
filterOption (input, option) {
|
|
|
return (
|
|
|
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
@@ -400,6 +422,7 @@ export default {
|
|
|
'$store.state.app.winHeight' (newValue, oldValue) { // 窗口变更时,需同时更改表格高度
|
|
|
this.setTableH()
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
mounted () {
|
|
|
if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
|
|
@@ -422,7 +445,7 @@ export default {
|
|
|
<style lang="less" scoped>
|
|
|
.setTableList{
|
|
|
text-align: right;
|
|
|
- position: relative;
|
|
|
+ // position: relative;
|
|
|
span{
|
|
|
margin-right: 10px;
|
|
|
color:#56a2fb;
|