From 0499c5ea96c30fbd58a01b21a1c9faa79f67c273 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期三, 13 九月 2023 14:31:07 +0800
Subject: [PATCH] 	modified:   src/assets/api/controller.js 	modified:   src/components/view/standard-table/material.vue 	modified:   src/components/view/standard-table/product.vue 	modified:   src/components/view/standard-table/target.vue 	modified:   src/components/view/standard-table/technology.vue 	modified:   src/components/view/standard.vue

---
 src/components/view/standard-table/material.vue |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/src/components/view/standard-table/material.vue b/src/components/view/standard-table/material.vue
index 66e3416..32384da 100644
--- a/src/components/view/standard-table/material.vue
+++ b/src/components/view/standard-table/material.vue
@@ -40,6 +40,11 @@
               <el-table-column prop="unit" label="鍗曚綅">
               </el-table-column>
               <el-table-column prop="num" label="鏁伴噺">
+                <template slot-scope="scope">
+                  <el-input v-model="scope.row.num" 
+                    v-if="scope.row.mname != null"
+                    @blur="updateVal(scope.row)"></el-input>
+                </template>
               </el-table-column>
             </el-table>
           </div>
@@ -58,6 +63,16 @@
       created() {},
       mounted() {},
       methods: {
+        updateVal(row){
+          this.$axios.post(this.$api.url.mBomWrite,{
+            id : row.id,
+            num : row.num
+          }).then(res=>{
+            this.$message.success(res.message);
+          }).catch(error=>{
+            this.$message.error(error.message);
+          })
+        },
         // 琛ㄦ牸鏍戝叏閮ㄩ�変腑閰嶇疆
         // 鍏ㄩ��/鍙栨秷閫夋搷浣�
         selectAll(val) {
@@ -146,8 +161,8 @@
     .standard .el-table__body {
       height: 100%;
     }
-    .standard .el-table .el-table__row:not([class*="el-table__row--level-"]) td:nth-child(3){
+    /* .standard .el-table .el-table__row:not([class*="el-table__row--level-"]) td:nth-child(3){
       padding-left: 23px !important;
-     }
+     } */
   </style>
   
\ No newline at end of file

--
Gitblit v1.9.3