Browse Source

no message

linwenxin 8 months ago
parent
commit
92e1fcbb5d

+ 19 - 14
src/views/auxiliaryFittings/salesManagement/components/attachmentOldReturnDetail.vue

@@ -941,21 +941,26 @@ export default {
       this.oldList[this.isEdit].qty = e.oldQty
     },
     add() {
-      this.oldList.push({
-        orderId: '',
-        orderBrand: '',
-        name: '',
-        phone: '',
-        partsName: '',
-        unit: '',
-        qty: '',
-        partsCode: '',
-        goodsList: [],
-        goods: {},
-        goodsId: '',
-        goodsName: ''
+      getAttachmentList({
+        pageNum: 1,
+        pageSize: -1,
+        params: [{ param: 'a.websit_id', compare: '=', value: this.formData.websitId }]
+      }).then(res => {
+        this.oldList.push({
+          orderId: '',
+          orderBrand: '',
+          name: '',
+          phone: '',
+          partsName: '',
+          unit: '',
+          qty: '',
+          partsCode: '',
+          goodsList: res.data.records,
+          goods: {},
+          goodsId: '',
+          goodsName: ''
+        })
       })
-      this.getAttachmentList()
     },
     async getAttachmentList(websit_id) {
       const that = this