|
@@ -90,10 +90,6 @@ export default {
|
|
|
default: () => {
|
|
|
return {}
|
|
|
}
|
|
|
- },
|
|
|
- goodsFlag: {
|
|
|
- type: [String, Number],
|
|
|
- default: '0'
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
@@ -101,7 +97,8 @@ export default {
|
|
|
isShow: this.openModal, // 是否打开弹框
|
|
|
loadData: [],
|
|
|
unLoadData: [],
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
+ goodsFlag: ''
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -112,7 +109,7 @@ export default {
|
|
|
{ title: '产品编码', dataIndex: 'productCode', width: '20%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '产品名称', dataIndex: 'product.name', width: '70%', align: 'center', customRender: function (text) { return text || '--' } }
|
|
|
]
|
|
|
- if (_this.goodsFlag == '1') {
|
|
|
+ if (_this.goodsFlag == '0') {
|
|
|
const arr = [
|
|
|
{ title: '省价特价', dataIndex: 'provinceDiscountPriceText', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
{ title: '市价特价', dataIndex: 'cityDiscountPriceText', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
@@ -130,7 +127,7 @@ export default {
|
|
|
{ title: '产品名称', dataIndex: 'product.name', width: '60%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
{ title: '错误说明', scopedSlots: { customRender: 'errorMsg' }, width: '20%', align: 'center' }
|
|
|
]
|
|
|
- if (_this.goodsFlag == '1') {
|
|
|
+ if (_this.goodsFlag == '0') {
|
|
|
const arr = [
|
|
|
{ title: '省价特价', dataIndex: 'provinceDiscountPriceText', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
{ title: '市价特价', dataIndex: 'cityDiscountPriceText', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
@@ -142,6 +139,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ setFlag (val) {
|
|
|
+ this.goodsFlag = val
|
|
|
+ },
|
|
|
getData () {
|
|
|
const paramsData = JSON.parse(JSON.stringify(this.paramsData))
|
|
|
this.loadData = paramsData.rightList || []
|