分库功能bug修复

fencang
anthonywj 3 years ago
parent 6d6b3381d6
commit 58bbf892a8

@ -1,5 +1,5 @@
{ {
"BASE_URL": "http://192.168.0.109:9996", "BASE_URL": "http://192.168.1.2:9996",
"SERVER_IP": "http://192.168.0.109:9996", "SERVER_IP": "http://192.168.1.2:9996",
"hosp_name": "诏安县总医院(测试)" "hosp_name": "诏安县总医院(测试)"
} }

@ -197,6 +197,14 @@ export function commitOrder(query) {
}); });
} }
export function repeatCommitOrder(query) {
return axios({
url: "/warehouse/inout/repeatCommitOrder",
method: "post",
data: query
});
}
export function addCommitOrder(query) { export function addCommitOrder(query) {
return axios({ return axios({
url: "/warehouse/inout/addCommit", url: "/warehouse/inout/addCommit",

@ -227,13 +227,13 @@
min-width="30%" min-width="30%"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <!-- <el-button-->
type="text" <!-- type="text"-->
size="small" <!-- size="small"-->
@click.native="updateDirector(scope.row)"> <!-- @click.native="updateDirector(scope.row)">-->
{{ directorMap[scope.row.director] }} <!-- {{ directorMap[scope.row.director] }}-->
</el-button> <!-- </el-button>-->
<el-button <el-button
type="text" type="text"
size="small" size="small"
@ -663,7 +663,7 @@ export default {
children: "children", children: "children",
label: "name" label: "name"
}, },
setDictor: "设为主管", // setDictor: "",
fileList: [], fileList: [],
pCodes: [], pCodes: [],
uploadData: {}, uploadData: {},
@ -671,7 +671,7 @@ export default {
index: null, index: null,
formName: null, formName: null,
formMap: { formMap: {
addTop: "添加库", addTop: "添加库",
add: "添加货位", add: "添加货位",
edit: "编辑" edit: "编辑"
}, },
@ -827,6 +827,7 @@ export default {
if (formName === "edit") { if (formName === "edit") {
this.subData = data; this.subData = data;
} else if (formName === "add") { } else if (formName === "add") {
this.subData = {};
this.subData.parentId = data.code; this.subData.parentId = data.code;
} }
; ;
@ -882,6 +883,11 @@ export default {
// //
forSubSubmit() { forSubSubmit() {
if (this.$isBlank(this.subData.name)) {
this.$message.error("分库名称不能为空!");
return;
}
saveSubWarehouse(this.subData, this.subFromName).then((response) => { saveSubWarehouse(this.subData, this.subFromName).then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.loadSubData(this.subData.parentId); this.loadSubData(this.subData.parentId);
@ -1079,7 +1085,8 @@ export default {
loadSubData(parentId) { loadSubData(parentId) {
this.userData = [];
this.bussinessTypeData = [];
let subQuery = { let subQuery = {
parentId: parentId, parentId: parentId,
} }

@ -92,6 +92,8 @@
width="120"></el-table-column> width="120"></el-table-column>
<el-table-column label="仓库" prop="invStorageName" v-if="showSup" <el-table-column label="仓库" prop="invStorageName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column> show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="分库" prop="invSubStorageName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="操作" width="120" fixed="right"> <el-table-column label="操作" width="120" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button

@ -100,6 +100,8 @@
width="120"></el-table-column> width="120"></el-table-column>
<el-table-column label="仓库" prop="invStorageName" v-if="showSup" <el-table-column label="仓库" prop="invStorageName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column> show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="分库" prop="invSubStorageName" v-if="showSup"
show-overflow-tooltip width="120"></el-table-column>
<el-table-column label="操作" width="120" fixed="right"> <el-table-column label="操作" width="120" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button

@ -27,6 +27,7 @@
</el-form-item> </el-form-item>
<el-form-item class="query-form-item"> <el-form-item class="query-form-item">
<el-select v-model="filterQuery.locStorageCode" placeholder="请选择当前仓库" clearable="true" <el-select v-model="filterQuery.locStorageCode" placeholder="请选择当前仓库" clearable="true"
@change="invChange"
size="mini"> size="mini">
<el-option <el-option
v-for="item in storageList" v-for="item in storageList"
@ -37,6 +38,18 @@
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item class="query-form-item">
<el-select v-model="filterQuery.invWarehouseCode" placeholder="请选择当前分库" clearable="true"
size="mini">
<el-option
v-for="item in subInvList"
:key="item.name"
:label="item.name"
:value="item.code">
<span style="float: left">{{ item.name }}</span>
</el-option>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button-group> <el-button-group>
<el-button <el-button
@ -256,6 +269,7 @@ import {getBussinessType} from "../../api/basic/bussinessType";
import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain"; import {getBasicUnitMaintains} from "@/api/basic/basicUnitMaintain";
import {filterAllByUser} from "@/api/basic/invWarehouse"; import {filterAllByUser} from "@/api/basic/invWarehouse";
import {getLocalJoinByUser} from "@/api/basic/busLocalType"; import {getLocalJoinByUser} from "@/api/basic/busLocalType";
import {filterSubByInv} from "@/api/basic/invSubWarehouse";
const formJson = { const formJson = {
site_id: "", site_id: "",
@ -308,6 +322,7 @@ export default {
}, },
list: [], list: [],
storageList: [], storageList: [],
subInvList: [],
queryAdIdAsyncLoading: false, queryAdIdAsyncLoading: false,
codeDetailVisible: false, codeDetailVisible: false,
total: 0, total: 0,
@ -509,6 +524,21 @@ export default {
.catch(() => { .catch(() => {
}); });
}, },
invChange() {
this.filterQuery.invWarehouseCode = "";
this.subInvList = [];
let query = {
pcode: this.filterQuery.locStorageCode
};
filterSubByInv(query)
.then((response) => {
this.subInvList = response.data || [];
})
.catch(() => {
});
},
getStorageName(code) { getStorageName(code) {
for (let i = 0; i < this.storageList.length; i++) { for (let i = 0; i < this.storageList.length; i++) {
if (this.storageList[i].code === code) { if (this.storageList[i].code === code) {

@ -117,11 +117,16 @@
</el-table-column> </el-table-column>
<el-table-column label="往来单位" prop="fromCorp" width="250"> <el-table-column label="往来单位" prop="fromCorp" width="250">
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<el-table-column <el-table-column
label="创建时间" label="创建时间"
prop="actDate" prop="actDate"
@ -831,6 +836,13 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
repeatPrintCheckClick(row) { repeatPrintCheckClick(row) {
let tQuery = { let tQuery = {
orderId: row.id, orderId: row.id,
@ -1230,6 +1242,7 @@ export default {
}, },
invChange() { invChange() {
this.subInvList = []; this.subInvList = [];
this.filterQuery.invWarehouseCode = "";
let query = { let query = {
pcode: this.filterQuery.locStorageCode pcode: this.filterQuery.locStorageCode
}; };

@ -269,7 +269,7 @@ import {
filterOrder, filterOrder,
deleteByOrderId, deleteByOrderId,
commitOrder, commitOrder,
updateUnit, updateUnit, repeatCommitOrder,
} from "../../api/warehouse/order"; } from "../../api/warehouse/order";
import draggable from "vuedraggable"; import draggable from "vuedraggable";
@ -502,7 +502,7 @@ export default {
orderId: "", orderId: "",
}; };
idQuery.orderId = data; idQuery.orderId = data;
commitOrder(idQuery) repeatCommitOrder(idQuery)
.then((response) => { .then((response) => {
if (response.code === 20000) { if (response.code === 20000) {
this.$message.success(response.data); this.$message.success(response.data);
@ -570,6 +570,7 @@ export default {
}, },
invChange() { invChange() {
this.subInvList = []; this.subInvList = [];
this.filterQuery.invWarehouseCode = "";
let query = { let query = {
pcode: this.filterQuery.locStorageCode pcode: this.filterQuery.locStorageCode
}; };

@ -100,11 +100,18 @@
<el-table-column label="往来单位" prop="fromCorp" width="220"> <el-table-column label="往来单位" prop="fromCorp" width="220">
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<el-table-column label="创建时间" prop="actDate" show-overflow-tooltip> <el-table-column label="创建时间" prop="actDate" show-overflow-tooltip>
<template slot-scope="scope"> <template slot-scope="scope">
<i class="el-icon-time"></i> <i class="el-icon-time"></i>
@ -456,6 +463,13 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
addOrders(row) { addOrders(row) {
console.log(row) console.log(row)
this.idQuery.id = ''; this.idQuery.id = '';
@ -633,6 +647,7 @@ export default {
idQuery.orderId = data; idQuery.orderId = data;
commitOrder(idQuery) commitOrder(idQuery)
.then((response) => { .then((response) => {
this.loading = false;
if (response.code == 20000) { if (response.code == 20000) {
this.$message.success(response.data); this.$message.success(response.data);
this.getList(); this.getList();
@ -660,6 +675,7 @@ export default {
}, },
invChange() { invChange() {
this.subInvList = []; this.subInvList = [];
this.filterQuery.invWarehouseCode = "";
let query = { let query = {
pcode: this.filterQuery.locStorageCode pcode: this.filterQuery.locStorageCode
}; };

@ -114,11 +114,16 @@
</el-table-column> </el-table-column>
<el-table-column label="往来单位" prop="fromCorp" width="250"> <el-table-column label="往来单位" prop="fromCorp" width="250">
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<el-table-column <el-table-column
label="创建时间" label="创建时间"
prop="actDate" prop="actDate"
@ -634,6 +639,13 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
handleErrorDetail(poistion) { handleErrorDetail(poistion) {
var mOrder = this.list[poistion]; var mOrder = this.list[poistion];
this.errorDetail = mOrder.remark; this.errorDetail = mOrder.remark;
@ -943,6 +955,7 @@ export default {
} }
}, },
invChange() { invChange() {
this.filterQuery.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.filterQuery.locStorageCode pcode: this.filterQuery.locStorageCode

@ -115,11 +115,16 @@
</el-table-column> </el-table-column>
<el-table-column label="往来单位" prop="fromCorp" width="250"> <el-table-column label="往来单位" prop="fromCorp" width="250">
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<el-table-column <el-table-column
label="创建时间" label="创建时间"
prop="actDate" prop="actDate"
@ -636,6 +641,13 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
handleErrorDetail(poistion) { handleErrorDetail(poistion) {
var mOrder = this.list[poistion]; var mOrder = this.list[poistion];
this.errorDetail = mOrder.remark; this.errorDetail = mOrder.remark;
@ -995,6 +1007,7 @@ export default {
}); });
}, },
invChange() { invChange() {
this.filterQuery.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.filterQuery.locStorageCode pcode: this.filterQuery.locStorageCode

@ -1180,6 +1180,7 @@ export default {
this.findStorageMethod(); this.findStorageMethod();
}, },
invChange() { invChange() {
this.formData.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.formData.locStorageCode pcode: this.formData.locStorageCode

@ -131,6 +131,11 @@
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="采购类型">--> <!-- <el-table-column label="采购类型">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}--> <!-- {{ scope.row.type | typeFilterName }}-->
@ -783,6 +788,16 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
getStorage() { getStorage() {
this.storageList = []; this.storageList = [];
filterAllByUser() filterAllByUser()
@ -798,6 +813,7 @@ export default {
}, },
invChange() { invChange() {
this.query.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.query.locStorageCode pcode: this.query.locStorageCode

@ -102,11 +102,17 @@
<span>{{ getActionName(scope.row.billType) }}</span> <span>{{ getActionName(scope.row.billType) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="采购类型">--> <!-- <el-table-column label="采购类型">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}--> <!-- {{ scope.row.type | typeFilterName }}-->
@ -837,6 +843,13 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
getStorage() { getStorage() {
this.storageList = []; this.storageList = [];
filterAllByUser() filterAllByUser()
@ -852,6 +865,7 @@ export default {
}, },
invChange() { invChange() {
this.query.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.query.locStorageCode pcode: this.query.locStorageCode

@ -62,24 +62,6 @@
<el-col :span="7"> <el-col :span="7">
<el-form-item prop="corpName"> <el-form-item prop="corpName">
<el-input v-model="formData.corpName" auto-complete="off" :disabled="true"></el-input> <el-input v-model="formData.corpName" auto-complete="off" :disabled="true"></el-input>
<!-- <el-select-->
<!-- style="width: 100%"-->
<!-- v-model="sValue"-->
<!-- :multiple="false"-->
<!-- filterable-->
<!-- remote-->
<!-- reserve-keyword-->
<!-- placeholder="请输入供应商名称"-->
<!-- :remote-method="remoteMethod"-->
<!-- :loading="sLoading"-->
<!-- @change="selectOne">-->
<!-- <el-option-->
<!-- v-for="item in sOptions"-->
<!-- :key="idx"-->
<!-- :label="item.name"-->
<!-- :value="item">-->
<!-- </el-option>-->
<!-- </el-select>-->
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="3"> <el-col :span="3">
@ -104,19 +86,6 @@
</el-row> </el-row>
<el-row :gutter="20" style="margin-top: -10px;"> <el-row :gutter="20" style="margin-top: -10px;">
<!-- <el-col :span="3">-->
<!-- <div class="ao-text">-->
<!-- <span>采购类型</span>-->
<!-- </div>-->
<!-- </el-col>-->
<!-- <el-col :span="7">-->
<!-- <el-form-item prop="type">-->
<!-- <el-select v-model="formData.type" style="width: 100%" placeholder="采购类型">-->
<!-- <el-option label="预入库" value="1"></el-option>-->
<!-- <el-option label="普通采购" value="2"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="3"> <el-col :span="3">
<div class="ao-text"> <div class="ao-text">
<span>当前仓库</span> <span>当前仓库</span>

@ -104,11 +104,18 @@
<span>{{ getActionName(scope.row.billType) }}</span> <span>{{ getActionName(scope.row.billType) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="采购类型">--> <!-- <el-table-column label="采购类型">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}--> <!-- {{ scope.row.type | typeFilterName }}-->
@ -936,6 +943,14 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
getStorage() { getStorage() {
this.storageList = []; this.storageList = [];
filterAllByUser() filterAllByUser()
@ -951,6 +966,7 @@ export default {
}, },
invChange() { invChange() {
this.subInvList = []; this.subInvList = [];
this.query.invWarehouseCode = "";
let query = { let query = {
pcode: this.query.locStorageCode pcode: this.query.locStorageCode
}; };

@ -118,6 +118,12 @@
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="采购类别" width="150">--> <!-- <el-table-column label="采购类别" width="150">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}--> <!-- {{ scope.row.type | typeFilterName }}-->
@ -857,6 +863,13 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
getBusType() { getBusType() {
let query = { let query = {
enabled: true, enabled: true,
@ -923,6 +936,7 @@ export default {
}); });
}, },
invChange() { invChange() {
this.query.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.query.locStorageCode pcode: this.query.locStorageCode

@ -1119,6 +1119,7 @@ export default {
} }
}, },
invChange() { invChange() {
this.formData.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.formData.locStorageCode pcode: this.formData.locStorageCode

@ -102,11 +102,16 @@
<span>{{ getActionName(scope.row.billType) }}</span> <span>{{ getActionName(scope.row.billType) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前仓库" prop="locStorageCode" width="150"> <el-table-column label="当前仓库" prop="locStorageCode" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" width="200"> <el-table-column label="操作" fixed="right" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -925,6 +930,13 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
getStorage() { getStorage() {
this.storageList = []; this.storageList = [];
filterAllByUser() filterAllByUser()
@ -939,6 +951,7 @@ export default {
}); });
}, },
invChange() { invChange() {
this.query.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.query.locStorageCode pcode: this.query.locStorageCode

@ -109,6 +109,11 @@
<span>{{ getStorageName(scope.row.locStorageCode) }}</span> <span>{{ getStorageName(scope.row.locStorageCode) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="当前分库" prop="invWarehouseCode" width="120">
<template slot-scope="scope">
<span>{{ getSubStorageName(scope.row.invWarehouseCode) }}</span>
</template>
</el-table-column>
<!-- <el-table-column label="采购类型">--> <!-- <el-table-column label="采购类型">-->
<!-- <template slot-scope="scope">--> <!-- <template slot-scope="scope">-->
<!-- {{ scope.row.type | typeFilterName }}--> <!-- {{ scope.row.type | typeFilterName }}-->
@ -340,7 +345,6 @@
import { import {
stockOrderList, stockOrderDetail, stockOrderList, stockOrderDetail,
deleteStockOrderById, deleteStockOrderDetailById, deleteStockOrderById, deleteStockOrderDetailById,
copyStockOrderDetail, submitStockOrder,
uploadStockOrderDetail, uploadStockOrderDetailCount, uploadStockOrderDetail, uploadStockOrderDetailCount,
generateStockOrderQRCodeText, updateStockOrder generateStockOrderQRCodeText, updateStockOrder
} from "../../api/warehouse/stockOrder"; } from "../../api/warehouse/stockOrder";
@ -774,6 +778,15 @@ export default {
} }
} }
}, },
getSubStorageName(code) {
for (let i = 0; i < this.subInvList.length; i++) {
if (this.subInvList[i].code === code) {
return this.subInvList[i].name;
}
}
},
getStorage() { getStorage() {
this.storageList = []; this.storageList = [];
filterAllByUser() filterAllByUser()
@ -789,6 +802,7 @@ export default {
}); });
}, },
invChange() { invChange() {
this.query.invWarehouseCode = "";
this.subInvList = []; this.subInvList = [];
let query = { let query = {
pcode: this.query.locStorageCode pcode: this.query.locStorageCode

Loading…
Cancel
Save