|
@@ -394,7 +394,7 @@ export default {
|
|
arr.splice(1, 0, { title: '产品编码', dataIndex: 'code', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, sorter: true })
|
|
arr.splice(1, 0, { title: '产品编码', dataIndex: 'code', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, sorter: true })
|
|
}
|
|
}
|
|
if (this.$hasPermissions('M_ShowAllCost')) {
|
|
if (this.$hasPermissions('M_ShowAllCost')) {
|
|
- arr.splice(this.isDealerUp ? 7 : 6, 0, { title: '成本价', dataIndex: 'productPrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } })
|
|
|
|
|
|
+ arr.splice(this.isDealerUp ? 7 : 6, 0, { title: '成本价', dataIndex: 'purchasePrice', width: '6%', align: 'right', customRender: function (text) { return ((text || text == 0) ? _this.toThousands(text, 2) : '--') } })
|
|
}
|
|
}
|
|
|
|
|
|
return arr
|
|
return arr
|
|
@@ -504,11 +504,11 @@ export default {
|
|
// 添加
|
|
// 添加
|
|
if (type == 0) {
|
|
if (type == 0) {
|
|
if (this.isDealerUp) {
|
|
if (this.isDealerUp) {
|
|
- if (row.productPrice) {
|
|
|
|
|
|
+ if (row.purchasePrice) {
|
|
params.productSn = row.productSn
|
|
params.productSn = row.productSn
|
|
params.purchaseBillSn = this.detail.purchaseBillSn
|
|
params.purchaseBillSn = this.detail.purchaseBillSn
|
|
params.purchaseBillNo = this.detail.purchaseBillNo
|
|
params.purchaseBillNo = this.detail.purchaseBillNo
|
|
- params.price = row.productPrice
|
|
|
|
|
|
+ params.price = row.purchasePrice
|
|
params.qty = row.qty
|
|
params.qty = row.qty
|
|
params.priceLevel = row.priceLevel
|
|
params.priceLevel = row.priceLevel
|
|
} else {
|
|
} else {
|
|
@@ -516,11 +516,11 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- if (row.productPrice && row.terminalPrice && row.carOwnersPrice) {
|
|
|
|
|
|
+ if (row.purchasePrice && row.terminalPrice && row.carOwnersPrice) {
|
|
params.productSn = row.productSn
|
|
params.productSn = row.productSn
|
|
params.purchaseBillSn = this.detail.purchaseBillSn
|
|
params.purchaseBillSn = this.detail.purchaseBillSn
|
|
params.purchaseBillNo = this.detail.purchaseBillNo
|
|
params.purchaseBillNo = this.detail.purchaseBillNo
|
|
- params.price = row.productPrice
|
|
|
|
|
|
+ params.price = row.purchasePrice
|
|
params.qty = row.qty
|
|
params.qty = row.qty
|
|
params.priceLevel = row.priceLevel
|
|
params.priceLevel = row.priceLevel
|
|
} else {
|
|
} else {
|