gjy 2 years ago
parent
commit
d9afba7fed

+ 5 - 4
public/static/printdry.html

@@ -163,15 +163,16 @@
                       <td class="col" >{{printData.carNo}}</td>
                       <td class="col" >{{printData.carNo}}</td>
                   </tr>
                   </tr>
                   <tr class="row">
                   <tr class="row">
-                      <td colspan="3" class="col col-bgc">收货单位</td>
-                      <td class="col" colspan="5">{{print_company_name}}</td>
+                      <td colspan="3" class="col col-bgc">收货仓库</td>
+                      <td class="col" colspan="5" v-if="print_company_name!='白城市鹏羽粮食贸易有限公司'">{{print_company_name}}</td>
+                      <td class="col" colspan="5" v-else>北京天维康油脂调销中心有限公司</td>
                   </tr>
                   </tr>
                   <tr class="row">
                   <tr class="row">
                       <td class="col col-bgc">货名</td>
                       <td class="col col-bgc">货名</td>
                       <td class="col">{{printData.goodsName}}</td>
                       <td class="col">{{printData.goodsName}}</td>
                       <td class="col col-bgc">类型</td>
                       <td class="col col-bgc">类型</td>
                       <td class="col">干粮</td>
                       <td class="col">干粮</td>
-                      <td class="col col-bgc">{{printData.goodsName != '大豆' ? '容(克/升)' : '蛋白'}}</td>
+                      <td class="col col-bgc">{{printData.goodsName != '大豆' ? '容(克/升)' : '蛋白'}}</td>
                       <td class="col">
                       <td class="col">
                       </td>
                       </td>
                       <td class="col col-bgc">不完善粒(%)</td>
                       <td class="col col-bgc">不完善粒(%)</td>
@@ -270,7 +271,7 @@
                     <td class="col">{{printData.goodsName}}</td>
                     <td class="col">{{printData.goodsName}}</td>
                     <td class="col col-bgc">类型</td>
                     <td class="col col-bgc">类型</td>
                     <td class="col">干粮</td>
                     <td class="col">干粮</td>
-                    <td class="col col-bgc">{{printData.goodsName != '大豆' ? '容(克/升)' : '蛋白'}}</td>
+                    <td class="col col-bgc">{{printData.goodsName != '大豆' ? '容(克/升)' : '蛋白'}}</td>
                     <td class="col">
                     <td class="col">
                     </td>
                     </td>
                     <td class="col col-bgc">不完善粒(%)</td>
                     <td class="col col-bgc">不完善粒(%)</td>

+ 1 - 0
src/views/warehousenew/dryRecord.vue

@@ -50,6 +50,7 @@
                 <el-table-column prop="dryNumber" label="业务编号"></el-table-column>
                 <el-table-column prop="dryNumber" label="业务编号"></el-table-column>
                 <el-table-column prop="carNo" label="车牌号" width="130"></el-table-column>
                 <el-table-column prop="carNo" label="车牌号" width="130"></el-table-column>
                 <el-table-column prop="goodsName" label="货名"></el-table-column>
                 <el-table-column prop="goodsName" label="货名"></el-table-column>
+                <el-table-column prop="binNumber" label="仓位号"></el-table-column>
                 <el-table-column prop="weigher" label="检斤员"></el-table-column>
                 <el-table-column prop="weigher" label="检斤员"></el-table-column>
                 <el-table-column prop="grossWeight" label="毛重(公斤)" width="100"></el-table-column>
                 <el-table-column prop="grossWeight" label="毛重(公斤)" width="100"></el-table-column>
                 <el-table-column prop="tare" label="皮重(公斤)" width="100"></el-table-column>
                 <el-table-column prop="tare" label="皮重(公斤)" width="100"></el-table-column>

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

@@ -92,6 +92,13 @@
                                                 <el-button @click="carNoTypechange" v-if="tpyeNo == 2">{{ cartips }}
                                                 <el-button @click="carNoTypechange" v-if="tpyeNo == 2">{{ cartips }}
                                                 </el-button>
                                                 </el-button>
                                             </ws-form-item>
                                             </ws-form-item>
+                                            <ws-form-item v-if="tpyeNo == 2 && warehouseType == 1" label="仓位号" span="1" prop="inOutTaskNo">
+                                              <el-select @change="binNumberchange" filterable clearable
+                                                v-model="weighingList.binNumber" placeholder="请选择仓位号" class="typeselect">
+                                                <el-option v-for="item in positionInfos" :key="item.id" :label="item.binNumber"
+                                                  :value="item.binNumber" />
+                                              </el-select>
+                                            </ws-form-item>
                                             <ws-form-item label="毛重(KG)" span="1" prop="grossWeight">
                                             <ws-form-item label="毛重(KG)" span="1" prop="grossWeight">
                                                 <ws-input type="number" @mousewheel.native.prevent
                                                 <ws-input type="number" @mousewheel.native.prevent
                                                     v-model="weighingList.grossWeight" @input="calculation"
                                                     v-model="weighingList.grossWeight" @input="calculation"
@@ -237,6 +244,7 @@ export default {
                 tare: '',
                 tare: '',
                 netWeight: 0
                 netWeight: 0
             },
             },
+            positionInfos:[],
             deptBudgetList: {},
             deptBudgetList: {},
             warehouseList: [],
             warehouseList: [],
             goodsNameList: [],
             goodsNameList: [],
