入库单修改

master
maxw@mesnac.com 1 month ago
parent 21f8703da5
commit bc8709b798

@ -134,7 +134,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" fixed="right" width="200"> <el-table-column label="操作" fixed="right" width="200">
<template #default="scope"> <template #default="scope">
<el-button size="small" @click="childrenTableUpdate( scope.row)"> <el-button size="small" @click="childrenTableUpdate( scope.row)" v-if="auditStatusLoad">
打印 打印
</el-button> </el-button>
<el-button <el-button
@ -532,8 +532,8 @@ listUser().then(e => {
userList.value = e.rows; userList.value = e.rows;
}) })
/** 提交按钮 */ /** 提交按钮 */
const submitForm = () => { const submitForm = async() => {
updateInstockDetail(childrenTableInfoForm.value); await updateInstockDetail(childrenTableInfoForm.value);
getChildrenTable({instockId: partntTableSelectCell.value.instockId}); getChildrenTable({instockId: partntTableSelectCell.value.instockId});
childrenTableInfoVisible.value = false; childrenTableInfoVisible.value = false;
} }
@ -549,19 +549,26 @@ const getParentTable = async () => {
if (e.rows.length > 0) { if (e.rows.length > 0) {
parentTableRef.value.setCurrentRow(e.rows[0]) parentTableRef.value.setCurrentRow(e.rows[0])
await getChildrenTable({instockId: e.rows[0].instockId}) await getChildrenTable({instockId: e.rows[0].instockId,auditStatus: e.rows[0].auditStatus})
} else { } else {
childrenTableData.value = [] childrenTableData.value = []
} }
}) })
} }
const auditStatusLoad = ref(false)
// //
const getChildrenTable = async (form) => { const getChildrenTable = async (form) => {
console.log(form.auditStatus)
if(form.auditStatus == 1){
auditStatusLoad.value = true;
}else{
auditStatusLoad.value = false;
}
childrenTableLoad.value = true childrenTableLoad.value = true
console.log(form) console.log(form)
await listInstockDetail(form).then(e => { await listInstockDetail(form).then(e => {
childrenTableLoad.value = false childrenTableLoad.value = false
console.log(e.rows)
childrenTableData.value = e.rows childrenTableData.value = e.rows
// parentTableTotal.value = e.total // parentTableTotal.value = e.total
}) })
@ -594,7 +601,7 @@ const reset = () => {
// //
const parentTableCellClick = async (e) => { const parentTableCellClick = async (e) => {
partntTableSelectCell.value = e partntTableSelectCell.value = e
await getChildrenTable({instockId: e.instockId}) await getChildrenTable({instockId: e.instockId,auditStatus: e.auditStatus})
} }
// //

Loading…
Cancel
Save