|
@@ -127,6 +127,10 @@ export default {
|
|
|
return []
|
|
|
}
|
|
|
},
|
|
|
+ itemSn: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
+ },
|
|
|
zIndex: { // 层级
|
|
|
type: [String, Number],
|
|
|
default: 1000
|
|
@@ -158,16 +162,16 @@ export default {
|
|
|
loading: false, // 表格加载中
|
|
|
columns: [
|
|
|
{ title: '序号', dataIndex: 'no', width: 60, align: 'center' },
|
|
|
- { title: '产品编码', dataIndex: 'code', align: 'center' },
|
|
|
- { title: '产品名称', dataIndex: 'name', align: 'center', width: '18%', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品编码', dataIndex: 'code', align: 'center', width: '12%' },
|
|
|
+ { title: '产品名称', dataIndex: 'name', align: 'left', width: '18%', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
{ title: '原厂编码', dataIndex: 'origCode', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
- { title: '终端价', dataIndex: 'terminalPrice', width: '10%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
+ { title: '终端价', dataIndex: 'terminalPrice', 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: 'specialPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text) : '--') } },
|
|
|
- { title: '品牌', dataIndex: 'productBrandName', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
- { title: '产品分类', scopedSlots: { customRender: 'productType' }, width: '10%', align: 'center' },
|
|
|
- { title: '包装数', scopedSlots: { customRender: 'productQty' }, align: 'center' },
|
|
|
- { title: '单位', dataIndex: 'unit', align: 'center', ellipsis: true, customRender: function (text) { return text || '--' } }
|
|
|
+ { title: '品牌', dataIndex: 'productBrandName', align: 'center', width: '8%', ellipsis: true, customRender: function (text) { return text || '--' } },
|
|
|
+ { title: '产品分类', scopedSlots: { customRender: 'productType' }, align: 'center' },
|
|
|
+ { title: '包装数', scopedSlots: { customRender: 'productQty' }, width: '6%', align: 'center' },
|
|
|
+ { title: '单位', dataIndex: 'unit', align: 'center', width: '6%', ellipsis: true, customRender: function (text) { return text || '--' } }
|
|
|
],
|
|
|
// 加载数据方法 必须为 Promise 对象
|
|
|
loadData: parameter => {
|
|
@@ -176,6 +180,7 @@ export default {
|
|
|
const params = Object.assign(parameter, this.queryParam)
|
|
|
params.hideProductSnList = this.chooseData
|
|
|
params.productTypeSnList = this.chooseType
|
|
|
+ params.promoActiveSn = this.itemSn
|
|
|
return queryWaitingProductPage(params).then(res => {
|
|
|
let data
|
|
|
if (res.status == 200) {
|