Browse Source

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

linwenxin 1 year ago
parent
commit
2cd94f4e22

+ 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
                                         }))
                                       })
                                     })