gjy il y a 3 ans
Parent
commit
d96bc9475c
1 fichiers modifiés avec 46 ajouts et 15 suppressions
  1. 46 15
      src/views/houseSelfCollect/inspectionManagementNew.vue

+ 46 - 15
src/views/houseSelfCollect/inspectionManagementNew.vue

@@ -781,7 +781,21 @@
                     titleNo:'',
                     titleNo:'',
                     titleNoOther:'',
                     titleNoOther:'',
                   }
                   }
-                })
+                  if(this.serviceManagementType==3){
+                    var count=''
+                    if(this.warehouseCount<10){
+                      count='000'+(this.warehouseCount+1)
+                    }
+                    if(this.warehouseCount<100&&this.warehouseCount>=10){
+                      count='00'+(this.warehouseCount+1)
+                    }
+                    if(this.warehouseCount<1000&&this.warehouseCount>=100){
+                      count='0'+(this.warehouseCount+1)
+                    }
+                    this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
+                  }
+                  
+              })
             })
             })
             this.dialogTableVisible = true;
             this.dialogTableVisible = true;
           }
           }
@@ -853,6 +867,19 @@
                 titleNo:'',
                 titleNo:'',
                 titleNoOther:'',
                 titleNoOther:'',
               }
               }
+               if(this.serviceManagementType==3){
+                    var count=''
+                    if(this.warehouseCount<10){
+                      count='000'+(this.warehouseCount+1)
+                    }
+                    if(this.warehouseCount<100&&this.warehouseCount>=10){
+                      count='00'+(this.warehouseCount+1)
+                    }
+                    if(this.warehouseCount<1000&&this.warehouseCount>=100){
+                      count='0'+(this.warehouseCount+1)
+                    }
+                    this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
+                  }
               this.getList()
               this.getList()
             })
             })
         }
         }
@@ -1000,14 +1027,14 @@
         }
         }
         if(this.serviceManagementType==3){
         if(this.serviceManagementType==3){
           var count=''
           var count=''
-          if(this.warehouseCount.length==1){
-            count='000'+this.warehouseCount
+          if(this.warehouseCount<10){
+            count='000'+(this.warehouseCount+1)
           }
           }
-          if(this.warehouseCount.length==2){
-            count='00'+this.warehouseCount
+          if(this.warehouseCount<100&&this.warehouseCount>=10){
+            count='00'+(this.warehouseCount+1)
           }
           }
-           if(this.warehouseCount.length==3){
-            count='0'+this.warehouseCount
+           if(this.warehouseCount<1000&&this.warehouseCount>=100){
+            count='0'+(this.warehouseCount+1)
           }
           }
           this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
           this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
         }
         }
@@ -1688,14 +1715,18 @@
                               // this.printData.qrCodeUrl = res
                               // this.printData.qrCodeUrl = res
                               // })
                               // })
                         this.deptBudgetList = response2
                         this.deptBudgetList = response2
-                        this.deptBudgetList.customerName=this.customerName
-                        this.deptBudgetList.customerPhone=this.customerPhone
+                        if(this.serviceManagementType==1){
+                          this.deptBudgetList.customerName=this.customerName
+                          this.deptBudgetList.customerPhone=this.customerPhone
+                        }
                         if (response.compName == '黑龙江秋收有限公司') {
                         if (response.compName == '黑龙江秋收有限公司') {
                     		 this.deptBudgetList.compName = '黑龙江中天昊元贸易有限公司'
                     		 this.deptBudgetList.compName = '黑龙江中天昊元贸易有限公司'
                     			}
                     			}
                       })
                       })
                     })
                     })
                     .catch((response) => {
                     .catch((response) => {
+                      console.log(response)
+                      // this.$message.warning(response)
                     })
                     })
                     
                     
                     // this.$message.success('保存成功')
                     // this.$message.success('保存成功')
@@ -1952,14 +1983,14 @@
         this.serviceManagementType=status
         this.serviceManagementType=status
         if(status==3){
         if(status==3){
           var count=''
           var count=''
-          if(this.warehouseCount.length==1){
-            count='000'+this.warehouseCount
+          if(this.warehouseCount<10){
+            count='000'+(this.warehouseCount+1)
           }
           }
-          if(this.warehouseCount.length==2){
-            count='00'+this.warehouseCount
+          if(this.warehouseCount<100&&this.warehouseCount>=10){
+            count='00'+(this.warehouseCount+1)
           }
           }
-           if(this.warehouseCount.length==3){
-            count='0'+this.warehouseCount
+           if(this.warehouseCount<1000&&this.warehouseCount>=100){
+            count='0'+(this.warehouseCount+1)
           }
           }
           this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
           this.deptBudgetList.qualityNo='SGRK'+this.getTime()+this.warehouseNo+count
         }
         }