فهرست منبع

前端孟祥旭

mxx 3 سال پیش
والد
کامیت
0165bbce0d

+ 57 - 153
src/views/taskManagement/tranManagementWarehouseInOutTask.vue

@@ -25,10 +25,10 @@
         </ws-button>
       </template>
       <template slot="right">
-         <span style="width: 70px; display: inline-block;color: #8890B1;">状态:</span>
+        <span style="width: 70px; display: inline-block;color: #8890B1;">状态:</span>
         <ws-select
           v-model="searchTypeText"
-          placeholder=""
+          placeholder
           class="typeselect"
           @change="selecttaskType"
           :value="searchType"
@@ -65,54 +65,21 @@
       </template>
     </BaseHeaderLayout>
     <div class="navv">
-      <el-table
-        class="wenzi"
-        :data="gainList.records"
-        style="width: 100%;"
-        height="780"
-      >
+      <el-table class="wenzi" :data="gainList.records" style="width: 100%;" height="780">
         <el-table-column type="index" label="序号">
           <template scope="scope">
             <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
             <span v-else>{{ scope.$index + 1 }}</span>
           </template>
         </el-table-column>
-         <el-table-column prop="inOutTaskNo" label="任务编号"></el-table-column>
-        <el-table-column
-          prop="contractNo"
-          label="合同编号"
-          width="80"
-        ></el-table-column>
-        <el-table-column
-          prop="warehouseName"
-          class="table_td"
-          label="库房名"
-        ></el-table-column>
-        <el-table-column
-          prop="inOutType"
-          class="table_td"
-          label="出入库类型"
-        ></el-table-column>
-        <el-table-column
-          prop="goodsName"
-          class="table_td"
-          label="货名"
-        ></el-table-column>
-        <el-table-column
-          prop="weight"
-          class="table_td"
-          label="重量(吨)"
-        ></el-table-column>
-        <el-table-column
-          prop="predictDate"
-          class="table_td"
-          label="预计日期"
-        ></el-table-column>
-        <el-table-column
-          prop="publisher"
-          class="table_td"
-          label="发布者"
-        ></el-table-column>
+        <el-table-column prop="inOutTaskNo" label="任务编号"></el-table-column>
+        <el-table-column prop="contractNo" label="合同编号" width="80"></el-table-column>
+        <el-table-column prop="warehouseName" class="table_td" label="库房名"></el-table-column>
+        <el-table-column prop="inOutType" class="table_td" label="出入库类型"></el-table-column>
+        <el-table-column prop="goodsName" class="table_td" label="货名"></el-table-column>
+        <el-table-column prop="weight" class="table_td" label="重量(吨)"></el-table-column>
+        <el-table-column prop="predictDate" class="table_td" label="预计日期"></el-table-column>
+        <el-table-column prop="publisher" class="table_td" label="发布者"></el-table-column>
         <el-table-column prop="taskStatus" label="状态">
           <template slot-scope="scope">
             <el-popover
@@ -124,33 +91,19 @@
             >
               <template>
                 <span slot="reference">
-                  <span
-                    v-if="scope.row.taskStatus == '待审核'"
-                    class="executory"
-                  ></span>
-                  <span
-                    v-if="scope.row.taskStatus == '执行中'"
-                    class="inExecution"
-                  ></span>
-                  <span
-                    v-if="scope.row.taskStatus == '已完成'"
-                    class="done"
-                  ></span>
+                  <span v-if="scope.row.taskStatus == '待审核'" class="executory"></span>
+                  <span v-if="scope.row.taskStatus == '执行中'" class="inExecution"></span>
+                  <span v-if="scope.row.taskStatus == '已完成'" class="done"></span>
                   {{ scope.row.taskStatus }}
                 </span>
               </template>
               <div>
                 <p style="margin-top: 0; padding-left: 10px">操作历史</p>
                 <div v-for="(item, index) in historyList" class="flex">
-                  <div class="vertical-text vertical-text-left">
-                    {{ item.updateDate }}
-                  </div>
+                  <div class="vertical-text vertical-text-left">{{ item.updateDate }}</div>
                   <div>
                     <div class="vertical-circle"></div>
-                    <div
-                      v-if="index != historyList.length - 1"
-                      class="vertical-line"
-                    ></div>
+                    <div v-if="index != historyList.length - 1" class="vertical-line"></div>
                   </div>
                   <div class="vertical-text">
                     {{ item.operateUser }}
@@ -170,11 +123,7 @@
             />
           </template>
         </el-table-column>
-        <el-table-column
-          prop="establishDate"
-          class="table_td"
-          label="创建时间"
-        ></el-table-column>
+        <el-table-column prop="establishDate" class="table_td" label="创建时间"></el-table-column>
         <el-table-column prop="seller" label="操作" width="300">
           <template slot-scope="scope">
             <div
@@ -183,9 +132,7 @@
               v-hasPermission="
                 `warehouseManagement.warehouse.warehouseInfoTask.View`
               "
-            >
-              查看
-            </div>
+            >查看</div>
             <div
               v-hasPermission="
                 `warehouseManagement.warehouse.warehouseInfoTask.audit`
@@ -193,9 +140,7 @@
               v-if="scope.row.taskStatus == '待审核'"
               class="adjustment"
               @click="audit(scope.row)"
-            >
-              审核
-            </div>
+            >审核</div>
             <div
               v-hasPermission="
                 `warehouseManagement.warehouse.warehouseInfoTask.edit`
@@ -206,9 +151,7 @@
               "
               class="record"
               @click="delivery(scope.row)"
-            >
-              编辑
-            </div>
+            >编辑</div>
             <div
               v-hasPermission="
                 `warehouseManagement.warehouse.warehouseInfoTask.delete`
@@ -216,11 +159,10 @@
               v-if="
                 scope.row.taskId==null
               "
