瀏覽代碼

Merge branch 'master' of http://git.zthymaoyi.com/gdc/yiliangyiyun-pc

mxx 3 年之前
父節點
當前提交
362c2545f5

+ 3 - 3
public/static/weightCheck.html

@@ -164,7 +164,7 @@
             <td class="col col-bgc">霉变粒(%)</td>
             <td class="col col-bgc">霉变粒(%)</td>
             <td class="col">{{tableData.qualityInspectionManagement.mildewGrain}}</td>
             <td class="col">{{tableData.qualityInspectionManagement.mildewGrain}}</td>
             <td class="col col-bgc">扣杂(公斤)</td>
             <td class="col col-bgc">扣杂(公斤)</td>
-            <td class="col">{{tableData.buckleMiscellaneous}}</td>
+            <td class="col">{{tableData.qualityInspectionManagement.buckleMiscellaneous}}</td>
             <td class="col col-bgc">净重(公斤)</td>
             <td class="col col-bgc">净重(公斤)</td>
             <td class="col">{{tableData.netWeight}}</td>
             <td class="col">{{tableData.netWeight}}</td>
           </tr>
           </tr>
@@ -256,10 +256,10 @@
             <div>{{tableData.grossDate}}</div>
             <div>{{tableData.grossDate}}</div>
           </div>
           </div>
         
         
-        <div class="small-row">
+        <!-- <div class="small-row">
           <div>扣杂(公斤)</div>
           <div>扣杂(公斤)</div>
           <div>{{tableData.buckleMiscellaneous}}</div>
           <div>{{tableData.buckleMiscellaneous}}</div>
-        </div>
+        </div> -->
         <div class="small-row">
         <div class="small-row">
           <div>净重(公斤)</div>
           <div>净重(公斤)</div>
           <div>{{tableData.netWeight}}</div>
           <div>{{tableData.netWeight}}</div>

+ 32 - 29
src/views/houseSelfCollect/acquisitionManagementAdd.vue

@@ -60,8 +60,8 @@
                 v-model="baseInfoForm.paramType"
                 v-model="baseInfoForm.paramType"
                 :disabled="!isEdit"
                 :disabled="!isEdit"
               >
               >
-                <el-radio label="1" >扣重</el-radio>
-                <el-radio label="2">降幅</el-radio>
+                <el-radio label="1" >升水扣重</el-radio>
+                <el-radio label="2">升水扣钱</el-radio>
               </el-radio-group>
               </el-radio-group>
             </el-form-item>
             </el-form-item>
           </div>
           </div>
