|
|
|
@ -467,10 +467,11 @@ import stockQRCodeExport from "./stockQRCodeExport";
|
|
|
|
|
import draggable from "vuedraggable";
|
|
|
|
|
import {inspectionStockOrderPDFFromTemplateFile, stockOrderPDFFromTemplateFile} from "../../api/itextpdf/itextpdf";
|
|
|
|
|
import store from "../../store";
|
|
|
|
|
import {getLocalJoinBusType, getLocalJoinByUser} from "../../api/basic/busLocalType";
|
|
|
|
|
import {filterAll, filterAllByUser} from "@/api/basic/invWarehouse";
|
|
|
|
|
import {getLocalJoinByUser} from "../../api/basic/busLocalType";
|
|
|
|
|
import {filterAllByUser} from "@/api/basic/invWarehouse";
|
|
|
|
|
import StockOrderEdit from "@/views/warehouse/stockOrderEdit";
|
|
|
|
|
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
|
|
|
|
|
import {isBlank} from "@/utils/strUtil";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "stockOrderSearch",
|
|
|
|
@ -948,7 +949,7 @@ export default {
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.storageList = response.data || [];
|
|
|
|
|
if (this.storageList.length > 0) {
|
|
|
|
|
this.getSubInvList();
|
|
|
|
|
// this.getSubInvList();
|
|
|
|
|
this.getList();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -958,15 +959,20 @@ export default {
|
|
|
|
|
invChange() {
|
|
|
|
|
this.query.invWarehouseCode = "";
|
|
|
|
|
this.subInvList = [];
|
|
|
|
|
let query = {
|
|
|
|
|
pcode: this.query.locStorageCode
|
|
|
|
|
};
|
|
|
|
|
filterSubByInv(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.subInvList = response.data || [];
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if (!isBlank(this.query.locStorageCode)) {
|
|
|
|
|
let query = {
|
|
|
|
|
pcode: this.query.locStorageCode
|
|
|
|
|
};
|
|
|
|
|
filterSubByInv(query)
|
|
|
|
|
.then((response) => {
|
|
|
|
|
this.subInvList = response.data || [];
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.subInvList = [];
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
getSubInvList() {
|
|
|
|
|