Browse Source

前端 检斤判断条件sdy

zhongtianhaoyuan 3 years ago
parent
commit
39ee1bccb3
1 changed files with 6 additions and 5 deletions
  1. 6 5
      src/views/houseSelfCollect/weightCheck.vue

+ 6 - 5
src/views/houseSelfCollect/weightCheck.vue

@@ -103,7 +103,7 @@
             </ws-form-item>
             </ws-form-item>
             <ws-form-item label="毛重(公斤)" span="1" prop="grossWeight">
             <ws-form-item label="毛重(公斤)" span="1" prop="grossWeight">
               <ws-input
               <ws-input
-                v-if="this.tpyeNo != 2"
+                v-if="this.information != '毛重'"
                 v-model="weighingList.grossWeight"
                 v-model="weighingList.grossWeight"
                 @input="calculation"
                 @input="calculation"
                 placeholder="未获取到毛重"
                 placeholder="未获取到毛重"
@@ -420,7 +420,8 @@ export default {
               result += tmp
               result += tmp
             }
             }
           }
           }
-          if(this.tpyeNo != 2){
+          // if(this.tpyeNo != 2)
+          if(this.information != '皮重'){
             this.weighingList.grossWeight = parseInt(result)
             this.weighingList.grossWeight = parseInt(result)
           }
           }
           else{
           else{
@@ -507,7 +508,7 @@ export default {
         })
         })
         return
         return
       }
       }
-      if (this.tpyeNo == 2) {
+      if (this.information = "皮重") {
         if (!this.weighingList.tare) {
         if (!this.weighingList.tare) {
           this.$message({
           this.$message({
             message: '皮重不能为空',
             message: '皮重不能为空',
@@ -563,7 +564,7 @@ export default {
         type: 'warning',
         type: 'warning',
       })
       })
         .then(() => {
         .then(() => {
-          if (this.tpyeNo == 1) {
+          if (this.information = "毛重") {
             //毛检保存前进行校验
             //毛检保存前进行校验
             getamount({
             getamount({
               compId: sessionStorage.getItem('ws-pf_compId'),
               compId: sessionStorage.getItem('ws-pf_compId'),
@@ -620,7 +621,7 @@ export default {
                   }
                   }
                 }
                 }
               })
               })
-          } else if (this.tpyeNo == 2) {
+          } else if (this.information = "皮重") {
             this.weighingList.warehouseId = this.warehouseId
             this.weighingList.warehouseId = this.warehouseId
             ;(this.weighingList.skinInspector =
             ;(this.weighingList.skinInspector =
               sessionStorage.getItem('ws-pf_staffName')),
               sessionStorage.getItem('ws-pf_staffName')),