@@ -863,7 +863,6 @@
             case '新增':
             case '新增':
               isValidate = this.validate()
               isValidate = this.validate()
               if (isValidate) {
               if (isValidate) {
-                debugger
                 purchasePriceAdd(this.baseInfoForm).toPromise().then((response) => {
                 purchasePriceAdd(this.baseInfoForm).toPromise().then((response) => {
                   // this.tableData = response.records
                   // this.tableData = response.records
                   this.isCountShow = false
                   this.isCountShow = false
@@ -1047,8 +1046,7 @@
             }
             }
           }
           }
            console.log(index)
            console.log(index)
-          if(this.baseInfoForm.paramType == '2'){
-            for (let j = index; j >= 0; j--) {
+          for (let j = index; j >= 0; j--) {
               if (_priceList[i].detailList[j] && _priceList[i].detailList[j].type != 4) {
               if (_priceList[i].detailList[j] && _priceList[i].detailList[j].type != 4) {
                 if (_priceList[i].detailList[j].type != 1) {
                 if (_priceList[i].detailList[j].type != 1) {
                   let baseprice = ''
                   let baseprice = ''
@@ -1099,7 +1097,6 @@
                 }
                 }
               }
               }
             }
             }
-          }
           
           
             // for (let j = (_priceList[i].detailList.length + 1) / 2 - 1; j > 0; j--) {
             // for (let j = (_priceList[i].detailList.length + 1) / 2 - 1; j > 0; j--) {
             //   if (_priceList[i].detailList[j] && _priceList[i].detailList[j].type != 4) {
             //   if (_priceList[i].detailList[j] && _priceList[i].detailList[j].type != 4) {
@@ -1128,18 +1125,17 @@
             // }
             // }
             this.left.push(_leftObj)
             this.left.push(_leftObj)
             console.log('this.left', this.left)
             console.log('this.left', this.left)
-            for (let k = index; k <= _priceList[i].detailList.length; k++) {
-              if (_priceList[i].detailList[k] && _priceList[i].detailList[k].type != 4) {
-                if (_priceList[i].detailList[k].type != 3) {
-                  let baseprice = ''
-                  if(this.baseInfoForm.paramType == '1'){
+            if(this.baseInfoForm.paramType == '2'){
+              for (let k = index; k <= _priceList[i].detailList.length; k++) {
+                if (_priceList[i].detailList[k] && _priceList[i].detailList[k].type != 4) {
+                  if (_priceList[i].detailList[k].type != 3) {
+                    let baseprice = ''
                     if (k == index) {
                     if (k == index) {
-                      baseprice = parseFloat(this.baseInfoForm.dryGrainPrice)
+                        baseprice = parseFloat(_priceList[i].basicUnitPrice)
                     } else {
                     } else {
-                      baseprice = parseFloat(parseFloat(this.baseInfoForm.dryGrainPrice) - (parseFloat(_priceList[i].detailList[k+2]
-                        .water) - parseFloat(_priceList[i].detailList[k].water)) / 0.1 * (this.baseInfoForm.dryGrainPrice * (parseFloat(_priceList[i].detailList[k + 2].water) - parseFloat(_priceList[i].detailList[
-                        k].water))*parseFloat(_priceList[i].detailList[k + 1].jfprice)/100/((parseFloat(_priceList[i].detailList[k + 2].water) - parseFloat(_priceList[i].detailList[
-                        k].water))/0.1)))
+                        baseprice = parseFloat(parseFloat(_priceList[i].basicUnitPrice) - (parseFloat(_priceList[i].detailList[k]
+                          .water) - parseFloat(_priceList[i].detailList[k - 2].water)) / 0.1 * parseFloat(_priceList[i]
+                          .detailList[k - 1].jfprice))
                     }
                     }
                     _rightObj.priceList.push({
                     _rightObj.priceList.push({
                       index: k,
                       index: k,
@@ -1147,21 +1143,28 @@
                       priceEnd: parseFloat(_priceList[i].detailList[k + 2].water),
                       priceEnd: parseFloat(_priceList[i].detailList[k + 2].water),
                       type: parseFloat(_priceList[i].detailList[k].type),
                       type: parseFloat(_priceList[i].detailList[k].type),
                       water: _priceList[i].detailList[k].water,
                       water: _priceList[i].detailList[k].water,
-                      jfprice: parseFloat(this.baseInfoForm.dryGrainPrice * (parseFloat(_priceList[i].detailList[k + 2].water) - parseFloat(_priceList[i].detailList[
-                        k].water))*parseFloat(_priceList[i].detailList[k + 1].jfprice)/100/((parseFloat(_priceList[i].detailList[k + 2].water) - parseFloat(_priceList[i].detailList[
-                        k].water))/0.1)),
+                      jfprice: parseFloat(_priceList[i].detailList[k + 1].jfprice),
                       baseprice: baseprice,
                       baseprice: baseprice,
                       price: (parseFloat(_priceList[i].detailList[k + 2].water) - parseFloat(_priceList[i].detailList[
                       price: (parseFloat(_priceList[i].detailList[k + 2].water) - parseFloat(_priceList[i].detailList[
                         k].water)) / 0.1 * parseFloat(_priceList[i].detailList[k + 1].jfprice)
                         k].water)) / 0.1 * parseFloat(_priceList[i].detailList[k + 1].jfprice)
                     })
                     })
                   }
                   }
-                  else{
-                    if (k == index) {
-                      baseprice = parseFloat(_priceList[i].basicUnitPrice)
+                }
+              }
+            }
+            else{
+              for (let k = 0; k <= _priceList[i].detailList.length; k++) {
+                if (_priceList[i].detailList[k] && _priceList[i].detailList[k].type != 4) {
+                  if (_priceList[i].detailList[k].type != 3) {
+                    let baseprice = ''
+                    if (k == 0) {
+                        baseprice = parseFloat(this.baseInfoForm.dryGrainPrice)
                     } else {
                     } else {
-                      baseprice = parseFloat(parseFloat(_priceList[i].basicUnitPrice) - (parseFloat(_priceList[i].detailList[k]
-                        .water) - parseFloat(_priceList[i].detailList[k - 2].water)) / 0.1 * parseFloat(_priceList[i]
-                        .detailList[k - 1].jfprice))
+                      var waterCount = 0
+                      for(var p=0;p<_rightObj.priceList.length;p++){
+                        waterCount += (_rightObj.priceList[p].priceEnd - _rightObj.priceList[p].priceStart)*_rightObj.priceList[p].param/100
+                      }
+                      baseprice = parseFloat(parseFloat(this.baseInfoForm.dryGrainPrice) * ( 1- waterCount))
                     }
                     }
                     _rightObj.priceList.push({
                     _rightObj.priceList.push({
                       index: k,
                       index: k,
@@ -1169,18 +1172,19 @@
                       priceEnd: parseFloat(_priceList[i].detailList[k + 2].water),
                       priceEnd: parseFloat(_priceList[i].detailList[k + 2].water),
                       type: parseFloat(_priceList[i].detailList[k].type),
                       type: parseFloat(_priceList[i].detailList[k].type),
                       water: _priceList[i].detailList[k].water,
                       water: _priceList[i].detailList[k].water,
-                      jfprice: parseFloat(_priceList[i].detailList[k + 1].jfprice),
+                      param:_priceList[i].detailList[k + 1].jfprice,
+                      jfprice: parseFloat(this.baseInfoForm.dryGrainPrice * (parseFloat(_priceList[i].detailList[k + 2].water) - parseFloat(_priceList[i].detailList[
+                        k].water))*parseFloat(_priceList[i].detailList[k + 1].jfprice)/100/((parseFloat(_priceList[i].detailList[k + 2].water) - parseFloat(_priceList[i].detailList[
+                        k].water))/0.1)),
                       baseprice: baseprice,
                       baseprice: baseprice,
                       price: (parseFloat(_priceList[i].detailList[k + 2].water) - parseFloat(_priceList[i].detailList[
                       price: (parseFloat(_priceList[i].detailList[k + 2].water) - parseFloat(_priceList[i].detailList[
                         k].water)) / 0.1 * parseFloat(_priceList[i].detailList[k + 1].jfprice)
                         k].water)) / 0.1 * parseFloat(_priceList[i].detailList[k + 1].jfprice)
                     })
                     })
                   }
                   }
-                  
                 }
                 }
               }
               }
             }
             }
 
 
-
             // for (let k = (_priceList[i].detailList.length + 1) / 2 - 1; k <= _priceList[i].detailList.length; k++) {
             // for (let k = (_priceList[i].detailList.length + 1) / 2 - 1; k <= _priceList[i].detailList.length; k++) {
             //   if (_priceList[i].detailList[k] && _priceList[i].detailList[k].type != 4) {
             //   if (_priceList[i].detailList[k] && _priceList[i].detailList[k].type != 4) {
             //     if (_priceList[i].detailList[k].type != 3) {
             //     if (_priceList[i].detailList[k].type != 3) {
@@ -1214,7 +1218,6 @@
       // 获取当前价格左右价格区间数据
       // 获取当前价格左右价格区间数据
       getOtherPrice(list, water, direction) {},
       getOtherPrice(list, water, direction) {},
       calculatePriceRight(_waterMax) {
       calculatePriceRight(_waterMax) {
-        debugger
         //获取每个分界值
         //获取每个分界值
         let _listResult = []
         let _listResult = []
         for (let i = 0; i < this.right.length; i++) {
         for (let i = 0; i < this.right.length; i++) {

+ 1 - 1
src/views/houseSelfCollect/component/weightCheckPrint.vue

@@ -44,7 +44,7 @@
             <td class="col col-bgc">霉变粒(%)</td>
             <td class="col col-bgc">霉变粒(%)</td>
             <td class="col">{{tableData.qualityInspectionManagement.mildewGrain}}</td>
             <td class="col">{{tableData.qualityInspectionManagement.mildewGrain}}</td>
             <td class="col col-bgc">扣杂(公斤)</td>
             <td class="col col-bgc">扣杂(公斤)</td>
-            <td class="col">{{tableData.buckleMiscellaneous}}</td>
+            <td class="col">{{tableData.qualityInspectionManagement.buckleMiscellaneous}}</td>
             <td class="col col-bgc">净重(公斤)</td>
             <td class="col col-bgc">净重(公斤)</td>
             <td class="col">{{tableData.netWeight}}</td>
             <td class="col">{{tableData.netWeight}}</td>
           </tr>
           </tr>

+ 5 - 3
src/views/houseSelfCollect/inspectInfo.vue

@@ -53,7 +53,7 @@
                 :disabled="disabled" />
                 :disabled="disabled" />
             </ws-form-item>
             </ws-form-item>
             <ws-form-item v-else label="扣杂" span="1" prop="buckleMiscellaneous">
             <ws-form-item v-else label="扣杂" span="1" prop="buckleMiscellaneous">
-              <ws-input type="number" @mousewheel.native.prevent v-model="inspect.buckleMiscellaneous" placeholder="请输入扣杂" maxlength="100" size="small"
+              <ws-input type="number" @mousewheel.native.prevent v-model="inspect.buckleMiscellaneous" @input="waterContentChange" placeholder="请输入扣杂" maxlength="100" size="small"
                 :disabled="disabled" />
                 :disabled="disabled" />
             </ws-form-item>
             </ws-form-item>
             <ws-form-item label="类型" span="1" prop="type">
             <ws-form-item label="类型" span="1" prop="type">
@@ -193,6 +193,7 @@
           tidalGrainPrice: 0,
           tidalGrainPrice: 0,
           buckleWeightRatio: 0,
           buckleWeightRatio: 0,
           natureOfGrainPurchase:'贸易粮',
           natureOfGrainPurchase:'贸易粮',
+          buckleMiscellaneous:0,
           type:'潮粮'
           type:'潮粮'
         }
         }
       }
       }
@@ -200,7 +201,7 @@
       this.warehouseName = this.$route.query.warehouseName
       this.warehouseName = this.$route.query.warehouseName
       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
-      this.purchasePriceList = this.$route.query.purchasePriceList
+      // this.purchasePriceList = this.$route.query.purchasePriceList
       this.id = this.$route.query.id
       this.id = this.$route.query.id
       if (this.types == 2) {
       if (this.types == 2) {
         this.disabled = true
         this.disabled = true
@@ -676,7 +677,7 @@
             .toPromise()
             .toPromise()
             .then((response) => {
             .then((response) => {
               if(that.inspect.paramType == '1'){
               if(that.inspect.paramType == '1'){
-                that.inspect.tidalGrainPrice = parseFloat(response) - parseFloat(that.inspect.buckleMiscellaneous)/100*parseFloat(that.inspect.dryGrainPrice)
+                that.inspect.tidalGrainPrice = parseFloat(parseFloat(response) - parseFloat(that.inspect.buckleMiscellaneous)/100*parseFloat(that.inspect.dryGrainPrice)).toFixed(4)
               }else{
               }else{
                 that.inspect.tidalGrainPrice = response
                 that.inspect.tidalGrainPrice = response
               }
               }
@@ -728,6 +729,7 @@
           .then((response) => {
           .then((response) => {
             this.goodNameList = []
             this.goodNameList = []
             this.goodNameList = response
             this.goodNameList = response
+            this.purchasePriceList = response
           })
           })
         // 品级
         // 品级
         packList({
         packList({

+ 2 - 9
src/views/houseSelfCollect/inspectionManagement.vue

@@ -151,9 +151,7 @@ export default {
       isShowPrint: false,
       isShowPrint: false,
       printData: {},
       printData: {},
       deductWeight:'',//扣重比
       deductWeight:'',//扣重比
-      saleLimit:'',
-      purchasePriceList:[]
-
+      saleLimit:''
     }
     }
   },
   },
   activated() {
   activated() {
@@ -188,8 +186,7 @@ export default {
           id: row.id,
           id: row.id,
           warehouseName: this.warehouseName,
           warehouseName: this.warehouseName,
           count: this.warehouseCount,
           count: this.warehouseCount,
-          warehouseNo: this.warehouseNo,
-          purchasePriceList:this.purchasePriceList
+          warehouseNo: this.warehouseNo
         },
         },
       })
       })
     },
     },
@@ -201,7 +198,6 @@ export default {
           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[1].payname = this.warehouseList[i].value
           this.WAREHOUSE[1].payname = this.warehouseList[i].value
-          this.purchasePriceList = this.warehouseList[i].purchasePriceList
         }
         }
       }
       }
       this.getList()
       this.getList()
@@ -255,14 +251,12 @@ export default {
               value: 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,
               No:response[i].commonWarehouseNo
               No:response[i].commonWarehouseNo
             })
             })
             if (this.cangid&&this.cangid == response[i].id) {
             if (this.cangid&&this.cangid == response[i].id) {
               this.warehouseName = response[i].warehouseName
               this.warehouseName = response[i].warehouseName
               this.warehouseCount =  response[i].count
               this.warehouseCount =  response[i].count
               this.warehouseNo =  response[i].commonWarehouseNo
               this.warehouseNo =  response[i].commonWarehouseNo
-              this.purchasePriceList =  response[i].purchasePriceList
             } 
             } 
           }
           }
           if(this.warehouseList.length > 0 && !this.cangid){
           if(this.warehouseList.length > 0 && !this.cangid){
@@ -270,7 +264,6 @@ export default {
             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.WAREHOUSE[1].payname = this.warehouseList[0].value
             this.WAREHOUSE[1].payname = this.warehouseList[0].value
           }
           }
           this.getList()
           this.getList()

+ 1 - 13
src/views/houseSelfCollect/paymentManagement.vue

@@ -390,22 +390,10 @@ export default {
       this.getList()
       this.getList()
     },
     },
     settlement(index, row) {
     settlement(index, row) {
-      var data = {}
-      var data1 = {}
-      for (let i = 0; i < this.warehouseList.length; i++) {
-        if (this.warehouseList[i].id == this.warehouseNameKey) {
-          data = this.warehouseList[i]
-        }
-      }
-      for (let i = 0; i < data.purchasePriceList.length; i++) {
-        if (data.purchasePriceList[i].goodsName == row.goodsName) {
-          data1 = data.purchasePriceList[i]
-        }
-      }
       if (row.goodsName)
       if (row.goodsName)
         this.$router.push({
         this.$router.push({
           path: 'settlement',
           path: 'settlement',
-          query: { type: index, id: row.id, waterMin: data1.waterMin }
+          query: { type: index, id: row.id }
         })
         })
     },
     },
     payment() {
     payment() {

+ 12 - 7
src/views/houseSelfCollect/settlement.vue

@@ -491,13 +491,18 @@ export default {
           } 
           } 
           this.paymentList.buckleWeightRatio = this.paymentList.qualityInspectionManagement.buckleWeightRatio
           this.paymentList.buckleWeightRatio = this.paymentList.qualityInspectionManagement.buckleWeightRatio
           this.paymentList.tidalGrainPrice = this.paymentList.tidalGrainPrice.toFixed(4)
           this.paymentList.tidalGrainPrice = this.paymentList.tidalGrainPrice.toFixed(4)
-          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.qualityInspectionManagement.weightDeduction=this.paymentList.qualityInspectionManagement.weightDeduction.toFixed(2)
-          this.paymentList.base=(100-this.paymentList.qualityInspectionManagement.weightDeduction)/100
-          this.paymentList.base = this.paymentList.base.toFixed(3)
-          this.paymentList.pureWeight=this.paymentList.base*this.paymentList.weighingManagement.netWeight
-          this.paymentList.pureWeight =  this.paymentList.pureWeight.toFixed(2)
+          if(this.paymentList.qualityInspectionManagement.paramType == '2'){
+            this.paymentList.qualityInspectionManagement.weightDeduction=(this.paymentList.qualityInspectionManagement.waterContent-this.paymentList.qualityInspectionManagement.waterMin)*this.paymentList.buckleWeightRatio
+            this.paymentList.qualityInspectionManagement.weightDeduction=this.paymentList.qualityInspectionManagement.weightDeduction.toFixed(2)
+            this.paymentList.base=(100-this.paymentList.qualityInspectionManagement.weightDeduction)/100
+            this.paymentList.base = this.paymentList.base.toFixed(3)
+            this.paymentList.pureWeight=this.paymentList.base*this.paymentList.weighingManagement.netWeight
+            this.paymentList.pureWeight =  this.paymentList.pureWeight.toFixed(2)
+          }
+          else{
+            this.paymentList.pureWeight=this.paymentList.weighingManagement.netWeight * (100 - this.paymentList.param)/100
+            this.paymentList.pureWeight =  this.paymentList.pureWeight.toFixed(2)
+          }
           if(!this.paymentList.dryGrainPrice){
           if(!this.paymentList.dryGrainPrice){
             this.paymentList.dryGrainPrice=this.paymentList.qualityInspectionManagement.tidalGrainPrice/this.paymentList.base
             this.paymentList.dryGrainPrice=this.paymentList.qualityInspectionManagement.tidalGrainPrice/this.paymentList.base
           }
           }

+ 4 - 7
src/views/houseSelfCollect/weighingManagement.vue

@@ -98,7 +98,7 @@
           <el-button @click="weightCheck(scope.row, 1)" v-if=" scope.row.status == '已称毛重' || scope.row.status == '已质检' " v-hasPermission="`acquisitionManagement.acquisitionWeight.mao`" >毛重</el-button >
           <el-button @click="weightCheck(scope.row, 1)" v-if=" scope.row.status == '已称毛重' || scope.row.status == '已质检' " v-hasPermission="`acquisitionManagement.acquisitionWeight.mao`" >毛重</el-button >
           <!-- scope.row.paymentManagement.status == '待结算' && -->
           <!-- scope.row.paymentManagement.status == '待结算' && -->
           <el-button :disabled = "scope.row.allow == 2" @click="weightCheck(scope.row, 2)"  v-if=" (scope.row.status == '已称毛重' || scope.row.status == '已称皮重') " v-hasPermission="`acquisitionManagement.acquisitionWeight.weight`">皮重</el-button>
           <el-button :disabled = "scope.row.allow == 2" @click="weightCheck(scope.row, 2)"  v-if=" (scope.row.status == '已称毛重' || scope.row.status == '已称皮重') " v-hasPermission="`acquisitionManagement.acquisitionWeight.weight`">皮重</el-button>
-          <el-button @click="print(scope.row)" v-if="scope.row.status == '已称皮重'" v-hasPermission="`acquisitionManagement.acquisitionWeight.print`">打印</el-button >
+          <el-button @click="print(scope.row)" v-if="scope.row.status == '已称皮重' ||scope.row.status == '已称毛重'" v-hasPermission="`acquisitionManagement.acquisitionWeight.print`">打印</el-button >
         </template>
         </template>
       </el-table-column>
       </el-table-column>
     </el-table>
     </el-table>
@@ -200,7 +200,6 @@ export default {
         if (this.warehouseList[i].value == e) {
         if (this.warehouseList[i].value == e) {
           this.warehouseId = this.warehouseList[i].warehouseId
           this.warehouseId = this.warehouseList[i].warehouseId
           this.cangid = this.warehouseList[i].warehouseId
           this.cangid = this.warehouseList[i].warehouseId
-          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.WAREHOUSE[2].payname = this.warehouseList[i].value
           this.common.name  =  this.warehouseList[i].value
           this.common.name  =  this.warehouseList[i].value
@@ -231,8 +230,9 @@ export default {
           warehouseId: this.warehouseId,
           warehouseId: this.warehouseId,
           monitorUrl1: this.monitorUrl1,
           monitorUrl1: this.monitorUrl1,
           monitorUrl2: this.monitorUrl2,
           monitorUrl2: this.monitorUrl2,
-          purchasePriceList: this.purchasePriceList,
-          allowEdit:this.allowEdit
+          allowEdit:this.allowEdit,
+          cangid:this.cangid,
+          paramType:row.qualityInspectionManagement.paramType
         },
         },
       })
       })
     },
     },
