zhangyuewww 1 năm trước cách đây
mục cha
commit
c9a51ad1c3
1 tập tin đã thay đổi với 26 bổ sung1 xóa
  1. 26 1
      src/views/warehousenew/warehousingOrder.vue

+ 26 - 1
src/views/warehousenew/warehousingOrder.vue

@@ -203,6 +203,12 @@
             <span v-if="!scope.row.select">{{ scope.row.requestFunds }}</span>
             <el-input @focus="qingkuan(scope.row, item.id)" v-else v-model='scope.row.requestFunds'></el-input>
           </template>
+        </el-table-column>
+         <el-table-column prop="requestFunds" width="150" class="table_td tablerequestFunds" label="请款重量">
+          <template scope="scope">
+            <span v-if="!scope.row.select">{{ scope.row.requestWeight}}</span>
+            <el-input @focus="qingkuan1(scope.row, item.id)" v-else v-model='scope.row.requestWeight'></el-input>
+          </template>
         </el-table-column>
         <el-table-column prop="remark" width="150" class="table_td" label="请款备注">
           <template scope="scope">
@@ -1384,6 +1390,12 @@ export default {
       this.textarea = this.currectfocusdata.requestFunds
       this.dialogVisiblecontent = true
     },
+    qingkuan1(item) {
+      this.titletype = '请款重量'
+      this.currectfocusdata = item
+      this.textarea = this.currectfocusdata.requestWeight
+      this.dialogVisiblecontent = true
+    },
     inputremark(item) {
       this.titletype = '备注内容'
       this.currectfocusdata = item
@@ -1396,7 +1408,13 @@ export default {
         this.currectfocusdata.requestFunds = this.textarea
         console.log(this.currectfocusdata, textarea)
         this.$forceUpdate()
-      } else {
+      } 
+      else if (this.titletype == '请款重量'){
+        this.dialogVisiblecontent = false
+        this.currectfocusdata.requestWeight = this.textarea
+        this.$forceUpdate()
+      }
+      else {
         this.dialogVisiblecontent = false
         this.currectfocusdata.remark = this.textarea
         this.$forceUpdate()
@@ -2017,6 +2035,13 @@ export default {
           });
           return
         }
+        if (!arr1[i].requestWeight) {
+          this.$message({
+            message: '请款重量不能为空!',
+            type: 'warning'
+          });
+          return
+        }
         if (arr1[i].approveStatus && arr1[i].approveStatus!='发起人撤回') {
           this.$message({
             message: '至少选择一条待请款条目',