|
|
|
@ -134,7 +134,7 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="操作" fixed="right" width="200">
|
|
|
|
|
<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
|
|
|
|
@ -532,8 +532,8 @@ listUser().then(e => {
|
|
|
|
|
userList.value = e.rows;
|
|
|
|
|
})
|
|
|
|
|
/** 提交按钮 */
|
|
|
|
|
const submitForm = () => {
|
|
|
|
|
updateInstockDetail(childrenTableInfoForm.value);
|
|
|
|
|
const submitForm = async() => {
|
|
|
|
|
await updateInstockDetail(childrenTableInfoForm.value);
|
|
|
|
|
getChildrenTable({instockId: partntTableSelectCell.value.instockId});
|
|
|
|
|
childrenTableInfoVisible.value = false;
|
|
|
|
|
}
|
|
|
|
@ -549,19 +549,26 @@ const getParentTable = async () => {
|
|
|
|
|
if (e.rows.length > 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 {
|
|
|
|
|
childrenTableData.value = []
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const auditStatusLoad = ref(false)
|
|
|
|
|
// 获取子表格数据
|
|
|
|
|
const getChildrenTable = async (form) => {
|
|
|
|
|
console.log(form.auditStatus)
|
|
|
|
|
if(form.auditStatus == 1){
|
|
|
|
|
auditStatusLoad.value = true;
|
|
|
|
|
}else{
|
|
|
|
|
auditStatusLoad.value = false;
|
|
|
|
|
}
|
|
|
|
|
childrenTableLoad.value = true
|
|
|
|
|
console.log(form)
|
|
|
|
|
await listInstockDetail(form).then(e => {
|
|
|
|
|
childrenTableLoad.value = false
|
|
|
|
|
console.log(e.rows)
|
|
|
|
|
childrenTableData.value = e.rows
|
|
|
|
|
// parentTableTotal.value = e.total
|
|
|
|
|
})
|
|
|
|
@ -594,7 +601,7 @@ const reset = () => {
|
|
|
|
|
// 父表格行点击
|
|
|
|
|
const parentTableCellClick = async (e) => {
|
|
|
|
|
partntTableSelectCell.value = e
|
|
|
|
|
await getChildrenTable({instockId: e.instockId})
|
|
|
|
|
await getChildrenTable({instockId: e.instockId,auditStatus: e.auditStatus})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 表格多选
|
|
|
|
|