gjy 3 năm trước cách đây
mục cha
commit
c6198dd5af

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

@@ -21,7 +21,11 @@
       <!-- 使用租户 -->
       
       <div class="hidden-content">
+<<<<<<< HEAD
         <el-input ref="hiddenFocus" autocomplete="off" auto-complete="new-password" type="password" class="input-Style" v-model="barCode" size="small" @focus="focus" @blur="blur"
+=======
+        <el-input ref="hiddenFocus" type="password" class="input-Style" readonly v-model="barCode" size="small" @focus="focus" @blur="blur" autocomplete="off" 
+>>>>>>> 0ac5e0a88855fee27f238cc34df869a56246713c
           @keyup.enter.native="payCode" placeholder="扫码枪内容"></el-input>
         <div v-show="isOpenCodeGun" class="code-scan-text">扫码枪已连接</div>
         <div v-show="!isOpenCodeGun" @click="setCodeGun" class="code-scan-text">点我扫码</div>
@@ -594,12 +598,17 @@
       setCodeGun() {
         this.$refs['hiddenFocus'].focus()
       },
-      focus() {
+      focus(e) {
+          setTimeout(() => {
+        e.target.removeAttribute('readonly');
+        }, 300)
         console.log('当前焦点状态')
         this.barCode = ''
         this.isOpenCodeGun = true
       },
-      blur() {
+      blur(e) {
+         e.target.setAttribute("readonly", 'true');
+
         console.log('当前已失去焦点状态')
         this.isOpenCodeGun = false
       },

+ 1 - 1
src/views/houseSelfCollect/customerManagementAdd.vue

@@ -1,6 +1,6 @@
 <!--客户管理添加-->
 <template>
-  <div class="center">
+  <div class="container">
     <el-row>
       <el-col :span="12">
         <h2 class="bg-left titleup">{{ trader }}粮商</h2>

+ 1 - 1
src/views/houseSelfCollect/inspectInfo.vue

@@ -1,6 +1,6 @@
 <!--质检信息-->
 <template>
-  <div class="center">
+  <div class="container">
     <el-row>
       <el-col :span="12">
         <h2 class="bg-left titleup">{{ information }}信息</h2>

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 399 - 520
src/views/houseSelfCollect/settlement.vue


+ 6 - 16
src/views/taskManagement/tranManagementWarehouseInOutTaskAdd.vue

@@ -673,7 +673,7 @@
 								this.gradestatus=false
 							}
 						}
-						
+
 						console.log(this.warehouseNameList[i])
 						//经办人
 						getstaff({
@@ -892,8 +892,8 @@
 						return
 					}
 					}
