Pārlūkot izejas kodu

替代方案首次默认0

Shan9312 1 gadu atpakaļ
vecāks
revīzija
73cfb87e9e

BIN
dist-tmr-测试-20240617.zip


+ 7 - 2
src/views/formulationPlan/recipeTemplate/index.vue

@@ -1213,7 +1213,7 @@ export default {
           this.table2.getdataListParm.parammaps.dryweight = row.dryweight
        GetDataByName(this.table2.getdataListParm).then(res=>{
           const {data} = res;
-          
+
           let ids=[]
           if(data.list && data.list.length ){
             ids = data.list.map(item =>{return item.fid})
@@ -1589,7 +1589,7 @@ export default {
       this.table.temp.cattle = row.cattle
       this.table.temp.autozone = row.autozone
 
-      this.table.temp.surplusId = row.surplusId 
+      this.table.temp.surplusId = row.surplusId
       this.table.temp.surplus =  row.surplus
       if(this.table.temp.volume == '' || this.table.temp.volume == null || this.table.temp.volume == undefined){
         this.table.temp.volume = 0
@@ -1652,6 +1652,11 @@ export default {
       if( isNaN(this.table.temp.autozone) || this.table.temp.autozone == '' || this.table.temp.autozone == undefined){
         this.table.temp.autozone = 0
       }
+      console.log(this.table.temp, 'hss')
+      if(!this.table.temp.surplusId){
+        this.table.temp.surplusId = 0;
+        this.table.temp.surplus = '';
+      }
       this.requestParam.parammaps = this.table.temp
       PostDataByName(this.requestParam).then(response => {
         console.log('新增保存发送参数', this.requestParam)