浏览代码

添加仓库管理出入库任务编号

mxx 3 年之前
父节点
当前提交
c86df96d0a

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

@@ -78,6 +78,7 @@ export const API_GET_WAREHOUSERESPONSIBLE = '/warehouseBaseInfo/selectResponsibl
 export const API_GET_WAREHOUSETASK = '/inOutWarehouseTask/selectWarehouseTask'
 // 修改经办人
 export const API_GET_CHECKORUPDATE = '/inOutWarehouseTask/api/checkOrUpdateInOutTask'
-
+// 获取出入库任务编号
+export const API_GET_RECEIPTTASKNO = '/inOutWarehouseTask/selectInOutWarehouseNo'
 
 

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

@@ -37,7 +37,8 @@ import {
     API_GET_WAREHOUSE,
     API_GET_WAREHOUSERESPONSIBLE,
     API_GET_WAREHOUSETASK,
-    API_GET_CHECKORUPDATE
+    API_GET_CHECKORUPDATE,
+    API_GET_RECEIPTTASKNO
 } from '@/api/V2/warehouse'
 // import { app } from 'electron'
 // 列表
@@ -114,4 +115,6 @@ export const getsponsible = appRx.get(API_GET_WAREHOUSERESPONSIBLE,errorCatcher,
 //出入库任务
 export const getwarehousetask = appRx.get(API_GET_WAREHOUSETASK,errorCatcher, errorHandle, filter)
 //修改经办人
-export const postcheckorupdate = appRx.post(API_GET_CHECKORUPDATE,errorCatcher, errorHandle, filter)
+export const postcheckorupdate = appRx.post(API_GET_CHECKORUPDATE,errorCatcher, errorHandle, filter)
+//获取出入库任务编号
+export const getReceiptTaskNo = appRx.get(API_GET_RECEIPTTASKNO,errorCatcher, errorHandle, filter)

+ 1 - 1
src/views/purchasingManagement/procurementPlanAdd.vue

@@ -173,7 +173,7 @@
               v-model="dataList.buyerPhone"
               filterable
               class="typeselect"
-              
+              clearable
               placeholder="请输入买方电话"
             ></el-input>
             <span class="unchangeable">*</span>

+ 1 - 1
src/views/purchasingManagement/procurementPlanEdit.vue

@@ -209,7 +209,7 @@
             <el-input
               v-model="dataList.buyerPhone"
               filterable
-              
+              clearable
               placeholder="请输入买方电话"
               class="typeselect"
             ></el-input>

+ 25 - 0
src/views/warehouse/warehouseManagementGross.vue

@@ -40,6 +40,24 @@
           <span v-show="this.$route.query.warehouseType == 2">(临)</span>
         </h2>
         <ws-info-table>
+                  <!--任务编号-->
+          <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
+            <el-select
+              filterable
+              clearable
+              v-model="deptBudgetList.inOutTaskNo"
+              placeholder="请选择任务编号"
+              class="typeselect"
+              @change="contractNoChange"
+            >
+              <el-option
+                v-for="item in deptBudgetList1"
+                :key="item.inOutTaskNo"
+                :label="item.inOutTaskNo"
+                :value="item.inOutTaskNo"
+              />
+            </el-select>
+          </ws-form-item>
           <!--合同编号-->
           <ws-form-item label="合同编号" span="1" prop="contractNo">
             <el-select
@@ -546,6 +564,7 @@ import {
   addstorageputList,
   xialaNo,
   getstaff,
+  getReceiptTaskNo
 } from '@/model/warehouse/index'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
@@ -567,6 +586,7 @@ export default {
   },
   data() {
     return {
+      deptBudgetList1:[],
       qualityInspectorList:[],
       isGetCost:false,
       isSelectType:true,
@@ -671,6 +691,11 @@ export default {
          
        }
       }
+      getReceiptTaskNo().toPromise()
+            .then((response) => {
+                console.log(response)
+                this.deptBudgetList1 = response
+            })
     // if (this.deptBudgetList.warehouseType == 1) {
     //   // this.deptBudgetList.inOutType = '采购入库'
     //   this.deptBudgetList.inOutTypeKey = '1'

+ 26 - 1
src/views/warehouse/warehouseManagementNoWeightIn.vue

@@ -33,6 +33,24 @@
         </h2>
         <div class="small-title">基本信息</div>
         <ws-info-table>
+                      <!--任务编号-->
+          <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
+            <el-select
+              filterable
+              clearable
+              v-model="dataList.inOutTaskNo"
+              placeholder="请选择任务编号"
+              class="typeselect"
+              @change="contractNoChange"
+            >
+              <el-option
+                v-for="item in deptBudgetList2"
+                :key="item.inOutTaskNo"
+                :label="item.inOutTaskNo"
+                :value="item.inOutTaskNo"
+              />
+            </el-select>
+          </ws-form-item>
           <ws-form-item label="合同编号" span="1" prop="contractNo">
             <el-select
             filterable
@@ -443,7 +461,8 @@ import {
   addstorageputList,
   xialaNo,
   getstaff,
-  getPrintInfo
+  getPrintInfo,
+  getReceiptTaskNo
 } from '@/model/warehouse/index'
 import { downloadFile } from '@/utils/batchDown'
 import Pagination from '@/components/Pagination'
@@ -478,6 +497,7 @@ export default {
   },
   data() {
     return {
+       deptBudgetList2:[],
       isSelectType:true,
       isGetCost:false,
       qualityInspectorList:[],
@@ -626,6 +646,11 @@ export default {
       this.isGetCost = true
       this.cost = this.dataList.cost 
     }
+    getReceiptTaskNo().toPromise()
+        .then((response) => {
+            console.log(response)
+            this.deptBudgetList2 = response
+        })
 
   },
   methods: {

+ 26 - 1
src/views/warehouse/warehouseManagementNoWeightOut.vue

@@ -34,6 +34,24 @@
         </h2>
         <div class="small-title">基本信息</div>
         <ws-info-table>
+                    <!--任务编号-->
+          <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
+            <el-select
+              filterable
+              clearable
+              v-model="dataList.inOutTaskNo"
+              placeholder="请选择任务编号"
+              class="typeselect"
+              @change="contractNoChange"
+            >
+              <el-option
+                v-for="item in deptBudgetList2"
+                :key="item.inOutTaskNo"
+                :label="item.inOutTaskNo"
+                :value="item.inOutTaskNo"
+              />
+            </el-select>
+          </ws-form-item>
          <ws-form-item label="合同编号" span="1" prop="contractNo">
             <ws-select
               v-model="dataList.contractNo"
@@ -360,7 +378,8 @@ import {
   addstorageputList,
   xialaNo,
   getstaff,
-  getPrintInfo
+  getPrintInfo,
+  getReceiptTaskNo
 } from '@/model/warehouse/index'
 import { downloadFile } from '@/utils/batchDown'
 import Pagination from '@/components/Pagination'
@@ -392,6 +411,7 @@ export default {
   },
   data() {
     return {
+      deptBudgetList2:[],
       //弹出框
       dialogViewSpareMoney: false,
       dialogApproveFormVisible: false,
@@ -521,6 +541,11 @@ export default {
     this.dataList.statusFlag = this.$route.statusFlag
     this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
     console.log(this.dataList)
+    getReceiptTaskNo().toPromise()
+      .then((response) => {
+          console.log(response)
+          this.deptBudgetList2 = response
+      })
   },
   methods: {
     async closePort() {

+ 25 - 1
src/views/warehouse/warehouseManagementTare.vue

@@ -35,6 +35,24 @@
         </h2>
         <div class="small-title">基本信息</div>
         <ws-info-table>
+                  <!--任务编号-->
+          <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
+            <el-select
+              filterable
+              clearable
+              v-model="deptBudgetList.inOutTaskNo"
+              placeholder="请选择任务编号"
+              class="typeselect"
+              @change="contractNoChange"
+            >
+              <el-option
+                v-for="item in deptBudgetList1"
+                :key="item.inOutTaskNo"
+                :label="item.inOutTaskNo"
+                :value="item.inOutTaskNo"
+              />
+            </el-select>
+          </ws-form-item>
           <ws-form-item label="合同编号" span="1" prop="contractNo">
             <ws-select
               v-model="deptBudgetList.contractNo"
@@ -374,6 +392,7 @@ import {
   xialaNo,
   getstaff,
   goodsnameXiala,
+  getReceiptTaskNo
 } from '@/model/warehouse/index'
 import Pagination from '@/components/Pagination'
 import WsUpload from '@/components/WsUpload'
@@ -392,6 +411,7 @@ export default {
   },
   data() {
     return {
+      deptBudgetList1:[],
       isSelectType:true,
        carstatus: false,
        qualityInspectorList:[],
@@ -479,7 +499,11 @@ export default {
     this.deptBudgetList.warehouseType = this.$route.query.warehouseType
     this.deptBudgetList.warehouseId = this.$route.query.warehouseId
     this.getList()
-  
+       getReceiptTaskNo().toPromise()
+            .then((response) => {
+                console.log(response)
+                this.deptBudgetList1 = response
+            })
   },
   methods: {
     async closePort() {