-					
-					
+
+
 					if (!this.dataList.predictDate) {
 						this.$message({
 							message: '预计出库日期不能为空!',
@@ -1043,7 +1043,7 @@
 						return
 					}
 					}
-					
+
 					if (!this.dataList1.predictDate) {
 						this.$message({
 							message: '预计入库日期不能为空!',
@@ -1294,7 +1294,7 @@
 						return
 					}
 					}
-					
+
 					if (!this.dataList.predictDate) {
 						this.$message({
 							message: '预计出库日期不能为空!',
@@ -1302,7 +1302,7 @@
 						})
 						return
 					}
-					
+
 					if (!this.dataList1.predictDate) {
 						this.$message({
 							message: '预计入库日期不能为空!',
@@ -1847,16 +1847,6 @@
 		background: #e8ecf6;
 		box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
 	}
-
-	.winseaview-view {
-		padding: 0 0 20px;
-	}
-
-	.container {
-		overflow: scroll;
-		height: 93vh;
-	}
-
 	.el-radio-group {
 		font-size: 0;
 		margin-top: 20px;

+ 1846 - 2246
src/views/warehouse/warehouseManagementGross.vue

@@ -6,19 +6,9 @@
         <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>
@@ -26,28 +16,14 @@
     <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="balance-row">
-          <BalanceAlert
-            class="left"
-            v-if="isShowBalance"
-            ref="weightChild"
-            :deptBudgetList="deptBudgetList"
-            :information="information"
-            v-on:balanceListen="setVal"
-          ></BalanceAlert>
+          <BalanceAlert class="left" v-if="isShowBalance" ref="weightChild" :deptBudgetList="deptBudgetList"
+            :information="information" v-on:balanceListen="setVal"></BalanceAlert>
           <div class="top">
             <div class="car-type">毛重</div>
             <div class="weight">
@@ -63,160 +39,61 @@
             <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="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="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="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="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"
-                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">
-                <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="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 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="deductionAmount"
-              >
-                <ws-input
-                  @input="kkInput(deptBudgetList.deductionAmount)"
-                  v-model="deptBudgetList.deductionAmount"
-                  placeholder="请输入扣款金额"
-                  maxlength="120"
-                  size="small"
-                />
+              <ws-form-item label="扣款(元/公斤)" span="1" prop="deductionAmount">
+                <ws-input @input="kkInput(deptBudgetList.deductionAmount)" v-model="deptBudgetList.deductionAmount"
+                  placeholder="请输入扣款金额" maxlength="120" size="small" />
               </ws-form-item>
               <!-- <ws-form-item
                 v-if="deptBudgetList.type == '潮粮'"
@@ -287,48 +164,21 @@
                -->
               <!-- 品级 -->
               <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="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" 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>
               <!-- 经办人(可多选) -->
@@ -353,19 +203,10 @@
               </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>
               <!-- onkeyup="value=value.replace(/[^\A-\Z0-9\u4E00-\u9FA5\.]/g,'')" -->
@@ -374,286 +215,111 @@
           <div class="right" style="width: 33.3333%">
             <ws-info-table>
               <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="
+                <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=""
-                />
+                  " 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="
+                <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=""
-                />
+                  " src="../../../public/img/edit.png" @click="editClick(2)" alt="" />
               </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="
+              <ws-form-item label="车牌号" span="1" prop="carNo" v-if="
                   deptBudgetList.outType == '汽运' ||
                   deptBudgetList.outType == '集装箱船'
-                "
-              >
-                <ws-input
-                  v-if="options2.length == 0"
-                  v-model="deptBudgetList.carNo"
-                  placeholder="请输入车牌号"
-                  maxlength="7"
-                  size="small"
-                />
-                <el-select
-                  v-if="carstatus && options2.length > 0"
-                  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="options2.length == 0" v-model="deptBudgetList.carNo" placeholder="请输入车牌号" maxlength="7"
+                  size="small" />
+                <el-select v-if="carstatus && options2.length > 0" 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>
-                <el-select
-                  v-if="!carstatus && options2.length > 0"
-                  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"
-                    :value="item.carNo"
-                  />
+                <el-select v-if="!carstatus && options2.length > 0" 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" :value="item.carNo" />
                 </el-select>
-              <span style='padding-left:10px;'>发货重量(吨):{{deptBudgetList.loadNetWeight}}</span>  
+                <span style='padding-left:10px;'>发货重量(吨):{{deptBudgetList.loadNetWeight}}</span>
               </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="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-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="
+              <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-input v-model="deptBudgetList.boxNo" placeholder="请输入箱号" maxlength="20" size="small" />
               </ws-form-item>
-              <ws-form-item
-                label="箱号-2"
-                span="1"
-                prop="boxNoOther"
-                v-if="
+              <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-input v-model="deptBudgetList.boxNoOther" placeholder="请输入箱号" maxlength="20" size="small" />
               </ws-form-item>
-              <ws-form-item
-                label="封号-1"
-                span="1"
-                prop="titleNo"
-                v-if="
+              <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-input v-model="deptBudgetList.titleNo" placeholder="请输入封号" maxlength="20" size="small" />
               </ws-form-item>
-              <ws-form-item
-                label="封号-2"
-                span="1"
-                prop="titleNoOther"
-                v-if="
+              <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-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>
               <!-- onkeyup="value=value.replace(/[^\A-\Z0-9\u4E00-\u9FA5\.]/g,'')" -->
             </ws-info-table>
           </div>
         </div>
-        <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>
@@ -674,11 +340,7 @@
       <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=""
-        />
+        <img style="width: 100px; height: 100px" :src="deptBudgetList.addressUrl" alt="" />
       </div>
       <div class="small-title">化验数据(选填)</div>
       <div class="inspector">
@@ -693,19 +355,10 @@
         </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>
@@ -714,2071 +367,2018 @@
         <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 BalanceAlert from '@/components/balanceAlert'
-// import { dayjs, fmoney, EventBus } from 'base-core-lib'
-import { dayjs, EventBus } from 'base-core-lib'
-export default {
-  name: 'viewSpareMoney',
-  components: {
-    WsUpload,
-    Pagination,
-    BalanceAlert,
-  },
-  watch: {
-    // vesselId(val) {
-    //   this.getList()
-    // },
-    isShow(val) {
-      this.showType = val
+  import {
+    pullDown,
+    addstorageputList,
+    xialaNo,
+    getstaff,
+    getReceiptTaskNo,
+  } from '@/model/warehouse/index'
+  import Pagination from '@/components/Pagination'
+  import WsUpload from '@/components/WsUpload'
+  import BalanceAlert from '@/components/balanceAlert'
+  // import { dayjs, fmoney, EventBus } from 'base-core-lib'
+  import {
+    dayjs,
+    EventBus
+  } from 'base-core-lib'
+  export default {
+    name: 'viewSpareMoney',
+    components: {
+      WsUpload,
+      Pagination,
+      BalanceAlert,
     },
-  },
-  data() {
-    return {
-      //有没有称
-      isShowBalance: false,
-      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'),
+    watch: {
+      // vesselId(val) {
+      //   this.getList()
+      // },
+      isShow(val) {
+        this.showType = val
       },
-      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()
-        },
-      },
-      accessoryTFs: false,
-      allowEdit: true,
-      param: 9600,
-      information: '',
-      result1: '00',
-      multiSelector: [
-        {
-          name: '汽运',
-          value: '0',
-        },
-        {
-          name: '火运',
-          value: '1',
+    },
+    data() {
+      return {
+        //有没有称
+        isShowBalance: false,
+        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'),
         },
-        {
-          name: '集装箱船',
-          value: '2',
+        contractList: [],
+        deptBudgetList: {
+          type: '干粮',
+          freight: 0,
+          cost: '',
+          addressUrl: '',
+          warehouseInOutDetail: {},
+          deductionAmount: 0,
+          deductionWeight: 0,
+          grossWeight: '',
+          tare: '',
+          inOutDate: '',
         },
-        {
-          name: '散船',
-          value: '3',
+        historyList: [],
+        cost: '',
+        pickerBeginDateBefore: {
+          disabledDate: (time) => {
+            return time.getTime() > Date.now()
+          },
         },
-      ],
-    }
-  },
-  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 {
-      }
-    }
-    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'
-    // }
-    if (this.$route.query.automaticWeightAcquisition == '1') {
-      this.isShowBalance = true
-    }
-  },
-  methods: {
-    setVal(data) {
-      if (this.information == '毛重检斤') {
-        this.deptBudgetList.grossWeight = data
-      } else {
-        this.deptBudgetList.tare = data
+        accessoryTFs: false,
+        allowEdit: true,
+        param: 9600,
+        information: '',
+        result1: '00',
+        multiSelector: [{
+            name: '汽运',
+            value: '0',
+          },
+          {
+            name: '火运',
+            value: '1',
+          },
+          {
+            name: '集装箱船',
+            value: '2',
+          },
+          {
+            name: '散船',
+            value: '3',
+          },
+        ],
       }
     },
-    openPort() {
-      this.$refs.weightChild.openPort()
-    },
-    qualityInspectorChange(e) {
-      console.log(e)
-    },
-    kkInput(val) {
-      console.log(val)
-      if (this.isGetCost) {
-        if (this.deptBudgetList.cost > val) {
+    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 {}
       }
-    },
-    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
-          }
+      getReceiptTaskNo({
+          flag: 2,
+          warehouseName: this.deptBudgetList.warehouseName,
+          agentKey: localStorage.getItem('ws-pf_userId'),
         })
-      } else {
-        //val为空时,还原数组
-        this.options1 = this.outContractNo
+        .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'
+      // }
+      if (this.$route.query.automaticWeightAcquisition == '1') {
+        this.isShowBalance = 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
+    methods: {
+      setVal(data) {
+        if (this.information == '毛重检斤') {
+          this.deptBudgetList.grossWeight = data
+        } else {
+          this.deptBudgetList.tare = data
+        }
+      },
+      openPort() {
+        this.$refs.weightChild.openPort()
+      },
+      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
           }
+        }
+      },
+      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
+        }
+      },
+      //返回按钮
+      revert() {
+        this.$router.push({
+          path: 'warehouseManagementList',
         })
-      } 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
-          )
-          if(this.deptBudgetList.inOutType=='移库入库'){
-            if(!this.deptBudgetList.cost){
-              this.deptBudgetList.cost=this.tranCarInfoList[i].cost
+      },
+      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
+            )
+            if (this.deptBudgetList.inOutType == '移库入库') {
+              if (!this.deptBudgetList.cost) {
+                this.deptBudgetList.cost = this.tranCarInfoList[i].cost
+              }
+              this.deptBudgetList.loadNetWeight = this.tranCarInfoList[i].loadNetWeight
             }
-            this.deptBudgetList.loadNetWeight=this.tranCarInfoList[i].loadNetWeight
           }
         }
-      }
-    },
-    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
+      },
+      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) {
+        // console.log(this.deptBudgetList.agent)
+        for (var i = 0; i < this.staffList.length; i++) {
+          if (this.staffList[i].staffName == e) {
+            this.deptBudgetList.personChargeKey = this.staffList[i].staffId
           }
-        })
-      } else {
-        //val为空时,还原数组
-        this.options = this.staffList
-      }
-    },
-    selectstaff(e) {
-      // console.log(this.deptBudgetList.agent)
-      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.reader) {
-        this.reader.cancel()
-      }
-      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 -
+      },
+      //提交按钮
+      submit() {
+        if (this.reader) {
+          this.reader.cancel()
+        }
+        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 -
+        ) {
+          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.warehouseInOutDetail.waterContent) {
-        if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
+        if (!String(this.deptBudgetList.deductionWeight)) {
           this.$message({
-            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.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: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
+            message: '扣重输入错误',
             type: 'warning',
           })
           return
         }
-      }
-
-      //杂质
-      if (this.deptBudgetList.warehouseInOutDetail.impurity) {
-        if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
+        if (
+          this.deptBudgetList.type == '潮粮' &&
+          !this.deptBudgetList.buckleWeightRatio
+        ) {
           this.$message({
-            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.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: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
+            message: '扣重比输入错误',
             type: 'warning',
           })
           return
         }
-      }
-      //霉变
-      if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
-        if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
+        if (
+          this.deptBudgetList.type == '潮粮' &&
+          !this.deptBudgetList.tidalGrainWater
+        ) {
           this.$message({
-            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.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: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
+            message: '潮粮水分输入错误',
             type: 'warning',
           })
           return
         }
