|
@@ -1439,6 +1439,7 @@ export default {
|
|
|
this.goodsList[index].outNum = ''
|
|
|
this.goodsList[index].partsNum = ''
|
|
|
this.goodsList[index].stockQty = ''
|
|
|
+ this.goodsList[index].costPrice = ''
|
|
|
this.$message.error('该规格型号已存在')
|
|
|
return
|
|
|
} else {
|
|
@@ -1457,6 +1458,7 @@ export default {
|
|
|
this.goodsList[index].outNum = item.outQty
|
|
|
this.goodsList[index].partsNum = item.partsQty
|
|
|
this.goodsList[index].stockQty = item.stockQty
|
|
|
+ this.goodsList[index].costPrice = item.costAmount
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -1485,13 +1487,13 @@ export default {
|
|
|
changeGoodSpec(index, row) {
|
|
|
let list = this.goodsSelectList.find(o => o.goodsId == row.goodsId).goodsSpecs
|
|
|
let item = list.find(o => o.goodsSpecId == row.goodsSpecId)
|
|
|
-
|
|
|
this.goodsList[index].mainId = item.mainId
|
|
|
this.goodsList[index].mainName = item.mainName
|
|
|
this.goodsList[index].smallId = item.smallId
|
|
|
this.goodsList[index].smallName = item.smallName
|
|
|
this.goodsList[index].unit = item.unit
|
|
|
this.goodsList[index].stockQty = item.goodsMaterialStock
|
|
|
+ this.goodsList[index].costPrice = item.costAmount
|
|
|
},
|
|
|
|
|
|
creatCode(data, orderId) {
|