@@ -260,7 +260,6 @@ export default {
             this.warehouseList.push({
             this.warehouseList.push({
               value: response[i].warehouseName,
               value: response[i].warehouseName,
               warehouseId: response[i].id,
               warehouseId: response[i].id,
-              warehouseList:response[i].purchasePriceList,
               allowEdit:response[i].allowEdit,
               allowEdit:response[i].allowEdit,
               monitorUrl1:response[i].monitorUrl1,
               monitorUrl1:response[i].monitorUrl1,
               monitorUrl2:response[i].monitorUrl2
               monitorUrl2:response[i].monitorUrl2
@@ -273,14 +272,12 @@ export default {
               this.warehouseNo =  response[i].commonWarehouseNo
               this.warehouseNo =  response[i].commonWarehouseNo
               this.monitorUrl1 =  response[i].monitorUrl1
               this.monitorUrl1 =  response[i].monitorUrl1
               this.monitorUrl2 =  response[i].monitorUrl2
               this.monitorUrl2 =  response[i].monitorUrl2
-              this.purchasePriceList =  response[i].purchasePriceList
             }
             }
           }
           }
            if(this.warehouseList.length > 0 && !this.cangid){
            if(this.warehouseList.length > 0 && !this.cangid){
             this.warehouseName = this.warehouseList[0].value
             this.warehouseName = this.warehouseList[0].value
             this.cangid =  this.warehouseList[0].warehouseId
             this.cangid =  this.warehouseList[0].warehouseId
             this.warehouseId =  this.warehouseList[0].warehouseId
             this.warehouseId =  this.warehouseList[0].warehouseId
-            this.purchasePriceList =  this.warehouseList[0].purchasePriceList
             this.WAREHOUSE[1].payname = this.warehouseList[0].value
             this.WAREHOUSE[1].payname = this.warehouseList[0].value
             this.common.name  =  this.warehouseList[0].value
             this.common.name  =  this.warehouseList[0].value
             this.monitorUrl1 =  this.warehouseList[0].monitorUrl1
             this.monitorUrl1 =  this.warehouseList[0].monitorUrl1

+ 26 - 15
src/views/houseSelfCollect/weightCheck.vue

@@ -86,10 +86,10 @@
               </ws-form-item>
               </ws-form-item>
               <el-button type="primary" v-if="index != 0" @click="openPort">重新获取</el-button>
               <el-button type="primary" v-if="index != 0" @click="openPort">重新获取</el-button>
               <div class="formItem">
               <div class="formItem">
-                <!-- <ws-form-item label="扣重(公斤)" span="1" prop="buckleWeightRatio" v-if="information == '皮重'">
+                <ws-form-item label="扣重(公斤)" span="1" prop="buckleWeightRatio" v-if="information == '皮重' && paramType == '2'">
                   <ws-input type="number" @mousewheel.native.prevent v-model="weighingList.buckleMiscellaneous" @input="calculation" placeholder="请输入扣重"
                   <ws-input type="number" @mousewheel.native.prevent v-model="weighingList.buckleMiscellaneous" @input="calculation" placeholder="请输入扣重"
                     maxlength="100" size="small" />
                     maxlength="100" size="small" />
-                </ws-form-item> -->
+                </ws-form-item>
 
 
                 <ws-form-item label="净重(公斤)" span="1" prop="netWeight" v-if="information == '皮重'">
                 <ws-form-item label="净重(公斤)" span="1" prop="netWeight" v-if="information == '皮重'">
                   <ws-input type="number" @mousewheel.native.prevent v-model="weighingList.netWeight" placeholder="请输入净重" maxlength="100" size="small"
                   <ws-input type="number" @mousewheel.native.prevent v-model="weighingList.netWeight" placeholder="请输入净重" maxlength="100" size="small"
@@ -98,7 +98,7 @@
               </div>
               </div>
             </ws-info-table>
             </ws-info-table>
             <div class="but">
             <div class="but">
-              <el-button @click="cancel" type="primary">取消</el-button>
+              <el-button @click="cancel" type="primary">关闭</el-button>
               <el-button @click="print" v-if="this.information == '毛重'" type="primary">保存</el-button>
               <el-button @click="print" v-if="this.information == '毛重'" type="primary">保存</el-button>
               <el-button @click="print" v-if="this.information == '皮重'" type="primary">保存并打印</el-button>
               <el-button @click="print" v-if="this.information == '皮重'" type="primary">保存并打印</el-button>
             </div>
             </div>
@@ -158,7 +158,8 @@
     grossWeight,
     grossWeight,
     getamount,
     getamount,
     getPrint,
     getPrint,
-    getweighingList
+    getweighingList,
+    getinspectLookGoods
   } from '@/model/houseSelfCollect/index'
   } from '@/model/houseSelfCollect/index'
   import weightCheckPrint from './component/weightCheckPrint.vue'
   import weightCheckPrint from './component/weightCheckPrint.vue'
   import html2canvas from 'html2canvas'
   import html2canvas from 'html2canvas'
@@ -204,10 +205,14 @@
         param: 9600,
         param: 9600,
         monitorUrl1: '',
         monitorUrl1: '',
         monitorUrl2: '',
         monitorUrl2: '',
+        cangid:'',
+        paramType:'1'
       }
       }
     },
     },
     activated() {
     activated() {
       console.log(this.common.name)
       console.log(this.common.name)
+      this.cangid = this.$route.query.cangid
+      this.paramType = this.$route.query.paramType
       this.getList()
       this.getList()
       this.tpyeNo = this.$route.query.tpyeNo
       this.tpyeNo = this.$route.query.tpyeNo
       this.weighingList.number = this.$route.query.number
       this.weighingList.number = this.$route.query.number
@@ -225,8 +230,8 @@
         this.$route.query.grossWeight = 0
         this.$route.query.grossWeight = 0
       }
       }
       this.weighingList.grossWeight = this.$route.query.grossWeight
       this.weighingList.grossWeight = this.$route.query.grossWeight
