浏览代码

no message

linwenxin 9 月之前
父节点
当前提交
e51e9aeaec
共有 1 个文件被更改,包括 13 次插入9 次删除
  1. 13 9
      src/views/auxiliaryFittings/salesManagement/components/attachmentOldReturnDetail.vue

+ 13 - 9
src/views/auxiliaryFittings/salesManagement/components/attachmentOldReturnDetail.vue

@@ -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({