From 43f105070cf75a057d1d0ce4ff330c3b19a21ab0 Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期六, 12 七月 2025 13:45:52 +0800 Subject: [PATCH] 1.付款登记-优化:删除权限优化 --- src/views/inventoryManagement/dispatchLog/index.vue | 61 ++++++------------------------ 1 files changed, 13 insertions(+), 48 deletions(-) diff --git a/src/views/inventoryManagement/dispatchLog/index.vue b/src/views/inventoryManagement/dispatchLog/index.vue index 1e56a3d..e523430 100644 --- a/src/views/inventoryManagement/dispatchLog/index.vue +++ b/src/views/inventoryManagement/dispatchLog/index.vue @@ -38,14 +38,14 @@ <el-table-column align="center" label="搴忓彿" type="index" width="60" /> <el-table-column label="鍑哄簱鏃ユ湡" - prop="inboundTime" - width="100" + prop="createTime" + min-width="250" show-overflow-tooltip /> <el-table-column label="渚涘簲鍟嗗悕绉�" prop="supplierName" - width="160" + width="250" show-overflow-tooltip /> <el-table-column @@ -68,46 +68,37 @@ /> <el-table-column label="鍑哄簱鏁伴噺" - prop="inboundQuantity" + prop="inboundNum" width="100" show-overflow-tooltip /> <el-table-column - label="鍚◣鍗曚环" - prop="taxInclusiveUnitPrice" label="鍚◣鍗曚环(鍏�)" - prop="entryDate" + prop="taxInclusiveUnitPrice" width="100" show-overflow-tooltip /> <el-table-column - label="鍚◣鎬讳环" - prop="taxInclusiveTotalPrice" label="鍚◣鎬讳环(鍏�)" - prop="executionDate" + prop="taxInclusiveTotalPrice" width="100" show-overflow-tooltip /> <el-table-column - label="绋庣巼" - prop="taxRate" label="绋庣巼(%)" - prop="executionDate" + prop="taxRate" width="100" show-overflow-tooltip /> <el-table-column - label="涓嶅惈绋庢�讳环" - prop="taxExclusiveTotalPrice" - width="100" label="涓嶅惈绋庢�讳环(鍏�)" - prop="executionDate" + prop="taxExclusiveTotalPrice" width="180" show-overflow-tooltip /> <el-table-column label="鍑哄簱浜�" - prop="nickname" + prop="createBy" width="80" show-overflow-tooltip /> @@ -148,24 +139,16 @@ import { userListNoPage } from "@/api/system/user.js"; import { getStockOutPage, - addStockOut, - updateStockOut, delStockOut, - exportStockOut, - getStockManageById } from "@/api/inventoryManagement/stockOut.js"; const userStore = useUserStore(); const { proxy } = getCurrentInstance(); const tableData = ref([]); -// const productData = ref([]); const selectedRows = ref([]); const userList = ref([]); -// const customerOption = ref([]); const tableLoading = ref(false); -const supplierList = ref([]) const productList = ref([]) -const productModelList = ref([]) const page = reactive({ current: 1, size: 100, @@ -199,12 +182,6 @@ inboundBatch: '', inboundQuantity: '' }, - rules: { - supplierId: [{ required: true, message: '璇烽�夋嫨渚涘簲鍟�', trigger: 'change' }], - productRecordid: [{ required: true, message: '璇烽�夋嫨浜у搧', trigger: 'change' }], - inboundTime: [{ required: true, message: '璇烽�夋嫨鍏ュ簱鏃堕棿', trigger: 'change' }], - inboundQuantity: [{ required: true, message: '璇疯緭鍏ュ叆搴撴暟閲�', trigger: 'blur' }] - }, }); const { searchForm } = toRefs(data); @@ -234,20 +211,7 @@ tableLoading.value = false; }); }; -// const findNodeById = (nodes, productId) => { -// for (let i = 0; i < nodes.length; i++) { -// if (nodes[i].value === productId) { -// return nodes[i].label; // 鎵惧埌鑺傜偣锛岃繑鍥炶鑺傜偣 -// } -// if (nodes[i].children && nodes[i].children.length > 0) { -// const foundNode = findNodeById(nodes[i].children, productId); -// if (foundNode) { -// return foundNode.label; // 鍦ㄥ瓙鑺傜偣涓壘鍒帮紝杩斿洖璇ヨ妭鐐� -// } -// } -// } -// return null; // 娌℃湁鎵惧埌鑺傜偣锛岃繑鍥瀗ull -// }; + // 琛ㄦ牸閫夋嫨鏁版嵁 const handleSelectionChange = (selection) => { // 杩囨护鎺夊瓙鏁版嵁 @@ -267,7 +231,7 @@ // 瀵煎嚭 const handleOut = () => { - ElMessageBox.confirm("閫変腑鐨勫唴瀹瑰皢琚鍑猴紝鏄惁纭瀵煎嚭锛�", "瀵煎嚭", { + ElMessageBox.confirm("鏄惁纭瀵煎嚭锛�", "瀵煎嚭", { confirmButtonText: "纭", cancelButtonText: "鍙栨秷", type: "warning", @@ -279,6 +243,7 @@ proxy.$modal.msg("宸插彇娑�"); }); }; + // 鍒犻櫎 const handleDelete = () => { let ids = []; @@ -294,7 +259,7 @@ type: "warning", }) .then(() => { - delStockOut(ids).then((res) => { + delStockOut({ids:ids}).then((res) => { proxy.$modal.msgSuccess("鍒犻櫎鎴愬姛"); getList(); }); -- Gitblit v1.9.3