-      }
-
-      //热损伤
-      if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
-        if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
+        if (
+          this.deptBudgetList.type == '潮粮' &&
+          !this.deptBudgetList.solidGrainWater
+        ) {
           this.$message({
-            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.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: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
+            message: '干粮水分输入错误',
             type: 'warning',
           })
           return
         }
-      }
-
-      //不完善粒(%)
-      if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
-        if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
+        if (!String(this.deptBudgetList.deductionAmount)) {
           this.$message({
-            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.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: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
+            message: '扣款输入错误',
             type: 'warning',
           })
           return
         }
-      }
-      //容重
-      if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
-        if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
+        if (!this.deptBudgetList.cost) {
           this.$message({
-            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.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: '容重输入错误',
+            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
-            }
+        if (!String(this.deptBudgetList.freight)) {
+          this.$message({
+            message: '运费不能为空',
+            type: 'warning',
           })
-        })
-        .catch(() => {
-          return false
-        })
-    },
-    temporaryStorage() {
-      if (this.reader) {
-        this.reader.cancel()
-      }
-      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) {
+          return
+        }
         if (
-          this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
-            2 ||
-          this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
+          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: '质检员姓名长度错误!',
+            message: '运费输入错误',
             type: 'warning',
           })
           return
         }
-      }
-      if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
-        if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
+        if (!this.deptBudgetList.agent) {
           this.$message({
-            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.deptBudgetList.agent.length < 2 ||
+          this.deptBudgetList.agent.length > 10
         ) {
           this.$message({
-            message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
+            message: '经办人输入有误',
             type: 'warning',
           })
           return
         }
-      }
-
-      //杂质
-      if (this.deptBudgetList.warehouseInOutDetail.impurity) {
-        if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
+        if (!this.deptBudgetList.grade) {
           this.$message({
-            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)
-        ) {
+        if (!this.deptBudgetList.inOutDate) {
           this.$message({
-            message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
+            message: '入库日期不能为空!',
             type: 'warning',
           })
           return
         }
-      }
-      //霉变
-      if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
-        if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
+        if (!this.deptBudgetList.inOutType) {
           this.$message({
-            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)
-        ) {
+        if (!this.deptBudgetList.carNo) {
           this.$message({
-            message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
+            message: '车牌号不能为空',
             type: 'warning',
           })
           return
         }
-      }
-
-      //热损伤
-      if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
-        if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
+        if (this.deptBudgetList.carNo.length > 7) {
           this.$message({
-            message: '热损伤(%)非数字!',
+            message: '车牌号输入错误,请输入7个字符之内',
             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)
-        ) {
+        if (this.deptBudgetList.boxNo && this.deptBudgetList.boxNo.length > 20) {
           this.$message({
-            message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
+            message: '箱号-1输入错误',
             type: 'warning',
           })
           return
         }
-      }
-
-      //不完善粒(%)
-      if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
-        if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
+        if (
+          this.deptBudgetList.boxNoOther &&
+          this.deptBudgetList.boxNoOther.length > 20
+        ) {
           this.$message({
-            message: '不完善粒(%)非数字!',
+            message: '箱号-2输入错误',
             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.deptBudgetList.titleNo &&
+          this.deptBudgetList.titleNo.length > 20
         ) {
           this.$message({
-            message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
+            message: '封号-1输入错误',
             type: 'warning',
           })
           return
         }
-      }
-      //容重
-      if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
-        if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
+        if (
+          this.deptBudgetList.titleNoOther &&
+          this.deptBudgetList.titleNoOther.length > 20
+        ) {
           this.$message({
-            message: '容重(克/升)非数字!',
+            message: '封号-2输入错误',
             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
-        ) {
+        if (!this.deptBudgetList.contractNo) {
           this.$message({
-            message: '容重输入错误',
+            message: '合同编号不能为空',
             type: 'warning',
           })
           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
-        })
-    },
-    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 -
-            this.deptBudgetList.tare -
-            this.deptBudgetList.deductionWeight
-        ).toFixed(2)
-      }
-    },
-    contractNoChange(e) {
-      this.disabled1 = true
-      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
+        // 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
           }
         }
-      }
-      for (var i = 0; i < this.outContractNo.length; i++) {
-        if (
-          this.outContractNo[i].contractNo == this.deptBudgetList.contractNo
-        ) {
-          console.log(this.outContractNo[i])
-          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 == '采购入库') {
-            if (!this.outContractNo[i].unitContractPrice) {
-              this.deptBudgetList.tips = '卖方' + this.outContractNo[i].seller
-            } else {
-              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
+        if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
+          if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
+            this.$message({
+              message: '水分(%)非数字!',
+              type: 'warning',
+            })
+            return
           }
-          // 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
+          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
           }
-          this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
-          if (this.outContractNo[i].inOutType == '移库入库') {
-            this.isSelectType = false
-          } else {
-            this.isSelectType = true
+        }
+
+        //杂质
+        if (this.deptBudgetList.warehouseInOutDetail.impurity) {
+          if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
+            this.$message({
+              message: '杂质(%)非数字!',
+              type: 'warning',
+            })
+            return
           }
-          if (this.outContractNo[i].priceType == '随行就市') {
-            this.disabled1 = !this.disabled1
+          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.outContractNo[i].deliverType == '1') {
-            this.carstatus = true
-          } else {
-            this.carstatus = false
+        }
+        //霉变
+        if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
+          if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
+            this.$message({
+              message: '霉变粒(%)非数字!',
+              type: 'warning',
+            })
+            return
           }
-          if (this.outContractNo[i].tranCarInfoList) {
-            this.options2 = this.outContractNo[i].tranCarInfoList
-            this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
-            // this.carstatus = true
+          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
           }
         }
-      }
-    },
-    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
+
+        //热损伤
+        if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
+          if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
+            this.$message({
+              message: '热损伤(%)非数字!',
+              type: 'warning',
+            })
+            return
           }
