浏览代码

配件采购退货单/辅材采购退货单 交互优化

linwenxin 1 年之前
父节点
当前提交
2cd94f4e22
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/views/auxiliaryFittings/purchasingManagement/mixins/form_tpl.js

+ 2 - 2
src/views/auxiliaryFittings/purchasingManagement/mixins/form_tpl.js

@@ -656,11 +656,11 @@ export default {
                                   if (data) {
                                     websitPurchaseInDetail({ purchaseId: data.purchaseId }).then(res => {
                                       Object.assign(this.formData, {
-                                        items: res.data.items.map(item => ({
+                                        items: res.data.items.map((item,index) => ({
                                           ...item,
                                           retQty: "",
                                           retValue: "",
-                                          isEditRow: false
+                                          isEditRow: !index
                                         }))
                                       })
                                     })