From 9feea2f82cb21abf58643dcffd875b1ed6f1162b Mon Sep 17 00:00:00 2001 From: maven <2163098428@qq.com> Date: 星期二, 08 七月 2025 11:06:41 +0800 Subject: [PATCH] yys 1.新增入库查询 2.新增入库 3.入库分页查询 4.编辑 --- src/views/inventoryManagement/issueManagement/index.vue | 56 ++++++++++++++++---------------------------------------- 1 files changed, 16 insertions(+), 40 deletions(-) diff --git a/src/views/inventoryManagement/issueManagement/index.vue b/src/views/inventoryManagement/issueManagement/index.vue index 2a5bb51..7ed1f68 100644 --- a/src/views/inventoryManagement/issueManagement/index.vue +++ b/src/views/inventoryManagement/issueManagement/index.vue @@ -10,7 +10,7 @@ <div> <!-- <el-button type="primary" @click="openForm('add')">鏂板鍑哄簱</el-button> --> <el-button @click="handleOut">瀵煎嚭</el-button> - <el-button type="danger" plain @click="handleDelete">鍒犻櫎</el-button> + <!-- <el-button type="danger" plain @click="handleDelete">鍒犻櫎</el-button> --> </div> </div> <div class="table_list"> @@ -25,15 +25,15 @@ <el-table-column label="浜у搧澶х被" prop="productName" width="100" show-overflow-tooltip /> <el-table-column label="瑙勬牸鍨嬪彿" prop="model" width="160" show-overflow-tooltip /> <el-table-column label="鍗曚綅" prop="unit" width="70" show-overflow-tooltip /> - <el-table-column label="鍏ュ簱鏁伴噺" prop="inboundQuantity" width="90" show-overflow-tooltip /> + <el-table-column label="鍏ュ簱鏁伴噺" prop="stockQuantity" width="90" show-overflow-tooltip /> <el-table-column label="鍚◣鍗曚环" prop="taxInclusiveUnitPrice" width="100" show-overflow-tooltip /> <el-table-column label="鍚◣鎬讳环" prop="taxInclusiveTotalPrice" width="100" show-overflow-tooltip /> <el-table-column label="绋庣巼(%)" prop="taxRate" width="80" show-overflow-tooltip /> <el-table-column label="涓嶅惈绋庢�讳环" prop="taxExclusiveTotalPrice" width="100" show-overflow-tooltip /> - <el-table-column label="鍏ュ簱浜�" prop="nickname" width="80" show-overflow-tooltip /> + <el-table-column label="鍏ュ簱浜�" prop="nickName" width="80" show-overflow-tooltip /> <el-table-column fixed="right" label="鎿嶄綔" min-width="60" align="center"> <template #default="scope"> - <el-button link type="primary" size="small" @click="openForm(scope.row);">鍑哄簱</el-button> + <el-button link type="primary" size="small" @click="openForm(scope.row);">棰嗙敤</el-button> </template> </el-table-column> </el-table> @@ -72,24 +72,16 @@ import useUserStore from '@/store/modules/user' import { userListNoPage } from "@/api/system/user.js"; import { - ledgerListPage, - customerList, - addOrUpdateSalesLedger, - getSalesLedgerWithProducts, delLedger -} from "@/api/salesManagement/salesLedger.js"; -import { getStockManagePage, delStockManage, - stockOut + stockOut, } from "@/api/inventoryManagement/stockManage.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 page = reactive({ current: 1, @@ -103,34 +95,17 @@ const data = reactive({ searchForm: { supplierName: '', + inboundQuantity:'', + inboundTime:'', + nickName: '', + userId: '', }, form: { - supplierId: null, - productId: null, - userId: null, - supplierName: '', - productName: '', - model: '', - unit: '', - inboundTime: '', - inboundBatch: '', - inboundQuantity: '', - taxInclusiveUnitPrice: '', - taxInclusiveTotalPrice: '', - taxRate: '', - taxExclusiveTotalPrice: '', - nickName: '', + productrecordId: '', }, rules: { - supplierName: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }], - productCategory: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }], - specificationModel: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }], - unit: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }], inboundTime: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }], - inboundBatch: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }], inboundQuantity: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }], - taxInclusiveUnitPrice: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }], - taxRate: [{ required: true, message: "璇疯緭鍏�", trigger: "blur" }], nickname: [{ required: true, message: "璇烽�夋嫨", trigger: "change" }] } }) @@ -157,6 +132,7 @@ tableLoading.value = false }) } + const findNodeById = (nodes, productId) => { for (let i = 0; i < nodes.length; i++) { if (nodes[i].value === productId) { @@ -173,7 +149,6 @@ }; // 琛ㄦ牸閫夋嫨鏁版嵁 const handleSelectionChange = (selection) => { - // 杩囨护鎺夊瓙鏁版嵁 selectedRows.value = selection.filter(item => item.id); console.log('selection', selectedRows.value) @@ -193,12 +168,12 @@ form.value = {} // 鍒濆鍖栬〃鍗曟暟鎹� form.value = { + productrecordId: '', inboundQuantity: '', // 鍑哄簱鏁伴噺娓呯┖ inboundTime: getCurrentDate(), // 榛樿褰撳墠鏃ユ湡 nickName: '', // 榛樿褰撳墠鐢ㄦ埛 } console.log('form',form.value) - // 鍔犺浇鐢ㄦ埛鍒楄〃 try { const userLists = await userListNoPage() @@ -214,10 +189,11 @@ if (valid && currentRowId.value) { const outData = { id: currentRowId.value, // 鍘熷璁板綍ID - outQuantity: form.value.inboundQuantity, // 鍑哄簱鏁伴噺 - outTime: form.value.inboundTime, // 鍑哄簱鏃堕棿 + Quantity: form.value.inboundQuantity, // 鍑哄簱鏁伴噺 + Time: form.value.inboundTime, // 鍑哄簱鏃堕棿 userId: form.value.userId // 鎿嶄綔浜� } + console.log(outData) stockOut(outData).then(res => { proxy.$modal.msgSuccess("鎻愪氦鎴愬姛") @@ -238,7 +214,7 @@ // 瀵煎嚭 const handleOut = () => { ElMessageBox.confirm( - '閫変腑鐨勫唴瀹瑰皢琚鍑猴紝鏄惁纭瀵煎嚭锛�', + '鏄惁纭瀵煎嚭锛�', '瀵煎嚭', { confirmButtonText: '纭', cancelButtonText: '鍙栨秷', -- Gitblit v1.9.3