-          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
+          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
           }
-          this.deptBudgetList.inOutType = this.outContractNo[i].inOutType
-          if (this.outContractNo[i].inOutType == '移库入库') {
-            this.isSelectType = false
-          } else {
-            this.isSelectType = true
+        }
+
+        //不完善粒(%)
+        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.outContractNo[i].deliverType == '1') {
-            this.carstatus = true
-          } else {
-            this.carstatus = false
+        }
+        //容重
+        if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
+          if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
+            this.$message({
+              message: '容重(克/升)非数字!',
+              type: 'warning',
+            })
+            return
           }
-          if (this.outContractNo[i].tranCarInfoList) {
-            this.options2 = this.outContractNo[i].tranCarInfoList
-            this.tranCarInfoList = this.outContractNo[i].tranCarInfoList
-            this.carstatus = true
+          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
           }
         }
-      }
-    },
-    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) *
+        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.reader) {
+          this.reader.cancel()
+        }
+        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.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)
+              .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.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
+          })
+      },
+      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 -
+            this.deptBudgetList.tare -
+            this.deptBudgetList.deductionWeight
+          ).toFixed(2)
+        }
+      },
+      contractNoChange(e) {
+        this.disabled1 = true
+        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
+          ) {
+            console.log(this.outContractNo[i])
+            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 == '采购入库') {
+              if (!this.outContractNo[i].unitContractPrice) {
+                this.deptBudgetList.tips = '卖方' + this.outContractNo[i].seller
+              } else {
+                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
+            }
+            // 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].priceType == '随行就市') {
+              this.disabled1 = !this.disabled1
+            }
+            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) {
+            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) *
                 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() {
-      // 货名
-      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 = []
+      },
+      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: 'CON5',
-        })
+            constId: 'CON2',
+          })
           .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])
