库存查询移库修改

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

View File

@@ -284,7 +284,7 @@
</el-table-column>
<el-table-column label="仓库" align="center">
<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' }" />
</template>
</el-table-column>
@@ -447,6 +447,12 @@ function rklxList() {
})
}
// 仓库下拉改变事件
function onChangeToCangku (val){
checkStockList.value[0].toPcode = ''
pcodeList(val)
}
// 库位字典
const kwOptions = ref([]);
function pcodeList(value) {