tangning 10 months ago
parent
commit
63598070a2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/views/work/quoteModel.vue

+ 4 - 0
src/views/work/quoteModel.vue

@@ -83,6 +83,7 @@
         priceLists: [],
         priceListsPrice: {},
         manMadeList: [],
+        valueObj:{},
       });
       const loading = ref(false);
       const { createMessage, createConfirm } = useMessage();
@@ -389,12 +390,14 @@
             valueObj[`deduction${n.value}`] = ele.name;
             valueObj[`device_${n.value}`] = Number(ele.price);
             valueObj[`remark${n.value}`] = ele.remark;
+            valueObj[`priceListId${n.value}`] = ele.priceListId;
             count = count + Number(ele.price);
             n.value++;
           }
         });
         fileFlow.priceCount = count.toFixed(2);
         valueObj.manMade = manMade;
+        fileFlow.valueObj = valueObj
         console.log('priceSchema', priceSchema);
         priceSchema.map((item) => {
           appendSchemaByField(item, '');
@@ -555,6 +558,7 @@
                     remark: params[`remark${index}`],
                     price: params[`device_${index}`],
                     type: params[`deduction${index}`] ? 3 : 2,
+                    priceListId: fileFlow.valueObj[`priceListId${index}`]
                   });
                 }
               }