|
@@ -392,7 +392,11 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-select
|
|
|
v-model="scope.row.goods"
|
|
|
- @change="changeGoods1"
|
|
|
+ @change="
|
|
|
+ val => {
|
|
|
+ changeGoods1(val, scope.row)
|
|
|
+ }
|
|
|
+ "
|
|
|
value-key="goodsId"
|
|
|
:disabled="formType == 2"
|
|
|
placeholder="请选择"
|
|
@@ -931,14 +935,14 @@ export default {
|
|
|
this.dataList[this.isEdit].goodsCode = e.goodsCode
|
|
|
this.dataList[this.isEdit].qty = e.qty
|
|
|
},
|
|
|
- changeGoods1(e) {
|
|
|
- this.oldList[this.isEdit].goodsId = e.goodsId
|
|
|
- this.oldList[this.isEdit].goodsName = e.goodsName
|
|
|
- this.oldList[this.isEdit].unit = e.goodsStockUnit
|
|
|
- this.oldList[this.isEdit].orderBrand = e.brandRelaName
|
|
|
- this.oldList[this.isEdit].partsName = e.productRelaName
|
|
|
- this.oldList[this.isEdit].partsCode = e.goodsCode
|
|
|
- this.oldList[this.isEdit].qty = e.oldQty
|
|
|
+ changeGoods1(e, row) {
|
|
|
+ row.goodsId = e.goodsId
|
|
|
+ row.goodsName = e.goodsName
|
|
|
+ row.unit = e.goodsStockUnit
|
|
|
+ row.orderBrand = e.brandRelaName
|
|
|
+ row.partsName = e.productRelaName
|
|
|
+ row.partsCode = e.goodsCode
|
|
|
+ row.qty = e.oldQty
|
|
|
},
|
|
|
add() {
|
|
|
getAttachmentList({
|