-              }
-            }
+            this.goodnameList = response
           })
-      } else if (this.deptBudgetList.warehouseType == '2') {
+        // 品级
         pullDown({
-          constId: 'WARE1',
-        })
+            constId: 'CON3',
+          })
           .toPromise()
           .then((response) => {
-            this.storageType = response
+            this.gradeList = 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',
-        })
+          pullDown({
+              constId: 'WARE2',
+            })
+            .toPromise()
+            .then((response) => {
+              this.deliveryType = response
+            })
+        }
+        //合同编号
+        xialaNo({
+            compId: localStorage.getItem('ws-pf_compId'),
+            flag: 7,
+          })
           .toPromise()
           .then((response) => {
-            this.deliveryType = response
+            this.options1 = response
+            this.outContractNo = 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
+        //经办人
+        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,
-        },
-      })
+      },
+      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 {
-    border: none;
-  }
-
-  .left {
-    .el-form-item {
-      width: 50%;
-      // width: 33.3333%;
+  /deep/.basicInformation {
+    .ws-info-table {
       border: none;
+    }
 
-      .el-form-item__label {
-        background: transparent;
+    .left {
+      .el-form-item {
+        width: 50%;
+        // width: 33.3333%;
         border: none;
-      }
 
-      .el-form-item__content {
-        border: none;
+        .el-form-item__label {
+          background: transparent;
+          border: none;
+        }
+
+        .el-form-item__content {
+          border: none;
+        }
       }
     }
-  }
 
-  .right {
-    .el-form-item {
-      width: 100%;
-      // width: 33.3333%;
-      border: none;
-
-      .el-form-item__label {
-        background: transparent;
+    .right {
+      .el-form-item {
+        width: 100%;
+        // width: 33.3333%;
         border: none;
-      }
 
-      .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;
-}
+  /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 {
+    width: 100%;
+    background: black;
+    color: #2aff7c;
+    font-size: 32px;
+    text-align: right;
+    padding: 20px;
+    border-radius: 10px;
+    margin: 0 20px 0px 20px;
 
-.top {
-  width: 100%;
-  background: black;
-  color: #2aff7c;
-  font-size: 32px;
-  text-align: right;
-  padding: 20px;
-  border-radius: 10px;
-  margin: 0 20px 0px 20px;
+    .car-type {
+      text-align: left;
+    }
 
-  .car-type {
-    text-align: left;
+    .kg-style {
+      font-size: 30px;
+    }
   }
 
-  .kg-style {
-    font-size: 30px;
+  .weight {
+    font-size: 68px;
   }
-}
-
-.weight {
-  font-size: 68px;
-}
 
-//下面列表
-.neifor {
-  width: 80%;
-  background-color: #f6f7fc;
-}
+  //下面列表
+  .neifor {
+    width: 80%;
+    background-color: #f6f7fc;
+  }
 
-/deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
-  width: 35%;
-  text-align: center;
-}
+  /deep/.neifor .ws-info-table .el-form-item .el-form-item__label {
+    width: 35%;
+    text-align: center;
+  }
 
-/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__content {
+    width: 60%;
+    background-color: #f6f7fc;
+  }
 
-/deep/.neifor .el-input--small .el-input__inner {
-  width: 100%;
-}
+  /deep/.neifor .el-input--small .el-input__inner {
+    width: 100%;
+  }
 
-.balance-row {
-  display: flex;
-  margin: 20px 0;
+  .balance-row {
+    display: flex;
+    margin: 20px 0;
 
-  .left {
-    width: 500px;
-    margin-bottom: 0;
+    .left {
+      width: 500px;
+      margin-bottom: 0;
+    }
   }
-}
 </style>

+ 1 - 1
src/views/warehouse/warehouseManagementList.vue

@@ -46,7 +46,7 @@
     </BaseHeaderLayout>
     <div v-show="this.warehouseType == '1'" class="main_css">
       <el-table show-summary :summary-method="getSummaries" class="wenzi" :data="warehouseList"
-        style="width: 100%; margin-top: 20px" height="calc(100% - 50px)">
+        style="width: 100%; margin-top: 20px" height="calc(100% - 45px)">
         <el-table-column prop="warehouseName" label="仓库名">
         </el-table-column>
         <el-table-column prop="binNumber" label="仓位编号">

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

@@ -641,7 +641,8 @@
    display: flex;
     justify-content: space-between;
     padding: 0 20px;
-        background: #f6f7fc;
-        border-radius: 4px 4px 1px 1px;
+    background: #f6f7fc;
+    border-radius: 4px 4px 1px 1px;
+    align-items: center;
   }
 </style>

+ 0 - 6
src/views/warehouse/warehouseManagementNoWeightIn.vue

@@ -1787,12 +1787,6 @@
   /deep/.el-form-item {
     width: 50%;
   }
-
-  .container {
-    overflow: scroll;
-    height: 120vh;
-  }
-
   /deep/.ws-info-table .el-form-item .el-form-item__label {
     text-align: center;
   }

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

@@ -190,7 +190,7 @@
                   <el-option v-for="item in options2" :key="item.constKey"
                     :label="item.carNo + '(' + item.tranCarNo + ')'" :value="item.carNo" />
                 </el-select>
-                 <span style='padding-left:10px;'>发货重量(吨):{{dataList.loadNetWeight}}</span>  
+                 <span style='padding-left:10px;'>发货重量(吨):{{dataList.loadNetWeight}}</span>
               </ws-form-item>
 
               <ws-form-item label="车号" span="1" prop="carNo" v-if="dataList.outType == '火运'">
@@ -530,9 +530,9 @@
     methods: {
       setVal(data) {
         if (this.information == '毛重检斤') {
-          this.deptBudgetList.grossWeight = data
+          this.dataList.grossWeight = data
         } else {
-          this.deptBudgetList.tare = data
+          this.dataList.tare = data
         }
 
       },
@@ -1476,10 +1476,6 @@
     width: 50%;
   }
 
-  .container {
-    overflow: scroll;
-    height: 120vh;
-  }
 
   /deep/.ws-info-table .el-form-item .el-form-item__label {
     text-align: center;

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

@@ -1745,11 +1745,6 @@
     width: 50%;
   }
 
-  .container {
-    overflow: scroll;
-    height: 120vh;
-  }
-
   /deep/.ws-info-table .el-form-item .el-form-item__label {
     text-align: center;
   }

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác