浏览代码

前端sdy

zhongtianhaoyuan 3 年之前
父节点
当前提交
5a38d324d2

+ 4 - 2
src/common.js

@@ -1,4 +1,6 @@
-const Warehouse = {payname : ""}
+
+   const houseName= [{ payname: "" },{ payname: "" },{ payname: "" },{ payname: "" }]
+
 export default {
 export default {
-    Warehouse
+    houseName
 }
 }

+ 1 - 1
src/main.js

@@ -20,7 +20,7 @@ Vue.use(AMap);
 import $ from 'jquery'
 import $ from 'jquery'
 // import Warehouse from './common.js'
 // import Warehouse from './common.js'
 import Warehouse from './common.js'
 import Warehouse from './common.js'
-Vue.prototype.WAREHOUSE = Warehouse
+Vue.prototype.WAREHOUSE = Warehouse.houseName
 // 初始化vue-amap
 // 初始化vue-amap
 AMap.initAMapApiLoader({
 AMap.initAMapApiLoader({
   // 高德key
   // 高德key

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

@@ -136,7 +136,7 @@
            for (let i = 0; i < this.warehouseList.length; i++) {
            for (let i = 0; i < this.warehouseList.length; i++) {
         if (this.warehouseList[i].id == this.selectVal) {
         if (this.warehouseList[i].id == this.selectVal) {
           this.warehouseName = this.warehouseList[i].warehouseName
           this.warehouseName = this.warehouseList[i].warehouseName
-          this.WAREHOUSE.payname = this.warehouseList[i].id
+          this.WAREHOUSE[0].payname = this.warehouseList[i].id
         }
         }
       }
       }
         let _obj = this.warehouseList.find((item) => {
         let _obj = this.warehouseList.find((item) => {
@@ -190,12 +190,12 @@
           // if(this.userJurisdiction){
           // if(this.userJurisdiction){
           //   this.warehouseList.unshift({warehouseName:response[0].flag})
           //   this.warehouseList.unshift({warehouseName:response[0].flag})
           // }
           // }
-                console.log(this.WAREHOUSE.payname)
+                console.log(this.WAREHOUSE[0].payname)
           this.selectVal = this.warehouseList[0].id
           this.selectVal = this.warehouseList[0].id
           if (this.warehouseName) {
           if (this.warehouseName) {
-            this.selectVal = this.WAREHOUSE.payname
+            this.selectVal = this.WAREHOUSE[0].payname
           } else {
           } else {
-            this.WAREHOUSE.payname = this.warehouseList[0].id
+            this.WAREHOUSE[0].payname = this.warehouseList[0].id
           }
           }
           this.warehouseName = this.warehouseList[0].warehouseName
           this.warehouseName = this.warehouseList[0].warehouseName
           if (this.warehouseList[0].allowEdit == 1) {
           if (this.warehouseList[0].allowEdit == 1) {

+ 16 - 18
src/views/houseSelfCollect/inspectionManagement.vue

@@ -7,7 +7,7 @@
       </template>
       </template>
       <template slot="right">
       <template slot="right">
         <ws-select
         <ws-select
-          v-model="warehouseNameKey"
+          v-model="warehouseName"
           placeholder=""
           placeholder=""
           @change="warehouseNameChange"
           @change="warehouseNameChange"
           :value="searchType"
           :value="searchType"
@@ -15,9 +15,9 @@
         >
         >
           <ws-option
           <ws-option
             v-for="item in warehouseList"
             v-for="item in warehouseList"
-            :key="item.id"
-            :label="item.warehouseName"
-            :value="item.id"
+            :key="item.value"
+            :label="item.value"
+            :value="item.value"
             style="color: #8890b1"
             style="color: #8890b1"
           />
           />
         </ws-select>
         </ws-select>
@@ -137,7 +137,6 @@ export default {
       taskTypeList: [],
       taskTypeList: [],
       searchType: 0,
       searchType: 0,
       warehouseName: '',
       warehouseName: '',
-      warehouseNameKey: '',
       inspect: [],
       inspect: [],
       warehouseList: [],
       warehouseList: [],
       cangid: "", //仓库id
       cangid: "", //仓库id
@@ -185,12 +184,12 @@ export default {
     },
     },
     warehouseNameChange(e) {
     warehouseNameChange(e) {
       for(let i = 0 ; i < this.warehouseList.length; i++){
       for(let i = 0 ; i < this.warehouseList.length; i++){
-        if(this.warehouseList[i].id == this.warehouseNameKey){
-           this.warehouseName = this.warehouseList[i].warehouseName
+        if(this.warehouseList[i].value == e){
+           this.warehouseName = this.warehouseList[i].value
           this.warehouseCount = this.warehouseList[i].count
           this.warehouseCount = this.warehouseList[i].count
           this.warehouseNo = this.warehouseList[i].No
           this.warehouseNo = this.warehouseList[i].No
           this.cangid = this.warehouseList[i].id
           this.cangid = this.warehouseList[i].id
-          this.WAREHOUSE.payname = this.warehouseList[i].value
+          this.WAREHOUSE[1].payname = this.warehouseList[i].value
           this.purchasePriceList = this.warehouseList[i].purchasePriceList
           this.purchasePriceList = this.warehouseList[i].purchasePriceList
         }
         }
       }
       }
@@ -242,7 +241,7 @@ export default {
           this.warehouseList = []
           this.warehouseList = []
           for (let i = 0; i < response.length; i++) {
           for (let i = 0; i < response.length; i++) {
             this.warehouseList.push({
             this.warehouseList.push({
-              warehouseName: response[i].warehouseName,
+              value: response[i].warehouseName,
               id: response[i].id,
               id: response[i].id,
               count: response[i].count,
               count: response[i].count,
               purchasePriceList: response[i].purchasePriceList,
               purchasePriceList: response[i].purchasePriceList,
@@ -250,20 +249,19 @@ export default {
             })
             })
           }
           }
           if(this.warehouseList.length > 0){
           if(this.warehouseList.length > 0){
-            this.warehouseNameKey = this.warehouseList[0].id
-            this.warehouseName =  this.warehouseList[0].warehouseName
-            if (this.cangid) {
-              this.warehouseName = this.WAREHOUSE.payname
-            } else {
-             this.WAREHOUSE.payname = this.warehouseList[0].warehouseName
-            }
+            this.warehouseName =  this.warehouseList[0].value
+             if (this.cangid) {
+            this.warehouseName = this.WAREHOUSE[1].payname
+          } 
+          else {
+            this.WAREHOUSE[1].payname = this.warehouseList[0].value
+          }
             this.warehouseCount =  this.warehouseList[0].count
             this.warehouseCount =  this.warehouseList[0].count
             this.warehouseNo =  this.warehouseList[0].No
             this.warehouseNo =  this.warehouseList[0].No
             this.cangid =  this.warehouseList[0].id
             this.cangid =  this.warehouseList[0].id
             this.purchasePriceList =  this.warehouseList[0].purchasePriceList
             this.purchasePriceList =  this.warehouseList[0].purchasePriceList
-          }
             this.getList()
             this.getList()
-
+          }
         })
         })
 
 
     },
     },

+ 4 - 4
src/views/houseSelfCollect/paymentManagement.vue

@@ -248,12 +248,12 @@ export default {
         .toPromise()
         .toPromise()
         .then(response => {
         .then(response => {
           this.warehouseList = response
           this.warehouseList = response
-          console.log(this.WAREHOUSE.payname)
+          console.log(this.WAREHOUSE[3].payname)
           this.warehouseNameKey = this.warehouseList[0].id
           this.warehouseNameKey = this.warehouseList[0].id
           if (this.warehouseName) {
           if (this.warehouseName) {
-            this.warehouseNameKey = this.WAREHOUSE.payname
+            this.warehouseNameKey = this.WAREHOUSE[3].payname
           } else {
           } else {
-            this.WAREHOUSE.payname = this.warehouseList[0].id
+            this.WAREHOUSE[3].payname = this.warehouseList[0].id
           }
           }
 
 
           // this.getList()
           // this.getList()
@@ -560,7 +560,7 @@ export default {
       for (let i = 0; i < this.warehouseList.length; i++) {
       for (let i = 0; i < this.warehouseList.length; i++) {
         if (this.warehouseList[i].id == this.warehouseNameKey) {
         if (this.warehouseList[i].id == this.warehouseNameKey) {
           this.warehouseName = this.warehouseList[i].warehouseName
           this.warehouseName = this.warehouseList[i].warehouseName
-          this.WAREHOUSE.payname = this.warehouseList[i].id
+          this.WAREHOUSE[3].payname = this.warehouseList[i].id
         }
         }
       }
       }
       this.getList()
       this.getList()

+ 12 - 23
src/views/houseSelfCollect/weighingManagement.vue

@@ -5,7 +5,7 @@
       <template slot="left"> </template>
       <template slot="left"> </template>
       <template slot="right">
       <template slot="right">
         <ws-select
         <ws-select
-          v-model="warehouseNameKey"
+          v-model="warehouseName"
           placeholder=""
           placeholder=""
           @change="warehouseNameChange"
           @change="warehouseNameChange"
           :value="searchType"
           :value="searchType"
@@ -13,9 +13,9 @@
         >
         >
           <ws-option
           <ws-option
             v-for="item in warehouseList"
             v-for="item in warehouseList"
-            :key="item.warehouseId"
-            :label="item.warehouseName"
-            :value="item.warehouseId"
+            :key="item.value"
+            :label="item.value"
+            :value="item.value"
             style="color: #8890b1"
             style="color: #8890b1"
           />
           />
         </ws-select>
         </ws-select>
@@ -155,7 +155,6 @@ export default {
       searchKeyWord: '',
       searchKeyWord: '',
       searchType: [],
       searchType: [],
       warehouseName: '',
       warehouseName: '',
-      warehouseNameKey:'',
       value1: '', //选择时间
       value1: '', //选择时间
       warehouseList: [],
       warehouseList: [],
       warehouseId: '',
       warehouseId: '',
@@ -194,21 +193,12 @@ export default {
     },
     },
     warehouseNameChange(e) {
     warehouseNameChange(e) {
       // this.warehouseName = e
       // this.warehouseName = e
-      // for (let i = 0; i < this.warehouseList.length; i++) {
-      //   if (this.warehouseList[i].value == e) {
-      //     this.warehouseId = this.warehouseList[i].warehouseId
-      //    this.purchasePriceList = this.warehouseList[i].warehouseList
-      //     this.allowEdit = this.warehouseList[i].allowEdit
-      //       this.WAREHOUSE.payname = this.warehouseList[i].value
-      //   }
-      // }
       for (let i = 0; i < this.warehouseList.length; i++) {
       for (let i = 0; i < this.warehouseList.length; i++) {
-        if (this.warehouseList[i].warehouseId == this.warehouseNameKey) {
-          this.warehouseName = this.warehouseList[i].warehouseName
-          this.WAREHOUSE.payname = this.warehouseList[i].id
+        if (this.warehouseList[i].value == e) {
           this.warehouseId = this.warehouseList[i].warehouseId
           this.warehouseId = this.warehouseList[i].warehouseId
-          this.purchasePriceList = this.warehouseList[i].warehouseList
+         this.purchasePriceList = this.warehouseList[i].warehouseList
           this.allowEdit = this.warehouseList[i].allowEdit
           this.allowEdit = this.warehouseList[i].allowEdit
+            this.WAREHOUSE[2].payname = this.warehouseList[i].value
         }
         }
       }
       }
       this.getList()
       this.getList()
@@ -257,18 +247,17 @@ export default {
           this.warehouseList = []
           this.warehouseList = []
           for (let i = 0; i < response.length; i++) {
           for (let i = 0; i < response.length; i++) {
             this.warehouseList.push({
             this.warehouseList.push({
-              warehouseName: response[i].warehouseName,
+              value: response[i].warehouseName,
               warehouseId: response[i].id,
               warehouseId: response[i].id,
               warehouseList:response[i].purchasePriceList,
               warehouseList:response[i].purchasePriceList,
               allowEdit:response[i].allowEdit
               allowEdit:response[i].allowEdit
             })
             })
           }
           }
-          console.log(this.WAREHOUSE.payname)
-          this.warehouseNameKey = this.warehouseList[0].id
-          if (this.warehouseName) {
-            this.warehouseNameKey = this.WAREHOUSE.payname
+                this.warehouseName =  this.warehouseList[0].value
+             if (this.warehouseId) {
+            this.warehouseName = this.WAREHOUSE[2].payname
           } else {
           } else {
-            this.WAREHOUSE.payname = this.warehouseList[0].id
+            this.WAREHOUSE[2].payname = this.warehouseList[0].value
           }
           }
           this.allowEdit = this.warehouseList[0].allowEdit
           this.allowEdit = this.warehouseList[0].allowEdit
           this.warehouseId = this.warehouseList[0].warehouseId
           this.warehouseId = this.warehouseList[0].warehouseId

+ 18 - 29
src/views/outboundManagement/collectionManagement.vue

@@ -331,30 +331,28 @@ export default {
     varietyClick(row) {
     varietyClick(row) {
        if (
        if (
         row.actualCollectionment < 0 ||
         row.actualCollectionment < 0 ||
-        row.actualCollectionment > 100000 ||
+        row.actualCollectionment > 1000000 ||
         (String(row.actualCollectionment).indexOf('.') != -1 &&
         (String(row.actualCollectionment).indexOf('.') != -1 &&
           String(row.actualCollectionment).length -
           String(row.actualCollectionment).length -
             (String(row.actualCollectionment).indexOf('.') + 1) >
             (String(row.actualCollectionment).indexOf('.') + 1) >
             2)
             2)
       ) {
       ) {
         this.$message({
         this.$message({
-          message: '金额输入错误',
+          message: '实际应收输入错误',
           type: 'warning',
           type: 'warning',
         })
         })
         return
         return
       }
       }
-      if (row.actualCollectionment) {
-        if (isNaN(row.actualCollectionment)) {
-          this.$message({
-            message: '金额非数字!',
-            type: 'warning',
-          })
-          return
-        }
-      }
       if (!row.actualCollectionment) {
       if (!row.actualCollectionment) {
         this.$message({
         this.$message({
-          message: '金额不能为空!',
+          message: '实际应收不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (row.actualCollectionment < row.amountEdCollectionable) {
+        this.$message({
+          message: '实际应收不能小于已收款',
           type: 'warning',
           type: 'warning',
         })
         })
         return
         return
@@ -413,7 +411,13 @@ export default {
       }
       }
     },
     },
     collectSubmit() {
     collectSubmit() {
-     
+     if (!this.collectionScreenshot) {
+        this.$message({
+          message: '请上传收款截图',
+          type: 'warning',
+        })
+        return
+      }
       this.$confirm(`确定提交收款信息?`, {
       this.$confirm(`确定提交收款信息?`, {
         cancelButtonText: '取消',
         cancelButtonText: '取消',
         confirmButtonText: '确定',
         confirmButtonText: '确定',
@@ -471,22 +475,6 @@ export default {
             })
             })
         })
         })
     },
     },
-    //     disableReasons() {
-    //   this.outerVisible = false
-    //   this.disablieForm.disableStatusFlag = 0
-    //   disableDriver(this.disablieForm)
-    //     .toPromise()
-    //     .then((response) => {
-    //       this.$notify.success({
-    //         title: '成功',
-    //         message: '禁用成功',
-    //       })
-    //       this.getList()
-    //     })
-    //     .catch((response) => {
-    //       EventBus.$emit('error', response.message)
-    //     })
-    // },
     handlePictureCardPreview1(file) {
     handlePictureCardPreview1(file) {
       this.collectionScreenshot = file.url
       this.collectionScreenshot = file.url
     },
     },
@@ -532,6 +520,7 @@ export default {
       }).toPromise().then((response) => {
       }).toPromise().then((response) => {
           for (var i = 0; i < response.records.length; i++) {
           for (var i = 0; i < response.records.length; i++) {
             response.records[i].identification = 'false'
             response.records[i].identification = 'false'
+            response.records[i].contractPrice =  response.records[i].contractPrice/1000
           }
           }
            this.collectList = response.records
            this.collectList = response.records
         })
         })

+ 2 - 10
src/views/outboundManagement/collectionment.vue

@@ -60,7 +60,7 @@
             </ws-form-item>
             </ws-form-item>
             <ws-form-item label="单价(元/公斤)" span="1" prop="contractPrice">
             <ws-form-item label="单价(元/公斤)" span="1" prop="contractPrice">
               <ws-input 
               <ws-input 
-              v-model="collectionList.contractPrice" placeholder="请输入单价" maxlength="100" size="small" disabled/>
+              v-model="collectionList.weighingManagement.contractPrice" placeholder="请输入单价" maxlength="100" size="small" disabled/>
             </ws-form-item>
             </ws-form-item>
             <ws-form-item label="车牌号" span="1" prop="carNo">
             <ws-form-item label="车牌号" span="1" prop="carNo">
               <ws-input 
               <ws-input 
@@ -189,18 +189,10 @@ export default {
         id:this.$route.query.id,
         id:this.$route.query.id,
         relationId: this.$route.query.relationId,
         relationId: this.$route.query.relationId,
         compId: sessionStorage.getItem('ws-pf_compId'),
         compId: sessionStorage.getItem('ws-pf_compId'),
-      })
+      })     
       .toPromise()
       .toPromise()
       .then((response) => {
       .then((response) => {
           this.collectionList = response
           this.collectionList = response
-          // this.qualityInspectionManagement = response
-          // this.paymentList.qualityInspectionManagement.waterMin=this.$route.query.waterMin
-          // this.paymentList.qualityInspectionManagement.weightDeduction=(this.paymentList.qualityInspectionManagement.waterContent-this.paymentList.qualityInspectionManagement.waterMin)*this.paymentList.buckleWeightRatio
-          // this.paymentList.base=(100-this.paymentList.qualityInspectionManagement.weightDeduction)/100
-          // this.paymentList.pureWeight=this.paymentList.base*this.paymentList.weighingManagement.netWeight
-          // if(!this.paymentList.solidGrainPrice){
-          //   this.paymentList.solidGrainPrice=this.paymentList.qualityInspectionManagement.tidalGrainPrice/this.paymentList.base
-          // }
         })
         })
     },
     },
   },
   },

+ 136 - 48
src/views/outboundManagement/qualityInspection.vue

@@ -197,7 +197,6 @@ export default {
     this.inspect.carNumber = this.$route.query.carNumber
     this.inspect.carNumber = this.$route.query.carNumber
     this.inspect.goodsName = this.$route.query.goodsName
     this.inspect.goodsName = this.$route.query.goodsName
     this.inspect.storageTagNo = this.$route.query.storageTagNo
     this.inspect.storageTagNo = this.$route.query.storageTagNo
-    //this.inspect.personCharge = this.$route.query.personCharge
     let id = this.$route.query.id
     let id = this.$route.query.id
     this.cangNo = this.$route.query.warehouseNo
     this.cangNo = this.$route.query.warehouseNo
     this.count = Number(this.$route.query.count)+1 
     this.count = Number(this.$route.query.count)+1 
@@ -205,7 +204,6 @@ export default {
       this.disabled = true
       this.disabled = true
       this.information = '查看'
       this.information = '查看'
     }
     }
-    // this.calculation()
     this.getList(id)
     this.getList(id)
   },
   },
   methods: {
   methods: {
@@ -222,71 +220,161 @@ export default {
       }
       }
       return year + mouth + datetime
       return year + mouth + datetime
     },
     },
-    // calculation() {
-    //   let number ='000'+ this.count
-    //   number = number.substring(number.length - 4,number.length)
-    //   this.inspect.qualityNo = 'SGRK' + this.getdate()+this.cangNo+number //SGRK+8位时间+3位仓库编号+4位序列号
-    //   // + this.verifyinit()
-    // },
     print() {
     print() {
       this.inspect.warehouseName = this.warehouseName
       this.inspect.warehouseName = this.warehouseName
       this.inspect.id = this.$route.query.id
       this.inspect.id = this.$route.query.id
       this.inspect.qualityInspector = sessionStorage.getItem('ws-pf_staffName')
       this.inspect.qualityInspector = sessionStorage.getItem('ws-pf_staffName')
-          this.inspect.compId = sessionStorage.getItem('ws-pf_compId')
-      // if(this.types == null || this.types == ''){
-         this.$confirm('确定保存质检信息?', '提示', {
+      this.inspect.compId = sessionStorage.getItem('ws-pf_compId')
+              if (!this.inspect.grade) {
+          this.$message({
+            message: '等级不能为空',
+            type: 'warning',
+          })
+          return
+        }
+        if (!this.inspect.impurity) {
+          this.$message({
+            message: '杂质不能为空',
+            type: 'warning',
+          })
+          return
+        }
+        if (String(this.inspect.impurity).indexOf('.') != -1 && String(this.inspect.impurity).length - (String(this.inspect.impurity).indexOf('.') + 1) > 1) {
+          this.$message({
+            message: '杂质输入错误',
+            type: 'warning',
+          })
+          return
+        }
+        
+         if (this.inspect.impurity < 0 || this.inspect.impurity > 40) {
+          this.$message({
+            message: '杂质输入错误',
+            type: 'warning',
+          })
+          return
+        }
+        if (!this.inspect.waterContent) {
+          this.$message({
+            message: '水分不能为空',
+            type: 'warning',
+          })
+          return
+        }
+         if (this.inspect.waterContent < 0 || this.inspect.waterContent > 40) {
+          this.$message({
+            message: '水分输入错误',
+            type: 'warning',
+          })
+          return
+        }
+        if (String(this.inspect.waterContent).indexOf('.') != -1 && String(this.inspect.waterContent).length - (String(this.inspect.waterContent).indexOf('.') + 1) > 1) {
+          this.$message({
+            message: '水分输入错误',
+            type: 'warning',
+          })
+          return
+        }
+        if (!this.inspect.mildewGrain) {
+          this.$message({
+            message: '霉变粒不能为空',
+            type: 'warning',
+          })
+          return
+        }
+         if (this.inspect.mildewGrain < 0 || this.inspect.mildewGrain > 40) {
+          this.$message({
+            message: '霉变粒输入错误',
+            type: 'warning',
+          })
+          return
+        }
+         if (String(this.inspect.mildewGrain).indexOf('.') != -1 && String(this.inspect.mildewGrain).length - (String(this.inspect.mildewGrain).indexOf('.') + 1) > 1) {
+          this.$message({
+            message: '霉变粒输入错误',
+            type: 'warning',
+          })
+          return
+        }
+        if (!this.inspect.bulkDensity) {
+          this.$message({
+            message: '容重不能为空',
+            type: 'warning',
+          })
+          return
+        }
+         if (this.inspect.bulkDensity < 500 || this.inspect.bulkDensity > 1000) {
+          this.$message({
+            message: '容重输入错误',
+            type: 'warning',
+          })
+          return
+        }
+        if (String(this.inspect.bulkDensity).indexOf('.') != -1 && String(this.inspect.bulkDensity).length - (String(this.inspect.bulkDensity).indexOf('.') + 1) > 0) {
+          this.$message({
+            message: '容重需输入整数',
+            type: 'warning',
+          })
+          return
+        }
+        if (!this.inspect.jiaorenli) {
+          this.$message({
+            message: '热损伤不能为空',
+            type: 'warning',
+          })
+          return
+        }
+         if (this.inspect.jiaorenli < 0 || this.inspect.jiaorenli > 40) {
+          this.$message({
+            message: '热损伤输入错误',
+            type: 'warning',
+          })
+          return
+        }
+         if (String(this.inspect.jiaorenli).indexOf('.') != -1 && String(this.inspect.jiaorenli).length - (String(this.inspect.jiaorenli).indexOf('.') + 1) > 1) {
+          this.$message({
+            message: '热损伤输入错误',
+            type: 'warning',
+          })
+          return
+        }
+        if (!this.inspect.imperfectGrain) {
+          this.$message({
+            message: '不完善粒不能为空',
+            type: 'warning',
+          })
+          return
+        }
+         if (this.inspect.imperfectGrain < 0 || this.inspect.imperfectGrain > 40) {
+          this.$message({
+            message: '不完善粒输入错误',
+            type: 'warning',
+          })
+          return
+        }
+           if (String(this.inspect.imperfectGrain).indexOf('.') != -1 && String(this.inspect.imperfectGrain).length - (String(this.inspect.imperfectGrain).indexOf('.') + 1) > 1) {
+          this.$message({
+            message: '不完善粒输入错误',
+            type: 'warning',
+          })
+          return
+        }
+      this.$confirm('确定保存质检信息?', '提示', {
         confirmButtonText: '确定',
         confirmButtonText: '确定',
         cancelButtonText: '取消',
         cancelButtonText: '取消',
         type: 'warning',
         type: 'warning',
       })
       })
         .then(() => {
         .then(() => {
-          
           addOut(this.inspect)
           addOut(this.inspect)
             .toPromise()
             .toPromise()
             .then((response) => {
             .then((response) => {
               this.$message.success('保存成功')
               this.$message.success('保存成功')
-              // this.xx = true;
-              // let newstr = document.getElementById('print').innerHTML
-              // let oldstr = document.body.innerHTML
-              // document.body.innerHTML = newstr
-              // window.print()
-              // document.body.innerHTML = oldstr
-              // // window.location.reload()
               this.$router.push({ path: 'qualityInspectionManagement' })
               this.$router.push({ path: 'qualityInspectionManagement' })
             })
             })
         })
         })
         .catch(() => {
         .catch(() => {
           return false
           return false
         })
         })
-
-      // }else if(this.types == 1){
-      //    this.$confirm('确定保存质检信息?', '提示', {
-      //   confirmButtonText: '确定',
-      //   cancelButtonText: '取消',
-      //   type: 'warning',
-      // })
-      //   .then(() => {
-      //     // return
-      //     getinspectEdit(this.inspect)
-      //       .toPromise()
-      //       .then((response) => {
-      //         this.$message.success('修改成功')
-      //         // this.xx = true;
-      //         // let newstr = document.getElementById('print').innerHTML
-      //         // let oldstr = document.body.innerHTML
-      //         // document.body.innerHTML = newstr
-      //         // window.print()
-      //         // document.body.innerHTML = oldstr
-      //         // window.location.reload()
-      //         this.$router.push({ path: 'paymentManagement' })
-      //       })
-      //   })
-      //   .catch(() => {
-      //     return false
-      //   })
-
-      // }
-     
     },
     },
     cancel() {
     cancel() {
       this.$router.push({ path: 'qualityInspectionManagement' })
       this.$router.push({ path: 'qualityInspectionManagement' })

+ 3 - 2
src/views/outboundManagement/qualityInspectionManagement.vue

@@ -66,7 +66,7 @@
       <el-table-column width="300" label="操作">
       <el-table-column width="300" label="操作">
         <template slot-scope="scope">
         <template slot-scope="scope">
           <span v-if="scope.row.status == '已质检'"><el-button @click="qualityInspection(scope.row, 2)">查看</el-button></span>
           <span v-if="scope.row.status == '已质检'"><el-button @click="qualityInspection(scope.row, 2)">查看</el-button></span>
-          <span v-if="scope.row.status == '已称重' || scope.row.status == '' || scope.row.status == null"><el-button @click="qualityInspection(scope.row, 1)">质检</el-button></span>
+          <span v-if="scope.row.status == '已称重' || scope.row.status == '' || scope.row.status == null"><el-button @click="qualityInspection(scope.row, 1)">质检</el-button></span>
         </template>
         </template>
       </el-table-column>
       </el-table-column>
     </el-table>
     </el-table>
@@ -99,7 +99,7 @@ export default {
       pageSize: 10,
       pageSize: 10,
       deptCircularPage: {},
       deptCircularPage: {},
       deptBudgetTotal: 0,
       deptBudgetTotal: 0,
-
+      managementType:3,
       searchKeyWord: '',
       searchKeyWord: '',
       taskTypeList: [],
       taskTypeList: [],
       searchType: 0,
       searchType: 0,
@@ -163,6 +163,7 @@ export default {
         pageSize: this.pageSize,
         pageSize: this.pageSize,
         searchKeyWord: this.searchKeyWord,
         searchKeyWord: this.searchKeyWord,
         warehouseName: this.warehouseName,
         warehouseName: this.warehouseName,
+        managementType : this.managementType,
       })
       })
         .toPromise()
         .toPromise()
         .then((response) => {
         .then((response) => {