库存查询移库修改

This commit is contained in:
zx
2026-01-22 18:29:49 +08:00
parent 06f963e8f2
commit 51ef75d0a0
2 changed files with 9 additions and 4 deletions

View File

@@ -310,7 +310,7 @@
:row-class-name="tableRowClassName" @selection-change="handleSelectionChange"> :row-class-name="tableRowClassName" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="30" align="center" /> <el-table-column type="selection" width="30" align="center" />
<el-table-column label="序号" align="center" type="index" width="50" /> <el-table-column label="序号" align="center" type="index" width="50" />
<el-table-column label="状态" align="center" prop="status" width="100"> <el-table-column label="状态" align="center" prop="status" width="100" v-if="idEdit == 0">
<template #default="scoped"> <template #default="scoped">
<el-tag :type="scoped.row.status == 1 <el-tag :type="scoped.row.status == 1
? 'success' ? 'success'
@@ -1254,7 +1254,6 @@ function addOne() {
} }
//根据物料号查询物料信息 //根据物料号查询物料信息
// todo 空的物料号会查询出所有信息 查询一条查询不出
function searchInfo(wlNo, index) { function searchInfo(wlNo, index) {
wlSearch(wlNo).then((res) => { wlSearch(wlNo).then((res) => {
if (res.rows.length > 0) { if (res.rows.length > 0) {
@@ -1274,7 +1273,7 @@ function handleUpdate(row) {
reset(); reset();
idEdit.value = row.id; idEdit.value = row.id;
row.isnew = true; row.isnew = true;
planList.value = JSON.parse(JSON.stringify(row)); planList.value = [JSON.parse(JSON.stringify(row))];
open.value = true; open.value = true;
title.value = "修改库存单据"; title.value = "修改库存单据";
} }

View File

@@ -284,7 +284,7 @@
</el-table-column> </el-table-column>
<el-table-column label="仓库" align="center"> <el-table-column label="仓库" align="center">
<template #default="scope"> <template #default="scope">
<el-cascader :options="warehouseOptions" v-model="scope.row.toCangku" @change="pcodeList" <el-cascader :options="warehouseOptions" v-model="scope.row.toCangku" @change="onChangeToCangku"
:props="{ children: 'children', label: 'warehouseName', value: 'warehouseCode' }" /> :props="{ children: 'children', label: 'warehouseName', value: 'warehouseCode' }" />
</template> </template>
</el-table-column> </el-table-column>
@@ -447,6 +447,12 @@ function rklxList() {
}) })
} }
// 仓库下拉改变事件
function onChangeToCangku (val){
checkStockList.value[0].toPcode = ''
pcodeList(val)
}
// 库位字典 // 库位字典
const kwOptions = ref([]); const kwOptions = ref([]);
function pcodeList(value) { function pcodeList(value) {