瀏覽代碼

Merge branch 'master' of http://47.100.3.209:3000/gdc/yiliangyiyun-pc

ccjgmwz 3 年之前
父節點
當前提交
00340f36a4

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

@@ -27,7 +27,7 @@
           <div class="top">
           <div class="top">
             <div class="car-type">毛重</div>
             <div class="car-type">毛重</div>
             <div class="weight">
             <div class="weight">
-              {{ deptBudgetList.grossWeight }} <span class="kg-style">kg</span>
+              {{ grossWeight }} <span class="kg-style">kg</span>
             </div>
             </div>
             <!-- <div v-else class="weight">{{weighingList.tare}} <span class="kg-style">kg</span></div> -->
             <!-- <div v-else class="weight">{{weighingList.tare}} <span class="kg-style">kg</span></div> -->
             <div class="car-no">{{ deptBudgetList.carNo }}</div>
             <div class="car-no">{{ deptBudgetList.carNo }}</div>
@@ -540,6 +540,7 @@
             value: '3',
             value: '3',
           },
           },
         ],
         ],
+        grossWeight:"",
       }
       }
     },
     },
     mounted() {
     mounted() {
@@ -595,6 +596,7 @@
       setVal(data) {
       setVal(data) {
         if (this.information == '毛重检斤') {
         if (this.information == '毛重检斤') {
           this.deptBudgetList.grossWeight = data
           this.deptBudgetList.grossWeight = data
+          this.grossWeight = data
         } else {
         } else {
           this.deptBudgetList.tare = data
           this.deptBudgetList.tare = data
         }
         }
@@ -1280,7 +1282,6 @@
                 this.deptBudgetList.deductionAmount = Math.round(
                 this.deptBudgetList.deductionAmount = Math.round(
                   this.deptBudgetList.deductionAmount * 1000
                   this.deptBudgetList.deductionAmount * 1000
                 )
                 )
-
                 // this.deptBudgetList.grossWeight /= 1000
                 // this.deptBudgetList.grossWeight /= 1000
                 //   this.deptBudgetList.tare /= 1000
                 //   this.deptBudgetList.tare /= 1000
                 //   this.deptBudgetList.netWeight /= 1000
                 //   this.deptBudgetList.netWeight /= 1000
@@ -1861,6 +1862,7 @@
         }
         }
       },
       },
       grossWeightchange(e) {
       grossWeightchange(e) {
+        this.grossWeight =  this.deptBudgetList.grossWeight
         if (
         if (
           this.deptBudgetList.grossWeight &&
           this.deptBudgetList.grossWeight &&
           this.deptBudgetList.tare &&
           this.deptBudgetList.tare &&

+ 3 - 2
src/views/warehouse/warehouseManagementNoWeightIn.vue

@@ -28,7 +28,7 @@
             <div class="car-type">皮重</div>
             <div class="car-type">皮重</div>
             <!-- <div class="weight">{{deptBudgetList.grossWeight}} <span class="kg-style">kg</span></div> -->
             <!-- <div class="weight">{{deptBudgetList.grossWeight}} <span class="kg-style">kg</span></div> -->
             <div class="weight">
             <div class="weight">
-              {{ dataList.tare }} <span class="kg-style">kg</span>
+              {{ tare }} <span class="kg-style">kg</span>
             </div>
             </div>
             <div class="car-no">{{ dataList.carNo }}</div>
             <div class="car-no">{{ dataList.carNo }}</div>
           </div>
           </div>
@@ -613,7 +613,8 @@
         if (this.information == '毛重检斤') {
         if (this.information == '毛重检斤') {
           this.dataList.grossWeight = data
           this.dataList.grossWeight = data
         } else {
         } else {
-          this.dataList.tare = data
+          this.tare = data
+           this.dataList.tare = data
         }
         }
       },
       },
       openPort() {
       openPort() {

+ 2 - 7
src/views/warehouse/warehouseManagementNoWeightOut.vue

@@ -27,7 +27,7 @@
           <div class="top">
           <div class="top">
             <div class="car-type">毛重</div>
             <div class="car-type">毛重</div>
             <div class="weight">
             <div class="weight">
-              {{ dataList.grossWeight }}
+              {{grossWeight }}
               <span class="kg-style">kg</span>
               <span class="kg-style">kg</span>
             </div>
             </div>
             <!-- <div class="weight">{{dataList.tare}} <span class="kg-style">kg</span></div> -->
             <!-- <div class="weight">{{dataList.tare}} <span class="kg-style">kg</span></div> -->
@@ -531,7 +531,6 @@
       this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
       this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
       this.dataList.outType = this.$route.query.outType//运输方式
       this.dataList.outType = this.$route.query.outType//运输方式
       this.dataList.selfLoading = this.$route.query.selfLoading//
       this.dataList.selfLoading = this.$route.query.selfLoading//
-      console.log(this.dataList)
       if (this.$route.query.automaticWeightAcquisition == '1') {
       if (this.$route.query.automaticWeightAcquisition == '1') {
         this.isShowBalance = true
         this.isShowBalance = true
       }
       }
@@ -552,16 +551,15 @@
       setVal(data) {
       setVal(data) {
         if (this.information == '毛重检斤') {
         if (this.information == '毛重检斤') {
           this.dataList.grossWeight = data
           this.dataList.grossWeight = data
+          this.grossWeight = data
         } else {
         } else {
           this.dataList.tare = data
           this.dataList.tare = data
         }
         }
-
       },
       },
       openPort() {
       openPort() {
         this.$refs.weightChild.openPort()
         this.$refs.weightChild.openPort()
       },
       },
       pureweight(status) {
       pureweight(status) {
-        console.log(this.deptBudgetList)
         if (
         if (
           this.deptBudgetList.netWeight &&
           this.deptBudgetList.netWeight &&
           this.deptBudgetList.tidalGrainWater &&
           this.deptBudgetList.tidalGrainWater &&
@@ -585,7 +583,6 @@
         this.$router.go(-1)
         this.$router.go(-1)
       },
       },
       dataFilter(val) {
       dataFilter(val) {
-        // console.log(val,"名")
         this.deptBudgetList.staffList = val
         this.deptBudgetList.staffList = val
         if (val) {
         if (val) {
           //val存在
           //val存在
@@ -1150,7 +1147,6 @@
         if(!this.carstatus){//若自运的合同该字段置空
         if(!this.carstatus){//若自运的合同该字段置空
           this.deptBudgetList.selfLoading = ""
           this.deptBudgetList.selfLoading = ""
         }
         }
-        console.log("查看carId",this.dataList)
         this.$confirm(`确定提交毛重检斤`, {
         this.$confirm(`确定提交毛重检斤`, {
             cancelButtonText: '取消',
             cancelButtonText: '取消',
             confirmButtonText: '确定',
             confirmButtonText: '确定',
@@ -1395,7 +1391,6 @@
         this.dialogViewSpareMoney = false
         this.dialogViewSpareMoney = false
       },
       },
       history(row) {
       history(row) {
-        console.log(row)
         billoperatehis({
         billoperatehis({
             id: row.id,
             id: row.id,
           })
           })

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

@@ -27,7 +27,7 @@
             <div class="car-type">皮重</div>
             <div class="car-type">皮重</div>
             <!-- <div class="weight">{{deptBudgetList.grossWeight}} <span class="kg-style">kg</span></div> -->
             <!-- <div class="weight">{{deptBudgetList.grossWeight}} <span class="kg-style">kg</span></div> -->
             <div class="weight">
             <div class="weight">
-              {{ deptBudgetList.tare }} <span class="kg-style">kg</span>
+              {{ tare }} <span class="kg-style">kg</span>
             </div>
             </div>
             <div class="car-no">{{ deptBudgetList.carNo }}</div>
             <div class="car-no">{{ deptBudgetList.carNo }}</div>
           </div>
           </div>
@@ -55,7 +55,7 @@
                 </ws-select>
                 </ws-select>
               </ws-form-item>
               </ws-form-item>
               <ws-form-item label="皮重(公斤)" span="1" prop="tare" class="readonly">
               <ws-form-item label="皮重(公斤)" span="1" prop="tare" class="readonly">
-                <ws-input :disabled="allowEdit" @input="tarechange" v-model="deptBudgetList.tare" type="number"
+                <ws-input :disabled="allowEdit" @input="tarechange" v-model="tare" type="number"
                   @mousewheel.native.prevent placeholder="请输入皮重" maxlength="100" size="small" />
                   @mousewheel.native.prevent placeholder="请输入皮重" maxlength="100" size="small" />
                 <el-button type="primary" v-if="information == '皮重检斤'" @click="openPort">重新获取</el-button>
                 <el-button type="primary" v-if="information == '皮重检斤'" @click="openPort">重新获取</el-button>
               </ws-form-item>
               </ws-form-item>
@@ -428,7 +428,7 @@
             value: '3',
             value: '3',
           },
           },
         ],
         ],
-        tare:"",//显示的皮重
+        tare:"0",//显示的皮重
         carChange1:"手动填写",
         carChange1:"手动填写",
         carjudge:false,
         carjudge:false,
         options2:[],
         options2:[],
@@ -460,7 +460,6 @@
         })
         })
         .toPromise()
         .toPromise()
         .then((response) => {
         .then((response) => {
-          console.log(response)
           this.deptBudgetList1 = response
           this.deptBudgetList1 = response
         })
         })
       if (this.$route.query.automaticWeightAcquisition == '1') {
       if (this.$route.query.automaticWeightAcquisition == '1') {
@@ -483,9 +482,8 @@
         if (this.information == '毛重检斤') {
         if (this.information == '毛重检斤') {
           this.deptBudgetList.grossWeight = data
           this.deptBudgetList.grossWeight = data
         } else {
         } else {
-          this.deptBudgetList.tare = data
+          this.tare = data
         }
         }
-
       },
       },
       openPort() {
       openPort() {
         this.$refs.weightChild.openPort()
         this.$refs.weightChild.openPort()
@@ -662,7 +660,6 @@
         }
         }
       },
       },
       pureweight(e) {
       pureweight(e) {
-        console.log(this.deptBudgetList)
         if (
         if (
           this.deptBudgetList.netWeight &&
           this.deptBudgetList.netWeight &&
           this.deptBudgetList.tidalGrainWater &&
           this.deptBudgetList.tidalGrainWater &&
@@ -1511,7 +1508,7 @@
         })
         })
       },
       },
       tarechange(e) {
       tarechange(e) {
-        this.tare = this.deptBudgetList.tare
+        this.deptBudgetList.tare = this.tare
         if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
         if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
           this.deptBudgetList.netWeight = Number(
           this.deptBudgetList.netWeight = Number(
             this.deptBudgetList.grossWeight - this.deptBudgetList.tare
             this.deptBudgetList.grossWeight - this.deptBudgetList.tare