فهرست منبع

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

ccjgmwz 3 سال پیش
والد
کامیت
db52c8df71
28فایلهای تغییر یافته به همراه7905 افزوده شده و 6096 حذف شده
  1. 2 0
      src/api/V2/houseSelfCollect/index.js
  2. 2 1
      src/api/V2/transport/index.js
  3. 2 0
      src/layout/index/top/index.vue
  4. 5 2
      src/model/houseSelfCollect/index.js
  5. 4 2
      src/model/transport/index.js
  6. 2 1
      src/permission.js
  7. 2 1
      src/store/modules/user.js
  8. 26 0
      src/views/contractManagement/purchaseContractAdd.vue
  9. 25 0
      src/views/contractManagement/purchaseContractEdit.vue
  10. 32 0
      src/views/contractManagement/salesContractAdd.vue
  11. 32 0
      src/views/contractManagement/salesContractEdit.vue
  12. 63 24
      src/views/houseSelfCollect/inspectInfo.vue
  13. 5 1
      src/views/houseSelfCollect/inspectionManagement.vue
  14. 1 2
      src/views/houseSelfCollect/paymentManagement.vue
  15. 6 6
      src/views/houseSelfCollect/weighingManagement.vue
  16. 6 1
      src/views/houseSelfCollect/weightCheck.vue
  17. 43 37
      src/views/statisticalReport/stockSaleOutReportList.vue
  18. 6 4
      src/views/tradeServicesManagement/inOutRecord.vue
  19. 24 11
      src/views/tradeServicesManagement/warehouseReceiptAdd.vue
  20. 32 8
      src/views/tradeServicesManagement/warehouseReceiptEdit.vue
  21. 2 1
      src/views/tradeServicesManagement/warehouseReceiptLook.vue
  22. 1 0
      src/views/tradeServicesManagement/warehouseReceiptRegulation.vue
  23. 16 1
      src/views/tranManagement/tranManagementTransporHairRespond.vue
  24. 134 342
      src/views/tranManagement/tranManagementthirdpartnarFeedback.vue
  25. 2368 1847
      src/views/warehouse/warehouseManagementGross.vue
  26. 1720 1261
      src/views/warehouse/warehouseManagementNoWeightIn.vue
  27. 1472 1153
      src/views/warehouse/warehouseManagementNoWeightOut.vue
  28. 1872 1390
      src/views/warehouse/warehouseManagementTare.vue

+ 2 - 0
src/api/V2/houseSelfCollect/index.js

@@ -87,4 +87,6 @@ export const API_POST_INVOICING = '/paymentManagement/api/readXmlManagement'
 export const API_POST_EXPORT = '/paymentManagement/export'
 // 车牌号
 export const API_GET_SHIPPINGINFOFORMATION = '/shippingInformation/selectShippingInformation'
+//确认质检信息
+export const API_POST_INSPECTIONCHECK = '/qualityInspectionManagement/api/editQualityInspection'
 

+ 2 - 1
src/api/V2/transport/index.js

@@ -47,7 +47,8 @@ export const API_POST_AUTOMOBILE_FEEDBACK = '/tranProcessInfo/api/insertTranCar'
 export const API_POST_AUTOMOBILE_STATE = '/tranProcessInfo/api/editFeedbackStatus'
 //更改收货反馈状态
 export const API_POST_AUTOMOBILE_STATEREC = '/tranProcessInfo/api/editReceivingStatus'
-
+// 他运反馈查看
+export const API_GET_TRANPROCESSINFO = '/tranProcessInfo/getThreeTranProcess'
 //状态
 export const API_POST_AUTOMOBILE_ALSOSTATE = '/tranProcessInfo/editStatus'
 //运输价格

+ 2 - 0
src/layout/index/top/index.vue

@@ -395,12 +395,14 @@ export default {
         localStorage.removeItem('ws-pf_organMonetaryValue')
         localStorage.removeItem('ws-pf_vessels')
         localStorage.removeItem('ws-pf_isLandBasedFlag')
+        debugger
         await this.$store.dispatch('user/logout')
         this.$router.push(
           process.env.VUE_APP_PACKAGE_ENV === 'ship' ? '/ship_login' : '/login'
         )
       })
     },
+    
   },
 }
 </script>

+ 5 - 2
src/model/houseSelfCollect/index.js

@@ -45,7 +45,8 @@ import {
   API_GET_INSPECT_GETJURISDICTION,
   API_POST_INVOICING,
   API_POST_EXPORT,
-  API_GET_SHIPPINGINFOFORMATION
+  API_GET_SHIPPINGINFOFORMATION,
+  API_POST_INSPECTIONCHECK
 } from '@/api/V2/houseSelfCollect'
 //客户管理列表
 export const getCustomerManage = appRx.get(API_GET_CUSTOMER_MANAGE, errorCatcher, errorHandle, filter)
@@ -136,4 +137,6 @@ export const invoicing  = appRx.post(API_POST_INVOICING, errorCatcher, errorHand
 
 export const export1 = appRx.post(API_POST_EXPORT)
 // 车牌号
-export const getshippinginfo  = appRx.get(API_GET_SHIPPINGINFOFORMATION, errorCatcher, errorHandle, filter)
+export const getshippinginfo  = appRx.get(API_GET_SHIPPINGINFOFORMATION, errorCatcher, errorHandle, filter)
+// 确认初检信息
+export const postCheck  = appRx.post(API_POST_INSPECTIONCHECK, errorCatcher, errorHandle, filter)

+ 4 - 2
src/model/transport/index.js

@@ -30,7 +30,8 @@ import {
     API_POST_DEL_HAULAGE_STAGE, 
     API_POST_AUTOMOBILE_ALSOSTATE,
     API_POST_AUTOMOBILE_STATEREC,
-    API_GET_IMPORT
+    API_GET_IMPORT,
+    API_GET_TRANPROCESSINFO
 } from '@/api/V2/transport'
 // 司机列表
 export const selectDriver = appRx.get(API_GET_TRAN_DRIVERINFO, errorCatcher, errorHandle, filter)
@@ -80,7 +81,8 @@ export const feedback = appRx.post(API_POST_AUTOMOBILE_FEEDBACK, errorCatcher, e
 export const state = appRx.post(API_POST_AUTOMOBILE_STATE, errorCatcher, errorHandle, filter)
 //更改收货反馈状态
 export const stateRec = appRx.post(API_POST_AUTOMOBILE_STATEREC, errorCatcher, errorHandle, filter)
-
+//他运反馈查看
+export const gettranprocessinfo = appRx.get(API_GET_TRANPROCESSINFO, errorCatcher, errorHandle, filter)
 //状态
 export const alsostate = appRx.post(API_POST_AUTOMOBILE_ALSOSTATE, errorCatcher, errorHandle, filter)
 //设置运输价格

+ 2 - 1
src/permission.js

@@ -20,8 +20,9 @@ router.beforeEach(async (to, _, next) => {
   const hasToken = getToken();
   if (hasToken) {
     if (whiteList.includes(to.path)) {
+      console.log(111111)
       next({
-        path: '/'
+        path: '/login'
       });
       NProgress.done();
     } else {

+ 2 - 1
src/store/modules/user.js

@@ -191,7 +191,8 @@ const actions = {
           commit('SET_ROLES', [])
           commit('SET_GUIDE_INFO', [])
           commit('permission/SET_ROUTES', [], { root: true }) // 清空路由,因为有权限管理
-          clearStorage()
+          localStorage.removeItem('wf-pf_admin-token')
+          // clearStorage()
           resetRouter()
           notification.end() // 取消监听通知
           resolve()

+ 26 - 0
src/views/contractManagement/purchaseContractAdd.vue

@@ -90,6 +90,12 @@
               :value="item.customerName" />
           </ws-select>
         </ws-form-item>
+           <!-- 发货反馈负责人 -->
+          <ws-form-item label="发货反馈负责人" span="1" prop="feedbackLeader" v-if="deptBudgetList.deliverType == '2'">
+            <ws-select v-model="deptBudgetList.feedbackLeader" placeholder="请输入收货反馈负责人" class="typeselect" @change="feedbackLeaderChange">
+              <ws-option v-for="(item,index1) in feedbackLeaders" :key="item.staffId" :label="item.staffName" :value="index1" />
+            </ws-select>
+          </ws-form-item>
         <!--包装方式-->
         <ws-form-item label="包装方式" span="1" prop="packingMethod">
           <ws-select v-model="deptBudgetList.packingMethod" placeholder="" class="typeselect" :value="value1"
@@ -373,6 +379,9 @@
     getRelationContractNo,
     getcustomerinfo
   } from '@/model/contarct/index'
+  import {
+    getstaff,
+  } from '@/model/warehouse/index'
   import {
     regionData,
     CodeToText,
@@ -499,6 +508,7 @@
         },
         selectIntendedShip: {},
         interviewTypeList: {},
+        feedbackLeaders:[],//发货反馈负责人
       }
     },
     activated() {
@@ -536,6 +546,10 @@
       if (!this.restaurants4) this.restaurants4 = [];
     },
     methods: {
+      feedbackLeaderChange(e){
+        this.deptBudgetList.feedbackLeader = this.feedbackLeaders[e].staffName
+        this.deptBudgetList.feedbackLeaderPhone = this.feedbackLeaders[e].staffMobilePhone
+      },
       querySearch1(queryString, cb) {
         var restaurants1 = this.restaurants1;
         var results = queryString ? restaurants1.filter(this.createFilter(queryString)) : restaurants1;
@@ -709,6 +723,18 @@
           .then((response) => {
             this.ChapterTwoList = response
           })
+            // 发货反馈负责人
+           getstaff({
+            compId: localStorage.getItem('ws-pf_compId')
+          })
+          .toPromise()
+          .then((response) => {
+            this.feedbackLeaders = response
+            let _obj = []   //发货反馈负责人下拉列表第一个添加  "无需发货反馈(默认)"
+            _obj.staffName = "无需发货反馈(默认)"
+            _obj.staffMobilePhone = "(默认)"
+            this.feedbackLeaders.unshift(_obj)
+          })
         //关联合同
         getRelationContractNo({
             agreementType: '采购合同',

+ 25 - 0
src/views/contractManagement/purchaseContractEdit.vue

@@ -57,6 +57,12 @@
         <ws-form-item label="买方电话" span="1" prop="buyerPhone">
           <ws-input v-model="deptBudgetList.buyerPhone" maxlength="100" size="small" />
         </ws-form-item>
+        <!-- 发货反馈负责人 -->
+          <ws-form-item label="发货反馈负责人" span="1" prop="feedbackLeader" v-if="deptBudgetList.settlementMethod == '对方送货'">
+            <ws-select v-model="deptBudgetList.feedbackLeader" placeholder="请输入收货反馈负责人" class="typeselect" @change="feedbackLeaderChange">
+              <ws-option v-for="(item,index1) in feedbackLeaders" :key="item.staffId" :label="item.staffName" :value="index1" />
+            </ws-select>
+          </ws-form-item>
         <!-- 包装方式 -->
         <ws-form-item label="包装方式" span="1" prop="packingMethod">
           <ws-select v-model="deptBudgetList.packingMethod" placeholder="" class="typeselect"
@@ -299,6 +305,9 @@
     getstafffind
   } from '@/model/contarct/index'
   import WsUpload from '@/components/WsUpload'
+  import {
+    getstaff,
+  } from '@/model/warehouse/index'
   import {
     EventBus,
     dayjs
@@ -370,6 +379,7 @@
         },
         acceptanceCheck: {},
         compId: localStorage.getItem('ws-pf_compId'),
+        feedbackLeaders:[],//发货反馈负责人
       }
     },
 
@@ -386,6 +396,10 @@
       this.showType = this.isShow
     },
     methods: {
+       feedbackLeaderChange(e){
+        this.deptBudgetList.feedbackLeader = this.feedbackLeaders[e].staffName
+        this.deptBudgetList.feedbackLeaderPhone = this.feedbackLeaders[e].staffMobilePhone
+      },
       getAddress(data) {
         if (data[4] == 'source') {
           this.newSelectedOptions = data[0] + '/' + data[1] + '/' + data[2]
@@ -537,6 +551,17 @@
           .then((response) => {
             this.ChapterTwoList = response
           })
+             // 发货反馈负责人
+           getstaff({
+            compId: localStorage.getItem('ws-pf_compId')
+          }).toPromise()
+          .then((response) => {
+            this.feedbackLeaders = response
+              let _obj = []   //发货反馈负责人下拉列表第一个添加  "无需发货反馈(默认)"
+            _obj.staffName = "无需发货反馈(默认)"
+            _obj.staffMobilePhone = "(默认)"
+            this.feedbackLeaders.unshift(_obj)
+          })
       },
       addClick() {
         this.unitList.push({

+ 32 - 0
src/views/contractManagement/salesContractAdd.vue

@@ -91,6 +91,12 @@
             <el-autocomplete class="inline-input" v-model="deptBudgetList.sellerPhone" :fetch-suggestions="querySearch4"
               placeholder="请输入卖方电话" @select="handleSelect"></el-autocomplete>
           </ws-form-item>
+          <!-- 收货反馈负责人 -->
+          <ws-form-item label="收货反馈负责人" span="1" prop="feedbackLeader" v-if="deptBudgetList.deliverType == '2'">
+            <ws-select v-model="deptBudgetList.feedbackLeader" placeholder="请输入收货反馈负责人" class="typeselect" @change="feedbackLeaderChange">
+              <ws-option v-for="(item,index ) in feedbackLeaders" :key="item.staffId" :label="item.staffName" :value="index" />
+            </ws-select>
+          </ws-form-item>
           <!--包装方式-->
           <ws-form-item label="包装方式" span="1" prop="packingMethod">
             <ws-select v-model="deptBudgetList.packingMethod" placeholder="" class="typeselect"
@@ -371,6 +377,9 @@
     getRelationContractNo,
      getcustomerinfo
   } from '@/model/contarct/index'
+   import {
+    getstaff,
+  } from '@/model/warehouse/index'
   import WsUpload from '@/components/WsUpload'
   import {
     regionData,
@@ -473,6 +482,7 @@
         fileList: [],
         priceTypeList: ['定价销售', '随行就市'],
         contractNoList: [],
+        feedbackLeaders:[],//收货反馈负责人
       }
     },
     activated() {
@@ -503,6 +513,10 @@
       if (!this.restaurants4) this.restaurants4 = [];
     },
     methods: {
+      feedbackLeaderChange(e){
+        this.deptBudgetList.feedbackLeader = this.feedbackLeaders[e].staffName
+        this.deptBudgetList.feedbackLeaderPhone = this.feedbackLeaders[e].staffMobilePhone
+      },
       buyerSelect(item) {
         console.log(item)
         for (let i = 0; i < this.customerinfo.length; i++) {
@@ -637,6 +651,14 @@
           .then((response) => {
             this.ChapterTwoList = response
           })
+          // 收货反馈负责人
+           getstaff({
+            compId: localStorage.getItem('ws-pf_compId')
+          })
+          .toPromise()
+          .then((response) => {
+            this.feedbackLeaders = response
+          })
         //关联合同
         getRelationContractNo({
             agreementType: '销售合同',
@@ -816,6 +838,16 @@
           })
           return
         }
+        if(this.deptBudgetList.deliverType == '2'){
+           if (!this.deptBudgetList.feedbackLeader){
+          this.$message({
+            message: '请选择收货反馈负责人',
+            type: 'warning',
+          })
+          return
+         }
+        }
+         
         if (!this.deptBudgetList.acceptanceMethod) {
           this.$message({
             message: '请选择验收方式',

+ 32 - 0
src/views/contractManagement/salesContractEdit.vue

@@ -89,6 +89,13 @@
           <ws-form-item label="买方电话" span="1" prop="contractNo">
             <ws-input v-model="deptBudgetList.buyerPhone" placeholder="请输入买方电话" maxlength="100" size="small" />
           </ws-form-item>
+          <!-- 收货反馈负责人 -->
+          <ws-form-item label="收货反馈负责人" span="1" prop="feedbackLeader" v-if="deptBudgetList.deliverType == '2'">
+            <ws-select v-model="deptBudgetList.feedbackLeader" placeholder="请输入收货反馈负责人" class="typeselect" @change="feedbackLeaderChange">
+              <ws-option v-for="(item,index ) in feedbackLeaders" :key="item.staffId" :label="item.staffName" :value="index" />
+            </ws-select>
+          </ws-form-item>
+          
           <!--包装方式-->
           <ws-form-item label="包装方式" span="1" prop="packingMethod">
             <ws-select v-model="deptBudgetList.packingMethod" placeholder="" class="typeselect"
@@ -375,6 +382,7 @@
     delxiala,
     getRelationContractNo,
   } from '@/model/contarct/index'
+  import { getstaff, } from '@/model/warehouse/index'
   export default {
     name: 'viewSpareMoney',
     components: {
@@ -451,6 +459,7 @@
         ChapterTwoList: {},
         selectIntendedShip: {},
         interviewTypeList: {},
+        feedbackLeaders:[],//收货反馈负责人
       }
     },
     activated() {
@@ -464,6 +473,11 @@
       this.showType = this.isShow
     },
     methods: {
+       feedbackLeaderChange(e){
+        this.deptBudgetList.feedbackLeader = this.feedbackLeaders[e].staffName
+        this.deptBudgetList.feedbackLeaderPhone = this.feedbackLeaders[e].staffMobilePhone
+        console.log(  this.deptBudgetList.feedbackLeader,this.deptBudgetList.feedbackLeaderPhone)
+      },
       marker(item) {
         this.deptBudgetList.warehousePositioning =
           item.lnglat.lat + ',' + item.lnglat.lng
@@ -603,6 +617,14 @@
           .then((response) => {
             this.ChapterTwoList = response
           })
+            // 收货反馈负责人
+           getstaff({
+            compId: localStorage.getItem('ws-pf_compId')
+          })
+          .toPromise()
+          .then((response) => {
+            this.feedbackLeaders = response
+          })
       },
 
       getUnitList() {
@@ -816,6 +838,16 @@
           })
           return
         }
+        if(this.deptBudgetList.deliverType == '2'){
+          if (!this.deptBudgetList.feedbackLeader){
+          this.$message({
+            message: '请选择收货反馈负责人',
+            type: 'warning',
+          })
+          return
+        }
+        }
+         
         if (!this.deptBudgetList.acceptanceMethod) {
           this.$message({
             message: '请选择验收方式',

+ 63 - 24
src/views/houseSelfCollect/inspectInfo.vue

@@ -62,8 +62,7 @@
                 size="small" />
             </ws-form-item>
             <ws-form-item label="货名" span="1" prop="goodsName">
-              <ws-select v-model="inspect.goodsName" placeholder="" class="typeselect" :disabled="disabledName"
-                @change="waterContentChange">
+              <ws-select v-model="inspect.goodsName" placeholder="" class="typeselect" :disabled="disabledName" @change="waterContentChange">
                 <ws-option v-for="item in goodNameList" :key="item.goodsName" :label="item.goodsName"
                   :value="item.goodsName" />
               </ws-select>
@@ -148,11 +147,12 @@
             </ws-form-item>
           </ws-info-table>
           <div class="but">
-            <el-button @click="cancel" v-if="this.types != 2" type="primary">取消</el-button>
-            <el-button @click="print" v-if="this.types ==3 || this.types ==4 ||this.types ==1" type="primary">保存
+            <el-button @click="cancel" v-if="types != 2" type="primary">取消</el-button>
+               <el-button @click="checkOk" v-if="types == 4" type="primary">确认初检信息</el-button>
+            <el-button @click="print" v-if="types ==3 || types ==1" type="primary">保存
             </el-button>
-            <el-button @click="print" v-if="this.types ==5 " type="primary">确认并打印</el-button>
-            <el-button @click="cancel" v-if="this.types == 2" type="primary">关闭</el-button>
+            <el-button @click="print" v-if="types == 5 || types==4" type="primary">确认并打印</el-button>
+            <el-button @click="cancel" v-if="types == 2" type="primary">关闭</el-button>
           </div>
         </div>
       </ws-form>
@@ -180,7 +180,8 @@
     getamount,
     getCount,
     getDryGrainPrice,
-    getshippinginfo
+    getshippinginfo,
+    postCheck
   } from '@/model/houseSelfCollect/index'
   import {
     packList
@@ -280,11 +281,36 @@
       } else {
         this.disabled1 = false
         this.disabled = false
+        this.disabledName = false
       }
       this.calculation()
       this.getList(this.id)
     },
     methods: {
+      //确认初检信息
+      checkOk(){
+        this.$confirm('确定初检信息后,初检员不需要再次确认质检信息,是否确认提交', '提示', {
+              confirmButtonText: '确定',
+              cancelButtonText: '取消',
+              type: 'warning',
+            })
+            .then(() => {
+              postCheck({id:this.id,flag:2})
+                .toPromise()
+                .then((response) => {
+                  debugger
+                  if(response == "OK"){
+                      this.$message.success('提交成功')
+                        this.$router.push({path: 'inspectionManagement' })
+                  }else{
+                    this.$message.error('提交失败')
+                  }
+                }).catch(() => {
+              return false
+            })
+        })
+
+      },
       printSmall() {
         window.open('../../../static/inspection.html?type=1&dataList=' + JSON.stringify(this.inspect))
       },
@@ -431,9 +457,18 @@
                 .toPromise()
                 .then((response) => {
                   this.$message.success('修改成功')
-                  this.$router.push({
-                    path: 'inspectionManagement'
-                  })
+                  
+                  // this.$router.push({
+                  //   path: 'inspectionManagement'
+                  // })
+                   getinspectLook({
+                      id: this.inspect.id
+                    })
+                    .toPromise()
+                    .then((response) => {
+                      this.inspect = response
+                    })
+                  this.isShowPrint = true
                 })
             })
             .catch(() => {
@@ -489,20 +524,21 @@
           })
           return
         }
-        if (!this.inspect.storageTagNo) {
-          this.$message({
-            message: '囤位号不能为空',
-            type: 'warning',
-          })
-          return
-        }
-
-        if (this.inspect.storageTagNo.length > 10) {
-          this.$message({
-            message: '囤位号不超过10个字符',
-            type: 'warning',
-          })
-          return
+        // if (!this.inspect.storageTagNo) {
+        //   this.$message({
+        //     message: '囤位号不能为空',
+        //     type: 'warning',
+        //   })
+        //   return
+        // }
+        if(this.inspect.storageTagNo){
+            if (this.inspect.storageTagNo.length > 10) {
+            this.$message({
+              message: '囤位号不超过10个字符',
+              type: 'warning',
+            })
+            return
+          }
         }
         if (!this.inspect.carNumber) {
           this.$message({
@@ -661,6 +697,7 @@
           })
           return
         }
+        if( this.information != "编辑复检"){
         if (!this.inspect.waterContent) {
           this.$message({
             message: '水分不能为空',
@@ -683,6 +720,8 @@
           })
           return
         }
+        }
+        
         if (!this.inspect.mildewGrain) {
           this.$message({
             message: '霉变粒不能为空',

+ 5 - 1
src/views/houseSelfCollect/inspectionManagement.vue

@@ -169,6 +169,11 @@
 		},
 		activated() {
 			this.selectWarehouse()
+			let _WarehouseName = localStorage.getItem('houseSelfCollect_house1')
+			_WarehouseName = JSON.parse(_WarehouseName)
+			if(_WarehouseName){
+				this.warehouseNameChange(_WarehouseName.value)
+			}
 		},
 		methods: {
 			printSmall() {
@@ -209,7 +214,6 @@
 				})
 			},
 			warehouseNameChange(e) {
-				// console.log(e)
 				for (let i = 0; i < this.warehouseList.length; i++) {
 					if (this.warehouseList[i].value == e) {
 						this.warehouseName = this.warehouseList[i].value

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

@@ -1404,8 +1404,7 @@ export default {
       for (let i = 0; i < this.warehouseList.length; i++) {
         if (this.warehouseList[i].id == this.warehouseNameKey) {
           this.warehouseName = this.warehouseList[i].warehouseName
-          localStorage.setItem(
-            'houseSelfCollect_house1',
+          localStorage.setItem( 'houseSelfCollect_house1',
             JSON.stringify({
               value: this.warehouseList[i].warehouseName,
               warehouseId: this.warehouseList[i].id,

+ 6 - 6
src/views/houseSelfCollect/weighingManagement.vue

@@ -45,7 +45,7 @@
       <el-table-column prop="number" width="150" label="编号"></el-table-column>
       <el-table-column prop="customer" label="客户"></el-table-column>
       <el-table-column prop="carNumber" label="车牌号"></el-table-column>
-      <el-table-column prop="boxNo" label="箱号-1">
+      <!-- <el-table-column prop="boxNo" label="箱号-1">
         <template slot-scope="scope">
           <div v-if='scope.row.qualityInspectionManagement.boxNo'>{{scope.row.qualityInspectionManagement.boxNo}}</div>
         </template>
@@ -69,7 +69,7 @@
             {{scope.row.qualityInspectionManagement.titleNoOther}}
           </div>
         </template>
-      </el-table-column>
+      </el-table-column> -->
       <el-table-column prop="goodsName" label="货名"></el-table-column>
       <el-table-column prop="type" label="类型"></el-table-column>
       <el-table-column prop="grossWeight" label="毛重(公斤)" width="120"></el-table-column>
@@ -96,7 +96,7 @@
         </template>
       </el-table-column>
       <el-table-column prop="status" label="状态"></el-table-column>
-      <el-table-column width="300" prop="contractNo1" label="操作">
+      <el-table-column width="270" prop="contractNo1" label="操作">
         <template slot-scope="scope">
           <el-button @click="weightCheck(scope.row, 1)" v-if=" scope.row.status == '已称毛重' || scope.row.status == '已质检' "
             v-hasPermission="`acquisitionManagement.acquisitionWeight.mao`">毛重</el-button>
@@ -411,14 +411,14 @@
         this.getList()
       },
       isConfirmQuality(val) {
-        if (val.qualityInspectionManagement.confirm == '1') return true;
-        return false
+        if (val.qualityInspectionManagement.confirm == '1'&&val.qualityInspectionManagement.warehouseName=='哈尔滨依兰库') return false;
+        return true
       },
       weightCheck(row, num) {
         console.log(this.cangid)
         // 质检是否是已确定状态
         let _isGoweightCheck = this.isConfirmQuality(row)
-        if (_isGoweightCheck) {
+        if (!_isGoweightCheck) {
           this.$router.push({
             path: 'weightCheck',
             query: {

+ 6 - 1
src/views/houseSelfCollect/weightCheck.vue

@@ -977,8 +977,13 @@
   }
 
   /deep/.el-table .el-table__header .cell,
-  .el-table .el-table__body .cell {
+  /deep/.el-table .el-table__body .cell {
     text-align: center;
+    font-size: 16px;
+    // background: #f6f7fc;
+  }
+  /deep/.el-table td{
+   background: #e7e8ef; 
   }
 
   /deep/.el-table--enable-row-transition .el-table__body td {

+ 43 - 37
src/views/statisticalReport/stockSaleOutReportList.vue

@@ -39,7 +39,8 @@
             <span v-else>合同重量: 0 吨</span>
             <span v-if="outboundVolume">出库量: {{ outboundVolume.toFixed(3)}} 吨</span>
             <span v-else>出库量: 0 吨</span>
-            <span v-if="orderList.unitContractPrice&&this.tranType!='随行就市'">合同单价: {{ orderList.unitContractPrice.toFixed(3) }} 元/吨</span>
+            <span v-if="orderList.unitContractPrice&&this.tranType!='随行就市'">合同单价:
+              {{ orderList.unitContractPrice.toFixed(3) }} 元/吨</span>
             <span v-else>合同单价: 0 元/吨</span>
             <span v-if="amountReceivable">应收: {{ amountReceivable.toFixed(3)}} 元</span>
             <span v-else>应收: 0 元</span>
@@ -102,7 +103,7 @@
           label="卸船净重(吨)"></el-table-column>
         <el-table-column class="table_td" prop="settlementWeight" label="结算重量(吨)"></el-table-column>
         <el-table-column class="table_td" prop="settlementPrice" width='130' label="结算单价(元/吨)">
-        <template slot-scope="scope">
+          <template slot-scope="scope">
             <div class="inputChenge">
               <el-input v-model="scope.row.settlementPrice" v-if="scope.row.identification1 == 'true'">
               </el-input>
@@ -118,7 +119,8 @@
 
             <i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
               v-if="scope.row.identification1 == 'true'" @click="weightClick(scope.row,2)"></i>
-          </template></el-table-column>
+          </template>
+        </el-table-column>
         <el-table-column class="table_td" prop="amountIngReceivable" label="应收金额(元)"></el-table-column>
         <el-table-column class="table_td" prop="amountEdReceivable" label="已收金额(元)">
         </el-table-column>
@@ -173,7 +175,7 @@
           </template>
         </el-table-column>
         <el-table-column class="table_td" prop="settlementPrice" width='130' label="结算单价(元/吨)">
-        <template slot-scope="scope">
+          <template slot-scope="scope">
             <div class="inputChenge">
               <el-input v-model="scope.row.settlementPrice" v-if="scope.row.identification1 == 'true'">
               </el-input>
@@ -189,7 +191,8 @@
 
             <i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
               v-if="scope.row.identification1 == 'true'" @click="weightClick(scope.row,2)"></i>
-          </template></el-table-column>
+          </template>
+        </el-table-column>
         <el-table-column class="table_td" prop="amountIngReceivable" label="应收金额(元)">
           <template slot-scope="scope">
             <span v-if="scope.row.returnFlag == null">{{scope.row.amountIngReceivable.toFixed(2) }}</span>
@@ -455,6 +458,7 @@
         for (var i = 0; i < this.contractNoList.length; i++) {
           if (this.contractNoList[i].contractNo == e) {
             this.orderList = this.contractNoList[i]
+            if (!this.orderList.tranTaskInfoList) this.orderList.tranTaskInfoList = []
             for (let i = 0; i < this.orderList.tranTaskInfoList.length; i++) {
               if (this.orderList.tranTaskInfoList[i].tranProcessInfo) {
                 this.tranProcessInfo.push({
@@ -466,8 +470,10 @@
               }
             }
             console.log(this.orderList.tranTaskInfoList)
-            this.activeName = this.tranProcessInfo[0].name
-            this.tranType = this.tranProcessInfo[0].tranType
+            if (this.tranProcessInfo.length > 0) {
+              this.activeName = this.tranProcessInfo[0].name
+              this.tranType = this.tranProcessInfo[0].tranType
+            }
             if (this.contractNoList[i].depositUrl) {
               this.addressUrlArray = this.contractNoList[i].depositUrl.split(',')
             } else {
@@ -498,15 +504,15 @@
         }
       },
       //修改结算重量
-      whether(row,flag) {
-        if(flag==1){
+      whether(row, flag) {
+        if (flag == 1) {
           row.identification = 'true'
-        }else{
+        } else {
           row.identification1 = 'true'
         }
-        
+
       },
-      weightClick(row,flag) {
+      weightClick(row, flag) {
         if (
           row.settlementWeight > 200 ||
           row.settlementWeight < 1 ||
@@ -526,22 +532,22 @@
           })
           return
         }
-        var title=''
-        var data={}
-        if(flag==1){
-          title='确定要修改结算重量?'
-          data={
-                settlementWeight: row.settlementWeight,
-                id: row.id,
-                flag:flag
-              }
-        }else{
-          title='确定要修改结算单价?'
-          data={
-                settlementPrice: row.settlementPrice,
-                id: row.id,
-                flag:flag
-              }
+        var title = ''
+        var data = {}
+        if (flag == 1) {
+          title = '确定要修改结算重量?'
+          data = {
+            settlementWeight: row.settlementWeight,
+            id: row.id,
+            flag: flag
+          }
+        } else {
+          title = '确定要修改结算单价?'
+          data = {
+            settlementPrice: row.settlementPrice,
+            id: row.id,
+            flag: flag
+          }
         }
         this.$confirm(title, {
             confirmButtonText: '确定',
@@ -552,18 +558,18 @@
             saleEditSettlementWeight(data)
               .toPromise()
               .then((response) => {
-                if(flag==1){
+                if (flag == 1) {
                   this.$notify.success({
-                  title: '成功',
-                  message: '结算重量修改成功',
-                })
-                }else{
+                    title: '成功',
+                    message: '结算重量修改成功',
+                  })
+                } else {
                   this.$notify.success({
-                  title: '成功',
-                  message: '结算单价修改成功',
-                })
+                    title: '成功',
+                    message: '结算单价修改成功',
+                  })
                 }
-                
+
                 this.getList(this.orderList.deliverType)
               })
               .catch(() => {

+ 6 - 4
src/views/tradeServicesManagement/inOutRecord.vue

@@ -76,8 +76,10 @@
         </template>
       </el-table-column>
       <el-table-column prop="goodsName" label="货名"> </el-table-column>
-      <el-table-column prop="grossWeight" label="毛重(吨)"> </el-table-column>
-      <el-table-column prop="tare" label="皮重(吨)"> </el-table-column>
+      <el-table-column prop="grossWeight" label="毛重(吨)"> 
+        <template slot-scope="scope">{{scope.grossWeight}}</template>
+      </el-table-column>
+      <el-table-column prop="tare" label="皮重(吨)">  </el-table-column>
       <el-table-column prop="weight" label="扣重(吨)"> </el-table-column>
       <el-table-column prop="netWeight" label="净重(吨)"> </el-table-column>
       <el-table-column prop="inOutType" label="类型"> </el-table-column>
@@ -91,8 +93,7 @@
           <el-button
             @click="handleLook(2, scope.row)"
             v-if="scope.row.inOutType == '收购入库'"
-            >查看</el-button
-          >
+            >查看</el-button>
         </template>
       </el-table-column>
       <el-table-column prop="inOutDate" label="出入库日期"> </el-table-column>
@@ -450,6 +451,7 @@ export default {
     }
   },
   activated() {
+    localStorage.setItem("pageUp","1")
     this.deptBudgetList.baseId = this.$route.query.baseId
     this.deptBudgetList.positionId = this.$route.query.positionId
     this.deptBudgetList.warehouseName = this.$route.query.warehouseName

+ 24 - 11
src/views/tradeServicesManagement/warehouseReceiptAdd.vue

@@ -48,7 +48,7 @@
           </el-option>
         </el-select>
       </el-form-item>
-      <el-form-item prop="goodsName" label="品级">
+      <el-form-item prop="grade" label="品级">
         <el-select v-model="deptBudgetList.grade" placeholder="请选择品级">
           <el-option label="一等" value="一等"></el-option>
           <el-option label="二等" value="二等"></el-option>
@@ -128,7 +128,8 @@
           renown: '',
           grade: '',
           bank: '',
-          three: ''
+          three: '',
+          goodsName:"",
         },
         size: 10,
         compId: '',
@@ -149,8 +150,12 @@
     activated() {
       this.compId = localStorage.getItem('ws-pf_compId')
       this.deptBudgetList.compId = this.compId
+      let i = localStorage.getItem("pageUp")
+      if(i != 1){
       this.getcompList()
       this.getList()
+      }
+      
     },
     methods: {
       inputChange(e) {
@@ -208,18 +213,24 @@
                  this.deptBudgetList.baseId = response[0].positionInfos.length != 0 ? response[0].positionInfos[0].baseId : ''
               }
               if(response[0].goodsNameInfos){
+                this.goodsList = []
                 for(let i = 0 ; i < response[0].goodsNameInfos.length ; i++){
                   if(response[0].goodsNameInfos[i].binNumber ==  this.deptBudgetList.warehouseNo ){
                     this.goodsList.push(response[0].goodsNameInfos[i])
                   }
                 }
-                console.log(this.goodsList)
-            // this.goodsList = response[0].goodsNameInfos
-            this.deptBudgetList.nowWeight = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].storage : ''
-            this.deptBudgetList.useWeight = response[0].goodsNameInfos[0].useStorage
-            // this.deptBudgetList.goodsName = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].goodsName : ''
-            this.deptBudgetList.goodsName = this.goodsList[0].goodsName
-            this.deptBudgetList.goodsNameKey = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].goodsNameKey : ''
+                if(this.goodsList.length > 0 ){
+                  this.deptBudgetList.nowWeight = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].storage : ''
+                  this.deptBudgetList.useWeight = response[0].goodsNameInfos[0].useStorage
+                  this.deptBudgetList.goodsName = this.goodsList[0].goodsName
+                  this.deptBudgetList.goodsNameKey = response[0].goodsNameInfos.length != 0 ? response[0].goodsNameInfos[0].goodsNameKey : ''
+                }else {
+                    this.deptBudgetList.nowWeight = ""
+                  this.deptBudgetList.useWeight = ""
+                  this.deptBudgetList.goodsName =""
+                  this.deptBudgetList.goodsNameKey = ""
+                }
+            
               }
               
             this.deptBudgetList.warehouseId = response[0].id
@@ -234,8 +245,8 @@
           if (_data[i].id == val) {
             this.deptBudgetList.goodsNameKey = _data[i].goodsNameKey
             this.deptBudgetList.goodsName = _data[i].goodsName
-             this.deptBudgetList.nowWeight = _data[i].storage
-             this.deptBudgetList.useWeight =  _data[i].useStorage
+            this.deptBudgetList.nowWeight = _data[i].storage
+            this.deptBudgetList.useWeight =  _data[i].useStorage                                       
             return
           }
         }
@@ -400,6 +411,7 @@
           }).then(() => {
             addList(this.deptBudgetList).toPromise().then((response) => {
               // this.tableData = response.records
+              localStorage.removeItem("pageUp")
               this.$message.success('提交成功')
               this.$router.push({
                 path: 'warehouseReceiptRegulation'
@@ -423,6 +435,7 @@
           })
       },
       cancel() {
+        localStorage.removeItem("pageUp")
         this.$router.push({
           path: 'warehouseReceiptRegulation'
         })

+ 32 - 8
src/views/tradeServicesManagement/warehouseReceiptEdit.vue

@@ -214,6 +214,7 @@ import {
     selectWarehouseSelf,
   } from '@/model/houseSelfCollect/index'
 import WsUpload from '@/components/WsUpload'
+import { lastEachIterate } from 'xe-utils/methods'
 export default {
   components: {
     WsUpload,
@@ -231,15 +232,15 @@ export default {
         },
       compOptionList:[],
       taskhistories:[],
-        warehouseList: [],
-        cwNumberList:[],
-        goodsList:[],
-        bankList:[],
-        threeList:[],
+      warehouseList: [],
+      cwNumberList:[],
+      goodsList:[],
+      bankList:[],
+      threeList:[],
     }
   },
   activated() {
-    
+     localStorage.removeItem("pageUp")//删除出入库跳返回时数据刷新的问题
     this.getList()
     this.getcompList()
     this.getWarehouse()
@@ -295,6 +296,9 @@ export default {
           if (_data[i].id == val) {
             this.deptBudgetList.goodsNameKey = _data[i].goodsNameKey
             this.deptBudgetList.goodsName = _data[i].goodsName
+            this.deptBudgetList.nowWeight = _data[i].storage
+            this.deptBudgetList.useWeight =  _data[i].useStorage
+             return
           }
         }
       },
@@ -307,7 +311,7 @@ export default {
             this.cwNumberList = _data[i].positionInfos.length != 0 ? _data[i].positionInfos : []
             this.deptBudgetList.warehouseNo = _data[i].positionInfos.length != 0 ? _data[i].positionInfos[0].binNumber : ''
             this.deptBudgetList.warehouseAddress = _data[i].warehousePrivate + _data[i].warehouseCity + _data[i].warehouseArea + _data[i].detailedAddress
-            this.goodsList = _data[i].goodsNameInfos.length != 0 ? _data[i].goodsNameInfos : []
+            // this.goodsList = _data[i].goodsNameInfos.length != 0 ? _data[i].goodsNameInfos : []
             this.deptBudgetList.nowWeight = _data[i].goodsNameInfos.length != 0 ? _data[i].goodsNameInfos[0].storage : ''
             this.deptBudgetList.useWeight =  _data[i].goodsNameInfos[0].useStorage
             this.deptBudgetList.warehouseId = _data[i].id
@@ -327,6 +331,25 @@ export default {
             this.deptBudgetList.baseId = _data.baseId
           }
         }
+        this.goodsList = []
+        for(let j = 0 ; j < this.warehouseList.length ; j++){
+          if(this.deptBudgetList.warehouseName == this.warehouseList[j].warehouseName){
+            for(let _num = 0 ; _num < this.warehouseList[j].goodsNameInfos.length; _num++ ){
+              if( this.deptBudgetList.warehouseNo == this.warehouseList[j].goodsNameInfos[_num].binNumber){
+                this.goodsList.push(this.warehouseList[j].goodsNameInfos[_num])
+              }
+            }
+          }
+        }
+        if(this.goodsList.length == 0){
+          this.deptBudgetList.goodsName = ""
+             this.deptBudgetList.nowWeight = ''
+            this.deptBudgetList.useWeight = ""
+        }else{
+           this.deptBudgetList.goodsName = this.goodsList[0].goodsName
+            this.deptBudgetList.nowWeight = this.goodsList[0].storage
+            this.deptBudgetList.useWeight = this.goodsList[0].useStorage
+        }
       },
     getcompList(){
       //公司名下拉
@@ -334,7 +357,8 @@ export default {
           .toPromise()
           .then((res) => {
             this.compOptionList = res
-            this.deptBudgetList.renown = res[0].compName
+            // this.deptBudgetList.renown = res[0].compName
+              this.changeCompOptionList(res[0].compId)
           })
           .catch((err) => {})
     },

+ 2 - 1
src/views/tradeServicesManagement/warehouseReceiptLook.vue

@@ -305,8 +305,9 @@ export default {
     }
   },
   activated() {
+    localStorage.removeItem("pageUp")
     this.getList(this.$route.query.id)
-    this.getcompList()
+    // this.getcompList()
   },
   methods: {
     //返回

+ 1 - 0
src/views/tradeServicesManagement/warehouseReceiptRegulation.vue

@@ -108,6 +108,7 @@
       }
     },
     activated() {
+        localStorage.removeItem("pageUp")//删除出入库跳返回时数据刷新的问题
       // debugger
       // let i = localStorage.getItem('warehouseReceiptRegulation_selectShowType')
       // console.log(i)

+ 16 - 1
src/views/tranManagement/tranManagementTransporHairRespond.vue

@@ -252,7 +252,8 @@ export default {
         { value: '汽运', type: 1 },
         { value: '火运', type: 2 },
         { value: '船运', type: 3 },
-        { value: '全部', type: 4 },
+        { value: '他运', type: 4 },
+        { value: '全部', type: 5 },
       ],
       // 提交类型
       submitType: true,
@@ -328,6 +329,13 @@ export default {
             id: row.id,
           },
         })
+      }else if (row.tranType == '他运') {
+        this.$router.push({
+          path: 'tranManagementthirdpartnarFeedbackLook',
+          query: {
+            id: row.id,
+          },
+        })
       }
     },
     //反馈
@@ -353,6 +361,13 @@ export default {
             id: row.id,
           },
         })
+      }else if (row.tranType == '他运') {
+        this.$router.push({
+          path: 'tranManagementthirdpartnarFeedback',
+          query: {
+            id: row.id,
+          },
+        })
       }
     },
     // statusquery(status) {

+ 134 - 342
src/views/tranManagement/tranManagementthirdpartnarFeedback.vue

@@ -3,7 +3,7 @@
   <div class="container">
     <el-row>
       <el-col :span="12">
-        <h2 class="bg-left title">船运卸船反馈</h2>
+        <h2 class="bg-left title">他运发货反馈</h2>
       </el-col>
       <el-col :span="12" class="bg-right">
         <el-button
@@ -29,9 +29,9 @@
     >
       <div class="small-title" style="font-size: 16px">任务详情</div>
       <ws-info-table>
-        <!--任务编号-->
-        <ws-form-item label="任务编号" span="1" prop="processNo">
-          {{ deptBudgetList.processNo }}
+        <!--合同编号-->
+        <ws-form-item label="合同编号" span="1" prop="contractNo">
+          {{ deptBudgetList.contractNo }}
         </ws-form-item>
         <!--货名-->
         <ws-form-item label="货名" span="1" prop="goodsName">
@@ -46,126 +46,25 @@
           {{ deptBudgetList.sendPrivate }}{{ deptBudgetList.sendCity
           }}{{ deptBudgetList.sendArea }}
         </ws-form-item>
-        <!--发货人-->
-        <ws-form-item label="发货人" span="1" prop="sender" class="readonly">
-          {{ deptBudgetList.sender }}
-        </ws-form-item>
-        <!--发货人电话-->
-        <ws-form-item
-          label="发货人电话"
-          span="1"
-          prop="senderPhone"
-          class="readonly"
-        >
-          {{ deptBudgetList.senderPhone }}
-        </ws-form-item>
         <!--收货地址-->
         <ws-form-item label="收货地址" span="1" prop="receiveDetailedAddress">
           {{ deptBudgetList.receivePrivate }}{{ deptBudgetList.receiveCity
           }}{{ deptBudgetList.receiveArea }}
         </ws-form-item>
-        <!--收货人-->
-        <ws-form-item label="收货人" span="1" prop="receiver">
-          {{ deptBudgetList.receiver }}
-        </ws-form-item>
-        <!--收货人电话-->
-        <ws-form-item label="收货人电话" span="1" prop="receiverPhone">
-          {{ deptBudgetList.receiverPhone }}
-        </ws-form-item>
-        <!--发货日期-->
-        <ws-form-item label="发货日期" span="1" prop="deliveryDateStart">
-          {{ deptBudgetList.deliveryDateStart }}
-        </ws-form-item>
-        <!--最晚到货日期-->
-        <ws-form-item label="最晚到货日期" span="1" prop="deliveryDateEnd">
-          {{ 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="tranType">
-          {{ deptBudgetList.tranType }}
-        </ws-form-item>
       </ws-info-table>
-      <div class="small-title" style="font-size: 16px">联络员及航次</div>
+      <div class="small-title" style="font-size: 16px">发货运输方式</div>
       <ws-info-table>
-        <!-- 姓名 -->
-        <ws-form-item label="姓名" span="1" prop="driver">
-          {{ deptBudgetList.driver }}
-        </ws-form-item>
-        <!-- 电话 -->
-        <ws-form-item label="电话" span="1" prop="driverPhone">
-          {{ deptBudgetList.driverPhone }}
-        </ws-form-item>
-        <!--发船日期-->
-        <ws-form-item label="发船日期" span="1" prop="sendDateStart">
-          <ws-date-picker
-            v-model="deptBudgetList.sendDateStart"
-            type="date"
-            placeholder="请选择发船日期"
-            value-format="yyyy-MM-dd"
-          />
-        </ws-form-item>
-        <!-- 到港日期 -->
-        <ws-form-item label="到港日期" span="1" prop="receiveDateEnd">
-          {{ deptBudgetList.receiveDateEnd }}
-        </ws-form-item>
-        <!-- 船名 -->
-        <ws-form-item label="船名" span="1" prop="shipName">
-          {{ deptBudgetList.shipName }}
-        </ws-form-item>
-        <!-- 航次 -->
-        <ws-form-item label="航次" span="1" prop="shipNo">
-          {{ deptBudgetList.shipNo }}
-        </ws-form-item>
-        <!-- 类型 -->
-        <ws-form-item label="类型" span="1" prop="shipType">
-          {{ deptBudgetList.shipType }}
-        </ws-form-item>
-        <!-- 数量 -->
-        <ws-form-item
-          label="数量"
-          span="1"
-          prop="boxNumber"
-          v-if="deptBudgetList.shipType == '集装箱'"
-        >
-          {{ deptBudgetList.boxNumber }}
-        </ws-form-item>
+        <el-checkbox-group @change='checkchange' v-model="checkList" prop="tranType">
+            <el-checkbox label="汽运"></el-checkbox>
+            <el-checkbox label="火运"></el-checkbox>
+            <el-checkbox label="散船"></el-checkbox>
+            <el-checkbox label="集装箱船"></el-checkbox>
+          </el-checkbox-group>
       </ws-info-table>
-      <div class="small-title" style="font-size: 16px; width: 50%; float: left">
-        卸船详情
-      </div>
-      <!-- 导入 -->
-      <div
-        style="
-          font-size: 16px;
-          width: 100%;
-          text-align: right;
-          display: flex;
-          justify-content: end;
-        "
-      >
-        <el-link
-          href="https://taohaoliang.oss-cn-beijing.aliyuncs.com/pcfiles/%E5%8F%8D%E9%A6%88%E6%A8%A1%E6%9D%BF/%E8%88%B9%E8%BF%90%E5%8D%B8%E8%BD%A6%E5%8F%8D%E9%A6%88%E6%A8%A1%E6%9D%BF.xlsx"
-          style="margin-left: 8px"
-        >
-          <el-button type="primary">模板下载</el-button>
-        </el-link>
-        <el-upload
-          style="margin-left: 8px"
-          class="upload-demo inline-block margin-right-10"
-          action=""
-          :on-change="handleChange"
-          :show-file-list="false"
-          accept=".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
-          :auto-upload="false"
-        >
-          <el-button type="primary">导入</el-button>
-        </el-upload>
+      <div v-show='status' class="small-title" style="font-size: 16px">
+        汽运反馈
       </div>
-      <div class="liaison">
+      <div v-show='status' class="liaison">
         <div
           style="width: 100%"
           class="flex position"
@@ -173,177 +72,81 @@
           :key="index"
         >
           <ws-info-table>
-            <div class="catNos" v-if="item.shipType == '集装箱'">
-              集装箱-{{ index + 1 }}
-              <span class="noservice" v-show="item.status == '未装车'">
-                未装船
-              </span>
-              <span class="service" v-show="item.status == '已装车'">
-                未卸船
-              </span>
-              <span class="serviced" v-show="item.status == '已送达'">
-                已卸船
-              </span>
-            </div>
-            <div class="catNos" v-if="item.shipType == '散船'">
-              仓位-{{ index + 1 }}
-              <span class="noservice" v-show="item.status == '未装车'">
-                未装船
-              </span>
-              <span class="service" v-show="item.status == '已装车'">
-                未卸船
-              </span>
-              <span class="serviced" v-show="item.status == '已送达'">
-                已卸船
-              </span>
-            </div>
-            <!--箱号-->
-            <el-form-item
-              label="箱号"
-              prop="caseNo"
-              v-if="item.shipType == '集装箱'"
-            >
-              {{ item.caseNo }}
-            </el-form-item>
-            <!--封号-->
-            <el-form-item
-              label="封号"
-              prop="titleNo"
-              v-if="item.shipType == '集装箱'"
-            >
-              {{ item.titleNo }}
+            <el-form-item label="派车编号" prop="caseNo">{{ item.carNumber }}</el-form-item>
+            <el-form-item label="车牌号" prop="carNo">{{ item.carNo }}</el-form-item>
+            <el-form-item label="车牌号" prop="carNo">{{ item.carNo }}</el-form-item>
+            <el-form-item label="箱号-1" prop="caseNo" >{{ item.caseNo }}</el-form-item>
+            <el-form-item label="箱号-2" prop="caseNo">{{ item.caseNo }}</el-form-item>
+            <el-form-item label="封号-1" prop="titleNo">{{ item.titleNo }}</el-form-item>
+            <el-form-item label="封号-2" prop="titleNo" >{{ item.titleNo }}</el-form-item>
+            <ws-form-item label="装车净重(吨)" span="1" prop="loadNetWeight">{{ item.loadNetWeight }}</ws-form-item>
+            <el-form-item label="装车日期" span="1" prop="unloadingDate" label-width="100px">
+              <ws-date-picker v-model="item.unloadingDate" type="date" style="width: 150px" placeholder="请选择日期" value-format="yyyy-MM-dd"/>
             </el-form-item>
-            <!-- 仓位号 -->
-            <ws-form-item
-              span="1"
-              label="仓位号:"
-              prop="binNumber"
-              v-if="item.shipType == '散船'"
-            >
-              {{ item.binNumber }}
-            </ws-form-item>
-            <!--装船净重-->
-            <ws-form-item label="装船净重:" span="1" prop="loadNetWeight">
-              {{ item.loadNetWeight }}
-            </ws-form-item>
-            <!--卸船净重-->
-            <ws-form-item label="卸船净重:" span="1" prop="unloadNetWeight">
-              <ws-input
-                v-if="item.status == '未装车' || item.status == '已送达'"
-                :disabled="readonly"
-                v-model="item.unloadNetWeight"
-                placeholder="请输入卸船净重"
-                maxlength="20"
-                size="small"
-              />
-              <ws-input
-                v-else
-                v-model="item.unloadNetWeight"
-                placeholder="请输入卸船净重"
-                maxlength="20"
-                size="small"
-              />
-            </ws-form-item>
-            <!--卸船日期-->
-            <el-form-item
-              label="卸船日期:"
-              span="1"
-              prop="unloadingDate"
-              label-width="100px"
-            >
-              <ws-date-picker
-                v-if="item.status == '未装车' || item.status == '已送达'"
-                :disabled="readonly"
-                v-model="item.unloadingDate"
-                type="date"
-                style="width: 150px"
-                placeholder="请选择日期"
-                value-format="yyyy-MM-dd"
-              />
-              <ws-date-picker
-                v-else
-                v-model="item.unloadingDate"
-                type="date"
-                style="width: 150px"
-                placeholder="请选择日期"
-                value-format="yyyy-MM-dd"
-              />
+          </ws-info-table>
+        </div>
+      </div>
+      <div v-show='status1' class="small-title" style="font-size: 16px">
+        火运反馈
+      </div>
+      <div v-show='status1' class="liaison">
+        <div
+          style="width: 100%"
+          class="flex position"
+          v-for="(item, index) in this.freightspace1"
+          :key="index"
+        >
+          <ws-info-table>
+            <el-form-item label="车号" prop="caseNo" >{{ item.carNumber }}</el-form-item>
+            <el-form-item label="车厢号-1" prop="caseNo">{{ item.caseNo }}</el-form-item>
+            <el-form-item label="车厢号-2" prop="caseNo">{{ item.caseNo }}</el-form-item>
+            <ws-form-item label="装车净重(吨)" span="1" prop="loadNetWeight">{{ item.loadNetWeight }}</ws-form-item>
+            <el-form-item label="装车日期" span="1" prop="unloadingDate" label-width="100px">
+              <ws-date-picker v-model="item.unloadingDate" type="date" style="width: 150px" placeholder="请选择日期" value-format="yyyy-MM-dd"/>
             </el-form-item>
-             <!--单价 -->
-            <ws-form-item label="单价(元/吨):" span="1" v-if="deptBudgetList.priceType!=null&&deptBudgetList.priceType=='随行就市'" prop="contractPrice">
-              <ws-input
-                v-model="item.contractPrice"
-                placeholder="请输入单价"
-                maxlength="20"
-                size="small"
-              />
-            </ws-form-item>
-            <div v-show="item.signStatus == '未签合同'" class="signStatus">
-              {{ item.signStatus }}
-            </div>
-            <div v-show="item.signStatus == '已签合同'" class="signStatus1">
-              {{ item.signStatus }}
-            </div>
           </ws-info-table>
         </div>
       </div>
-      <div style="text-align: right; color: #8890b1; font-size: 16px">
-        合计(吨):{{ total }}/{{ deptBudgetList.weight }}
-        <!--阶段状态-->
-        <span
-          class="noservice"
-          v-show="deptBudgetList.feedbackStatus == '执行中'"
+      <div  v-show='status2' class="small-title" style="font-size: 16px">
+        散船反馈
+      </div>
+      <div v-show='status2' class="liaison">
+        <div
+          style="width: 100%"
+          class="flex position"
+          v-for="(item, index) in this.freightspace2"
+          :key="index"
         >
-          未完货
-        </span>
-        <span
-          class="service"
-          v-show="deptBudgetList.feedbackStatus == '已完货'"
-          >{{ deptBudgetList.feedbackStatus }}</span
+          <ws-info-table>
+            <el-form-item label="航名" prop="caseNo" >{{ item.carNumber }}</el-form-item>
+            <el-form-item label="船次" prop="caseNo">{{ item.caseNo }}</el-form-item>
+            <ws-form-item label="装船净重(吨)" span="1" prop="loadNetWeight">{{ item.loadNetWeight }}</ws-form-item>
+            <el-form-item label="装船日期" span="1" prop="unloadingDate" label-width="100px">
+              <ws-date-picker v-model="item.unloadingDate" type="date" style="width: 150px" placeholder="请选择日期" value-format="yyyy-MM-dd"/>
+            </el-form-item>
+          </ws-info-table>
+        </div>
+      </div>
+      <div v-show='status3' class="small-title" style="font-size: 16px">
+        集装箱船反馈
+      </div>
+      <div v-show='status3' class="liaison">
+        <div
+          style="width: 100%"
+          class="flex position"
+          v-for="(item, index) in this.freightspace3"
+          :key="index"
         >
+         <ws-info-table>
+            <el-form-item label="箱号" prop="caseNo" >{{ item.carNumber }}</el-form-item>
+            <el-form-item label="封号" prop="caseNo">{{ item.caseNo }}</el-form-item>
+            <ws-form-item label="装船净重(吨)" span="1" prop="loadNetWeight">{{ item.loadNetWeight }}</ws-form-item>
+            <el-form-item label="装船日期" span="1" prop="unloadingDate" label-width="100px">
+              <ws-date-picker v-model="item.unloadingDate" type="date" style="width: 150px" placeholder="请选择日期" value-format="yyyy-MM-dd"/>
+            </el-form-item>
+          </ws-info-table>
+        </div>
       </div>
-      <!--运单-->
-      <ws-form-item label="运单:" span="1" prop="unloadPoundImg">
-        <!-- slot-scope="scope" -->
-        <template>
-          <el-upload
-            action="https://www.zthymaoyi.com/upload/admin"
-            :show-file-list="false"
-            :on-success="
-              (res) => {
-                uploadSuccessHandle1(res)
-              }
-            "
-            class="avatar-uploader"
-            accept=".jpg, .jpeg, .png, .gif"
-            ><img
-              width="18"
-              height="20"
-              style="vertical-align: text-top; position: relative"
-              src="../../../public/img/fujian.png"
-              alt=""
-            />
-          </el-upload>
-          <div class="tupian">
-            <span
-              v-if="
-                deptBudgetList.tranCarInfoList.length > 0 &&
-                  deptBudgetList.tranCarInfoList[0].unloadPoundImg != null
-              "
-              >{{ pictureTotal }}</span
-            >
-            <span
-              v-if="
-                deptBudgetList.tranCarInfoList.length > 0 &&
-                  deptBudgetList.tranCarInfoList[0].unloadPoundImg == null
-              "
-              >未上传</span
-            >
-            <el-button v-if="deptBudgetList.tranCarInfoList.length>0&&deptBudgetList.tranCarInfoList[0].unloadPoundImg != null" 
-               class="bg-bottom-preview" type="primary" size="small" :data-img="deptBudgetList.tranCarInfoList[0].unloadPoundImg" @click="$imgPreview">预览</el-button>
-          </div>
-        </template>
-      </ws-form-item>
     </ws-form>
     <!-- 完货 -->
     <div style="text-align: right; padding: 10px" class="center">
@@ -366,7 +169,7 @@
 </template>
 <script>
 import { regionData, CodeToText, TextToCode } from 'element-china-area-data'
-import { seeCat, packList, feedback, stateRec } from '@/model/transport/index'
+import { seeCat, packList, feedback, stateRec,gettranprocessinfo } from '@/model/transport/index'
 import { getstaff } from '@/model/warehouse/index'
 import WsUpload from '@/components/WsUpload'
 import mapDrag from '@/components/mapdrag/mapdrag'
@@ -390,22 +193,8 @@ export default {
       deptBudgetList: {
         totalStorage: 0,
       },
-      tranCarInfoList: {
-        driver: '',
-      },
-      options_: regionData,
       heightData: '600px',
-      zoom: 7,
-      selectedOptions: [],
-      center: [116.244694, 39.517344],
-      window: '',
-      radio: 1,
-      personCharge: [],
-      district: null,
-      driverList: [],
-      readonly: true,
-      listDate: { country: '中国', level: 'country', city: '' },
-      citylist: [],
+      checkList:[],
       compId: localStorage.getItem('ws-pf_compId'),
       rules: {
         warehouseName: [
@@ -422,11 +211,6 @@ export default {
           },
         ],
       },
-      tranType: 1,
-      size: 10,
-      value1: '',
-      unitList: [],
-
       freightspace1: [
         {
           accountTypeFlag: '1',
@@ -440,6 +224,27 @@ export default {
       ],
       freightspace: [
         {
+          carNumber:'',
+          driver: '',
+          driverPhone: '',
+          carNo: '',
+          loadNetWeight: '',
+          unloadPoundImg: '',
+        },
+      ],
+      freightspace2: [
+        {
+          carNumber:'',
+          driver: '',
+          driverPhone: '',
+          carNo: '',
+          loadNetWeight: '',
+          unloadPoundImg: '',
+        },
+      ],
+      freightspace3: [
+        {
+          carNumber:'',
           driver: '',
           driverPhone: '',
           carNo: '',
@@ -447,21 +252,15 @@ export default {
           unloadPoundImg: '',
         },
       ],
+      status:false,
+      status1:false,
+      status2:false,
+      status3:false,
       name: '',
       staffList: [],
-      options: [],
-      carModel: [],
-      tranCarInfoList: {
-        unloadPoundImg: '',
-      },
-      excelFreightspace:[],
-      //上传
-      accessoryTFs: false,
-      fileList: [],
-      appendixIdsAdd: '',
     }
   },
-  activated() {
+  mounted(){
     this.deptBudgetList.id = this.$route.query.id
     this.getList()
   },
@@ -488,6 +287,28 @@ export default {
     },
   },
   methods: {
+    checkchange(e){
+      if(e.indexOf('汽运')!=-1){
+        this.status=true
+      }else{
+        this.status=false
+      }
+      if(e.indexOf('火运')!=-1){
+        this.status1=true
+      }else{
+        this.status1=false
+      }
+      if(e.indexOf('散船')!=-1){
+        this.status2=true
+      }else{
+        this.status2=false
+      }
+      if(e.indexOf('集装箱船')!=-1){
+        this.status3=true
+      }else{
+        this.status3=false
+      }
+    },
     handleChange(file, fileList) {
       this.fileTemp = file.raw
       let fileName = file.raw.name
@@ -798,41 +619,12 @@ export default {
       this.$refs[deptBudgetList].resetFields()
     },
     getList() {
-      seeCat({ id: this.deptBudgetList.id })
+      console.log(1111)
+      gettranprocessinfo({ id: this.deptBudgetList.id })
         .toPromise()
         .then((response) => {
           this.deptBudgetList = response
-          if(response.tranCarInfoList.length > 0){
-            this.deptBudgetList.driver = response.tranCarInfoList[0].driver
-          this.deptBudgetList.driverPhone =
-            response.tranCarInfoList[0].driverPhone
-          this.$set(
-            this.deptBudgetList,
-            'sendDateStart',
-            response.tranCarInfoList[0].sendDateStart
-          )
-          this.deptBudgetList.receiveDateEnd =
-            response.tranCarInfoList[0].receiveDateEnd
-          this.deptBudgetList.shipName = response.tranCarInfoList[0].shipName
-          this.deptBudgetList.shipNo = response.tranCarInfoList[0].shipNo
-          this.deptBudgetList.shipType = response.tranCarInfoList[0].shipType
-          this.deptBudgetList.boxNumber = response.tranCarInfoList[0].boxNumber
-          //上传附件计数
-            if (this.deptBudgetList.tranCarInfoList[0].unloadPoundImg) {
-              this.pictureTotal =
-                this.deptBudgetList.tranCarInfoList[0].unloadPoundImg.split(
-                  ','
-                ).length
-            }
-
-          this.freightspace = response.tranCarInfoList
-          }
-          
-          for (var i = 0; i < this.freightspace.length; i++) {
-            if (!this.freightspace[i].loadNetWeight) {
-              this.freightspace[i].loadNetWeight = 0
-            }
-          }
+         
         })
       //司机姓名下拉
       getstaff({ compId: localStorage.getItem('ws-pf_compId') })

+ 2368 - 1847
src/views/warehouse/warehouseManagementGross.vue

@@ -3,12 +3,22 @@
   <div class="container">
     <el-row>
       <el-col :span="20">
-        <h2 class="bg-left title">{{information}}</h2>
+        <h2 class="bg-left title">{{ information }}</h2>
       </el-col>
       <el-col :span="4" class="bg-right">
-        <el-button class="bg-bottom" type="primary" size="small" @click="revert()">
-          <img width="6" height="10" style="vertical-align: bottom; margin-right: 3px"
-            src="../../../public/img/lujing.png" alt />返回
+        <el-button
+          class="bg-bottom"
+          type="primary"
+          size="small"
+          @click="revert()"
+        >
+          <img
+            width="6"
+            height="10"
+            style="vertical-align: bottom; margin-right: 3px"
+            src="../../../public/img/lujing.png"
+            alt
+          />返回
         </el-button>
       </el-col>
     </el-row>
@@ -16,200 +26,556 @@
     <ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules">
       <div class="basicInformation">
         <h2>
-          <img style="position: relative; top: 2px" width="19" height="19" src="../../../public/img/cangku.png" alt />
+          <img
+            style="position: relative; top: 2px"
+            width="19"
+            height="19"
+            src="../../../public/img/cangku.png"
+            alt
+          />
           {{ deptBudgetList.warehouseName }}
-          <span class="position" v-show="this.$route.query.warehouseType == 1">{{ deptBudgetList.binNumber }}仓位</span>
+          <span class="position" v-show="this.$route.query.warehouseType == 1"
+            >{{ deptBudgetList.binNumber }}仓位</span
+          >
           <span v-show="this.$route.query.warehouseType == 2">(临)</span>
         </h2>
+        <div class="top">
+          <div class="car-type">毛重</div>
+          <div class="weight">
+            {{ deptBudgetList.grossWeight }} <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>
         <ws-info-table>
           <!--任务编号-->
           <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
-            <el-select filterable clearable v-model="deptBudgetList.inOutTaskNo" placeholder="请选择任务编号"
-              class="typeselect" @change="contractNoChange">
-              <el-option v-for="item in deptBudgetList1" :key="item.inOutTaskNo" :label="item.inOutTaskNo"
-                :value="item.inOutTaskNo" />
+            <el-select
+              filterable
+              clearable
+              v-model="deptBudgetList.inOutTaskNo"
+              placeholder="请选择任务编号"
+              class="typeselect"
+              @change="contractNoChange"
+            >
+              <el-option
+                v-for="item in deptBudgetList1"
+                :key="item.inOutTaskNo"
+                :label="item.inOutTaskNo"
+                :value="item.inOutTaskNo"
+              />
             </el-select>
           </ws-form-item>
           <!--合同编号-->
           <ws-form-item label="合同编号" span="1" prop="contractNo">
-            <el-select disabled filterable clearable v-model="deptBudgetList.contractNo" 
-              class="typeselect" @change="contractNoChange1">
-              <el-option v-for="item in options1" :key="item.constKey" :label="item.contractNo"
-                :value="item.contractNo" />
+            <el-select
+              disabled
+              filterable
+              clearable
+              v-model="deptBudgetList.contractNo"
+              class="typeselect"
+              @change="contractNoChange1"
+            >
+              <el-option
+                v-for="item in options1"
+                :key="item.constKey"
+                :label="item.contractNo"
+                :value="item.contractNo"
+              />
             </el-select>
           </ws-form-item>
           <ws-form-item label="提示" span="1" prop="tips">
-           <ws-input  onmouseover="this.title=this.value" v-model="deptBudgetList.tips"
-              maxlength="20" size="small" />
+            <ws-input
+              onmouseover="this.title=this.value"
+              v-model="deptBudgetList.tips"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
           <!-- 货名 -->
           <ws-form-item label="货名" span="1">
-            <ws-select disabled v-model="deptBudgetList.goodsName" placeholder class="typeselect"
-              @change="selectgoodsName">
-              <ws-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
-                :value="item.constValue" />
+            <ws-select
+              disabled
+              v-model="deptBudgetList.goodsName"
+              placeholder
+              class="typeselect"
+              @change="selectgoodsName"
+            >
+              <ws-option
+                v-for="item in goodnameList"
+                :key="item.constKey"
+                :label="item.constValue"
+                :value="item.constValue"
+              />
             </ws-select>
           </ws-form-item>
           <ws-form-item label="类型" span="1" prop="type">
-            <ws-select disabled v-model="deptBudgetList.type" @change="typeChange">
-              <ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
+            <ws-select
+              disabled
+              v-model="deptBudgetList.type"
+              @change="typeChange"
+            >
+              <ws-option
+                v-for="item in typeList"
+                :key="item"
+                :label="item"
+                :value="item"
+              />
             </ws-select>
           </ws-form-item>
           <!--毛重(公斤)-->
           <ws-form-item label="毛重(公斤)" span="1" prop="grossWeight">
-            <ws-input :disabled="allowEdit" @input="grossWeightchange" v-model="deptBudgetList.grossWeight"
-              placeholder="请输入毛重" maxlength="20" type="number" @mousewheel.native.prevent size="small" />
-            <el-button type="primary" v-if="information == '毛重检斤'" @click="openPort">重新获取</el-button>
+            <ws-input
+              :disabled="allowEdit"
+              @input="grossWeightchange"
+              v-model="deptBudgetList.grossWeight"
+              placeholder="请输入毛重"
+              maxlength="20"
+              type="number"
+              @mousewheel.native.prevent
+              size="small"
+            />
+            <el-button
+              type="primary"
+              v-if="information == '毛重检斤'"
+              @click="openPort"
+              >重新获取</el-button
+            >
           </ws-form-item>
 
           <!--皮重(公斤)-->
-          <ws-form-item label="皮重(公斤)" span="1" prop="tare" class="readonly">
-            <ws-input :disabled="allowEdit" @input="tarechange" v-model="deptBudgetList.tare" placeholder="请输入皮重"
-              type="number" @mousewheel.native.prevent maxlength="100" size="small" />
-            <el-button type="primary" v-if="information == '皮重检斤'" @click="openPort">重新获取</el-button>
+          <ws-form-item
+            label="皮重(公斤)"
+            span="1"
+            prop="tare"
+            class="readonly"
+          >
+            <ws-input
+              :disabled="allowEdit"
+              @input="tarechange"
+              v-model="deptBudgetList.tare"
+              placeholder="请输入皮重"
+              type="number"
+              @mousewheel.native.prevent
+              maxlength="100"
+              size="small"
+            />
+            <el-button
+              type="primary"
+              v-if="information == '皮重检斤'"
+              @click="openPort"
+              >重新获取</el-button
+            >
           </ws-form-item>
-          <ws-form-item label="扣重(公斤)" span="1" prop="deductionWeight" class="readonly">
-            <ws-input @input="tarechange" v-model="deptBudgetList.deductionWeight" placeholder="请输入扣重" type="number"
-              @mousewheel.native.prevent maxlength="100" size="small" />
+          <ws-form-item
+            label="扣重(公斤)"
+            span="1"
+            prop="deductionWeight"
+            class="readonly"
+          >
+            <ws-input
+              @input="tarechange"
+              v-model="deptBudgetList.deductionWeight"
+              placeholder="请输入扣重"
+              type="number"
+              @mousewheel.native.prevent
+              maxlength="100"
+              size="small"
+            />
           </ws-form-item>
           <!--净重(公斤)-->
           <ws-form-item label="净重(公斤)" span="1" prop="netWeight">
-            <ws-input disabled v-model="deptBudgetList.netWeight" placeholder="不可编辑,自动计算" maxlength="120"
-              size="small" />
+            <ws-input
+              disabled
+              v-model="deptBudgetList.netWeight"
+              placeholder="不可编辑,自动计算"
+              maxlength="120"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item v-if="deptBudgetList.type == '潮粮'" label="扣重比" span="1" prop="buckleWeightRatio"
-            class="readonly">
-            <ws-input @input="pureweight" v-model="deptBudgetList.buckleWeightRatio" placeholder="请输入扣重比" type="number"
-              @mousewheel.native.prevent maxlength="100" size="small" />
+          <ws-form-item
+            v-if="deptBudgetList.type == '潮粮'"
+            label="扣重比"
+            span="1"
+            prop="buckleWeightRatio"
+            class="readonly"
+          >
+            <ws-input
+              @input="pureweight"
+              v-model="deptBudgetList.buckleWeightRatio"
+              placeholder="请输入扣重比"
+              type="number"
+              @mousewheel.native.prevent
+              maxlength="100"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item v-if="deptBudgetList.type == '潮粮'" label="干粮水分占比" span="1" prop="solidGrainWater"
-            class="readonly">
-            <ws-input @input="pureweight" v-model="deptBudgetList.solidGrainWater" placeholder="请输入干粮水分占比"
-              maxlength="100" type="number" @mousewheel.native.prevent size="small" />
+          <ws-form-item
+            v-if="deptBudgetList.type == '潮粮'"
+            label="干粮水分占比"
+            span="1"
+            prop="solidGrainWater"
+            class="readonly"
+          >
+            <ws-input
+              @input="pureweight"
+              v-model="deptBudgetList.solidGrainWater"
+              placeholder="请输入干粮水分占比"
+              maxlength="100"
+              type="number"
+              @mousewheel.native.prevent
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item v-if="deptBudgetList.type == '潮粮'" label="潮粮水分占比" span="1" prop="tidalGrainWater"
-            class="readonly">
-            <ws-input @input="pureweight(1)" v-model="deptBudgetList.tidalGrainWater" placeholder="请输入潮粮水分占比"
-              maxlength="100" type="number" @mousewheel.native.prevent size="small" />
+          <ws-form-item
+            v-if="deptBudgetList.type == '潮粮'"
+            label="潮粮水分占比"
+            span="1"
+            prop="tidalGrainWater"
+            class="readonly"
+          >
+            <ws-input
+              @input="pureweight(1)"
+              v-model="deptBudgetList.tidalGrainWater"
+              placeholder="请输入潮粮水分占比"
+              maxlength="100"
+              type="number"
+              @mousewheel.native.prevent
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item v-if="deptBudgetList.type == '潮粮'" label="纯重" span="1" prop="pureWeight" class="readonly">
-            <ws-input disabled v-model="deptBudgetList.pureWeight" placeholder="不可编辑,自动计算" maxlength="100"
-              size="small" />
+          <ws-form-item
+            v-if="deptBudgetList.type == '潮粮'"
+            label="纯重"
+            span="1"
+            prop="pureWeight"
+            class="readonly"
+          >
+            <ws-input
+              disabled
+              v-model="deptBudgetList.pureWeight"
+              placeholder="不可编辑,自动计算"
+              maxlength="100"
+              size="small"
+            />
           </ws-form-item>
           <!--净重(公斤)-->
           <ws-form-item label="扣款(元/公斤)" span="1" prop="deductionAmount">
-            <ws-input @input="kkInput(deptBudgetList.deductionAmount)" v-model="deptBudgetList.deductionAmount"
-              placeholder="请输入扣款金额" maxlength="120" size="small" />
+            <ws-input
+              @input="kkInput(deptBudgetList.deductionAmount)"
+              v-model="deptBudgetList.deductionAmount"
+              placeholder="请输入扣款金额"
+              maxlength="120"
+              size="small"
+            />
           </ws-form-item>
           <!-- 品级 -->
           <ws-form-item label="品级" span="1" class="readonly">
-            <ws-select v-model="deptBudgetList.grade" placeholder class="typeselect" @change="selectpackingMethod">
-              <ws-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
-                :value="item.constValue" />
+            <ws-select
+              v-model="deptBudgetList.grade"
+              placeholder
+              class="typeselect"
+              @change="selectpackingMethod"
+            >
+              <ws-option
+                v-for="item in gradeList"
+                :key="item.constKey"
+                :label="item.constValue"
+                :value="item.constValue"
+              />
             </ws-select>
           </ws-form-item>
 
           <!--经办人-->
           <ws-form-item label="经办人" span="1" prop="agent">
-            <el-select v-model="deptBudgetList.agent" placeholder="请选择经办人" filterable clearable @change="selectstaff">
-              <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
+            <el-select
+              v-model="deptBudgetList.agent"
+              placeholder="请选择经办人"
+              filterable
+              clearable
+              @change="selectstaff"
+            >
+              <el-option
+                v-for="item in options"
+                :key="item.value"
+                :label="item.staffName"
+                :value="item.staffName"
+              />
             </el-select>
           </ws-form-item>
-          
+
           <!--出库日期-->
-          <ws-form-item label="入库日期" span="1" prop="inOutDate" class="deliverydate">
-            <el-date-picker v-model="deptBudgetList.inOutDate" placeholder="请选择入库日期" type="date"
-              value-format="yyyy-MM-dd"></el-date-picker>
+          <ws-form-item
+            label="入库日期"
+            span="1"
+            prop="inOutDate"
+            class="deliverydate"
+          >
+            <el-date-picker
+              v-model="deptBudgetList.inOutDate"
+              placeholder="请选择入库日期"
+              type="date"
+              value-format="yyyy-MM-dd"
+            ></el-date-picker>
           </ws-form-item>
           <!-- 入库类型 -->
           <ws-form-item label="入库类型" span="1">
-            <ws-select v-model="deptBudgetList.inOutType" placeholder class="typeselect" @change="selectstorageType"
-              :disabled="isSelectType">
-              <ws-option v-for="item in storageType" :key="item.constKey" :label="item.constValue"
-                :value="item.constValue" />
+            <ws-select
+              v-model="deptBudgetList.inOutType"
+              placeholder
+              class="typeselect"
+              @change="selectstorageType"
+              :disabled="isSelectType"
+            >
+              <ws-option
+                v-for="item in storageType"
+                :key="item.constKey"
+                :label="item.constValue"
+                :value="item.constValue"
+              />
             </ws-select>
           </ws-form-item>
-           <!--入库方式-->
+          <!--入库方式-->
           <ws-form-item label="入库方式" span="1" prop="outType">
-            <el-select v-model="deptBudgetList.outType" placeholder="请选择入库方式">
-              <el-option v-for="item in multiSelector" :key="item.value" :label="item.name" :value="item.name" />
+            <el-select
+              v-model="deptBudgetList.outType"
+              placeholder="请选择入库方式"
+            >
+              <el-option
+                v-for="item in multiSelector"
+                :key="item.value"
+                :label="item.name"
+                :value="item.name"
+              />
             </el-select>
           </ws-form-item>
           <!--车牌号  -->
-          <ws-form-item label="车牌号" span="1" prop="carNo" v-if="deptBudgetList.outType == '汽运' || deptBudgetList.outType == '集装箱船'">
-            <ws-input v-if="!carstatus" v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7"
-              size="small" />
-            <el-select v-if="carstatus" filterable :filter-method="dataFilter2" v-model="deptBudgetList.carNo"
-              placeholder="请选择车牌号" class="typeselect" @change="carChange">
-              <el-option v-for="item in options2" :key="item.constKey" :label="item.carNo + '(' + item.tranCarNo + ')'"
-                :value="item.carNo" />
+          <ws-form-item
+            label="车牌号"
+            span="1"
+            prop="carNo"
+            v-if="
+              deptBudgetList.outType == '汽运' ||
+              deptBudgetList.outType == '集装箱船'
+            "
+          >
+            <ws-input
+              v-if="!carstatus"
+              v-model="deptBudgetList.carNo"
+              placeholder="请输入车牌号"
+              maxlength="7"
+              size="small"
+            />
+            <el-select
+              v-if="carstatus"
+              filterable
+              :filter-method="dataFilter2"
+              v-model="deptBudgetList.carNo"
+              placeholder="请选择车牌号"
+              class="typeselect"
+              @change="carChange"
+            >
+              <el-option
+                v-for="item in options2"
+                :key="item.constKey"
+                :label="item.carNo + '(' + item.tranCarNo + ')'"
+                :value="item.carNo"
+              />
             </el-select>
           </ws-form-item>
-            <!--船名  -->
-          <ws-form-item label="船名" span="1" prop="carNo" v-if="deptBudgetList.outType == '散船'">
-            <ws-input  v-model="deptBudgetList.carNo" placeholder="请输入船名" size="small" />
+          <!--船名  -->
+          <ws-form-item
+            label="船名"
+            span="1"
+            prop="carNo"
+            v-if="deptBudgetList.outType == '散船'"
+          >
+            <ws-input
+              v-model="deptBudgetList.carNo"
+              placeholder="请输入船名"
+              size="small"
+            />
           </ws-form-item>
-             <!--车号  -->
-          <ws-form-item label="车号" span="1" prop="carNo" v-if="deptBudgetList.outType == '火运'">
-            <ws-input  v-model="deptBudgetList.carNo" placeholder="请输入车号" size="small"/>
+          <!--车号  -->
+          <ws-form-item
+            label="车号"
+            span="1"
+            prop="carNo"
+            v-if="deptBudgetList.outType == '火运'"
+          >
+            <ws-input
+              v-model="deptBudgetList.carNo"
+              placeholder="请输入车号"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item label="箱号-1" span="1" prop="boxNo" v-if="deptBudgetList.outType == '汽运' || deptBudgetList.outType == '集装箱船'">
-            <ws-input v-model="deptBudgetList.boxNo" placeholder="请输入箱号" maxlength="20"
-              size="small" />
+          <ws-form-item
+            label="箱号-1"
+            span="1"
+            prop="boxNo"
+            v-if="
+              deptBudgetList.outType == '汽运' ||
+              deptBudgetList.outType == '集装箱船'
+            "
+          >
+            <ws-input
+              v-model="deptBudgetList.boxNo"
+              placeholder="请输入箱号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item label="箱号-2" span="1" prop="boxNoOther" v-if="deptBudgetList.outType == '汽运' || deptBudgetList.outType == '集装箱船'">
-            <ws-input v-model="deptBudgetList.boxNoOther" placeholder="请输入箱号" maxlength="20"
-              size="small" />
+          <ws-form-item
+            label="箱号-2"
+            span="1"
+            prop="boxNoOther"
+            v-if="
+              deptBudgetList.outType == '汽运' ||
+              deptBudgetList.outType == '集装箱船'
+            "
+          >
+            <ws-input
+              v-model="deptBudgetList.boxNoOther"
+              placeholder="请输入箱号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item label="封号-1" span="1" prop="titleNo" v-if="deptBudgetList.outType == '汽运' || deptBudgetList.outType == '集装箱船'">
-            <ws-input v-model="deptBudgetList.titleNo" placeholder="请输入封号" maxlength="20"
-              size="small" />
+          <ws-form-item
+            label="封号-1"
+            span="1"
+            prop="titleNo"
+            v-if="
+              deptBudgetList.outType == '汽运' ||
+              deptBudgetList.outType == '集装箱船'
+            "
+          >
+            <ws-input
+              v-model="deptBudgetList.titleNo"
+              placeholder="请输入封号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item label="封号-2" span="1" prop="titleNoOther" v-if="deptBudgetList.outType == '汽运' || deptBudgetList.outType == '集装箱船'">
-            <ws-input v-model="deptBudgetList.titleNoOther" placeholder="请输入封号" maxlength="20"
-              size="small" />
+          <ws-form-item
+            label="封号-2"
+            span="1"
+            prop="titleNoOther"
+            v-if="
+              deptBudgetList.outType == '汽运' ||
+              deptBudgetList.outType == '集装箱船'
+            "
+          >
+            <ws-input
+              v-model="deptBudgetList.titleNoOther"
+              placeholder="请输入封号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item label="车厢号-1" span="1" prop="wingNumber" v-if="deptBudgetList.outType == '火运'">
-            <ws-input v-model="deptBudgetList.wingNumber" placeholder="请输入车厢号" maxlength="20"
-              size="small" />
+          <ws-form-item
+            label="车厢号-1"
+            span="1"
+            prop="wingNumber"
+            v-if="deptBudgetList.outType == '火运'"
+          >
+            <ws-input
+              v-model="deptBudgetList.wingNumber"
+              placeholder="请输入车厢号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item label="车厢号-2" span="1" prop="wingNumberOther" v-if="deptBudgetList.outType == '火运'">
-            <ws-input v-model="deptBudgetList.wingNumberOther" placeholder="请输入车厢号" maxlength="20"
-              size="small" />
+          <ws-form-item
+            label="车厢号-2"
+            span="1"
+            prop="wingNumberOther"
+            v-if="deptBudgetList.outType == '火运'"
+          >
+            <ws-input
+              v-model="deptBudgetList.wingNumberOther"
+              placeholder="请输入车厢号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
           <ws-form-item label="成本" span="1" prop="cost">
-            <ws-input :disabled="disabled1" v-model="deptBudgetList.cost" placeholder="请输入成本" size="small" type="number"
-              @mousewheel.native.prevent />
-            <img width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
-              src="../../../public/img/edit.png" @click="editClick(1)" alt="" />
+            <ws-input
+              :disabled="disabled1"
+              v-model="deptBudgetList.cost"
+              placeholder="请输入成本"
+              size="small"
+              type="number"
+              @mousewheel.native.prevent
+            />
+            <img
+              width="17"
+              height="18"
+              style="vertical-align: text-top; position: relative; top: -1px"
+              src="../../../public/img/edit.png"
+              @click="editClick(1)"
+              alt=""
+            />
           </ws-form-item>
           <ws-form-item label="运费" span="1" prop="freight">
-            <ws-input :disabled="disabled2" v-model="deptBudgetList.freight" placeholder="请输入运费" size="small"
-              type="number" @mousewheel.native.prevent />
-            <img width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
-              src="../../../public/img/edit.png" @click="editClick(2)" alt="" />
+            <ws-input
+              :disabled="disabled2"
+              v-model="deptBudgetList.freight"
+              placeholder="请输入运费"
+              size="small"
+              type="number"
+              @mousewheel.native.prevent
+            />
+            <img
+              width="17"
+              height="18"
+              style="vertical-align: text-top; position: relative; top: -1px"
+              src="../../../public/img/edit.png"
+              @click="editClick(2)"
+              alt=""
+            />
           </ws-form-item>
           <!-- onkeyup="value=value.replace(/[^\A-\Z0-9\u4E00-\u9FA5\.]/g,'')" -->
         </ws-info-table>
-        <div v-show="
+        <div
+          v-show="
             this.$route.query.warehouseType == 2 &&
             this.deptBudgetList.createType == 2
-          ">
+          "
+        >
           <el-checkbox v-model="checked" checked>退库并出库</el-checkbox>
-          <ws-info-table v-show="checked == true && this.deptBudgetList.createType == 2">
+          <ws-info-table
+            v-show="checked == true && this.deptBudgetList.createType == 2"
+          >
             <!-- 出库类型 -->
             <ws-form-item label="出库类型" span="1" prop="temporaryOutType">
               <!-- v-model="deptBudgetList.deliveryType" -->
-              <ws-select v-model="deptBudgetList.temporaryOutType" placeholder class="typeselect">
-                <ws-option v-for="item in deliveryType" :key="item.constKey" :label="item.constValue"
-                  :value="item.constValue" />
+              <ws-select
+                v-model="deptBudgetList.temporaryOutType"
+                placeholder
+                class="typeselect"
+              >
+                <ws-option
+                  v-for="item in deliveryType"
+                  :key="item.constKey"
+                  :label="item.constValue"
+                  :value="item.constValue"
+                />
               </ws-select>
             </ws-form-item>
             <!-- 出库合同编号 -->
             <ws-form-item label="出库合同编号" span="1">
-              <ws-select v-model="deptBudgetList.outContractNo" placeholder="请选择合同编号或移库任务编号" class="typeselect">
-                <ws-option v-for="item in outContractNo" :key="item.constKey" :label="item.contractNo"
-                  :value="item.contractNo" />
+              <ws-select
+                v-model="deptBudgetList.outContractNo"
+                placeholder="请选择合同编号或移库任务编号"
+                class="typeselect"
+              >
+                <ws-option
+                  v-for="item in outContractNo"
+                  :key="item.constKey"
+                  :label="item.contractNo"
+                  :value="item.contractNo"
+                />
               </ws-select>
             </ws-form-item>
           </ws-info-table>
@@ -229,8 +595,12 @@
       >
       <el-button size="small" type="primary">点击上传</el-button>
       </el-upload> -->
-      <div v-if='deptBudgetList.addressUrl!=""'>
-        <img style="width: 100px; height: 100px" :src="deptBudgetList.addressUrl" alt="" />
+      <div v-if="deptBudgetList.addressUrl != ''">
+        <img
+          style="width: 100px; height: 100px"
+          :src="deptBudgetList.addressUrl"
+          alt=""
+        />
       </div>
       <div class="small-title">化验数据(选填)</div>
       <div class="inspector">
@@ -245,10 +615,19 @@
         </ws-form-item> -->
 
         <ws-form-item label="质检员" span="1" prop="qualityInspector">
-          <el-select v-model="deptBudgetList.warehouseInOutDetail.qualityInspector" placeholder="请选择质检员" filterable
-            clearable @change="qualityInspectorChange">
-            <el-option v-for="item in qualityInspectorList" :key="item.value" :label="item.staffName"
-              :value="item.staffName" />
+          <el-select
+            v-model="deptBudgetList.warehouseInOutDetail.qualityInspector"
+            placeholder="请选择质检员"
+            filterable
+            clearable
+            @change="qualityInspectorChange"
+          >
+            <el-option
+              v-for="item in qualityInspectorList"
+              :key="item.value"
+              :label="item.staffName"
+              :value="item.staffName"
+            />
           </el-select>
         </ws-form-item>
       </div>
@@ -257,2013 +636,2155 @@
         <ws-info-table>
           <!--水分(%)<=-->
           <ws-form-item label="水分(%)" span="1" prop="waterContent">
-            <ws-input v-model="deptBudgetList.warehouseInOutDetail.waterContent" type="number"
-              @mousewheel.native.prevent placeholder="请输入水分占比" maxlength="40" size="small" />
+            <ws-input
+              v-model="deptBudgetList.warehouseInOutDetail.waterContent"
+              type="number"
+              @mousewheel.native.prevent
+              placeholder="请输入水分占比"
+              maxlength="40"
+              size="small"
+            />
           </ws-form-item>
           <!--杂质(%)<=-->
           <ws-form-item label="杂质(%)" span="1" prop="impurity">
-            <ws-input v-model="deptBudgetList.warehouseInOutDetail.impurity" type="number" @mousewheel.native.prevent
-              placeholder="请输入杂质占比" maxlength="40" size="small" />
+            <ws-input
+              v-model="deptBudgetList.warehouseInOutDetail.impurity"
+              type="number"
+              @mousewheel.native.prevent
+              placeholder="请输入杂质占比"
+              maxlength="40"
+              size="small"
+            />
           </ws-form-item>
           <!--容重(克/升)-->
           <ws-form-item label="容重(克/升)" span="1" prop="bulkDensity">
-            <ws-input v-model="deptBudgetList.warehouseInOutDetail.bulkDensity" type="number" @mousewheel.native.prevent
-              placeholder="请输入容重" maxlength="40" size="small" />
+            <ws-input
+              v-model="deptBudgetList.warehouseInOutDetail.bulkDensity"
+              type="number"
+              @mousewheel.native.prevent
+              placeholder="请输入容重"
+              maxlength="40"
+              size="small"
+            />
           </ws-form-item>
           <!--霉变粒(%)<=-->
           <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
-            <ws-input v-model="deptBudgetList.warehouseInOutDetail.mildewGrain" type="number" @mousewheel.native.prevent
-              placeholder="请输入霉变粒占比" maxlength="40" size="small" />
+            <ws-input
+              v-model="deptBudgetList.warehouseInOutDetail.mildewGrain"
+              type="number"
+              @mousewheel.native.prevent
+              placeholder="请输入霉变粒占比"
+              maxlength="40"
+              size="small"
+            />
           </ws-form-item>
           <!--热损伤(%)<=-->
           <ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
-            <ws-input v-model="deptBudgetList.warehouseInOutDetail.jiaorenli" type="number" @mousewheel.native.prevent
-              placeholder="请输入热损伤占比" maxlength="40" size="small" />
+            <ws-input
+              v-model="deptBudgetList.warehouseInOutDetail.jiaorenli"
+              type="number"
+              @mousewheel.native.prevent
+              placeholder="请输入热损伤占比"
+              maxlength="40"
+              size="small"
+            />
           </ws-form-item>
           <!--不完善粒(%)<=-->
           <ws-form-item label="不完善粒(%)" span="1" prop="imperfectGrain">
-            <ws-input v-model="deptBudgetList.warehouseInOutDetail.imperfectGrain" type="number"
-              @mousewheel.native.prevent placeholder="请输入不完善粒占比" maxlength="40" size="small" />
+            <ws-input
+              v-model="deptBudgetList.warehouseInOutDetail.imperfectGrain"
+              type="number"
+              @mousewheel.native.prevent
+              placeholder="请输入不完善粒占比"
+              maxlength="40"
+              size="small"
+            />
           </ws-form-item>
         </ws-info-table>
       </div>
       <div style="text-align: right; padding: 10px">
-        <el-button v-if="information == '毛重检斤'" class="bg-bottom-up" type="primary" size="small"
-          @click="temporaryStorage()">保存</el-button>
-        <el-button v-if="!allowEdit" class="bg-bottom-up" type="primary" size="small" @click="submit()">提交</el-button>
+        <el-button
+          v-if="information == '毛重检斤'"
+          class="bg-bottom-up"
+          type="primary"
+          size="small"
+          @click="temporaryStorage()"
+          >保存</el-button
+        >
+        <el-button
+          v-if="!allowEdit"
+          class="bg-bottom-up"
+          type="primary"
+          size="small"
+          @click="submit()"
+          >提交</el-button
+        >
       </div>
     </ws-form>
   </div>
 </template>
 <script>
-  import {
-    pullDown,
-    addstorageputList,
-    xialaNo,
-    getstaff,
-    getReceiptTaskNo
-  } from '@/model/warehouse/index'
-  import Pagination from '@/components/Pagination'
-  import WsUpload from '@/components/WsUpload'
-  // import { dayjs, fmoney, EventBus } from 'base-core-lib'
-  import {
-    dayjs,
-    EventBus
-  } from 'base-core-lib'
-  export default {
-    name: 'viewSpareMoney',
-    components: {
-      WsUpload,
-      Pagination,
+import {
+  pullDown,
+  addstorageputList,
+  xialaNo,
+  getstaff,
+  getReceiptTaskNo,
+} from '@/model/warehouse/index'
+import Pagination from '@/components/Pagination'
+import WsUpload from '@/components/WsUpload'
+// import { dayjs, fmoney, EventBus } from 'base-core-lib'
+import { dayjs, EventBus } from 'base-core-lib'
+export default {
+  name: 'viewSpareMoney',
+  components: {
+    WsUpload,
+    Pagination,
+  },
+  watch: {
+    // vesselId(val) {
+    //   this.getList()
+    // },
+    isShow(val) {
+      this.showType = val
     },
-    watch: {
-      // vesselId(val) {
-      //   this.getList()
-      // },
-      isShow(val) {
-        this.showType = val
-      },
-    },
-    data() {
-      return {
-        deptBudgetList1: [],
-        qualityInspectorList: [],
-        isGetCost: false,
-        isSelectType: true,
-        //弹出框
-        dialogViewSpareMoney: false,
-        dialogApproveFormVisible: false,
-        // 船舶类型
-        monetaryKey: null,
-        // 表格显示数据
-        tableDate: [],
-        // 是否显示
-        showType: true,
-        typeList: ['干粮', '潮粮'],
-        // 年
-        year: '',
-        carstatus: false,
-        deptBudgetTotal: 0,
-        currentPage: 1,
-        pageSize: 10,
-        searchType: 1,
-        searchKeyWord: '',
-        contractType: 2,
-        startDate: null,
-        endDate: null,
-        goodnameList: {},
-        checked: true,
-        agent: [],
-        staffList: [],
-        options: [],
-        options1: [],
-        options2: [],
-        outContractNo1: [],
-        outContractNo: [],
-
-        // 提交类型
-        submitType: true,
-        storageType: [],
-        deliveryType: [],
-        readonly: true,
-        appendixIdsAdd: '',
-        uploadSuccess: {},
-        onChange: {},
-        gradeList: [],
-        rules: {
+  },
+  data() {
+    return {
+      deptBudgetList1: [],
+      qualityInspectorList: [],
+      isGetCost: false,
+      isSelectType: true,
+      //弹出框
+      dialogViewSpareMoney: false,
+      dialogApproveFormVisible: false,
+      // 船舶类型
+      monetaryKey: null,
+      // 表格显示数据
+      tableDate: [],
+      // 是否显示
+      showType: true,
+      typeList: ['干粮', '潮粮'],
+      // 年
+      year: '',
+      carstatus: false,
+      deptBudgetTotal: 0,
+      currentPage: 1,
+      pageSize: 10,
+      searchType: 1,
+      searchKeyWord: '',
+      contractType: 2,
+      startDate: null,
+      endDate: null,
+      goodnameList: {},
+      checked: true,
+      agent: [],
+      staffList: [],
+      options: [],
+      options1: [],
+      options2: [],
+      outContractNo1: [],
+      outContractNo: [],
 
+      // 提交类型
+      submitType: true,
+      storageType: [],
+      deliveryType: [],
+      readonly: true,
+      appendixIdsAdd: '',
+      uploadSuccess: {},
+      onChange: {},
+      gradeList: [],
+      rules: {},
+      size: 10,
+      disabled1: true,
+      disabled2: true,
+      tranCarInfoList: [],
+      compId: localStorage.getItem('ws-pf_compId'),
+      secretaryWeigher: localStorage.getItem('ws-pf_staffName'),
+      deptCircularPage: {},
+      packtypeList: {},
+      date: {
+        year: dayjs().format('YYYY'),
+        month: dayjs().format('MM'),
+      },
+      contractList: [],
+      deptBudgetList: {
+        type: '干粮',
+        freight: 0,
+        cost: '',
+        addressUrl: '',
+        warehouseInOutDetail: {},
+        deductionAmount: 0,
+        deductionWeight: 0,
+        grossWeight: '',
+        tare: '',
+        inOutDate: '',
+      },
+      historyList: [],
+      cost: '',
+      pickerBeginDateBefore: {
+        disabledDate: (time) => {
+          return time.getTime() > Date.now()
         },
-        size: 10,
-        disabled1: true,
-        disabled2: true,
-        tranCarInfoList: [],
-        compId: localStorage.getItem('ws-pf_compId'),
-        secretaryWeigher: localStorage.getItem('ws-pf_staffName'),
-        deptCircularPage: {},
-        packtypeList: {},
-        date: {
-          year: dayjs().format('YYYY'),
-          month: dayjs().format('MM'),
+      },
+      accessoryTFs: false,
+      allowEdit: true,
+      param: 9600,
+      information: '',
+      result1: '00',
+      multiSelector: [
+        {
+          name: '汽运',
+          value: '0',
         },
-        contractList: [],
-        deptBudgetList: {
-          type: '干粮',
-          freight: 0,
-          cost: '',
-          addressUrl: '',
-          warehouseInOutDetail: {},
-          deductionAmount: 0,
-          deductionWeight: 0,
-          grossWeight: '',
-          tare: '',
-          inOutDate:'',
+        {
+          name: '火运',
+          value: '1',
         },
-        historyList: [],
-        cost: '',
-        pickerBeginDateBefore: {
-          disabledDate: (time) => {
-            return time.getTime() > Date.now()
-          },
+        {
+          name: '集装箱船',
+          value: '2',
         },
-        accessoryTFs: false,
-        allowEdit: true,
-        param: 9600,
-        information: '',
-        result1: '00',
-        multiSelector: [{
-						name: '汽运',
-						value: '0'
-					},
-					{
-						name: '火运',
-						value: '1'
-					},
-					{
-						name: '集装箱船',
-						value: '2'
-					},
-					{
-						name: '散船',
-						value: '3'
-					},
-				],
-      }
-    },
-    mounted() {
-        let date = new Date()
-        var year = date.getFullYear();
-        var month = date.getMonth() + 1;
-        var strDate = date.getDate()
-        this.deptBudgetList.inOutDate = ''+year+'-'+month+'-'+strDate
-      this.information = this.$route.query.information
-      if (this.$route.query.allowEdit == 1) {
-        this.allowEdit = false
+        {
+          name: '散船',
+          value: '3',
+        },
+      ],
+    }
+  },
+  mounted() {
+    let date = new Date()
+    var year = date.getFullYear()
+    var month = date.getMonth() + 1
+    var strDate = date.getDate()
+    this.deptBudgetList.inOutDate = '' + year + '-' + month + '-' + strDate
+    this.information = this.$route.query.information
+    if (this.$route.query.allowEdit == 1) {
+      this.allowEdit = false
+    } else {
+      this.allowEdit = true
+    }
+    this.deptBudgetList.baseId = this.$route.query.baseId
+    this.deptBudgetList.positionId = this.$route.query.positionId
+    this.deptBudgetList.warehouseName = this.$route.query.warehouseName
+    this.deptBudgetList.binNumber = this.$route.query.binNumber
+    this.deptBudgetList.warehouseType = this.$route.query.warehouseType
+    this.deptBudgetList.createType = this.$route.query.createType
+    this.getList()
+    // this.deptBudgetList.grade = '一等品'
+    // this.deptBudgetList.gradeKey = '1'
+    this.deptBudgetList.inOutTypeFlag = 1
+    if (this.deptBudgetList.cost) {
+      if (this.deptBudgetList.cost > this.deptBudgetList.deductionAmount) {
+        this.deptBudgetList.cost =
+          this.cost - this.deptBudgetList.deductionAmount
       } else {
-        this.allowEdit = true
-      }
-      this.deptBudgetList.baseId = this.$route.query.baseId
-      this.deptBudgetList.positionId = this.$route.query.positionId
-      this.deptBudgetList.warehouseName = this.$route.query.warehouseName
-      this.deptBudgetList.binNumber = this.$route.query.binNumber
-      this.deptBudgetList.warehouseType = this.$route.query.warehouseType
-      this.deptBudgetList.createType = this.$route.query.createType
-      this.getList()
-      // this.deptBudgetList.grade = '一等品'
-      // this.deptBudgetList.gradeKey = '1'
-      this.deptBudgetList.inOutTypeFlag = 1
-      if (this.deptBudgetList.cost) {
-        if (this.deptBudgetList.cost > this.deptBudgetList.deductionAmount) {
-          this.deptBudgetList.cost = this.cost - this.deptBudgetList.deductionAmount
-        } else {
-
-        }
       }
-      getReceiptTaskNo({flag:2,warehouseName:this.deptBudgetList.warehouseName,agentKey: localStorage.getItem('ws-pf_userId')}).toPromise()
-        .then((response) => {
-          console.log(response)
-          this.deptBudgetList1 = response
-        })
-      // if (this.deptBudgetList.warehouseType == 1) {
-      //   // this.deptBudgetList.inOutType = '采购入库'
-      //   this.deptBudgetList.inOutTypeKey = '1'
-      // } else {
-      //   // this.deptBudgetList.inOutType = '退库'
-      //   this.deptBudgetList.inOutTypeKey = '1'
-      // }
+    }
+    getReceiptTaskNo({
+      flag: 2,
+      warehouseName: this.deptBudgetList.warehouseName,
+      agentKey: localStorage.getItem('ws-pf_userId'),
+    })
+      .toPromise()
+      .then((response) => {
+        console.log(response)
+        this.deptBudgetList1 = response
+      })
+    // if (this.deptBudgetList.warehouseType == 1) {
+    //   // this.deptBudgetList.inOutType = '采购入库'
+    //   this.deptBudgetList.inOutTypeKey = '1'
+    // } else {
+    //   // this.deptBudgetList.inOutType = '退库'
+    //   this.deptBudgetList.inOutTypeKey = '1'
+    // }
+  },
+  methods: {
+    async closePort() {
+      console.log('closePort')
+      this.reader.cancel()
     },
-    methods: {
-    
-      async closePort() {
-        console.log('closePort');
-        this.reader.cancel()
-      },
-      async openPort() {
-        console.log('openPort', navigator);
-        if ('serial' in navigator) {
-          // The Web Serial API is supported.
-          console.log('the Web Serial API is supported.');
-          console.log(this.param);
-          const port = await navigator.serial.requestPort();
-          await port.open({
-            baudRate: this.param
-          }); // set baud rate
-          this.reader = port.readable.getReader();
-          // 监听来自串行设备的数据
-          while (true) {
-            const {
-              value,
-              done
-            } = await this.reader.read();
-            // console.log("value",value);
-            if (done) {
-              // 允许稍后关闭串口。
-              this.reader.releaseLock();
-              break;
+    async openPort() {
+      console.log('openPort', navigator)
+      if ('serial' in navigator) {
+        // The Web Serial API is supported.
+        console.log('the Web Serial API is supported.')
+        console.log(this.param)
+        const port = await navigator.serial.requestPort()
+        await port.open({
+          baudRate: this.param,
+        }) // set baud rate
+        this.reader = port.readable.getReader()
+        // 监听来自串行设备的数据
+        while (true) {
+          const { value, done } = await this.reader.read()
+          // console.log("value",value);
+          if (done) {
+            // 允许稍后关闭串口。
+            this.reader.releaseLock()
+            break
+          }
+          var result = ''
+          //2。获取16进制字符串
+          // var receData = HexConvert.ByteToString(value);
+          // console.log("receData",receData);
+          var flag = false
+          var flag1 = false
+          // for (var i = 0; i < value.length; i++) {
+          //   var tmp = String.fromCharCode(value[i])
+          //   if (tmp == '+') {
+          //     flag = true
+          //   }
+          //   if (flag && result.length < 6 && tmp != '+') {
+          //     result += tmp
+          //   }
+          // }
+          // if (this.information != '毛重检斤') {
+          //   if(parseInt(result)){
+          //     this.deptBudgetList.grossWeight = parseInt(result)
+          //   }
+          // } else {
+          //   if(parseInt(result)){
+          //     this.deptBudgetList.tare = parseInt(result)
+          //   }
+          // }
+          console.log('value:', value)
+          if (
+            this.deptBudgetList.warehouseName &&
+            (this.deptBudgetList.warehouseName == '山东诸城迈饶库' ||
+              this.deptBudgetList.warehouseName == '克东千红库' ||
+              this.deptBudgetList.warehouseName == '鲅鱼圈祥腾库' ||
+              this.deptBudgetList.warehouseName == '哈尔滨依兰库')
+          ) {
+            for (var i = 0; i < value.length; i++) {
+              var tmp = String.fromCharCode(value[i])
+              if (tmp == '+') {
+                flag = true
+              }
+              if (flag && result.length < 6 && tmp != '+') {
+                result += tmp
+              }
             }
-            var result = '';
-            //2。获取16进制字符串
-            // var receData = HexConvert.ByteToString(value);
-            // console.log("receData",receData);
-            var flag = false;
-            var flag1 = false;
-            // for (var i = 0; i < value.length; i++) {
-            //   var tmp = String.fromCharCode(value[i])
-            //   if (tmp == '+') {
-            //     flag = true
-            //   }
-            //   if (flag && result.length < 6 && tmp != '+') {
-            //     result += tmp
-            //   }
-            // }
-            // if (this.information != '毛重检斤') {
-            //   if(parseInt(result)){
-            //     this.deptBudgetList.grossWeight = parseInt(result)
-            //   }
-            // } else {
-            //   if(parseInt(result)){
-            //     this.deptBudgetList.tare = parseInt(result)
-            //   }
-            // }
-            console.log('value:', value);
-            if (this.deptBudgetList.warehouseName && (this.deptBudgetList.warehouseName == '山东诸城迈饶库' || this
-                .deptBudgetList.warehouseName == '克东千红库' || this.deptBudgetList.warehouseName == '鲅鱼圈祥腾库'|| this.deptBudgetList.warehouseName == '哈尔滨依兰库')) {
-              for (var i = 0; i < value.length; i++) {
-                var tmp = String.fromCharCode(value[i])
-                if (tmp == '+') {
-                  flag = true
-                }
-                if (flag && result.length < 6 && tmp != '+') {
-                  result += tmp
-                }
+            if (this.information == '毛重检斤') {
+              if (parseInt(result) || parseInt(result) == 0) {
+                this.deptBudgetList.grossWeight = parseInt(result)
               }
-              if (this.information == '毛重检斤') {
-                if (parseInt(result) || parseInt(result) == 0) {
-                  this.deptBudgetList.grossWeight = parseInt(result)
-                }
-              } else {
-                if (parseInt(result) || parseInt(result) == 0) {
-                  this.deptBudgetList.tare = parseInt(result)
-                }
+            } else {
+              if (parseInt(result) || parseInt(result) == 0) {
+                this.deptBudgetList.tare = parseInt(result)
               }
-            } 
-            else if (this.deptBudgetList.warehouseName && (this.deptBudgetList.warehouseName == '顺诚粮库'||this.deptBudgetList.warehouseName == '鲅鱼圈金信库')) {
-              for (var i = value.length - 1; i >= 0; i--) {
-                var tmp = String.fromCharCode(value[i])
-                console.log(tmp)
-                if (String.fromCharCode(value[0]) == '.') {
-                  flag = true
-                }
-                if (flag && result.length < 9 && tmp != '='&& tmp != '.') {
-                  result += tmp
-                }
+            }
+          } else if (
+            this.deptBudgetList.warehouseName &&
+            (this.deptBudgetList.warehouseName == '顺诚粮库' ||
+              this.deptBudgetList.warehouseName == '鲅鱼圈金信库')
+          ) {
+            for (var i = value.length - 1; i >= 0; i--) {
+              var tmp = String.fromCharCode(value[i])
+              console.log(tmp)
+              if (String.fromCharCode(value[0]) == '.') {
+                flag = true
               }
-              if (this.information == '毛重检斤') {
-                if (parseInt(result) || parseInt(result) == 0) {
-                  this.deptBudgetList.grossWeight = parseInt(result)
-                }
-              } else {
-                if (parseInt(result) || parseInt(result) == 0) {
-                  this.deptBudgetList.tare = parseInt(result)
-                }
+              if (flag && result.length < 9 && tmp != '=' && tmp != '.') {
+                result += tmp
+              }
+            }
+            if (this.information == '毛重检斤') {
+              if (parseInt(result) || parseInt(result) == 0) {
+                this.deptBudgetList.grossWeight = parseInt(result)
+              }
+            } else {
+              if (parseInt(result) || parseInt(result) == 0) {
+                this.deptBudgetList.tare = parseInt(result)
               }
             }
-            else {
-              for (var i = 0; i < value.length; i++) {
-                var tmp = String.fromCharCode(value[i])
+          } else {
+            for (var i = 0; i < value.length; i++) {
+              var tmp = String.fromCharCode(value[i])
 
-                if ((value[0] != 49 && value[0] != 2)) {
-                  if ((value[value.length - 1] == 48 && value[value.length - 2] == 48)) {
-                    flag1 = true
-                  } else {
-                    break
-                  }
-                }
-                if (tmp == String.fromCharCode(32)) {
-                  flag = true
+              if (value[0] != 49 && value[0] != 2) {
+                if (
+                  value[value.length - 1] == 48 &&
+                  value[value.length - 2] == 48
+                ) {
+                  flag1 = true
+                } else {
+                  break
                 }
-                if (flag && result.length < 7 && tmp != String.fromCharCode(32) && !(value[value.length - 1] == 48 &&
-                    value[value.length - 2] == 48)) {
-                  result += tmp
-                }
-                if (flag1 && tmp != String.fromCharCode(32)) {
-                  if ((value[value.length - 1] == 48 && value[value.length - 2] == 48)) {
-                    if (i == 0) {
-                      this.result1 = tmp + '0'
-                    }
+              }
+              if (tmp == String.fromCharCode(32)) {
+                flag = true
+              }
+              if (
+                flag &&
+                result.length < 7 &&
+                tmp != String.fromCharCode(32) &&
+                !(
+                  value[value.length - 1] == 48 && value[value.length - 2] == 48
+                )
+              ) {
+                result += tmp
+              }
+              if (flag1 && tmp != String.fromCharCode(32)) {
+                if (
+                  value[value.length - 1] == 48 &&
+                  value[value.length - 2] == 48
+                ) {
+                  if (i == 0) {
+                    this.result1 = tmp + '0'
                   }
                 }
               }
-              if (this.information == '毛重检斤') {
-                if (parseInt(result) || parseInt(result) == 0) {
-                  this.deptBudgetList.grossWeight = parseInt(result + this.result1)
-                }
-              } else {
-                if (parseInt(result) || parseInt(result) == 0) {
-                  this.deptBudgetList.tare = parseInt(result + this.result1)
-                }
+            }
+            if (this.information == '毛重检斤') {
+              if (parseInt(result) || parseInt(result) == 0) {
+                this.deptBudgetList.grossWeight = parseInt(
+                  result + this.result1
+                )
+              }
+            } else {
+              if (parseInt(result) || parseInt(result) == 0) {
+                this.deptBudgetList.tare = parseInt(result + this.result1)
               }
             }
-            // setTimeout(1000)
-            // value 是一个 Uint8Array
-          }
-          await port.close();
-        } else {
-          console.log('the Web Serial API is not supported.', navigator);
-        }
-      },
-      qualityInspectorChange(e) {
-        console.log(e)
-      },
-      kkInput(val) {
-        console.log(val)
-        if (this.isGetCost) {
-          if (this.deptBudgetList.cost > val) {
-            this.deptBudgetList.cost = this.cost - this.deptBudgetList.deductionAmount
           }
+          // setTimeout(1000)
+          // value 是一个 Uint8Array
         }
-      },
-      uploadSuccessHandle1(res) {
-        this.deptBudgetList.addressUrl = res.url
-        console.log(this.deptBudgetList.addressUrl)
-      },
-      dataFilter1(val) {
-        console.log(val)
-        this.deptBudgetList.contractNo = val
-        if (val) {
-          //val存在
-          this.options1 = this.outContractNo1.filter((item) => {
-            if (
-              !!~item.contractNo.indexOf(val) ||
-              !!~item.contractNo.toUpperCase().indexOf(val.toUpperCase())
-            ) {
-              return true
-            }
-          })
-        } else {
-          //val为空时,还原数组
-          this.options1 = this.outContractNo
-        }
-      },
-      dataFilter2(val) {
-        this.deptBudgetList.carNo = val
-        if (val) {
-          //val存在
-          this.options1 = this.outContractNo1.filter((item) => {
-            if (
-              !!~item.carNo.indexOf(val) ||
-              !!~item.carNo.toUpperCase().indexOf(val.toUpperCase())
-            ) {
-              return true
-            }
-          })
-        } else {
-          //val为空时,还原数组
-          this.options2 = this.tranCarInfoList
-        }
-      },
-      editClick(status) {
-        this.isGetCost = false
-        if (status == 1) {
-          this.disabled1 = !this.disabled1
-        } else {
-          this.disabled2 = !this.disabled2
+        await port.close()
+      } else {
+        console.log('the Web Serial API is not supported.', navigator)
+      }
+    },
+    qualityInspectorChange(e) {
+      console.log(e)
+    },
+    kkInput(val) {
+      console.log(val)
+      if (this.isGetCost) {
+        if (this.deptBudgetList.cost > val) {
+          this.deptBudgetList.cost =
+            this.cost - this.deptBudgetList.deductionAmount
         }
-      },
-      //返回按钮
-      revert() {
-        this.$router.push({
-          path: 'warehouseManagementList'
+      }
+    },
+    uploadSuccessHandle1(res) {
+      this.deptBudgetList.addressUrl = res.url
+      console.log(this.deptBudgetList.addressUrl)
+    },
+    dataFilter1(val) {
+      console.log(val)
+      this.deptBudgetList.contractNo = val
+      if (val) {
+        //val存在
+        this.options1 = this.outContractNo1.filter((item) => {
+          if (
+            !!~item.contractNo.indexOf(val) ||
+            !!~item.contractNo.toUpperCase().indexOf(val.toUpperCase())
+          ) {
+            return true
+          }
         })
-      },
-      carChange(e) {
-        for (let i = 0; i < this.tranCarInfoList.length; i++) {
-          if (this.tranCarInfoList[i].carNo == this.deptBudgetList.carNo) {
-            this.deptBudgetList.tranCarNo = this.tranCarInfoList[i].tranCarNo
-            this.deptBudgetList.freight = Math.round(this.tranCarInfoList[i].tranPrice)
+      } else {
+        //val为空时,还原数组
+        this.options1 = this.outContractNo
+      }
+    },
+    dataFilter2(val) {
+      this.deptBudgetList.carNo = val
+      if (val) {
+        //val存在
+        this.options1 = this.outContractNo1.filter((item) => {
+          if (
+            !!~item.carNo.indexOf(val) ||
+            !!~item.carNo.toUpperCase().indexOf(val.toUpperCase())
+          ) {
+            return true
           }
+        })
+      } else {
+        //val为空时,还原数组
+        this.options2 = this.tranCarInfoList
+      }
+    },
+    editClick(status) {
+      this.isGetCost = false
+      if (status == 1) {
+        this.disabled1 = !this.disabled1
+      } else {
+        this.disabled2 = !this.disabled2
+      }
+    },
+    //返回按钮
+    revert() {
+      this.$router.push({
+        path: 'warehouseManagementList',
+      })
+    },
+    carChange(e) {
+      for (let i = 0; i < this.tranCarInfoList.length; i++) {
+        if (this.tranCarInfoList[i].carNo == this.deptBudgetList.carNo) {
+          this.deptBudgetList.tranCarNo = this.tranCarInfoList[i].tranCarNo
+          this.deptBudgetList.freight = Math.round(
+            this.tranCarInfoList[i].tranPrice
+          )
         }
-      },
-      dataFilter(val) {
-        // console.log(val,"名")
-        this.deptBudgetList.staffList = val
-        if (val) {
-          //val存在
-          this.options = this.staffList.filter((item) => {
-            if (
-              !!~item.staffName.indexOf(val) ||
-              !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
-            ) {
-              return true
-            }
-          })
-        } else {
-          //val为空时,还原数组
-          this.options = this.staffList
-        }
-      },
-      selectstaff(e) {
-        for (var i = 0; i < this.staffList.length; i++) {
-          if (this.staffList[i].staffName == e) {
-            this.deptBudgetList.personChargeKey = this.staffList[i].staffId
+      }
+    },
+    dataFilter(val) {
+      // console.log(val,"名")
+      this.deptBudgetList.staffList = val
+      if (val) {
+        //val存在
+        this.options = this.staffList.filter((item) => {
+          if (
+            !!~item.staffName.indexOf(val) ||
+            !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
+          ) {
+            return true
           }
+        })
+      } else {
+        //val为空时,还原数组
+        this.options = this.staffList
+      }
+    },
+    selectstaff(e) {
+      for (var i = 0; i < this.staffList.length; i++) {
+        if (this.staffList[i].staffName == e) {
+          this.deptBudgetList.personChargeKey = this.staffList[i].staffId
         }
-      },
-      //提交按钮
-      submit() {
-        if (!this.deptBudgetList.goodsName) {
+      }
+    },
+    //提交按钮
+    submit() {
+      if (!this.deptBudgetList.goodsName) {
+        this.$message({
+          message: '货名不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.grossWeight) {
+        this.$message({
+          message: '毛重不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.grossWeight < 100 ||
+        this.deptBudgetList.grossWeight > 500000 ||
+        (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
+          String(this.deptBudgetList.grossWeight).length -
+            (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
+            3)
+      ) {
+        this.$message({
+          message: '毛重输入错误(单位:公斤)',
+          type: 'warning',
+        })
+        return
+      }
+      if (!String(this.deptBudgetList.tare)) {
+        this.$message({
+          message: '皮重不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.tare < 0 ||
+        this.deptBudgetList.tare > 5000000 ||
+        (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
+          String(this.deptBudgetList.tare).length -
+            (String(this.deptBudgetList.tare).indexOf('.') + 1) >
+            3)
+      ) {
+        this.$message({
+          message: '皮重输入错误(单位:公斤)',
+          type: 'warning',
+        })
+        return
+      }
+      if (!String(this.deptBudgetList.deductionWeight)) {
+        this.$message({
+          message: '扣重不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.deductionWeight < 0 ||
+        this.deptBudgetList.deductionWeight > 1000 ||
+        (String(this.deptBudgetList.deductionWeight).indexOf('.') != -1 &&
+          String(this.deptBudgetList.deductionWeight).length -
+            (String(this.deptBudgetList.deductionWeight).indexOf('.') + 1) >
+            3)
+      ) {
+        this.$message({
+          message: '扣重输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.type == '潮粮' &&
+        !this.deptBudgetList.buckleWeightRatio
+      ) {
+        this.$message({
+          message: '扣重比不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        (this.deptBudgetList.type == '潮粮' &&
+          this.deptBudgetList.buckleWeightRatio < 0) ||
+        (this.deptBudgetList.type == '潮粮' &&
+          this.deptBudgetList.buckleWeightRatio > 3) ||
+        (this.deptBudgetList.type == '潮粮' &&
+          String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
+          String(this.deptBudgetList.buckleWeightRatio).length -
+            (String(this.deptBudgetList.buckleWeightRatio).indexOf('.') + 1) >
+            2)
+      ) {
+        this.$message({
+          message: '扣重比输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.type == '潮粮' &&
+        !this.deptBudgetList.tidalGrainWater
+      ) {
+        this.$message({
+          message: '潮粮水分不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        (this.deptBudgetList.type == '潮粮' &&
+          this.deptBudgetList.tidalGrainWater < 1) ||
+        (this.deptBudgetList.type == '潮粮' &&
+          this.deptBudgetList.tidalGrainWater > 40) ||
+        (this.deptBudgetList.type == '潮粮' &&
+          String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
+          String(this.deptBudgetList.tidalGrainWater).length -
+            (String(this.deptBudgetList.tidalGrainWater).indexOf('.') + 1) >
+            2)
+      ) {
+        this.$message({
+          message: '潮粮水分输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.type == '潮粮' &&
+        !this.deptBudgetList.solidGrainWater
+      ) {
+        this.$message({
+          message: '干粮水分不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        (this.deptBudgetList.type == '潮粮' &&
+          this.deptBudgetList.solidGrainWater < 1) ||
+        (this.deptBudgetList.type == '潮粮' &&
+          this.deptBudgetList.solidGrainWater > 40) ||
+        (this.deptBudgetList.type == '潮粮' &&
+          String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
+          String(this.deptBudgetList.solidGrainWater).length -
+            (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
+            1)
+      ) {
+        this.$message({
+          message: '干粮水分输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (!String(this.deptBudgetList.deductionAmount)) {
+        this.$message({
+          message: '扣款不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.deductionAmount < 0 ||
+        this.deptBudgetList.deductionAmount > 10000 ||
+        (String(this.deptBudgetList.deductionAmount).indexOf('.') != -1 &&
+          String(this.deptBudgetList.deductionAmount).length -
+            (String(this.deptBudgetList.deductionAmount).indexOf('.') + 1) >
+            2)
+      ) {
+        this.$message({
+          message: '扣款输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.cost) {
+        this.$message({
+          message: '未获取到成本,请编辑后提交',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.cost < 0 ||
+        this.deptBudgetList.cost > 20000 ||
+        (String(this.deptBudgetList.cost).indexOf('.') != -1 &&
+          String(this.deptBudgetList.cost).length -
+            (String(this.deptBudgetList.cost).indexOf('.') + 1) >
+            2)
+      ) {
+        this.$message({
+          message: '成本输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (!String(this.deptBudgetList.freight)) {
+        this.$message({
+          message: '运费不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.freight < 0 ||
+        this.deptBudgetList.freight > 100000 ||
+        (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
+          String(this.deptBudgetList.freight).length -
+            (String(this.deptBudgetList.freight).indexOf('.') + 1) >
+            2)
+      ) {
+        this.$message({
+          message: '运费输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.agent) {
+        this.$message({
+          message: '经办人不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.agent.length < 2 ||
+        this.deptBudgetList.agent.length > 10
+      ) {
+        this.$message({
+          message: '经办人输入有误',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.grade) {
+        this.$message({
+          message: '品级不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.inOutDate) {
+        this.$message({
+          message: '入库日期不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.inOutType) {
+        this.$message({
+          message: '入库类型不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.carNo) {
+        this.$message({
+          message: '车牌号不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.deptBudgetList.carNo.length > 7) {
+        this.$message({
+          message: '车牌号输入错误,请输入7个字符之内',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.deptBudgetList.boxNo && this.deptBudgetList.boxNo.length > 20) {
+        this.$message({
+          message: '箱号-1输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.boxNoOther &&
+        this.deptBudgetList.boxNoOther.length > 20
+      ) {
+        this.$message({
+          message: '箱号-2输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.titleNo &&
+        this.deptBudgetList.titleNo.length > 20
+      ) {
+        this.$message({
+          message: '封号-1输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.titleNoOther &&
+        this.deptBudgetList.titleNoOther.length > 20
+      ) {
+        this.$message({
+          message: '封号-2输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.contractNo) {
+        this.$message({
+          message: '合同编号不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      // if (
+      //   this.deptBudgetList.contractNo.length < 6 ||
+      //   this.deptBudgetList.contractNo.length > 20
+      // ) {
+      //   this.$message({
+      //     message: '合同编号长度不符合要求,请输入6-20个字符之内',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (!this.deptBudgetList.addressUrl) {
+      //   this.$message({
+      //     message: '附件不能为空',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      //自检员
+      if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
+        if (
+          this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
+            2 ||
+          this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
+        ) {
           this.$message({
-            message: '货名不能为空',
+            message: '质检员姓名长度错误!',
             type: 'warning',
           })
           return
         }
-        if (!this.deptBudgetList.grossWeight) {
+      }
+      if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
           this.$message({
-            message: '毛重不能为空',
+            message: '水分(%)非数字!',
             type: 'warning',
           })
           return
         }
         if (
-          this.deptBudgetList.grossWeight < 100 ||
-          this.deptBudgetList.grossWeight > 500000 ||
-          (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
-            String(this.deptBudgetList.grossWeight).length -
-            (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
-            3)
+          this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
+          (String(
+            this.deptBudgetList.warehouseInOutDetail.waterContent
+          ).indexOf('.') != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.waterContent)
+              .length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.waterContent
+              ).indexOf('.') +
+                1) >
+              2)
         ) {
           this.$message({
-            message: '毛重输入错误(单位:公斤)',
+            message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (!String(this.deptBudgetList.tare)) {
+      }
+
+      //杂质
+      if (this.deptBudgetList.warehouseInOutDetail.impurity) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
           this.$message({
-            message: '皮重不能为空',
+            message: '杂质(%)非数字!',
             type: 'warning',
           })
           return
         }
         if (
-          this.deptBudgetList.tare < 0 ||
-          this.deptBudgetList.tare > 5000000 ||
-          (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
-            String(this.deptBudgetList.tare).length -
-            (String(this.deptBudgetList.tare).indexOf('.') + 1) >
-            3)
+          this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
+          (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.impurity
+              ).indexOf('.') +
+                1) >
+              2)
         ) {
           this.$message({
-            message: '皮重输入错误(单位:公斤)',
+            message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (!String(this.deptBudgetList.deductionWeight)) {
+      }
+      //霉变
+      if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
           this.$message({
-            message: '扣重不能为空',
+            message: '霉变粒(%)非数字!',
             type: 'warning',
           })
           return
         }
         if (
-          this.deptBudgetList.deductionWeight < 0 ||
-          this.deptBudgetList.deductionWeight > 1000 ||
-          (String(this.deptBudgetList.deductionWeight).indexOf('.') != -1 &&
-            String(this.deptBudgetList.deductionWeight).length -
-            (String(this.deptBudgetList.deductionWeight).indexOf('.') + 1) >
-            3)
+          this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
+          (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
+              .length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.mildewGrain
+              ).indexOf('.') +
+                1) >
+              2)
         ) {
           this.$message({
-            message: '扣重输入错误',
+            message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (
-          this.deptBudgetList.type == '潮粮' &&
-          !this.deptBudgetList.buckleWeightRatio
-        ) {
+      }
+
+      //热损伤
+      if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
           this.$message({
-            message: '扣重比不能为空',
+            message: '热损伤(%)非数字!',
             type: 'warning',
           })
           return
         }
         if (
-          (this.deptBudgetList.type == '潮粮' &&
-            this.deptBudgetList.buckleWeightRatio < 0) ||
-          (this.deptBudgetList.type == '潮粮' &&
-            this.deptBudgetList.buckleWeightRatio > 3) ||
-          (this.deptBudgetList.type == '潮粮' &&
-            String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
-            String(this.deptBudgetList.buckleWeightRatio).length -
-            (String(this.deptBudgetList.buckleWeightRatio).indexOf('.') + 1) >
-            2)
+          this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
+          (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.jiaorenli
+              ).indexOf('.') +
+                1) >
+              2)
         ) {
           this.$message({
-            message: '扣重比输入错误',
+            message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (
-          this.deptBudgetList.type == '潮粮' &&
-          !this.deptBudgetList.tidalGrainWater
-        ) {
+      }
+
+      //不完善粒(%)
+      if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
           this.$message({
-            message: '潮粮水分不能为空',
+            message: '不完善粒(%)非数字!',
             type: 'warning',
           })
           return
         }
         if (
-          (this.deptBudgetList.type == '潮粮' &&
-            this.deptBudgetList.tidalGrainWater < 1) ||
-          (this.deptBudgetList.type == '潮粮' &&
-            this.deptBudgetList.tidalGrainWater > 40) ||
-          (this.deptBudgetList.type == '潮粮' &&
-            String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
-            String(this.deptBudgetList.tidalGrainWater).length -
-            (String(this.deptBudgetList.tidalGrainWater).indexOf('.') + 1) >
-            2)
+          this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
+          (String(
+            this.deptBudgetList.warehouseInOutDetail.imperfectGrain
+          ).indexOf('.') != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
+              .length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.imperfectGrain
+              ).indexOf('.') +
+                1) >
+              2)
         ) {
           this.$message({
-            message: '潮粮水分输入错误',
+            message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (
-          this.deptBudgetList.type == '潮粮' &&
-          !this.deptBudgetList.solidGrainWater
-        ) {
+      }
+      //容重
+      if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
           this.$message({
-            message: '干粮水分不能为空',
+            message: '容重(克/升)非数字!',
             type: 'warning',
           })
           return
         }
         if (
-          (this.deptBudgetList.type == '潮粮' &&
-            this.deptBudgetList.solidGrainWater < 1) ||
-          (this.deptBudgetList.type == '潮粮' &&
-            this.deptBudgetList.solidGrainWater > 40) ||
-          (this.deptBudgetList.type == '潮粮' &&
-            String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
-            String(this.deptBudgetList.solidGrainWater).length -
-            (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
-            1)
+          (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
+            String(
+              this.deptBudgetList.warehouseInOutDetail.bulkDensity
+            ).indexOf('.') != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
+              .length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.bulkDensity
+              ).indexOf('.') +
+                1) >
+              2) ||
+          this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
+          this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
         ) {
           this.$message({
-            message: '干粮水分输入错误',
+            message: '容重输入错误',
             type: 'warning',
           })
           return
         }
-        if (!String(this.deptBudgetList.deductionAmount)) {
-          this.$message({
-            message: '扣款不能为空',
-            type: 'warning',
+      }
+      console.log(this.deptBudgetList, '入库对象')
+      this.$confirm(`确定提交入库信息`, {
+        cancelButtonText: '取消',
+        confirmButtonText: '确定',
+        type: 'warning',
+      })
+        .then(() => {
+          this.$refs.deptBudgetList.validate((valid) => {
+            if (valid) {
+              this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
+              this.deptBudgetList.secretaryWeigher =
+                localStorage.getItem('ws-pf_staffName')
+              this.deptBudgetList.inOutFlag = 2
+              this.deptBudgetList.pcFlag = 1
+              this.deptBudgetList.statusFlag = 3
+              this.deptBudgetList.grossWeight = (
+                this.deptBudgetList.grossWeight / 1000
+              ).toFixed(2)
+              this.deptBudgetList.tare = (
+                this.deptBudgetList.tare / 1000
+              ).toFixed(2)
+              this.deptBudgetList.netWeight = (
+                this.deptBudgetList.netWeight / 1000
+              ).toFixed(2)
+              if (!this.deptBudgetList.pureWeight) {
+                this.deptBudgetList.pureWeight = 0
+              }
+              this.deptBudgetList.pureWeight = (
+                this.deptBudgetList.pureWeight / 1000
+              ).toFixed(2)
+              if (!this.deptBudgetList.deductionWeight) {
+                this.deptBudgetList.deductionWeight = 0
+              }
+              if (!this.deptBudgetList.deductionAmount) {
+                this.deptBudgetList.deductionAmount = 0
+              }
+              this.deptBudgetList.deductionWeight = (
+                this.deptBudgetList.deductionWeight / 1000
+              ).toFixed(2)
+              this.deptBudgetList.deductionAmount = Math.round(
+                this.deptBudgetList.deductionAmount * 1000
+              )
+
+              // this.deptBudgetList.grossWeight /= 1000
+              //   this.deptBudgetList.tare /= 1000
+              //   this.deptBudgetList.netWeight /= 1000
+              //   this.deptBudgetList.pureWeight /= 1000
+              //   this.deptBudgetList.deductionAmount *= 1000
+              //   this.deptBudgetList.deductionWeight /= 1000
+              addstorageputList(this.deptBudgetList)
+                .toPromise()
+                .then((response) => {
+                  // this.deptBudgetList.grossWeight = Math.round(this.dataList.grossWeight*1000)
+                  // this.deptBudgetList.tare = Math.round(this.dataList.tare*1000)
+                  // this.deptBudgetList.netWeight = Math.round(this.dataList.netWeight*1000)
+                  // this.deptBudgetList.pureWeight = Math.round(this.dataList.pureWeight*1000)
+                  // this.deptBudgetList.deductionWeight = Math.round(this.dataList.deductionWeight*1000)
+                  if (this.reader) {
+                    this.reader.cancel()
+                  }
+                  this.$message.success('添加成功')
+                  this.$router.push({
+                    path: 'warehouseManagementList',
+                  })
+                })
+                .catch((response) => {
+                  this.deptBudgetList.grossWeight = Math.round(
+                    this.deptBudgetList.grossWeight * 1000
+                  )
+                  this.deptBudgetList.tare = Math.round(
+                    this.deptBudgetList.tare * 1000
+                  )
+                  this.deptBudgetList.netWeight = Math.round(
+                    this.deptBudgetList.netWeight * 1000
+                  )
+                  this.deptBudgetList.pureWeight = Math.round(
+                    this.deptBudgetList.pureWeight * 1000
+                  )
+                  this.deptBudgetList.deductionWeight = Math.round(
+                    this.deptBudgetList.deductionWeight * 1000
+                  )
+                })
+            } else {
+              EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+              return false
+            }
           })
-          return
-        }
+        })
+        .catch(() => {
+          return false
+        })
+    },
+    temporaryStorage() {
+      if (!this.deptBudgetList.goodsName) {
+        this.$message({
+          message: '货名不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.information == '毛重检斤' && !this.deptBudgetList.grossWeight) {
+        this.$message({
+          message: '毛重不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.information == '毛重检斤' &&
+        (this.deptBudgetList.grossWeight < 0 ||
+          this.deptBudgetList.grossWeight > 2000000 ||
+          (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
+            String(this.deptBudgetList.grossWeight).length -
+              (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
+              3))
+      ) {
+        this.$message({
+          message: '毛重输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.information == '皮重检斤' && !this.deptBudgetList.tare) {
+        this.$message({
+          message: '皮重不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.information == '皮重检斤' &&
+        (this.deptBudgetList.tare < 0 ||
+          this.deptBudgetList.tare > 1000000 ||
+          (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
+            String(this.deptBudgetList.tare).length -
+              (String(this.deptBudgetList.tare).indexOf('.') + 1) >
+              3))
+      ) {
+        this.$message({
+          message: '皮重输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      // if (!this.deptBudgetList.deductionWeight) {
+      //   this.$message({
+      //     message: '扣重不能为空',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (
+      //   this.deptBudgetList.deductionWeight < 0 ||
+      //   this.deptBudgetList.deductionWeight > 10 ||
+      //   (String(this.deptBudgetList.deductionWeight).indexOf('.') != -1 &&
+      //     String(this.deptBudgetList.deductionWeight).length -
+      //       (String(this.deptBudgetList.deductionWeight).indexOf('.') + 1) >
+      //       3)
+      // ) {
+      //   this.$message({
+      //     message: '扣重输入错误',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (
+      //   this.deptBudgetList.type == '潮粮' &&
+      //   !this.deptBudgetList.buckleWeightRatio
+      // ) {
+      //   this.$message({
+      //     message: '扣重比不能为空',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (
+      //   (this.deptBudgetList.type == '潮粮' &&
+      //     this.deptBudgetList.buckleWeightRatio < 0) ||
+      //   (this.deptBudgetList.type == '潮粮' &&
+      //     this.deptBudgetList.buckleWeightRatio > 3) ||
+      //   (this.deptBudgetList.type == '潮粮' &&
+      //     String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
+      //     String(this.deptBudgetList.buckleWeightRatio).length -
+      //       (String(this.deptBudgetList.buckleWeightRatio).indexOf('.') + 1) >
+      //       2)
+      // ) {
+      //   this.$message({
+      //     message: '扣重比输入错误',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (
+      //   this.deptBudgetList.type == '潮粮' &&
+      //   !this.deptBudgetList.tidalGrainWater
+      // ) {
+      //   this.$message({
+      //     message: '潮粮水分不能为空',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (
+      //   (this.deptBudgetList.type == '潮粮' &&
+      //     this.deptBudgetList.tidalGrainWater < 1) ||
+      //   (this.deptBudgetList.type == '潮粮' &&
+      //     this.deptBudgetList.tidalGrainWater > 40) ||
+      //   (this.deptBudgetList.type == '潮粮' &&
+      //     String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
+      //     String(this.deptBudgetList.tidalGrainWater).length -
+      //       (String(this.deptBudgetList.tidalGrainWater).indexOf('.') + 1) >
+      //       2)
+      // ) {
+      //   this.$message({
+      //     message: '潮粮水分输入错误',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (
+      //   this.deptBudgetList.type == '潮粮' &&
+      //   !this.deptBudgetList.solidGrainWater
+      // ) {
+      //   this.$message({
+      //     message: '干粮水分不能为空',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (
+      //   (this.deptBudgetList.type == '潮粮' &&
+      //     this.deptBudgetList.solidGrainWater < 1) ||
+      //   (this.deptBudgetList.type == '潮粮' &&
+      //     this.deptBudgetList.solidGrainWater > 40) ||
+      //   (this.deptBudgetList.type == '潮粮' &&
+      //     String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
+      //     String(this.deptBudgetList.solidGrainWater).length -
+      //       (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
+      //       1)
+      // ) {
+      //   this.$message({
+      //     message: '干粮水分输入错误',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (!this.deptBudgetList.deductionAmount) {
+      //   this.$message({
+      //     message: '扣款不能为空',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (
+      //   this.deptBudgetList.deductionAmount < 0 ||
+      //   this.deptBudgetList.deductionAmount > 10000 ||
+      //   (String(this.deptBudgetList.deductionAmount).indexOf('.') != -1 &&
+      //     String(this.deptBudgetList.deductionAmount).length -
+      //       (String(this.deptBudgetList.deductionAmount).indexOf('.') + 1) >
+      //       2)
+      // ) {
+      //   this.$message({
+      //     message: '扣款输入错误',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (!this.deptBudgetList.cost) {
+      //   this.$message({
+      //     message: '未获取到成本,请编辑后提交',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (
+      //   this.deptBudgetList.cost < 0 ||
+      //   this.deptBudgetList.cost > 20000 ||
+      //   (String(this.deptBudgetList.cost).indexOf('.') != -1 &&
+      //     String(this.deptBudgetList.cost).length -
+      //       (String(this.deptBudgetList.cost).indexOf('.') + 1) >
+      //       2)
+      // ) {
+      //   this.$message({
+      //     message: '成本输入错误',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (!this.deptBudgetList.freight) {
+      //   this.$message({
+      //     message: '运费不能为空',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+
+      // if (
+      //   this.deptBudgetList.freight < 0 ||
+      //   this.deptBudgetList.freight > 100000 ||
+      //   (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
+      //     String(this.deptBudgetList.freight).length -
+      //       (String(this.deptBudgetList.freight).indexOf('.') + 1) >
+      //       2)
+      // ) {
+      //   this.$message({
+      //     message: '运费输入错误',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (!this.deptBudgetList.agent) {
+      //   this.$message({
+      //     message: '经办人不能为空',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (
+      //   this.deptBudgetList.agent.length < 2 ||
+      //   this.deptBudgetList.agent.length > 10
+      // ) {
+      //   this.$message({
+      //     message: '经办人输入有误',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (!this.deptBudgetList.carNo) {
+      //   this.$message({
+      //     message: '车牌号不能为空',
+      //     type: 'warning'
+      //   })
+      //   return
+      // }
+      // if (this.deptBudgetList.carNo.length > 7) {
+      //   this.$message({
+      //     message: '车牌号输入错误,请输入7个字符之内',
+      //     type: 'warning'
+      //   })
+      //   return
+      // }
+      if (!this.deptBudgetList.contractNo) {
+        this.$message({
+          message: '合同编号不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      // if (
+      //   this.deptBudgetList.contractNo.length < 6 ||
+      //   this.deptBudgetList.contractNo.length > 20
+      // ) {
+      //   this.$message({
+      //     message: '合同编号长度不符合要求,请输入6-20个字符之内',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      // if (this.deptBudgetList.netWeight > this.$route.query.capacity) {
+      //   this.$message({
+      //     message: '入库量大于该仓库容量!',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      //自检员
+      if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
         if (
-          this.deptBudgetList.deductionAmount < 0 ||
-          this.deptBudgetList.deductionAmount > 10000 ||
-          (String(this.deptBudgetList.deductionAmount).indexOf('.') != -1 &&
-            String(this.deptBudgetList.deductionAmount).length -
-            (String(this.deptBudgetList.deductionAmount).indexOf('.') + 1) >
-            2)
+          this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
+            2 ||
+          this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
         ) {
           this.$message({
-            message: '扣款输入错误',
+            message: '质检员姓名长度错误!',
             type: 'warning',
           })
           return
         }
-        if (!this.deptBudgetList.cost) {
+      }
+      if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
           this.$message({
-            message: '未获取到成本,请编辑后提交',
+            message: '水分(%)非数字!',
             type: 'warning',
           })
           return
         }
         if (
-          this.deptBudgetList.cost < 0 ||
-          this.deptBudgetList.cost > 20000 ||
-          (String(this.deptBudgetList.cost).indexOf('.') != -1 &&
-            String(this.deptBudgetList.cost).length -
-            (String(this.deptBudgetList.cost).indexOf('.') + 1) >
-            2)
+          this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
+          (String(
+            this.deptBudgetList.warehouseInOutDetail.waterContent
+          ).indexOf('.') != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.waterContent)
+              .length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.waterContent
+              ).indexOf('.') +
+                1) >
+              2)
         ) {
           this.$message({
-            message: '成本输入错误',
+            message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (!String(this.deptBudgetList.freight)) {
+      }
+
+      //杂质
+      if (this.deptBudgetList.warehouseInOutDetail.impurity) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
           this.$message({
-            message: '运费不能为空',
+            message: '杂质(%)非数字!',
             type: 'warning',
           })
           return
         }
         if (
-          this.deptBudgetList.freight < 0 ||
-          this.deptBudgetList.freight > 100000 ||
-          (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
-            String(this.deptBudgetList.freight).length -
-            (String(this.deptBudgetList.freight).indexOf('.') + 1) >
-            2)
+          this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
+          (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.impurity
+              ).indexOf('.') +
+                1) >
+              2)
         ) {
           this.$message({
-            message: '运费输入错误',
+            message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (!this.deptBudgetList.agent) {
+      }
+      //霉变
+      if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
           this.$message({
-            message: '经办人不能为空',
+            message: '霉变粒(%)非数字!',
             type: 'warning',
           })
           return
         }
         if (
-          this.deptBudgetList.agent.length < 2 ||
-          this.deptBudgetList.agent.length > 10
-        ) {
-          this.$message({
-            message: '经办人输入有误',
-            type: 'warning',
-          })
-          return
-        }
-        if (!this.deptBudgetList.grade) {
-          this.$message({
-            message: '品级不能为空!',
-            type: 'warning',
-          })
-          return
-        }
-        if (!this.deptBudgetList.inOutDate) {
-          this.$message({
-            message: '入库日期不能为空!',
-            type: 'warning',
-          })
-          return
-        }
-        if (!this.deptBudgetList.inOutType) {
-          this.$message({
-            message: '入库类型不能为空!',
-            type: 'warning',
-          })
-          return
-        }
-        if (!this.deptBudgetList.carNo) {
-          this.$message({
-            message: '车牌号不能为空',
-            type: 'warning',
-          })
-          return
-        }
-        if (this.deptBudgetList.carNo.length > 7) {
-          this.$message({
-            message: '车牌号输入错误,请输入7个字符之内',
-            type: 'warning',
-          })
-          return
-        }
-        if (this.deptBudgetList.boxNo&&this.deptBudgetList.boxNo.length > 20) {
-          this.$message({
-            message: '箱号-1输入错误',
-            type: 'warning',
-          })
-          return
-        }
-        if (this.deptBudgetList.boxNoOther&&this.deptBudgetList.boxNoOther.length > 20) {
-          this.$message({
-            message: '箱号-2输入错误',
-            type: 'warning',
-          })
-          return
-        }
-        if (this.deptBudgetList.titleNo&&this.deptBudgetList.titleNo.length > 20) {
-          this.$message({
-            message: '封号-1输入错误',
-            type: 'warning',
-          })
-          return
-        }
-        if (this.deptBudgetList.titleNoOther&&this.deptBudgetList.titleNoOther.length > 20) {
-          this.$message({
-            message: '封号-2输入错误',
-            type: 'warning',
-          })
-          return
-        }
-        if (!this.deptBudgetList.contractNo) {
-          this.$message({
-            message: '合同编号不能为空',
-            type: 'warning',
-          })
-          return
-        }
-        // if (
-        //   this.deptBudgetList.contractNo.length < 6 ||
-        //   this.deptBudgetList.contractNo.length > 20
-        // ) {
-        //   this.$message({
-        //     message: '合同编号长度不符合要求,请输入6-20个字符之内',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (!this.deptBudgetList.addressUrl) {
-        //   this.$message({
-        //     message: '附件不能为空',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        //自检员
-        if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
-          if (
-            this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
-            2 ||
-            this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
-          ) {
-            this.$message({
-              message: '质检员姓名长度错误!',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
-            this.$message({
-              message: '水分(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
-            (String(
-                this.deptBudgetList.warehouseInOutDetail.waterContent
-              ).indexOf('.') != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.waterContent)
-              .length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.waterContent
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-
-        //杂质
-        if (this.deptBudgetList.warehouseInOutDetail.impurity) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
-            this.$message({
-              message: '杂质(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
-            (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.impurity
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        //霉变
-        if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
-            this.$message({
-              message: '霉变粒(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
-            (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
-              .length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.mildewGrain
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-
-        //热损伤
-        if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
-            this.$message({
-              message: '热损伤(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
-            (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.jiaorenli
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-
-        //不完善粒(%)
-        if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
-            this.$message({
-              message: '不完善粒(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
-            (String(
-                this.deptBudgetList.warehouseInOutDetail.imperfectGrain
-              ).indexOf('.') != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
+          this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
+          (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
               .length -
               (String(
-                  this.deptBudgetList.warehouseInOutDetail.imperfectGrain
-                ).indexOf('.') +
+                this.deptBudgetList.warehouseInOutDetail.mildewGrain
+              ).indexOf('.') +
                 1) >
               2)
-          ) {
-            this.$message({
-              message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        //容重
-        if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
-            this.$message({
-              message: '容重(克/升)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
-              String(
-                this.deptBudgetList.warehouseInOutDetail.bulkDensity
-              ).indexOf('.') != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
-              .length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.bulkDensity
-                ).indexOf('.') +
-                1) >
-              2) ||
-            this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
-            this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
-          ) {
-            this.$message({
-              message: '容重输入错误',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        console.log(this.deptBudgetList, '入库对象')
-        this.$confirm(`确定提交入库信息`, {
-            cancelButtonText: '取消',
-            confirmButtonText: '确定',
-            type: 'warning',
-          })
-          .then(() => {
-            this.$refs.deptBudgetList.validate((valid) => {
-              if (valid) {
-                this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
-                this.deptBudgetList.secretaryWeigher = localStorage.getItem('ws-pf_staffName')
-                this.deptBudgetList.inOutFlag = 2
-                this.deptBudgetList.pcFlag = 1
-                this.deptBudgetList.statusFlag = 3
-                this.deptBudgetList.grossWeight = (this.deptBudgetList.grossWeight / 1000).toFixed(2)
-                this.deptBudgetList.tare = (this.deptBudgetList.tare / 1000).toFixed(2)
-                this.deptBudgetList.netWeight = (this.deptBudgetList.netWeight / 1000).toFixed(2)
-                if (!this.deptBudgetList.pureWeight) {
-                  this.deptBudgetList.pureWeight = 0
-                }
-                this.deptBudgetList.pureWeight = (this.deptBudgetList.pureWeight / 1000).toFixed(2)
-                if (!this.deptBudgetList.deductionWeight) {
-                  this.deptBudgetList.deductionWeight = 0
-                }
-                if (!this.deptBudgetList.deductionAmount) {
-                  this.deptBudgetList.deductionAmount = 0
-                }
-                this.deptBudgetList.deductionWeight = (this.deptBudgetList.deductionWeight / 1000).toFixed(2)
-                this.deptBudgetList.deductionAmount = Math.round(this.deptBudgetList.deductionAmount * 1000)
-
-                // this.deptBudgetList.grossWeight /= 1000
-                //   this.deptBudgetList.tare /= 1000
-                //   this.deptBudgetList.netWeight /= 1000
-                //   this.deptBudgetList.pureWeight /= 1000
-                //   this.deptBudgetList.deductionAmount *= 1000
-                //   this.deptBudgetList.deductionWeight /= 1000
-                addstorageputList(this.deptBudgetList)
-                  .toPromise()
-                  .then((response) => {
-                    // this.deptBudgetList.grossWeight = Math.round(this.dataList.grossWeight*1000)
-                    // this.deptBudgetList.tare = Math.round(this.dataList.tare*1000)
-                    // this.deptBudgetList.netWeight = Math.round(this.dataList.netWeight*1000)
-                    // this.deptBudgetList.pureWeight = Math.round(this.dataList.pureWeight*1000)
-                    // this.deptBudgetList.deductionWeight = Math.round(this.dataList.deductionWeight*1000)
-                    if(this.reader){
-                      this.reader.cancel()
-                    }
-                    this.$message.success('添加成功')
-                    this.$router.push({
-                      path: 'warehouseManagementList'
-                    })
-                  }).catch((response) => {
-                    this.deptBudgetList.grossWeight = Math.round(this.deptBudgetList.grossWeight*1000)
-                    this.deptBudgetList.tare = Math.round(this.deptBudgetList.tare*1000)
-                    this.deptBudgetList.netWeight = Math.round(this.deptBudgetList.netWeight*1000)
-                    this.deptBudgetList.pureWeight = Math.round(this.deptBudgetList.pureWeight*1000)
-                    this.deptBudgetList.deductionWeight = Math.round(this.deptBudgetList.deductionWeight*1000)
-                    })
-              } else {
-                EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
-                return false
-              }
-            })
-          })
-          .catch(() => {
-            return false
-          })
-      },
-      temporaryStorage() {
-        if (!this.deptBudgetList.goodsName) {
+        ) {
           this.$message({
-            message: '货名不能为空',
+            message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (this.information == '毛重检斤' && !this.deptBudgetList.grossWeight) {
+      }
+
+      //热损伤
+      if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
           this.$message({
-            message: '毛重不能为空',
+            message: '热损伤(%)非数字!',
             type: 'warning',
           })
           return
         }
         if (
-          this.information == '毛重检斤' && (
-            this.deptBudgetList.grossWeight < 0 ||
-            this.deptBudgetList.grossWeight > 2000000 ||
-            (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
-              String(this.deptBudgetList.grossWeight).length -
-              (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
-              3))
+          this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
+          (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.jiaorenli
+              ).indexOf('.') +
+                1) >
+              2)
         ) {
           this.$message({
-            message: '毛重输入错误',
+            message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (this.information == '皮重检斤' && !this.deptBudgetList.tare) {
+      }
+
+      //不完善粒(%)
+      if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
           this.$message({
-            message: '皮重不能为空',
+            message: '不完善粒(%)非数字!',
             type: 'warning',
           })
           return
         }
         if (
-          this.information == '皮重检斤' && (
-            this.deptBudgetList.tare < 0 ||
-            this.deptBudgetList.tare > 1000000 ||
-            (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
-              String(this.deptBudgetList.tare).length -
-              (String(this.deptBudgetList.tare).indexOf('.') + 1) >
-              3))
+          this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
+          (String(
+            this.deptBudgetList.warehouseInOutDetail.imperfectGrain
+          ).indexOf('.') != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
+              .length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.imperfectGrain
+              ).indexOf('.') +
+                1) >
+              2)
         ) {
           this.$message({
-            message: '皮重输入错误',
+            message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        // if (!this.deptBudgetList.deductionWeight) {
-        //   this.$message({
-        //     message: '扣重不能为空',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (
-        //   this.deptBudgetList.deductionWeight < 0 ||
-        //   this.deptBudgetList.deductionWeight > 10 ||
-        //   (String(this.deptBudgetList.deductionWeight).indexOf('.') != -1 &&
-        //     String(this.deptBudgetList.deductionWeight).length -
-        //       (String(this.deptBudgetList.deductionWeight).indexOf('.') + 1) >
-        //       3)
-        // ) {
-        //   this.$message({
-        //     message: '扣重输入错误',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (
-        //   this.deptBudgetList.type == '潮粮' &&
-        //   !this.deptBudgetList.buckleWeightRatio
-        // ) {
-        //   this.$message({
-        //     message: '扣重比不能为空',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (
-        //   (this.deptBudgetList.type == '潮粮' &&
-        //     this.deptBudgetList.buckleWeightRatio < 0) ||
-        //   (this.deptBudgetList.type == '潮粮' &&
-        //     this.deptBudgetList.buckleWeightRatio > 3) ||
-        //   (this.deptBudgetList.type == '潮粮' &&
-        //     String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
-        //     String(this.deptBudgetList.buckleWeightRatio).length -
-        //       (String(this.deptBudgetList.buckleWeightRatio).indexOf('.') + 1) >
-        //       2)
-        // ) {
-        //   this.$message({
-        //     message: '扣重比输入错误',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (
-        //   this.deptBudgetList.type == '潮粮' &&
-        //   !this.deptBudgetList.tidalGrainWater
-        // ) {
-        //   this.$message({
-        //     message: '潮粮水分不能为空',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (
-        //   (this.deptBudgetList.type == '潮粮' &&
-        //     this.deptBudgetList.tidalGrainWater < 1) ||
-        //   (this.deptBudgetList.type == '潮粮' &&
-        //     this.deptBudgetList.tidalGrainWater > 40) ||
-        //   (this.deptBudgetList.type == '潮粮' &&
-        //     String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
-        //     String(this.deptBudgetList.tidalGrainWater).length -
-        //       (String(this.deptBudgetList.tidalGrainWater).indexOf('.') + 1) >
-        //       2)
-        // ) {
-        //   this.$message({
-        //     message: '潮粮水分输入错误',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (
-        //   this.deptBudgetList.type == '潮粮' &&
-        //   !this.deptBudgetList.solidGrainWater
-        // ) {
-        //   this.$message({
-        //     message: '干粮水分不能为空',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (
-        //   (this.deptBudgetList.type == '潮粮' &&
-        //     this.deptBudgetList.solidGrainWater < 1) ||
-        //   (this.deptBudgetList.type == '潮粮' &&
-        //     this.deptBudgetList.solidGrainWater > 40) ||
-        //   (this.deptBudgetList.type == '潮粮' &&
-        //     String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
-        //     String(this.deptBudgetList.solidGrainWater).length -
-        //       (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
-        //       1)
-        // ) {
-        //   this.$message({
-        //     message: '干粮水分输入错误',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (!this.deptBudgetList.deductionAmount) {
-        //   this.$message({
-        //     message: '扣款不能为空',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (
-        //   this.deptBudgetList.deductionAmount < 0 ||
-        //   this.deptBudgetList.deductionAmount > 10000 ||
-        //   (String(this.deptBudgetList.deductionAmount).indexOf('.') != -1 &&
-        //     String(this.deptBudgetList.deductionAmount).length -
-        //       (String(this.deptBudgetList.deductionAmount).indexOf('.') + 1) >
-        //       2)
-        // ) {
-        //   this.$message({
-        //     message: '扣款输入错误',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (!this.deptBudgetList.cost) {
-        //   this.$message({
-        //     message: '未获取到成本,请编辑后提交',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (
-        //   this.deptBudgetList.cost < 0 ||
-        //   this.deptBudgetList.cost > 20000 ||
-        //   (String(this.deptBudgetList.cost).indexOf('.') != -1 &&
-        //     String(this.deptBudgetList.cost).length -
-        //       (String(this.deptBudgetList.cost).indexOf('.') + 1) >
-        //       2)
-        // ) {
-        //   this.$message({
-        //     message: '成本输入错误',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (!this.deptBudgetList.freight) {
-        //   this.$message({
-        //     message: '运费不能为空',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-
-        // if (
-        //   this.deptBudgetList.freight < 0 ||
-        //   this.deptBudgetList.freight > 100000 ||
-        //   (String(this.deptBudgetList.freight).indexOf('.') != -1 &&
-        //     String(this.deptBudgetList.freight).length -
-        //       (String(this.deptBudgetList.freight).indexOf('.') + 1) >
-        //       2)
-        // ) {
-        //   this.$message({
-        //     message: '运费输入错误',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (!this.deptBudgetList.agent) {
-        //   this.$message({
-        //     message: '经办人不能为空',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (
-        //   this.deptBudgetList.agent.length < 2 ||
-        //   this.deptBudgetList.agent.length > 10
-        // ) {
-        //   this.$message({
-        //     message: '经办人输入有误',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (!this.deptBudgetList.carNo) {
-        //   this.$message({
-        //     message: '车牌号不能为空',
-        //     type: 'warning'
-        //   })
-        //   return
-        // }
-        // if (this.deptBudgetList.carNo.length > 7) {
-        //   this.$message({
-        //     message: '车牌号输入错误,请输入7个字符之内',
-        //     type: 'warning'
-        //   })
-        //   return
-        // }
-        if (!this.deptBudgetList.contractNo) {
+      }
+      //容重
+      if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
           this.$message({
-            message: '合同编号不能为空',
+            message: '容重(克/升)非数字!',
             type: 'warning',
           })
           return
         }
-        // if (
-        //   this.deptBudgetList.contractNo.length < 6 ||
-        //   this.deptBudgetList.contractNo.length > 20
-        // ) {
-        //   this.$message({
-        //     message: '合同编号长度不符合要求,请输入6-20个字符之内',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        // if (this.deptBudgetList.netWeight > this.$route.query.capacity) {
-        //   this.$message({
-        //     message: '入库量大于该仓库容量!',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        //自检员
-        if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
-          if (
-            this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
-            2 ||
-            this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
-          ) {
-            this.$message({
-              message: '质检员姓名长度错误!',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
-            this.$message({
-              message: '水分(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
-            (String(
-                this.deptBudgetList.warehouseInOutDetail.waterContent
-              ).indexOf('.') != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.waterContent)
-              .length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.waterContent
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-
-        //杂质
-        if (this.deptBudgetList.warehouseInOutDetail.impurity) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
-            this.$message({
-              message: '杂质(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
-            (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.impurity
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        //霉变
-        if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
-            this.$message({
-              message: '霉变粒(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
-            (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
-              .length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.mildewGrain
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-
-        //热损伤
-        if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
-            this.$message({
-              message: '热损伤(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
-            (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.jiaorenli
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-
-        //不完善粒(%)
-        if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
-            this.$message({
-              message: '不完善粒(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
-            (String(
-                this.deptBudgetList.warehouseInOutDetail.imperfectGrain
-              ).indexOf('.') != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
+        if (
+          (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
+            String(
+              this.deptBudgetList.warehouseInOutDetail.bulkDensity
+            ).indexOf('.') != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
               .length -
               (String(
-                  this.deptBudgetList.warehouseInOutDetail.imperfectGrain
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        //容重
-        if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
-            this.$message({
-              message: '容重(克/升)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
-              String(
                 this.deptBudgetList.warehouseInOutDetail.bulkDensity
-              ).indexOf('.') != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
-              .length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.bulkDensity
-                ).indexOf('.') +
+              ).indexOf('.') +
                 1) >
               2) ||
-            this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
-            this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
-          ) {
-            this.$message({
-              message: '容重输入错误',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        this.$confirm(`是否保存毛重检斤`, {
-            cancelButtonText: '取消',
-            confirmButtonText: '确定',
+          this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
+          this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
+        ) {
+          this.$message({
+            message: '容重输入错误',
             type: 'warning',
           })
-          .then(() => {
-            this.$refs.deptBudgetList.validate((valid) => {
-              if (valid) {
-                this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
-                this.deptBudgetList.secretaryWeigher = localStorage.getItem('ws-pf_staffName')
-                this.deptBudgetList.inOutFlag = 2
-                this.deptBudgetList.statusFlag = 1
-                let _data = JSON.parse(localStorage.getItem('winseaview-userInfo'))
-                this.deptBudgetList.backOffice = _data.content.showCompName + '-' + _data.content.staffName
-                this.deptBudgetList.grossWeight /= 1000
-                this.deptBudgetList.tare /= 1000
-                this.deptBudgetList.netWeight /= 1000
-                this.deptBudgetList.pureWeight /= 1000
-                this.deptBudgetList.deductionAmount *= 1000
-                this.deptBudgetList.deductionWeight /= 1000
-                addstorageputList(this.deptBudgetList)
-                  .toPromise()
-                  .then((response) => {
-                     if(this.reader){
-                        this.reader.cancel()
-                      }
-                    this.$message.success('保存成功')
-                    this.$router.push({
-                      path: 'warehouseManagementList'
-                    })
+          return
+        }
+      }
+      this.$confirm(`是否保存毛重检斤`, {
+        cancelButtonText: '取消',
+        confirmButtonText: '确定',
+        type: 'warning',
+      })
+        .then(() => {
+          this.$refs.deptBudgetList.validate((valid) => {
+            if (valid) {
+              this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
+              this.deptBudgetList.secretaryWeigher =
+                localStorage.getItem('ws-pf_staffName')
+              this.deptBudgetList.inOutFlag = 2
+              this.deptBudgetList.statusFlag = 1
+              let _data = JSON.parse(
+                localStorage.getItem('winseaview-userInfo')
+              )
+              this.deptBudgetList.backOffice =
+                _data.content.showCompName + '-' + _data.content.staffName
+              this.deptBudgetList.grossWeight /= 1000
+              this.deptBudgetList.tare /= 1000
+              this.deptBudgetList.netWeight /= 1000
+              this.deptBudgetList.pureWeight /= 1000
+              this.deptBudgetList.deductionAmount *= 1000
+              this.deptBudgetList.deductionWeight /= 1000
+              addstorageputList(this.deptBudgetList)
+                .toPromise()
+                .then((response) => {
+                  if (this.reader) {
+                    this.reader.cancel()
+                  }
+                  this.$message.success('保存成功')
+                  this.$router.push({
+                    path: 'warehouseManagementList',
                   })
-              } else {
-                EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
-                return false
-              }
-            })
-          })
-          .catch(() => {
-            return false
+                })
+            } else {
+              EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+              return false
+            }
           })
-      },
-      tarechange(e) {
-        if (
-          this.deptBudgetList.grossWeight &&
-          this.deptBudgetList.tare &&
-          (this.deptBudgetList.deductionWeight||this.deptBudgetList.deductionWeight == 0)
-        ) {
-          this.deptBudgetList.netWeight = Number(
-            this.deptBudgetList.grossWeight -
+        })
+        .catch(() => {
+          return false
+        })
+    },
+    tarechange(e) {
+      if (
+        this.deptBudgetList.grossWeight &&
+        this.deptBudgetList.tare &&
+        (this.deptBudgetList.deductionWeight ||
+          this.deptBudgetList.deductionWeight == 0)
+      ) {
+        this.deptBudgetList.netWeight = Number(
+          this.deptBudgetList.grossWeight -
             this.deptBudgetList.tare -
             this.deptBudgetList.deductionWeight
-          ).toFixed(2)
-        }
-      },
-      grossWeightchange(e) {
-        if (
-          this.deptBudgetList.grossWeight &&
-          this.deptBudgetList.tare &&
-          (this.deptBudgetList.deductionWeight||this.deptBudgetList.deductionWeight == 0)
-        ) {
-          this.deptBudgetList.netWeight = Number(
-            this.deptBudgetList.grossWeight -
+        ).toFixed(2)
+      }
+    },
+    grossWeightchange(e) {
+      if (
+        this.deptBudgetList.grossWeight &&
+        this.deptBudgetList.tare &&
+        (this.deptBudgetList.deductionWeight ||
+          this.deptBudgetList.deductionWeight == 0)
+      ) {
+        this.deptBudgetList.netWeight = Number(
+          this.deptBudgetList.grossWeight -
             this.deptBudgetList.tare -
             this.deptBudgetList.deductionWeight
-          ).toFixed(2)
-        }
-      },
-      contractNoChange(e) {
-        for (let i = 0; i < this.deptBudgetList1.length; i++) {
-         
-          console.log(this.deptBudgetList1[i])
-          if (this.deptBudgetList1[i].inOutTaskNo == e) { 
-            var data=this.deptBudgetList1[i]
-            if(this.deptBudgetList1[i].contractNo){
-              this.deptBudgetList.contractNo = this.deptBudgetList1[i].contractNo
-            }
-            else{
-              this.deptBudgetList.contractNo = this.deptBudgetList1[i].moveTaskNo
-            }
+        ).toFixed(2)
+      }
+    },
+    contractNoChange(e) {
+      for (let i = 0; i < this.deptBudgetList1.length; i++) {
+        console.log(this.deptBudgetList1[i])
+        if (this.deptBudgetList1[i].inOutTaskNo == e) {
+          var data = this.deptBudgetList1[i]
+          if (this.deptBudgetList1[i].contractNo) {
+            this.deptBudgetList.contractNo = this.deptBudgetList1[i].contractNo
+          } else {
+            this.deptBudgetList.contractNo = this.deptBudgetList1[i].moveTaskNo
           }
         }
-        for (var i = 0; i < this.outContractNo.length; i++) {
-          if (this.outContractNo[i].contractNo == this.deptBudgetList.contractNo) {
-             this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
-            this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
-            this.deptBudgetList.grade = this.outContractNo[i].grade
-            if (this.outContractNo[i].inOutType == '采购入库') {
-              this.deptBudgetList.tips='卖方'+this.outContractNo[i].seller+ '( '+this.outContractNo[i].unitContractPrice+'元/吨)'
-              this.deptBudgetList.inOutTypeKey = 1
-            } else if (this.outContractNo[i].inOutType == '移库入库') {
-               this.deptBudgetList.goodsName = data.goodsName
-               this.deptBudgetList.goodsNameKey =data.goodsNameKey
-               this.deptBudgetList.grade = data.grade
-              if(this.outContractNo[i].unitContractPrice){
-                this.deptBudgetList.tips='出货库'+data.sendWarehouse+ ' ('+this.outContractNo[i].unitContractPrice+'元/吨)'
-              }else{
-                this.deptBudgetList.tips='出货库'+data.sendWarehouse
-              }
-              
-              this.deptBudgetList.inOutTypeKey = 3
-            }else if (this.outContractNo[i].inOutType == '移库出库') {
-              this.deptBudgetList.tips='入货库'+data.receiveWarehouse
-            } else if (this.outContractNo[i].inOutType == '暂存入库') {
-              this.deptBudgetList.inOutTypeKey = 4
-            } else if (this.outContractNo[i].inOutType == '贸易服务入库') {
-              this.deptBudgetList.inOutTypeKey = 5
-            } else if (this.outContractNo[i].inOutType == '退库') {
-              if(this.outContractNo[i].contractNo){
-                this.deptBudgetList.tips='买方'+this.outContractNo[i].buyer
-              }
-              else{
-                this.deptBudgetList.tips='出货库'+data.sendWarehouse
-              }
-              this.deptBudgetList.inOutTypeKey = 6
-            }
-            console.log(this.outContractNo[i])
-            // this.deptBudgetList.cost = this.outContractNo[i].contractPrice
-            this.cost = this.outContractNo[i].contractPrice
-            if (this.cost) {
-              this.isGetCost = true
-              this.deptBudgetList.cost = this.cost - this.deptBudgetList.deductionAmount
-            } else {
-              this.isGetCost = false
-              this.deptBudgetList.cost = this.deptBudgetList.cost
-            }
-            this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
-            if (this.outContractNo[i].inOutType == '移库入库') {
-              this.isSelectType = false
+      }
+      for (var i = 0; i < this.outContractNo.length; i++) {
+        if (
+          this.outContractNo[i].contractNo == this.deptBudgetList.contractNo
+        ) {
+          this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
+          this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
+          this.deptBudgetList.grade = this.outContractNo[i].grade
+          if (this.outContractNo[i].inOutType == '采购入库') {
+            this.deptBudgetList.tips =
+              '卖方' +
+              this.outContractNo[i].seller +
+              '( ' +
+              this.outContractNo[i].unitContractPrice +
+              '元/吨)'
+            this.deptBudgetList.inOutTypeKey = 1
+          } else if (this.outContractNo[i].inOutType == '移库入库') {
+            this.deptBudgetList.goodsName = data.goodsName
+            this.deptBudgetList.goodsNameKey = data.goodsNameKey
+            this.deptBudgetList.grade = data.grade
+            if (this.outContractNo[i].unitContractPrice) {
+              this.deptBudgetList.tips =
+                '出货库' +
+                data.sendWarehouse +
+                ' (' +
+                this.outContractNo[i].unitContractPrice +
+                '元/吨)'
             } else {
-              this.isSelectType = true
+              this.deptBudgetList.tips = '出货库' + data.sendWarehouse
             }
-            if (this.outContractNo[i].deliverType == '1') {
-              this.carstatus = true
+
+            this.deptBudgetList.inOutTypeKey = 3
+          } else if (this.outContractNo[i].inOutType == '移库出库') {
+            this.deptBudgetList.tips = '入货库' + data.receiveWarehouse
+          } else if (this.outContractNo[i].inOutType == '暂存入库') {
+            this.deptBudgetList.inOutTypeKey = 4
+          } else if (this.outContractNo[i].inOutType == '贸易服务入库') {
+            this.deptBudgetList.inOutTypeKey = 5
+          } else if (this.outContractNo[i].inOutType == '退库') {
+            if (this.outContractNo[i].contractNo) {
+              this.deptBudgetList.tips = '买方' + this.outContractNo[i].buyer
             } else {
-              this.carstatus = false
-            }
-            if (this.outContractNo[i].tranCarInfoList) {
-              this.options2 = this.outContractNo[i].tranCarInfoList
-              this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
-              // this.carstatus = true
+              this.deptBudgetList.tips = '出货库' + data.sendWarehouse
             }
+            this.deptBudgetList.inOutTypeKey = 6
+          }
+          console.log(this.outContractNo[i])
+          // this.deptBudgetList.cost = this.outContractNo[i].contractPrice
+          this.cost = this.outContractNo[i].contractPrice
+          if (this.cost) {
+            this.isGetCost = true
+            this.deptBudgetList.cost =
+              this.cost - this.deptBudgetList.deductionAmount
+          } else {
+            this.isGetCost = false
+            this.deptBudgetList.cost = this.deptBudgetList.cost
+          }
+          this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
+          if (this.outContractNo[i].inOutType == '移库入库') {
+            this.isSelectType = false
+          } else {
+            this.isSelectType = true
+          }
+          if (this.outContractNo[i].deliverType == '1') {
+            this.carstatus = true
+          } else {
+            this.carstatus = false
+          }
+          if (this.outContractNo[i].tranCarInfoList) {
+            this.options2 = this.outContractNo[i].tranCarInfoList
+            this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
+            // this.carstatus = true
           }
         }
-      },
-      contractNoChange1(e) {
-        for (var i = 0; i < this.outContractNo.length; i++) {
-          if (this.outContractNo[i].contractNo == e) {
-            console.log(this.outContractNo[i])
-            if (this.outContractNo[i].inOutType == '采购入库') {
-              this.deptBudgetList.inOutTypeKey = 1
-            } else if (this.outContractNo[i].inOutType == '移库入库') {
-              this.deptBudgetList.inOutTypeKey = 3
-            } else if (this.outContractNo[i].inOutType == '暂存入库') {
-              this.deptBudgetList.inOutTypeKey = 4
-            } else if (this.outContractNo[i].inOutType == '贸易服务入库') {
-              this.deptBudgetList.inOutTypeKey = 5
-            } else if (this.outContractNo[i].inOutType == '退库') {
-              this.deptBudgetList.inOutTypeKey = 6
-            }
-            this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
-            this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
-            this.deptBudgetList.grade = this.outContractNo[i].grade
-            // this.deptBudgetList.cost = this.outContractNo[i].contractPrice
-            this.cost = this.outContractNo[i].contractPrice
-            if (this.cost) {
-              this.isGetCost = true
-              this.deptBudgetList.cost = this.cost - this.deptBudgetList.deductionAmount
-            } else {
-              this.isGetCost = false
-              this.deptBudgetList.cost = this.deptBudgetList.cost
-            }
-            this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
-            if (this.outContractNo[i].inOutType == '移库入库') {
-              this.isSelectType = false
-            } else {
-              this.isSelectType = true
-            }
-            if (this.outContractNo[i].deliverType == '1') {
-              this.carstatus = true
-            } else {
-              this.carstatus = false
-            }
-            if (this.outContractNo[i].tranCarInfoList) {
-              this.options2 = this.outContractNo[i].tranCarInfoList
-              this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
-              this.carstatus = true
-            }
+      }
+    },
+    contractNoChange1(e) {
+      for (var i = 0; i < this.outContractNo.length; i++) {
+        if (this.outContractNo[i].contractNo == e) {
+          console.log(this.outContractNo[i])
+          if (this.outContractNo[i].inOutType == '采购入库') {
+            this.deptBudgetList.inOutTypeKey = 1
+          } else if (this.outContractNo[i].inOutType == '移库入库') {
+            this.deptBudgetList.inOutTypeKey = 3
+          } else if (this.outContractNo[i].inOutType == '暂存入库') {
+            this.deptBudgetList.inOutTypeKey = 4
+          } else if (this.outContractNo[i].inOutType == '贸易服务入库') {
+            this.deptBudgetList.inOutTypeKey = 5
+          } else if (this.outContractNo[i].inOutType == '退库') {
+            this.deptBudgetList.inOutTypeKey = 6
+          }
+          this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
+          this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
+          this.deptBudgetList.grade = this.outContractNo[i].grade
+          // this.deptBudgetList.cost = this.outContractNo[i].contractPrice
+          this.cost = this.outContractNo[i].contractPrice
+          if (this.cost) {
+            this.isGetCost = true
+            this.deptBudgetList.cost =
+              this.cost - this.deptBudgetList.deductionAmount
+          } else {
+            this.isGetCost = false
+            this.deptBudgetList.cost = this.deptBudgetList.cost
+          }
+          this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
+          if (this.outContractNo[i].inOutType == '移库入库') {
+            this.isSelectType = false
+          } else {
+            this.isSelectType = true
+          }
+          if (this.outContractNo[i].deliverType == '1') {
+            this.carstatus = true
+          } else {
+            this.carstatus = false
+          }
+          if (this.outContractNo[i].tranCarInfoList) {
+            this.options2 = this.outContractNo[i].tranCarInfoList
+            this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
+            this.carstatus = true
           }
         }
-      },
-      typeChange(e) {},
-      pureweight(status) {
-        console.log(this.deptBudgetList)
-        if (
-          this.deptBudgetList.netWeight &&
-          this.deptBudgetList.tidalGrainWater &&
-          this.deptBudgetList.solidGrainWater &&
-          this.deptBudgetList.buckleWeightRatio
-        ) {
-          this.deptBudgetList.pureWeight =
-            (this.deptBudgetList.netWeight *
-              (100 -
-                (this.deptBudgetList.tidalGrainWater -
-                  this.deptBudgetList.solidGrainWater) *
+      }
+    },
+    typeChange(e) {},
+    pureweight(status) {
+      console.log(this.deptBudgetList)
+      if (
+        this.deptBudgetList.netWeight &&
+        this.deptBudgetList.tidalGrainWater &&
+        this.deptBudgetList.solidGrainWater &&
+        this.deptBudgetList.buckleWeightRatio
+      ) {
+        this.deptBudgetList.pureWeight =
+          (this.deptBudgetList.netWeight *
+            (100 -
+              (this.deptBudgetList.tidalGrainWater -
+                this.deptBudgetList.solidGrainWater) *
                 this.deptBudgetList.buckleWeightRatio)) /
-            100
-        }
-      },
-      selectgoodsName(e) {
-        for (var i = 0; i < this.goodnameList.length; i++) {
-          if (this.goodnameList[i].constValue == e) {
-            this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
-            if(e=='玉米(潮粮)'){
-              this.deptBudgetList.type='潮粮'
-            }else{
-              this.deptBudgetList.type='干粮'
-            }
+          100
+      }
+    },
+    selectgoodsName(e) {
+      for (var i = 0; i < this.goodnameList.length; i++) {
+        if (this.goodnameList[i].constValue == e) {
+          this.deptBudgetList.goodsNameKey = this.goodnameList[i].constKey
+          if (e == '玉米(潮粮)') {
+            this.deptBudgetList.type = '潮粮'
+          } else {
+            this.deptBudgetList.type = '干粮'
           }
         }
-      },
-      selectpackingMethod(e) {
-        for (var i = 0; i < this.packtypeList.length; i++) {
-          if (this.packtypeList[i].constValue == e) {
-            this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
-          }
+      }
+    },
+    selectpackingMethod(e) {
+      for (var i = 0; i < this.packtypeList.length; i++) {
+        if (this.packtypeList[i].constValue == e) {
+          this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
         }
-      },
-      selectstorageType(e) {
-        for (var i = 0; i < this.storageType.length; i++) {
-          if (this.storageType[i].constValue == e) {
-            this.deptBudgetList.inOutTypeKey = this.storageType[i].constKey
-          }
+      }
+    },
+    selectstorageType(e) {
+      for (var i = 0; i < this.storageType.length; i++) {
+        if (this.storageType[i].constValue == e) {
+          this.deptBudgetList.inOutTypeKey = this.storageType[i].constKey
         }
-      },
-      handleClose() {
-        this.accessoryTFs = false
-      },
-      handleSizeChange(val) {
-        console.log(`每页 ${val} 条`)
-        this.pageSize = val
-        this.getList()
-      },
-      handleCurrentChange(val) {
-        this.currentPage = val
-        console.log(`当前页: ${val}`)
-        this.getList()
-      },
-      getList() {
-        // 货名
+      }
+    },
+    handleClose() {
+      this.accessoryTFs = false
+    },
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`)
+      this.pageSize = val
+      this.getList()
+    },
+    handleCurrentChange(val) {
+      this.currentPage = val
+      console.log(`当前页: ${val}`)
+      this.getList()
+    },
+    getList() {
+      // 货名
+      pullDown({
+        constId: 'CON2',
+      })
+        .toPromise()
+        .then((response) => {
+          this.goodnameList = response
+        })
+      // 品级
+      pullDown({
+        constId: 'CON3',
+      })
+        .toPromise()
+        .then((response) => {
+          this.gradeList = response
+        })
+      // 类型
+      if (this.deptBudgetList.warehouseType == '1') {
+        this.storageType = []
         pullDown({
-            constId: 'CON2'
-          })
+          constId: 'CON5',
+        })
           .toPromise()
           .then((response) => {
-            this.goodnameList = response
+            // this.storageType = response
+            for (let i = 0; i < response.length; i++) {
+              if (
+                response[i].constValue == '移库入库' ||
+                response[i].constValue == '退库'
+              ) {
+                this.storageType.push(response[i])
+              }
+            }
           })
-        // 品级
+      } else if (this.deptBudgetList.warehouseType == '2') {
         pullDown({
-            constId: 'CON3'
-          })
+          constId: 'WARE1',
+        })
           .toPromise()
           .then((response) => {
-            this.gradeList = response
+            this.storageType = response
           })
-        // 类型
-        if (this.deptBudgetList.warehouseType == '1') {
-          this.storageType = []
-          pullDown({
-              constId: 'CON5'
-            })
-            .toPromise()
-            .then((response) => {
-              // this.storageType = response
-              for (let i = 0; i < response.length; i++) {
-                if (response[i].constValue == '移库入库' || response[i].constValue == '退库') {
-                  this.storageType.push(response[i])
-                }
-              }
-            })
-        } else if (this.deptBudgetList.warehouseType == '2') {
-          pullDown({
-              constId: 'WARE1'
-            })
-            .toPromise()
-            .then((response) => {
-              this.storageType = response
-            })
 
-          pullDown({
-              constId: 'WARE2'
-            })
-            .toPromise()
-            .then((response) => {
-              this.deliveryType = response
-            })
-        }
-        //合同编号
-        xialaNo({
-            compId: localStorage.getItem('ws-pf_compId'),
-            flag: 7
-          })
+        pullDown({
+          constId: 'WARE2',
+        })
           .toPromise()
           .then((response) => {
-            this.options1 = response
-            this.outContractNo = response
+            this.deliveryType = response
           })
+      }
+      //合同编号
+      xialaNo({
+        compId: localStorage.getItem('ws-pf_compId'),
+        flag: 7,
+      })
+        .toPromise()
+        .then((response) => {
+          this.options1 = response
+          this.outContractNo = response
+        })
 
-        //经办人
-        getstaff({
-            compId: localStorage.getItem('ws-pf_compId'),
-            warehouseId: this.deptBudgetList.baseId,
-          })
-          .toPromise()
-          .then((response) => {
-            this.options = response
-            this.qualityInspectorList = response
-            this.staffList = response
-            //  this.agent = response
-          })
-      },
-      selecttaskType(e) {
-        for (var i = 0; i < this.taskTypeList.length; i++) {
-          if (this.taskTypeList[i].value == e) {
-            this.searchType = this.taskTypeList[i].type
-          }
-        }
-      },
-      fujian(row) {
-        if (
-          row.receiveAttachmentPath === null ||
-          row.receiveAttachmentPath === ''
-        ) {
-          EventBus.$emit(
-            'warning',
-            this.$t('system.noticeCircular.NoInformation')
-          )
-        } else {
-          this.accessoryTFs = true
-        }
-        this.appendixIdss = row.receiveAttachmentPath
-      },
-      handleExamine(row) {
-        this.$router.push({
-          name: 'salesContractExamine',
-          query: {
-            id: row.id
-          },
+      //经办人
+      getstaff({
+        compId: localStorage.getItem('ws-pf_compId'),
+        warehouseId: this.deptBudgetList.baseId,
+      })
+        .toPromise()
+        .then((response) => {
+          this.options = response
+          this.qualityInspectorList = response
+          this.staffList = response
+          //  this.agent = response
         })
-      },
     },
-  }
+    selecttaskType(e) {
+      for (var i = 0; i < this.taskTypeList.length; i++) {
+        if (this.taskTypeList[i].value == e) {
+          this.searchType = this.taskTypeList[i].type
+        }
+      }
+    },
+    fujian(row) {
+      if (
+        row.receiveAttachmentPath === null ||
+        row.receiveAttachmentPath === ''
+      ) {
+        EventBus.$emit(
+          'warning',
+          this.$t('system.noticeCircular.NoInformation')
+        )
+      } else {
+        this.accessoryTFs = true
+      }
+      this.appendixIdss = row.receiveAttachmentPath
+    },
+    handleExamine(row) {
+      this.$router.push({
+        name: 'salesContractExamine',
+        query: {
+          id: row.id,
+        },
+      })
+    },
+  },
+}
 </script>
 <style lang="scss" scoped>
-  /deep/.basicInformation {
-    .ws-info-table {
+/deep/.basicInformation {
+  .ws-info-table {
+    border: none;
+  }
+
+  .el-form-item {
+    width: 33.3333%;
+    border: none;
+
+    .el-form-item__label {
+      background: transparent;
       border: none;
     }
 
-    .el-form-item {
-      width: 33.3333%;
+    .el-form-item__content {
       border: none;
-
-      .el-form-item__label {
-        background: transparent;
-        border: none;
-      }
-
-      .el-form-item__content {
-        border: none;
-      }
     }
   }
+}
 
-  .title {
-    position: relative;
-    padding-left: 10px;
-  }
+.title {
+  position: relative;
+  padding-left: 10px;
+}
 
-  .title::before {
-    content: '';
-    display: inline-block;
-    width: 5px;
-    height: 30px;
-    background: #5473e8;
-    position: absolute;
-    left: 0;
-  }
+.title::before {
+  content: '';
+  display: inline-block;
+  width: 5px;
+  height: 30px;
+  background: #5473e8;
+  position: absolute;
+  left: 0;
+}
 
-  .el-form {
-    padding: 0 10%;
-  }
+.el-form {
+  padding: 0 10%;
+}
 
-  .el-button--primary {
-    background-color: #5878e8;
-    border-color: #5878e8;
-  }
+.el-button--primary {
+  background-color: #5878e8;
+  border-color: #5878e8;
+}
 
-  .el-col {
-    background: #f6f7fc;
-  }
+.el-col {
+  background: #f6f7fc;
+}
 
-  .bg-right {
-    text-align: right;
-    padding: 16px 20px;
-  }
+.bg-right {
+  text-align: right;
+  padding: 16px 20px;
+}
 
-  .center {
-    position: relative;
-    top: 50px;
-    width: 40%;
-    height: 2000px;
-    margin: 0 auto;
-  }
+.center {
+  position: relative;
+  top: 50px;
+  width: 40%;
+  height: 2000px;
+  margin: 0 auto;
+}
 
-  //选填
-  /deep/.el-form-item {
-    width: 50%;
-  }
+//选填
+/deep/.el-form-item {
+  width: 50%;
+}
 
-  .container {
-    overflow: scroll;
-    height: 120vh;
-  }
+.container {
+  overflow: scroll;
+  height: 120vh;
+}
 
-  /deep/.ws-info-table .el-form-item .el-form-item__label {
-    text-align: center;
-  }
+/deep/.ws-info-table .el-form-item .el-form-item__label {
+  text-align: center;
+}
 
-  .deliverydate {
-    display: inline-block;
-    width: 10%;
-  }
+.deliverydate {
+  display: inline-block;
+  width: 10%;
+}
 
-  .center {
-    margin-top: -60px;
-    width: 80%;
-  }
+.center {
+  margin-top: -60px;
+  width: 80%;
+}
 
-  //仓位
+//仓位
 
-  .position {
-    background: #afb5cb;
-    border-radius: 2px;
-    font-size: 12px;
-    color: #ffffff;
-    line-height: 20px;
-    display: inline-grid;
-    padding: 2px 4px;
-  }
+.position {
+  background: #afb5cb;
+  border-radius: 2px;
+  font-size: 12px;
+  color: #ffffff;
+  line-height: 20px;
+  display: inline-grid;
+  padding: 2px 4px;
+}
 
-  //表格文字
-  /deep/.ws-info-table .el-form-item .el-form-item__label {
-    text-align: left;
-    font-size: 14px;
-    font-family: PingFangSC-Regular, PingFang SC;
-    font-weight: 400;
-    color: #8890b1;
-    line-height: 16px;
-  }
+//表格文字
+/deep/.ws-info-table .el-form-item .el-form-item__label {
+  text-align: left;
+  font-size: 14px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  font-weight: 400;
+  color: #8890b1;
+  line-height: 16px;
+}
 
-  .inspector {
-    width: 50%;
-  }
+.inspector {
+  width: 50%;
+}
 
-  //质检员
-  .inspector .el-form-item__content {
-    text-align: left;
-    margin-left: 0px;
-  }
+//质检员
+.inspector .el-form-item__content {
+  text-align: left;
+  margin-left: 0px;
+}
 
-  .small-title {
-    position: relative;
-    padding: 10px;
-    font-weight: 600;
-  }
+.small-title {
+  position: relative;
+  padding: 10px;
+  font-weight: 600;
+}
 
-  .small-title::before {
-    position: absolute;
-    content: '';
-    display: block;
-    background: #5473e8;
-    width: 4px;
-    height: 14px;
-    left: 0px;
-    top: 13px;
-    padding: 4px 2px;
-  }
+.small-title::before {
+  position: absolute;
+  content: '';
+  display: block;
+  background: #5473e8;
+  width: 4px;
+  height: 14px;
+  left: 0px;
+  top: 13px;
+  padding: 4px 2px;
+}
+.top {
+  background: black;
+  color: #2aff7c;
+  font-size: 32px;
+  text-align: right;
+  padding: 20px;
+  border-radius: 10px;
+  margin: 0 20px 20px 20px;
 
-  //下面列表
-  .neifor {
-    width: 80%;
-    background-color: #f6f7fc;
+  .car-type {
+    text-align: left;
   }
 
-  /deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
-    width: 35%;
-    text-align: center;
+  .kg-style {
+    font-size: 30px;
   }
+}
+.weight {
+  font-size: 68px;
+}
+//下面列表
+.neifor {
+  width: 80%;
+  background-color: #f6f7fc;
+}
 
-  /deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
-    width: 60%;
-    background-color: #f6f7fc;
-  }
+/deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
+  width: 35%;
+  text-align: center;
+}
 
-  /deep/.neifor .el-input--small .el-input__inner {
-    width: 100%;
-  }
+/deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
+  width: 60%;
+  background-color: #f6f7fc;
+}
+
+/deep/.neifor .el-input--small .el-input__inner {
+  width: 100%;
+}
 </style>

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1720 - 1261
src/views/warehouse/warehouseManagementNoWeightIn.vue


+ 1472 - 1153
src/views/warehouse/warehouseManagementNoWeightOut.vue

@@ -6,8 +6,18 @@
         <h2 class="bg-left title">出库毛重检斤</h2>
       </el-col>
       <el-col :span="4" class="bg-right">
-        <el-button class="bg-bottom" type="primary" size="small" @click="revert()"><img width="6" height="10"
-            style="vertical-align: bottom; margin-right: 3px" src="../../../public/img/lujing.png" alt="" />返回
+        <el-button
+          class="bg-bottom"
+          type="primary"
+          size="small"
+          @click="revert()"
+          ><img
+            width="6"
+            height="10"
+            style="vertical-align: bottom; margin-right: 3px"
+            src="../../../public/img/lujing.png"
+            alt=""
+          />返回
         </el-button>
       </el-col>
     </el-row>
@@ -21,129 +31,324 @@
           </span>
           <span v-show="this.$route.query.warehouseType == 2"> (临) </span>
         </h2>
+        <div class="top">
+          <div class="car-type">毛重</div>
+          <div class="weight">
+            {{ dataList.grossWeight }}
+            <span class="kg-style">kg</span>
+          </div>
+          <!-- <div class="weight">{{dataList.tare}} <span class="kg-style">kg</span></div> -->
+          <div class="car-no">{{ dataList.carNo }}</div>
+        </div>
         <div class="small-title">基本信息</div>
         <ws-info-table>
           <!--任务编号-->
           <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
-            <el-select filterable clearable v-model="dataList.inOutTaskNo" placeholder="请选择任务编号" class="typeselect"
-              @change="contractNoChange">
-              <el-option v-for="item in deptBudgetList2" :key="item.inOutTaskNo" :label="item.inOutTaskNo"
-                :value="item.inOutTaskNo" />
+            <el-select
+              filterable
+              clearable
+              v-model="dataList.inOutTaskNo"
+              placeholder="请选择任务编号"
+              class="typeselect"
+              @change="contractNoChange"
+            >
+              <el-option
+                v-for="item in deptBudgetList2"
+                :key="item.inOutTaskNo"
+                :label="item.inOutTaskNo"
+                :value="item.inOutTaskNo"
+              />
             </el-select>
           </ws-form-item>
           <ws-form-item label="合同编号" span="1" prop="contractNo">
-            <ws-select disabled v-model="dataList.contractNo" placeholder="请选择合同编号或移库任务编号" class="typeselect"
-              @change='contractNoChange'>
-              <ws-option v-for="item in outContractNo" :key="item.constKey" :label="item.contractNo"
-                :value="item.contractNo" />
+            <ws-select
+              disabled
+              v-model="dataList.contractNo"
+              placeholder="请选择合同编号或移库任务编号"
+              class="typeselect"
+              @change="contractNoChange"
+            >
+              <ws-option
+                v-for="item in outContractNo"
+                :key="item.constKey"
+                :label="item.contractNo"
+                :value="item.contractNo"
+              />
             </ws-select>
           </ws-form-item>
           <ws-form-item label="提示" span="1" prop="tips">
-           <ws-input onmouseover="this.title=this.value" v-model="dataList.tips"
-              maxlength="20" size="small" />
+            <ws-input
+              onmouseover="this.title=this.value"
+              v-model="dataList.tips"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
           <!-- 货名 -->
           <ws-form-item label="货名" span="1">
-            <ws-select disabled v-model="dataList.goodsName" placeholder class="typeselect" @change="selectgoodsName">
-              <ws-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
-                :value="item.constValue" />
+            <ws-select
+              disabled
+              v-model="dataList.goodsName"
+              placeholder
+              class="typeselect"
+              @change="selectgoodsName"
+            >
+              <ws-option
+                v-for="item in goodnameList"
+                :key="item.constKey"
+                :label="item.constValue"
+                :value="item.constValue"
+              />
             </ws-select>
           </ws-form-item>
-           
+
           <ws-form-item label="类型" span="1" prop="type">
             <ws-select disabled v-model="dataList.type" @change="typeChange">
-              <ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
+              <ws-option
+                v-for="item in typeList"
+                :key="item"
+                :label="item"
+                :value="item"
+              />
             </ws-select>
           </ws-form-item>
           <!--毛重(公斤)-->
           <ws-form-item label="毛重(公斤)" span="1" prop="grossWeight">
-            <ws-input :disabled="allowEdit" @input="grossWeightchange" v-model="dataList.grossWeight"
-              placeholder="请输入毛重" maxlength="20" size="small" />
+            <ws-input
+              :disabled="allowEdit"
+              @input="grossWeightchange"
+              v-model="dataList.grossWeight"
+              placeholder="请输入毛重"
+              maxlength="20"
+              size="small"
+            />
             <el-button type="primary" @click="openPort">重新获取</el-button>
           </ws-form-item>
 
           <!--皮重(公斤)-->
-          <ws-form-item label="皮重(公斤)" span="1" prop="tare" class="readonly">
-            <ws-input :disabled="allowEdit" @input="tarechange" v-model="dataList.tare" placeholder="请输入皮重"
-              maxlength="100" size="small" />
+          <ws-form-item
+            label="皮重(公斤)"
+            span="1"
+            prop="tare"
+            class="readonly"
+          >
+            <ws-input
+              :disabled="allowEdit"
+              @input="tarechange"
+              v-model="dataList.tare"
+              placeholder="请输入皮重"
+              maxlength="100"
+              size="small"
+            />
           </ws-form-item>
           <!--净重(公斤)-->
           <ws-form-item label="净重(公斤)" span="1" prop="netWeight">
-            <ws-input readonly="readonly" v-model="dataList.netWeight" placeholder="不可编辑,自动计算" maxlength="120"
-              size="small" />
+            <ws-input
+              readonly="readonly"
+              v-model="dataList.netWeight"
+              placeholder="不可编辑,自动计算"
+              maxlength="120"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item v-if='dataList.type=="潮粮"' label="扣重比" span="1" prop="buckleWeightRatio" class="readonly">
-            <ws-input @input='pureweight' v-model="dataList.buckleWeightRatio" placeholder="请输入扣重比" maxlength="100"
-              size="small" />
+          <ws-form-item
+            v-if="dataList.type == '潮粮'"
+            label="扣重比"
+            span="1"
+            prop="buckleWeightRatio"
+            class="readonly"
+          >
+            <ws-input
+              @input="pureweight"
+              v-model="dataList.buckleWeightRatio"
+              placeholder="请输入扣重比"
+              maxlength="100"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item v-if='dataList.type=="潮粮"' label="干粮水分占比" span="1" prop="solidGrainWater" class="readonly">
-            <ws-input @input='pureweight' v-model="dataList.solidGrainWater" placeholder="请输入干粮水分占比" maxlength="100"
-              size="small" />
+          <ws-form-item
+            v-if="dataList.type == '潮粮'"
+            label="干粮水分占比"
+            span="1"
+            prop="solidGrainWater"
+            class="readonly"
+          >
+            <ws-input
+              @input="pureweight"
+              v-model="dataList.solidGrainWater"
+              placeholder="请输入干粮水分占比"
+              maxlength="100"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item v-if='dataList.type=="潮粮"' label="潮粮水分占比" span="1" prop="tidalGrainWater" class="readonly">
-            <ws-input @input='pureweight' v-model="dataList.tidalGrainWater" placeholder="请输入潮粮水分占比" maxlength="100"
-              size="small" />
+          <ws-form-item
+            v-if="dataList.type == '潮粮'"
+            label="潮粮水分占比"
+            span="1"
+            prop="tidalGrainWater"
+            class="readonly"
+          >
+            <ws-input
+              @input="pureweight"
+              v-model="dataList.tidalGrainWater"
+              placeholder="请输入潮粮水分占比"
+              maxlength="100"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item v-if='dataList.type=="潮粮"' label="纯重" span="1" prop="pureWeight" class="readonly">
-            <ws-input disabled v-model="dataList.pureWeight" placeholder="不可编辑,自动计算" maxlength="100" size="small" />
+          <ws-form-item
+            v-if="dataList.type == '潮粮'"
+            label="纯重"
+            span="1"
+            prop="pureWeight"
+            class="readonly"
+          >
+            <ws-input
+              disabled
+              v-model="dataList.pureWeight"
+              placeholder="不可编辑,自动计算"
+              maxlength="100"
+              size="small"
+            />
           </ws-form-item>
           <!-- 品级 -->
           <ws-form-item label="品级" span="1" class="readonly">
-            <ws-select v-model="dataList.grade" placeholder="" class="typeselect" @change="selectpackingMethod">
-              <ws-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
-                :value="item.constValue" />
+            <ws-select
+              v-model="dataList.grade"
+              placeholder=""
+              class="typeselect"
+              @change="selectpackingMethod"
+            >
+              <ws-option
+                v-for="item in gradeList"
+                :key="item.constKey"
+                :label="item.constValue"
+                :value="item.constValue"
+              />
             </ws-select>
           </ws-form-item>
           <!--经办人-->
           <ws-form-item label="经办人" span="1" prop="agent">
-            <el-select v-model="dataList.agent" placeholder="请选择经办人" filterable clearable @change="selectstaff">
-              <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
+            <el-select
+              v-model="dataList.agent"
+              placeholder="请选择经办人"
+              filterable
+              clearable
+              @change="selectstaff"
+            >
+              <el-option
+                v-for="item in options"
+                :key="item.value"
+                :label="item.staffName"
+                :value="item.staffName"
+              />
             </el-select>
           </ws-form-item>
           <!--出库日期-->
-          <ws-form-item label="出库日期" span="1" prop="inOutDate" class="deliverydate">
-            <ws-date-picker v-model="dataList.inOutDate" type="date" placeholder="请选择出库日期" value-format="yyyy-MM-dd" />
+          <ws-form-item
+            label="出库日期"
+            span="1"
+            prop="inOutDate"
+            class="deliverydate"
+          >
+            <ws-date-picker
+              v-model="dataList.inOutDate"
+              type="date"
+              placeholder="请选择出库日期"
+              value-format="yyyy-MM-dd"
+            />
           </ws-form-item>
           <!-- 出库类型 -->
           <ws-form-item label="出库类型" span="1">
-            <ws-select v-model="dataList.inOutType" placeholder="" class="typeselect" @change="selectstorageType">
-              <ws-option v-for="item in deliveryType" :key="item.constKey" :label="item.constValue"
-                :value="item.constValue" />
+            <ws-select
+              v-model="dataList.inOutType"
+              placeholder=""
+              class="typeselect"
+              @change="selectstorageType"
+            >
+              <ws-option
+                v-for="item in deliveryType"
+                :key="item.constKey"
+                :label="item.constValue"
+                :value="item.constValue"
+              />
             </ws-select>
           </ws-form-item>
 
           <!--车牌号-->
           <ws-form-item label="车牌号" span="1" prop="carNo">
-            <ws-input v-if="!carstatus" v-model="dataList.carNo" placeholder="请输入车牌号" maxlength="20" size="small" />
-            <el-select v-if="carstatus" filterable clearable :filter-method="dataFilter2" v-model="deptBudgetList.carNo"
-              placeholder="请选择车牌号" class="typeselect" @change="carChange">
-              <el-option v-for="item in options2" :key="item.constKey" :label="item.carNo + '(' + item.tranCarNo + ')'"
-                :value="item.carNo" />
+            <ws-input
+              v-if="!carstatus"
+              v-model="dataList.carNo"
+              placeholder="请输入车牌号"
+              maxlength="20"
+              size="small"
+            />
+            <el-select
+              v-if="carstatus"
+              filterable
+              clearable
+              :filter-method="dataFilter2"
+              v-model="deptBudgetList.carNo"
+              placeholder="请选择车牌号"
+              class="typeselect"
+              @change="carChange"
+            >
+              <el-option
+                v-for="item in options2"
+                :key="item.constKey"
+                :label="item.carNo + '(' + item.tranCarNo + ')'"
+                :value="item.carNo"
+              />
             </el-select>
           </ws-form-item>
           <ws-form-item label="箱号-1" span="1" prop="boxNo">
-            <ws-input v-model="dataList.boxNo" placeholder="请输入箱号" maxlength="20"
-              size="small" />
+            <ws-input
+              v-model="dataList.boxNo"
+              placeholder="请输入箱号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
           <ws-form-item label="箱号-2" span="1" prop="boxNoOther">
-            <ws-input v-model="dataList.boxNoOther" placeholder="请输入箱号" maxlength="20"
-              size="small" />
+            <ws-input
+              v-model="dataList.boxNoOther"
+              placeholder="请输入箱号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
           <ws-form-item label="封号-1" span="1" prop="titleNo">
-            <ws-input v-model="dataList.titleNo" placeholder="请输入封号" maxlength="20"
-              size="small" />
+            <ws-input
+              v-model="dataList.titleNo"
+              placeholder="请输入封号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
           <ws-form-item label="封号-2" span="1" prop="titleNoOther">
-            <ws-input v-model="dataList.titleNoOther" placeholder="请输入封号" maxlength="20"
-              size="small" />
+            <ws-input
+              v-model="dataList.titleNoOther"
+              placeholder="请输入封号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
           <ws-form-item label="车厢号-1" span="1" prop="wingNumber">
-            <ws-input v-model="dataList.wingNumber" placeholder="请输入车厢号" maxlength="20"
-              size="small" />
+            <ws-input
+              v-model="dataList.wingNumber"
+              placeholder="请输入车厢号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
           <ws-form-item label="车厢号-2" span="1" prop="wingNumberOther">
-            <ws-input v-model="dataList.wingNumberOther" placeholder="请输入车厢号" maxlength="20"
-              size="small" />
+            <ws-input
+              v-model="dataList.wingNumberOther"
+              placeholder="请输入车厢号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
         </ws-info-table>
       </div>
@@ -175,9 +380,18 @@
           />
         </ws-form-item> -->
         <ws-form-item label="质检员" span="1" prop="qualityInspector">
-          <el-select v-model="dataList.warehouseInOutDetail.qualityInspector" placeholder="请选择质检员" filterable clearable>
-            <el-option v-for="item in qualityInspectorList" :key="item.value" :label="item.staffName"
-              :value="item.staffName" />
+          <el-select
+            v-model="dataList.warehouseInOutDetail.qualityInspector"
+            placeholder="请选择质检员"
+            filterable
+            clearable
+          >
+            <el-option
+              v-for="item in qualityInspectorList"
+              :key="item.value"
+              :label="item.staffName"
+              :value="item.staffName"
+            />
           </el-select>
         </ws-form-item>
       </div>
@@ -185,33 +399,57 @@
         <ws-info-table>
           <!--水分(%)<=-->
           <ws-form-item label="水分(%)<=" span="1" prop="waterContent">
-            <ws-input v-model="dataList.warehouseInOutDetail.waterContent" placeholder="请输入水分占比" maxlength="120"
-              size="small" />
+            <ws-input
+              v-model="dataList.warehouseInOutDetail.waterContent"
+              placeholder="请输入水分占比"
+              maxlength="120"
+              size="small"
+            />
           </ws-form-item>
           <!--杂质(%)<=-->
           <ws-form-item label="杂质(%)<=" span="1" prop="impurity">
-            <ws-input v-model="dataList.warehouseInOutDetail.impurity" placeholder="请输入杂质占比" maxlength="120"
-              size="small" />
+            <ws-input
+              v-model="dataList.warehouseInOutDetail.impurity"
+              placeholder="请输入杂质占比"
+              maxlength="120"
+              size="small"
+            />
           </ws-form-item>
           <!--容重(克/升)>=-->
           <ws-form-item label="容重(克/升)>=" span="1" prop="bulkDensity">
-            <ws-input v-model="dataList.warehouseInOutDetail.bulkDensity" placeholder="请输入容重" maxlength="120"
-              size="small" />
+            <ws-input
+              v-model="dataList.warehouseInOutDetail.bulkDensity"
+              placeholder="请输入容重"
+              maxlength="120"
+              size="small"
+            />
           </ws-form-item>
           <!--霉变粒(%)<=-->
           <ws-form-item label="霉变粒(%)<=" span="1" prop="mildewGrain">
-            <ws-input v-model="dataList.warehouseInOutDetail.mildewGrain" placeholder="请输入霉变粒占比" maxlength="120"
-              size="small" />
+            <ws-input
+              v-model="dataList.warehouseInOutDetail.mildewGrain"
+              placeholder="请输入霉变粒占比"
+              maxlength="120"
+              size="small"
+            />
           </ws-form-item>
           <!--热损伤(%)<=-->
           <ws-form-item label="热损伤(%)<=" span="1" prop="jiaorenli">
-            <ws-input v-model="dataList.warehouseInOutDetail.jiaorenli" placeholder="请输入热损伤占比" maxlength="120"
-              size="small" />
+            <ws-input
+              v-model="dataList.warehouseInOutDetail.jiaorenli"
+              placeholder="请输入热损伤占比"
+              maxlength="120"
+              size="small"
+            />
           </ws-form-item>
           <!--不完善粒(%)<=-->
           <ws-form-item label="不完善粒(%)<=" span="1" prop="imperfectGrain">
-            <ws-input v-model="dataList.warehouseInOutDetail.imperfectGrain" placeholder="请输入不完善粒占比" maxlength="120"
-              size="small" />
+            <ws-input
+              v-model="dataList.warehouseInOutDetail.imperfectGrain"
+              placeholder="请输入不完善粒占比"
+              maxlength="120"
+              size="small"
+            />
           </ws-form-item>
         </ws-info-table>
       </div>
@@ -223,1256 +461,1337 @@
           @click="temporaryStorage()"
           >暂存</el-button
         > -->
-        <el-button class="bg-bottom-up" type="primary" size="small" @click="submit()">提交</el-button>
+        <el-button
+          class="bg-bottom-up"
+          type="primary"
+          size="small"
+          @click="submit()"
+          >提交</el-button
+        >
       </div>
     </ws-form>
   </div>
 </template>
 <script>
-  import {
-    pullDown,
-    addstorageputList,
-    xialaNo,
-    getstaff,
-    getPrintInfo,
-    getReceiptTaskNo
-  } from '@/model/warehouse/index'
-  import {
-    downloadFile
-  } from '@/utils/batchDown'
-  import Pagination from '@/components/Pagination'
-  import WsUpload from '@/components/WsUpload'
-  import {
-    mapActions,
-    mapGetters,
-    mapState
-  } from 'vuex'
-  // import { dayjs, fmoney, EventBus } from 'base-core-lib'
-  import {
-    dayjs,
-    EventBus
-  } from 'base-core-lib'
-  export default {
-    name: 'viewSpareMoney',
-    components: {
-      WsUpload,
-      Pagination,
+import {
+  pullDown,
+  addstorageputList,
+  xialaNo,
+  getstaff,
+  getPrintInfo,
+  getReceiptTaskNo,
+} from '@/model/warehouse/index'
+import { downloadFile } from '@/utils/batchDown'
+import Pagination from '@/components/Pagination'
+import WsUpload from '@/components/WsUpload'
+import { mapActions, mapGetters, mapState } from 'vuex'
+// import { dayjs, fmoney, EventBus } from 'base-core-lib'
+import { dayjs, EventBus } from 'base-core-lib'
+export default {
+  name: 'viewSpareMoney',
+  components: {
+    WsUpload,
+    Pagination,
+  },
+  watch: {
+    isShow(val) {
+      this.showType = val
     },
-    watch: {
-      isShow(val) {
-        this.showType = val
+    dataList: {
+      //深度监听,可监听到对象、数组的变化
+      handler(val, oldVal) {
+        if (val.grossWeight) {
+          this.dataList.netWeight = val.grossWeight - this.dataList.tare
+        }
       },
-      dataList: { //深度监听,可监听到对象、数组的变化
-        handler(val, oldVal) {
-          if (val.grossWeight) {
-            this.dataList.netWeight = val.grossWeight - this.dataList.tare
-          }
-        },
-        deep: true //true 深度监听
-      }
+      deep: true, //true 深度监听
     },
-    computed: {
-      ...mapGetters(['deptBudgetList']),
-    },
-    data() {
-      return {
-        deptBudgetList2: [],
-        //弹出框
-        dialogViewSpareMoney: false,
-        dialogApproveFormVisible: false,
-        // 船舶类型
-        monetaryKey: null,
-        // 表格显示数据
-        tableDate: [],
-        // 是否显示
-        showType: true,
-        // 年
-        year: '',
-        readonly: true,
-        typeList: ['干粮', '潮粮'],
-        qualityInspectorList: [],
-        deptBudgetTotal: 0,
-        currentPage: 1,
-        pageSize: 10,
-        searchType: 1,
-        searchKeyWord: '',
-        contractType: 2,
-        startDate: null,
-        endDate: null,
-        goodnameList: {},
-        tranCarInfoList: [],
-        staffList: [],
-        options: [],
-        options1: [],
-        options2: [],
-        carstatus: false,
-        storageType: [],
-        deliveryType: [],
-        outContractNo: [],
-        // 提交类型
-        submitType: true,
-        storageType: [],
-        appendixIdsAdd: '',
-        uploadSuccess: {},
-        onChange: {},
-        deptBudgetList1: [],
-        gradeList: [],
-        rules: {
-          netWeight: [{
+  },
+  computed: {
+    ...mapGetters(['deptBudgetList']),
+  },
+  data() {
+    return {
+      deptBudgetList2: [],
+      //弹出框
+      dialogViewSpareMoney: false,
+      dialogApproveFormVisible: false,
+      // 船舶类型
+      monetaryKey: null,
+      // 表格显示数据
+      tableDate: [],
+      // 是否显示
+      showType: true,
+      // 年
+      year: '',
+      readonly: true,
+      typeList: ['干粮', '潮粮'],
+      qualityInspectorList: [],
+      deptBudgetTotal: 0,
+      currentPage: 1,
+      pageSize: 10,
+      searchType: 1,
+      searchKeyWord: '',
+      contractType: 2,
+      startDate: null,
+      endDate: null,
+      goodnameList: {},
+      tranCarInfoList: [],
+      staffList: [],
+      options: [],
+      options1: [],
+      options2: [],
+      carstatus: false,
+      storageType: [],
+      deliveryType: [],
+      outContractNo: [],
+      // 提交类型
+      submitType: true,
+      storageType: [],
+      appendixIdsAdd: '',
+      uploadSuccess: {},
+      onChange: {},
+      deptBudgetList1: [],
+      gradeList: [],
+      rules: {
+        netWeight: [
+          {
             required: true,
             type: 'number',
             message: '请输入活动名称',
             trigger: 'blur',
-          }, ],
-        },
-        size: 10,
-        compId: localStorage.getItem('ws-pf_compId'),
-        secretaryWeigher: localStorage.getItem('ws-pf_staffName'),
-        deptCircularPage: {},
-        packtypeList: {},
-        date: {
-          year: dayjs().format('YYYY'),
-          month: dayjs().format('MM'),
-        },
-        contractList: [],
-        dataList: {
-          id: '',
-          grossWeight: '',
-          contractNo: '',
-          tare: '',
-          netWeight: '',
-          grade: '',
-          agent: '',
-          carNo: '',
-          inOutDate: '',
-          inOutType: '',
-          goodsName: '',
-          warehouseInOutDetail: {
-            qualityInspector: ''
           },
-          cost: '',
-          freight: 0,
-          type: '',
-          addressUrl: '',
-          buckleWeightRatio: '',
-          tidalGrainWater: '',
-          solidGrainWater: '',
-          pureWeight: '',
-          deductionAmount: '',
-          deductionWeigh: '',
+        ],
+      },
+      size: 10,
+      compId: localStorage.getItem('ws-pf_compId'),
+      secretaryWeigher: localStorage.getItem('ws-pf_staffName'),
+      deptCircularPage: {},
+      packtypeList: {},
+      date: {
+        year: dayjs().format('YYYY'),
+        month: dayjs().format('MM'),
+      },
+      contractList: [],
+      dataList: {
+        id: '',
+        grossWeight: '',
+        contractNo: '',
+        tare: '',
+        netWeight: '',
+        grade: '',
+        agent: '',
+        carNo: '',
+        inOutDate: '',
+        inOutType: '',
+        goodsName: '',
+        warehouseInOutDetail: {
+          qualityInspector: '',
         },
-        historyList: [],
+        cost: '',
+        freight: 0,
+        type: '',
+        addressUrl: '',
+        buckleWeightRatio: '',
+        tidalGrainWater: '',
+        solidGrainWater: '',
+        pureWeight: '',
+        deductionAmount: '',
+        deductionWeigh: '',
+      },
+      historyList: [],
 
-        pickerBeginDateBefore: {
-          disabledDate: (time) => {
-            return time.getTime() > Date.now()
-          },
+      pickerBeginDateBefore: {
+        disabledDate: (time) => {
+          return time.getTime() > Date.now()
         },
-        accessoryTFs: false,
-        param: 9600,
-        allowEdit: true,
-        result1: '00'
-      }
-    },
-    activated() {
-      if (this.$route.query.allowEdit == 1) {
-        this.allowEdit = false
-      } else {
-        this.allowEdit = true
-      }
-      this.deptBudgetList1.warehouseName = this.$route.query.warehouseName
-      this.deptBudgetList1.binNumber = this.$route.query.binNumber
-      this.getList()
-      this.dataList.id = this.$route.query.id
-      this.dataList.grossWeight = Math.round(this.$route.query.grossWeight * 1000)
-      this.dataList.contractNo = this.$route.query.contractNo
-      this.dataList.baseId = this.$route.query.baseId
-      this.dataList.positionId = this.$route.query.positionId
-      this.dataList.warehouseName = this.$route.query.warehouseName
-      this.dataList.binNumber = this.$route.query.binNumber
-      this.dataList.tare = Math.round(this.$route.query.tare * 1000)
-      this.dataList.netWeight = Math.round(this.$route.query.netWeight * 1000)
-      this.dataList.grade = this.$route.query.grade
-      this.dataList.agent = this.$route.query.agent
-      this.dataList.carNo = this.$route.query.carNo
-      this.dataList.inOutDate = this.$route.query.inOutDate
-      this.dataList.contractNo = this.$route.query.contractNo
-      this.dataList.inOutType = this.$route.query.inOutType
-      this.dataList.compId = this.$route.query.compId
-      this.dataList.goodsName = this.$route.query.goodsName
-      this.dataList.goodsNameKey = Number(this.$route.query.goodsNameKey)
-      this.dataList.inOutFlag = this.$route.inOutFlag
-      this.dataList.inOutTypeKey = Number(this.$route.query.inOutTypeKey)
-      this.dataList.statusFlag = this.$route.statusFlag
-      this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
-      console.log(this.dataList)
-      getReceiptTaskNo({flag:1,warehouseName:this.deptBudgetList.warehouseName,agentKey: localStorage.getItem('ws-pf_userId')}).toPromise()
-        .then((response) => {
-          this.deptBudgetList2 = response
-        })
-    },
-    methods: {
-      async closePort() {
-        console.log('closePort');
-        this.reader.cancel()
       },
-      async openPort() {
-        console.log('openPort', navigator);
-        if ('serial' in navigator) {
-          // The Web Serial API is supported.
-          console.log('the Web Serial API is supported.');
-          console.log(this.param);
-          const port = await navigator.serial.requestPort();
-          await port.open({
-            baudRate: this.param
-          }); // set baud rate
-          this.reader = port.readable.getReader();
-          // 监听来自串行设备的数据
-          while (true) {
-            const {
-              value,
-              done
-            } = await this.reader.read();
-            // console.log("value",value);
-            if (done) {
-              // 允许稍后关闭串口。
-              this.reader.releaseLock();
-              break;
-            }
-            var result = '';
-            //2。获取16进制字符串
-            // var receData = HexConvert.ByteToString(value);
-            // console.log("receData",receData);
-            var flag = false;
-            var flag1 = false;
-            // for (var i = 0; i < value.length; i++) {
-            //   var tmp = String.fromCharCode(value[i])
-            //   if (tmp == '+') {
-            //     flag = true
-            //   }
-            //   if (flag && result.length < 6 && tmp != '+') {
-            //     result += tmp
-            //   }
-            // }
-            // if(parseInt(result)){
-            //     this.dataList.grossWeight = parseInt(result)
-            // }
-            if (this.deptBudgetList1.warehouseName && (this.deptBudgetList.warehouseName == '山东诸城迈饶库' || this
-                .deptBudgetList1.warehouseName == '克东千红库' || this.deptBudgetList1.warehouseName == '鲅鱼圈祥腾库'|| this.deptBudgetList1.warehouseName == '哈尔滨依兰库')) {
-              for (var i = 0; i < value.length; i++) {
-                var tmp = String.fromCharCode(value[i])
-                if (tmp == '+') {
-                  flag = true
-                }
-                if (flag && result.length < 6 && tmp != '+') {
-                  result += tmp
-                }
+      accessoryTFs: false,
+      param: 9600,
+      allowEdit: true,
+      result1: '00',
+    }
+  },
+  activated() {
+    if (this.$route.query.allowEdit == 1) {
+      this.allowEdit = false
+    } else {
+      this.allowEdit = true
+    }
+    this.deptBudgetList1.warehouseName = this.$route.query.warehouseName
+    this.deptBudgetList1.binNumber = this.$route.query.binNumber
+    this.getList()
+    this.dataList.id = this.$route.query.id
+    this.dataList.grossWeight = Math.round(this.$route.query.grossWeight * 1000)
+    this.dataList.contractNo = this.$route.query.contractNo
+    this.dataList.baseId = this.$route.query.baseId
+    this.dataList.positionId = this.$route.query.positionId
+    this.dataList.warehouseName = this.$route.query.warehouseName
+    this.dataList.binNumber = this.$route.query.binNumber
+    this.dataList.tare = Math.round(this.$route.query.tare * 1000)
+    this.dataList.netWeight = Math.round(this.$route.query.netWeight * 1000)
+    this.dataList.grade = this.$route.query.grade
+    this.dataList.agent = this.$route.query.agent
+    this.dataList.carNo = this.$route.query.carNo
+    this.dataList.inOutDate = this.$route.query.inOutDate
+    this.dataList.contractNo = this.$route.query.contractNo
+    this.dataList.inOutType = this.$route.query.inOutType
+    this.dataList.compId = this.$route.query.compId
+    this.dataList.goodsName = this.$route.query.goodsName
+    this.dataList.goodsNameKey = Number(this.$route.query.goodsNameKey)
+    this.dataList.inOutFlag = this.$route.inOutFlag
+    this.dataList.inOutTypeKey = Number(this.$route.query.inOutTypeKey)
+    this.dataList.statusFlag = this.$route.statusFlag
+    this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
+    console.log(this.dataList)
+    getReceiptTaskNo({
+      flag: 1,
+      warehouseName: this.deptBudgetList.warehouseName,
+      agentKey: localStorage.getItem('ws-pf_userId'),
+    })
+      .toPromise()
+      .then((response) => {
+        this.deptBudgetList2 = response
+      })
+  },
+  methods: {
+    async closePort() {
+      console.log('closePort')
+      this.reader.cancel()
+    },
+    async openPort() {
+      console.log('openPort', navigator)
+      if ('serial' in navigator) {
+        // The Web Serial API is supported.
+        console.log('the Web Serial API is supported.')
+        console.log(this.param)
+        const port = await navigator.serial.requestPort()
+        await port.open({
+          baudRate: this.param,
+        }) // set baud rate
+        this.reader = port.readable.getReader()
+        // 监听来自串行设备的数据
+        while (true) {
+          const { value, done } = await this.reader.read()
+          // console.log("value",value);
+          if (done) {
+            // 允许稍后关闭串口。
+            this.reader.releaseLock()
+            break
+          }
+          var result = ''
+          //2。获取16进制字符串
+          // var receData = HexConvert.ByteToString(value);
+          // console.log("receData",receData);
+          var flag = false
+          var flag1 = false
+          // for (var i = 0; i < value.length; i++) {
+          //   var tmp = String.fromCharCode(value[i])
+          //   if (tmp == '+') {
+          //     flag = true
+          //   }
+          //   if (flag && result.length < 6 && tmp != '+') {
+          //     result += tmp
+          //   }
+          // }
+          // if(parseInt(result)){
+          //     this.dataList.grossWeight = parseInt(result)
+          // }
+          if (
+            this.deptBudgetList1.warehouseName &&
+            (this.deptBudgetList.warehouseName == '山东诸城迈饶库' ||
+              this.deptBudgetList1.warehouseName == '克东千红库' ||
+              this.deptBudgetList1.warehouseName == '鲅鱼圈祥腾库' ||
+              this.deptBudgetList1.warehouseName == '哈尔滨依兰库')
+          ) {
+            for (var i = 0; i < value.length; i++) {
+              var tmp = String.fromCharCode(value[i])
+              if (tmp == '+') {
+                flag = true
               }
-              if (parseInt(result) || parseInt(result) == 0) {
-                this.dataList.grossWeight = parseInt(result)
+              if (flag && result.length < 6 && tmp != '+') {
+                result += tmp
               }
             }
-            else if (this.deptBudgetList1.warehouseName && (this.deptBudgetList1.warehouseName == '顺诚粮库'||this.deptBudgetList1.warehouseName == '鲅鱼圈金信库')) {
-              for (var i = value.length - 1; i >= 0; i--) {
-                var tmp = String.fromCharCode(value[i])
-                console.log(tmp)
-                if (String.fromCharCode(value[0]) == '.') {
-                  flag = true
-                }
-                if (flag && result.length < 9 && tmp != '='&& tmp != '.') {
-                  result += tmp
-                }
+            if (parseInt(result) || parseInt(result) == 0) {
+              this.dataList.grossWeight = parseInt(result)
+            }
+          } else if (
+            this.deptBudgetList1.warehouseName &&
+            (this.deptBudgetList1.warehouseName == '顺诚粮库' ||
+              this.deptBudgetList1.warehouseName == '鲅鱼圈金信库')
+          ) {
+            for (var i = value.length - 1; i >= 0; i--) {
+              var tmp = String.fromCharCode(value[i])
+              console.log(tmp)
+              if (String.fromCharCode(value[0]) == '.') {
+                flag = true
               }
-              if (parseInt(result) || parseInt(result) == 0) {
-                this.dataList.grossWeight = parseInt(result)
+              if (flag && result.length < 9 && tmp != '=' && tmp != '.') {
+                result += tmp
               }
             }
-            else {
-              for (var i = 0; i < value.length; i++) {
-                var tmp = String.fromCharCode(value[i])
+            if (parseInt(result) || parseInt(result) == 0) {
+              this.dataList.grossWeight = parseInt(result)
+            }
+          } else {
+            for (var i = 0; i < value.length; i++) {
+              var tmp = String.fromCharCode(value[i])
 
-                if ((value[0] != 49 && value[0] != 2)) {
-                  if ((value[value.length - 1] == 48 && value[value.length - 2] == 48)) {
-                    flag1 = true
-                  } else {
-                    break
-                  }
-                }
-                if (tmp == String.fromCharCode(32)) {
-                  flag = true
-                }
-                if (flag && result.length < 7 && tmp != String.fromCharCode(32) && !(value[value.length - 1] == 48 &&
-                    value[value.length - 2] == 48)) {
-                  result += tmp
+              if (value[0] != 49 && value[0] != 2) {
+                if (
+                  value[value.length - 1] == 48 &&
+                  value[value.length - 2] == 48
+                ) {
+                  flag1 = true
+                } else {
+                  break
                 }
-                if (flag1 && tmp != String.fromCharCode(32)) {
-                  if ((value[value.length - 1] == 48 && value[value.length - 2] == 48)) {
-                    if (i == 0) {
-                      this.result1 = tmp + '0'
-                    }
+              }
+              if (tmp == String.fromCharCode(32)) {
+                flag = true
+              }
+              if (
+                flag &&
+                result.length < 7 &&
+                tmp != String.fromCharCode(32) &&
+                !(
+                  value[value.length - 1] == 48 && value[value.length - 2] == 48
+                )
+              ) {
+                result += tmp
+              }
+              if (flag1 && tmp != String.fromCharCode(32)) {
+                if (
+                  value[value.length - 1] == 48 &&
+                  value[value.length - 2] == 48
+                ) {
+                  if (i == 0) {
+                    this.result1 = tmp + '0'
                   }
                 }
               }
-              if (parseInt(result) || parseInt(result) == 0) {
-                this.dataList.grossWeight = parseInt(result + this.result1)
-              }
             }
-            // setTimeout(1000)
-            // value 是一个 Uint8Array
-          }
-          await port.close();
-        } else {
-          console.log('the Web Serial API is not supported.', navigator);
-        }
-      },
-      pureweight(status) {
-        console.log(this.deptBudgetList)
-        if (this.deptBudgetList.netWeight && this.deptBudgetList.tidalGrainWater && this.deptBudgetList
-          .solidGrainWater && this.deptBudgetList.buckleWeightRatio) {
-          this.deptBudgetList.pureWeight = (this.deptBudgetList.netWeight * (100 - (this.deptBudgetList
-            .tidalGrainWater - this.deptBudgetList.solidGrainWater) * this.deptBudgetList.buckleWeightRatio)) / 100
-        }
-      },
-      uploadSuccessHandle1(res) {
-        this.dataList.addressUrl = res.url
-      },
-      //返回按钮
-      revert() {
-        this.$router.go(-1)
-      },
-      dataFilter(val) {
-        // console.log(val,"名")
-        this.deptBudgetList.staffList = val
-        if (val) {
-          //val存在
-          this.options = this.staffList.filter((item) => {
-            if (
-              !!~item.staffName.indexOf(val) ||
-              !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
-            ) {
-              return true
+            if (parseInt(result) || parseInt(result) == 0) {
+              this.dataList.grossWeight = parseInt(result + this.result1)
             }
-          })
-        } else {
-          //val为空时,还原数组
-          this.options = this.staffList
-        }
-      },
-
-      selectstaff(e) {
-        for (var i = 0; i < this.staffList.length; i++) {
-          if (this.staffList[i].staffName == e) {
-            this.deptBudgetList.personChargeKey = this.staffList[i].staffId
           }
+          // setTimeout(1000)
+          // value 是一个 Uint8Array
         }
-      },
-      carChange(e) {
-        for (let i = 0; i < this.tranCarInfoList.length; i++) {
-          if (this.tranCarInfoList[i].carNo == this.deptBudgetList.carNo) {
-            this.deptBudgetList.tranCarNo = this.tranCarInfoList[i].tranCarNo
-            this.deptBudgetList.carId = this.tranCarInfoList[i].id
+        await port.close()
+      } else {
+        console.log('the Web Serial API is not supported.', navigator)
+      }
+    },
+    pureweight(status) {
+      console.log(this.deptBudgetList)
+      if (
+        this.deptBudgetList.netWeight &&
+        this.deptBudgetList.tidalGrainWater &&
+        this.deptBudgetList.solidGrainWater &&
+        this.deptBudgetList.buckleWeightRatio
+      ) {
+        this.deptBudgetList.pureWeight =
+          (this.deptBudgetList.netWeight *
+            (100 -
+              (this.deptBudgetList.tidalGrainWater -
+                this.deptBudgetList.solidGrainWater) *
+                this.deptBudgetList.buckleWeightRatio)) /
+          100
+      }
+    },
+    uploadSuccessHandle1(res) {
+      this.dataList.addressUrl = res.url
+    },
+    //返回按钮
+    revert() {
+      this.$router.go(-1)
+    },
+    dataFilter(val) {
+      // console.log(val,"名")
+      this.deptBudgetList.staffList = val
+      if (val) {
+        //val存在
+        this.options = this.staffList.filter((item) => {
+          if (
+            !!~item.staffName.indexOf(val) ||
+            !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
+          ) {
+            return true
           }
+        })
+      } else {
+        //val为空时,还原数组
+        this.options = this.staffList
+      }
+    },
+
+    selectstaff(e) {
+      for (var i = 0; i < this.staffList.length; i++) {
+        if (this.staffList[i].staffName == e) {
+          this.deptBudgetList.personChargeKey = this.staffList[i].staffId
         }
-      },
-      //暂存按钮
-      temporaryStorage() {
-        this.$confirm(`暂存后可在待完成页面查看,确定暂存`, {
-            cancelButtonText: '取消',
-            confirmButtonText: '确定',
-            type: 'warning',
-          })
-          .then(() => {
-            this.$refs.dataList.validate((valid) => {
-              if (valid) {
-                this.dataList.compId = localStorage.getItem('ws-pf_compId')
-                this.dataList.inOutFlag = 1
-                this.dataList.statusFlag = 1
-                addstorageputList(this.dataList)
-                  .toPromise()
-                  .then((response) => {
-                    this.$message.success('暂存成功')
-                    this.$router.push({
-                      path: 'warehouseManagementList'
-                    })
+      }
+    },
+    carChange(e) {
+      for (let i = 0; i < this.tranCarInfoList.length; i++) {
+        if (this.tranCarInfoList[i].carNo == this.deptBudgetList.carNo) {
+          this.deptBudgetList.tranCarNo = this.tranCarInfoList[i].tranCarNo
+          this.deptBudgetList.carId = this.tranCarInfoList[i].id
+        }
+      }
+    },
+    //暂存按钮
+    temporaryStorage() {
+      this.$confirm(`暂存后可在待完成页面查看,确定暂存`, {
+        cancelButtonText: '取消',
+        confirmButtonText: '确定',
+        type: 'warning',
+      })
+        .then(() => {
+          this.$refs.dataList.validate((valid) => {
+            if (valid) {
+              this.dataList.compId = localStorage.getItem('ws-pf_compId')
+              this.dataList.inOutFlag = 1
+              this.dataList.statusFlag = 1
+              addstorageputList(this.dataList)
+                .toPromise()
+                .then((response) => {
+                  this.$message.success('暂存成功')
+                  this.$router.push({
+                    path: 'warehouseManagementList',
                   })
-              } else {
-                EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
-                return false
-              }
-            })
-          })
-          .catch(() => {
-            return false
+                })
+            } else {
+              EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+              return false
+            }
           })
-      },
-      contractNoChange(e) {
-        for (let i = 0; i < this.deptBudgetList2.length; i++) {
-          if (this.deptBudgetList2[i].inOutTaskNo == e) {
-            var data=this.deptBudgetList2[i]
-            this.dataList.contractNo = this.deptBudgetList2[i].contractNo
-          }
+        })
+        .catch(() => {
+          return false
+        })
+    },
+    contractNoChange(e) {
+      for (let i = 0; i < this.deptBudgetList2.length; i++) {
+        if (this.deptBudgetList2[i].inOutTaskNo == e) {
+          var data = this.deptBudgetList2[i]
+          this.dataList.contractNo = this.deptBudgetList2[i].contractNo
         }
+      }
 
-        for (var i = 0; i < this.outContractNo.length; i++) {
-          if (this.outContractNo[i].contractNo == this.dataList.contractNo) {
-            if (this.outContractNo[i].inOutType == '销售出库') {
-              this.dataList.tips='买方'+this.outContractNo[i].buyer+ '( '+this.outContractNo[i].unitContractPrice+'元/吨)'
-              this.dataList.inOutTypeKey = 1
-            } else if (this.outContractNo[i].inOutType == '移库出库') {
-              if(this.outContractNo[i].unitContractPrice){
-                   this.dataList.tips='入货库'+data.receiveWarehouse+ '( '+this.outContractNo[i].unitContractPrice+'元/吨)'
-              }
-              else{
-                this.dataList.tips='入货库'+data.receiveWarehouse
-              }
-              this.dataList.inOutTypeKey = 3
-            } else if (this.outContractNo[i].inOutType == '暂存入库') {
-              this.dataList.inOutTypeKey = 4
-            } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
-              this.dataList.inOutTypeKey = 5
-            } else if (this.outContractNo[i].inOutType == '采购出库') {
-              this.dataList.inOutTypeKey = 6
-            }
-            this.dataList.goodsName = this.outContractNo[i].goodsName
-            this.dataList.goodsNameKey = this.outContractNo[i].goodsNameKey
-            if (this.outContractNo[i].deliverType == '1') {
-              this.carstatus = true
+      for (var i = 0; i < this.outContractNo.length; i++) {
+        if (this.outContractNo[i].contractNo == this.dataList.contractNo) {
+          if (this.outContractNo[i].inOutType == '销售出库') {
+            this.dataList.tips =
+              '买方' +
+              this.outContractNo[i].buyer +
+              '( ' +
+              this.outContractNo[i].unitContractPrice +
+              '元/吨)'
+            this.dataList.inOutTypeKey = 1
+          } else if (this.outContractNo[i].inOutType == '移库出库') {
+            if (this.outContractNo[i].unitContractPrice) {
+              this.dataList.tips =
+                '入货库' +
+                data.receiveWarehouse +
+                '( ' +
+                this.outContractNo[i].unitContractPrice +
+                '元/吨)'
             } else {
-              this.carstatus = false
-            }
-            if (this.outContractNo[i].tranCarInfoList) {
-              this.options2 = this.outContractNo[i].tranCarInfoList
-              this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
-              // this.carstatus = true
+              this.dataList.tips = '入货库' + data.receiveWarehouse
             }
+            this.dataList.inOutTypeKey = 3
+          } else if (this.outContractNo[i].inOutType == '暂存入库') {
+            this.dataList.inOutTypeKey = 4
+          } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
+            this.dataList.inOutTypeKey = 5
+          } else if (this.outContractNo[i].inOutType == '采购出库') {
+            this.dataList.inOutTypeKey = 6
           }
-        }
-      },
-      contractNoChange1(e) {
-        for (var i = 0; i < this.outContractNo.length; i++) {
-          if (this.outContractNo[i].contractNo == e) {
-            if (this.outContractNo[i].inOutType == '销售出库') {
-              this.deptBudgetList.inOutTypeKey = 1
-            } else if (this.outContractNo[i].inOutType == '移库出库') {
-              this.deptBudgetList.inOutTypeKey = 3
-            } else if (this.outContractNo[i].inOutType == '暂存入库') {
-              this.deptBudgetList.inOutTypeKey = 4
-            } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
-              this.deptBudgetList.inOutTypeKey = 5
-            } else if (this.detailData.inOutType == '采购出库') {
-              this.deptBudgetList.inOutTypeKey = 6
-            }
-            this.dataList.goodsName = this.outContractNo[i].goodsName
-            this.dataList.goodsNameKey = this.outContractNo[i].goodsNameKey
-            if (this.outContractNo[i].deliverType == '1') {
-              this.carstatus = true
-            } else {
-              this.carstatus = false
-            }
-            if (this.outContractNo[i].tranCarInfoList) {
-              this.options2 = this.outContractNo[i].tranCarInfoList
-              this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
-              // this.carstatus = true
-            }
+          this.dataList.goodsName = this.outContractNo[i].goodsName
+          this.dataList.goodsNameKey = this.outContractNo[i].goodsNameKey
+          if (this.outContractNo[i].deliverType == '1') {
+            this.carstatus = true
+          } else {
+            this.carstatus = false
+          }
+          if (this.outContractNo[i].tranCarInfoList) {
+            this.options2 = this.outContractNo[i].tranCarInfoList
+            this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
+            // this.carstatus = true
           }
         }
-      },
-      typeChange(e) {
-
-      },
-      //提交按钮
-      submit() {
-        if (!this.dataList.goodsName) {
-          this.$message({
-            message: '货名不能为空',
-            type: 'warning',
-          })
-          return
-        }
-        if (!this.dataList.grossWeight) {
-          this.$message({
-            message: '毛重不能为空',
-            type: 'warning',
-          })
-          return
+      }
+    },
+    contractNoChange1(e) {
+      for (var i = 0; i < this.outContractNo.length; i++) {
+        if (this.outContractNo[i].contractNo == e) {
+          if (this.outContractNo[i].inOutType == '销售出库') {
+            this.deptBudgetList.inOutTypeKey = 1
+          } else if (this.outContractNo[i].inOutType == '移库出库') {
+            this.deptBudgetList.inOutTypeKey = 3
+          } else if (this.outContractNo[i].inOutType == '暂存入库') {
+            this.deptBudgetList.inOutTypeKey = 4
+          } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
+            this.deptBudgetList.inOutTypeKey = 5
+          } else if (this.detailData.inOutType == '采购出库') {
+            this.deptBudgetList.inOutTypeKey = 6
+          }
+          this.dataList.goodsName = this.outContractNo[i].goodsName
+          this.dataList.goodsNameKey = this.outContractNo[i].goodsNameKey
+          if (this.outContractNo[i].deliverType == '1') {
+            this.carstatus = true
+          } else {
+            this.carstatus = false
+          }
+          if (this.outContractNo[i].tranCarInfoList) {
+            this.options2 = this.outContractNo[i].tranCarInfoList
+            this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
+            // this.carstatus = true
+          }
         }
-        if (
-          this.dataList.grossWeight <= 0 ||
-          this.dataList.grossWeight > 200000 ||
-          (String(this.dataList.grossWeight).indexOf('.') != -1 &&
-            String(this.dataList.grossWeight).length -
+      }
+    },
+    typeChange(e) {},
+    //提交按钮
+    submit() {
+      if (!this.dataList.goodsName) {
+        this.$message({
+          message: '货名不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.dataList.grossWeight) {
+        this.$message({
+          message: '毛重不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.dataList.grossWeight <= 0 ||
+        this.dataList.grossWeight > 200000 ||
+        (String(this.dataList.grossWeight).indexOf('.') != -1 &&
+          String(this.dataList.grossWeight).length -
             (String(this.dataList.grossWeight).indexOf('.') + 1) >
             3)
-        ) {
-          this.$message({
-            message: '毛重输入错误',
-            type: 'warning',
-          })
-          return
-        }
-        if (
-          this.dataList.tare < 0 ||
-          this.dataList.tare > 200000 ||
-          (String(this.dataList.tare).indexOf('.') != -1 &&
-            String(this.dataList.tare).length -
+      ) {
+        this.$message({
+          message: '毛重输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.dataList.tare < 0 ||
+        this.dataList.tare > 200000 ||
+        (String(this.dataList.tare).indexOf('.') != -1 &&
+          String(this.dataList.tare).length -
             (String(this.dataList.tare).indexOf('.') + 1) >
             3)
-        ) {
-          this.$message({
-            message: '皮重输入错误',
-            type: 'warning',
-          })
-          return
-        }
-        if (this.dataList.type == '潮粮' && !this.dataList.buckleWeightRatio) {
-          this.$message({
-            message: '扣重比不能为空',
-            type: 'warning'
-          })
-          return
-        }
-        if (
-          this.dataList.type == '潮粮' && this.dataList.buckleWeightRatio < 0 ||
-          this.dataList.type == '潮粮' && this.dataList.buckleWeightRatio > 3 ||
-          (this.dataList.type == '潮粮' && String(this.dataList.buckleWeightRatio).indexOf('.') != -1 &&
-            String(this.dataList.buckleWeightRatio).length -
+      ) {
+        this.$message({
+          message: '皮重输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.dataList.type == '潮粮' && !this.dataList.buckleWeightRatio) {
+        this.$message({
+          message: '扣重比不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        (this.dataList.type == '潮粮' && this.dataList.buckleWeightRatio < 0) ||
+        (this.dataList.type == '潮粮' && this.dataList.buckleWeightRatio > 3) ||
+        (this.dataList.type == '潮粮' &&
+          String(this.dataList.buckleWeightRatio).indexOf('.') != -1 &&
+          String(this.dataList.buckleWeightRatio).length -
             (String(this.dataList.buckleWeightRatio).indexOf('.') + 1) >
             2)
-        ) {
-          this.$message({
-            message: '扣重比输入错误',
-            type: 'warning'
-          })
-          return
-        }
-        if (this.dataList.type == '潮粮' && !this.dataList.tidalGrainWater) {
-          this.$message({
-            message: '潮粮水分不能为空',
-            type: 'warning'
-          })
-          return
-        }
-        if (
-          this.dataList.type == '潮粮' && this.dataList.tidalGrainWater < 1 ||
-          this.dataList.type == '潮粮' && this.dataList.tidalGrainWater > 40 ||
-          (this.dataList.type == '潮粮' && String(this.dataList.tidalGrainWater).indexOf('.') != -1 &&
-            String(this.dataList.tidalGrainWater).length -
+      ) {
+        this.$message({
+          message: '扣重比输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.dataList.type == '潮粮' && !this.dataList.tidalGrainWater) {
+        this.$message({
+          message: '潮粮水分不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        (this.dataList.type == '潮粮' && this.dataList.tidalGrainWater < 1) ||
+        (this.dataList.type == '潮粮' && this.dataList.tidalGrainWater > 40) ||
+        (this.dataList.type == '潮粮' &&
+          String(this.dataList.tidalGrainWater).indexOf('.') != -1 &&
+          String(this.dataList.tidalGrainWater).length -
             (String(this.dataList.tidalGrainWater).indexOf('.') + 1) >
             2)
-        ) {
-          this.$message({
-            message: '潮粮水分输入错误',
-            type: 'warning'
-          })
-          return
-        }
-        if (this.dataList.type == '潮粮' && !this.dataList.solidGrainWater) {
-          this.$message({
-            message: '干粮水分不能为空',
-            type: 'warning'
-          })
-          return
-        }
-        if (
-          this.dataList.type == '潮粮' && this.dataList.solidGrainWater < 1 ||
-          this.dataList.type == '潮粮' && this.dataList.solidGrainWater > 40 ||
-          (this.dataList.type == '潮粮' && String(this.dataList.solidGrainWater).indexOf('.') != -1 &&
-            String(this.dataList.solidGrainWater).length -
+      ) {
+        this.$message({
+          message: '潮粮水分输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.dataList.type == '潮粮' && !this.dataList.solidGrainWater) {
+        this.$message({
+          message: '干粮水分不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        (this.dataList.type == '潮粮' && this.dataList.solidGrainWater < 1) ||
+        (this.dataList.type == '潮粮' && this.dataList.solidGrainWater > 40) ||
+        (this.dataList.type == '潮粮' &&
+          String(this.dataList.solidGrainWater).indexOf('.') != -1 &&
+          String(this.dataList.solidGrainWater).length -
             (String(this.dataList.solidGrainWater).indexOf('.') + 1) >
             1)
+      ) {
+        this.$message({
+          message: '干粮水分输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.dataList.agent) {
+        this.$message({
+          message: '经办人不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.dataList.agent.length < 2 || this.dataList.agent.length > 10) {
+        this.$message({
+          message: '经办人输入有误',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.dataList.grade) {
+        this.$message({
+          message: '品级不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.dataList.inOutDate) {
+        this.$message({
+          message: '入库日期不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.dataList.inOutType) {
+        this.$message({
+          message: '出库类型不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.dataList.carNo) {
+        this.$message({
+          message: '车牌号不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.dataList.carNo.length > 7) {
+        this.$message({
+          message: '车牌号输入错误,请输入7个字符之内',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.dataList.boxNo && this.dataList.boxNo.length > 20) {
+        this.$message({
+          message: '箱号-1输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.dataList.boxNoOther && this.dataList.boxNoOther.length > 20) {
+        this.$message({
+          message: '箱号-2输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.dataList.titleNo && this.dataList.titleNo.length > 20) {
+        this.$message({
+          message: '封号-1输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.dataList.titleNoOther &&
+        this.dataList.titleNoOther.length > 20
+      ) {
+        this.$message({
+          message: '封号-2输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.dataList.contractNo) {
+        this.$message({
+          message: '合同编号不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      // if (
+      //   this.dataList.contractNo.length < 6 ||
+      //   this.dataList.contractNo.length > 20
+      // ) {
+      //   this.$message({
+      //     message: '合同编号长度不符合要求,请输入6-20个字符之内',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+
+      if (this.dataList.netWeight > this.$route.query.capacity) {
+        this.$message({
+          message: '入库量大于该仓库容量!',
+          type: 'warning',
+        })
+        return
+      }
+      //自检员
+      if (this.dataList.warehouseInOutDetail.qualityInspector) {
+        if (
+          this.dataList.warehouseInOutDetail.qualityInspector.length < 2 ||
+          this.dataList.warehouseInOutDetail.qualityInspector.length > 10
         ) {
           this.$message({
-            message: '干粮水分输入错误',
-            type: 'warning'
-          })
-          return
-        }
-        if (!this.dataList.agent) {
-          this.$message({
-            message: '经办人不能为空',
+            message: '质检员姓名长度错误!',
             type: 'warning',
           })
           return
         }
-        if (this.dataList.agent.length < 2 || this.dataList.agent.length > 10) {
+      }
+      if (this.dataList.warehouseInOutDetail.waterContent) {
+        if (isNaN(this.dataList.warehouseInOutDetail.waterContent)) {
           this.$message({
-            message: '经办人输入有误',
+            message: '水分(%)非数字!',
             type: 'warning',
           })
           return
         }
-        if (!this.dataList.grade) {
+        if (
+          this.dataList.warehouseInOutDetail.waterContent < 1 ||
+          this.dataList.warehouseInOutDetail.waterContent > 40 ||
+          (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.dataList.warehouseInOutDetail.waterContent).length -
+              (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
+                '.'
+              ) +
+                1) >
+              2)
+        ) {
           this.$message({
-            message: '品级不能为空!',
+            message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (!this.dataList.inOutDate) {
+      }
+
+      //杂质
+      if (this.dataList.warehouseInOutDetail.impurity) {
+        if (isNaN(this.dataList.warehouseInOutDetail.impurity)) {
           this.$message({
-            message: '入库日期不能为空!',
+            message: '杂质(%)非数字!',
             type: 'warning',
           })
           return
         }
-        if (!this.dataList.inOutType) {
+        if (
+          this.dataList.warehouseInOutDetail.impurity < 1 ||
+          this.dataList.warehouseInOutDetail.impurity > 40 ||
+          (String(this.dataList.warehouseInOutDetail.impurity).indexOf('.') !=
+            -1 &&
+            String(this.dataList.warehouseInOutDetail.impurity).length -
+              (String(this.dataList.warehouseInOutDetail.impurity).indexOf(
+                '.'
+              ) +
+                1) >
+              2)
+        ) {
           this.$message({
-            message: '出库类型不能为空!',
+            message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (!this.dataList.carNo) {
+      }
+      //霉变
+      if (this.dataList.warehouseInOutDetail.mildewGrain) {
+        if (isNaN(this.dataList.warehouseInOutDetail.mildewGrain)) {
           this.$message({
-            message: '车牌号不能为空',
+            message: '霉变粒(%)非数字!',
             type: 'warning',
           })
           return
         }
-        if (this.dataList.carNo.length > 7) {
+        if (
+          this.dataList.warehouseInOutDetail.mildewGrain < 1 ||
+          this.dataList.warehouseInOutDetail.mildewGrain > 40 ||
+          (String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.dataList.warehouseInOutDetail.mildewGrain).length -
+              (String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
+                '.'
+              ) +
+                1) >
+              2)
+        ) {
           this.$message({
-            message: '车牌号输入错误,请输入7个字符之内',
+            message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (this.dataList.boxNo&&this.dataList.boxNo.length > 20) {
+      }
+
+      //热损伤
+      if (this.dataList.warehouseInOutDetail.jiaorenli) {
+        if (isNaN(this.dataList.warehouseInOutDetail.jiaorenli)) {
           this.$message({
-            message: '箱号-1输入错误',
+            message: '热损伤(%)非数字!',
             type: 'warning',
           })
           return
         }
-        if (this.dataList.boxNoOther&&this.dataList.boxNoOther.length > 20) {
+        if (
+          this.dataList.warehouseInOutDetail.jiaorenli < 1 ||
+          this.dataList.warehouseInOutDetail.jiaorenli > 40 ||
+          (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf('.') !=
+            -1 &&
+            String(this.dataList.warehouseInOutDetail.jiaorenli).length -
+              (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf(
+                '.'
+              ) +
+                1) >
+              2)
+        ) {
           this.$message({
-            message: '箱号-2输入错误',
+            message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (this.dataList.titleNo&&this.dataList.titleNo.length > 20) {
+      }
+
+      //不完善粒(%)
+      if (this.dataList.warehouseInOutDetail.imperfectGrain) {
+        if (isNaN(this.dataList.warehouseInOutDetail.imperfectGrain)) {
           this.$message({
-            message: '封号-1输入错误',
+            message: '不完善粒(%)非数字!',
             type: 'warning',
           })
           return
         }
-        if (this.dataList.titleNoOther&&this.dataList.titleNoOther.length > 20) {
+        if (
+          this.dataList.warehouseInOutDetail.imperfectGrain < 1 ||
+          this.dataList.warehouseInOutDetail.imperfectGrain > 40 ||
+          (String(this.dataList.warehouseInOutDetail.imperfectGrain).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.dataList.warehouseInOutDetail.imperfectGrain).length -
+              (String(
+                this.dataList.warehouseInOutDetail.imperfectGrain
+              ).indexOf('.') +
+                1) >
+              2)
+        ) {
           this.$message({
-            message: '封号-2输入错误',
+            message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (!this.dataList.contractNo) {
+      }
+      //容重
+      if (this.dataList.warehouseInOutDetail.bulkDensity) {
+        if (isNaN(this.dataList.warehouseInOutDetail.bulkDensity)) {
           this.$message({
-            message: '合同编号不能为空',
+            message: '容重(克/升)非数字!',
             type: 'warning',
           })
           return
         }
-        // if (
-        //   this.dataList.contractNo.length < 6 ||
-        //   this.dataList.contractNo.length > 20
-        // ) {
-        //   this.$message({
-        //     message: '合同编号长度不符合要求,请输入6-20个字符之内',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-
-        if (this.dataList.netWeight > this.$route.query.capacity) {
+        if (
+          (this.dataList.warehouseInOutDetail.bulkDensity &&
+            String(this.dataList.warehouseInOutDetail.bulkDensity).indexOf(
+              '.'
+            ) != -1 &&
+            String(this.dataList.warehouseInOutDetail.bulkDensity).length -
+              (String(this.dataList.warehouseInOutDetail.bulkDensity).indexOf(
+                '.'
+              ) +
+                1) >
+              2) ||
+          this.dataList.warehouseInOutDetail.bulkDensity > 1000 ||
+          this.dataList.warehouseInOutDetail.bulkDensity < 0
+        ) {
           this.$message({
-            message: '入库量大于该仓库容量!',
+            message: '容重输入错误',
             type: 'warning',
           })
           return
         }
-        //自检员
-        if (this.dataList.warehouseInOutDetail.qualityInspector) {
-          if (
-            this.dataList.warehouseInOutDetail.qualityInspector.length < 2 ||
-            this.dataList.warehouseInOutDetail.qualityInspector.length > 10
-          ) {
-            this.$message({
-              message: '质检员姓名长度错误!',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        if (this.dataList.warehouseInOutDetail.waterContent) {
-          if (isNaN(this.dataList.warehouseInOutDetail.waterContent)) {
-            this.$message({
-              message: '水分(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.dataList.warehouseInOutDetail.waterContent < 1 ||
-            this.dataList.warehouseInOutDetail.waterContent > 40 ||
-            (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.dataList.warehouseInOutDetail.waterContent).length -
-              (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
-                  '.'
-                ) +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-
-        //杂质
-        if (this.dataList.warehouseInOutDetail.impurity) {
-          if (isNaN(this.dataList.warehouseInOutDetail.impurity)) {
-            this.$message({
-              message: '杂质(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.dataList.warehouseInOutDetail.impurity < 1 ||
-            this.dataList.warehouseInOutDetail.impurity > 40 ||
-            (String(this.dataList.warehouseInOutDetail.impurity).indexOf('.') !=
-              -1 &&
-              String(this.dataList.warehouseInOutDetail.impurity).length -
-              (String(this.dataList.warehouseInOutDetail.impurity).indexOf(
-                  '.'
-                ) +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        //霉变
-        if (this.dataList.warehouseInOutDetail.mildewGrain) {
-          if (isNaN(this.dataList.warehouseInOutDetail.mildewGrain)) {
-            this.$message({
-              message: '霉变粒(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.dataList.warehouseInOutDetail.mildewGrain < 1 ||
-            this.dataList.warehouseInOutDetail.mildewGrain > 40 ||
-            (String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.dataList.warehouseInOutDetail.mildewGrain).length -
-              (String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
-                  '.'
-                ) +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-
-        //热损伤
-        if (this.dataList.warehouseInOutDetail.jiaorenli) {
-          if (isNaN(this.dataList.warehouseInOutDetail.jiaorenli)) {
-            this.$message({
-              message: '热损伤(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.dataList.warehouseInOutDetail.jiaorenli < 1 ||
-            this.dataList.warehouseInOutDetail.jiaorenli > 40 ||
-            (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf('.') !=
-              -1 &&
-              String(this.dataList.warehouseInOutDetail.jiaorenli).length -
-              (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf(
-                  '.'
-                ) +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-
-        //不完善粒(%)
-        if (this.dataList.warehouseInOutDetail.imperfectGrain) {
-          if (isNaN(this.dataList.warehouseInOutDetail.imperfectGrain)) {
-            this.$message({
-              message: '不完善粒(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.dataList.warehouseInOutDetail.imperfectGrain < 1 ||
-            this.dataList.warehouseInOutDetail.imperfectGrain > 40 ||
-            (String(this.dataList.warehouseInOutDetail.imperfectGrain).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.dataList.warehouseInOutDetail.imperfectGrain).length -
-              (String(
-                  this.dataList.warehouseInOutDetail.imperfectGrain
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        //容重
-        if (this.dataList.warehouseInOutDetail.bulkDensity) {
-          if (isNaN(this.dataList.warehouseInOutDetail.bulkDensity)) {
-            this.$message({
-              message: '容重(克/升)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            (this.dataList.warehouseInOutDetail.bulkDensity &&
-              String(this.dataList.warehouseInOutDetail.bulkDensity).indexOf('.') != -1 &&
-              String(this.dataList.warehouseInOutDetail.bulkDensity).length -
-              (String(this.dataList.warehouseInOutDetail.bulkDensity).indexOf('.') + 1) >
-              2) || this.dataList.warehouseInOutDetail.bulkDensity > 1000 || this.dataList.warehouseInOutDetail
-            .bulkDensity < 0
-          ) {
-            this.$message({
-              message: '容重输入错误',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        this.$confirm(`确定提交毛重检斤`, {
-            cancelButtonText: '取消',
-            confirmButtonText: '确定',
-            type: 'warning',
-          })
-          .then(() => {
-            this.$refs.dataList.validate((valid) => {
-              if (valid) {
-                this.dataList.compId = localStorage.getItem('ws-pf_compId')
-                this.dataList.secretaryWeigher = localStorage.getItem('ws-pf_staffName')
-                this.dataList.inOutFlag = 1
-                this.dataList.statusFlag = 3
-                this.dataList.grossWeight /= 1000
-                this.dataList.tare /= 1000
-                this.dataList.netWeight /= 1000
-                this.dataList.pureWeight /= 1000
-                this.dataList.deductionAmount *= 1000
-                this.dataList.deductionWeight /= 1000
-                addstorageputList(this.dataList)
-                  .toPromise()
-                  .then((response) => {
-                    if(this.reader){
-                        this.reader.cancel()
-                      }
-                    this.$message.success('提交成功')
-                    this.$confirm(`是否打印磅单`, {
-                        cancelButtonText: '取消',
-                        confirmButtonText: '确定',
-                        type: 'warning',
+      }
+      this.$confirm(`确定提交毛重检斤`, {
+        cancelButtonText: '取消',
+        confirmButtonText: '确定',
+        type: 'warning',
+      })
+        .then(() => {
+          this.$refs.dataList.validate((valid) => {
+            if (valid) {
+              this.dataList.compId = localStorage.getItem('ws-pf_compId')
+              this.dataList.secretaryWeigher =
+                localStorage.getItem('ws-pf_staffName')
+              this.dataList.inOutFlag = 1
+              this.dataList.statusFlag = 3
+              this.dataList.grossWeight /= 1000
+              this.dataList.tare /= 1000
+              this.dataList.netWeight /= 1000
+              this.dataList.pureWeight /= 1000
+              this.dataList.deductionAmount *= 1000
+              this.dataList.deductionWeight /= 1000
+              addstorageputList(this.dataList)
+                .toPromise()
+                .then((response) => {
+                  if (this.reader) {
+                    this.reader.cancel()
+                  }
+                  this.$message.success('提交成功')
+                  this.$confirm(`是否打印磅单`, {
+                    cancelButtonText: '取消',
+                    confirmButtonText: '确定',
+                    type: 'warning',
+                  })
+                    .then(() => {
+                      getPrintInfo({
+                        id: this.dataList.id,
                       })
-                      .then(() => {
-                        getPrintInfo({
-                            id: this.dataList.id
-                          })
-                          .toPromise()
-                          .then((response) => {
-                            window.open('../../../../static/weightCheckInOut.html?type=2&tableData=' + JSON
-                              .stringify(response))
-                          })
-                        this.$router.push({
-                          path: 'warehouseManagementList'
+                        .toPromise()
+                        .then((response) => {
+                          window.open(
+                            '../../../../static/weightCheckInOut.html?type=2&tableData=' +
+                              JSON.stringify(response)
+                          )
                         })
+                      this.$router.push({
+                        path: 'warehouseManagementList',
                       })
-                      .catch(() => {
-                        return false
-                      })
-                  }).catch((response) => {
-                    this.dataList.grossWeight = Math.round(this.dataList.grossWeight*1000)
-                    this.dataList.tare = Math.round(this.dataList.tare*1000)
-                    this.dataList.netWeight = Math.round(this.dataList.netWeight*1000)
-                    this.dataList.pureWeight = Math.round(this.dataList.pureWeight*1000)
-                    this.dataList.deductionAmount = Math.round(this.dataList.deductionAmount/1000)
-                    this.dataList.deductionWeight = Math.round(this.dataList.deductionWeight*1000)
                     })
-              } else {
-                EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
-                return false
-              }
-            })
-          })
-          .catch(() => {
-            return false
-          })
-
-      },
-      tarechange(e) {
-        if (this.dataList.grossWeight && this.dataList.tare) {
-          this.dataList.netWeight = Number(
-            this.dataList.grossWeight - this.dataList.tare
-          ).toFixed(2)
-        }
-      },
-      grossWeightchange(e) {
-        if (this.dataList.grossWeight && this.dataList.tare) {
-          this.dataList.netWeight = Number(
-            this.dataList.grossWeight - this.dataList.tare
-          ).toFixed(2)
-        }
-      },
-      selectgoodsName(e) {
-        for (var i = 0; i < this.goodnameList.length; i++) {
-          if (this.goodnameList[i].constValue == e) {
-            this.dataList.goodsNameKey = this.goodnameList[i].constKey
-            if(e=='玉米(潮粮)'){
-              this.dataList.type='潮粮'
-            }else{
-              this.dataList.type='干粮'
+                    .catch(() => {
+                      return false
+                    })
+                })
+                .catch((response) => {
+                  this.dataList.grossWeight = Math.round(
+                    this.dataList.grossWeight * 1000
+                  )
+                  this.dataList.tare = Math.round(this.dataList.tare * 1000)
+                  this.dataList.netWeight = Math.round(
+                    this.dataList.netWeight * 1000
+                  )
+                  this.dataList.pureWeight = Math.round(
+                    this.dataList.pureWeight * 1000
+                  )
+                  this.dataList.deductionAmount = Math.round(
+                    this.dataList.deductionAmount / 1000
+                  )
+                  this.dataList.deductionWeight = Math.round(
+                    this.dataList.deductionWeight * 1000
+                  )
+                })
+            } else {
+              EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+              return false
             }
+          })
+        })
+        .catch(() => {
+          return false
+        })
+    },
+    tarechange(e) {
+      if (this.dataList.grossWeight && this.dataList.tare) {
+        this.dataList.netWeight = Number(
+          this.dataList.grossWeight - this.dataList.tare
+        ).toFixed(2)
+      }
+    },
+    grossWeightchange(e) {
+      if (this.dataList.grossWeight && this.dataList.tare) {
+        this.dataList.netWeight = Number(
+          this.dataList.grossWeight - this.dataList.tare
+        ).toFixed(2)
+      }
+    },
+    selectgoodsName(e) {
+      for (var i = 0; i < this.goodnameList.length; i++) {
+        if (this.goodnameList[i].constValue == e) {
+          this.dataList.goodsNameKey = this.goodnameList[i].constKey
+          if (e == '玉米(潮粮)') {
+            this.dataList.type = '潮粮'
+          } else {
+            this.dataList.type = '干粮'
           }
         }
-      },
-      selectpackingMethod(e) {
-        for (var i = 0; i < this.packtypeList.length; i++) {
-          if (this.packtypeList[i].constValue == e) {
-            this.dataList.packingMethodKey = this.packtypeList[i].constKey
-          }
+      }
+    },
+    selectpackingMethod(e) {
+      for (var i = 0; i < this.packtypeList.length; i++) {
+        if (this.packtypeList[i].constValue == e) {
+          this.dataList.packingMethodKey = this.packtypeList[i].constKey
         }
-      },
-      selectstorageType(e) {
-        for (var i = 0; i < this.deliveryType.length; i++) {
-          if (this.deliveryType[i].constValue == e) {
-            this.dataList.inOutTypeKey = this.deliveryType[i].constKey
-          }
+      }
+    },
+    selectstorageType(e) {
+      for (var i = 0; i < this.deliveryType.length; i++) {
+        if (this.deliveryType[i].constValue == e) {
+          this.dataList.inOutTypeKey = this.deliveryType[i].constKey
         }
-      },
-      handleClose() {
-        this.accessoryTFs = false
-      },
-      handleSizeChange(val) {
-        console.log(`每页 ${val} 条`)
-        this.pageSize = val
-        this.getList()
-      },
-      handleCurrentChange(val) {
-        this.currentPage = val
-        console.log(`当前页: ${val}`)
-        this.getList()
-      },
-      getList() {
-        // 货名
+      }
+    },
+    handleClose() {
+      this.accessoryTFs = false
+    },
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`)
+      this.pageSize = val
+      this.getList()
+    },
+    handleCurrentChange(val) {
+      this.currentPage = val
+      console.log(`当前页: ${val}`)
+      this.getList()
+    },
+    getList() {
+      // 货名
+      pullDown({
+        constId: 'CON2',
+      })
+        .toPromise()
+        .then((response) => {
+          this.goodnameList = response
+        })
+      // 品级
+      pullDown({
+        constId: 'CON3',
+      })
+        .toPromise()
+        .then((response) => {
+          this.gradeList = response
+        })
+      // 类型
+      if (this.$route.query.warehouseType == '1') {
         pullDown({
-            constId: 'CON2'
-          })
+          constId: 'CON6',
+        })
           .toPromise()
           .then((response) => {
-            this.goodnameList = response
+            this.deliveryType = response
           })
-        // 品级
+      } else if (this.$route.query.warehouseType == '2') {
+        //临时仓库出库类型
         pullDown({
-            constId: 'CON3'
-          })
+          constId: 'WARE2',
+        })
           .toPromise()
           .then((response) => {
-            this.gradeList = response
+            this.deliveryType = response
           })
-        // 类型
-        if (this.$route.query.warehouseType == '1') {
-          pullDown({
-              constId: 'CON6'
-            })
-            .toPromise()
-            .then((response) => {
-              this.deliveryType = response
-            })
-        } else if (this.$route.query.warehouseType == '2') {
-          //临时仓库出库类型
-          pullDown({
-              constId: 'WARE2'
-            })
-            .toPromise()
-            .then((response) => {
-              this.deliveryType = response
-            })
-        }
-        //合同编号
-        xialaNo({
-            compId: localStorage.getItem('ws-pf_compId'),
-            flag: 5
-          })
-          .toPromise()
-          .then((response) => {
-            this.outContractNo = response
-            for (let i = 0; i < response.length; i++) {
-              if (this.dataList.contractNo == response[i].contractNo) {
-                if (response[i].deliverType == '1') {
-                  this.carstatus = true
-                } else {
-                  this.carstatus = false
-                }
+      }
+      //合同编号
+      xialaNo({
+        compId: localStorage.getItem('ws-pf_compId'),
+        flag: 5,
+      })
+        .toPromise()
+        .then((response) => {
+          this.outContractNo = response
+          for (let i = 0; i < response.length; i++) {
+            if (this.dataList.contractNo == response[i].contractNo) {
+              if (response[i].deliverType == '1') {
+                this.carstatus = true
+              } else {
+                this.carstatus = false
               }
             }
-          })
-        //经办人
-        getstaff({
-            compId: localStorage.getItem('ws-pf_compId'),
-            warehouseId: this.dataList.baseId
-          })
-          .toPromise()
-          .then((response) => {
-            this.options = response
-            this.qualityInspectorList = response
-            this.staffList = response
-            //  this.agent = response
-          })
-      },
-      selecttaskType(e) {
-        for (var i = 0; i < this.taskTypeList.length; i++) {
-          if (this.taskTypeList[i].value == e) {
-            this.searchType = this.taskTypeList[i].type
           }
-        }
-      },
-      fujian(row) {
-        if (
-          row.receiveAttachmentPath === null ||
-          row.receiveAttachmentPath === ''
-        ) {
-          EventBus.$emit(
-            'warning',
-            this.$t('system.noticeCircular.NoInformation')
-          )
-        } else {
-          this.accessoryTFs = true
-        }
-        this.appendixIdss = row.receiveAttachmentPath
-      },
-      handleExamine(row) {
-        this.$router.push({
-          name: 'salesContractExamine',
-          query: {
-            id: row.id
-          },
         })
-      },
+      //经办人
+      getstaff({
+        compId: localStorage.getItem('ws-pf_compId'),
+        warehouseId: this.dataList.baseId,
+      })
+        .toPromise()
+        .then((response) => {
+          this.options = response
+          this.qualityInspectorList = response
+          this.staffList = response
+          //  this.agent = response
+        })
+    },
+    selecttaskType(e) {
+      for (var i = 0; i < this.taskTypeList.length; i++) {
+        if (this.taskTypeList[i].value == e) {
+          this.searchType = this.taskTypeList[i].type
+        }
+      }
+    },
+    fujian(row) {
+      if (
+        row.receiveAttachmentPath === null ||
+        row.receiveAttachmentPath === ''
+      ) {
+        EventBus.$emit(
+          'warning',
+          this.$t('system.noticeCircular.NoInformation')
+        )
+      } else {
+        this.accessoryTFs = true
+      }
+      this.appendixIdss = row.receiveAttachmentPath
+    },
+    handleExamine(row) {
+      this.$router.push({
+        name: 'salesContractExamine',
+        query: {
+          id: row.id,
+        },
+      })
+    },
 
-      // 关闭 dialog时 处理文件url 初始化upload组件
-      handleCloe() {
-        this.dialogViewSpareMoney = false
-      },
-      history(row) {
-        console.log(row)
-        billoperatehis({
-            id: row.id
-          })
-          .toPromise()
-          .then((response) => {
-            this.historyList = response
-          })
-      },
-      //删除
-      approve() {},
-      listQuery() {},
-      total() {},
-      clearfiltQuery() {},
-      selectCrtDuty() {},
+    // 关闭 dialog时 处理文件url 初始化upload组件
+    handleCloe() {
+      this.dialogViewSpareMoney = false
     },
-  }
+    history(row) {
+      console.log(row)
+      billoperatehis({
+        id: row.id,
+      })
+        .toPromise()
+        .then((response) => {
+          this.historyList = response
+        })
+    },
+    //删除
+    approve() {},
+    listQuery() {},
+    total() {},
+    clearfiltQuery() {},
+    selectCrtDuty() {},
+  },
+}
 </script>
 <style lang="scss" scoped>
-  /deep/.basicInformation {
-    .ws-info-table {
+/deep/.basicInformation {
+  .ws-info-table {
+    border: none;
+  }
+
+  .el-form-item {
+    width: 33.3333%;
+    border: none;
+
+    .el-form-item__label {
+      background: transparent;
       border: none;
     }
 
-    .el-form-item {
-      width: 33.3333%;
+    .el-form-item__content {
       border: none;
-
-      .el-form-item__label {
-        background: transparent;
-        border: none;
-      }
-
-      .el-form-item__content {
-        border: none;
-      }
     }
   }
+}
 
-  .title {
-    position: relative;
-    padding-left: 10px;
-  }
+.title {
+  position: relative;
+  padding-left: 10px;
+}
 
-  .title::before {
-    content: '';
-    display: inline-block;
-    width: 5px;
-    height: 30px;
-    background: #5473e8;
-    position: absolute;
-    left: 0;
-  }
+.title::before {
+  content: '';
+  display: inline-block;
+  width: 5px;
+  height: 30px;
+  background: #5473e8;
+  position: absolute;
+  left: 0;
+}
 
-  .el-form {
-    padding: 0 10%;
-  }
+.el-form {
+  padding: 0 10%;
+}
 
-  .el-button--primary {
-    background-color: #5878e8;
-    border-color: #5878e8;
-  }
+.el-button--primary {
+  background-color: #5878e8;
+  border-color: #5878e8;
+}
 
-  .el-col {
-    background: #f6f7fc;
-  }
+.el-col {
+  background: #f6f7fc;
+}
 
-  .bg-right {
-    text-align: right;
-    padding: 16px 20px;
-  }
+.bg-right {
+  text-align: right;
+  padding: 16px 20px;
+}
 
-  .center {
-    position: relative;
-    top: 50px;
-    width: 40%;
-    height: 2000px;
-    margin: 0 auto;
-  }
+.center {
+  position: relative;
+  top: 50px;
+  width: 40%;
+  height: 2000px;
+  margin: 0 auto;
+}
 
-  /deep/.el-form-item__label {
-    width: 160px;
-  }
+/deep/.el-form-item__label {
+  width: 160px;
+}
 
-  //选填
-  /deep/.el-form-item {
-    width: 50%;
-  }
+//选填
+/deep/.el-form-item {
+  width: 50%;
+}
 
-  .container {
-    overflow: scroll;
-    height: 120vh;
-  }
+.container {
+  overflow: scroll;
+  height: 120vh;
+}
 
-  /deep/.ws-info-table .el-form-item .el-form-item__label {
-    text-align: center;
-  }
+/deep/.ws-info-table .el-form-item .el-form-item__label {
+  text-align: center;
+}
 
-  .deliverydate {
-    display: inline-block;
-    width: 10%;
-  }
+.deliverydate {
+  display: inline-block;
+  width: 10%;
+}
 
-  .center {
-    margin-top: -60px;
-    width: 80%;
-  }
+.center {
+  margin-top: -60px;
+  width: 80%;
+}
 
-  //仓位
-  .position {
-    width: 52px;
-    height: 20px;
-    background: #afb5cb;
-    border-radius: 2px;
-    font-size: 12px;
-    font-family: PingFangSC-Medium, PingFang SC;
-    color: #ffffff;
-    line-height: 20px;
-  }
+//仓位
+.position {
+  width: 52px;
+  height: 20px;
+  background: #afb5cb;
+  border-radius: 2px;
+  font-size: 12px;
+  font-family: PingFangSC-Medium, PingFang SC;
+  color: #ffffff;
+  line-height: 20px;
+}
 
-  //表格文字
-  /deep/.ws-info-table .el-form-item .el-form-item__label {
-    text-align: left;
-    font-size: 14px;
-    font-family: PingFangSC-Regular, PingFang SC;
-    font-weight: 400;
-    color: #8890b1;
-    line-height: 16px;
-  }
+//表格文字
+/deep/.ws-info-table .el-form-item .el-form-item__label {
+  text-align: left;
+  font-size: 14px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  font-weight: 400;
+  color: #8890b1;
+  line-height: 16px;
+}
 
-  .inspector {
-    width: 50%;
-  }
+.inspector {
+  width: 50%;
+}
 
-  //质检员
-  .inspector .el-form-item__content {
-    text-align: left;
-    margin-left: 0px;
-  }
+//质检员
+.inspector .el-form-item__content {
+  text-align: left;
+  margin-left: 0px;
+}
 
-  /deep/[data-v-d228e17e] .el-form-item__label {
-    width: 60px;
-  }
+/deep/[data-v-d228e17e] .el-form-item__label {
+  width: 60px;
+}
 
-  .small-title {
-    position: relative;
-    padding: 10px;
-    font-weight: 600;
-  }
+.small-title {
+  position: relative;
+  padding: 10px;
+  font-weight: 600;
+}
 
-  .small-title::before {
-    position: absolute;
-    content: '';
-    display: block;
-    background: #5473e8;
-    width: 4px;
-    height: 14px;
-    left: 0px;
-    top: 13px;
-  }
+.small-title::before {
+  position: absolute;
+  content: '';
+  display: block;
+  background: #5473e8;
+  width: 4px;
+  height: 14px;
+  left: 0px;
+  top: 13px;
+}
+.top {
+ background: black;
+ color: #2aff7c;
+ font-size: 32px;
+ text-align: right;
+ padding: 20px;
+ border-radius: 10px;
+ margin: 0 20px 20px 20px;
 
-  //下面列表
-  .neifor {
-    width: 80%;
-    background-color: #f6f7fc;
-  }
+ .car-type {
+  text-align: left;
+ }
 
-  /deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
-    width: 35%;
-    text-align: center;
-  }
+ .kg-style {
+ font-size: 30px;
+ }
+}
+.weight {
+ font-size: 68px;
+}
+//下面列表
+.neifor {
+  width: 80%;
+  background-color: #f6f7fc;
+}
 
-  /deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
-    width: 60%;
-    background-color: #f6f7fc;
-  }
+/deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
+  width: 35%;
+  text-align: center;
+}
 
-  /deep/.neifor .el-input--small .el-input__inner {
-    width: 100%;
-  }
+/deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
+  width: 60%;
+  background-color: #f6f7fc;
+}
 
-  .el-input__inner {
-    width: 150px;
-  }
+/deep/.neifor .el-input--small .el-input__inner {
+  width: 100%;
+}
+
+.el-input__inner {
+  width: 150px;
+}
 </style>

+ 1872 - 1390
src/views/warehouse/warehouseManagementTare.vue

@@ -3,11 +3,21 @@
   <div class="container">
     <el-row>
       <el-col :span="20">
-        <h2 class="bg-left title">{{information}}</h2>
+        <h2 class="bg-left title">{{ information }}</h2>
       </el-col>
       <el-col :span="4" class="bg-right">
-        <el-button class="bg-bottom" type="primary" size="small" @click="revert()"><img width="6" height="10"
-            style="vertical-align: bottom; margin-right: 3px" src="../../../public/img/lujing.png" alt="" />返回
+        <el-button
+          class="bg-bottom"
+          type="primary"
+          size="small"
+          @click="revert()"
+          ><img
+            width="6"
+            height="10"
+            style="vertical-align: bottom; margin-right: 3px"
+            src="../../../public/img/lujing.png"
+            alt=""
+          />返回
         </el-button>
       </el-col>
     </el-row>
@@ -15,103 +25,273 @@
       <div class="basicInformation">
         <h2>
           {{ deptBudgetList.warehouseName }}
-          <span class="position" v-show="this.deptBudgetList.warehouseType == 1">
+          <span
+            class="position"
+            v-show="this.deptBudgetList.warehouseType == 1"
+          >
             {{ deptBudgetList.binNumber }}仓位
           </span>
           <span v-show="this.deptBudgetList.warehouseType == 2">(临)</span>
         </h2>
+        <div class="top">
+          <div class="car-type">皮重</div>
+          <!-- <div class="weight">{{deptBudgetList.grossWeight}} <span class="kg-style">kg</span></div> -->
+          <div class="weight">
+            {{ deptBudgetList.tare }} <span class="kg-style">kg</span>
+          </div>
+          <div class="car-no">{{ deptBudgetList.carNo }}</div>
+        </div>
         <div class="small-title">基本信息</div>
         <ws-info-table>
           <!--任务编号-->
           <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
-            <el-select filterable clearable v-model="deptBudgetList.inOutTaskNo" placeholder="请选择任务编号"
-              class="typeselect" @change="contractNoChange">
-              <el-option v-for="item in deptBudgetList1" :key="item.inOutTaskNo" :label="item.inOutTaskNo"
-                :value="item.inOutTaskNo" />
+            <el-select
+              filterable
+              clearable
+              v-model="deptBudgetList.inOutTaskNo"
+              placeholder="请选择任务编号"
+              class="typeselect"
+              @change="contractNoChange"
+            >
+              <el-option
+                v-for="item in deptBudgetList1"
+                :key="item.inOutTaskNo"
+                :label="item.inOutTaskNo"
+                :value="item.inOutTaskNo"
+              />
             </el-select>
           </ws-form-item>
           <ws-form-item label="合同编号" span="1" prop="contractNo">
-            <ws-select disabled v-model="deptBudgetList.contractNo" class="typeselect"
-              @change='contractNoChange1'>
-              <ws-option v-for="item in outContractNo" :key="item.constKey" :label="item.contractNo"
-                :value="item.contractNo" />
+            <ws-select
+              disabled
+              v-model="deptBudgetList.contractNo"
+              class="typeselect"
+              @change="contractNoChange1"
+            >
+              <ws-option
+                v-for="item in outContractNo"
+                :key="item.constKey"
+                :label="item.contractNo"
+                :value="item.contractNo"
+              />
             </ws-select>
           </ws-form-item>
           <ws-form-item label="提示" span="1" prop="tips">
-           <ws-input  onmouseover="this.title=this.value" v-model="deptBudgetList.tips"
-              maxlength="20" size="small" />
+            <ws-input
+              onmouseover="this.title=this.value"
+              v-model="deptBudgetList.tips"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
           <!-- 货名 -->
           <ws-form-item label="货名" span="1">
-            <ws-select disabled v-model="deptBudgetList.goodsName" placeholder class="typeselect"
-              @change="selectgoodsName">
-              <ws-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
-                :value="item.constValue" />
+            <ws-select
+              disabled
+              v-model="deptBudgetList.goodsName"
+              placeholder
+              class="typeselect"
+              @change="selectgoodsName"
+            >
+              <ws-option
+                v-for="item in goodnameList"
+                :key="item.constKey"
+                :label="item.constValue"
+                :value="item.constValue"
+              />
             </ws-select>
           </ws-form-item>
           <ws-form-item label="类型" span="1" prop="type">
-            <ws-select disabled v-model="deptBudgetList.type" @change="typeChange">
-              <ws-option v-for="item in typeList" :key="item" :label="item" :value="item" />
+            <ws-select
+              disabled
+              v-model="deptBudgetList.type"
+              @change="typeChange"
+            >
+              <ws-option
+                v-for="item in typeList"
+                :key="item"
+                :label="item"
+                :value="item"
+              />
             </ws-select>
           </ws-form-item>
           <!--毛重(公斤)-->
           <ws-form-item label="毛重(公斤)" span="1" prop="grossWeight">
-            <ws-input :disabled="allowEdit" @input="grossWeightchange" v-model="deptBudgetList.grossWeight"
-              type="number" @mousewheel.native.prevent placeholder="请输入毛重" maxlength="20" size="small" />
-            <el-button type="primary" v-if="information == '毛重检斤'" @click="openPort">重新获取</el-button>
+            <ws-input
+              :disabled="allowEdit"
+              @input="grossWeightchange"
+              v-model="deptBudgetList.grossWeight"
+              type="number"
+              @mousewheel.native.prevent
+              placeholder="请输入毛重"
+              maxlength="20"
+              size="small"
+            />
+            <el-button
+              type="primary"
+              v-if="information == '毛重检斤'"
+              @click="openPort"
+              >重新获取</el-button
+            >
           </ws-form-item>
 
           <!--皮重(公斤)-->
-          <ws-form-item label="皮重(公斤)" span="1" prop="tare" class="readonly">
-            <ws-input :disabled="allowEdit" @input="tarechange" v-model="deptBudgetList.tare" type="number"
-              @mousewheel.native.prevent placeholder="请输入皮重" maxlength="100" size="small" />
-            <el-button type="primary" v-if="information == '皮重检斤'" @click="openPort">重新获取</el-button>
+          <ws-form-item
+            label="皮重(公斤)"
+            span="1"
+            prop="tare"
+            class="readonly"
+          >
+            <ws-input
+              :disabled="allowEdit"
+              @input="tarechange"
+              v-model="deptBudgetList.tare"
+              type="number"
+              @mousewheel.native.prevent
+              placeholder="请输入皮重"
+              maxlength="100"
+              size="small"
+            />
+            <el-button
+              type="primary"
+              v-if="information == '皮重检斤'"
+              @click="openPort"
+              >重新获取</el-button
+            >
           </ws-form-item>
           <!--净重(公斤)-->
           <ws-form-item label="净重(公斤)" span="1" prop="netWeight">
-            <ws-input disabled v-model="deptBudgetList.netWeight" placeholder="不可编辑,自动计算" maxlength="120"
-              size="small" />
+            <ws-input
+              disabled
+              v-model="deptBudgetList.netWeight"
+              placeholder="不可编辑,自动计算"
+              maxlength="120"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item v-if='deptBudgetList.type=="潮粮"' label="扣重比" span="1" prop="buckleWeightRatio" class="readonly">
-            <ws-input @input='pureweight' v-model="deptBudgetList.buckleWeightRatio" type="number"
-              @mousewheel.native.prevent placeholder="请输入扣重比" maxlength="100" size="small" />
+          <ws-form-item
+            v-if="deptBudgetList.type == '潮粮'"
+            label="扣重比"
+            span="1"
+            prop="buckleWeightRatio"
+            class="readonly"
+          >
+            <ws-input
+              @input="pureweight"
+              v-model="deptBudgetList.buckleWeightRatio"
+              type="number"
+              @mousewheel.native.prevent
+              placeholder="请输入扣重比"
+              maxlength="100"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item v-if='deptBudgetList.type=="潮粮"' label="干粮水分占比" span="1" prop="solidGrainWater"
-            class="readonly">
-            <ws-input @input='pureweight' v-model="deptBudgetList.solidGrainWater" type="number"
-              @mousewheel.native.prevent placeholder="请输入干粮水分占比" maxlength="100" size="small" />
+          <ws-form-item
+            v-if="deptBudgetList.type == '潮粮'"
+            label="干粮水分占比"
+            span="1"
+            prop="solidGrainWater"
+            class="readonly"
+          >
+            <ws-input
+              @input="pureweight"
+              v-model="deptBudgetList.solidGrainWater"
+              type="number"
+              @mousewheel.native.prevent
+              placeholder="请输入干粮水分占比"
+              maxlength="100"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item v-if='deptBudgetList.type=="潮粮"' label="潮粮水分占比" span="1" prop="tidalGrainWater"
-            class="readonly">
-            <ws-input @input='pureweight' v-model="deptBudgetList.tidalGrainWater" type="number"
-              @mousewheel.native.prevent placeholder="请输入潮粮水分占比" maxlength="100" size="small" />
+          <ws-form-item
+            v-if="deptBudgetList.type == '潮粮'"
+            label="潮粮水分占比"
+            span="1"
+            prop="tidalGrainWater"
+            class="readonly"
+          >
+            <ws-input
+              @input="pureweight"
+              v-model="deptBudgetList.tidalGrainWater"
+              type="number"
+              @mousewheel.native.prevent
+              placeholder="请输入潮粮水分占比"
+              maxlength="100"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item v-if='deptBudgetList.type=="潮粮"' label="纯重" span="1" prop="pureWeight" class="readonly">
-            <ws-input disabled v-model="deptBudgetList.pureWeight" type="number" @mousewheel.native.prevent
-              placeholder="不可编辑,自动计算" maxlength="100" size="small" />
+          <ws-form-item
+            v-if="deptBudgetList.type == '潮粮'"
+            label="纯重"
+            span="1"
+            prop="pureWeight"
+            class="readonly"
+          >
+            <ws-input
+              disabled
+              v-model="deptBudgetList.pureWeight"
+              type="number"
+              @mousewheel.native.prevent
+              placeholder="不可编辑,自动计算"
+              maxlength="100"
+              size="small"
+            />
           </ws-form-item>
           <!-- 品级 -->
           <ws-form-item label="品级" span="1" class="readonly">
-            <ws-select v-model="deptBudgetList.grade" placeholder="" class="typeselect" @change="selectpackingMethod">
-              <ws-option v-for="item in gradeList" :key="item.constKey" :label="item.constValue"
-                :value="item.constValue" />
+            <ws-select
+              v-model="deptBudgetList.grade"
+              placeholder=""
+              class="typeselect"
+              @change="selectpackingMethod"
+            >
+              <ws-option
+                v-for="item in gradeList"
+                :key="item.constKey"
+                :label="item.constValue"
+                :value="item.constValue"
+              />
             </ws-select>
           </ws-form-item>
           <!--经办人-->
           <ws-form-item label="经办人" span="1" prop="agent">
-            <el-select v-model="deptBudgetList.agent" placeholder="请选择经办人" filterable clearable @change="selectstaff">
-              <el-option v-for="item in options" :key="item.value" :label="item.staffName" :value="item.staffName" />
+            <el-select
+              v-model="deptBudgetList.agent"
+              placeholder="请选择经办人"
+              filterable
+              clearable
+              @change="selectstaff"
+            >
+              <el-option
+                v-for="item in options"
+                :key="item.value"
+                :label="item.staffName"
+                :value="item.staffName"
+              />
             </el-select>
           </ws-form-item>
           <!--出库日期-->
-          <ws-form-item label="出库日期" span="1" prop="inOutDate" class="deliverydate">
-            <ws-date-picker v-model="deptBudgetList.inOutDate" type="date" placeholder="请选择出库日期"
-              value-format="yyyy-MM-dd" />
+          <ws-form-item
+            label="出库日期"
+            span="1"
+            prop="inOutDate"
+            class="deliverydate"
+          >
+            <ws-date-picker
+              v-model="deptBudgetList.inOutDate"
+              type="date"
+              placeholder="请选择出库日期"
+              value-format="yyyy-MM-dd"
+            />
           </ws-form-item>
           <!-- 出库类型 -->
           <ws-form-item label="出库类型" span="1">
-            <ws-input v-model='deptBudgetList.inOutType' class="right-bottom" :disabled="isSelectType"
-              placeholder='暂无' />
+            <ws-input
+              v-model="deptBudgetList.inOutType"
+              class="right-bottom"
+              :disabled="isSelectType"
+              placeholder="暂无"
+            />
             <!-- <ws-select
               v-model="deptBudgetList.deliveryType"
               placeholder=""
@@ -126,59 +306,184 @@
               />
             </ws-select> -->
           </ws-form-item>
-           <!--出库方式-->
+          <!--出库方式-->
           <ws-form-item label="出库方式" span="1" prop="outType">
-            <el-select v-model="deptBudgetList.outType" placeholder="请选择出库方式">
-              <el-option v-for="item in multiSelector" :key="item.value" :label="item.name" :value="item.name" />
+            <el-select
+              v-model="deptBudgetList.outType"
+              placeholder="请选择出库方式"
+            >
+              <el-option
+                v-for="item in multiSelector"
+                :key="item.value"
+                :label="item.name"
+                :value="item.name"
+              />
             </el-select>
           </ws-form-item>
           <!--车牌号-->
-          <ws-form-item label="车牌号" span="1" prop="carNo" v-if="deptBudgetList.outType == '汽运' || deptBudgetList.outType == '集装箱船'">
-            <ws-input v-if="!carstatus" v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7"
-              size="small" />
-            <el-select v-if="carstatus" filterable clearable :filter-method="dataFilter2" v-model="deptBudgetList.carNo"
-              placeholder="请选择车牌号" class="typeselect" @change="carChange">
-              <el-option v-for="item in options2" :key="item.constKey" :label="item.carNo + '(' + item.tranCarNo + ')'"
-                :value="item.carNo" />
+          <ws-form-item
+            label="车牌号"
+            span="1"
+            prop="carNo"
+            v-if="
+              deptBudgetList.outType == '汽运' ||
+              deptBudgetList.outType == '集装箱船'
+            "
+          >
+            <ws-input
+              v-if="!carstatus"
+              v-model="deptBudgetList.carNo"
+              placeholder="请输入车牌号"
+              maxlength="7"
+              size="small"
+            />
+            <el-select
+              v-if="carstatus"
+              filterable
+              clearable
+              :filter-method="dataFilter2"
+              v-model="deptBudgetList.carNo"
+              placeholder="请选择车牌号"
+              class="typeselect"
+              @change="carChange"
+            >
+              <el-option
+                v-for="item in options2"
+                :key="item.constKey"
+                :label="item.carNo + '(' + item.tranCarNo + ')'"
+                :value="item.carNo"
+              />
             </el-select>
           </ws-form-item>
-             <!--车号  -->
-          <ws-form-item label="车号" span="1" prop="carNo" v-if="deptBudgetList.outType == '火运'">
-            <ws-input  v-model="deptBudgetList.carNo" placeholder="请输入车号" size="small"/>
+          <!--车号  -->
+          <ws-form-item
+            label="车号"
+            span="1"
+            prop="carNo"
+            v-if="deptBudgetList.outType == '火运'"
+          >
+            <ws-input
+              v-model="deptBudgetList.carNo"
+              placeholder="请输入车号"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item label="箱号-1" span="1" prop="boxNo" v-if="deptBudgetList.outType == '汽运' || deptBudgetList.outType == '集装箱船'">
-            <ws-input v-model="deptBudgetList.boxNo" placeholder="请输入箱号" maxlength="20"
-              size="small" />
+          <ws-form-item
+            label="箱号-1"
+            span="1"
+            prop="boxNo"
+            v-if="
+              deptBudgetList.outType == '汽运' ||
+              deptBudgetList.outType == '集装箱船'
+            "
+          >
+            <ws-input
+              v-model="deptBudgetList.boxNo"
+              placeholder="请输入箱号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item label="箱号-2" span="1" prop="boxNoOther" v-if="deptBudgetList.outType == '汽运' || deptBudgetList.outType == '集装箱船'">
-            <ws-input v-model="deptBudgetList.boxNoOther" placeholder="请输入箱号" maxlength="20"
-              size="small" />
+          <ws-form-item
+            label="箱号-2"
+            span="1"
+            prop="boxNoOther"
+            v-if="
+              deptBudgetList.outType == '汽运' ||
+              deptBudgetList.outType == '集装箱船'
+            "
+          >
+            <ws-input
+              v-model="deptBudgetList.boxNoOther"
+              placeholder="请输入箱号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item label="封号-1" span="1" prop="titleNo" v-if="deptBudgetList.outType == '汽运' || deptBudgetList.outType == '集装箱船'">
-            <ws-input v-model="deptBudgetList.titleNo" placeholder="请输入封号" maxlength="20"
-              size="small" />
+          <ws-form-item
+            label="封号-1"
+            span="1"
+            prop="titleNo"
+            v-if="
+              deptBudgetList.outType == '汽运' ||
+              deptBudgetList.outType == '集装箱船'
+            "
+          >
+            <ws-input
+              v-model="deptBudgetList.titleNo"
+              placeholder="请输入封号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item label="封号-2" span="1" prop="titleNoOther" v-if="deptBudgetList.outType == '汽运' || deptBudgetList.outType == '集装箱船'">
-            <ws-input v-model="deptBudgetList.titleNoOther" placeholder="请输入封号" maxlength="20"
-              size="small" />
+          <ws-form-item
+            label="封号-2"
+            span="1"
+            prop="titleNoOther"
+            v-if="
+              deptBudgetList.outType == '汽运' ||
+              deptBudgetList.outType == '集装箱船'
+            "
+          >
+            <ws-input
+              v-model="deptBudgetList.titleNoOther"
+              placeholder="请输入封号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item label="车厢号-1" span="1" prop="wingNumber" v-if="deptBudgetList.outType == '火运'" >
-            <ws-input v-model="deptBudgetList.wingNumber" placeholder="请输入车厢号" maxlength="20"
-              size="small" />
+          <ws-form-item
+            label="车厢号-1"
+            span="1"
+            prop="wingNumber"
+            v-if="deptBudgetList.outType == '火运'"
+          >
+            <ws-input
+              v-model="deptBudgetList.wingNumber"
+              placeholder="请输入车厢号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item label="车厢号-2" span="1" prop="wingNumberOther"  v-if="deptBudgetList.outType == '火运'">
-            <ws-input v-model="deptBudgetList.wingNumberOther" placeholder="请输入车厢号" maxlength="20"
-              size="small" />
+          <ws-form-item
+            label="车厢号-2"
+            span="1"
+            prop="wingNumberOther"
+            v-if="deptBudgetList.outType == '火运'"
+          >
+            <ws-input
+              v-model="deptBudgetList.wingNumberOther"
+              placeholder="请输入车厢号"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
-            <ws-form-item label="船名" span="1" prop="shipName" v-if="deptBudgetList.outType == '散船'">
-            <ws-input v-model="deptBudgetList.shipName" placeholder="请输入船名" maxlength="20"
-              size="small" />
+          <ws-form-item
+            label="船名"
+            span="1"
+            prop="shipName"
+            v-if="deptBudgetList.outType == '散船'"
+          >
+            <ws-input
+              v-model="deptBudgetList.shipName"
+              placeholder="请输入船名"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
-          <ws-form-item label="航次" span="1" prop="shipNumber" v-if="deptBudgetList.outType == '散船'">
-            <ws-input v-model="deptBudgetList.shipNumber" placeholder="请输入航次" maxlength="20"
-              size="small" />
+          <ws-form-item
+            label="航次"
+            span="1"
+            prop="shipNumber"
+            v-if="deptBudgetList.outType == '散船'"
+          >
+            <ws-input
+              v-model="deptBudgetList.shipNumber"
+              placeholder="请输入航次"
+              maxlength="20"
+              size="small"
+            />
           </ws-form-item>
-        
         </ws-info-table>
       </div>
       <!-- <div class="small-title">上传磅单照片</div>
@@ -209,10 +514,19 @@
           />
         </ws-form-item> -->
         <ws-form-item label="质检员" span="1" prop="qualityInspector">
-          <el-select v-model="deptBudgetList.warehouseInOutDetail.qualityInspector" placeholder="请选择质检员" filterable
-            clearable @change="qualityInspectorChange">
-            <el-option v-for="item in qualityInspectorList" :key="item.value" :label="item.staffName"
-              :value="item.staffName" />
+          <el-select
+            v-model="deptBudgetList.warehouseInOutDetail.qualityInspector"
+            placeholder="请选择质检员"
+            filterable
+            clearable
+            @change="qualityInspectorChange"
+          >
+            <el-option
+              v-for="item in qualityInspectorList"
+              :key="item.value"
+              :label="item.staffName"
+              :value="item.staffName"
+            />
           </el-select>
         </ws-form-item>
       </div>
@@ -220,1559 +534,1727 @@
         <ws-info-table>
           <!--水分(%)<=-->
           <ws-form-item label="水分(%)" span="1" prop="waterContent">
-            <ws-input v-model="deptBudgetList.warehouseInOutDetail.waterContent" placeholder="请输入水分占比" maxlength="120"
-              type="number" @mousewheel.native.prevent size="small" />
+            <ws-input
+              v-model="deptBudgetList.warehouseInOutDetail.waterContent"
+              placeholder="请输入水分占比"
+              maxlength="120"
+              type="number"
+              @mousewheel.native.prevent
+              size="small"
+            />
           </ws-form-item>
           <!--杂质(%)<=-->
           <ws-form-item label="杂质(%)" span="1" prop="impurity">
-            <ws-input v-model="deptBudgetList.warehouseInOutDetail.impurity" placeholder="请输入杂质占比" type="number"
-              @mousewheel.native.prevent maxlength="120" size="small" />
+            <ws-input
+              v-model="deptBudgetList.warehouseInOutDetail.impurity"
+              placeholder="请输入杂质占比"
+              type="number"
+              @mousewheel.native.prevent
+              maxlength="120"
+              size="small"
+            />
           </ws-form-item>
           <!--容重(克/升)>=-->
           <ws-form-item label="容重(克/升)" span="1" prop="bulkDensity">
-            <ws-input v-model="deptBudgetList.warehouseInOutDetail.bulkDensity" placeholder="请输入容重" type="number"
-              @mousewheel.native.prevent maxlength="120" size="small" />
+            <ws-input
+              v-model="deptBudgetList.warehouseInOutDetail.bulkDensity"
+              placeholder="请输入容重"
+              type="number"
+              @mousewheel.native.prevent
+              maxlength="120"
+              size="small"
+            />
           </ws-form-item>
           <!--霉变粒(%)<=-->
           <ws-form-item label="霉变粒(%)" span="1" prop="mildewGrain">
-            <ws-input v-model="deptBudgetList.warehouseInOutDetail.mildewGrain" placeholder="请输入霉变粒占比" maxlength="120"
-              type="number" @mousewheel.native.prevent size="small" />
+            <ws-input
+              v-model="deptBudgetList.warehouseInOutDetail.mildewGrain"
+              placeholder="请输入霉变粒占比"
+              maxlength="120"
+              type="number"
+              @mousewheel.native.prevent
+              size="small"
+            />
           </ws-form-item>
           <!--热损伤(%)<=-->
           <ws-form-item label="热损伤(%)" span="1" prop="jiaorenli">
-            <ws-input v-model="deptBudgetList.warehouseInOutDetail.jiaorenli" placeholder="请输入热损伤占比" type="number"
-              @mousewheel.native.prevent maxlength="120" size="small" />
+            <ws-input
+              v-model="deptBudgetList.warehouseInOutDetail.jiaorenli"
+              placeholder="请输入热损伤占比"
+              type="number"
+              @mousewheel.native.prevent
+              maxlength="120"
+              size="small"
+            />
           </ws-form-item>
           <!--不完善粒(%)<=-->
           <ws-form-item label="不完善粒(%)" span="1" prop="imperfectGrain">
-            <ws-input v-model="deptBudgetList.warehouseInOutDetail.imperfectGrain" placeholder="请输入不完善粒占比" type="number"
-              @mousewheel.native.prevent maxlength="120" size="small" />
+            <ws-input
+              v-model="deptBudgetList.warehouseInOutDetail.imperfectGrain"
+              placeholder="请输入不完善粒占比"
+              type="number"
+              @mousewheel.native.prevent
+              maxlength="120"
+              size="small"
+            />
           </ws-form-item>
         </ws-info-table>
       </div>
       <div style="text-align: right; padding: 10px">
-        <el-button v-if="information == '皮重检斤'" class="bg-bottom-up" size="small" @click="temporaryStorage()">保存
+        <el-button
+          v-if="information == '皮重检斤'"
+          class="bg-bottom-up"
+          size="small"
+          @click="temporaryStorage()"
+          >保存
         </el-button>
-        <el-button v-if="!allowEdit" class="bg-bottom-up" type="primary" size="small" @click="submit()">提交</el-button>
+        <el-button
+          v-if="!allowEdit"
+          class="bg-bottom-up"
+          type="primary"
+          size="small"
+          @click="submit()"
+          >提交</el-button
+        >
       </div>
     </ws-form>
   </div>
 </template>
 <script>
-  import {
-    pullDown,
-    addstorageputList,
-    goodsname,
-    xialaNo,
-    getstaff,
-    goodsnameXiala,
-    getReceiptTaskNo
-  } from '@/model/warehouse/index'
-  import Pagination from '@/components/Pagination'
-  import WsUpload from '@/components/WsUpload'
-  // import { dayjs, fmoney, EventBus } from 'base-core-lib'
-  import {
-    dayjs,
-    EventBus
-  } from 'base-core-lib'
-  export default {
-    name: 'viewSpareMoney',
-    components: {
-      WsUpload,
-      Pagination,
-    },
-    watch: {
-      isShow(val) {
-        this.showType = val
-      },
+import {
+  pullDown,
+  addstorageputList,
+  goodsname,
+  xialaNo,
+  getstaff,
+  goodsnameXiala,
+  getReceiptTaskNo,
+} from '@/model/warehouse/index'
+import Pagination from '@/components/Pagination'
+import WsUpload from '@/components/WsUpload'
+// import { dayjs, fmoney, EventBus } from 'base-core-lib'
+import { dayjs, EventBus } from 'base-core-lib'
+export default {
+  name: 'viewSpareMoney',
+  components: {
+    WsUpload,
+    Pagination,
+  },
+  watch: {
+    isShow(val) {
+      this.showType = val
     },
-    data() {
-      return {
-        deptBudgetList1: [],
-        isSelectType: true,
-        carstatus: false,
-        qualityInspectorList: [],
-        //弹出框
-        dialogViewSpareMoney: false,
-        dialogApproveFormVisible: false,
-        // 船舶类型
-        monetaryKey: null,
-        // 表格显示数据
-        tableDate: [],
-        // 是否显示
-        showType: true,
-        readonly: true,
-        // 年
-        year: '',
-        deptBudgetTotal: 0,
-        currentPage: 1,
-        pageSize: 10,
-        searchType: 1,
-        searchKeyWord: '',
-        contractType: 2,
-        startDate: null,
-        endDate: null,
-        goodnameList: {},
-        // 提交类型
-        submitType: true,
-        deliveryType: [],
-        typeList: ['干粮', '潮粮'],
-        outContractNo: [],
-        appendixIdsAdd: '',
-        uploadSuccess: {},
-        gradeList: [],
-        agent: [],
-        staffList: [],
-        options: [],
-        value: '',
-        rules: {
-          netWeight: [{
+  },
+  data() {
+    return {
+      deptBudgetList1: [],
+      isSelectType: true,
+      carstatus: false,
+      qualityInspectorList: [],
+      //弹出框
+      dialogViewSpareMoney: false,
+      dialogApproveFormVisible: false,
+      // 船舶类型
+      monetaryKey: null,
+      // 表格显示数据
+      tableDate: [],
+      // 是否显示
+      showType: true,
+      readonly: true,
+      // 年
+      year: '',
+      deptBudgetTotal: 0,
+      currentPage: 1,
+      pageSize: 10,
+      searchType: 1,
+      searchKeyWord: '',
+      contractType: 2,
+      startDate: null,
+      endDate: null,
+      goodnameList: {},
+      // 提交类型
+      submitType: true,
+      deliveryType: [],
+      typeList: ['干粮', '潮粮'],
+      outContractNo: [],
+      appendixIdsAdd: '',
+      uploadSuccess: {},
+      gradeList: [],
+      agent: [],
+      staffList: [],
+      options: [],
+      value: '',
+      rules: {
+        netWeight: [
+          {
             required: true,
             type: 'number',
             message: '请输入活动名称',
             trigger: 'blur',
-          }, ],
+          },
+        ],
+      },
+      size: 10,
+      compId: localStorage.getItem('ws-pf_compId'),
+      skinInspector: localStorage.getItem('ws-pf_staffName'),
+      deptCircularPage: {},
+      packtypeList: {},
+      date: {
+        year: dayjs().format('YYYY'),
+        month: dayjs().format('MM'),
+      },
+      contractList: [],
+      deptBudgetList: {
+        type: '干粮',
+        addressUrl: '',
+        warehouseInOutDetail: {},
+        grossWeight: '',
+        tare: '',
+        inOutDate: '',
+      },
+      historyList: [],
+
+      pickerBeginDateBefore: {
+        disabledDate: (time) => {
+          return time.getTime() > Date.now()
         },
-        size: 10,
-        compId: localStorage.getItem('ws-pf_compId'),
-        skinInspector: localStorage.getItem('ws-pf_staffName'),
-        deptCircularPage: {},
-        packtypeList: {},
-        date: {
-          year: dayjs().format('YYYY'),
-          month: dayjs().format('MM'),
+      },
+      accessoryTFs: false,
+      allowEdit: true,
+      param: 9600,
+      information: '',
+      result1: '00',
+      multiSelector: [
+        {
+          name: '汽运',
+          value: '0',
         },
-        contractList: [],
-        deptBudgetList: {
-          type: '干粮',
-          addressUrl: '',
-          warehouseInOutDetail: {},
-          grossWeight: '',
-          tare: '',
-          inOutDate:'',
+        {
+          name: '火运',
+          value: '1',
         },
-        historyList: [],
-
-        pickerBeginDateBefore: {
-          disabledDate: (time) => {
-            return time.getTime() > Date.now()
-          },
+        {
+          name: '集装箱船',
+          value: '2',
         },
-        accessoryTFs: false,
-        allowEdit: true,
-        param: 9600,
-        information: '',
-        result1: '00',
-        multiSelector: [{
-						name: '汽运',
-						value: '0'
-					},
-					{
-						name: '火运',
-						value: '1'
-					},
-					{
-						name: '集装箱船',
-						value: '2'
-					},
-					{
-						name: '散船',
-						value: '3'
-					},
-				],
-      }
-    },
-    mounted() {
-      let date = new Date()
-        var year = date.getFullYear();
-        var month = date.getMonth() + 1;
-        var strDate = date.getDate()
-        this.deptBudgetList.inOutDate = year+'-'+month+'-'+strDate
-      this.information = this.$route.query.information
-      if (this.$route.query.allowEdit == 1) {
-        this.allowEdit = false
-      } else {
-        this.allowEdit = true
-      }
-      this.deptBudgetList.baseId = this.$route.query.baseId
-      this.deptBudgetList.positionId = this.$route.query.positionId
-      this.deptBudgetList.warehouseName = this.$route.query.warehouseName
-      this.deptBudgetList.binNumber = this.$route.query.binNumber
-      this.deptBudgetList.warehouseType = this.$route.query.warehouseType
-      this.deptBudgetList.warehouseId = this.$route.query.warehouseId
-      this.getList()
-      getReceiptTaskNo({flag:1,warehouseName:this.deptBudgetList.warehouseName,agentKey: localStorage.getItem('ws-pf_userId')}).toPromise()
-        .then((response) => {
-          console.log(response)
-          this.deptBudgetList1 = response
-        })
+        {
+          name: '散船',
+          value: '3',
+        },
+      ],
+    }
+  },
+  mounted() {
+    let date = new Date()
+    var year = date.getFullYear()
+    var month = date.getMonth() + 1
+    var strDate = date.getDate()
+    this.deptBudgetList.inOutDate = year + '-' + month + '-' + strDate
+    this.information = this.$route.query.information
+    if (this.$route.query.allowEdit == 1) {
+      this.allowEdit = false
+    } else {
+      this.allowEdit = true
+    }
+    this.deptBudgetList.baseId = this.$route.query.baseId
+    this.deptBudgetList.positionId = this.$route.query.positionId
+    this.deptBudgetList.warehouseName = this.$route.query.warehouseName
+    this.deptBudgetList.binNumber = this.$route.query.binNumber
+    this.deptBudgetList.warehouseType = this.$route.query.warehouseType
+    this.deptBudgetList.warehouseId = this.$route.query.warehouseId
+    this.getList()
+    getReceiptTaskNo({
+      flag: 1,
+      warehouseName: this.deptBudgetList.warehouseName,
+      agentKey: localStorage.getItem('ws-pf_userId'),
+    })
+      .toPromise()
+      .then((response) => {
+        console.log(response)
+        this.deptBudgetList1 = response
+      })
+  },
+  methods: {
+    async closePort() {
+      console.log('closePort')
+      this.reader.cancel()
     },
-    methods: {
-      async closePort() {
-        console.log('closePort');
-        this.reader.cancel()
-      },
-      async openPort() {
-        console.log('openPort', navigator);
-        if ('serial' in navigator) {
-          // The Web Serial API is supported.
-          console.log('the Web Serial API is supported.');
-          console.log(this.param);
-          const port = await navigator.serial.requestPort();
-          await port.open({
-            baudRate: this.param
-          }); // set baud rate
-          this.reader = port.readable.getReader();
-          // 监听来自串行设备的数据
-          while (true) {
-            const {
-              value,
-              done
-            } = await this.reader.read();
-            // console.log("value",value);
-            if (done) {
-              // 允许稍后关闭串口。
-              this.reader.releaseLock();
-              break;
+    async openPort() {
+      console.log('openPort', navigator)
+      if ('serial' in navigator) {
+        // The Web Serial API is supported.
+        console.log('the Web Serial API is supported.')
+        console.log(this.param)
+        const port = await navigator.serial.requestPort()
+        await port.open({
+          baudRate: this.param,
+        }) // set baud rate
+        this.reader = port.readable.getReader()
+        // 监听来自串行设备的数据
+        while (true) {
+          const { value, done } = await this.reader.read()
+          // console.log("value",value);
+          if (done) {
+            // 允许稍后关闭串口。
+            this.reader.releaseLock()
+            break
+          }
+          var result = ''
+          //2。获取16进制字符串
+          // var receData = HexConvert.ByteToString(value);
+          // console.log("receData",receData);
+          var flag = false
+          var flag1 = false
+          // for (var i = 0; i < value.length; i++) {
+          //   var tmp = String.fromCharCode(value[i])
+          //   if (tmp == '+') {
+          //     flag = true
+          //   }
+          //   if (flag && result.length < 6 && tmp != '+') {
+          //     result += tmp
+          //   }
+          // }
+          // if (this.information != '毛重检斤') {
+          //   if(parseInt(result)){
+          //     this.deptBudgetList.grossWeight = parseInt(result)
+          //   }
+          // } else {
+          //   if(parseInt(result)){
+          //     this.deptBudgetList.tare = parseInt(result)
+          //   }
+          // }
+          if (
+            this.deptBudgetList.warehouseName &&
+            (this.deptBudgetList.warehouseName == '山东诸城迈饶库' ||
+              this.deptBudgetList.warehouseName == '克东千红库' ||
+              this.deptBudgetList.warehouseName == '鲅鱼圈祥腾库' ||
+              this.deptBudgetList.warehouseName == '哈尔滨依兰库')
+          ) {
+            for (var i = 0; i < value.length; i++) {
+              var tmp = String.fromCharCode(value[i])
+              if (tmp == '+') {
+                flag = true
+              }
+              if (flag && result.length < 6 && tmp != '+') {
+                result += tmp
+              }
             }
-            var result = '';
-            //2。获取16进制字符串
-            // var receData = HexConvert.ByteToString(value);
-            // console.log("receData",receData);
-            var flag = false;
-            var flag1 = false;
-            // for (var i = 0; i < value.length; i++) {
-            //   var tmp = String.fromCharCode(value[i])
-            //   if (tmp == '+') {
-            //     flag = true
-            //   }
-            //   if (flag && result.length < 6 && tmp != '+') {
-            //     result += tmp
-            //   }
-            // }
-            // if (this.information != '毛重检斤') {
-            //   if(parseInt(result)){
-            //     this.deptBudgetList.grossWeight = parseInt(result)
-            //   }
-            // } else {
-            //   if(parseInt(result)){
-            //     this.deptBudgetList.tare = parseInt(result)
-            //   }
-            // }
-            if (this.deptBudgetList.warehouseName && (this.deptBudgetList.warehouseName == '山东诸城迈饶库' || this
-                .deptBudgetList.warehouseName == '克东千红库' || this.deptBudgetList.warehouseName == '鲅鱼圈祥腾库'|| this.deptBudgetList.warehouseName == '哈尔滨依兰库')) {
-              for (var i = 0; i < value.length; i++) {
-                var tmp = String.fromCharCode(value[i])
-                if (tmp == '+') {
-                  flag = true
-                }
-                if (flag && result.length < 6 && tmp != '+') {
-                  result += tmp
-                }
+            if (this.information == '毛重检斤') {
+              if (parseInt(result) || parseInt(result) == 0) {
+                this.deptBudgetList.grossWeight = parseInt(result)
               }
-              if (this.information == '毛重检斤') {
-                if (parseInt(result) || parseInt(result) == 0) {
-                  this.deptBudgetList.grossWeight = parseInt(result)
-                }
-              } else {
-                if (parseInt(result) || parseInt(result) == 0) {
-                  this.deptBudgetList.tare = parseInt(result)
-                }
+            } else {
+              if (parseInt(result) || parseInt(result) == 0) {
+                this.deptBudgetList.tare = parseInt(result)
               }
             }
-            else if (this.deptBudgetList.warehouseName && (this.deptBudgetList.warehouseName == '顺诚粮库'||this.deptBudgetList.warehouseName == '鲅鱼圈金信库')) {
-              for (var i = value.length - 1; i >= 0; i--) {
-                var tmp = String.fromCharCode(value[i])
-                console.log(tmp)
-                if (String.fromCharCode(value[0]) == '.') {
-                  flag = true
-                }
-                if (flag && result.length < 9 && tmp != '='&& tmp != '.') {
-                  result += tmp
-                }
+          } else if (
+            this.deptBudgetList.warehouseName &&
+            (this.deptBudgetList.warehouseName == '顺诚粮库' ||
+              this.deptBudgetList.warehouseName == '鲅鱼圈金信库')
+          ) {
+            for (var i = value.length - 1; i >= 0; i--) {
+              var tmp = String.fromCharCode(value[i])
+              console.log(tmp)
+              if (String.fromCharCode(value[0]) == '.') {
+                flag = true
               }
-              if (this.information == '毛重检斤') {
-                if (parseInt(result) || parseInt(result) == 0) {
-                  this.deptBudgetList.grossWeight = parseInt(result)
-                }
-              } else {
-                if (parseInt(result) || parseInt(result) == 0) {
-                  this.deptBudgetList.tare = parseInt(result)
-                }
+              if (flag && result.length < 9 && tmp != '=' && tmp != '.') {
+                result += tmp
+              }
+            }
+            if (this.information == '毛重检斤') {
+              if (parseInt(result) || parseInt(result) == 0) {
+                this.deptBudgetList.grossWeight = parseInt(result)
+              }
+            } else {
+              if (parseInt(result) || parseInt(result) == 0) {
+                this.deptBudgetList.tare = parseInt(result)
               }
             }
-            else {
-              for (var i = 0; i < value.length; i++) {
-                var tmp = String.fromCharCode(value[i])
+          } else {
+            for (var i = 0; i < value.length; i++) {
+              var tmp = String.fromCharCode(value[i])
 
-                if ((value[0] != 49 && value[0] != 2)) {
-                  if ((value[value.length - 1] == 48 && value[value.length - 2] == 48)) {
-                    flag1 = true
-                  } else {
-                    break
-                  }
+              if (value[0] != 49 && value[0] != 2) {
+                if (
+                  value[value.length - 1] == 48 &&
+                  value[value.length - 2] == 48
+                ) {
+                  flag1 = true
+                } else {
+                  break
                 }
-                if (tmp == String.fromCharCode(32)) {
-                  flag = true
-                }
-                if (flag && result.length < 7 && tmp != String.fromCharCode(32) && !(value[value.length - 1] == 48 &&
-                    value[value.length - 2] == 48)) {
-                  result += tmp
-                }
-                if (flag1 && tmp != String.fromCharCode(32)) {
-                  if ((value[value.length - 1] == 48 && value[value.length - 2] == 48)) {
-                    if (i == 0) {
-                      this.result1 = tmp + '0'
-                    }
+              }
+              if (tmp == String.fromCharCode(32)) {
+                flag = true
+              }
+              if (
+                flag &&
+                result.length < 7 &&
+                tmp != String.fromCharCode(32) &&
+                !(
+                  value[value.length - 1] == 48 && value[value.length - 2] == 48
+                )
+              ) {
+                result += tmp
+              }
+              if (flag1 && tmp != String.fromCharCode(32)) {
+                if (
+                  value[value.length - 1] == 48 &&
+                  value[value.length - 2] == 48
+                ) {
+                  if (i == 0) {
+                    this.result1 = tmp + '0'
                   }
                 }
               }
-              if (this.information == '毛重检斤') {
-                if (parseInt(result) || parseInt(result) == 0) {
-                  this.deptBudgetList.grossWeight = parseInt(result + this.result1)
-                }
-              } else {
-                if (parseInt(result) || parseInt(result) == 0) {
-                  this.deptBudgetList.tare = parseInt(result + this.result1)
-                }
+            }
+            if (this.information == '毛重检斤') {
+              if (parseInt(result) || parseInt(result) == 0) {
+                this.deptBudgetList.grossWeight = parseInt(
+                  result + this.result1
+                )
+              }
+            } else {
+              if (parseInt(result) || parseInt(result) == 0) {
+                this.deptBudgetList.tare = parseInt(result + this.result1)
               }
             }
-            // setTimeout(1000)
-            // value 是一个 Uint8Array
           }
-          await port.close();
-        } else {
-          console.log('the Web Serial API is not supported.', navigator);
+          // setTimeout(1000)
+          // value 是一个 Uint8Array
         }
-      },
-      qualityInspectorChange(e) {
-        console.log(e)
-      },
-      uploadSuccessHandle1(res) {
-        this.deptBudgetList.addressUrl = res.url
-      },
-      //返回按钮
-      revert() {
-        this.$router.push({
-          path: 'warehouseManagementList'
-        })
-      },
-      carChange(e) {
-        for (let i = 0; i < this.tranCarInfoList.length; i++) {
-          if (this.tranCarInfoList[i].carNo == this.deptBudgetList.carNo) {
-            this.deptBudgetList.tranCarNo = this.tranCarInfoList[i].tranCarNo
-            this.deptBudgetList.carId = this.tranCarInfoList[i].id
-          }
+        await port.close()
+      } else {
+        console.log('the Web Serial API is not supported.', navigator)
+      }
+    },
+    qualityInspectorChange(e) {
+      console.log(e)
+    },
+    uploadSuccessHandle1(res) {
+      this.deptBudgetList.addressUrl = res.url
+    },
+    //返回按钮
+    revert() {
+      this.$router.push({
+        path: 'warehouseManagementList',
+      })
+    },
+    carChange(e) {
+      for (let i = 0; i < this.tranCarInfoList.length; i++) {
+        if (this.tranCarInfoList[i].carNo == this.deptBudgetList.carNo) {
+          this.deptBudgetList.tranCarNo = this.tranCarInfoList[i].tranCarNo
+          this.deptBudgetList.carId = this.tranCarInfoList[i].id
         }
-      },
-      typeChange(e) {
-
-      },
-      contractNoChange(e) {
-        for (let i = 0; i < this.deptBudgetList1.length; i++) {
-          if (this.deptBudgetList1[i].inOutTaskNo == e) {
-             var data=this.deptBudgetList1[i]
-            if(this.deptBudgetList1[i].contractNo){
+      }
+    },
+    typeChange(e) {},
+    contractNoChange(e) {
+      for (let i = 0; i < this.deptBudgetList1.length; i++) {
+        if (this.deptBudgetList1[i].inOutTaskNo == e) {
+          var data = this.deptBudgetList1[i]
+          if (this.deptBudgetList1[i].contractNo) {
             this.deptBudgetList.contractNo = this.deptBudgetList1[i].contractNo
-            } 
-            else{
+          } else {
             this.deptBudgetList.contractNo = this.deptBudgetList1[i].moveTaskNo
-            }
-            
           }
         }
-        for (var i = 0; i < this.outContractNo.length; i++) {
-          if (this.outContractNo[i].contractNo == this.deptBudgetList.contractNo) {
-            this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
-            this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
-            this.deptBudgetList.grade = this.outContractNo[i].grade
-            this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
-            if (this.outContractNo[i].inOutType == '销售出库') {
-              this.deptBudgetList.tips='买方'+this.outContractNo[i].buyer+ '( '+this.outContractNo[i].unitContractPrice+'元/吨)'
-              this.deptBudgetList.inOutTypeKey = 1
-            } else if (this.outContractNo[i].inOutType == '移库出库') {
-              this.deptBudgetList.goodsName = data.goodsName
-              this.deptBudgetList.goodsNameKey = data.goodsNameKey
-              this.deptBudgetList.grade = data.grade
-               if(this.outContractNo[i].unitContractPrice){
-                   this.deptBudgetList.tips='入货库'+data.receiveWarehouse+ '( '+this.outContractNo[i].unitContractPrice+'元/吨)'
-              }
-              else{
-                this.deptBudgetList.tips='入货库'+data.receiveWarehouse
-              }
-              this.deptBudgetList.inOutTypeKey = 3
-            } else if (this.outContractNo[i].inOutType == '暂存入库') {
-              this.deptBudgetList.inOutTypeKey = 4
-            } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
-              this.deptBudgetList.inOutTypeKey = 5
-            } else if (this.outContractNo[i].inOutType == '采购出库') {
-              this.deptBudgetList.inOutTypeKey = 6
-            }
-            if (this.outContractNo[i].deliverType == '1') {
-              this.carstatus = true
+      }
+      for (var i = 0; i < this.outContractNo.length; i++) {
+        if (
+          this.outContractNo[i].contractNo == this.deptBudgetList.contractNo
+        ) {
+          this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
+          this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
+          this.deptBudgetList.grade = this.outContractNo[i].grade
+          this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
+          if (this.outContractNo[i].inOutType == '销售出库') {
+            this.deptBudgetList.tips =
+              '买方' +
+              this.outContractNo[i].buyer +
+              '( ' +
+              this.outContractNo[i].unitContractPrice +
+              '元/吨)'
+            this.deptBudgetList.inOutTypeKey = 1
+          } else if (this.outContractNo[i].inOutType == '移库出库') {
+            this.deptBudgetList.goodsName = data.goodsName
+            this.deptBudgetList.goodsNameKey = data.goodsNameKey
+            this.deptBudgetList.grade = data.grade
+            if (this.outContractNo[i].unitContractPrice) {
+              this.deptBudgetList.tips =
+                '入货库' +
+                data.receiveWarehouse +
+                '( ' +
+                this.outContractNo[i].unitContractPrice +
+                '元/吨)'
             } else {
-              this.carstatus = false
-            }
-            if (this.outContractNo[i].tranCarInfoList) {
-              this.options2 = this.outContractNo[i].tranCarInfoList
-              this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
-              this.carstatus = true
+              this.deptBudgetList.tips = '入货库' + data.receiveWarehouse
             }
+            this.deptBudgetList.inOutTypeKey = 3
+          } else if (this.outContractNo[i].inOutType == '暂存入库') {
+            this.deptBudgetList.inOutTypeKey = 4
+          } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
+            this.deptBudgetList.inOutTypeKey = 5
+          } else if (this.outContractNo[i].inOutType == '采购出库') {
+            this.deptBudgetList.inOutTypeKey = 6
           }
-        }
-      },
-      contractNoChange1(e) {
-        for (var i = 0; i < this.outContractNo.length; i++) {
-          if (this.outContractNo[i].contractNo == e) {
-            if (this.outContractNo[i].inOutType == '销售出库') {
-              this.deptBudgetList.inOutTypeKey = 1
-            } else if (this.outContractNo[i].inOutType == '移库出库') {
-              this.deptBudgetList.inOutTypeKey = 3
-            } else if (this.outContractNo[i].inOutType == '暂存入库') {
-              this.deptBudgetList.inOutTypeKey = 4
-            } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
-              this.deptBudgetList.inOutTypeKey = 5
-            } else if (this.outContractNo[i].inOutType == '采购出库') {
-              this.deptBudgetList.inOutTypeKey = 6
-            }
-            this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
-            this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
-            this.deptBudgetList.grade = this.outContractNo[i].grade
-            this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
-            if (this.outContractNo[i].tranCarInfoList) {
-              this.options2 = this.outContractNo[i].tranCarInfoList
-              this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
-              this.carstatus = true
-            }
+          if (this.outContractNo[i].deliverType == '1') {
+            this.carstatus = true
+          } else {
+            this.carstatus = false
+          }
+          if (this.outContractNo[i].tranCarInfoList) {
+            this.options2 = this.outContractNo[i].tranCarInfoList
+            this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
+            this.carstatus = true
           }
         }
-      },
-      dataFilter2(val) {
-        this.deptBudgetList.carNo = val
-        if (val) {
-          //val存在
-          this.options1 = this.outContractNo1.filter((item) => {
-            if (
-              !!~item.carNo.indexOf(val) ||
-              !!~item.carNo.toUpperCase().indexOf(val.toUpperCase())
-            ) {
-              return true
-            }
-          })
-        } else {
-          //val为空时,还原数组
-          this.options2 = this.tranCarInfoList
-        }
-      },
-      dataFilter(val) {
-        // console.log(val,"名")
-        this.deptBudgetList.staffList = val
-        if (val) {
-          //val存在
-          this.options = this.staffList.filter((item) => {
-            if (
-              !!~item.staffName.indexOf(val) ||
-              !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
-            ) {
-              return true
-            }
-          })
-        } else {
-          //val为空时,还原数组
-          this.options = this.staffList
-        }
-      },
-      selectstaff(e) {
-        for (var i = 0; i < this.staffList.length; i++) {
-          if (this.staffList[i].staffName == e) {
-            this.deptBudgetList.personChargeKey = this.staffList[i].staffId
+      }
+    },
+    contractNoChange1(e) {
+      for (var i = 0; i < this.outContractNo.length; i++) {
+        if (this.outContractNo[i].contractNo == e) {
+          if (this.outContractNo[i].inOutType == '销售出库') {
+            this.deptBudgetList.inOutTypeKey = 1
+          } else if (this.outContractNo[i].inOutType == '移库出库') {
+            this.deptBudgetList.inOutTypeKey = 3
+          } else if (this.outContractNo[i].inOutType == '暂存入库') {
+            this.deptBudgetList.inOutTypeKey = 4
+          } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
+            this.deptBudgetList.inOutTypeKey = 5
+          } else if (this.outContractNo[i].inOutType == '采购出库') {
+            this.deptBudgetList.inOutTypeKey = 6
+          }
+          this.deptBudgetList.goodsName = this.outContractNo[i].goodsName
+          this.deptBudgetList.goodsNameKey = this.outContractNo[i].goodsNameKey
+          this.deptBudgetList.grade = this.outContractNo[i].grade
+          this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
+          if (this.outContractNo[i].tranCarInfoList) {
+            this.options2 = this.outContractNo[i].tranCarInfoList
+            this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
+            this.carstatus = true
           }
         }
-      },
-      pureweight(e) {
-        console.log(this.deptBudgetList)
-        if (this.deptBudgetList.netWeight && this.deptBudgetList.tidalGrainWater && this.deptBudgetList
-          .solidGrainWater && this.deptBudgetList.buckleWeightRatio) {
-          this.deptBudgetList.pureWeight = (this.deptBudgetList.netWeight * (100 - (this.deptBudgetList
-            .tidalGrainWater - this.deptBudgetList.solidGrainWater) * this.deptBudgetList.buckleWeightRatio)) / 100
+      }
+    },
+    dataFilter2(val) {
+      this.deptBudgetList.carNo = val
+      if (val) {
+        //val存在
+        this.options1 = this.outContractNo1.filter((item) => {
+          if (
+            !!~item.carNo.indexOf(val) ||
+            !!~item.carNo.toUpperCase().indexOf(val.toUpperCase())
+          ) {
+            return true
+          }
+        })
+      } else {
+        //val为空时,还原数组
+        this.options2 = this.tranCarInfoList
+      }
+    },
+    dataFilter(val) {
+      // console.log(val,"名")
+      this.deptBudgetList.staffList = val
+      if (val) {
+        //val存在
+        this.options = this.staffList.filter((item) => {
+          if (
+            !!~item.staffName.indexOf(val) ||
+            !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
+          ) {
+            return true
+          }
+        })
+      } else {
+        //val为空时,还原数组
+        this.options = this.staffList
+      }
+    },
+    selectstaff(e) {
+      for (var i = 0; i < this.staffList.length; i++) {
+        if (this.staffList[i].staffName == e) {
+          this.deptBudgetList.personChargeKey = this.staffList[i].staffId
         }
-      },
-      temporaryStorage() {
-        if (!this.deptBudgetList.goodsName) {
+      }
+    },
+    pureweight(e) {
+      console.log(this.deptBudgetList)
+      if (
+        this.deptBudgetList.netWeight &&
+        this.deptBudgetList.tidalGrainWater &&
+        this.deptBudgetList.solidGrainWater &&
+        this.deptBudgetList.buckleWeightRatio
+      ) {
+        this.deptBudgetList.pureWeight =
+          (this.deptBudgetList.netWeight *
+            (100 -
+              (this.deptBudgetList.tidalGrainWater -
+                this.deptBudgetList.solidGrainWater) *
+                this.deptBudgetList.buckleWeightRatio)) /
+          100
+      }
+    },
+    temporaryStorage() {
+      if (!this.deptBudgetList.goodsName) {
+        this.$message({
+          message: '货名不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.information == '毛重检斤' && !this.deptBudgetList.grossWeight) {
+        this.$message({
+          message: '毛重不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.information == '毛重检斤' &&
+        (this.deptBudgetList.grossWeight <= 0 ||
+          this.deptBudgetList.grossWeight > 200000 ||
+          (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
+            String(this.deptBudgetList.grossWeight).length -
+              (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
+              3))
+      ) {
+        this.$message({
+          message: '毛重输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.information == '皮重检斤' && !this.deptBudgetList.tare) {
+        this.$message({
+          message: '皮重不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.information == '皮重检斤' &&
+        (this.deptBudgetList.tare < 0 ||
+          this.deptBudgetList.tare > 200000 ||
+          (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
+            String(this.deptBudgetList.tare).length -
+              (String(this.deptBudgetList.tare).indexOf('.') + 1) >
+              3))
+      ) {
+        this.$message({
+          message: '皮重输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.deptBudgetList.carNo.length > 7) {
+        this.$message({
+          message: '车牌号输入错误,请输入7个字符之内',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.contractNo) {
+        this.$message({
+          message: '合同编号不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      // if (
+      //   this.deptBudgetList.contractNo.length < 6 ||
+      //   this.deptBudgetList.contractNo.length > 20
+      // ) {
+      //   this.$message({
+      //     message: '合同编号长度不符合要求,请输入6-20个字符之内',
+      //     type: 'warning',
+      //   })
+      //   return
+      // }
+      //自检员
+      if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
+        if (
+          this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
+            2 ||
+          this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
+        ) {
           this.$message({
-            message: '货名不能为空',
+            message: '质检员姓名长度错误!',
             type: 'warning',
           })
           return
         }
-        if (this.information == '毛重检斤' && !this.deptBudgetList.grossWeight) {
+      }
+      if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
           this.$message({
-            message: '毛重不能为空',
+            message: '水分(%)非数字!',
             type: 'warning',
           })
           return
         }
-        if (this.information == '毛重检斤' && (
-            this.deptBudgetList.grossWeight <= 0 ||
-            this.deptBudgetList.grossWeight > 200000 ||
-            (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
-              String(this.deptBudgetList.grossWeight).length -
-              (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
-              3))) {
+        if (
+          this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
+          (String(
+            this.deptBudgetList.warehouseInOutDetail.waterContent
+          ).indexOf('.') != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.waterContent)
+              .length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.waterContent
+              ).indexOf('.') +
+                1) >
+              2)
+        ) {
           this.$message({
-            message: '毛重输入错误',
+            message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (this.information == '皮重检斤' && !this.deptBudgetList.tare) {
+      }
+
+      //杂质
+      if (this.deptBudgetList.warehouseInOutDetail.impurity) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
           this.$message({
-            message: '皮重不能为空',
+            message: '杂质(%)非数字!',
             type: 'warning',
           })
           return
         }
-        if (this.information == '皮重检斤' && (
-            this.deptBudgetList.tare < 0 ||
-            this.deptBudgetList.tare > 200000 ||
-            (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
-              String(this.deptBudgetList.tare).length -
-              (String(this.deptBudgetList.tare).indexOf('.') + 1) >
-              3))) {
+        if (
+          this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
+          (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.impurity
+              ).indexOf('.') +
+                1) >
+              2)
+        ) {
           this.$message({
-            message: '皮重输入错误',
+            message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (this.deptBudgetList.carNo.length > 7) {
+      }
+      //霉变
+      if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
           this.$message({
-            message: '车牌号输入错误,请输入7个字符之内',
+            message: '霉变粒(%)非数字!',
             type: 'warning',
           })
           return
         }
-        if (!this.deptBudgetList.contractNo) {
+        if (
+          this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
+          (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
+              .length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.mildewGrain
+              ).indexOf('.') +
+                1) >
+              2)
+        ) {
           this.$message({
-            message: '合同编号不能为空',
+            message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        // if (
-        //   this.deptBudgetList.contractNo.length < 6 ||
-        //   this.deptBudgetList.contractNo.length > 20
-        // ) {
-        //   this.$message({
-        //     message: '合同编号长度不符合要求,请输入6-20个字符之内',
-        //     type: 'warning',
-        //   })
-        //   return
-        // }
-        //自检员
-        if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
-          if (
-            this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
-            2 ||
-            this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
-          ) {
-            this.$message({
-              message: '质检员姓名长度错误!',
-              type: 'warning',
-            })
-            return
-          }
+      }
+
+      //热损伤
+      if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
+          this.$message({
+            message: '热损伤(%)非数字!',
+            type: 'warning',
+          })
+          return
         }
-        if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
-            this.$message({
-              message: '水分(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
-            (String(
-                this.deptBudgetList.warehouseInOutDetail.waterContent
-              ).indexOf('.') != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.waterContent)
-              .length -
+        if (
+          this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
+          (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
               (String(
-                  this.deptBudgetList.warehouseInOutDetail.waterContent
-                ).indexOf('.') +
+                this.deptBudgetList.warehouseInOutDetail.jiaorenli
+              ).indexOf('.') +
                 1) >
               2)
-          ) {
-            this.$message({
-              message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
+        ) {
+          this.$message({
+            message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
+            type: 'warning',
+          })
+          return
         }
+      }
 
-        //杂质
-        if (this.deptBudgetList.warehouseInOutDetail.impurity) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
-            this.$message({
-              message: '杂质(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
-            (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.impurity
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
+      //不完善粒(%)
+      if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
+          this.$message({
+            message: '不完善粒(%)非数字!',
+            type: 'warning',
+          })
+          return
         }
-        //霉变
-        if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
-            this.$message({
-              message: '霉变粒(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
-            (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
+        if (
+          this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
+          (String(
+            this.deptBudgetList.warehouseInOutDetail.imperfectGrain
+          ).indexOf('.') != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
               .length -
               (String(
-                  this.deptBudgetList.warehouseInOutDetail.mildewGrain
-                ).indexOf('.') +
+                this.deptBudgetList.warehouseInOutDetail.imperfectGrain
+              ).indexOf('.') +
                 1) >
               2)
-          ) {
-            this.$message({
-              message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-
-        //热损伤
-        if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
-            this.$message({
-              message: '热损伤(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
-            (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.jiaorenli
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-
-        //不完善粒(%)
-        if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
-            this.$message({
-              message: '不完善粒(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
-            (String(
-                this.deptBudgetList.warehouseInOutDetail.imperfectGrain
-              ).indexOf('.') != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
-              .length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.imperfectGrain
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        //容重
-        if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
-            this.$message({
-              message: '容重(克/升)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
-              String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf('.') != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).length -
-              (String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf('.') + 1) >
-              2) || this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 || this.deptBudgetList
-            .warehouseInOutDetail.bulkDensity < 0
-          ) {
-            this.$message({
-              message: '容重输入错误',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        console.log(this.deptBudgetList, '出库!!!!!')
-        this.$confirm(`是否保存皮重检斤`, {
-            cancelButtonText: '取消',
-            confirmButtonText: '确定',
-            type: 'warning',
-          })
-          .then(() => {
-            this.$refs.deptBudgetList.validate((valid) => {
-              if (valid) {
-                this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
-                this.deptBudgetList.skinInspector = localStorage.getItem('ws-pf_staffName')
-                this.deptBudgetList.inOutFlag = 1
-                this.deptBudgetList.pcFlag = 1
-                this.deptBudgetList.statusFlag = 1
-                this.deptBudgetList.grossWeight /= 1000
-                this.deptBudgetList.tare /= 1000
-                this.deptBudgetList.netWeight = this.deptBudgetList.netWeight.toFixed(2)
-                this.deptBudgetList.pureWeight /= 1000
-                addstorageputList(this.deptBudgetList)
-                  .toPromise()
-                  .then((response) => {
-                    if(this.reader){
-                      this.reader.cancel()
-                    }
-                    this.$message.success('保存成功')
-                    this.$router.push({
-                      path: 'warehouseManagementList'
-                    })
-                  })
-              } else {
-                EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
-                return false
-              }
-            })
-          })
-          .catch(() => {
-            return false
-          })
-      },
-      //提交按钮
-      submit() {
-        if (!this.deptBudgetList.goodsName) {
+        ) {
           this.$message({
-            message: '货名不能为空!',
+            message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (!this.deptBudgetList.grossWeight) {
+      }
+      //容重
+      if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
           this.$message({
-            message: '毛重不能为空!',
+            message: '容重(克/升)非数字!',
             type: 'warning',
           })
           return
         }
         if (
-          this.deptBudgetList.grossWeight <= 0 ||
-          this.deptBudgetList.grossWeight > 5000000 ||
-          (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
-            String(this.deptBudgetList.grossWeight).length -
-            (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
-            3)
+          (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
+            String(
+              this.deptBudgetList.warehouseInOutDetail.bulkDensity
+            ).indexOf('.') != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
+              .length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.bulkDensity
+              ).indexOf('.') +
+                1) >
+              2) ||
+          this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
+          this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
         ) {
           this.$message({
-            message: '毛重输入错误',
+            message: '容重输入错误',
             type: 'warning',
           })
           return
         }
-        if (!this.deptBudgetList.tare) {
-          this.$message({
-            message: '皮重不能为空!',
-            type: 'warning',
+      }
+      console.log(this.deptBudgetList, '出库!!!!!')
+      this.$confirm(`是否保存皮重检斤`, {
+        cancelButtonText: '取消',
+        confirmButtonText: '确定',
+        type: 'warning',
+      })
+        .then(() => {
+          this.$refs.deptBudgetList.validate((valid) => {
+            if (valid) {
+              this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
+              this.deptBudgetList.skinInspector =
+                localStorage.getItem('ws-pf_staffName')
+              this.deptBudgetList.inOutFlag = 1
+              this.deptBudgetList.pcFlag = 1
+              this.deptBudgetList.statusFlag = 1
+              this.deptBudgetList.grossWeight /= 1000
+              this.deptBudgetList.tare /= 1000
+              this.deptBudgetList.netWeight = Number(
+                this.deptBudgetList.netWeight
+              ).toFixed(2)
+              this.deptBudgetList.pureWeight /= 1000
+              addstorageputList(this.deptBudgetList)
+                .toPromise()
+                .then((response) => {
+                  if (this.reader) {
+                    this.reader.cancel()
+                  }
+                  this.$message.success('保存成功')
+                  this.$router.push({
+                    path: 'warehouseManagementList',
+                  })
+                })
+            } else {
+              EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+              return false
+            }
           })
-          return
-        }
-        if (
-          this.deptBudgetList.tare < 0 ||
-          this.deptBudgetList.tare > 500000 ||
-          (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
-            String(this.deptBudgetList.tare).length -
+        })
+        .catch(() => {
+          return false
+        })
+    },
+    //提交按钮
+    submit() {
+      if (!this.deptBudgetList.goodsName) {
+        this.$message({
+          message: '货名不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.grossWeight) {
+        this.$message({
+          message: '毛重不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.grossWeight <= 0 ||
+        this.deptBudgetList.grossWeight > 5000000 ||
+        (String(this.deptBudgetList.grossWeight).indexOf('.') != -1 &&
+          String(this.deptBudgetList.grossWeight).length -
+            (String(this.deptBudgetList.grossWeight).indexOf('.') + 1) >
+            3)
+      ) {
+        this.$message({
+          message: '毛重输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.tare) {
+        this.$message({
+          message: '皮重不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.tare < 0 ||
+        this.deptBudgetList.tare > 500000 ||
+        (String(this.deptBudgetList.tare).indexOf('.') != -1 &&
+          String(this.deptBudgetList.tare).length -
             (String(this.deptBudgetList.tare).indexOf('.') + 1) >
             3)
-        ) {
-          this.$message({
-            message: '皮重输入错误',
-            type: 'warning',
-          })
-          return
-        }
-        if (!this.deptBudgetList.netWeight) {
-          this.$message({
-            message: '净重不能为空!',
-            type: 'warning',
-          })
-          return
-        }
-        if (
-          this.deptBudgetList.netWeight <= 0 ||
-          this.deptBudgetList.netWeight >= 5000000
-        ) {
-          this.$message({
-            message: '净重输入错误!',
-            type: 'warning',
-          })
-          return
-        }
-        if (!this.deptBudgetList.grade) {
-          this.$message({
-            message: '品级不能为空!',
-            type: 'warning',
-          })
-          return
-        }
-        if (this.deptBudgetList.type == '潮粮' && !this.deptBudgetList.buckleWeightRatio) {
-          this.$message({
-            message: '扣重比不能为空',
-            type: 'warning'
-          })
-          return
-        }
-        if (
-          this.deptBudgetList.type == '潮粮' && this.deptBudgetList.buckleWeightRatio < 0 ||
-          this.deptBudgetList.type == '潮粮' && this.deptBudgetList.buckleWeightRatio > 3 ||
-          (this.deptBudgetList.type == '潮粮' && String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
-            String(this.deptBudgetList.buckleWeightRatio).length -
+      ) {
+        this.$message({
+          message: '皮重输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.netWeight) {
+        this.$message({
+          message: '净重不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.netWeight <= 0 ||
+        this.deptBudgetList.netWeight >= 5000000
+      ) {
+        this.$message({
+          message: '净重输入错误!',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.grade) {
+        this.$message({
+          message: '品级不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.type == '潮粮' &&
+        !this.deptBudgetList.buckleWeightRatio
+      ) {
+        this.$message({
+          message: '扣重比不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        (this.deptBudgetList.type == '潮粮' &&
+          this.deptBudgetList.buckleWeightRatio < 0) ||
+        (this.deptBudgetList.type == '潮粮' &&
+          this.deptBudgetList.buckleWeightRatio > 3) ||
+        (this.deptBudgetList.type == '潮粮' &&
+          String(this.deptBudgetList.buckleWeightRatio).indexOf('.') != -1 &&
+          String(this.deptBudgetList.buckleWeightRatio).length -
             (String(this.deptBudgetList.buckleWeightRatio).indexOf('.') + 1) >
             2)
-        ) {
-          this.$message({
-            message: '扣重比输入错误',
-            type: 'warning'
-          })
-          return
-        }
-        if (this.deptBudgetList.type == '潮粮' && !this.deptBudgetList.tidalGrainWater) {
-          this.$message({
-            message: '潮粮水分不能为空',
-            type: 'warning'
-          })
-          return
-        }
-        if (
-          this.deptBudgetList.type == '潮粮' && this.deptBudgetList.tidalGrainWater < 1 ||
-          this.deptBudgetList.type == '潮粮' && this.deptBudgetList.tidalGrainWater > 40 ||
-          (this.deptBudgetList.type == '潮粮' && String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
-            String(this.deptBudgetList.tidalGrainWater).length -
+      ) {
+        this.$message({
+          message: '扣重比输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.type == '潮粮' &&
+        !this.deptBudgetList.tidalGrainWater
+      ) {
+        this.$message({
+          message: '潮粮水分不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        (this.deptBudgetList.type == '潮粮' &&
+          this.deptBudgetList.tidalGrainWater < 1) ||
+        (this.deptBudgetList.type == '潮粮' &&
+          this.deptBudgetList.tidalGrainWater > 40) ||
+        (this.deptBudgetList.type == '潮粮' &&
+          String(this.deptBudgetList.tidalGrainWater).indexOf('.') != -1 &&
+          String(this.deptBudgetList.tidalGrainWater).length -
             (String(this.deptBudgetList.tidalGrainWater).indexOf('.') + 1) >
             2)
+      ) {
+        this.$message({
+          message: '潮粮水分输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.type == '潮粮' &&
+        !this.deptBudgetList.solidGrainWater
+      ) {
+        this.$message({
+          message: '干粮水分不能为空',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        (this.deptBudgetList.type == '潮粮' &&
+          this.deptBudgetList.solidGrainWater < 1) ||
+        (this.deptBudgetList.type == '潮粮' &&
+          this.deptBudgetList.solidGrainWater > 40) ||
+        (this.deptBudgetList.type == '潮粮' &&
+          String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
+          String(this.deptBudgetList.solidGrainWater).length -
+            (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
+            1)
+      ) {
+        this.$message({
+          message: '干粮水分输入错误',
+          type: 'warning',
+        })
+        return
+      }
+
+      if (!this.deptBudgetList.agent) {
+        this.$message({
+          message: '经办人不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.agent.length < 2 ||
+        this.deptBudgetList.agent.length > 10
+      ) {
+        this.$message({
+          message: '经办人姓名输入有误!',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.inOutDate) {
+        this.$message({
+          message: '出库日期不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.inOutType) {
+        this.$message({
+          message: '出库类型不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (this.deptBudgetList.boxNo && this.deptBudgetList.boxNo.length > 20) {
+        this.$message({
+          message: '箱号-1输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.boxNoOther &&
+        this.deptBudgetList.boxNoOther.length > 20
+      ) {
+        this.$message({
+          message: '箱号-2输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.titleNo &&
+        this.deptBudgetList.titleNo.length > 20
+      ) {
+        this.$message({
+          message: '封号-1输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.titleNoOther &&
+        this.deptBudgetList.titleNoOther.length > 20
+      ) {
+        this.$message({
+          message: '封号-2输入错误',
+          type: 'warning',
+        })
+        return
+      }
+      if (!this.deptBudgetList.contractNo) {
+        this.$message({
+          message: '合同编号不能为空!',
+          type: 'warning',
+        })
+        return
+      }
+      if (
+        this.deptBudgetList.contractNo.length < 6 ||
+        this.deptBudgetList.contractNo.length > 50
+      ) {
+        this.$message({
+          message: '合同编号输入有误!',
+          type: 'warning',
+        })
+        return
+      }
+      //自检员
+      if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
+        if (
+          this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
+            2 ||
+          this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
         ) {
           this.$message({
-            message: '潮粮水分输入错误',
-            type: 'warning'
+            message: '质检员姓名长度错误!',
+            type: 'warning',
           })
           return
         }
-        if (this.deptBudgetList.type == '潮粮' && !this.deptBudgetList.solidGrainWater) {
+      }
+      if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
           this.$message({
-            message: '干粮水分不能为空',
-            type: 'warning'
+            message: '水分(%)非数字!',
+            type: 'warning',
           })
           return
         }
         if (
-          this.deptBudgetList.type == '潮粮' && this.deptBudgetList.solidGrainWater < 1 ||
-          this.deptBudgetList.type == '潮粮' && this.deptBudgetList.solidGrainWater > 40 ||
-          (this.deptBudgetList.type == '潮粮' && String(this.deptBudgetList.solidGrainWater).indexOf('.') != -1 &&
-            String(this.deptBudgetList.solidGrainWater).length -
-            (String(this.deptBudgetList.solidGrainWater).indexOf('.') + 1) >
-            1)
+          this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
+          (String(
+            this.deptBudgetList.warehouseInOutDetail.waterContent
+          ).indexOf('.') != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.waterContent)
+              .length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.waterContent
+              ).indexOf('.') +
+                1) >
+              2)
         ) {
           this.$message({
-            message: '干粮水分输入错误',
-            type: 'warning'
+            message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
+            type: 'warning',
           })
           return
         }
+      }
 
-        if (!this.deptBudgetList.agent) {
+      //杂质
+      if (this.deptBudgetList.warehouseInOutDetail.impurity) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
           this.$message({
-            message: '经办人不能为空!',
+            message: '杂质(%)非数字!',
             type: 'warning',
           })
           return
         }
         if (
-          this.deptBudgetList.agent.length < 2 ||
-          this.deptBudgetList.agent.length > 10
+          this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
+          (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.impurity
+              ).indexOf('.') +
+                1) >
+              2)
         ) {
           this.$message({
-            message: '经办人姓名输入有误!',
+            message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (!this.deptBudgetList.inOutDate) {
+      }
+      //霉变
+      if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
           this.$message({
-            message: '出库日期不能为空!',
+            message: '霉变粒(%)非数字!',
             type: 'warning',
           })
           return
         }
-        if (!this.deptBudgetList.inOutType) {
+        if (
+          this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
+          (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
+              .length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.mildewGrain
+              ).indexOf('.') +
+                1) >
+              2)
+        ) {
           this.$message({
-            message: '出库类型不能为空!',
+            message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (this.deptBudgetList.boxNo&&this.deptBudgetList.boxNo.length > 20) {
+      }
+
+      //热损伤
+      if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
           this.$message({
-            message: '箱号-1输入错误',
+            message: '热损伤(%)非数字!',
             type: 'warning',
           })
           return
         }
-        if (this.deptBudgetList.boxNoOther&&this.deptBudgetList.boxNoOther.length > 20) {
+        if (
+          this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
+          (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.jiaorenli
+              ).indexOf('.') +
+                1) >
+              2)
+        ) {
           this.$message({
-            message: '箱号-2输入错误',
+            message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (this.deptBudgetList.titleNo&&this.deptBudgetList.titleNo.length > 20) {
+      }
+
+      //不完善粒(%)
+      if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
           this.$message({
-            message: '封号-1输入错误',
+            message: '不完善粒(%)非数字!',
             type: 'warning',
           })
           return
         }
-        if (this.deptBudgetList.titleNoOther&&this.deptBudgetList.titleNoOther.length > 20) {
+        if (
+          this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
+          this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
+          (String(
+            this.deptBudgetList.warehouseInOutDetail.imperfectGrain
+          ).indexOf('.') != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
+              .length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.imperfectGrain
+              ).indexOf('.') +
+                1) >
+              2)
+        ) {
           this.$message({
-            message: '封号-2输入错误',
+            message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
             type: 'warning',
           })
           return
         }
-        if (!this.deptBudgetList.contractNo) {
+      }
+      //容重
+      if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
+        if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
           this.$message({
-            message: '合同编号不能为空!',
+            message: '容重(克/升)非数字!',
             type: 'warning',
           })
           return
         }
         if (
-          this.deptBudgetList.contractNo.length < 6 ||
-          this.deptBudgetList.contractNo.length > 50
+          (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
+            String(
+              this.deptBudgetList.warehouseInOutDetail.bulkDensity
+            ).indexOf('.') != -1 &&
+            String(this.deptBudgetList.warehouseInOutDetail.bulkDensity)
+              .length -
+              (String(
+                this.deptBudgetList.warehouseInOutDetail.bulkDensity
+              ).indexOf('.') +
+                1) >
+              2) ||
+          this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 ||
+          this.deptBudgetList.warehouseInOutDetail.bulkDensity < 0
         ) {
           this.$message({
-            message: '合同编号输入有误!',
+            message: '容重输入错误',
             type: 'warning',
           })
           return
         }
-        //自检员
-        if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
-          if (
-            this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
-            2 ||
-            this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
-          ) {
-            this.$message({
-              message: '质检员姓名长度错误!',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
-            this.$message({
-              message: '水分(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
-            (String(
-                this.deptBudgetList.warehouseInOutDetail.waterContent
-              ).indexOf('.') != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.waterContent)
-              .length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.waterContent
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-
-        //杂质
-        if (this.deptBudgetList.warehouseInOutDetail.impurity) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
-            this.$message({
-              message: '杂质(%)非数字!',
-              type: 'warning',
-            })
-            return
+      }
+      this.$confirm(`确定提交出库信息`, {
+        cancelButtonText: '取消',
+        confirmButtonText: '确定',
+        type: 'warning',
+      }).then(() => {
+        this.$refs.deptBudgetList.validate((valid) => {
+          if (valid) {
+            this.deptBudgetList.grossWeight /= 1000
+            this.deptBudgetList.tare /= 1000
+            this.deptBudgetList.netWeight /= 1000
+            this.deptBudgetList.pureWeight /= 1000
+            this.deptBudgetList.deductionAmount *= 1000
+            this.deptBudgetList.deductionWeight /= 1000
+            this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
+            this.deptBudgetList.skinInspector =
+              localStorage.getItem('ws-pf_staffName')
+            this.deptBudgetList.inOutFlag = 1
+            this.deptBudgetList.statusFlag = 3
+            addstorageputList(this.deptBudgetList)
+              .toPromise()
+              .then((response) => {
+                if (this.reader) {
+                  this.reader.cancel()
+                }
+                this.$message.success('添加成功')
+                this.$router.push({
+                  path: 'warehouseManagementList',
+                })
+              })
+              .catch((response) => {
+                this.deptBudgetList.grossWeight = Math.round(
+                  this.deptBudgetList.grossWeight * 1000
+                )
+                this.deptBudgetList.tare = Math.round(
+                  this.deptBudgetList.tare * 1000
+                )
+                this.deptBudgetList.netWeight = Math.round(
+                  this.deptBudgetList.netWeight * 1000
+                )
+                this.deptBudgetList.pureWeight = Math.round(
+                  this.deptBudgetList.pureWeight * 1000
+                )
+                this.deptBudgetList.deductionAmount = Math.round(
+                  this.deptBudgetList.deductionAmount / 1000
+                )
+                this.deptBudgetList.deductionWeight = Math.round(
+                  this.deptBudgetList.deductionWeight * 1000
+                )
+              })
+          } else {
+            EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+            return false
           }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
-            (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.impurity
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
+        })
+      })
+    },
+    tarechange(e) {
+      if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
+        this.deptBudgetList.netWeight = Number(
+          this.deptBudgetList.grossWeight - this.deptBudgetList.tare
+        ).toFixed(2)
+      }
+    },
+    grossWeightchange(e) {
+      if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
+        this.deptBudgetList.netWeight = Number(
+          this.deptBudgetList.grossWeight - this.deptBudgetList.tare
+        ).toFixed(2)
+      }
+    },
+    selectgoodsName(e) {
+      for (var i = 0; i < this.goodnameList.length; i++) {
+        if (this.goodnameList[i].goodsName == e) {
+          this.deptBudgetList.goodsNameKey = this.goodnameList[i].goodsNameKey
+          if (e == '玉米(潮粮)') {
+            this.deptBudgetList.type = '潮粮'
+          } else {
+            this.deptBudgetList.type = '干粮'
           }
         }
-        //霉变
-        if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
-            this.$message({
-              message: '霉变粒(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
-            (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.mildewGrain)
-              .length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.mildewGrain
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
+      }
+    },
+    selectpackingMethod(e) {
+      for (var i = 0; i < this.packtypeList.length; i++) {
+        if (this.packtypeList[i].constValue == e) {
+          this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
         }
-
-        //热损伤
-        if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
-            this.$message({
-              message: '热损伤(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
-            (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
-                '.'
-              ) != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.jiaorenli
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
+      }
+    },
+    selectstorageType(e) {
+      for (var i = 0; i < this.deliveryType.length; i++) {
+        if (this.deliveryType[i].constValue == e) {
+          this.deptBudgetList.inOutTypeKey = this.deliveryType[i].constKey
         }
+      }
+    },
+    handleClose() {
+      this.accessoryTFs = false
+    },
+    handleSizeChange(val) {
+      console.log(`每页 ${val} 条`)
+      this.pageSize = val
+      this.getList()
+    },
+    handleCurrentChange(val) {
+      this.currentPage = val
+      console.log(`当前页: ${val}`)
+      this.getList()
+    },
+    getList() {
+      // 品级
+      pullDown({
+        constId: 'CON3',
+      })
+        .toPromise()
+        .then((response) => {
+          this.gradeList = response
+        })
 
-        //不完善粒(%)
-        if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
-            this.$message({
-              message: '不完善粒(%)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
-            this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
-            (String(
-                this.deptBudgetList.warehouseInOutDetail.imperfectGrain
-              ).indexOf('.') != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)
-              .length -
-              (String(
-                  this.deptBudgetList.warehouseInOutDetail.imperfectGrain
-                ).indexOf('.') +
-                1) >
-              2)
-          ) {
-            this.$message({
-              message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        //容重
-        if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
-          if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
-            this.$message({
-              message: '容重(克/升)非数字!',
-              type: 'warning',
-            })
-            return
-          }
-          if (
-            (this.deptBudgetList.warehouseInOutDetail.bulkDensity &&
-              String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf('.') != -1 &&
-              String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).length -
-              (String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf('.') + 1) >
-              2) || this.deptBudgetList.warehouseInOutDetail.bulkDensity > 1000 || this.deptBudgetList
-            .warehouseInOutDetail.bulkDensity < 0
-          ) {
-            this.$message({
-              message: '容重输入错误',
-              type: 'warning',
-            })
-            return
-          }
-        }
-        this.$confirm(`确定提交出库信息`, {
-          cancelButtonText: '取消',
-          confirmButtonText: '确定',
-          type: 'warning',
-        }).then(() => {
-          this.$refs.deptBudgetList.validate((valid) => {
-            if (valid) {
-              this.deptBudgetList.grossWeight /= 1000
-              this.deptBudgetList.tare /= 1000
-              this.deptBudgetList.netWeight /= 1000
-              this.deptBudgetList.pureWeight /= 1000
-              this.deptBudgetList.deductionAmount *= 1000
-              this.deptBudgetList.deductionWeight /= 1000
-              this.deptBudgetList.compId = localStorage.getItem('ws-pf_compId')
-              this.deptBudgetList.skinInspector = localStorage.getItem('ws-pf_staffName')
-              this.deptBudgetList.inOutFlag = 1
-              this.deptBudgetList.statusFlag = 3
-              addstorageputList(this.deptBudgetList)
-                .toPromise()
-                .then((response) => {
-                  if(this.reader){
-                    this.reader.cancel()
-                  }
-                  this.$message.success('添加成功')
-                  this.$router.push({
-                    path: 'warehouseManagementList'
-                  })
-                }).catch((response) => {
-                    this.deptBudgetList.grossWeight = Math.round(this.deptBudgetList.grossWeight*1000)
-                    this.deptBudgetList.tare = Math.round(this.deptBudgetList.tare*1000)
-                    this.deptBudgetList.netWeight = Math.round(this.deptBudgetList.netWeight*1000)
-                    this.deptBudgetList.pureWeight = Math.round(this.deptBudgetList.pureWeight*1000)
-                    this.deptBudgetList.deductionAmount = Math.round(this.deptBudgetList.deductionAmount/1000)
-                    this.deptBudgetList.deductionWeight = Math.round(this.deptBudgetList.deductionWeight*1000)
-                    })
-            } else {
-              EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
-              return false
-            }
-          })
+      // 类型
+      if (this.deptBudgetList.warehouseType == 1) {
+        // 货名
+        goodsname({
+          positionId: this.$route.query.positionId,
         })
-      },
-      tarechange(e) {
-        if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
-          this.deptBudgetList.netWeight = Number(
-            this.deptBudgetList.grossWeight - this.deptBudgetList.tare
-          ).toFixed(2)
-        }
-      },
-      grossWeightchange(e) {
-        if (this.deptBudgetList.grossWeight && this.deptBudgetList.tare) {
-          this.deptBudgetList.netWeight = Number(
-            this.deptBudgetList.grossWeight - this.deptBudgetList.tare
-          ).toFixed(2)
-        }
-      },
-      selectgoodsName(e) {
-        for (var i = 0; i < this.goodnameList.length; i++) {
-          if (this.goodnameList[i].goodsName == e) {
-            this.deptBudgetList.goodsNameKey = this.goodnameList[i].goodsNameKey
-            if(e=='玉米(潮粮)'){
-              this.deptBudgetList.type='潮粮'
-            }else{
-              this.deptBudgetList.type='干粮'
-            }
-          }
-        }
-      },
-      selectpackingMethod(e) {
-        for (var i = 0; i < this.packtypeList.length; i++) {
-          if (this.packtypeList[i].constValue == e) {
-            this.deptBudgetList.packingMethodKey = this.packtypeList[i].constKey
-          }
-        }
-      },
-      selectstorageType(e) {
-        for (var i = 0; i < this.deliveryType.length; i++) {
-          if (this.deliveryType[i].constValue == e) {
-            this.deptBudgetList.inOutTypeKey = this.deliveryType[i].constKey
-          }
-        }
-      },
-      handleClose() {
-        this.accessoryTFs = false
-      },
-      handleSizeChange(val) {
-        console.log(`每页 ${val} 条`)
-        this.pageSize = val
-        this.getList()
-      },
-      handleCurrentChange(val) {
-        this.currentPage = val
-        console.log(`当前页: ${val}`)
-        this.getList()
-      },
-      getList() {
-        // 品级
-        pullDown({
-            constId: 'CON3'
-          })
           .toPromise()
           .then((response) => {
-            this.gradeList = response
-          })
-
-        // 类型
-        if (this.deptBudgetList.warehouseType == 1) {
-          // 货名
-          goodsname({
-              positionId: this.$route.query.positionId
-            })
-            .toPromise()
-            .then((response) => {
-              this.goodnameList = response
-            })
-          //类型
-          pullDown({
-              constId: 'CON6'
-            })
-            .toPromise()
-            .then((response) => {
-              this.deliveryType = response
-            })
-        } else if (this.deptBudgetList.warehouseType == 2) {
-          goodsnameXiala({
-              baseId: this.deptBudgetList.warehouseId
-            })
-            .toPromise()
-            .then((response) => {
-              this.goodnameList = response
-            })
-          pullDown({
-              constId: 'WARE2'
-            })
-            .toPromise()
-            .then((response) => {
-              this.deliveryType = response
-            })
-        }
-        //合同编号
-        xialaNo({
-            compId: localStorage.getItem('ws-pf_compId'),
-            flag: 5
+            this.goodnameList = response
           })
+        //类型
+        pullDown({
+          constId: 'CON6',
+        })
           .toPromise()
           .then((response) => {
-            this.outContractNo = response
+            this.deliveryType = response
           })
-        //经办人
-        getstaff({
-            compId: localStorage.getItem('ws-pf_compId'),
-            warehouseId: this.deptBudgetList.baseId
+      } else if (this.deptBudgetList.warehouseType == 2) {
+        goodsnameXiala({
+          baseId: this.deptBudgetList.warehouseId,
+        })
+          .toPromise()
+          .then((response) => {
+            this.goodnameList = response
           })
+        pullDown({
+          constId: 'WARE2',
+        })
           .toPromise()
           .then((response) => {
-            // this.agent = response
-            this.qualityInspectorList = response
-            this.options = response
-            this.staffList = response
+            this.deliveryType = response
           })
-      },
-      selecttaskType(e) {
-        for (var i = 0; i < this.taskTypeList.length; i++) {
-          if (this.taskTypeList[i].value == e) {
-            this.searchType = this.taskTypeList[i].type
-          }
-        }
-      },
-      fujian(row) {
-        if (
-          row.receiveAttachmentPath === null ||
-          row.receiveAttachmentPath === ''
-        ) {
-          EventBus.$emit(
-            'warning',
-            this.$t('system.noticeCircular.NoInformation')
-          )
-        } else {
-          this.accessoryTFs = true
-        }
-        this.appendixIdss = row.receiveAttachmentPath
-      },
-      handleExamine(row) {
-        this.$router.push({
-          name: 'salesContractExamine',
-          query: {
-            id: row.id
-          },
+      }
+      //合同编号
+      xialaNo({
+        compId: localStorage.getItem('ws-pf_compId'),
+        flag: 5,
+      })
+        .toPromise()
+        .then((response) => {
+          this.outContractNo = response
+        })
+      //经办人
+      getstaff({
+        compId: localStorage.getItem('ws-pf_compId'),
+        warehouseId: this.deptBudgetList.baseId,
+      })
+        .toPromise()
+        .then((response) => {
+          // this.agent = response
+          this.qualityInspectorList = response
+          this.options = response
+          this.staffList = response
         })
-      },
-      //删除
-      approve() {},
-      listQuery() {},
-      total() {},
-      clearfiltQuery() {},
-      selectCrtDuty() {},
     },
-  }
+    selecttaskType(e) {
+      for (var i = 0; i < this.taskTypeList.length; i++) {
+        if (this.taskTypeList[i].value == e) {
+          this.searchType = this.taskTypeList[i].type
+        }
+      }
+    },
+    fujian(row) {
+      if (
+        row.receiveAttachmentPath === null ||
+        row.receiveAttachmentPath === ''
+      ) {
+        EventBus.$emit(
+          'warning',
+          this.$t('system.noticeCircular.NoInformation')
+        )
+      } else {
+        this.accessoryTFs = true
+      }
+      this.appendixIdss = row.receiveAttachmentPath
+    },
+    handleExamine(row) {
+      this.$router.push({
+        name: 'salesContractExamine',
+        query: {
+          id: row.id,
+        },
+      })
+    },
+    //删除
+    approve() {},
+    listQuery() {},
+    total() {},
+    clearfiltQuery() {},
+    selectCrtDuty() {},
+  },
+}
 </script>
 <style lang="scss" scoped>
-  /deep/.basicInformation {
-    .ws-info-table {
+/deep/.basicInformation {
+  .ws-info-table {
+    border: none;
+  }
+
+  .el-form-item {
+    width: 33.3333%;
+    border: none;
+
+    .el-form-item__label {
+      background: transparent;
       border: none;
     }
 
-    .el-form-item {
-      width: 33.3333%;
+    .el-form-item__content {
       border: none;
-
-      .el-form-item__label {
-        background: transparent;
-        border: none;
-      }
-
-      .el-form-item__content {
-        border: none;
-      }
     }
   }
+}
 
-  .el-button--default {
-    color: #5473e8;
-    border-color: #5473e8;
-  }
+.el-button--default {
+  color: #5473e8;
+  border-color: #5473e8;
+}
 
-  .title {
-    position: relative;
-    padding-left: 10px;
-  }
+.title {
+  position: relative;
+  padding-left: 10px;
+}
 
-  .title::before {
-    content: '';
-    display: inline-block;
-    width: 5px;
-    height: 30px;
-    background: #5473e8;
-    position: absolute;
-    left: 0;
-  }
+.title::before {
+  content: '';
+  display: inline-block;
+  width: 5px;
+  height: 30px;
+  background: #5473e8;
+  position: absolute;
+  left: 0;
+}
 
-  .el-form {
-    padding: 0 10%;
-  }
+.el-form {
+  padding: 0 10%;
+}
 
-  .el-button--primary {
-    background-color: #5878e8;
-    border-color: #5878e8;
-  }
+.el-button--primary {
+  background-color: #5878e8;
+  border-color: #5878e8;
+}
 
-  .el-col {
-    background: #f6f7fc;
-  }
+.el-col {
+  background: #f6f7fc;
+}
 
-  .bg-right {
-    text-align: right;
-    padding: 16px 20px;
-  }
+.bg-right {
+  text-align: right;
+  padding: 16px 20px;
+}
 
-  .center {
-    position: relative;
-    top: 50px;
-    width: 40%;
-    height: 2000px;
-    margin: 0 auto;
-  }
+.center {
+  position: relative;
+  top: 50px;
+  width: 40%;
+  height: 2000px;
+  margin: 0 auto;
+}
 
-  //选填
-  /deep/.el-form-item {
-    width: 50%;
-  }
+//选填
+/deep/.el-form-item {
+  width: 50%;
+}
 
-  .container {
-    overflow: scroll;
-    height: 120vh;
-  }
+.container {
+  overflow: scroll;
+  height: 120vh;
+}
 
-  /deep/.ws-info-table .el-form-item .el-form-item__label {
-    text-align: center;
-  }
+/deep/.ws-info-table .el-form-item .el-form-item__label {
+  text-align: center;
+}
 
-  .deliverydate {
-    display: inline-block;
-    width: 10%;
-  }
+.deliverydate {
+  display: inline-block;
+  width: 10%;
+}
 
-  .center {
-    margin-top: -60px;
-    width: 80%;
-  }
+.center {
+  margin-top: -60px;
+  width: 80%;
+}
 
-  //仓位
-  .position {
-    background: #afb5cb;
-    border-radius: 2px;
-    font-size: 12px;
-    color: #ffffff;
-    line-height: 20px;
-    padding: 2px 4px;
-    position: relative;
-    top: -2px;
-  }
+//仓位
+.position {
+  background: #afb5cb;
+  border-radius: 2px;
+  font-size: 12px;
+  color: #ffffff;
+  line-height: 20px;
+  padding: 2px 4px;
+  position: relative;
+  top: -2px;
+}
 
-  .neifor /deep/.ws-info-table .el-form-item .el-form-item__label {
-    background: #f6f7fc;
-  }
+.neifor /deep/.ws-info-table .el-form-item .el-form-item__label {
+  background: #f6f7fc;
+}
 
-  .neifor .ws-info-table {
-    border-left: 1px solid #cdd2dc;
-    border-top: 1px solid #cdd2dc;
-  }
+.neifor .ws-info-table {
+  border-left: 1px solid #cdd2dc;
+  border-top: 1px solid #cdd2dc;
+}
 
-  .neifor .ws-info-table .el-form-item {
-    border-right: 1px solid #cdd2dc;
-    border-bottom: 1px solid #cdd2dc;
-  }
+.neifor .ws-info-table .el-form-item {
+  border-right: 1px solid #cdd2dc;
+  border-bottom: 1px solid #cdd2dc;
+}
 
-  .inspector /deep/.ws-info-table .el-form-item .el-form-item__label {
-    width: 59px;
-  }
+.inspector /deep/.ws-info-table .el-form-item .el-form-item__label {
+  width: 59px;
+}
 
-  //表格文字
-  /deep/.ws-info-table .el-form-item .el-form-item__label {
-    text-align: center;
-    font-size: 14px;
-    font-family: PingFangSC-Regular, PingFang SC;
-    font-weight: 400;
-    color: #8890b1;
-    line-height: 16px;
-  }
+//表格文字
+/deep/.ws-info-table .el-form-item .el-form-item__label {
+  text-align: center;
+  font-size: 14px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  font-weight: 400;
+  color: #8890b1;
+  line-height: 16px;
+}
 
-  .inspector {
-    width: 50%;
-  }
+.inspector {
+  width: 50%;
+}
 
-  //质检员
-  .inspector .el-form-item__content {
-    text-align: left;
-    margin-left: 0px;
-  }
+//质检员
+.inspector .el-form-item__content {
+  text-align: left;
+  margin-left: 0px;
+}
 
-  .small-title {
-    position: relative;
-    padding: 10px;
-    font-weight: 600;
-  }
+.small-title {
+  position: relative;
+  padding: 10px;
+  font-weight: 600;
+}
 
-  .small-title::before {
-    position: absolute;
-    content: '';
-    display: block;
-    background: #5473e8;
-    width: 4px;
-    height: 14px;
-    left: 0px;
-    top: 13px;
-  }
+.small-title::before {
+  position: absolute;
+  content: '';
+  display: block;
+  background: #5473e8;
+  width: 4px;
+  height: 14px;
+  left: 0px;
+  top: 13px;
+}
+.top {
+  background: black;
+  color: #2aff7c;
+  font-size: 32px;
+  text-align: right;
+  padding: 20px;
+  border-radius: 10px;
+  margin: 0 20px 20px 20px;
 
-  //下面列表
-  .neifor {
-    width: 80%;
-    background-color: #f6f7fc;
+  .car-type {
+    text-align: left;
   }
 
-  /deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
-    width: 35%;
-    text-align: center;
+  .kg-style {
+    font-size: 30px;
   }
+}
+.weight {
+  font-size: 68px;
+}
+//下面列表
+.neifor {
+  width: 80%;
+  background-color: #f6f7fc;
+}
 
-  /deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
-    width: 60%;
-    background-color: #f6f7fc;
-  }
+/deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
+  width: 35%;
+  text-align: center;
+}
 
-  /deep/.neifor .el-input--small .el-input__inner {
-    width: 100%;
-  }
+/deep/.neifor .ws-info-table .el-form-item .el-form-item__content {
+  width: 60%;
+  background-color: #f6f7fc;
+}
+
+/deep/.neifor .el-input--small .el-input__inner {
+  width: 100%;
+}
 </style>

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است