From ff8b7e2db82fd5e1b1686fe3e336591ba4b3f2ea Mon Sep 17 00:00:00 2001 From: anthonyywj2 <353682448@qq.com> Date: Sat, 26 Mar 2022 21:34:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E8=B0=83=E6=95=B4=EF=BC=8Cbu?= =?UTF-8?q?g=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/basic/invWarehouse.js | 8 ++ src/views/business/stockOrder.vue | 4 +- src/views/business/stockOrderDelSearch.vue | 6 +- src/views/business/stockOrderEditor.vue | 4 +- src/views/business/stockOrderNew.vue | 4 +- src/views/business/stockOrderSearch.vue | 4 +- src/views/business/stockOrderWaitCheck.vue | 4 +- src/views/inout/IOAddOrder.vue | 108 +++++++++++---------- src/views/inout/IOAdditionalOrder.vue | 64 +++++++----- src/views/inout/IOCheckErrorOrder.vue | 2 +- src/views/inout/IONewOrder.vue | 2 +- 11 files changed, 120 insertions(+), 90 deletions(-) diff --git a/src/api/basic/invWarehouse.js b/src/api/basic/invWarehouse.js index 703f072..7276dbd 100644 --- a/src/api/basic/invWarehouse.js +++ b/src/api/basic/invWarehouse.js @@ -19,6 +19,14 @@ export function filterAll(query) { }); } +export function filterAllByLoc(query) { + return axios({ + url: "/spms/inv/warehouse/filterAllLocInv", + method: "get", + params: query + }); +} + export function filterAllByUser(query) { return axios({ url: "/spms/inv/warehouse/filterAllByUser", diff --git a/src/views/business/stockOrder.vue b/src/views/business/stockOrder.vue index 31a45ee..2af1f43 100644 --- a/src/views/business/stockOrder.vue +++ b/src/views/business/stockOrder.vue @@ -366,7 +366,7 @@ import codeDetail from "./errorCode"; import addOrder from "./addOrder"; import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf"; import store from "../../store"; -import {getLocalJoinBusType} from "../../api/basic/busLocalType"; +import {getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType"; import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse"; export default { @@ -745,7 +745,7 @@ export default { let query = { enabled: true, }; - getLocalJoinBusType(query) + getLocalJoinByUser(query) .then((response) => { this.busTypes = response.data.list || []; this.filterQuery.billAction = this.busTypes[0].action; diff --git a/src/views/business/stockOrderDelSearch.vue b/src/views/business/stockOrderDelSearch.vue index b65a998..bcb9f90 100644 --- a/src/views/business/stockOrderDelSearch.vue +++ b/src/views/business/stockOrderDelSearch.vue @@ -163,7 +163,7 @@ - + @@ -433,7 +433,7 @@ import stockQRCodeExport from "./stockQRCodeExport"; import draggable from "vuedraggable"; import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf"; import store from "../../store"; -import {getLocalJoinBusType} from "../../api/basic/busLocalType"; +import {getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType"; import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse"; export default { @@ -866,7 +866,7 @@ export default { let query = { enabled: true, }; - getLocalJoinBusType(query) + getLocalJoinByUser(query) .then((response) => { this.busTypes = response.data.list || []; this.filterQuery.billAction = this.busTypes[0].action; diff --git a/src/views/business/stockOrderEditor.vue b/src/views/business/stockOrderEditor.vue index 16bdca7..286ed09 100644 --- a/src/views/business/stockOrderEditor.vue +++ b/src/views/business/stockOrderEditor.vue @@ -492,7 +492,7 @@ import draggable from "vuedraggable"; import codeDetail from "./errorCode"; import addOrder from "./addOrder"; import store from "../../store"; -import {getLocalJoinBusType} from "../../api/basic/busLocalType"; +import {getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType"; import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf"; import {selectSysParamByKey} from "@/api/param/systemParamConfig"; import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse"; @@ -848,7 +848,7 @@ export default { let query = { enabled: true, }; - getLocalJoinBusType(query) + getLocalJoinByUser(query) .then((response) => { this.busTypes = response.data.list || []; this.filterQuery.billAction = this.busTypes[0].action; diff --git a/src/views/business/stockOrderNew.vue b/src/views/business/stockOrderNew.vue index 9161b51..042ddf0 100644 --- a/src/views/business/stockOrderNew.vue +++ b/src/views/business/stockOrderNew.vue @@ -430,7 +430,7 @@ import {BASE_URL} from "../../config/app"; import stockOrderNewDistribution from "./stockOrderNewDistribution"; import store from "../../store"; import draggable from "vuedraggable"; -import {getLocalJoinBusType} from "../../api/basic/busLocalType"; +import {getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType"; import {selectSysParamByKey} from "../../api/param/systemParamConfig"; import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse"; @@ -822,7 +822,7 @@ export default { let query = { enabled: true, }; - getLocalJoinBusType(query) + getLocalJoinByUser(query) .then((response) => { this.busTypes = response.data.list || []; this.filterQuery.billAction = this.busTypes[0].action; diff --git a/src/views/business/stockOrderSearch.vue b/src/views/business/stockOrderSearch.vue index a916e6f..799fc24 100644 --- a/src/views/business/stockOrderSearch.vue +++ b/src/views/business/stockOrderSearch.vue @@ -476,7 +476,7 @@ import stockQRCodeExport from "./stockQRCodeExport"; import draggable from "vuedraggable"; import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf"; import store from "../../store"; -import {getLocalJoinBusType} from "../../api/basic/busLocalType"; +import {getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType"; import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse"; export default { @@ -914,7 +914,7 @@ export default { let query = { enabled: true, }; - getLocalJoinBusType(query) + getLocalJoinByUser(query) .then((response) => { this.busTypes = response.data.list || []; this.filterQuery.billAction = this.busTypes[0].action; diff --git a/src/views/business/stockOrderWaitCheck.vue b/src/views/business/stockOrderWaitCheck.vue index a3cdab3..dcb3708 100644 --- a/src/views/business/stockOrderWaitCheck.vue +++ b/src/views/business/stockOrderWaitCheck.vue @@ -339,7 +339,7 @@ import codeDetail from "./errorCode"; import addOrder from "./addOrder"; import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf"; import store from "../../store"; -import {getLocalJoinBusType} from "../../api/basic/busLocalType"; +import {getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType"; import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse"; export default { @@ -732,7 +732,7 @@ export default { let query = { enabled: true, }; - getLocalJoinBusType(query) + getLocalJoinByUser(query) .then((response) => { this.busTypes = response.data.list || []; this.filterQuery.billAction = this.busTypes[0].action; diff --git a/src/views/inout/IOAddOrder.vue b/src/views/inout/IOAddOrder.vue index d3d9982..358c092 100644 --- a/src/views/inout/IOAddOrder.vue +++ b/src/views/inout/IOAddOrder.vue @@ -51,6 +51,56 @@ + + + + 单据类型: + + + + + + + {{ item.name }} + + + + + + + + 当前仓库: + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + 往来信息: @@ -110,51 +160,6 @@ > - - - 单据类型: - - - - - - - {{ item.name }} - - - - - - - - - - - 当前仓库: - - - - - - - - - - - {{ item.name }} - - - - @@ -242,7 +247,7 @@ import draggable from "vuedraggable"; import {parseTime} from "../../filtres/index"; import store from "../../store"; import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain" -import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse"; +import {filterAll, filterAllByLoc, filterAllByUser} from "@/api/basic/invWarehouse"; import {getLocalBusType, getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType"; export default { @@ -494,14 +499,17 @@ export default { this.loading = false; }); }, - + locCHange() { + this.findStorageMethod(); + }, findStorageMethod(query) { - console.log(query); + if (this.formData.locStorageCode == null) + return; this.fromStorageOptions = []; let cQuery = { - key: query, + locInvCode: this.formData.locStorageCode , }; - filterAllByUser(cQuery) + filterAllByLoc(cQuery) .then((response) => { this.fromStorageOptions = response.data || []; }) diff --git a/src/views/inout/IOAdditionalOrder.vue b/src/views/inout/IOAdditionalOrder.vue index ae5e6ef..fcc9d6e 100644 --- a/src/views/inout/IOAdditionalOrder.vue +++ b/src/views/inout/IOAdditionalOrder.vue @@ -25,6 +25,18 @@ + + + + {{ item.name }} + + + - + - - - - 选择往来单位 - - - - {{ scope.row.fromCorp }} - - - + {{ scope.row.fromCorp }} + + + + + {{ getStorageName(scope.row.locStorageCode) }} - @@ -102,7 +98,7 @@ - + { + this.storageList = response.data || []; + }) + .catch(() => { + }); + }, + getStorageName(code) { + for (let i = 0; i < this.storageList.length; i++) { + if (this.storageList[i].code === code) { + return this.storageList[i].name; + } + } + }, closeDialog() { this.addOrderVisible = false; this.getList(); @@ -540,6 +553,7 @@ export default { }; }, created() { + this.getStorage(); this.getBusType(); let query = this.$route.query; this.filterQuery = Object.assign(this.filterQuery, query); diff --git a/src/views/inout/IOCheckErrorOrder.vue b/src/views/inout/IOCheckErrorOrder.vue index 8375338..0798f7e 100644 --- a/src/views/inout/IOCheckErrorOrder.vue +++ b/src/views/inout/IOCheckErrorOrder.vue @@ -806,7 +806,7 @@ export default { orderId: row.id, }; this.loading = true; - repeatPrintCheck(tQuery) + repeatCheck(tQuery) .then((response) => { this.loading = false; if (response.code === 20000) { diff --git a/src/views/inout/IONewOrder.vue b/src/views/inout/IONewOrder.vue index d149253..a577ac7 100644 --- a/src/views/inout/IONewOrder.vue +++ b/src/views/inout/IONewOrder.vue @@ -171,7 +171,7 @@ size="small" v-if="scope.row.status !== -1" @click.native.stop="onUpload(scope.row.id)" - >立即提交 + >立即处理
- 选择往来单位 - -
- {{ scope.row.fromCorp }} - -