zhangyuewww 3 years ago
parent
commit
59fd89da6d

+ 1 - 1
src/views/houseSelfCollect/acquisitionManagement.vue

@@ -43,7 +43,7 @@
       </el-table-column>
       <el-table-column prop="waterBase" label="基准水分(%)"></el-table-column>
       <el-table-column prop="deductWeight" label="扣重比"></el-table-column>
-      <el-table-column prop="saleLimit" label="销量上限(年/吨)"></el-table-column>
+      <el-table-column prop="saleLimit" label="销量上限(吨/年)"></el-table-column>
       <el-table-column prop="dryGrainPrice" label="干粮收购价"></el-table-column>
       <el-table-column prop="status" label="状态">
         

+ 30 - 24
src/views/taskManagement/supplyofgoods.vue

@@ -74,7 +74,7 @@
         </el-table-column>
         <el-table-column prop="surplusWeight" class="table_td" label="剩余重量(吨)"></el-table-column>
         <el-table-column prop="avgCost" class="table_td" label="平均成本(吨)"></el-table-column>
-        <el-table-column prop="issuingTime" class="table_td" label="入库单日期"></el-table-column>
+        <el-table-column prop="issuingTimeOther" class="table_td" label="入库单日期"></el-table-column>
         <el-table-column prop="outWeight" class="table_td" label="预计出库重量(吨)">
             <template slot-scope="scope">
                 <el-input @input='outweightchange' v-model="scope.row.estimateOutWarehouseWeight" placeholder="输入本次出库重量"></el-input>
@@ -352,31 +352,31 @@
       }
     },
       submit(){
-        for (let i = 0; i < this.multipleSelection.length; i++) {
-          if(!this.multipleSelection[i].estimateOutWarehouseWeight){
-              this.$message({
-              message: '预计出库重量不能为空',
-              type: 'error'
-              });
-              return
+        if(this.multipleSelection.length>0){
+          for (let i = 0; i < this.multipleSelection.length; i++) {
+            if(!this.multipleSelection[i].estimateOutWarehouseWeight){
+                this.$message({
+                message: '预计出库重量不能为空',
+                type: 'error'
+                });
+                return
 
+            }
+            if(this.multipleSelection[i].estimateOutWarehouseWeight>this.multipleSelection[i].surplusWeight){
+              this.$message({
+                message: '预计出库重量不能超过剩余重量',
+                type: 'error'
+                });
+                return
+            }
+            if(this.multipleSelection[i].estimateOutWarehouseWeight.indexOf('.')!=-1&&this.multipleSelection[i].estimateOutWarehouseWeight.substring(this.multipleSelection[i].estimateOutWarehouseWeight.indexOf('.')+1, this.multipleSelection[i].estimateOutWarehouseWeight.length).length>3){
+              this.$message({
+                message: '预计出库重量输入错误',
+                type: 'error'
+                });
+                return
+            } 
           }
-          if(this.multipleSelection[i].estimateOutWarehouseWeight>this.multipleSelection[i].surplusWeight){
-            this.$message({
-              message: '预计出库重量不能超过剩余重量',
-              type: 'error'
-              });
-              return
-          }
-          if(this.multipleSelection[i].estimateOutWarehouseWeight.indexOf('.')!=-1&&this.multipleSelection[i].estimateOutWarehouseWeight.substring(this.multipleSelection[i].estimateOutWarehouseWeight.indexOf('.')+1, this.multipleSelection[i].estimateOutWarehouseWeight.length).length>3){
-            this.$message({
-              message: '预计出库重量输入错误',
-              type: 'error'
-              });
-              return
-          }
-          
-        }
         var that=this
         this.$confirm(`确定提交货源信息?`, {
             confirmButtonText: '确定',
@@ -401,6 +401,12 @@
           //       // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
           //     })
           })
+        }else{
+          this.$message({
+            message: '未勾选货源',
+            type: 'warning'
+          });
+        }
       },
       returnsales(){
         this.$router.go(-1)

+ 1 - 1
src/views/taskManagement/supplyofgoodsedit.vue

@@ -62,7 +62,7 @@
         </el-table-column>
         <el-table-column prop="surplusWeight" class="table_td" label="剩余重量(吨)"></el-table-column>
         <el-table-column prop="avgCost" class="table_td" label="平均成本(吨)"></el-table-column>
-        <el-table-column prop="issuingTime" class="table_td" label="入库单日期"></el-table-column>
+        <el-table-column prop="issuingTimeOther" class="table_td" label="入库单日期"></el-table-column>
         <el-table-column prop="outWeight" class="table_td" label="预计出库重量(吨)">
             <template slot-scope="scope">
                 <el-input  @input='outweightchange' v-model="scope.row.estimateOutWarehouseWeight" placeholder="输入本次出库重量"></el-input>

+ 1 - 1
src/views/taskManagement/supplyofgoodslook.vue

@@ -29,7 +29,7 @@
         </el-table-column>
         <el-table-column prop="surplusWeight" class="table_td" label="剩余重量(吨)"></el-table-column>
         <el-table-column prop="avgCost" class="table_td" label="平均成本(吨)"></el-table-column>
-        <el-table-column prop="issuingTime" class="table_td" label="入库单日期"></el-table-column>
+        <el-table-column prop="issuingTimeOther" class="table_td" label="入库单日期"></el-table-column>
         <el-table-column prop="estimateOutWarehouseWeight" class="table_td" label="预计出库重量(吨)">
             <template slot-scope="scope">
                 <el-input disabled v-model="scope.row.estimateOutWarehouseWeight" placeholder="输入本次出库重量"></el-input>