From 28d38f132ff7c6a1239df6c56f2da0a021bd4e96 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期三, 13 九月 2023 16:12:08 +0800
Subject: [PATCH] 销售订单bug修复
---
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