+              
               class="adjustment"
               @click="deleteclick(scope.row)"
-            >
-              删除
-            </div>
+            >删除</div>
           </template>
         </el-table-column>
       </el-table>
@@ -236,7 +178,7 @@
   </div>
 </template>
 <script>
-import { getoreditoutput, outdelete ,movestates} from '@/model/tasksport/index'
+import { getoreditoutput, outdelete, movestates } from '@/model/tasksport/index'
 import { downloadFile } from '@/utils/batchDown'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
@@ -245,7 +187,7 @@ export default {
   name: 'viewSpareMoney',
   components: {
     WsUpload,
-    Pagination,
+    Pagination
   },
   watch: {
     vesselId(val) {
@@ -253,7 +195,7 @@ export default {
     },
     isShow(val) {
       this.showType = val
-    },
+    }
   },
   data() {
     return {
@@ -277,12 +219,12 @@ export default {
       searchTypeText: '待审核',
       searchKeyWord: '',
       contractType: 2,
-       taskTypeList: [
+      taskTypeList: [
         { value: '待审核', type: 1 },
         { value: '执行中', type: 3 },
-         { value: '已驳回', type: 2 },
+        { value: '已驳回', type: 2 },
         { value: '已完成', type: 4 },
-        { value: '全部任务', type: '' },
+        { value: '全部任务', type: '' }
       ],
       // 提交类型
       submitType: true,
@@ -294,11 +236,11 @@ export default {
       deptCircularPage: {},
       historyList: [],
       pickerBeginDateBefore: {
-        disabledDate: (time) => {
+        disabledDate: time => {
           return time.getTime() > Date.now()
-        },
+        }
       },
-      accessoryTFs: false,
+      accessoryTFs: false
     }
   },
   activated() {
@@ -329,17 +271,17 @@ export default {
       this.$confirm(text, {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
-        type: 'warning',
+        type: 'warning'
       })
         .then(() => {
           console.log(row)
           outdelete({
             id: row.id,
             relevanceId: row.relevanceId,
-            inOutFlag: row.inOutFlag,
+            inOutFlag: row.inOutFlag
           })
             .toPromise()
-            .then((response) => {
+            .then(response => {
               this.getList()
             })
         })
@@ -353,10 +295,10 @@ export default {
         currentPage: this.currentPage,
         pageSize: this.pageSize,
         searchType: this.searchType,
-        searchKeyWord: this.searchKeyWord,
+        searchKeyWord: this.searchKeyWord
       })
         .toPromise()
-        .then((response) => {
+        .then(response => {
           console.log(response)
           this.gainList = response
           this.currentPage = response.current
@@ -364,28 +306,13 @@ export default {
           this.deptBudgetTotal = response.total
         })
     },
-    // handlestatus(status) {
-    //   if (status == 1) {
-    //     this.primary = 1
-    //   } else if (status == 2) {
-    //     this.primary = 2
-    //   } else if (status == 3) {
-    //     this.primary = 3
-    //   } else if (status == 4) {
-    //     this.primary = 4
-    //   } else {
-    //     this.primary = 5
-    //   }
-    //   this.searchType = status
-    //   this.getList()
-    // },
     //编辑
     delivery(item) {
       this.$router.push({
         path: 'tranManagementWarehouseInOutTaskEdit',
         query: {
-          relevanceId: item.relevanceId,
-        },
+          relevanceId: item.relevanceId
+        }
       })
     },
     audit(item) {
@@ -393,8 +320,8 @@ export default {
         path: 'tranManagementWarehouseInOutTaskaudit',
         query: {
           relevanceId: item.relevanceId,
-          taskId:item.taskId
-        },
+          taskId: item.taskId
+        }
       })
     },
     getSpanArr(data) {
@@ -433,8 +360,8 @@ export default {
       this.$router.push({
         path: 'inOutWarehouseTaskEdit',
         query: {
-          relevanceId: row.relevanceId,
-        },
+          relevanceId: row.relevanceId
+        }
       })
     },
     dateFormat(fmt, date) {
@@ -443,7 +370,7 @@ export default {
         'Y+': date.getFullYear().toString(), // 年
         'm+': (date.getMonth() + 1).toString(), // 月
         'd+': date.getDate().toString(), // 日
-        'H+': date.getHours().toString(), // 时
+        'H+': date.getHours().toString() // 时
         // "M+": date.getMinutes().toString(),         // 分
         // "S+": date.getSeconds().toString()          // 秒
         // 有其他格式化字符需求可以继续添加,必须转化成字符串
@@ -483,19 +410,19 @@ export default {
       this.$confirm(`是否将状态改为${status}`, {
         confirmButtonText: '确定',
         cancelButtonText: '取消',
-        type: 'warning',
+        type: 'warning'
       })
         .then(() => {
           movestates({ id: row.id })
             .toPromise()
-            .then((response) => {
+            .then(response => {
               this.$notify.success({
                 title: '成功',
-                message: '状态修改成功',
+                message: '状态修改成功'
               })
               this.getList()
             })
-            .catch((response) => {
+            .catch(response => {
               // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
             })
         })
@@ -513,7 +440,7 @@ export default {
     handleExamine(row) {
       this.$router.push({
         name: 'salesContractExamine',
-        query: { id: row.id },
+        query: { id: row.id }
       })
     },
     // 关闭 dialog时 处理文件url 初始化upload组件
@@ -523,38 +450,15 @@ export default {
     history(row) {
       billoperatehis({ id: row.id })
         .toPromise()
-        .then((response) => {
+        .then(response => {
           this.historyList = response
         })
     },
     find() {
       this.currentPage = 1
       this.getList()
-    },
-    // async exportlist() {
-    //   const { data } = await export1(
-    //     {
-    //       compId: sessionStorage.getItem('ws-pf_compId'),
-    //       contractType: this.contractType,
-    //       currentPage: this.currentPage,
-    //       pageSize: this.pageSize,
-    //       searchType: this.searchType,
-    //       searchKeyWord: this.searchKeyWord,
-    //       startDate: this.startDate,
-    //       endDate: this.endDate,
-    //     },
-    //     {},
-    //     { responseType: 'blob' }
-    //   ).toPromise()
-    //   downloadFile({
-    //     res: data,
-    //     fileName: `${
-    //       this.date.year + (this.date.month ? `-${this.date.month}` : '')
-    //     }_采购合同`,
-    //     type: 'xls',
-    //   })
-    // },
-  },
+    }
+  }
 }
 </script>
 <style lang="scss" scoped>
@@ -613,7 +517,7 @@ export default {
   display: block;
   top: 5px;
   right: -2px;
-  // width: 1px;
+  width: 1px;
   height: 12px;
   background: #e9ecf7;
 }
@@ -632,7 +536,7 @@ export default {
   margin-left: 766px;
 }
 .el-pagination {
- text-align: center;
+  text-align: center;
 }
 .winseaview-main {
   background: #e8ecf6;
@@ -664,11 +568,11 @@ export default {
 .done {
   background: #50cad4;
 }
-.el-select{
+.el-select {
   width: 30%;
-    margin-right: 10px;
+  margin-right: 10px;
 }
-/deep/.typeselect .el-input__inner{
-   color: #8890B1;
+/deep/.typeselect .el-input__inner {
+  color: #8890b1;
 }
 </style>

+ 3 - 3
src/views/taskManagement/tranManagementWarehouseInOutTaskAdd.vue

@@ -319,7 +319,7 @@
           <!-- 货名 -->
           <el-form-item label="货名" class="huom">
             <el-select
-            :disabled='dataList.taskTypeKey != 3'
+            :disabled='dataList.taskTypeKey != 3 || dataList.taskTypeKey == 3'
               v-model="dataList.goodsName"
               placeholder="货名"
               class="huom"
@@ -875,7 +875,7 @@ export default {
       }
     },
     changecontract(e){
-      if(this.dataList.taskTypeKey!=3){
+      if(this.dataList.taskTypeKey!=3 ){
         for (let i = 0; i < this.contractNoList.length; i++) {
           if(this.contractNoList[i].contractNo==e){
             getGoodsName({ contractId:this.contractNoList[i].id,contractNo:this.contractNoList[i].contractNo}) .toPromise()
@@ -894,7 +894,7 @@ export default {
       }
     },
     changecontract1(e){
-      if(this.dataList1.taskTypeKey!=3){
+      if(this.dataList1.taskTypeKey!=3 ){
         for (let i = 0; i < this.contractNoList.length; i++) {
           if(this.contractNoList[i].contractNo==e){
             getGoodsName({ contractId:this.contractNoList[i].id,contractNo:this.contractNoList[i].contractNo}) .toPromise()

+ 196 - 193
src/views/tranManagement/tranManagementShippingArrangemen.vue

@@ -20,9 +20,9 @@
     <div class="center">
       <ws-form ref="deptBudgetList" :model="deptBudgetList" :rules="rules" class="position">
         <div class="basicInformation">
-          <div class="small-title">任务详情</div>
+          <div class="small-title" style="font-size: 16px">任务详情</div>
           <ws-info-table>
-             <ws-form-item label="任务编号" span="1" prop="processNo">{{deptBudgetList.processNo}}</ws-form-item>
+            <ws-form-item label="任务编号" span="1" prop="processNo">{{deptBudgetList.processNo}}</ws-form-item>
             <ws-form-item label="货名" span="1" prop="goodsName">{{deptBudgetList.goodsName}}</ws-form-item>
             <ws-form-item label="重量(吨)" span="1" prop="weight">{{deptBudgetList.weight}}</ws-form-item>
             <ws-form-item
@@ -30,7 +30,7 @@
               span="1"
               prop="sendDetailedAddress"
             >{{deptBudgetList.sendDetailedAddress}}</ws-form-item>
-           <ws-form-item label="发货人" span="1" prop="sender">{{deptBudgetList.sender}}</ws-form-item>
+            <ws-form-item label="发货人" span="1" prop="sender">{{deptBudgetList.sender}}</ws-form-item>
             <ws-form-item label="发货人电话" span="1" prop="senderPhone">{{deptBudgetList.senderPhone}}</ws-form-item>
             <ws-form-item
               label="收货地址"
@@ -53,95 +53,98 @@
               span="1"
               prop="deliveryDateEnd"
             >{{deptBudgetList.deliveryDateEnd}}</ws-form-item>
-            <ws-form-item label="合同编号" span="1" prop="contractNo">{{deptBudgetList.contractNo}}</ws-form-item> 
+            <ws-form-item label="合同编号" span="1" prop="contractNo">{{deptBudgetList.contractNo}}</ws-form-item>
           </ws-info-table>
-          <div class="small-title">联络员及航次</div>
+          <div class="small-title" style="font-size: 16px">联络员及航次</div>
           <div
             class="position siji"
             v-for="(item, index) in deptBudgetList.tranCarInfoList"
             :key="index"
           >
             <div class="zhong">
-                <ws-form-item label="姓名" span="1" prop="driver" >
-                  <el-select
-                    v-model="item.driver"
-                    placeholder="请选择姓名"
-                    filterable
-                    :filter-method="dataFilter"
-                    @change="selectstaff"
-                     size="small"
-                  >
-                    <el-option
-                      v-for="item in options"
-                      :key="item.value"
-                      :label="item.staffName"
-                      :value="item.staffName"
-                       
-                    />
-                  </el-select>
-                </ws-form-item>
-                <ws-form-item label="电话" span="1" prop="driverPhone" class="biao">
-                  <ws-input
-                    
-                    :readonly="true"
-                    v-model="item.driverPhone"
-                    placeholder="请输入电话"
-                    maxlength="20"
-                    size="small"
-                    class="ys"
-                  />
-                </ws-form-item>
-                <ws-form-item label="发船日期" span="1" prop="sendDateStart" class="biao2">
-                  <ws-date-picker
-                    v-model="item.sendDateStart"
-                    type="date"
-                    placeholder="请选择发货日期"
-                    value-format="yyyy-MM-dd"
-                    class="small"
+              <ws-form-item label="姓名" span="1" prop="driver">
+                <el-select
+                  v-model="item.driver"
+                  placeholder="请选择姓名"
+                  filterable
+                  :filter-method="dataFilter"
+                  @change="selectstaff"
+                  size="small"
+                >
+                  <el-option
+                    v-for="item in options"
+                    :key="item.value"
+                    :label="item.staffName"
+                    :value="item.staffName"
                   />
-                </ws-form-item>
-                <ws-form-item label="预计到港日期" span="1" prop="receiveDateEnd" class="biao3">
-                  <ws-date-picker
-                    v-model="item.receiveDateEnd"
-                    type="date"
-                    placeholder="请选择发货日期"
-                    value-format="yyyy-MM-dd"
-                    class="small"
+                </el-select>
+              </ws-form-item>
+              <ws-form-item label="电话" span="1" prop="driverPhone" class="biao">
+                <ws-input
+                  :readonly="true"
+                  v-model="item.driverPhone"
+                  placeholder="请输入电话"
+                  maxlength="20"
+                  size="small"
+                  class="ys"
+                />
+              </ws-form-item>
+              <ws-form-item label="发船日期" span="1" prop="sendDateStart" class="biao2">
+                <ws-date-picker
+                  v-model="item.sendDateStart"
+                  type="date"
+                  placeholder="请选择发货日期"
+                  value-format="yyyy-MM-dd"
+                  class="small"
+                />
+              </ws-form-item>
+              <ws-form-item label="预计到港日期" span="1" prop="receiveDateEnd" class="biao3">
+                <ws-date-picker
+                  v-model="item.receiveDateEnd"
+                  type="date"
+                  placeholder="请选择发货日期"
+                  value-format="yyyy-MM-dd"
+                  class="small"
+                />
+              </ws-form-item>
+              <ws-form-item label="航次" span="1" prop="shipNo" class="biao4">
+                <ws-input
+                  v-model="item.shipNo"
+                  placeholder="请选择航次"
+                  maxlength="100"
+                  size="small"
+                  class="ys"
+                ></ws-input>
+              </ws-form-item>
+              <ws-form-item label="船名" span="1" prop="shipName" class>
+                <ws-input
+                  v-model="item.shipName"
+                  placeholder="请输入船名"
+                  maxlength="100"
+                  size="small"
+                  class="ys"
+                ></ws-input>
+              </ws-form-item>
+              <ws-form-item label="类型" span="1" prop="shipType" class="biao5">
+                <ws-select v-model="item.shipType" placeholder="请输入" class="ys">
+                  <ws-option
+                    v-for="items in shipType"
+                    :key="items.constKey"
+                    :label="items.constValue"
+                    :value="items.constValue"
                   />
-                </ws-form-item>
-                 <ws-form-item label="航次" span="1" prop="shipNo" class="biao4">
-                  <ws-input v-model="item.shipNo" placeholder="请选择航次" maxlength="100" size="small" class="ys"></ws-input>
-                </ws-form-item>
-                <ws-form-item label="船名" span="1" prop="shipName" class="">
-                  <ws-input
-                    v-model="item.shipName"
-                    placeholder="请输入船名"
-                    maxlength="100"
-                    size="small"
-                    class="ys"
-                  ></ws-input>
-                </ws-form-item>
-                <ws-form-item label="类型" span="1" prop="shipType" class="biao5">
-                  <ws-select v-model="item.shipType" placeholder="请输入" class="ys">
-                    <ws-option
-                      v-for="items in shipType"
-                      :key="items.constKey"
-                      :label="items.constValue"
-                      :value="items.constValue"
-                       
-                    />
-                  </ws-select>
-                </ws-form-item>
-                <ws-form-item
-                  label="数量"
-                  span="1"
-                  prop="boxNumber"
-                  class="biao6"
-                  v-show="item.shipType=='集装箱'"
-                >
-                  <ws-input v-model="item.boxNumber" placeholder="请输入数量" class="ys"></ws-input>
-                </ws-form-item>
-              </ws-info-table>
+                </ws-select>
+              </ws-form-item>
+              <ws-form-item
+                label="数量"
+                span="1"
+                prop="boxNumber"
+                class="biao6"
+                v-show="item.shipType=='集装箱'"
+              >
+                <ws-input v-model="item.boxNumber" placeholder="请输入数量" class="ys"></ws-input>
+              </ws-form-item>
+              <!-- </ws-info-table> -->
             </div>
             <div
               style=" width: 536px;"
@@ -151,13 +154,13 @@
               :key="index"
             >
               <ws-info-table>
-                <ws-form-item :label="'仓位号-'+ (index +1 )" span="1" prop="impurity"  class="bot" >
+                <ws-form-item :label="'仓位号-'+ (index +1 )" span="1" prop="impurity" class="bot">
                   <el-input v-model="items.impurity"></el-input>
                 </ws-form-item>
-                 <ws-form-item label="重量(吨)" span="1" prop="positionWeight" class="bot" >
+                <ws-form-item label="重量(吨)" span="1" prop="positionWeight" class="bot">
                   <el-input v-model="items.positionWeight"></el-input>
-                </ws-form-item> 
-                 <span
+                </ws-form-item>
+                <span
                   width="22"
                   height="22"
                   class="del"
@@ -181,7 +184,7 @@
             </div>
           </div>
         </div>
-      </ws-form> 
+      </ws-form>
       <div style="text-align: right; padding: 10px">
         <el-button class="bg-bottom-up" type="primary" size="small" @click="submit()">提交</el-button>
       </div>
@@ -290,8 +293,7 @@ export default {
   },
   activated() {
     this.loaddata()
-     this.getList()
-    
+    this.getList()
   },
   computed: {
     totalStorage: function() {
@@ -349,33 +351,37 @@ export default {
         .toPromise()
         .then(response => {
           this.deptBudgetList = response
-          if(response.tranCarInfoList.length>0) {
-            for (var i = 0; i < this.deptBudgetList.tranCarInfoList.length; i++) {
-              var num = this.deptBudgetList.tranCarInfoList[i].positionWeight.split(',')
-            for (var j = 0; j < num.length; j++) {
-              var num2 = num[j].split('/')
-              this.freightspace.push({
-                impurity: num2[i],
-                positionWeight: num2[num2.length - 1]
-              })
+          if (response.tranCarInfoList.length > 0) {
+            for (
+              var i = 0;
+              i < this.deptBudgetList.tranCarInfoList.length;
+              i++
+            ) {
+              var num = this.deptBudgetList.tranCarInfoList[
+                i
+              ].positionWeight.split(',')
+              for (var j = 0; j < num.length; j++) {
+                var num2 = num[j].split('/')
+                this.freightspace.push({
+                  impurity: num2[i],
+                  positionWeight: num2[num2.length - 1]
+                })
+              }
             }
-          }
-          }else{
+          } else {
             this.deptBudgetList.tranCarInfoList = [
               {
-                driver:'',
-                driverPhone:'',
-                sendDateStart:'',
+                driver: '',
+                driverPhone: '',
+                sendDateStart: '',
                 receiveDateEnd: '',
-                shipNo:'',
-                shipName:'',
-                shipType:'',
-                boxNumber:'',
-                positionWeight:'',
-                impurity:'',
-                tranType:'3'
-
-
+                shipNo: '',
+                shipName: '',
+                shipType: '',
+                boxNumber: '',
+                positionWeight: '',
+                impurity: '',
+                tranType: '3'
               }
             ]
           }
@@ -402,7 +408,7 @@ export default {
     },
     returnsales() {
       this.deptBudgetList = {}
-      this.freightspace =[]
+      this.freightspace = []
       this.selectedOptions = ''
       this.$router.push({ path: 'tranManagementShipping' })
     },
@@ -451,14 +457,14 @@ export default {
           })
           return
         }
-         if(this.deptBudgetList.tranCarInfoList[i].shipType == '集装箱'){
-        if (!this.deptBudgetList.tranCarInfoList[i].boxNumber) {
-          this.$message({
-            message: '数量不能为空',
-            type: 'warning'
-          })
-          return
-        }
+        if (this.deptBudgetList.tranCarInfoList[i].shipType == '集装箱') {
+          if (!this.deptBudgetList.tranCarInfoList[i].boxNumber) {
+            this.$message({
+              message: '数量不能为空',
+              type: 'warning'
+            })
+            return
+          }
         }
         if (!this.deptBudgetList.tranCarInfoList[i].shipType) {
           this.$message({
@@ -467,25 +473,24 @@ export default {
           })
           return
         }
-// console.log(this.freightspace,"仓位号")
-        for(var i = 0 ; i < this.freightspace.length ; i++){
+        // console.log(this.freightspace,"仓位号")
+        for (var i = 0; i < this.freightspace.length; i++) {
           if (!this.freightspace[i].impurity) {
-          this.$message({
-            message: '仓位号不能为空',
-            type: 'warning'
-          })
-          return
-        }
-        if (!this.freightspace[i].positionWeight) {
-          this.$message({
-            message: '重量不能为空',
-            type: 'warning'
-          })
-          return
+            this.$message({
+              message: '仓位号不能为空',
+              type: 'warning'
+            })
+            return
+          }
+          if (!this.freightspace[i].positionWeight) {
+            this.$message({
+              message: '重量不能为空',
+              type: 'warning'
+            })
+            return
+          }
         }
 
-        }
-        
         if (
           new Date(
             this.deptBudgetList.tranCarInfoList[0].sendDateStart
@@ -620,7 +625,6 @@ export default {
 
 .bot {
   width: 30%;
- 
 }
 //去边框
 /deep/.el-form-item {
@@ -672,7 +676,6 @@ export default {
   border-radius: 4px;
   /* border: 1px solid #d8dce6; */
   width: 1219px;
-  
 }
 /deep/.zi {
   width: 64px;
@@ -753,63 +756,58 @@ export default {
   width: 1000px;
 }
 /deep/.el-select .el-input__inner {
-    border: 1px solid #ccc !important;
-    padding: 0 15px !important;
-    font-size: 12px !important;
-    width: 150px;
+  border: 1px solid #ccc !important;
+  padding: 0 15px !important;
+  font-size: 12px !important;
+  width: 125px;
 }
 .zhong {
-    height: 111px;
-    background: #F6F7FC;
-    border-radius: 4px;
-    border: 1px solid #D8DCE6;
-    width: 99%;
-    margin: 0 2%;
-    // margin-left: -76px;
+  height: 111px;
+  background: #f6f7fc;
+  border-radius: 4px;
+  border: 1px solid #d8dce6;
+  width: 99%;
+  margin: 0 2%;
+  // margin-left: -76px;
 }
 .bg-left {
   padding-left: 30px;
 }
-/deep/.el-icon-arrow-up:before {
-    margin-left: 171px;
-    // display: none;
-}
 /deep/.el-input--prefix .el-input__inner {
-    padding-left: 30px;
-    width: 150px;
+  padding-left: 30px;
+  width: 150px;
 }
 .basicInformation .ws-info-table {
-    border: none;
-    width: 141%;
-    margin: 0 auto;
-    // margin-left: -89px;
+  border: none;
+  width: 141%;
+  margin: 0 auto;
+  // margin-left: -89px;
 }
-.ys{
+.ys {
   // margin-left: 300px;
   width: 100px;
-
 }
-.biao{
+.biao {
   margin-left: 240px;
   margin-top: -57px;
 }
-.biao2{
+.biao2 {
   margin-left: 441px;
   margin-top: -59px;
 }
-.biao3{
-   margin-left: 722px;
+.biao3 {
+  margin-left: 722px;
   margin-top: -60px;
 }
-.biao4{
+.biao4 {
   margin-left: 1016px;
   margin-top: -60px;
 }
-.biao5{
+.biao5 {
   margin-left: 200px;
   margin-top: -57px;
 }
-.biao6{
+.biao6 {
   margin-left: 450px;
   margin-top: -57px;
 }
@@ -1129,28 +1127,33 @@ export default {
 //   border-radius: 10px;
 //   right: 20px;
 // }
- /deep/.ws-info-table .el-form-item .el-form-item__label {
-    /* background-color: #fff; */
-    font-size: 14px;
-    font-weight: 400;
-    color: #8890b1;
-    line-height: 16px;
-    background: border-box;
-}
- /deep/.ws-info-table .el-form-item .el-form-item__content {
-    background: #f5f7fa;
-    border-radius: 4px;
-    /* border: 1px solid #d8dce6; */
-    border: none;
-}
- /deep/.basicInformation .el-form-item .el-form-item__label {
-    background: transparent;
-    border: none;
-    font-size: 14px;
-    font-family: PingFangSC-Regular, PingFang SC;
-    font-weight: 400;
-    color: #8890B1;
-    line-height: 16px;
-    margin-left: 22px;
+/deep/.ws-info-table .el-form-item .el-form-item__label {
+  /* background-color: #fff; */
+  font-size: 14px;
+  font-weight: 400;
+  color: #8890b1;
+  line-height: 16px;
+  background: border-box;
 }
+/deep/.ws-info-table .el-form-item .el-form-item__content {
+  background: #f5f7fa;
+  border-radius: 4px;
+  /* border: 1px solid #d8dce6; */
+  border: none;
+}
+/deep/.basicInformation .el-form-item .el-form-item__label {
+  background: transparent;
+  border: none;
+  font-size: 14px;
+  font-family: PingFangSC-Regular, PingFang SC;
+  font-weight: 400;
+  color: #8890b1;
+  line-height: 16px;
+  margin-left: 22px;
+}
+/deep/.el-form-item__content .el-select {
+  width: 42%;
+  
+}
+
 </style>

+ 109 - 136
src/views/warehouse/warehouseManagementPut.vue

@@ -6,19 +6,15 @@
         <h2 class="bg-left title">入库登记</h2>
       </el-col>
       <el-col :span="4" class="bg-right">
-        <el-button
-          class="bg-bottom"
-          type="primary"
-          size="small"
-          @click="revert()"
-          ><img
+        <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
-        >
+            alt
+          />返回
+        </el-button>
       </el-col>
     </el-row>
 
@@ -30,12 +26,13 @@
             width="19"
             height="19"
             src="../../../public/img/cangku.png"
-            alt=""
+            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>
         <ws-info-table>
@@ -43,7 +40,7 @@
           <ws-form-item label="货名" span="1">
             <ws-select
               v-model="deptBudgetList.goodsName"
-              placeholder=""
+              placeholder
               class="typeselect"
               @change="selectgoodsName"
             >
@@ -67,12 +64,7 @@
           </ws-form-item>
 
           <!--皮重(吨)-->
-          <ws-form-item
-            label="皮重(吨)"
-            span="1"
-            prop="tare"
-            class="readonly"
-          >
+          <ws-form-item label="皮重(吨)" span="1" prop="tare" class="readonly">
             <ws-input
               @input="tarechange"
               v-model="deptBudgetList.tare"
@@ -96,7 +88,7 @@
           <ws-form-item label="品级" span="1" class="readonly">
             <ws-select
               v-model="deptBudgetList.grade"
-              placeholder=""
+              placeholder
               class="typeselect"
               @change="selectpackingMethod"
             >
@@ -127,12 +119,7 @@
             </el-select>
           </ws-form-item>
           <!--出库日期-->
-          <ws-form-item
-            label="入库日期"
-            span="1"
-            prop="inOutDate"
-            class="deliverydate"
-          >
+          <ws-form-item label="入库日期" span="1" prop="inOutDate" class="deliverydate">
             <ws-date-picker
               v-model="deptBudgetList.inOutDate"
               type="date"
@@ -144,7 +131,7 @@
           <ws-form-item label="入库类型" span="1">
             <ws-select
               v-model="deptBudgetList.inOutType"
-              placeholder=""
+              placeholder
               class="typeselect"
               @change="selectstorageType"
             >
@@ -185,17 +172,11 @@
         </ws-info-table>
         <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"
-              >
+              <!-- v-model="deptBudgetList.deliveryType" -->
+              <ws-select v-model="deptBudgetList.temporaryOutType" placeholder class="typeselect">
                 <ws-option
                   v-for="item in deliveryType"
                   :key="item.constKey"
@@ -306,20 +287,8 @@
         </ws-info-table>
       </div>
       <div style="text-align: right; padding: 10px">
-        <el-button
-          class="bg-bottom-up"
-          type="primary"
-          size="small"
-          @click="temporaryStorage()"
-          >暂存</el-button
-        >
-        <el-button
-          class="bg-bottom-up"
-          type="primary"
-          size="small"
-          @click="submit()"
-          >提交</el-button
-        >
+        <el-button class="bg-bottom-up" type="primary" size="small" @click="temporaryStorage()">暂存</el-button>
+        <el-button class="bg-bottom-up" type="primary" size="small" @click="submit()">提交</el-button>
       </div>
     </ws-form>
   </div>
@@ -329,7 +298,7 @@ import {
   pullDown,
   addstorageputList,
   xialaNo,
-  getstaff,
+  getstaff
 } from '@/model/warehouse/index'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
@@ -339,7 +308,7 @@ export default {
   name: 'viewSpareMoney',
   components: {
     WsUpload,
-    Pagination,
+    Pagination
   },
   watch: {
     // vesselId(val) {
@@ -347,7 +316,7 @@ export default {
     // },
     isShow(val) {
       this.showType = val
-    },
+    }
   },
   data() {
     return {
@@ -393,9 +362,9 @@ export default {
             required: true,
             type: 'number',
             message: '请输入活动名称',
-            trigger: 'blur',
-          },
-        ],
+            trigger: 'blur'
+          }
+        ]
       },
       size: 10,
       compId: sessionStorage.getItem('ws-pf_compId'),
@@ -403,20 +372,20 @@ export default {
       packtypeList: {},
       date: {
         year: dayjs().format('YYYY'),
-        month: dayjs().format('MM'),
+        month: dayjs().format('MM')
       },
       contractList: [],
       deptBudgetList: {
-        warehouseInOutDetail: {},
+        warehouseInOutDetail: {}
       },
       historyList: [],
 
       pickerBeginDateBefore: {
-        disabledDate: (time) => {
+        disabledDate: time => {
           return time.getTime() > Date.now()
-        },
+        }
       },
-      accessoryTFs: false,
+      accessoryTFs: false
     }
   },
   mounted() {
@@ -426,7 +395,7 @@ export default {
     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.goodsName = '玉米'
     this.deptBudgetList.goodsNameKey = '1'
@@ -450,7 +419,7 @@ export default {
       this.deptBudgetList.staffList = val
       if (val) {
         //val存在
-        this.options = this.staffList.filter((item) => {
+        this.options = this.staffList.filter(item => {
           if (
             !!~item.staffName.indexOf(val) ||
             !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
@@ -475,14 +444,14 @@ export default {
       if (!this.deptBudgetList.goodsName) {
         this.$message({
           message: '货名不能为空',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
       if (!this.deptBudgetList.grossWeight) {
         this.$message({
           message: '毛重不能为空',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
@@ -496,14 +465,14 @@ export default {
       ) {
         this.$message({
           message: '毛重输入错误',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
       if (!this.deptBudgetList.tare) {
         this.$message({
           message: '皮重不能为空',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
@@ -517,14 +486,14 @@ export default {
       ) {
         this.$message({
           message: '皮重输入错误',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
       if (!this.deptBudgetList.agent) {
         this.$message({
           message: '经办人不能为空',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
@@ -534,49 +503,51 @@ export default {
       ) {
         this.$message({
           message: '经办人输入有误',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
       if (!this.deptBudgetList.grade) {
         this.$message({
           message: '品级不能为空!',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
       if (!this.deptBudgetList.inOutDate) {
         this.$message({
           message: '入库日期不能为空!',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
       if (!this.deptBudgetList.inOutType) {
         this.$message({
           message: '入库类型不能为空!',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
+
       if (!this.deptBudgetList.carNo) {
         this.$message({
           message: '车牌号不能为空',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
+
       if (this.deptBudgetList.carNo.length > 7) {
         this.$message({
           message: '车牌号输入错误,请输入7个字符之内',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
       if (!this.deptBudgetList.contractNo) {
         this.$message({
           message: '合同编号不能为空',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
@@ -586,7 +557,7 @@ export default {
       ) {
         this.$message({
           message: '合同编号长度不符合要求,请输入6-20个字符之内',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
@@ -599,7 +570,7 @@ export default {
         ) {
           this.$message({
             message: '质检员姓名长度错误!',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -608,7 +579,7 @@ export default {
         if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
           this.$message({
             message: '水分(%)非数字!',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -628,7 +599,7 @@ export default {
         ) {
           this.$message({
             message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -639,7 +610,7 @@ export default {
         if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
           this.$message({
             message: '杂质(%)非数字!',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -658,7 +629,7 @@ export default {
         ) {
           this.$message({
             message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -668,7 +639,7 @@ export default {
         if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
           this.$message({
             message: '霉变粒(%)非数字!',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -688,7 +659,7 @@ export default {
         ) {
           this.$message({
             message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -699,7 +670,7 @@ export default {
         if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
           this.$message({
             message: '热损伤(%)非数字!',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -718,7 +689,7 @@ export default {
         ) {
           this.$message({
             message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -729,7 +700,7 @@ export default {
         if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
           this.$message({
             message: '不完整粒(%)非数字!',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -749,7 +720,7 @@ export default {
         ) {
           this.$message({
             message: '不完整粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -759,7 +730,7 @@ export default {
         if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
           this.$message({
             message: '容重(克/升)非数字!',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -779,7 +750,7 @@ export default {
         ) {
           this.$message({
             message: '容重(克/升)输入错误! 取值范围1-40之间且是整数',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -788,18 +759,19 @@ export default {
       this.$confirm(`确定提交入库信息`, {
         cancelButtonText: '取消',
         confirmButtonText: '确定',
-        type: 'warning',
+        type: 'warning'
       })
         .then(() => {
-          this.$refs.deptBudgetList.validate((valid) => {
+          this.$refs.deptBudgetList.validate(valid => {
             if (valid) {
-              this.deptBudgetList.compId =
-                sessionStorage.getItem('ws-pf_compId')
+              this.deptBudgetList.compId = sessionStorage.getItem(
+                'ws-pf_compId'
+              )
               this.deptBudgetList.inOutFlag = 2
               this.deptBudgetList.statusFlag = 3
               addstorageputList(this.deptBudgetList)
                 .toPromise()
-                .then((response) => {
+                .then(response => {
                   this.$message.success('添加成功')
                   this.$router.push({ path: 'warehouseManagementList' })
                 })
@@ -817,14 +789,14 @@ export default {
       if (!this.deptBudgetList.goodsName) {
         this.$message({
           message: '货名不能为空',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
       if (!this.deptBudgetList.grossWeight) {
         this.$message({
           message: '毛重不能为空',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
@@ -838,14 +810,14 @@ export default {
       ) {
         this.$message({
           message: '毛重输入错误',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
       if (!this.deptBudgetList.tare) {
         this.$message({
           message: '皮重不能为空',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
@@ -859,14 +831,14 @@ export default {
       ) {
         this.$message({
           message: '皮重输入错误',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
       if (!this.deptBudgetList.agent) {
         this.$message({
           message: '经办人不能为空',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
@@ -876,28 +848,28 @@ export default {
       ) {
         this.$message({
           message: '经办人输入有误',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
       if (!this.deptBudgetList.carNo) {
         this.$message({
           message: '车牌号不能为空',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
       if (this.deptBudgetList.carNo.length > 7) {
         this.$message({
           message: '车牌号输入错误,请输入7个字符之内',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
       if (!this.deptBudgetList.contractNo) {
         this.$message({
           message: '合同编号不能为空',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
@@ -907,7 +879,7 @@ export default {
       ) {
         this.$message({
           message: '合同编号长度不符合要求,请输入6-20个字符之内',
-          type: 'warning',
+          type: 'warning'
         })
         return
       }
@@ -927,7 +899,7 @@ export default {
         ) {
           this.$message({
             message: '质检员姓名长度错误!',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -936,7 +908,7 @@ export default {
         if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
           this.$message({
             message: '水分(%)非数字!',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -956,7 +928,7 @@ export default {
         ) {
           this.$message({
             message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -967,7 +939,7 @@ export default {
         if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
           this.$message({
             message: '杂质(%)非数字!',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -986,7 +958,7 @@ export default {
         ) {
           this.$message({
             message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -996,7 +968,7 @@ export default {
         if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
           this.$message({
             message: '霉变粒(%)非数字!',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -1016,7 +988,7 @@ export default {
         ) {
           this.$message({
             message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -1027,7 +999,7 @@ export default {
         if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
           this.$message({
             message: '热损伤(%)非数字!',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -1046,7 +1018,7 @@ export default {
         ) {
           this.$message({
             message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -1057,7 +1029,7 @@ export default {
         if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
           this.$message({
             message: '不完整粒(%)非数字!',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -1077,7 +1049,7 @@ export default {
         ) {
           this.$message({
             message: '不完整粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -1087,7 +1059,7 @@ export default {
         if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
           this.$message({
             message: '容重(克/升)非数字!',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -1107,7 +1079,7 @@ export default {
         ) {
           this.$message({
             message: '容重(克/升)输入错误! 取值范围1-40之间且是整数',
-            type: 'warning',
+            type: 'warning'
           })
           return
         }
@@ -1115,18 +1087,19 @@ export default {
       this.$confirm(`暂存后可在待完成页面查看,确定暂存`, {
         cancelButtonText: '取消',
         confirmButtonText: '确定',
-        type: 'warning',
+        type: 'warning'
       })
         .then(() => {
-          this.$refs.deptBudgetList.validate((valid) => {
+          this.$refs.deptBudgetList.validate(valid => {
             if (valid) {
-              this.deptBudgetList.compId =
-                sessionStorage.getItem('ws-pf_compId')
+              this.deptBudgetList.compId = sessionStorage.getItem(
+                'ws-pf_compId'
+              )
               this.deptBudgetList.inOutFlag = 2
               this.deptBudgetList.statusFlag = 1
               addstorageputList(this.deptBudgetList)
                 .toPromise()
-                .then((response) => {
+                .then(response => {
                   this.$message.success('暂存成功')
                   this.$router.push({ path: 'warehouseManagementList' })
                 })
@@ -1192,47 +1165,47 @@ export default {
       // 货名
       pullDown({ constId: 'CON2' })
         .toPromise()
-        .then((response) => {
+        .then(response => {
           this.goodnameList = response
         })
       // 品级
       pullDown({ constId: 'CON3' })
         .toPromise()
-        .then((response) => {
+        .then(response => {
           this.gradeList = response
         })
       // 类型
       if (this.deptBudgetList.warehouseType == '1') {
         pullDown({ constId: 'CON5' })
           .toPromise()
-          .then((response) => {
+          .then(response => {
             this.storageType = response
           })
       } else if (this.deptBudgetList.warehouseType == '2') {
         pullDown({ constId: 'WARE1' })
           .toPromise()
-          .then((response) => {
+          .then(response => {
             this.storageType = response
           })
 
         pullDown({ constId: 'WARE2' })
           .toPromise()
-          .then((response) => {
+          .then(response => {
             this.deliveryType = response
           })
       }
       //合同编号
       xialaNo({ compId: sessionStorage.getItem('ws-pf_compId') })
         .toPromise()
-        .then((response) => {
+        .then(response => {
           this.outContractNo = response
         })
       //经办人
       getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
         .toPromise()
-        .then((response) => {
+        .then(response => {
           this.options = response
-           this.staffList = response
+          this.staffList = response
           //  this.agent = response
         })
     },
@@ -1260,10 +1233,10 @@ export default {
     handleExamine(row) {
       this.$router.push({
         name: 'salesContractExamine',
-        query: { id: row.id },
+        query: { id: row.id }
       })
-    },
-  },
+    }
+  }
 }
 </script>
 <style lang="scss" scoped>