Jelajahi Sumber

前端孟祥旭

mxx 4 tahun lalu
induk
melakukan
0a3da9615a
29 mengubah file dengan 1683 tambahan dan 706 penghapusan
  1. 4 5
      src/api/V2/contract/index.js
  2. 10 0
      src/api/V2/taskspost/index.js
  3. 2 0
      src/api/V2/transport/index.js
  4. 7 0
      src/api/V2/warehouse/index.js
  5. 4 0
      src/lang/zh.js
  6. 4 2
      src/model/contarct/index.js
  7. 20 0
      src/model/tasksport/index.js
  8. 4 1
      src/model/transport/index.js
  9. 11 1
      src/model/warehouse/index.js
  10. 1 6
      src/views/contractManagement/purchaseContract.vue
  11. 46 11
      src/views/contractManagement/purchaseContractAdd.vue
  12. 52 21
      src/views/contractManagement/purchaseContractEdit.vue
  13. 83 0
      src/views/taskManagement/component/routers/route.js
  14. 0 0
      src/views/taskManagement/tranManagementLook.vue
  15. 645 0
      src/views/taskManagement/tranManagementTransporTationFire.vue
  16. 107 145
      src/views/taskManagement/tranManagementTransport.vue
  17. 41 39
      src/views/taskManagement/tranManagementTransportAdd.vue
  18. 0 0
      src/views/taskManagement/tranManagementTransportEdit.vue
  19. 0 92
      src/views/tranManagement/component/routers/route.js
  20. 85 92
      src/views/tranManagement/tranManagementVehicle.vue
  21. 92 68
      src/views/warehouse/warehouseManagementDelete.vue
  22. 56 30
      src/views/warehouse/warehouseManagementDelivery.vue
  23. 0 1
      src/views/warehouse/warehouseManagementEdit.vue
  24. 0 3
      src/views/warehouse/warehouseManagementList.vue
  25. 24 11
      src/views/warehouse/warehouseManagementNoComplete.vue
  26. 142 84
      src/views/warehouse/warehouseManagementPerfectDelivery.vue
  27. 199 85
      src/views/warehouse/warehouseManagementPerfectput.vue
  28. 40 9
      src/views/warehouse/warehouseManagementPut.vue
  29. 4 0
      vue.config.js

+ 4 - 5
src/api/V2/contract/index.js

@@ -19,11 +19,10 @@ export const API_GET_BILL_OPERATE_HIS = '/billOperateHis/query/commonBillOperate
 // 修改状态
 export const API_POST_EDITSTATUS = '/contractManagementInfo/editStatus'
 //删除销售合同
-export const API_POST_CONTRACT_DELETE ='/contractManagementInfo/deleteInfo '
+export const API_POST_CONTRACT_DELETE = '/contractManagementInfo/deleteInfo '
 //销售合同修改编辑 
 
-export const API_POST_EDITINFO ='/contractManagementInfo/editInfo'
-
-
-                                         
+export const API_POST_EDITINFO = '/contractManagementInfo/editInfo'
+// 获取负责人
+export const API_GET_STAFF = '/staff/query/getStaffListByCompId'
 

+ 10 - 0
src/api/V2/taskspost/index.js

@@ -0,0 +1,10 @@
+// 运输任务列表
+export const API_GET_TRAN_LIST = '/tranTaskInfo/selectTranTaskInfoPage'
+// 识别身份证
+export const API_POST_PERSON = '/driverViewInfo/personShibie'
+// 识别银行卡号
+export const API_GET_bank = '/driverViewInfo/bankShibie'
+//运输任务查看
+export const API_POST_TRAN_LOOK = '/tranTaskInfo/getTranTask'
+//运输任务-添加-根据仓库类型选库名
+export const API_GET_TRAN_TASK_WAREHOUSE = '/tranTaskInfo/selectWarehouseList'

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

@@ -24,3 +24,5 @@ export const API_POST_EDIT_DRIVER = '/driverViewInfo/api/editInfo'
 export const API_GET_PRAAMETER = '/commonSysParameter/getInfo'
 //运输任务查看
 export const API_POST_TRAN_LOOK = '/tranTaskInfo/getTranTask'
+// 汽运调度列表
+export const API_GET_AUTOMOBILE_TRAN_LIST = '/tranProcessInfo/selectTranProcessInfo'

+ 7 - 0
src/api/V2/warehouse/index.js

@@ -49,4 +49,11 @@ export const API_GET_STAFF = '/staff/query/getStaffListByCompId'
 //临时库记录
 export const API_GET_WAREHOUSE_RECORDSS ='/warehouseInOutInfo/selectInfoTemporary'
 
+//临时出库货名下拉
+export const API_GET_GOODSNAME_XIALA = '/warehouseInOutInfo/selectTemporaryGoodsNameList'
+//临时库待完成
+export const API_GET_WAREHOUSE_LIST = '/warehouseInOutInfo/selectWarehouseInOutInfoTemporary'
+
+
+
 

+ 4 - 0
src/lang/zh.js

@@ -509,6 +509,8 @@
     warehouseManagementPerfectDelivery: '编辑',
     tranManagementTransport: '运输任务',
     tranManagementDriverEdit: '编辑司机',
+    // 任务管理
+    taskManagement: '任务管理',
 
     tranManagementLook: '运输任务查看',
     tranManagementTransportAdd: '运输任务添加',
@@ -4734,6 +4736,8 @@
   tranManagementTransporTationFire: {
     tranManagementTransporTationFire: '火运调度'
   },
