ccj 2 년 전
부모
커밋
302b35db04
3개의 변경된 파일4개의 추가작업 그리고 66개의 파일을 삭제
  1. 2 2
      public/static/printdry.html
  2. 0 28
      src/views/warehousenew/addCar.vue
  3. 2 36
      src/views/warehousenew/dryWarehousing.vue

+ 2 - 2
public/static/printdry.html

@@ -27,8 +27,8 @@
             width: 1000px;
             padding: 30px 20px 20px 20px;
             font-size: 18px;
-            height: 630px;
-            /* height: 570px; */
+            /* height: 630px; */
+            height: 570px;
             position: relative;
             margin: auto;
         }

+ 0 - 28
src/views/warehousenew/addCar.vue

@@ -67,12 +67,6 @@
                                                 <ws-input v-model="weighingList.carNo" placeholder="请输入车牌号"
                                                     maxlength="7" size="small" />
                                             </ws-form-item>
-                                            <ws-form-item label="皮重(KG)" span="1" prop="tare">
-                                                <ws-input type="number" @mousewheel.native.prevent
-                                                    v-model="weighingList.tare" @input="calculation" placeholder="自动获取"
-                                                    maxlength="20" size="small" :disabled="disabled" />
-                                                <el-button @click="openPort">重新获取</el-button>
-                                            </ws-form-item>
                                         </ws-info-table>
                                         <div class="but">
                                             <el-button @click="submit" type="primary">提交</el-button>
@@ -265,28 +259,6 @@ export default {
                 })
                 return
             }
-            if (!this.weighingList.tare) {
-                this.$message({
-                    message: '皮重不能为空',
-                    type: 'warning',
-                })
-                return
-            }
-            if (
-                isNaN(this.weighingList.tare) ||
-                (String(this.weighingList.tare).indexOf('.') != -1 &&
-                    String(this.weighingList.tare).length -
-                    (String(this.weighingList.tare).indexOf('.') + 1) >
-                    1) ||
-                this.weighingList.tare < 1 ||
-                this.weighingList.tare > 120000
-            ) {
-                this.$message({
-                    message: '皮重输入错误!',
-                    type: 'warning',
-                })
-                return
-            }
             this.weighingList.warehouseName = this.warehouseName
             this.weighingList.baseId = this.warehouseId
             this.$confirm('确定保存车辆信息?', '提示', {

+ 2 - 36
src/views/warehousenew/dryWarehousing.vue

@@ -100,14 +100,14 @@
                                                 <el-button v-if="tpyeNo == 2" @click="openPort">
                                                     重新获取</el-button>
                                             </ws-form-item>
-                                            <ws-form-item label="皮重(KG)" span="1" prop="tare" v-if="cartips == '手动输入'">
+                                            <ws-form-item label="皮重(KG)" span="1" prop="tare" v-if="tpyeNo == 1">
                                                 <ws-input type="number" @mousewheel.native.prevent
                                                     v-model="weighingList.tare" @input="calculation" placeholder="自动获取"
                                                     maxlength="100" size="small" :disabled="disabled" />
                                                 <el-button v-if="tpyeNo == 1" @click="openPort">
                                                     重新获取</el-button>
                                             </ws-form-item>
-                                            <ws-form-item label="净重(KG)" span="1" prop="tare" v-if="cartips == '手动输入'">
+                                            <ws-form-item label="净重(KG)" span="1" prop="tare" v-if="tpyeNo == 1">
                                                 <ws-input type="number" @mousewheel.native.prevent
                                                     v-model="weighingList.netWeight" @input="calculation"
                                                     placeholder="自动计算" maxlength="100" size="small" disabled />
@@ -280,8 +280,6 @@ export default {
             this.getList()
         },
         setVal(data) {
-            debugger
-            data = 1000
             if (this.information == '毛重') {
                 this.weighingList.grossWeight = data
                 this.weighingList.netWeight =
@@ -369,38 +367,6 @@ export default {
                     })
                     return
                 }
-                if (this.cartips == '手动输入') {
-                    this.weighingList.statusFlag = 3
-                    if (!this.weighingList.tare) {
-                        this.$message({
-                            message: '皮重不能为空',
-                            type: 'warning',
-                        })
-                        return
-                    }
-                    if (
-                        isNaN(this.weighingList.tare) ||
-                        (String(this.weighingList.tare).indexOf('.') != -1 &&
-                            String(this.weighingList.tare).length -
-                            (String(this.weighingList.tare).indexOf('.') + 1) >
-                            1) ||
-                        this.weighingList.tare < 1 ||
-                        this.weighingList.tare > 100000
-                    ) {
-                        this.$message({
-                            message: '皮重输入错误!',
-                            type: 'warning',
-                        })
-                        return
-                    }
-                    if (this.weighingList.netWeight < 0) {
-                        this.$message({
-                            message: '净重不能为负',
-                            type: 'warning',
-                        })
-                        return
-                    }
-                }
             }
             if (this.tpyeNo == 1) { //称皮重
                 this.weighingList.statusFlag = 3