-      this.purchasePriceList = this.$route.query.purchasePriceList
-      console.log(this.purchasePriceList, '上限')
+      // this.purchasePriceList = this.$route.query.purchasePriceList
+      // console.log(this.purchasePriceList, '上限')
       this.allowEdit = this.$route.query.allowEdit
       this.allowEdit = this.$route.query.allowEdit
       if (this.allowEdit == 0) {
       if (this.allowEdit == 0) {
         this.disabled = true
         this.disabled = true
@@ -251,12 +256,15 @@
         this.pageSize = val
         this.pageSize = val
         this.getList()
         this.getList()
       },
       },
-      handleCurrentChange(val) {
-        this.currentPage = val
-        console.log(`当前页: ${val}`)
-        this.getList()
-      },
       getList() {
       getList() {
+        // 货名
+        getinspectLookGoods({
+            warehouseId: this.cangid
+          })
+          .toPromise()
+          .then((response) => {
+            this.purchasePriceList = response
+          })
         getweighingList({
         getweighingList({
             compId: sessionStorage.getItem('ws-pf_compId'),
             compId: sessionStorage.getItem('ws-pf_compId'),
             currentPage: this.currentPage,
             currentPage: this.currentPage,
@@ -350,7 +358,9 @@
         this.index = val
         this.index = val
         if (this.information == '皮重') {
         if (this.information == '皮重') {
           this.information = '毛重'
           this.information = '毛重'
+          this.tpyeNo = 1
         } else {
         } else {
+          this.tpyeNo = 2
           this.information = '皮重'
           this.information = '皮重'
         }
         }
         this.getList()
         this.getList()
@@ -366,6 +376,7 @@
           weight: val.grossWeight
           weight: val.grossWeight
         }
         }
         this.weighingList = val;
         this.weighingList = val;
+        this.paramType = val.qualityInspectionManagement.paramType
       },
       },
       async closePort() {
       async closePort() {
         console.log('closePort');
         console.log('closePort');
@@ -468,9 +479,9 @@
       },
       },
       closePrint() {
       closePrint() {
         this.isShowPrint = false
         this.isShowPrint = false
-        this.$router.push({
-          path: 'weighingManagement'
-        })
+        // this.$router.push({
+        //   path: 'weighingManagement'
+        // })
       },
       },
       print() {
       print() {
         if (!this.weighingList.grossWeight) {
         if (!this.weighingList.grossWeight) {
@@ -604,7 +615,7 @@
                               title: '成功',
                               title: '成功',
                               message: '保存成功',
                               message: '保存成功',
                             })
                             })
-                            this.$router.go(-1)
+                            // this.$router.go(-1)
                           })
                           })
                           .catch((response) => {
                           .catch((response) => {
                             // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
                             // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))

+ 0 - 1
src/views/outboundManagement/weighingManagement.vue

@@ -204,7 +204,6 @@
 						}
 						}
 						this.warehouseName = this.warehouseList[0].value
 						this.warehouseName = this.warehouseList[0].value
 						this.warehouseId = this.warehouseList[0].warehouseId
 						this.warehouseId = this.warehouseList[0].warehouseId
-						this.purchasePriceList = this.warehouseList[0].warehouseList
 						this.getList()
 						this.getList()
 					})
 					})
 			},
 			},