+  // 任务管理
+  tranManagement: '任务管理',
   // 年度培训
   annualTraining: {
     trainingResults: '培训结果',

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

@@ -15,7 +15,7 @@ import {
     API_GET_CONTRACT_MANAGEMENTINFO,
     API_POST_EDITINFO,
     API_POST_CONTRACT_DELETE,
-    API_POST_CLEARANCE,
+    API_GET_STAFF
 } from '@/api/V2/contract'
 // 列表
 export const getList = appRx.get(API_GET_CONTRACT_TENANT, errorCatcher, errorHandle, filter)
@@ -37,9 +37,11 @@ export const billoperatehis = appRx.get(API_GET_BILL_OPERATE_HIS, errorCatcher,
 // 修改状态
 export const editstatus = appRx.post(API_POST_EDITSTATUS, errorCatcher, errorHandle, filter)
 //删除销售合同
-export const deletecontract = appRx.post(API_POST_CONTRACT_DELETE,errorCatcher,errorHandle,filter) 
+export const deletecontract = appRx.post(API_POST_CONTRACT_DELETE, errorCatcher, errorHandle, filter)
 //修改销售合同编辑
 export const editInfo = appRx.post(API_POST_EDITINFO, errorCatcher, errorHandle, filter)
+//获取负责人
+export const getstaff = appRx.get(API_GET_STAFF, errorCatcher, errorHandle, filter)
 
 
 

+ 20 - 0
src/model/tasksport/index.js

@@ -0,0 +1,20 @@
+import { errorCatcher, errorHandle, filter } from 'base-core-lib'
+import { appRx } from '../defalutConfig/indexRx'
+
+import {
+    API_GET_TRAN_LIST,
+    API_POST_TRAN_ADD,
+    API_POST_PERSON,
+    API_POST_TRAN_LOOK,
+    API_GET_TRAN_TASK_WAREHOUSE,
+} from '@/api/V2/taskspost'
+//运输任务列表
+export const gain = appRx.get(API_GET_TRAN_LIST, errorCatcher, errorHandle, filter)
+//运输任务添加
+export const addtrantask = appRx.post(API_POST_TRAN_ADD, errorCatcher, errorHandle, filter)
+// 识别身份证
+export const getidentity = appRx.get(API_POST_PERSON, errorCatcher, errorHandle, filter)
+//运输任务查看
+export const lookTranTask = appRx.get(API_POST_TRAN_LOOK, errorCatcher, errorHandle, filter)
+//运输任务-添加-根据仓库类型选库名
+export const getwarehousename = appRx.get(API_GET_TRAN_TASK_WAREHOUSE, errorCatcher, errorHandle, filter)

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

@@ -16,6 +16,7 @@ import {
     API_POST_EDIT_DRIVER,
     API_GET_PRAAMETER,
     API_POST_TRAN_LOOK,
+    API_GET_AUTOMOBILE_TRAN_LIST
 } from '@/api/V2/transport'
 // 司机列表
 export const selectDriver = appRx.get(API_GET_TRAN_DRIVERINFO, errorCatcher, errorHandle, filter)
@@ -44,4 +45,6 @@ export const editdriver = appRx.post(API_POST_EDIT_DRIVER, errorCatcher, errorHa
 // 司机管理-车头、车型
 export const packList = appRx.get(API_GET_PRAAMETER, errorCatcher, errorHandle, filter)
 //运输任务查看
-export const lookTranTask = appRx.get(API_POST_TRAN_LOOK, errorCatcher, errorHandle, filter)
+export const lookTranTask = appRx.get(API_POST_TRAN_LOOK, errorCatcher, errorHandle, filter)
+//汽运调度列表
+export const automobileList = appRx.get(API_GET_AUTOMOBILE_TRAN_LIST, errorCatcher, errorHandle, filter)

+ 11 - 1
src/model/warehouse/index.js

@@ -24,7 +24,8 @@ import {
     API_GET_WAREHOUSE_NO,
     API_GET_STAFF,
     API_GET_WAREHOUSE_RECORDSS,
-
+    API_GET_GOODSNAME_XIALA,
+    API_GET_WAREHOUSE_LIST
 } from '@/api/V2/warehouse'
 // import { app } from 'electron'
 // 列表
@@ -72,5 +73,14 @@ export const getstaff = appRx.get(API_GET_STAFF, errorCatcher, errorHandle, filt
 //临时库记录
 export const recordss = appRx.get(API_GET_WAREHOUSE_RECORDSS, errorCatcher , errorHandle , filter)
 
+//临时出库货名下拉
+export const goodsnameXiala = appRx.get(API_GET_GOODSNAME_XIALA, errorCatcher, errorHandle, filter)
+//临时库待完成
+export const completeList = appRx.get(API_GET_WAREHOUSE_LIST, errorCatcher, errorHandle, filter)
+//临时出入库合同编号下拉
+export const xialaNo = appRx.get(API_GET_WAREHOUSE_NO, errorCatcher, errorHandle, filter)
+
+
+
 
 

+ 1 - 6
src/views/contractManagement/purchaseContract.vue

@@ -4,12 +4,7 @@
   <div>
     <BaseHeaderLayout :leftSpan="10">
       <template slot="left">
-        <ws-button
-          type="primary"
-          @click="handleAdd()"
-          v-hasPermission="
-            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
-          "
+        <ws-button type="primary" @click="handleAdd()"
           ><img
             width="13"
             height="13"

+ 46 - 11
src/views/contractManagement/purchaseContractAdd.vue

@@ -321,20 +321,20 @@
           span="1"
           prop="packingMethod"
         >
-          <ws-select
-            v-model="deptBudgetList.packingMethod"
+          <el-select
+            v-model="deptBudgetList.personCharge"
             placeholder="请选择临时库负责人"
-            class="typeselect"
-            :value="value1"
-            @change="selectpackingMethod"
+            filterable
+            :filter-method="dataFilter"
+            @change="selectstaff"
           >
-            <ws-option
-              v-for="item in packtypeList"
-              :key="item.constKey"
-              :label="item.constValue"
-              :value="item.constValue"
+            <el-option
+              v-for="item in options"
+              :key="item.value"
+              :label="item.staffName"
+              :value="item.staffName"
             />
-          </ws-select>
+          </el-select>
         </ws-form-item>
       </ws-info-table>
       <div class="wenzi">
@@ -554,6 +554,7 @@ import {
   addxiala,
   editxiala,
   delxiala,
+  getstaff,
 } from '@/model/contarct/index'
 import { regionData, CodeToText, TextToCode } from 'element-china-area-data'
 import { dayjs, fmoney, EventBus } from 'base-core-lib'
@@ -600,6 +601,8 @@ export default {
         //   { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' },
         // ],
       },
+      options: [],
+      staffList: [],
       appendixIdsAdd: '',
       size: 10,
       // uploadSuccess: {},
@@ -661,10 +664,42 @@ export default {
     this.deptBudgetList.contractProcessInfo.gradeKey = 1
     this.deptBudgetList.contractGoodsInfo.grade = '一等品'
     this.deptBudgetList.contractGoodsInfo.gradeKey = 1
+    console.log(1111)
+    getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
+      .toPromise()
+      .then((response) => {
+        this.options = response
+        this.staffList = response
+      })
     this.loaddata()
     this.showType = this.isShow
   },
   methods: {
+    dataFilter(val) {
+      this.deptBudgetList.personCharge = val
+      if (val) {
+        //val存在
+        this.options = this.staffList.filter((item) => {
+          if (
+            !!~item.staffName.indexOf(val) ||
+            !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
+          ) {
+            return true
+          }
+        })
+      } else {
+        //val为空时,还原数组
+        this.options = this.staffList
+      }
+    },
+    selectstaff(e) {
+      for (var i = 0; i < this.staffList.length; i++) {
+        if (this.staffList[i].staffName == e) {
+          this.deptBudgetList.personPhone = this.staffList[i].staffMobilePhone
+          this.deptBudgetList.personChargeKey = this.staffList[i].staffId
+        }
+      }
+    },
     // 关闭 dialog时 处理文件url 初始化upload组件
     handleClose() {
       this.dialogViewSpareMoney = false

+ 52 - 21
src/views/contractManagement/purchaseContractEdit.vue

@@ -62,7 +62,6 @@
         </ws-form-item>
         <!-- 交货方式 -->
         <ws-form-item label="结算方式" span="1" prop="settlementMethod">
-          
           <ws-input
             v-model="deptBudgetList.settlementMethod"
             maxlength="100"
@@ -312,19 +311,20 @@
           prop="packingMethod"
           v-show="deptBudgetList.deliverType == 1"
         >
-          <ws-select
-            v-model="deptBudgetList.packingMethod"
-            placeholder=""
-            class="typeselect"
-            @change="selectpackingMethod"
+          <el-select
+            v-model="deptBudgetList.personCharge"
+            placeholder="请选择临时库负责人"
+            filterable
+            :filter-method="dataFilter"
+            @change="selectstaff"
           >
-            <ws-option
-              v-for="item in packtypeList"
-              :key="item.constKey"
-              :label="item.constValue"
-              :value="item.constValue"
+            <el-option
+              v-for="item in options"
+              :key="item.value"
+              :label="item.staffName"
+              :value="item.staffName"
             />
-          </ws-select>
+          </el-select>
         </ws-form-item>
       </ws-info-table>
       <base-card>
@@ -528,6 +528,7 @@ import {
   delxiala,
   examineList,
   editInfo,
+  getstaff,
 } from '@/model/contarct/index'
 import WsUpload from '@/components/WsUpload'
 import { EventBus, dayjs } from 'base-core-lib'
@@ -572,6 +573,8 @@ export default {
       mainReportAdd: {},
       list: {},
       unitList: [],
+      options: [],
+      staffList: [],
       packtypeList: [],
       goodnameList: [],
       gradeList: [],
@@ -588,10 +591,41 @@ export default {
   },
 
   activated() {
+    getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
+      .toPromise()
+      .then((response) => {
+        this.options = response
+        this.staffList = response
+      })
     this.loaddata()
     this.showType = this.isShow
   },
   methods: {
+    dataFilter(val) {
+      this.deptBudgetList.personCharge = val
+      if (val) {
+        //val存在
+        this.options = this.staffList.filter((item) => {
+          if (
+            !!~item.staffName.indexOf(val) ||
+            !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
+          ) {
+            return true
+          }
+        })
+      } else {
+        //val为空时,还原数组
+        this.options = this.staffList
+      }
+    },
+    selectstaff(e) {
+      for (var i = 0; i < this.staffList.length; i++) {
+        if (this.staffList[i].staffName == e) {
+          this.deptBudgetList.personPhone = this.staffList[i].staffMobilePhone
+          this.deptBudgetList.personChargeKey = this.staffList[i].staffId
+        }
+      }
+    },
     handleChange(value) {
       this.selectedOptions = value
     },
@@ -603,7 +637,6 @@ export default {
       examineList({ id: this.$route.query.id })
         .toPromise()
         .then((response) => {
-         
           if (response.weight) {
             response.weight = String(response.weight)
           }
@@ -634,10 +667,10 @@ export default {
             ].code
           this.selectedOptions1 = tmp1
           this.deptBudgetList = response
-          if(this.deptBudgetList.deliverType == 1){
-            this.deptBudgetList.deliverType1 = "我方自提"
-          }else if(this.deptBudgetList.deliverType == 2){
-            this.deptBudgetList.deliverType1 = "对方送货" 
+          if (this.deptBudgetList.deliverType == 1) {
+            this.deptBudgetList.deliverType1 = '我方自提'
+          } else if (this.deptBudgetList.deliverType == 2) {
+            this.deptBudgetList.deliverType1 = '对方送货'
           }
         })
       // 包装方式
@@ -645,7 +678,6 @@ export default {
         .toPromise()
         .then((response) => {
           this.packtypeList = response
-          
         })
       // 验收方式
       this.getUnitList()
@@ -702,7 +734,6 @@ export default {
       })
         .toPromise()
         .then((response) => {
-           
           this.unitList = response
           let currItem
           this.unitList.forEach((item, index, arr) => {
@@ -715,7 +746,6 @@ export default {
           if (currItem) {
             this.selectContract(currItem.constValue)
           }
-          
         })
     },
     // 关闭 dialog时 处理文件url 初始化upload组件
@@ -1266,7 +1296,8 @@ export default {
       }
       this.$refs.deptBudgetList.validate((valid) => {
         if (valid) {
-          this.deptBudgetList.sourceProvince = CodeToText[this.selectedOptions[0]]
+          this.deptBudgetList.sourceProvince =
+            CodeToText[this.selectedOptions[0]]
           this.deptBudgetList.sourceCity = CodeToText[this.selectedOptions[1]]
           this.deptBudgetList.sourceArea = CodeToText[this.selectedOptions[2]]
           this.deptBudgetList.deliveryProvince =

+ 83 - 0
src/views/taskManagement/component/routers/route.js

@@ -0,0 +1,83 @@
+import Layout from '@/layout/index';
+
+const tranManagementRouter = {
+
+  path: '/taskManagement',
+  component: Layout,
+  redirect: '/taskManagement',
+  name: 'taskManagement',
+  alwaysShow: true, // will always show the root menu
+  meta: {
+    title: 'taskManagement',
+    module: 'taskManagement',
+    icon: 'cg'
+  },
+  children: [
+    //运输任务
+    {
+      path: 'tranManagementTransport',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/taskManagement/tranManagementTransport'),
+      name: 'tranManagementTransport',
+      meta: {
+        title: 'tranManagementTransport',
+        shortcutEntrance: 'tranManagement',
+        module: 'tranManagement.tranManagementDriver.tranManagementTransport',
+        permissicon: [],
+        keepAlive: true
+      },
+
+      // hidden: true
+    },
+    //运输查看
+    {
+      path: 'tranManagementLook',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/taskManagement/tranManagementLook'),
+      name: 'tranManagementLook',
+      meta: {
+        title: 'tranManagementLook',
+        shortcutEntrance: 'tranManagement',
+        module: 'tranManagement.tranManagementDriver.tranManagementLook',
+        permissicon: [],
+        keepAlive: true
+      },
+      hidden: true
+    },
+    //运输添加
+    {
+      path: 'tranManagementTransportAdd',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/taskManagement/tranManagementTransportAdd'),
+      name: 'tranManagementTransportAdd',
+      meta: {
+        title: 'tranManagementTransportAdd',
+        shortcutEntrance: 'tranManagement',
+        module: 'tranManagement.tranManagementDriver.tranManagementTransportAdd',
+        permissicon: [],
+        keepAlive: true
+      },
+      hidden: true
+    },
+    //运输编辑
+    {
+      path: 'tranManagementTransportEdit',
+      component: () =>
+        import(/* webpackChunkName: "applDetail" */ '@/views/taskManagement/tranManagementTransportEdit'),
+      name: 'tranManagementTransportEdit',
+      meta: {
+        title: 'tranManagementTransportEdit',
+        shortcutEntrance: 'tranManagement',
+        module: 'tranManagement.tranManagementDriver.tranManagementTransportEdit',
+        permissicon: [],
+        keepAlive: true
+      },
+      hidden: true
+
+    },
+
+  ],
+
+};
+
+export default tranManagementRouter;

+ 0 - 0
src/views/tranManagement/tranManagementLook.vue → src/views/taskManagement/tranManagementLook.vue


+ 645 - 0
src/views/taskManagement/tranManagementTransporTationFire.vue

@@ -0,0 +1,645 @@
+//火运调度
+<template>
+  <div>
+    <BaseHeaderLayout :leftSpan="20">
+      <template slot="left">
+        <ws-button
+          class="but"
+          type="primary"
+          @click="handleAdd()"
+          v-hasPermission="
+            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
+          "
+        >
+          执行中</ws-button
+        >
+        <ws-button
+          class="but"
+          @click="handleLook()"
+          v-hasPermission="
+            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
+          "
+          >已完成</ws-button
+        >
+        <ws-button
+          class="but"
+          @click="handleEdit()"
+          v-hasPermission="
+            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
+          "
+          >全部任务</ws-button
+        >
+      </template>
+      <!-- 接单开始 -->
+      <template slot="left">
+        <ws-date-picker
+          v-model="deptBudgetList.inOutDate"
+          type="date"
+          placeholder="请选择开始日期"
+          value-format="yyyy-MM-dd"
+        />
+        <span>至</span>
+        <ws-date-picker
+          v-model="deptBudgetList.inOutDate"
+          type="date"
+          placeholder="请选择结束日期"
+          value-format="yyyy-MM-dd"
+        />
+        <ws-input
+          v-model="searchKeyWord"
+          placeholder="可按照合同编号、买方名称、卖方名称进行查找"
+          clearable
+          maxlength="500"
+          type="input"
+          class="findValue"
+        ></ws-input>
+        <!-- v-hasPermission="'procurement.sparepart.directShip'" -->
+        <ws-button
+          class="find"
+          type="primary"
+          @click="find()"
+          v-hasPermission="
+            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
+          "
+          ><img
+            width="16"
+            height="16"
+            style="
+              vertical-align: text-top;
+              position: relative;
+              top: 0px;
+              left: -8px;
+            "
+            src="../../../public/img/sousuo.png"
+            alt=""
+        /></ws-button>
+      </template>
+    </BaseHeaderLayout>
+    <div>
+      <el-table
+        class="wenzi"
+        :data="warehouseList"
+        style="width: 100%; margin-top: 20px"
+        height="780"
+      >
+        <el-table-column prop="warehouseName" label="序号" width="80">
+        </el-table-column>
+        <el-table-column prop="binNumber" label="运输任务编号" width="80">
+        </el-table-column>
+        <el-table-column prop="capacity" label="货名">
+          <template slot-scope="scope">
+            <div
+              v-if="scope.row.capacity != 'null' && scope.row.capacity != null"
+            >
+              {{ scope.row.capacity }}
+            </div>
+          </template>
+        </el-table-column>
+        <el-table-column class="table_td" label="重量(吨)">
+          <template slot-scope="scope">
+            <div
+              style="height: 24px"
+              v-for="(item, i) in scope.row.warehouseNumViewList"
+            >
+              {{ item.inNetWeight }}
+            </div>
+          </template>
+        </el-table-column>
+        <el-table-column class="table_td" label="发货">
+          <template slot-scope="scope">
+            <div
+              style="height: 24px"
+              v-for="(item, i) in scope.row.warehouseNumViewList"
+            >
+              {{ item.outNetWeight }}
+            </div>
+          </template>
+        </el-table-column>
+        <el-table-column class="table_td" label="收货">
+          <template slot-scope="scope">
+            <div
+              style="height: 24px"
+              v-for="(item, i) in scope.row.warehouseNumViewList"
+            >
+              {{ item.storage }}
+            </div>
+          </template>
+        </el-table-column>
+        <el-table-column class="table_td" label="运输周期">
+          <template slot-scope="scope">
+            <div
+              style="height: 24px"
+              v-for="(item, i) in scope.row.warehouseNumViewList"
+            >
+              {{ item.storage }}
+            </div>
+          </template>
+        </el-table-column>
+
+        <el-table-column prop="status" label="状态">
+          <template slot-scope="scope">
+            <el-popover
+              placement="left"
+              :width="285"
+              trigger="click"
+              visible-arrow="false"
+              @show="history(scope.row)"
+            >
+              <template>
+                <span slot="reference">
+                  <span
+                    v-if="scope.row.status == '待执行'"
+                    class="executory"
+                  ></span>
+                  <span
+                    v-if="scope.row.status == '执行中'"
+                    class="inExecution"
+                  ></span>
+                  <span v-if="scope.row.status == '已完成'" class="done"></span
+                  >{{ scope.row.status }}
+                </span>
+              </template>
+              <div>
+                <p style="margin-top: 0; padding-left: 10px">XXXXX</p>
+                <div v-for="(item, index) in historyList" class="flex">
+                  <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>
+                  <div class="vertical-text">
+                    {{ item.operateUser }}<br />{{ item.dealMsg }}
+                  </div>
+                </div>
+              </div>
+            </el-popover>
+            <img
+              width="17"
+              height="18"
+              style="vertical-align: text-top; position: relative; top: -1px"
+              src="../../../public/img/edit.png"
+              @click="editClick(scope.row)"
+              alt=""
+            />
+          </template>
+        </el-table-column>
+        <el-table-column class="table_td" label="接单日期">
+          <template slot-scope="scope">
+            <div
+              style="height: 24px"
+              v-for="(item, i) in scope.row.warehouseNumViewList"
+            >
+              {{ item.storage }}
+            </div>
+          </template>
+        </el-table-column>
+        <el-table-column prop="seller" label="操作" width="300">
+          <template slot-scope="scope">
+            <ws-button
+              class="completed"
+              @click="nocomplete(scope.row)"
+              v-hasPermission="
+                `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
+              "
+            >
+              查看({{ scope.row.number }})
+            </ws-button>
+            <ws-button
+              class="putstorage"
+              @click="warehousing(scope.row)"
+              v-hasPermission="
+                `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
+              "
+            >
+              车次
+            </ws-button>
+          </template>
+        </el-table-column>
+        <!-- <el-table-column prop="address" label="操作" width="200">
+          <template slot-scope="scope">
+            <div class="record" @click="record(scope.row)">记录</div>
+            <div class="adjustment" @click="loss(scope.row)">盘损</div>
+          </template>
+        </el-table-column> -->
+      </el-table>
+    </div>
+  </div>
+</template>
+<script>
+import {
+  getList,
+  export1,
+  editstatus,
+  billoperatehis,
+} from '@/model/warehouse/index'
+import { downloadFile } from '@/utils/batchDown'
+import Pagination from '@/components/Pagination'
+import WsUpload from '@/components/WsUpload'
+import { dayjs, fmoney, EventBus } from 'base-core-lib'
+export default {
+  name: 'viewSpareMoney',
+  components: {
+    WsUpload,
+    Pagination,
+  },
+  watch: {
+    vesselId(val) {
+      this.getList()
+    },
+    isShow(val) {
+      this.showType = val
+    },
+  },
+  data() {
+    return {
+      //弹出框
+      dialogViewSpareMoney: false,
+      dialogApproveFormVisible: false,
+      // 船舶类型
+      monetaryKey: null,
+      // 表格显示数据
+      tableDate: [],
+
+      // 是否显示
+      showType: true,
+      // 年
+      year: '',
+      currentPage: 1,
+      pageSize: 10,
+      searchType: 1,
+      searchTypeText: '未完成',
+      searchKeyWord: '',
+      contractType: 2,
+      // 提交类型
+      submitType: true,
+      size: 10,
+      spanArr: [],
+      warehouseName: '',
+      compId: sessionStorage.getItem('ws-pf_compId'),
+      deptCircularPage: {},
+      warehouseList: [],
+      deptBudgetList: {},
+      historyList: [],
+      pickerBeginDateBefore: {
+        disabledDate: (time) => {
+          return time.getTime() > Date.now()
+        },
+      },
+      accessoryTFs: false,
+    }
+  },
+  activated() {
+    //cg.viewBudget
+    //cg.viewSpareMoney
+    // this.getVesselData();
+    this.getList()
+    this.showType = this.isShow
+  },
+  methods: {
+    //出库
+    delivery(item) {
+      this.$router.push({
+        path: 'warehouseManagementDelivery',
+        query: {
+          baseId: item.warehouseId,
+          positionId: item.binNumberId,
+          warehouseName: item.warehouseName,
+          binNumber: item.binNumber,
+          capacity: item.capacity,
+        },
+      })
+    },
+    //派车
+    warehousing(item) {
+      var free = 0
+      for (var i = 0; i < item.warehouseNumViewList.length; i++) {
+        free += Number(item.warehouseNumViewList[i].storage)
+      }
+      this.$router.push({
+        path: 'tranManagementVehicleDispatching',
+        query: {
+          baseId: item.warehouseId,
+          positionId: item.binNumberId,
+          warehouseName: item.warehouseName,
+          binNumber: item.binNumber,
+          capacity: item.capacity - free,
+        },
+      })
+    },
+    getSpanArr(data) {
+      let that = this
+
+      //页面展示的数据,不一定是全部的数据,所以每次都清空之前存储的 保证遍历的数据是最新的数据。以免造成数据渲染混乱
+
+      that.spanArr = []
+
+      that.pos = 0
+
+      //遍历数据
+
+      data.forEach((item, index) => {
+        //判断是否是第一项
+
+        // if (index === 0) {
+        //   this.spanArr.push(1)
+        //   this.pos = 0
+        // } else {
+        //不是第一项时,就根据标识去存储
+        if (data[index].warehouseNumViewList.length > 1) {
+          // 查找到符合条件的数据时每次要把之前存储的数据+1
+          this.spanArr[this.pos] = data[index].warehouseNumViewList.length
+          this.spanArr.push(0)
+        } else {
+          // 没有符合的数据时,要记住当前的index
+          this.spanArr.push(1)
+          this.pos = index
+        }
+        // }
+      })
+    },
+    //查看//传参
+    nocomplete(row) {
+      this.$router.push({
+        path: 'tranManagementVehicleLook',
+        // query: {
+        //   baseId: row.warehouseId,
+        //   positionId: row.binNumberId,
+        //   warehouseName: row.warehouseName,
+        //   binNumber: row.binNumber,
+        // },
+      })
+    },
+    //记录
+    record(item) {
+      this.$router.push({
+        name: 'warehouseManagementRecord',
+        query: {
+          baseId: item.warehouseId,
+          positionId: item.binNumberId,
+          warehouseName: item.warehouseName,
+        },
+        params: {
+          remark: item.remark,
+          binNumber: item.binNumber,
+          capacity: item.capacity,
+        },
+      })
+    },
+    //盘损
+    loss(item) {
+      this.$router.push({
+        path: 'warehouseManagementIoss',
+        query: {
+          baseId: item.warehouseId,
+          positionId: item.binNumberId,
+          warehouseName: item.warehouseName,
+          binNumber: item.binNumber,
+        },
+      })
+    },
+    //查看
+    handleLook() {
+      this.$router.push({ path: 'tranManagementVehicleLook' })
+    },
+    //添加
+    handleAdd() {
+      this.$router.push({ path: 'tranManagementTransportAdd' })
+    },
+    //编辑
+    handleEdit() {
+      this.$router.push({ path: 'tranManagementTransportEdit' })
+    },
+    // 派车
+    warehousing() {
+      this.$router.push({ path: 'tranManagementVehicleDispatching' })
+    },
+    dateFormat(fmt, date) {
+      let ret
+      const opt = {
+        'Y+': date.getFullYear().toString(), // 年
+        'm+': (date.getMonth() + 1).toString(), // 月
+        'd+': date.getDate().toString(), // 日
+        'H+': date.getHours().toString(), // 时
+        // "M+": date.getMinutes().toString(),         // 分
+        // "S+": date.getSeconds().toString()          // 秒
+        // 有其他格式化字符需求可以继续添加,必须转化成字符串
+      }
+      for (let k in opt) {
+        ret = new RegExp('(' + k + ')').exec(fmt)
+        if (ret) {
+          fmt = fmt.replace(
+            ret[1],
+            ret[1].length == 1 ? opt[k] : opt[k].padStart(ret[1].length, '0')
+          )
+        }
+      }
+      return fmt
+    },
+    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() {
+      getList({
+        compId: sessionStorage.getItem('ws-pf_compId'),
+        warehouseName: this.warehouseName,
+      })
+        .toPromise()
+        .then((response) => {
+          this.warehouseList = response
+        })
+    },
+    editClick(row) {
+      var status = ''
+      if (row.status == '待执行' || row.status == '已完成') {
+        status = '执行中'
+      } else if (row.status == '执行中') {
+        status = '已完成'
+      }
+      //cancelButtonClass: "btn-custom-cancel"
+      this.$confirm(`是否将状态改为${status}`, {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning',
+      })
+        .then(() => {
+          editstatus({ id: row.id })
+            .toPromise()
+            .then((response) => {
+              this.$notify.success({
+                title: '成功',
+                message: '状态修改成功',
+              })
+              this.getList()
+            })
+            .catch((response) => {
+              // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+            })
+        })
+        .catch(() => {
+          return false
+        })
+    },
+    selecttaskType(e) {
+      for (var i = 0; i < this.taskTypeList.length; i++) {
+        if (this.taskTypeList[i].value == e) {
+          this.searchType = this.taskTypeList[i].type
+        }
+      }
+    },
+    fujian(row) {
+      if (
+        row.receiveAttachmentPath === null ||
+        row.receiveAttachmentPath === ''
+      ) {
+        EventBus.$emit(
+          'warning',
+          this.$t('system.noticeCircular.NoInformation')
+        )
+      } else {
+        this.accessoryTFs = true
+      }
+      this.appendixIdss = row.receiveAttachmentPath
+    },
+    handleExamine(row) {
+      this.$router.push({
+        name: 'salesContractExamine',
+        query: { id: row.id },
+      })
+    },
+    // 关闭 dialog时 处理文件url 初始化upload组件
+    handleCloe() {
+      this.dialogViewSpareMoney = false
+    },
+    history(row) {
+      billoperatehis({ id: row.id })
+        .toPromise()
+        .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>
+.connert {
+  width: 90%;
+  margin: 0 auto;
+}
+.vertical-text-left {
+  width: 62px;
+  text-align: right;
+}
+.el-button--primary {
+  background-color: #5878e8;
+  border-color: #5878e8;
+}
+.el-button--default {
+  color: #8890b1;
+  border-color: #e8eaf1;
+}
+/deep/.base_header_layout .grid-content.right .find.el-button--primary {
+  width: 30px;
+  margin-left: 0;
+  border-top-left-radius: 0px;
+  border-bottom-left-radius: 0px;
+}
+/deep/.findValue .el-input__inner {
+  border-top-right-radius: 0px;
+  border-bottom-right-radius: 0px;
+}
+.completed.el-button--default {
+  border-color: #5878e8;
+  background-color: #f6f7fc;
+  color: #5878e8;
+}
+.putstorage.el-button--default,
+.deliverystorage.el-button--default {
+  border-color: #8890b1;
+  background-color: #fff;
+  color: #8890b1;
+}
+/deep/.el-table td,
+/deep/.el-table th.is-leaf {
+  border-right: 1px solid #e9ecf7;
+  text-align: center;
+}
+/deep/.el-table tr td:first-child,
+/deep/.el-table tr th.is-leaf:first-child {
+  border-left: 1px solid #e9ecf7;
+}
+.record,
+.adjustment {
+  display: inline-block;
+  color: #5878e8;
+  padding: 0 4px !important;
+  position: relative;
+}
+.record:after {
+  position: absolute;
+  content: '';
+  display: block;
+  top: 5px;
+  right: -2px;
+  width: 1px;
+  height: 12px;
+  background: #e9ecf7;
+}
+.el-row {
+  height: 150px;
+}
+.base_header_layout .grid-content {
+  margin-top: 80px;
+}
+.but {
+  margin-top: 150px;
+}
+.el-input--small .el-input__inner {
+  margin-left: 20px;
+}
+.el-range-editor--small.el-input__inner {
+  height: 32px;
+  margin-left: -20%;
+}
+</style>

+ 107 - 145
src/views/tranManagement/tranManagementTransport.vue → src/views/taskManagement/tranManagementTransport.vue

@@ -2,60 +2,30 @@
 <template>
   <div>
     <BaseHeaderLayout :leftSpan="20">
-     <template slot="right">
-        <ws-button
-        class="but"
-          type="primary"
-          @click="handleAdd()"
-          v-hasPermission="
-            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
-          "
+      <template slot="right">
+        <ws-button class="but" type="primary" @click="handleAdd()"
           >添加</ws-button
         >
       </template>
       <template slot="left">
-        <ws-button
-        class="but"
-          type="primary"
-          @click="handle()"
-          v-hasPermission="
-            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
-          "
-          >
+        <ws-button class="but" type="primary" @click="handle()">
           执行中</ws-button
         >
-        <ws-button
-        class="but"
-          @click="handleLook()"
-          v-hasPermission="
-            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
-          "
-          >已完成</ws-button
-        >
-        <ws-button
-        class="but"
-          @click="handleEdit()"
-          v-hasPermission="
-            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
-          "
-          >全部任务</ws-button
-        >
-        
+        <ws-button class="but" @click="handleLook()">已完成</ws-button>
+        <ws-button class="but" @click="handleEdit()">全部任务</ws-button>
       </template>
       <template slot="left">
-          <ws-input
+        <ws-input
           label="起点"
-         
           placeholder="请输入起点"
           clearable
           maxlength="200"
           type="input"
           class="find"
         ></ws-input>
-        
+
         <ws-input
-        label="终点"
-          
+          label="终点"
           placeholder="请输入终点"
           clearable
           maxlength="200"
@@ -72,27 +42,20 @@
         ></ws-input>
         <!-- v-hasPermission="'procurement.sparepart.directShip'" -->
         <div class="search">
-            <ws-button
-          class="find"
-          type="primary"
-          @click="lookUp()"
-          v-hasPermission="
-            `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
-          "
-          ><img
-            width="16"
-            height="16"
-            style="
-              vertical-align: text-top;
-              position: relative;
-              top: 0px;
-              left: -8px;
-            "
-            src="../../../public/img/sousuo.png"
-            alt=""
-        /></ws-button>
+          <ws-button class="find" type="primary" @click="lookUp()"
+            ><img
+              width="16"
+              height="16"
+              style="
+                vertical-align: text-top;
+                position: relative;
+                top: 0px;
+                left: -8px;
+              "
+              src="../../../public/img/sousuo.png"
+              alt=""
+          /></ws-button>
         </div>
-        
       </template>
     </BaseHeaderLayout>
     <div>
@@ -115,7 +78,7 @@
             </div>
           </template>
         </el-table-column>
-        <el-table-column prop=" weight" class="table_td" label="货物(吨数)" >
+        <el-table-column prop=" weight" class="table_td" label="货物(吨数)">
           <!-- <template slot-scope="scope">
             <div
               style="height: 24px"
@@ -145,7 +108,11 @@
             </div>
           </template> -->
         </el-table-column>
-        <el-table-column prop="currentTransferAddress" class="table_td" label="当前中转">
+        <el-table-column
+          prop="currentTransferAddress"
+          class="table_td"
+          label="当前中转"
+        >
           <!-- <template slot-scope="scope">
             <div
               style="height: 24px"
@@ -157,7 +124,7 @@
         </el-table-column>
         <el-table-column prop="end" class="table_td" label="终点">
           <!-- <template slot-scope="scope"> -->
-            <!-- <div
+          <!-- <div
               style="height: 24px"
               v-for="(item, i) in scope.row.warehouseNumViewList"
             >
@@ -166,59 +133,58 @@
           <!-- </template> -->
         </el-table-column>
 
-      <el-table-column prop="status" label="状态">
-        <template slot-scope="scope">
-          <el-popover
-          placement="left"
-          :width="285"
-          trigger="click"
-          visible-arrow="false"
-          @show="history(scope.row)"
-          >
-          <template>
-            <span slot="reference">
-              <span
-              v-if="scope.row.status =='待执行'"
-              class="executory"
-              ></span>
-            <span
-            v-if="scope.row.status == '执行中'"
-            class="inExecution"
-            ></span>
-            <span v-if="scope.row.status == '已完成'" class="done"></span
-            >{{scope.row.status}}
-            </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>
-                  <div class="vertical-circle"></div>
-                  <div
-                    v-if="index != historyList.length - 1"
-                    class="vertical-line"
-                  ></div>
-                </div>
-                <div class="vertical-text">
-                  {{ item.operateUser }}<br />{{ item.dealMsg }}
+        <el-table-column prop="status" label="状态">
+          <template slot-scope="scope">
+            <el-popover
+              placement="left"
+              :width="285"
+              trigger="click"
+              visible-arrow="false"
+              @show="history(scope.row)"
+            >
+              <template>
+                <span slot="reference">
+                  <span
+                    v-if="scope.row.status == '待执行'"
+                    class="executory"
+                  ></span>
+                  <span
+                    v-if="scope.row.status == '执行中'"
+                    class="inExecution"
+                  ></span>
+                  <span v-if="scope.row.status == '已完成'" class="done"></span
+                  >{{ scope.row.status }}
+                </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>
+                    <div class="vertical-circle"></div>
+                    <div
+                      v-if="index != historyList.length - 1"
+                      class="vertical-line"
+                    ></div>
+                  </div>
+                  <div class="vertical-text">
+                    {{ item.operateUser }}<br />{{ item.dealMsg }}
+                  </div>
                 </div>
               </div>
-            </div>
-          </el-popover>
-          <img
-            width="17"
-            height="18"
-            style="vertical-align: text-top; position: relative; top: -1px"
-            src="../../../public/img/edit.png"
-            @click="editClick(scope.row)"
-            alt=""
-          />
-        </template>
-       
-      </el-table-column>
+            </el-popover>
+            <img
+              width="17"
+              height="18"
+              style="vertical-align: text-top; position: relative; top: -1px"
+              src="../../../public/img/edit.png"
+              @click="editClick(scope.row)"
+              alt=""
+            />
+          </template>
+        </el-table-column>
         <el-table-column prop="seller" label="操作" width="300">
           <template slot-scope="scope">
             <ws-button
@@ -261,9 +227,7 @@
   </div>
 </template>
 <script>
-import {
-  gain,
-} from '@/model/transport/index'
+import { gain } from '@/model/transport/index'
 import { downloadFile } from '@/utils/batchDown'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
@@ -296,7 +260,7 @@ export default {
       showType: true,
       // 年
       year: '',
-     gainList:[],
+      gainList: [],
       currentPage: 1,
       pageSize: 10,
       searchType: 1,
@@ -320,32 +284,31 @@ export default {
     }
   },
   activated() {
-    
     this.getList()
     this.showType = this.isShow
   },
   methods: {
     //添加
-    add(){
-      this.$router.push({ path :'tranManagementTransportAdd'})
+    add() {
+      this.$router.push({ path: 'tranManagementTransportAdd' })
     },
     //查找
-      lookUp(){
-        this.currentPage= 1
-        this.getList()
-      },
+    lookUp() {
+      this.currentPage = 1
+      this.getList()
+    },
     getList() {
       gain({
         compId: sessionStorage.getItem('ws-pf_compId'),
-        currentPage:this.currentPage,
-        pageSize:this.pageSize,
-        searchType:this.searchType,
-        searchKeyWord:this.searchKeyWord,
-      })
-      .toPromise()
-      .then((response)=>{
-        this.gainList = response
+        currentPage: this.currentPage,
+        pageSize: this.pageSize,
+        searchType: this.searchType,
+        searchKeyWord: this.searchKeyWord,
       })
+        .toPromise()
+        .then((response) => {
+          this.gainList = response
+        })
     },
     //编辑
     delivery(item) {
@@ -373,7 +336,7 @@ export default {
           positionId: item.binNumberId,
           warehouseName: item.warehouseName,
           binNumber: item.binNumber,
-          capacity:item.capacity - free ,
+          capacity: item.capacity - free,
         },
       })
     },
@@ -644,25 +607,24 @@ export default {
   height: 12px;
   background: #e9ecf7;
 }
-.el-row{
-    height: 150px;
+.el-row {
+  height: 150px;
 }
-.base_header_layout .grid-content{
-    margin-top: 80px;
+.base_header_layout .grid-content {
+  margin-top: 80px;
 }
-.but{
-    margin-top: 150px;
+.but {
+  margin-top: 150px;
 }
-.findValue{
-    width: 50%;
-    margin-left: 25%;
+.findValue {
+  width: 50%;
+  margin-left: 25%;
 }
-/deep/.el-input--small .el-input__inner{
+/deep/.el-input--small .el-input__inner {
   margin-left: -230px;
-   width: 300px;
+  width: 300px;
 }
-.search{
+.search {
   margin-left: -100px;
 }
-
 </style>

+ 41 - 39
src/views/tranManagement/tranManagementTransportAdd.vue → src/views/taskManagement/tranManagementTransportAdd.vue

@@ -93,7 +93,7 @@
       <ws-info-table class="el-table">
         <div class="start-address">
           <el-radio v-model="deptBudgetList.warehouseType" label="1"
-            >有库发货</el-radio
+            >有库发货</el-radio
           >
           <el-radio v-model="deptBudgetList.warehouseType" label="2"
             >临时库发货</el-radio
@@ -113,19 +113,15 @@
           </el-select>
         </div>
         <el-form-item label="始发地" span="1" class="start-address">
-          <el-select
-            v-model="deptBudgetList.contractNo"
-            placeholder="货名"
-            class="typeselect"
-            @change="selectstorageType"
-          >
-            <el-option
-              v-for="item in storageType"
-              :key="item.constKey"
-              :label="item.constValue"
-              :value="item.constValue"
-            ></el-option>
-          </el-select>
+          <el-cascader
+            :options="options_"
+            v-model="selectedOptions"
+            clearable
+            size="large"
+            placeholder="请选择始发地"
+            style="width: 200%"
+            @change="handleChange"
+          />
         </el-form-item>
         <el-form-item
           label="始发地详细地址"
@@ -166,19 +162,15 @@
           prop="contractNo"
           class="start-address"
         >
-          <el-select
-            v-model="deptBudgetList.contractNo"
-            placeholder="货名"
-            class="typeselect"
-            @change="selectstorageType"
-          >
-            <el-option
-              v-for="item in storageType"
-              :key="item.constKey"
-              :label="item.constValue"
-              :value="item.constValue"
-            ></el-option>
-          </el-select>
+          <el-cascader
+            :options="options_"
+            v-model="selectedOptions1"
+            clearable
+            size="large"
+            placeholder="请选择终到地"
+            style="width: 200%"
+            @change="handleChange1"
+          />
         </el-form-item>
         <el-form-item
           label="始发地详细地址"
@@ -359,8 +351,8 @@
 </template>
 <script>
 import { packList } from '@/model/contarct/index'
-import { provinceAndCityData, CodeToText } from 'element-china-area-data'
-import { addTranTask } from '@/model/transport/index'
+import { regionData, CodeToText, TextToCode } from 'element-china-area-data'
+import { addTranTask, getwarehousename } from '@/model/tasksport/index'
 import WsUpload from '@/components/WsUpload'
 import mapDrag from '@/components/mapdrag/mapdrag'
 export default {
@@ -386,13 +378,15 @@ export default {
         totalStorage: 0,
         goodsName: '玉米',
         goodsNameKey: 1,
+        warehouseType: '1',
         driverPayeeInfo: {},
       },
       radio: '1',
-      options_: provinceAndCityData,
+      options_: regionData,
       heightData: '600px',
       zoom: 7,
       selectedOptions: [],
+      selectedOptions1: [],
       center: [116.244694, 39.517344],
       window: '',
       district: null,
@@ -404,6 +398,7 @@ export default {
       compId: sessionStorage.getItem('ws-pf_compId'),
       mainReportAdd: {},
       appendixIdsAdd: '',
+
       size: 10,
       value1: '',
       unitList: [],
@@ -428,15 +423,6 @@ export default {
   },
   computed: {},
   methods: {
-    getList() {
-      addtrantask({
-        compId: sessionStorage.getItem('ws-pf_compId'),
-      })
-        .toPromise()
-        .then((response) => {
-          this.deptBudgetList = response
-        })
-    },
     // 获取当前年月日
     getdate() {
       var date = new Date()
@@ -474,6 +460,19 @@ export default {
         .then((response) => {
           this.goodnameList = response
         })
+      packList({ constId: 'TRAN3' })
+        .toPromise()
+        .then((response) => {
+          this.taskType = response
+        })
+      getwarehousename({
+        compId: this.compId,
+        warehouseType: this.deptBudgetList.warehouseType,
+      })
+        .toPromise()
+        .then((response) => {
+          this.taskType = response
+        })
       // // 车型
       // packList({ constId: 'TRAN1' })
       //   .toPromise()
@@ -514,6 +513,9 @@ export default {
     handleChange(value) {
       this.selectedOptions = value
     },
+    handleChange1(value) {
+      this.selectedOptions1 = value
+    },
     returnsales() {
       this.$router.push({ path: 'tranManagementTransport' })
     },

+ 0 - 0
src/views/tranManagement/tranManagementTransportEdit.vue → src/views/taskManagement/tranManagementTransportEdit.vue


+ 0 - 92
src/views/tranManagement/component/routers/route.js

@@ -12,22 +12,6 @@ const tranManagementRouter = {
     icon: 'cg'
   },
   children: [
-    //运输任务
-    {
-      path: 'tranManagementTransport',
-      component: () =>
-        import(/* webpackChunkName: "applDetail" */ '@/views/tranManagement/tranManagementTransport'),
-      name: 'tranManagementTransport',
-      meta: {
-        title: 'tranManagementTransport',
-        shortcutEntrance: 'tranManagement',
-        module: 'tranManagement.tranManagementDriver.tranManagementTransport',
-        permissicon: [],
-        keepAlive: true
-      },
-
-      // hidden: true
-    },
     //火运调度
     {
       path: 'tranManagementTransporTationFire',
@@ -59,21 +43,6 @@ const tranManagementRouter = {
       },
       hidden: true
     },
-    //运输查看
-    {
-      path: 'tranManagementLook',
-      component: () =>
-        import(/* webpackChunkName: "applDetail" */ '@/views/tranManagement/tranManagementLook'),
-      name: 'tranManagementLook',
-      meta: {
-        title: 'tranManagementLook',
-        shortcutEntrance: 'tranManagement',
-        module: 'tranManagement.tranManagementDriver.tranManagementLook',
-        permissicon: [],
-        keepAlive: true
-      },
-      hidden: true
-    },
     //编辑司机
     {
       path: 'tranManagementDriverEdit',
@@ -89,37 +58,6 @@ const tranManagementRouter = {
       },
       hidden: true
     },
-    //运输添加
-    {
-      path: 'tranManagementTransportAdd',
-      component: () =>
-        import(/* webpackChunkName: "applDetail" */ '@/views/tranManagement/tranManagementTransportAdd'),
-      name: 'tranManagementTransportAdd',
-      meta: {
-        title: 'tranManagementTransportAdd',
-        shortcutEntrance: 'tranManagement',
-        module: 'tranManagement.tranManagementDriver.tranManagementTransportAdd',
-        permissicon: [],
-        keepAlive: true
-      },
-      hidden: true
-    },
-    //运输编辑
-    {
-      path: 'tranManagementTransportEdit',
-      component: () =>
-        import(/* webpackChunkName: "applDetail" */ '@/views/tranManagement/tranManagementTransportEdit'),
-      name: 'tranManagementTransportEdit',
-      meta: {
-        title: 'tranManagementTransportEdit',
-        shortcutEntrance: 'tranManagement',
-        module: 'tranManagement.tranManagementDriver.tranManagementTransportEdit',
-        permissicon: [],
-        keepAlive: true
-      },
-      hidden: true
-
-    },
     //汽运调度
     {
       path: 'tranManagementVehicle',
@@ -164,21 +102,6 @@ const tranManagementRouter = {
       },
       hidden: true
     },
-    //司机添加
-    {
-      path: 'tranManagementDriverAdd',
-      component: () =>
-        import(/* webpackChunkName: "applDetail" */ '@/views/tranManagement/tranManagementDriverAdd'),
-      name: 'tranManagementDriverAdd',
-      meta: {
-        title: 'tranManagementDriverAdd',
-        shortcutEntrance: 'tranManagement',
-        module: 'tranManagement.tranManagementDriver.tranManagementDriverAdd',
-        permissicon: [],
-        keepAlive: true
-      },
-      hidden: true
-    },
     //汽车调度
     {
       path: 'tranManagementVehicleDispatching',
@@ -209,21 +132,6 @@ const tranManagementRouter = {
       },
       hidden: true
     },
-    //添加运输
-    {
-      path: 'tranManagementTransportAdd',
-      component: () =>
-        import(/* webpackChunkName: "applDetail" */ '@/views/tranManagement/tranManagementTransportAdd'),
-      name: 'tranManagementTransportAdd',
-      meta: {
-        title: 'tranManagementTransportAdd',
-        shortcutEntrance: 'tranManagement',
-        module: 'tranManagement.tranManagementTransportAdd',
-        permissicon: [],
-        keepAlive: true
-      },
-      hidden: true
-    },
     //司机管理
     {
       path: 'tranManagementDriver',

+ 85 - 92
src/views/tranManagement/tranManagementVehicle.vue

@@ -4,17 +4,17 @@
     <BaseHeaderLayout :leftSpan="20">
       <template slot="left">
         <ws-button
-        class="but"
+          class="but"
           type="primary"
           @click="handleAdd()"
           v-hasPermission="
             `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
           "
-          >
+        >
           执行中</ws-button
         >
         <ws-button
-        class="but"
+          class="but"
           @click="handleLook()"
           v-hasPermission="
             `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
@@ -22,29 +22,29 @@
           >已完成</ws-button
         >
         <ws-button
-        class="but"
+          class="but"
           @click="handleEdit()"
           v-hasPermission="
             `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
           "
           >全部任务</ws-button
-        > 
+        >
       </template>
       <!-- 接单开始 -->
       <template slot="left">
-            <ws-date-picker
-              v-model="deptBudgetList.inOutDate"
-              type="date"
-              placeholder="请选择开始日期"
-              value-format="yyyy-MM-dd"
-            />
-            <span>至</span>
-            <ws-date-picker
-              v-model="deptBudgetList.inOutDate"
-              type="date"
-              placeholder="请选择结束日期"
-              value-format="yyyy-MM-dd"
-            />
+        <ws-date-picker
+          v-model="deptBudgetList.inOutDate"
+          type="date"
+          placeholder="请选择开始日期"
+          value-format="yyyy-MM-dd"
+        />
+        <span>至</span>
+        <ws-date-picker
+          v-model="deptBudgetList.inOutDate"
+          type="date"
+          placeholder="请选择结束日期"
+          value-format="yyyy-MM-dd"
+        />
         <ws-input
           v-model="searchKeyWord"
           placeholder="可按照合同编号、买方名称、卖方名称进行查找"
@@ -146,61 +146,58 @@
           </template>
         </el-table-column>
 
-      <el-table-column prop="status" label="状态">
-        <template slot-scope="scope">
-          <el-popover
-          placement="left"
-          :width="285"
-          trigger="click"
-          visible-arrow="false"
-          @show="history(scope.row)"
-          >
-          <template>
-            <span slot="reference">
-              <span
-              v-if="scope.row.status =='待执行'"
-              class="executory"
-              ></span>
-            <span
-            v-if="scope.row.status == '执行中'"
-            class="inExecution"
-            ></span>
-            <span v-if="scope.row.status == '已完成'" class="done"></span
-            >{{scope.row.status}}
-            </span>
-          </template>
-          <div>
-              <p style="margin-top: 0; padding-left: 10px">XXXXX</p>
-              <div v-for="(item, index) in historyList" class="flex">
-                <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>
-                <div class="vertical-text">
-                  {{ item.operateUser }}<br />{{ item.dealMsg }}
+        <el-table-column prop="status" label="状态">
+          <template slot-scope="scope">
+            <el-popover
+              placement="left"
+              :width="285"
+              trigger="click"
+              visible-arrow="false"
+              @show="history(scope.row)"
+            >
+              <template>
+                <span slot="reference">
+                  <span
+                    v-if="scope.row.status == '待执行'"
+                    class="executory"
+                  ></span>
+                  <span
+                    v-if="scope.row.status == '执行中'"
+                    class="inExecution"
+                  ></span>
+                  <span v-if="scope.row.status == '已完成'" class="done"></span
+                  >{{ scope.row.status }}
+                </span>
+              </template>
+              <div>
+                <p style="margin-top: 0; padding-left: 10px">XXXXX</p>
+                <div v-for="(item, index) in historyList" class="flex">
+                  <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>
+                  <div class="vertical-text">
+                    {{ item.operateUser }}<br />{{ item.dealMsg }}
+                  </div>
                 </div>
               </div>
-            </div>
-          </el-popover>
-          <img
-            width="17"
-            height="18"
-            style="vertical-align: text-top; position: relative; top: -1px"
-            src="../../../public/img/edit.png"
-            @click="editClick(scope.row)"
-            alt=""
-          />
-          
-        </template>
-        
-
-      </el-table-column>
+            </el-popover>
+            <img
+              width="17"
+              height="18"
+              style="vertical-align: text-top; position: relative; top: -1px"
+              src="../../../public/img/edit.png"
+              @click="editClick(scope.row)"
+              alt=""
+            />
+          </template>
+        </el-table-column>
         <el-table-column prop="seller" label="操作" width="300">
           <template slot-scope="scope">
             <ws-button
@@ -234,12 +231,7 @@
   </div>
 </template>
 <script>
-import {
-  getList,
-  export1,
-  editstatus,
-  billoperatehis,
-} from '@/model/warehouse/index'
+import { automobileList } from '@/model/transport/index'
 import { downloadFile } from '@/utils/batchDown'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
@@ -330,7 +322,7 @@ export default {
           positionId: item.binNumberId,
           warehouseName: item.warehouseName,
           binNumber: item.binNumber,
-          capacity:item.capacity - free ,
+          capacity: item.capacity - free,
         },
       })
     },
@@ -418,8 +410,8 @@ export default {
       this.$router.push({ path: 'tranManagementTransportEdit' })
     },
     // 派车
-    warehousing(){
-        this.$router.push({ path: 'tranManagementVehicleDispatching'})
+    warehousing() {
+      this.$router.push({ path: 'tranManagementVehicleDispatching' })
     },
     dateFormat(fmt, date) {
       let ret
@@ -457,9 +449,10 @@ export default {
       this.getList()
     },
     getList() {
-      getList({
+      automobileList({
         compId: sessionStorage.getItem('ws-pf_compId'),
-        warehouseName: this.warehouseName,
+        currentPage: this.currentPage,
+        pageSize: this.pageSize,
       })
         .toPromise()
         .then((response) => {
@@ -629,20 +622,20 @@ export default {
   height: 12px;
   background: #e9ecf7;
 }
-.el-row{
-    height: 150px;
+.el-row {
+  height: 150px;
 }
-.base_header_layout .grid-content{
-    margin-top: 80px;
+.base_header_layout .grid-content {
+  margin-top: 80px;
 }
-.but{
-    margin-top: 150px;
+.but {
+  margin-top: 150px;
 }
-.el-input--small .el-input__inner{
-    margin-left: 20px;
+.el-input--small .el-input__inner {
+  margin-left: 20px;
 }
 .el-range-editor--small.el-input__inner {
-    height: 32px;
-    margin-left: -20%;
+  height: 32px;
+  margin-left: -20%;
 }
 </style>

+ 92 - 68
src/views/warehouse/warehouseManagementDelete.vue

@@ -22,6 +22,44 @@
       </el-col>
     </el-row>
     <div class="connert">
+      <BaseHeaderLayout :leftSpan="20">
+        <template slot="left">
+          <div style="margin-top: 2px">
+            <el-radio-group
+              v-model="warehouseType"
+              @change="changeradio"
+              size="small"
+            >
+              <el-radio-button label="1">自有库</el-radio-button>
+              <el-radio-button label="2">临时库</el-radio-button>
+            </el-radio-group>
+          </div>
+        </template>
+        <template slot="right">
+          <ws-input
+            v-model="warehouseName"
+            placeholder="请输入仓库名"
+            clearable
+            maxlength="500"
+            type="input"
+            class="findValue"
+          ></ws-input>
+          <!-- v-hasPermission="'procurement.sparepart.directShip'" -->
+          <ws-button class="find" type="primary" @click="find()"
+            ><img
+              width="16"
+              height="16"
+              style="
+                vertical-align: text-top;
+                position: relative;
+                top: 0px;
+                left: -8px;
+              "
+              src="../../../public/img/sousuo.png"
+              alt=""
+          /></ws-button>
+        </template>
+      </BaseHeaderLayout>
       <el-table
         class="wenzi"
         :data="warehouseList"
@@ -37,55 +75,31 @@
         <el-table-column prop="warehouseName" label="仓库名称">
         </el-table-column>
         <el-table-column prop="warehouseLocation" label="仓库所在地">
+          <template scope="scope">
+            {{ scope.row.warehousePrivate }}{{ scope.row.warehouseCity
+            }}{{ scope.row.warehouseArea }}
+          </template>
         </el-table-column>
-        <el-table-column prop="nowStorage" label="应余库存(吨)">
+        <el-table-column prop="residual" label="应余库存(吨)">
         </el-table-column>
-        <el-table-column prop="personCharge;" label="负责人"></el-table-column>
-        <el-table-column prop="address" label="操作" width="200">
-          <!-- <template slot-scope="scope">
+        <el-table-column prop="personCharge" label="负责人"></el-table-column>
+        <el-table-column label="操作" width="200">
+          <template slot-scope="scope">
             <ws-button
               type="primary"
               @click="handleHide(scope.row)"
-              v-hasPermission="
-                `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
-              "
               v-if="scope.row.showFlag == 0"
               >显示</ws-button
             >
             <ws-button
               type="primary"
               @click="handleHide(scope.row)"
-              v-hasPermission="
-                `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
-              "
               v-if="scope.row.showFlag == 1"
               >隐藏</ws-button
             >
-            <ws-button
-              type="primary"
-              @click="handleDelete(sv-ifcope.row)"
-              v-hasPermission="
-                `${$permission('PERMISSIONS.PURSPAPPLINFO_CREATEINSTORE')}`
-              "
+            <ws-button type="primary" @click="handleDelete(scope.row)"
               >删除</ws-button
             >
-          </template> -->
-          <template slot-scope="scope">
-            <div
-              class="record"
-              v-if="scope.row.showFlag == 0"
-              @click="handleHide(scope.row)"
-            >
-              显示
-            </div>
-            <div
-              class="record"
-              v-if="scope.row.showFlag == 1"
-              @click="handleHide(scope.row)"
-            >
-              隐藏
-            </div>
-            <div class="adjustment" @click="handleDelete(scope.row)">删除</div>
           </template>
         </el-table-column>
       </el-table>
@@ -144,7 +158,9 @@ export default {
       show: '隐藏',
       // 提交类型
       submitType: true,
+      warehouseName: '',
       size: 10,
+      warehouseType: '1',
       compId: sessionStorage.getItem('ws-pf_compId'),
       deptCircularPage: {},
       date: {
@@ -170,11 +186,19 @@ export default {
     returnWarehouse() {
       this.$router.push({ path: 'warehouseManagementList' })
     },
-
+    changeradio(e) {
+      this.getList()
+    },
+    find() {
+      this.currentPage = 1
+      this.getList()
+    },
     //列表
     getList() {
       delectlist({
         compId: sessionStorage.getItem('ws-pf_compId'),
+        warehouseType: this.warehouseType,
+        warehouseName: this.warehouseName,
       })
         .toPromise()
         .then((response) => {
@@ -233,42 +257,42 @@ export default {
           })
       }
     },
-  },
-  handleDelete(row) {
-    // console.log(row)
-    this.$confirm(`此操作永久删除该仓库全部信息,是否确认删除`, {
-      cancelButtonText: '取消',
-      confirmButtonText: '确定',
-      type: 'warning',
-    })
-      .then(() => {
-        deletewarehouse({ id: row.id })
-          .toPromise()
-          .then((response) => {
-            this.$notify.success({
-              title: '成功',
-              message: '删除成功',
-            })
-            this.getList()
-          })
-          .catch((response) => {
-            // console.log(3333)
-            // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
-          })
-      })
-      .catch(() => {
-        return false
+    handleDelete(row) {
+      // console.log(row)
+      this.$confirm(`此操作永久删除该仓库全部信息,是否确认删除`, {
+        cancelButtonText: '取消',
+        confirmButtonText: '确定',
+        type: 'warning',
       })
+        .then(() => {
+          deletewarehouse({ id: row.id })
+            .toPromise()
+            .then((response) => {
+              this.$notify.success({
+                title: '成功',
+                message: '删除成功',
+              })
+              this.getList()
+            })
+            .catch((response) => {
+              // console.log(3333)
+              // EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+            })
+        })
+        .catch(() => {
+          return false
+        })
+    },
+    // deletecontract(){},
+    //删除
+    approve() {},
+    listQuery() {},
+    total() {},
+    clearfiltQuery() {},
+    selectCrtDuty() {},
+    delectlist() {},
+    deletewarehouse() {},
   },
-  // deletecontract(){},
-  //删除
-  approve() {},
-  listQuery() {},
-  total() {},
-  clearfiltQuery() {},
-  selectCrtDuty() {},
-  delectlist() {},
-  deletewarehouse() {},
 }
 </script>
 <style lang="scss" scoped>

+ 56 - 30
src/views/warehouse/warehouseManagementDelivery.vue

@@ -105,18 +105,20 @@
           </ws-form-item>
           <!--经办人-->
           <ws-form-item label="经办人" span="1" prop="agent">
-            <ws-select
+           <el-select
               v-model="deptBudgetList.agent"
-              placeholder=""
-              class="typeselect"
+              placeholder="请选择经办人"
+              filterable
+              :filter-method="dataFilter"
+              @change="selectstaff"
             >
-              <ws-option
-                v-for="item in agent"
-                :key="item.constKey"
+              <el-option
+                v-for="item in options"
+                :key="item.value"
                 :label="item.staffName"
                 :value="item.staffName"
               />
-            </ws-select>
+            </el-select>
           </ws-form-item>
           <!--出库日期-->
           <ws-form-item
@@ -279,6 +281,7 @@ import {
   goodsname,
   xialaNo,
   getstaff,
+  goodsnameXiala,
 } from '@/model/warehouse/index'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
@@ -291,9 +294,6 @@ export default {
     Pagination,
   },
   watch: {
-    // vesselId(val) {
-    //   this.getList()
-    // },
     isShow(val) {
       this.showType = val
     },
@@ -330,6 +330,9 @@ export default {
       onChange: {},
       gradeList: [],
       agent: [],
+       staffList: [],
+      options: [],
+      value:"",
       rules: {
         netWeight: [
           {
@@ -363,12 +366,12 @@ export default {
     }
   },
   mounted() {
-    console.log(this.$route.query)
     this.deptBudgetList.baseId = this.$route.query.baseId
     this.deptBudgetList.positionId = this.$route.query.positionId
     this.deptBudgetList.warehouseName = this.$route.query.warehouseName
     this.deptBudgetList.binNumber = this.$route.query.binNumber
     this.deptBudgetList.warehouseType = this.$route.query.warehouseType
+    this.deptBudgetList.warehouseId = this.$route.query.warehouseId
     this.getList()
   },
   methods: {
@@ -376,6 +379,31 @@ export default {
     revert() {
       this.$router.push({ path: 'warehouseManagementList' })
     },
+    dataFilter(val) {
+      // console.log(val,"名")
+      this.deptBudgetList.staffList = val
+      if (val) {
+        //val存在
+        this.options = this.staffList.filter((item) => {
+          if (
+            !!~item.staffName.indexOf(val) ||
+            !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
+          ) {
+            return true
+          }
+        })
+      } else {
+        //val为空时,还原数组
+        this.options = this.staffList
+      }
+    },
+    selectstaff(e) {
+      for (var i = 0; i < this.staffList.length; i++) {
+        if (this.staffList[i].staffName == e) {
+          this.deptBudgetList.personChargeKey = this.staffList[i].staffId
+        }
+      }
+    },
     temporaryStorage() {
       if (!this.deptBudgetList.goodsName) {
         this.$message({
@@ -795,7 +823,7 @@ export default {
         })
         return
       }
-      if (!this.deptBudgetList.inOutType) {
+      if (!this.deptBudgetList.deliveryType) {
         this.$message({
           message: '出库类型不能为空!',
           type: 'warning',
@@ -1102,37 +1130,33 @@ export default {
       this.getList()
     },
     getList() {
-      // 货名
-      goodsname({ positionId: this.$route.query.positionId })
-        .toPromise()
-        .then((response) => {
-          this.goodnameList = response
-        })
       // 品级
       pullDown({ constId: 'CON3' })
         .toPromise()
         .then((response) => {
           this.gradeList = response
         })
-      // // 类型
-      // pullDown({ constId: 'CON6' })
-      //   .toPromise()
-      //   .then((response) => {
-      //     this.storageType = response
-      //   })
+
       // 类型
       if (this.deptBudgetList.warehouseType == 1) {
+        // 货名
+        goodsname({ positionId: this.$route.query.positionId })
+          .toPromise()
+          .then((response) => {
+            this.goodnameList = response
+          })
+        //类型
         pullDown({ constId: 'CON6' })
           .toPromise()
           .then((response) => {
             this.deliveryType = response
           })
       } else if (this.deptBudgetList.warehouseType == 2) {
-        // pullDown({ constId: 'WARE1' })
-        //   .toPromise()
-        //   .then((response) => {
-        //     this.storageType = response
-        //   })
+        goodsnameXiala({ baseId: this.deptBudgetList.warehouseId })
+          .toPromise()
+          .then((response) => {
+            this.goodnameList = response
+          })
         pullDown({ constId: 'WARE2' })
           .toPromise()
           .then((response) => {
@@ -1149,7 +1173,9 @@ export default {
       getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
         .toPromise()
         .then((response) => {
-          this.agent = response
+          // this.agent = response
+          this.options = response
+           this.staffList = response
         })
     },
     selecttaskType(e) {

+ 0 - 1
src/views/warehouse/warehouseManagementEdit.vue

@@ -282,7 +282,6 @@ export default {
           return time.getTime() > Date.now()
         },
       },
-
       options: [],
       value: '',
       accessoryTFs: false,

+ 0 - 3
src/views/warehouse/warehouseManagementList.vue

@@ -17,9 +17,6 @@
         <ws-button @click="handleLook()">查看</ws-button>
         <ws-button @click="handleEdit()">编辑</ws-button>
         <ws-button @click="handleDelete()">删除</ws-button>
-        <ws-button @click="handleLook()">查看</ws-button>
-        <ws-button @click="handleEdit()">编辑</ws-button>
-        <ws-button @click="handleDelete()">删除</ws-button>
       </template>
       <template slot="left">
         <div style="margin-top: 2px">

+ 24 - 11
src/views/warehouse/warehouseManagementNoComplete.vue

@@ -31,7 +31,8 @@
             alt=""
           />
           {{ this.$route.query.warehouseName }}库
-          <span class="position"> {{ this.$route.query.binNumber }}仓位 </span>
+          <span class="position" v-show="this.$route.query.warehouseType == 1"> {{ this.$route.query.binNumber }}仓位 </span>
+          <span v-show="this.$route.query.warehouseType == 2">(临)</span>
         </h2>
         <el-table :data="improved.records">
           <el-table-column type="index" label="序号">
@@ -121,6 +122,7 @@
 import {
   complete,
   delInOut,
+  completeList,
   // deletewarehouse,
   // warehouseName,
   // addstorageputList,
@@ -197,8 +199,9 @@ export default {
     // this.getVesselData();
     this.deptBudgetList1.warehouseName = this.$route.query.warehouseName
     this.binNumber = this.$route.params.binNumber
+    this.deptBudgetList.warehouseType = this.$route.query.warehouseType
     //接参
-    this.getList(this.$route.query.baseId, this.$route.query.positionId)
+    this.getList(this.$route.query.baseId, this.$route.query.positionId , this.$route.query.warehouseType)
     this.showType = this.isShow
   },
   methods: {
@@ -233,7 +236,8 @@ export default {
              statusFlag:row.statusFlag,
              tare:row.tare,
              warehouseName: row.warehouseName,  
-             warehouseInOutDetail:row.warehouseInOutDetail
+             warehouseInOutDetail:row.warehouseInOutDetail,
+             warehouseType: this.deptBudgetList.warehouseType
           },
         })
       } else if(row.inOutFlag==1){
@@ -262,8 +266,8 @@ export default {
              statusFlag:row.statusFlag,
              tare:row.tare,
              warehouseName: row.warehouseName,  
-             warehouseInOutDetail:row.warehouseInOutDetail
-
+             warehouseInOutDetail:row.warehouseInOutDetail,
+             warehouseType: this.deptBudgetList.warehouseType,
           }
           })
       }
@@ -304,7 +308,8 @@ export default {
       this.getList()
     },
     //收
-    getList(id, id1) {
+    getList(id, id1,id2) { 
+      if(id2==1){
       complete({
         // compId: sessionStorage.getItem('ws-pf_compId'),
         baseId: id,
@@ -317,6 +322,18 @@ export default {
         .then((response) => {
           this.improved = response
         })
+      }else if(id2==2){   
+      completeList({
+        baseId: id,
+        positionId: id1,
+        pageSize: this.pageSize,
+        currentPage: this.currentPage,
+      })
+        .toPromise()
+        .then((response) => {
+          this.improved = response
+        })
+      }
     },
     handleExamine(row) {
       this.$router.push({
@@ -326,7 +343,6 @@ export default {
     },
     //删除
       handleDelete(row) {
-      // console.log(row)
       this.$confirm(`删除后不可恢复,确认删除?`, {
         cancelButtonText: '取消',
         confirmButtonText: '确定',
@@ -340,7 +356,7 @@ export default {
                 title: '成功',
                 message: '删除成功',
               })
-              this.getList(row.baseId,row.positionId)
+              this.getList(row.baseId,row.positionId,this.$route.query.warehouseType)
             })
             .catch((response) => {
             })
@@ -350,17 +366,14 @@ export default {
         })
       }
   },
-  
   find() {
     this.startDate = this.dateFormat('YYYY-mm-dd', this.value2[0])
     this.endDate = this.dateFormat('YYYY-mm-dd', this.value2[1])
     this.currentPage = 1
     this.getList()
   },
- 
   // deletecontract(){},
   //删除
-
   approve() {},
   listQuery() {},
   total() {},

+ 142 - 84
src/views/warehouse/warehouseManagementPerfectDelivery.vue

@@ -27,9 +27,12 @@
       <div class="basicInformation">
         <h2>
           {{ this.deptBudgetList1.warehouseName }}库
-          <span class="position">
+          <span class="position" v-show="this.$route.query.warehouseType == 1">
             {{ this.deptBudgetList1.binNumber }}仓位
           </span>
+           <span  v-show="this.$route.query.warehouseType == 2">
+             (临)
+          </span>
         </h2>
         <div class="small-title">基本信息</div>
         <ws-info-table>
@@ -79,7 +82,7 @@
           <!--净重(吨)-->
           <ws-form-item label="净重(吨)" span="1" prop="netWeight">
             <ws-input
-            :readonly="readonly"
+              :readonly="readonly"
               v-model.number="dataList.netWeight"
               placeholder="不可编辑,自动计算"
               type="number"
@@ -103,15 +106,22 @@
               />
             </ws-select>
           </ws-form-item>
-
           <!--经办人-->
           <ws-form-item label="经办人" span="1" prop="agent">
-            <ws-input
+            <el-select
               v-model="dataList.agent"
-              placeholder="请输入出库经办人姓名"
-              maxlength="100"
-              size="small"
-            />
+              placeholder="请选择经办人"
+              filterable
+              :filter-method="dataFilter"
+              @change="selectstaff"
+            >
+              <el-option
+                v-for="item in options"
+                :key="item.value"
+                :label="item.staffName"
+                :value="item.staffName"
+              />
+            </el-select>
           </ws-form-item>
           <!--出库日期-->
           <ws-form-item
@@ -136,7 +146,7 @@
               @change="selectstorageType"
             >
               <ws-option
-                v-for="item in storageType"
+                v-for="item in deliveryType"
                 :key="item.constKey"
                 :label="item.constValue"
                 :value="item.constValue"
@@ -154,14 +164,19 @@
             />
           </ws-form-item>
 
-          <!--合同编号-->
-          <ws-form-item label="合同编号" span="1" prop="contractNo">
-            <ws-input
+          <ws-form-item label="合同编号" span="1">
+            <ws-select
               v-model="dataList.contractNo"
-              placeholder="请输入合同编号"
-              maxlength="100"
-              size="small"
-            />
+              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>
       </div>
@@ -268,11 +283,11 @@
   </div>
 </template>
 <script>
-import { pullDown, addstorageputList } from '@/model/warehouse/index'
+import { pullDown, addstorageputList ,xialaNo,getstaff,} from '@/model/warehouse/index'
 import { downloadFile } from '@/utils/batchDown'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
-import { mapActions, mapGetters, mapState } from 'vuex'
+import { mapActions, mapGetters, mapState } from 'vuex'
 // import { dayjs, fmoney, EventBus } from 'base-core-lib'
 import { dayjs, EventBus } from 'base-core-lib'
 export default {
@@ -286,10 +301,8 @@ export default {
       this.showType = val
     },
   },
-  computed:{
-    ...mapGetters([
-      'deptBudgetList',
-    ]),
+  computed: {
+    ...mapGetters(['deptBudgetList']),
   },
   data() {
     return {
@@ -304,7 +317,7 @@ export default {
       showType: true,
       // 年
       year: '',
-      readonly:true,
+      readonly: true,
       deptBudgetTotal: 0,
       currentPage: 1,
       pageSize: 10,
@@ -314,6 +327,12 @@ export default {
       startDate: null,
       endDate: null,
       goodnameList: {},
+
+      staffList: [],
+      options: [],
+      storageType: [],
+      deliveryType: [],
+      outContractNo: [],
       // 提交类型
       submitType: true,
       storageType: [],
@@ -342,17 +361,17 @@ export default {
       },
       contractList: [],
       dataList: {
-        id:'',
-        grossWeight:'',
-        contractNo:'',
-        tare:'',
-        netWeight:'',
-        grade:'',
-        agent:'',
-        carNo:'',
-        inOutDate:'',
-        inOutType:'',
-        goodsName:'',
+        id: '',
+        grossWeight: '',
+        contractNo: '',
+        tare: '',
+        netWeight: '',
+        grade: '',
+        agent: '',
+        carNo: '',
+        inOutDate: '',
+        inOutType: '',
+        goodsName: '',
         warehouseInOutDetail: {},
       },
       historyList: [],
@@ -369,8 +388,8 @@ export default {
     this.deptBudgetList1.warehouseName = this.$route.query.warehouseName
     this.deptBudgetList1.binNumber = this.$route.query.binNumber
     this.getList()
-    this.dataList.id=this.$route.query.id
-    this.dataList.grossWeight=this.$route.query.grossWeight
+    this.dataList.id = this.$route.query.id
+    this.dataList.grossWeight = this.$route.query.grossWeight
     this.dataList.contractNo = this.$route.query.contractNo
     this.dataList.baseId = this.$route.query.baseId
     this.dataList.positionId = this.$route.query.positionId
@@ -398,6 +417,31 @@ export default {
     revert() {
       this.$router.go(-1)
     },
+    dataFilter(val) {
+      // console.log(val,"名")
+      this.deptBudgetList.staffList = val
+      if (val) {
+        //val存在
+        this.options = this.staffList.filter((item) => {
+          if (
+            !!~item.staffName.indexOf(val) ||
+            !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
+          ) {
+            return true
+          }
+        })
+      } else {
+        //val为空时,还原数组
+        this.options = this.staffList
+      }
+    },
+    selectstaff(e) {
+      for (var i = 0; i < this.staffList.length; i++) {
+        if (this.staffList[i].staffName == e) {
+          this.deptBudgetList.personChargeKey = this.staffList[i].staffId
+        }
+      }
+    },
     //暂存按钮
     temporaryStorage() {
       this.$confirm(`暂存后可在待完成页面查看,确定暂存`, {
@@ -408,9 +452,7 @@ export default {
         .then(() => {
           this.$refs.dataList.validate((valid) => {
             if (valid) {
-              this.dataList.compId = sessionStorage.getItem(
-                'ws-pf_compId'
-              )
+              this.dataList.compId = sessionStorage.getItem('ws-pf_compId')
               this.dataList.inOutFlag = 1
               this.dataList.statusFlag = 1
               addstorageputList(this.dataList)
@@ -431,7 +473,7 @@ export default {
     },
     //提交按钮
     submit() {
-        if (!this.dataList.goodsName) {
+      if (!this.dataList.goodsName) {
         this.$message({
           message: '货名不能为空',
           type: 'warning',
@@ -480,17 +522,14 @@ export default {
         })
         return
       }
-      if (
-        this.dataList.agent.length < 2 ||
-        this.dataList.agent.length > 10
-      ) {
+      if (this.dataList.agent.length < 2 || this.dataList.agent.length > 10) {
         this.$message({
           message: '经办人输入有误',
           type: 'warning',
         })
         return
       }
-       if (!this.dataList.grade) {
+      if (!this.dataList.grade) {
         this.$message({
           message: '品级不能为空!',
           type: 'warning',
@@ -550,11 +589,10 @@ export default {
         })
         return
       }
-       //自检员
+      //自检员
       if (this.dataList.warehouseInOutDetail.qualityInspector) {
         if (
-          this.dataList.warehouseInOutDetail.qualityInspector.length <
-            2 ||
+          this.dataList.warehouseInOutDetail.qualityInspector.length < 2 ||
           this.dataList.warehouseInOutDetail.qualityInspector.length > 10
         ) {
           this.$message({
@@ -575,14 +613,13 @@ export default {
         if (
           this.dataList.warehouseInOutDetail.waterContent < 1 ||
           this.dataList.warehouseInOutDetail.waterContent > 40 ||
-          (String(
-            this.dataList.warehouseInOutDetail.waterContent
-          ).indexOf('.') != -1 &&
-            String(this.dataList.warehouseInOutDetail.waterContent)
-              .length -
-              (String(
-                this.dataList.warehouseInOutDetail.waterContent
-              ).indexOf('.') +
+          (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.dataList.warehouseInOutDetail.waterContent).length -
+              (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
+                '.'
+              ) +
                 1) >
               2)
         ) {
@@ -606,13 +643,12 @@ export default {
         if (
           this.dataList.warehouseInOutDetail.impurity < 1 ||
           this.dataList.warehouseInOutDetail.impurity > 40 ||
-          (String(this.dataList.warehouseInOutDetail.impurity).indexOf(
-            '.'
-          ) != -1 &&
+          (String(this.dataList.warehouseInOutDetail.impurity).indexOf('.') !=
+            -1 &&
             String(this.dataList.warehouseInOutDetail.impurity).length -
-              (String(
-                this.dataList.warehouseInOutDetail.impurity
-              ).indexOf('.') +
+              (String(this.dataList.warehouseInOutDetail.impurity).indexOf(
+                '.'
+              ) +
                 1) >
               2)
         ) {
@@ -623,7 +659,7 @@ export default {
           return
         }
       }
-       //霉变
+      //霉变
       if (this.dataList.warehouseInOutDetail.mildewGrain) {
         if (isNaN(this.dataList.warehouseInOutDetail.mildewGrain)) {
           this.$message({
@@ -639,9 +675,9 @@ export default {
             '.'
           ) != -1 &&
             String(this.dataList.warehouseInOutDetail.mildewGrain).length -
-              (String(
-                this.dataList.warehouseInOutDetail.mildewGrain
-              ).indexOf('.') +
+              (String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
+                '.'
+              ) +
                 1) >
               2)
         ) {
@@ -653,7 +689,7 @@ export default {
         }
       }
 
-       //热损伤
+      //热损伤
       if (this.dataList.warehouseInOutDetail.jiaorenli) {
         if (isNaN(this.dataList.warehouseInOutDetail.jiaorenli)) {
           this.$message({
@@ -665,13 +701,12 @@ export default {
         if (
           this.dataList.warehouseInOutDetail.jiaorenli < 1 ||
           this.dataList.warehouseInOutDetail.jiaorenli > 40 ||
-          (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf(
-            '.'
-          ) != -1 &&
+          (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf('.') !=
+            -1 &&
             String(this.dataList.warehouseInOutDetail.jiaorenli).length -
-              (String(
-                this.dataList.warehouseInOutDetail.jiaorenli
-              ).indexOf('.') +
+              (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf(
+                '.'
+              ) +
                 1) >
               2)
         ) {
@@ -683,7 +718,7 @@ export default {
         }
       }
 
-        //不完整粒(%)
+      //不完整粒(%)
       if (this.dataList.warehouseInOutDetail.imperfectGrain) {
         if (isNaN(this.dataList.warehouseInOutDetail.imperfectGrain)) {
           this.$message({
@@ -713,7 +748,7 @@ export default {
         }
       }
       //容重
-       if (this.dataList.warehouseInOutDetail.bulkDensity) {
+      if (this.dataList.warehouseInOutDetail.bulkDensity) {
         if (isNaN(this.dataList.warehouseInOutDetail.bulkDensity)) {
           this.$message({
             message: '容重(克/升)非数字!',
@@ -728,9 +763,9 @@ export default {
             '.'
           ) != -1 &&
             String(this.dataList.warehouseInOutDetail.bulkDensity).length -
-              (String(
-                this.dataList.warehouseInOutDetail.bulkDensity
-              ).indexOf('.') +
+              (String(this.dataList.warehouseInOutDetail.bulkDensity).indexOf(
+                '.'
+              ) +
                 1) >
               0)
         ) {
@@ -753,7 +788,7 @@ export default {
               this.$router.push({ path: 'warehouseManagementList' })
             })
         } else {
-         EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
+          EventBus.$emit('error', this.$t('showMessage.asteriskRequired'))
           return false
         }
       })
@@ -820,10 +855,33 @@ export default {
           this.gradeList = response
         })
       // 类型
-      pullDown({ constId: 'CON6' })
+      if (this.$route.query.warehouseType == '1') {
+        pullDown({ constId: 'CON6' })
+          .toPromise()
+          .then((response) => {
+            this.deliveryType = response
+          })
+      } else if (this.$route.query.warehouseType == '2') {
+        //临时库出库类型
+        pullDown({ constId: 'WARE2' })
+          .toPromise()
+          .then((response) => {
+            this.deliveryType = response
+          })
+      }
+      //合同编号
+      xialaNo({ compId: sessionStorage.getItem('ws-pf_compId') })
+        .toPromise()
+        .then((response) => {
+          this.outContractNo = response
+        })
+      //经办人
+      getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
         .toPromise()
         .then((response) => {
-          this.storageType = response
+          this.options = response
+          this.staffList = response
+          //  this.agent = response
         })
     },
     selecttaskType(e) {
@@ -968,16 +1026,16 @@ export default {
   color: #8890b1;
   line-height: 16px;
 }
-.inspector{
+.inspector {
   width: 50%;
-} 
+}
 //质检员
 .inspector .el-form-item__content {
   text-align: left;
   margin-left: 0px;
 }
 /deep/[data-v-d228e17e] .el-form-item__label {
-    width: 60px;
+  width: 60px;
 }
 .small-title {
   position: relative;

+ 199 - 85
src/views/warehouse/warehouseManagementPerfectput.vue

@@ -26,7 +26,8 @@
       <div class="basicInformation">
         <h2>
           {{ deptBudgetList1.warehouseName }}库
-          <span class="position"> {{ deptBudgetList1.binNumber }}仓位 </span>
+          <span class="position" v-show="this.$route.query.warehouseType == 1"> {{ deptBudgetList1.binNumber }}仓位 </span>
+          <span v-show="this.$route.query.warehouseType == 2">(临)</span>
         </h2>
         <div class="small-title">基本信息</div>
         <ws-info-table>
@@ -76,7 +77,7 @@
           <!--净重(吨)-->
           <ws-form-item label="净重(吨)" span="1" prop="netWeight">
             <ws-input
-            :readonly="readonly"
+              :readonly="readonly"
               v-model.number="dataList.netWeight"
               placeholder="不可编辑,自动计算"
               type="number"
@@ -101,14 +102,22 @@
             </ws-select>
           </ws-form-item>
 
-          <!--经办人-->
+         <!--经办人-->
           <ws-form-item label="经办人" span="1" prop="agent">
-            <ws-input
+            <el-select
               v-model="dataList.agent"
-              placeholder="请输入出库经办人姓名"
-              maxlength="100"
-              size="small"
-            />
+              placeholder="请选择经办人"
+              filterable
+              :filter-method="dataFilter"
+              @change="selectstaff"
+            >
+              <el-option
+                v-for="item in options"
+                :key="item.value"
+                :label="item.staffName"
+                :value="item.staffName"
+              />
+            </el-select>
           </ws-form-item>
           <!--入库日期-->
           <ws-form-item
@@ -152,15 +161,65 @@
           </ws-form-item>
 
           <!--合同编号-->
-          <ws-form-item label="合同编号" span="1" prop="contractNo">
+          <!-- <ws-form-item label="合同编号" span="1" prop="contractNo">
             <ws-input
               v-model="dataList.contractNo"
               placeholder="请输入合同编号"
               maxlength="100"
               size="small"
             />
-          </ws-form-item>
+          </ws-form-item> -->
+           <ws-form-item label="合同编号" span="1">
+              <ws-select
+                v-model="dataList.contractNo"
+                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>
+        <div warehouseType>
+          <el-checkbox v-model="checked" checked>退库并出库</el-checkbox>
+          <ws-info-table
+            v-show="checked == true">
+            <!-- 出库类型 -->
+            <ws-form-item label="出库类型" span="1">
+              <ws-select
+                v-model="deptBudgetList.deliveryType"
+                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="dataList.contractNo"
+                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>
+        </div>
       </div>
       <div class="small-title">上传仓库照片</div>
       <ws-upload
@@ -185,7 +244,6 @@
             maxlength="120"
             size="small"
           />
-         
         </ws-form-item>
       </div>
       <div class="neifor">
@@ -266,10 +324,15 @@
   </div>
 </template>
 <script>
-import { pullDown, addstorageputList } from '@/model/warehouse/index'
+import {
+  pullDown,
+  addstorageputList,
+  xialaNo,
+  getstaff,
+} from '@/model/warehouse/index'
 import { downloadFile } from '@/utils/batchDown'
 import Pagination from '@/components/Pagination'
-import { mapActions, mapGetters, mapState } from 'vuex'
+import { mapActions, mapGetters, mapState } from 'vuex'
 import WsUpload from '@/components/WsUpload'
 // import { dayjs, fmoney, EventBus } from 'base-core-lib'
 import { dayjs, EventBus } from 'base-core-lib'
@@ -287,10 +350,8 @@ export default {
       this.showType = val
     },
   },
-  computed:{
-    ...mapGetters([
-      'deptBudgetList',
-    ]),
+  computed: {
+    ...mapGetters(['deptBudgetList']),
   },
   data() {
     return {
@@ -306,7 +367,7 @@ export default {
       // 年
       year: '',
       deptBudgetTotal: 0,
-      readonly:true,
+      readonly: true,
       currentPage: 1,
       pageSize: 10,
       searchType: 1,
@@ -315,12 +376,19 @@ export default {
       startDate: null,
       endDate: null,
       goodnameList: {},
+      checked: true,
+
+      staffList: [],
+      options: [],
+      storageType: [],
+      deliveryType: [],
+      outContractNo: [],
       // 提交类型
       submitType: true,
       storageType: [],
       appendixIdsAdd: '',
       uploadSuccess: {},
-      warehouseInOutDetail:{},
+      warehouseInOutDetail: {},
       onChange: {},
       deptBudgetList1: [],
       gradeList: [],
@@ -344,17 +412,17 @@ export default {
       },
       contractList: [],
       dataList: {
-        id:'',
-        grossWeight:'',
-        contractNo:'',
-        tare:'',
-        netWeight:'',
-        grade:'',
-        agent:'',
-        carNo:'',
-        inOutDate:'',
-        inOutType:'',
-        goodsName:'',
+        id: '',
+        grossWeight: '',
+        contractNo: '',
+        tare: '',
+        netWeight: '',
+        grade: '',
+        agent: '',
+        carNo: '',
+        inOutDate: '',
+        inOutType: '',
+        goodsName: '',
         warehouseInOutDetail: {},
       },
       historyList: [],
@@ -366,12 +434,12 @@ export default {
       accessoryTFs: false,
     }
   },
-   activated() {
+  activated() {
     this.deptBudgetList1.warehouseName = this.$route.query.warehouseName
     this.deptBudgetList1.binNumber = this.$route.query.binNumber
     this.getList()
-    this.dataList.id=this.$route.query.id
-    this.dataList.grossWeight=this.$route.query.grossWeight
+    this.dataList.id = this.$route.query.id
+    this.dataList.grossWeight = this.$route.query.grossWeight
     this.dataList.contractNo = this.$route.query.contractNo
     this.dataList.baseId = this.$route.query.baseId
     this.dataList.positionId = this.$route.query.positionId
@@ -392,12 +460,38 @@ export default {
     this.dataList.inOutTypeKey = Number(this.$route.query.inOutTypeKey)
     this.dataList.statusFlag = this.$route.statusFlag
     this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
+    this.deptBudgetList.warehouseType = this.$route.query.warehouseType
   },
   methods: {
     //返回按钮
     revert() {
       this.$router.go(-1)
     },
+    dataFilter(val) {
+      // console.log(val,"名")
+      this.deptBudgetList.staffList = val
+      if (val) {
+        //val存在
+        this.options = this.staffList.filter((item) => {
+          if (
+            !!~item.staffName.indexOf(val) ||
+            !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
+          ) {
+            return true
+          }
+        })
+      } else {
+        //val为空时,还原数组
+        this.options = this.staffList
+      }
+    },
+    selectstaff(e) {
+      for (var i = 0; i < this.staffList.length; i++) {
+        if (this.staffList[i].staffName == e) {
+          this.deptBudgetList.personChargeKey = this.staffList[i].staffId
+        }
+      }
+    },
     //暂存按钮
     temporaryStorage() {
       this.$confirm(`暂存后可在待完成页面查看,确定暂存`, {
@@ -408,9 +502,7 @@ export default {
         .then(() => {
           this.$refs.dataList.validate((valid) => {
             if (valid) {
-              this.dataList.compId = sessionStorage.getItem(
-                'ws-pf_compId'
-              )
+              this.dataList.compId = sessionStorage.getItem('ws-pf_compId')
               this.dataList.inOutFlag = 2
               this.dataList.statusFlag = 1
               addstorageputList(this.dataList)
@@ -431,7 +523,7 @@ export default {
     },
     //提交按钮
     submit() {
-       if (!this.dataList.goodsName) {
+      if (!this.dataList.goodsName) {
         this.$message({
           message: '货名不能为空',
           type: 'warning',
@@ -459,7 +551,7 @@ export default {
         })
         return
       }
-    
+
       if (
         this.dataList.tare < 0 ||
         this.dataList.tare > 10000 ||
@@ -481,17 +573,14 @@ export default {
         })
         return
       }
-      if (
-        this.dataList.agent.length < 2 ||
-        this.dataList.agent.length > 10
-      ) {
+      if (this.dataList.agent.length < 2 || this.dataList.agent.length > 10) {
         this.$message({
           message: '经办人输入有误',
           type: 'warning',
         })
         return
       }
-       if (!this.dataList.grade) {
+      if (!this.dataList.grade) {
         this.$message({
           message: '品级不能为空!',
           type: 'warning',
@@ -551,11 +640,10 @@ export default {
         })
         return
       }
-       //自检员
+      //自检员
       if (this.dataList.warehouseInOutDetail.qualityInspector) {
         if (
-          this.dataList.warehouseInOutDetail.qualityInspector.length <
-            2 ||
+          this.dataList.warehouseInOutDetail.qualityInspector.length < 2 ||
           this.dataList.warehouseInOutDetail.qualityInspector.length > 10
         ) {
           this.$message({
@@ -576,14 +664,13 @@ export default {
         if (
           this.dataList.warehouseInOutDetail.waterContent < 1 ||
           this.dataList.warehouseInOutDetail.waterContent > 40 ||
-          (String(
-            this.dataList.warehouseInOutDetail.waterContent
-          ).indexOf('.') != -1 &&
-            String(this.dataList.warehouseInOutDetail.waterContent)
-              .length -
-              (String(
-                this.dataList.warehouseInOutDetail.waterContent
-              ).indexOf('.') +
+          (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
+            '.'
+          ) != -1 &&
+            String(this.dataList.warehouseInOutDetail.waterContent).length -
+              (String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
+                '.'
+              ) +
                 1) >
               2)
         ) {
@@ -607,13 +694,12 @@ export default {
         if (
           this.dataList.warehouseInOutDetail.impurity < 1 ||
           this.dataList.warehouseInOutDetail.impurity > 40 ||
-          (String(this.dataList.warehouseInOutDetail.impurity).indexOf(
-            '.'
-          ) != -1 &&
+          (String(this.dataList.warehouseInOutDetail.impurity).indexOf('.') !=
+            -1 &&
             String(this.dataList.warehouseInOutDetail.impurity).length -
-              (String(
-                this.dataList.warehouseInOutDetail.impurity
-              ).indexOf('.') +
+              (String(this.dataList.warehouseInOutDetail.impurity).indexOf(
+                '.'
+              ) +
                 1) >
               2)
         ) {
@@ -624,7 +710,7 @@ export default {
           return
         }
       }
-       //霉变
+      //霉变
       if (this.dataList.warehouseInOutDetail.mildewGrain) {
         if (isNaN(this.dataList.warehouseInOutDetail.mildewGrain)) {
           this.$message({
@@ -640,9 +726,9 @@ export default {
             '.'
           ) != -1 &&
             String(this.dataList.warehouseInOutDetail.mildewGrain).length -
-              (String(
-                this.dataList.warehouseInOutDetail.mildewGrain
-              ).indexOf('.') +
+              (String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
+                '.'
+              ) +
                 1) >
               2)
         ) {
@@ -654,7 +740,7 @@ export default {
         }
       }
 
-       //热损伤
+      //热损伤
       if (this.dataList.warehouseInOutDetail.jiaorenli) {
         if (isNaN(this.dataList.warehouseInOutDetail.jiaorenli)) {
           this.$message({
@@ -666,13 +752,12 @@ export default {
         if (
           this.dataList.warehouseInOutDetail.jiaorenli < 1 ||
           this.dataList.warehouseInOutDetail.jiaorenli > 40 ||
-          (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf(
-            '.'
-          ) != -1 &&
+          (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf('.') !=
+            -1 &&
             String(this.dataList.warehouseInOutDetail.jiaorenli).length -
-              (String(
-                this.dataList.warehouseInOutDetail.jiaorenli
-              ).indexOf('.') +
+              (String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf(
+                '.'
+              ) +
                 1) >
               2)
         ) {
@@ -684,7 +769,7 @@ export default {
         }
       }
 
-        //不完整粒(%)
+      //不完整粒(%)
       if (this.dataList.warehouseInOutDetail.imperfectGrain) {
         if (isNaN(this.dataList.warehouseInOutDetail.imperfectGrain)) {
           this.$message({
@@ -714,7 +799,7 @@ export default {
         }
       }
       //容重
-       if (this.dataList.warehouseInOutDetail.bulkDensity) {
+      if (this.dataList.warehouseInOutDetail.bulkDensity) {
         if (isNaN(this.dataList.warehouseInOutDetail.bulkDensity)) {
           this.$message({
             message: '容重(克/升)非数字!',
@@ -729,9 +814,9 @@ export default {
             '.'
           ) != -1 &&
             String(this.dataList.warehouseInOutDetail.bulkDensity).length -
-              (String(
-                this.dataList.warehouseInOutDetail.bulkDensity
-              ).indexOf('.') +
+              (String(this.dataList.warehouseInOutDetail.bulkDensity).indexOf(
+                '.'
+              ) +
                 1) >
               0)
         ) {
@@ -750,9 +835,7 @@ export default {
         .then(() => {
           this.$refs.dataList.validate((valid) => {
             if (valid) {
-              this.dataList.compId = sessionStorage.getItem(
-                'ws-pf_compId'
-              )
+              this.dataList.compId = sessionStorage.getItem('ws-pf_compId')
               this.dataList.inOutFlag = 2
               this.dataList.statusFlag = 3
               addstorageputList(this.dataList)
@@ -851,10 +934,40 @@ export default {
           this.gradeList = response
         })
       // 类型
-      pullDown({ constId: 'CON5' })
+      if (this.$route.query.warehouseType == '1') {
+        pullDown({ constId: 'CON5' })
+          .toPromise()
+          .then((response) => {
+            this.storageType = response
+          })
+      } else if (this.$route.query.warehouseType == '2') {
+    
+        //临时库入库类型
+        pullDown({ constId: 'WARE1' })
+          .toPromise()
+          .then((response) => {
+            this.storageType = response
+          })
+        //临时库出库类型
+        pullDown({ constId: 'WARE2' })
+          .toPromise()
+          .then((response) => {
+            this.deliveryType = response
+          })
+      }
+      //合同编号
+      xialaNo({ compId: sessionStorage.getItem('ws-pf_compId') })
         .toPromise()
         .then((response) => {
-          this.storageType = response
+          this.outContractNo = response
+        })
+      //经办人
+      getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
+        .toPromise()
+        .then((response) => {
+          this.options = response
+          this.staffList = response
+          //  this.agent = response
         })
     },
     selecttaskType(e) {
@@ -921,6 +1034,7 @@ export default {
         type: 'xls',
       })
     },
+
     // deletecontract(){},
     //删除
     approve() {},
@@ -985,15 +1099,15 @@ export default {
 /deep/.el-form-item__label {
   width: 160px;
 }
-.inspector{
+.inspector {
   width: 50%;
-} 
+}
 //质检员
 /deep/[data-v-58803672] .el-form-item__label {
-    width: 60px;
+  width: 60px;
 }
 [data-v-58803672] .el-form-item__label {
-    width: 60px;
+  width: 60px;
 }
 //选填
 /deep/.el-form-item {

+ 40 - 9
src/views/warehouse/warehouseManagementPut.vue

@@ -111,18 +111,20 @@
 
           <!--经办人-->
           <ws-form-item label="经办人" span="1" prop="agent">
-            <ws-select
+            <el-select
               v-model="deptBudgetList.agent"
-              placeholder=""
-              class="typeselect"
+              placeholder="请选择经办人"
+              filterable
+              :filter-method="dataFilter"
+              @change="selectstaff"
             >
-              <ws-option
-                v-for="item in agent"
-                :key="item.constKey"
+              <el-option
+                v-for="item in options"
+                :key="item.value"
                 :label="item.staffName"
                 :value="item.staffName"
               />
-            </ws-select>
+            </el-select>
           </ws-form-item>
           <!--出库日期-->
           <ws-form-item
@@ -369,7 +371,9 @@ export default {
       endDate: null,
       goodnameList: {},
       checked: true,
-      agent:[],
+      agent: [],
+      staffList: [],
+      options: [],
 
       outContractNo: [],
 
@@ -439,6 +443,31 @@ export default {
     revert() {
       this.$router.push({ path: 'warehouseManagementList' })
     },
+    dataFilter(val) {
+      // console.log(val,"名")
+      this.deptBudgetList.staffList = val
+      if (val) {
+        //val存在
+        this.options = this.staffList.filter((item) => {
+          if (
+            !!~item.staffName.indexOf(val) ||
+            !!~item.staffName.toUpperCase().indexOf(val.toUpperCase())
+          ) {
+            return true
+          }
+        })
+      } else {
+        //val为空时,还原数组
+        this.options = this.staffList
+      }
+    },
+    selectstaff(e) {
+      for (var i = 0; i < this.staffList.length; i++) {
+        if (this.staffList[i].staffName == e) {
+          this.deptBudgetList.personChargeKey = this.staffList[i].staffId
+        }
+      }
+    },
     //提交按钮
     submit() {
       if (!this.deptBudgetList.goodsName) {
@@ -1208,7 +1237,9 @@ export default {
       getstaff({ compId: sessionStorage.getItem('ws-pf_compId') })
         .toPromise()
         .then((response) => {
-          this.agent = response
+          this.options = response
+           this.staffList = response
+          //  this.agent = response
         })
     },
     selecttaskType(e) {

+ 4 - 0
vue.config.js

@@ -144,7 +144,11 @@ module.exports = {
         // target: 'http://standard-dev.winsea.com/', //目标地址
         // target: 'http://localhost:8090/',
         // target: 'http://192.168.1.121:8090/',
+<<<<<<< HEAD
         target: 'http://192.168.1.119:8090/',
+=======
+        target: 'http://192.168.1.115:8090/',
+>>>>>>> 70caf9b691bf8b68635fd42469710b8d8afb4f8a
         // target: 'http://192.168.1.119:8090/',
         // target: 'http://192.168.24.5:8098',//目标地址
         // target: 'http://product-server.winsea.com/',