|
@@ -144,7 +144,7 @@ export default {
|
|
|
},
|
|
|
width: {
|
|
|
type: [String, Number],
|
|
|
- default: '70%'
|
|
|
+ default: '80%'
|
|
|
},
|
|
|
zIndex: {
|
|
|
type: Number,
|
|
@@ -216,12 +216,12 @@ export default {
|
|
|
return this.queryParam.code || this.queryParam.name || this.queryParam.productBrandSn || this.queryParam.productTypeSn1
|
|
|
},
|
|
|
tableWidth () {
|
|
|
- let w = 1260
|
|
|
+ let w = 1410
|
|
|
if (this.isDealerUp) {
|
|
|
- w = 1360
|
|
|
+ w = 1510
|
|
|
}
|
|
|
if (this.$hasPermissions('M_ShowAllCost')) {
|
|
|
- w = this.isDealerUp ? 1360 : 1260
|
|
|
+ w = this.isDealerUp ? 1510 : 1410
|
|
|
}
|
|
|
return w
|
|
|
},
|
|
@@ -230,7 +230,7 @@ export default {
|
|
|
const arr = [
|
|
|
{ title: '产品编码', scopedSlots: { customRender: 'code' }, width: '150px', align: 'center', fixed: 'left' },
|
|
|
{ title: '产品名称', dataIndex: 'name', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
|
- // { title: '原厂编码', dataIndex: 'origCode', width: '14%', align: 'center', customRender: function (text) { return text && text != ' ' ? text : '--' } },
|
|
|
+ { title: '原厂编码', dataIndex: 'origCode', width: '150px', align: 'center', customRender: function (text) { return text && text != ' ' ? text : '--' } },
|
|
|
{ title: '在途数', dataIndex: 'transitQty', width: '80px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '可用库存', dataIndex: 'currentStockQty', width: '80px', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
|
|
|
{ title: '产品图片', scopedSlots: { customRender: 'imageUrl' }, width: '80px', align: 'center' },
|
|
@@ -246,7 +246,7 @@ export default {
|
|
|
arr.splice(2, 0, { title: '产品来源', dataIndex: 'sysFlagDictValue', width: '100px', align: 'center', customRender: function (text) { return text || '--' } })
|
|
|
}
|
|
|
if (this.$hasPermissions('M_ShowAllCost')) {
|
|
|
- arr.splice(this.isDealerUp ? 3 : 2, 0, { title: '成本价', dataIndex: 'purchasePrice', width: '100px', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } })
|
|
|
+ arr.splice(this.isDealerUp ? 4 : 3, 0, { title: '成本价', dataIndex: 'purchasePrice', width: '100px', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } })
|
|
|
}
|
|
|
|
|
|
return arr
|