ccjgmwz 3 anos atrás
pai
commit
be90bd6dd6

+ 8 - 2
src/views/warehouse/warehouseManagementGross.vue

@@ -452,7 +452,7 @@
 
 
         }
         }
       }
       }
-      getReceiptTaskNo({flag:2,warehouseName:this.deptBudgetList.warehouseName,agentKey: localStorage.getItem("ws-pf_userId")}).toPromise()
+      getReceiptTaskNo({flag:2,warehouseName:this.deptBudgetList.warehouseName,agentKey: localStorage.getItem('ws-pf_userId')}).toPromise()
         .then((response) => {
         .then((response) => {
           console.log(response)
           console.log(response)
           this.deptBudgetList1 = response
           this.deptBudgetList1 = response
@@ -540,7 +540,7 @@
                 }
                 }
               }
               }
             } 
             } 
-            else if (this.deptBudgetList.warehouseName && (this.deptBudgetList.warehouseName == '顺粮库'||this.deptBudgetList.warehouseName == '鲅鱼圈金信库')) {
+            else if (this.deptBudgetList.warehouseName && (this.deptBudgetList.warehouseName == '顺粮库'||this.deptBudgetList.warehouseName == '鲅鱼圈金信库')) {
               for (var i = value.length - 1; i >= 0; i--) {
               for (var i = value.length - 1; i >= 0; i--) {
                 var tmp = String.fromCharCode(value[i])
                 var tmp = String.fromCharCode(value[i])
                 console.log(tmp)
                 console.log(tmp)
@@ -1261,6 +1261,9 @@
                     // this.deptBudgetList.netWeight = Math.round(this.dataList.netWeight*1000)
                     // this.deptBudgetList.netWeight = Math.round(this.dataList.netWeight*1000)
                     // this.deptBudgetList.pureWeight = Math.round(this.dataList.pureWeight*1000)
                     // this.deptBudgetList.pureWeight = Math.round(this.dataList.pureWeight*1000)
                     // this.deptBudgetList.deductionWeight = Math.round(this.dataList.deductionWeight*1000)
                     // this.deptBudgetList.deductionWeight = Math.round(this.dataList.deductionWeight*1000)
+                    if(this.reader){
+                      this.reader.cancel()
+                    }
                     this.$message.success('添加成功')
                     this.$message.success('添加成功')
                     this.$router.push({
                     this.$router.push({
                       path: 'warehouseManagementList'
                       path: 'warehouseManagementList'
@@ -1773,6 +1776,9 @@
                 addstorageputList(this.deptBudgetList)
                 addstorageputList(this.deptBudgetList)
                   .toPromise()
                   .toPromise()
                   .then((response) => {
                   .then((response) => {
+                     if(this.reader){
+                        this.reader.cancel()
+                      }
                     this.$message.success('保存成功')
                     this.$message.success('保存成功')
                     this.$router.push({
                     this.$router.push({
                       path: 'warehouseManagementList'
                       path: 'warehouseManagementList'

+ 4 - 1
src/views/warehouse/warehouseManagementNoWeightIn.vue

@@ -499,7 +499,7 @@
         this.isGetCost = true
         this.isGetCost = true
         this.cost = this.dataList.cost
         this.cost = this.dataList.cost
       }
       }
-      getReceiptTaskNo({flag:2,warehouseName:this.deptBudgetList1.warehouseName,agentKey: localStorage.getItem("ws-pf_userId")}).toPromise()
+      getReceiptTaskNo({flag:2,warehouseName:this.deptBudgetList1.warehouseName,agentKey: localStorage.getItem('ws-pf_userId')}).toPromise()
         .then((response) => {
         .then((response) => {
           this.deptBudgetList2 = response
           this.deptBudgetList2 = response
         })
         })
@@ -1312,6 +1312,9 @@
                     this.dataList.netWeight = Math.round(this.dataList.netWeight * 1000)
                     this.dataList.netWeight = Math.round(this.dataList.netWeight * 1000)
                     this.dataList.pureWeight = Math.round(this.dataList.pureWeight * 1000)
                     this.dataList.pureWeight = Math.round(this.dataList.pureWeight * 1000)
                     this.dataList.deductionWeight = Math.round(this.dataList.deductionWeight * 1000)
                     this.dataList.deductionWeight = Math.round(this.dataList.deductionWeight * 1000)
+                    if(this.reader){
+                        this.reader.cancel()
+                      }
                     this.$message.success('提交成功')
                     this.$message.success('提交成功')
                     this.$confirm(`是否打印磅单`, {
                     this.$confirm(`是否打印磅单`, {
                         cancelButtonText: '取消',
                         cancelButtonText: '取消',

+ 4 - 1
src/views/warehouse/warehouseManagementNoWeightOut.vue

@@ -406,7 +406,7 @@
       this.dataList.statusFlag = this.$route.statusFlag
       this.dataList.statusFlag = this.$route.statusFlag
       this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
       this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
       console.log(this.dataList)
       console.log(this.dataList)
-      getReceiptTaskNo({flag:1,warehouseName:this.deptBudgetList.warehouseName,agentKey: localStorage.getItem("ws-pf_userId")}).toPromise()
+      getReceiptTaskNo({flag:1,warehouseName:this.deptBudgetList.warehouseName,agentKey: localStorage.getItem('ws-pf_userId')}).toPromise()
         .then((response) => {
         .then((response) => {
           this.deptBudgetList2 = response
           this.deptBudgetList2 = response
         })
         })
@@ -1084,6 +1084,9 @@
                 addstorageputList(this.dataList)
                 addstorageputList(this.dataList)
                   .toPromise()
                   .toPromise()
                   .then((response) => {
                   .then((response) => {
+                    if(this.reader){
+                        this.reader.cancel()
+                      }
                     this.$message.success('提交成功')
                     this.$message.success('提交成功')
                     this.$confirm(`是否打印磅单`, {
                     this.$confirm(`是否打印磅单`, {
                         cancelButtonText: '取消',
                         cancelButtonText: '取消',

+ 8 - 2
src/views/warehouse/warehouseManagementTare.vue

@@ -395,7 +395,7 @@
       this.deptBudgetList.warehouseType = this.$route.query.warehouseType
       this.deptBudgetList.warehouseType = this.$route.query.warehouseType
       this.deptBudgetList.warehouseId = this.$route.query.warehouseId
       this.deptBudgetList.warehouseId = this.$route.query.warehouseId
       this.getList()
       this.getList()
-      getReceiptTaskNo({flag:1,warehouseName:this.deptBudgetList.warehouseName,agentKey: localStorage.getItem("ws-pf_userId")}).toPromise()
+      getReceiptTaskNo({flag:1,warehouseName:this.deptBudgetList.warehouseName,agentKey: localStorage.getItem('ws-pf_userId')}).toPromise()
         .then((response) => {
         .then((response) => {
           console.log(response)
           console.log(response)
           this.deptBudgetList1 = response
           this.deptBudgetList1 = response
@@ -964,13 +964,16 @@
                 this.deptBudgetList.inOutFlag = 1
                 this.deptBudgetList.inOutFlag = 1
                 this.deptBudgetList.pcFlag = 1
                 this.deptBudgetList.pcFlag = 1
                 this.deptBudgetList.statusFlag = 1
                 this.deptBudgetList.statusFlag = 1
-                his.deptBudgetList.grossWeight /= 1000
+                this.deptBudgetList.grossWeight /= 1000
                 this.deptBudgetList.tare /= 1000
                 this.deptBudgetList.tare /= 1000
                 this.deptBudgetList.netWeight = this.deptBudgetList.netWeight.toFixed(2)
                 this.deptBudgetList.netWeight = this.deptBudgetList.netWeight.toFixed(2)
                 this.deptBudgetList.pureWeight /= 1000
                 this.deptBudgetList.pureWeight /= 1000
                 addstorageputList(this.deptBudgetList)
                 addstorageputList(this.deptBudgetList)
                   .toPromise()
                   .toPromise()
                   .then((response) => {
                   .then((response) => {
+                    if(this.reader){
+                      this.reader.cancel()
+                    }
                     this.$message.success('保存成功')
                     this.$message.success('保存成功')
                     this.$router.push({
                     this.$router.push({
                       path: 'warehouseManagementList'
                       path: 'warehouseManagementList'
@@ -1409,6 +1412,9 @@
               addstorageputList(this.deptBudgetList)
               addstorageputList(this.deptBudgetList)
                 .toPromise()
                 .toPromise()
                 .then((response) => {
                 .then((response) => {
+                  if(this.reader){
+                    this.reader.cancel()
+                  }
                   this.$message.success('添加成功')
                   this.$message.success('添加成功')
                   this.$router.push({
                   this.$router.push({
                     path: 'warehouseManagementList'
                     path: 'warehouseManagementList'