瀏覽代碼

前端sdy

zhongtianhaoyuan 3 年之前
父節點
當前提交
d66317a461
共有 1 個文件被更改,包括 7 次插入8 次删除
  1. 7 8
      src/views/houseSelfCollect/weightCheck.vue

+ 7 - 8
src/views/houseSelfCollect/weightCheck.vue

@@ -103,7 +103,7 @@
             </ws-form-item>
             <ws-form-item label="毛重(公斤)" span="1" prop="grossWeight">
               <ws-input
-                v-if="this.information != '毛重'"
+                v-if="this.tpyeNo != 2"
                 v-model="weighingList.grossWeight"
                 @input="calculation"
                 placeholder="未获取到毛重"
@@ -244,7 +244,7 @@ export default {
       pList:[],
       mList:[],
       index:0,
-      video1Src:'',
+      video1Src:'https://www.w3school.com.cn/i/movie.ogg',
       video2Src:'',
       carList: [],
       carWeightInfo:{
@@ -375,7 +375,7 @@ export default {
     setCurrent(row) {
         this.$refs.singleTable.setCurrentRow(row);
       },
-      handleCurrentChange(val) {debugger
+      handleCurrentChange(val) {
         this.currentRow = val;
         this.carWeightInfo = {
         carNumber:val.carNumber,
@@ -420,8 +420,7 @@ export default {
               result += tmp
             }
           }
-          // if(this.tpyeNo != 2)
-          if(this.information != '皮重'){
+          if(this.tpyeNo != 2){
             this.weighingList.grossWeight = parseInt(result)
           }
           else{
@@ -508,7 +507,7 @@ export default {
         })
         return
       }
-      if (this.information = "皮重") {
+      if (this.tpyeNo == 2) {
         if (!this.weighingList.tare) {
           this.$message({
             message: '皮重不能为空',
@@ -564,7 +563,7 @@ export default {
         type: 'warning',
       })
         .then(() => {
-          if (this.information = "毛重") {
+          if (this.tpyeNo == 1) {
             //毛检保存前进行校验
             getamount({
               compId: sessionStorage.getItem('ws-pf_compId'),
@@ -621,7 +620,7 @@ export default {
                   }
                 }
               })
-          } else if (this.information = "皮重") {
+          } else if (this.tpyeNo == 2) {
             this.weighingList.warehouseId = this.warehouseId
             ;(this.weighingList.skinInspector =
               sessionStorage.getItem('ws-pf_staffName')),