+ 1 - 1
src/views/tranManagement/tranManagementReceivingloading.vue

@@ -76,7 +76,7 @@
             >{{ deptBudgetList.deliveryDateEnd }}</ws-form-item>
             >{{ deptBudgetList.deliveryDateEnd }}</ws-form-item>
             <!--合同编号-->
             <!--合同编号-->
             <ws-form-item label="合同编号" span="1" prop="contractNo">{{ deptBudgetList.contractNo }}</ws-form-item>
             <ws-form-item label="合同编号" span="1" prop="contractNo">{{ deptBudgetList.contractNo }}</ws-form-item>
-            <ws-form-item label="运输方式" span="1" prop="contractNo">{{ deptBudgetList.contractNo }}</ws-form-item>
+            <ws-form-item label="运输方式" span="1" prop="contractNo">{{ deptBudgetList.tranType }}</ws-form-item>
           </ws-info-table>
           </ws-info-table>
 
 
           <div class="small-title" style="font-size: 16px;width: 50%;float: left;">卸车详情</div>
           <div class="small-title" style="font-size: 16px;width: 50%;float: left;">卸车详情</div>

+ 1 - 1
src/views/tranManagement/tranManagementTransporFeedback.vue

@@ -69,7 +69,7 @@
         <!--合同编号-->
         <!--合同编号-->
         <ws-form-item label="合同编号" span="1" prop="contractNo">{{ deptBudgetList.contractNo }}</ws-form-item>
         <ws-form-item label="合同编号" span="1" prop="contractNo">{{ deptBudgetList.contractNo }}</ws-form-item>
         <!-- 运输方式 -->
         <!-- 运输方式 -->
-        <ws-form-item label="运输方式" span="1" prop="contractNo">{{ deptBudgetList.contractNo }}</ws-form-item>
+        <ws-form-item label="运输方式" span="1" prop="contractNo">{{ deptBudgetList.tranType }}</ws-form-item>
       </ws-info-table>
       </ws-info-table>
       <div class="small-title" style="font-size: 16px; width: 50%;float: left;">装车详情</div>
       <div class="small-title" style="font-size: 16px; width: 50%;float: left;">装车详情</div>
       <!-- 导入 -->
       <!-- 导入 -->