From 204ce09a62e0a0fd9f3eb62b64f3345627fc7a5c Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期一, 25 三月 2024 16:45:11 +0800
Subject: [PATCH] 端口号配置

---
 src/views/orderManageModule/orderManage/components/ApplyMaterialsDialog.vue |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/src/views/orderManageModule/orderManage/components/ApplyMaterialsDialog.vue b/src/views/orderManageModule/orderManage/components/ApplyMaterialsDialog.vue
index f8681db..0b8f7d2 100644
--- a/src/views/orderManageModule/orderManage/components/ApplyMaterialsDialog.vue
+++ b/src/views/orderManageModule/orderManage/components/ApplyMaterialsDialog.vue
@@ -67,7 +67,7 @@
                 <el-table-column prop="materialName" show-overflow-tooltip label="浜у搧鍚嶇О"> </el-table-column>
               </template>
               <template slot="tableButton">
-                <el-table-column prop="amount" label="鏁伴噺" min-width="110">
+                <el-table-column prop="amount" label="鏁伴噺">
                   <template slot-scope="scope">
                     <el-input
                       style="width: 100%"
@@ -123,7 +123,7 @@
 </template>
 
 <script>
-// import { saveMaterialApply } from "@/api/outsourceEnterpriseManage/index"
+import { saveMaterialApply } from "@/api/orderManageModule/orderManage"
 import SelectCommonDialog from "@/views/other/commonDialog/SelectCommonDialog"
 export default {
   name: "AddSalesDetailsDialog",
@@ -321,14 +321,14 @@
       const params = this.saveParams()
       console.log(params)
       this.isAddloading = true
-      // saveMaterialApply(params).then((res) => {
-      //   if (res.code === 200) {
-      //     this.editRow.visible = false
-      //     this.$message.success(this.editRow.title + "鎴愬姛锛�")
-      //     this.$emit("reRreshData")
-      //   }
-      //   this.isAddloading = false
-      // })
+      saveMaterialApply(params).then((res) => {
+        if (res.code === 200) {
+          this.editRow.visible = false
+          this.$message.success(this.editRow.title + "鎴愬姛锛�")
+          this.$emit("reRreshData")
+        }
+        this.isAddloading = false
+      })
     },
     saveParams() {
       let commonParam = {
@@ -360,7 +360,7 @@
         for (let i in arr) {
           let item = {
             outsourcingOrderNumber: this.editRow.infomation.outsourcingOrderNumber,
-            materialNumber: arr[i].id,
+            materialNumber: arr[i].number,
             materialName: arr[i].name,
             amount: 1,
             unit: arr[i].unit ? arr[i].unit : 1,
@@ -368,7 +368,7 @@
             specs: arr[i].specs ? arr[i].specs : ""
           }
           console.log(arr, "8989")
-          isPush = this.getIsPush(this.productTableList.tableInfomation, arr[i].id)
+          isPush = this.getIsPush(this.productTableList.tableInfomation, arr[i].number)
           if (isPush) {
             this.productTableList.tableInfomation.splice(this.productTableList.tableInfomation.length, 0, item)
           }

--
Gitblit v1.8.0