@@ -335,7 +343,7 @@ export default {
         this.selectWarehouse()
         this.selectWarehouse()
         this.getGoodsList()
         this.getGoodsList()
         this.isShowBalance = true
         this.isShowBalance = true
-        this.openPort()
+        console.log(localStorage.getItem('compNameoptions'))
         if(localStorage.getItem('compNameoptions')){
         if(localStorage.getItem('compNameoptions')){
         var company=JSON.parse(localStorage.getItem('compNameoptions'))
         var company=JSON.parse(localStorage.getItem('compNameoptions'))
         
         
@@ -350,6 +358,7 @@ export default {
           &&item!='黑龙江益储益运粮食贸易有限公司'
           &&item!='黑龙江益储益运粮食贸易有限公司'
           &&item!='黑龙江启兴粮食贸易有限公司'
           &&item!='黑龙江启兴粮食贸易有限公司'
         })
         })
+        console.log(extra,1111111111111111)
         if(extra.length>0){
         if(extra.length>0){
           this.companyNameOptions=[
           this.companyNameOptions=[
           {
           {
@@ -460,6 +469,7 @@ export default {
           }else{
           }else{
             this.ewCustomer=extra[0]
             this.ewCustomer=extra[0]
           }
           }
+          
           for (let i = 0; i < extra.length; i++) {
           for (let i = 0; i < extra.length; i++) {
             this.ewCustomerOptions.push({value: extra[i],label:extra[i]})
             this.ewCustomerOptions.push({value: extra[i],label:extra[i]})
             this.companyNameOptions.push({value: extra[i],label:extra[i]})
             this.companyNameOptions.push({value: extra[i],label:extra[i]})
@@ -467,8 +477,17 @@ export default {
           }
           }
         }
         }
       }
       }
+        this.openPort()
+        
     },
     },
     methods: {
     methods: {
+      binNumberchange(e) {
+        for (let i = 0; i < this.positionInfos.length; i++) {
+          if (this.positionInfos[i].binNumber == e) {
+            this.weighingList.positionId = this.positionInfos[i].id
+          }
+        }
+      },
         changeEw(e) {
         changeEw(e) {
         this.ddchecked = false
         this.ddchecked = false
         if (e) {
         if (e) {
@@ -755,10 +774,10 @@ export default {
                                 this.weighingList.netWeight = ''
                                 this.weighingList.netWeight = ''
                                 getdrylist({id:this.weighingList.id}).toPromise()
                                 getdrylist({id:this.weighingList.id}).toPromise()
                                 .then((response) => {
                                 .then((response) => {
-                                    console.log(1111111111)
                                     this.printData=response
                                     this.printData=response
                                     this.isShowPrintTypeBills=true
                                     this.isShowPrintTypeBills=true
                                 })
                                 })
+                                console.log(this.weighingList)
                                 this.getList()
                                 this.getList()
                             })
                             })
                     }
                     }
@@ -770,6 +789,14 @@ export default {
         },
         },
         tabClick(val) {
         tabClick(val) {
             this.weighingList = {}
             this.weighingList = {}
+            for (let i = 0; i < this.warehouseList.length; i++) {
+                if (this.warehouseList[i].warehouseName == this.warehouseName) {
+                    this.warehouseId = this.warehouseList[i].id
+                    this.weighingList.baseId = this.warehouseList[i].id
+                    this.weighingList.warehouseNo = this.warehouseList[i].commonWarehouseNo
+                    this.positionInfos =  this.warehouseList[i].positionInfos
+                }
+            }
             this.index = val
             this.index = val
             if (val == 0) {
             if (val == 0) {
                 this.information = '皮重'
                 this.information = '皮重'
@@ -787,6 +814,7 @@ export default {
                     this.warehouseId = this.warehouseList[i].id
                     this.warehouseId = this.warehouseList[i].id
                     this.weighingList.baseId = this.warehouseList[i].id
                     this.weighingList.baseId = this.warehouseList[i].id
                     this.weighingList.warehouseNo = this.warehouseList[i].commonWarehouseNo
                     this.weighingList.warehouseNo = this.warehouseList[i].commonWarehouseNo
+                    this.positionInfos =  this.warehouseList[i].positionInfos
                     // if (this.warehouseList[i].allowEdit == 1) {
                     // if (this.warehouseList[i].allowEdit == 1) {
                     //     this.disabled = false
                     //     this.disabled = false
                     // } else {
                     // } else {
@@ -831,11 +859,16 @@ export default {
                         this.weighingList.warehouseNo = obj.No
                         this.weighingList.warehouseNo = obj.No
                         this.getCarXiaLa()
                         this.getCarXiaLa()
                         this.getList()
                         this.getList()
+                        for (let i = 0; i < response.length; i++) {
+                          this.positionInfos = response[i].positionInfos
+                          
+                        }
                     } else {
                     } else {
                         this.warehouseName = response[0].warehouseName
                         this.warehouseName = response[0].warehouseName
                         this.weighingList.baseId = response[0].id
                         this.weighingList.baseId = response[0].id
                         this.warehouseId = response[0].id
                         this.warehouseId = response[0].id
                         this.weighingList.warehouseNo = response[0].commonWarehouseNo
                         this.weighingList.warehouseNo = response[0].commonWarehouseNo
+                        this.positionInfos = response[0].positionInfos
                         if (response[0].allowEdit == 1) {
                         if (response[0].allowEdit == 1) {
                             this.disabled = false
                             this.disabled = false
                         } else {
                         } else {
@@ -845,6 +878,7 @@ export default {
                         this.getList()
                         this.getList()
                     }
                     }
                     this.deptBudgetList.warehouseName = this.warehouseName
                     this.deptBudgetList.warehouseName = this.warehouseName
+                    
                 })
                 })
         },
         },
         getList() {
         getList() {