| src/api/inventoryManagement/stockIn.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/api/inventoryManagement/stockManage.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/inventoryManagement/dispatchLog/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/inventoryManagement/issueManagement/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/inventoryManagement/receiptManagement/components/formDiaManual.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/inventoryManagement/receiptManagement/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/views/inventoryManagement/stockManagement/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/api/inventoryManagement/stockIn.js
@@ -18,10 +18,18 @@ }); }; // 出库台账-查询手动入库信息列表 // 出库台账-查询自定义入库信息列表 export const getStockInPageByCustom = (params) => { return request({ url: "/stockmanagement/listPageByCustom", method: "get", params, }); }; // 入库管理-查询自定义入库信息列表 export const getInPageByCustom = (params) => { return request({ url: "/stockin/listPageByCustom", method: "get", params, }); @@ -63,7 +71,7 @@ }) } // 新增手动入库信息 // 新增自定义入库信息 export function addStockInCustom(data) { return request({ url: '/stockin/addCustom', @@ -72,7 +80,7 @@ }) } // 编辑手动入库信息 // 编辑自定义入库信息 export function updateStockInCustom(data) { return request({ url: '/stockin/updateCustom', @@ -90,7 +98,7 @@ }) } // 删除手动入库信息 // 删除自定义入库信息 export function delStockInCustom(ids) { return request({ url: '/stockin/delteCustom', src/api/inventoryManagement/stockManage.js
@@ -18,7 +18,7 @@ }); }; // 查询手动入库库存信息列表 // 查询自定义入库库存信息列表 export const getStockManagePageByCustom = (params) => { return request({ url: "/stockin/listPageCopyByCustom", src/views/inventoryManagement/dispatchLog/index.vue
@@ -135,7 +135,7 @@ </div> </el-tab-pane> <el-tab-pane label="手动出库" name="manual"> <el-tab-pane label="自定义出库" name="manual"> <div class="search_form"> <div> <span class="search_title">供应商名称:</span> @@ -564,7 +564,14 @@ type: "warning", }) .then(() => { proxy.download("/stockmanagement/export", {}, "出库台账.xlsx"); // 根据不同的 tab 类型调用不同的导出接口 let exportUrl = "/stockmanagement/export" if (activeTab.value === 'production') { exportUrl = "/stockmanagement/exportone" } else if (activeTab.value === 'manual') { exportUrl = "/stockmanagement/exportTwo" } proxy.download(exportUrl, {}, "出库台账.xlsx"); }) .catch(() => { proxy.$modal.msg("已取消"); src/views/inventoryManagement/issueManagement/index.vue
@@ -102,7 +102,7 @@ </div> </el-tab-pane> <el-tab-pane label="手动出库" name="manual"> <el-tab-pane label="自定义出库" name="manual"> <div class="search_form"> <div> <span class="search_title">供应商名称:</span> @@ -188,7 +188,7 @@ import { getStockInPage, getStockInPageByProduction, getStockInPageByCustom getStockInPageByCustom, getInPageByCustom } from "@/api/inventoryManagement/stockIn.js"; import { getStockManagePage, @@ -258,7 +258,7 @@ if (activeTab.value === 'production') { apiCall = getStockInPageByProduction(params) } else if (activeTab.value === 'manual') { apiCall = getStockInPageByCustom(params) apiCall = getInPageByCustom(params) } else { apiCall = getStockInPage(params) } @@ -350,7 +350,7 @@ quantity: form.value.inboundQuantity, // 出库数量 time: form.value.inboundTime, // 出库时间 userId: form.value.nickName, // 操作人 type: typeMap[activeTab.value] // 出库类型:采购1,生产2,手动3 type: typeMap[activeTab.value] // 出库类型:采购1,生产2,自定义3 } console.log(outData) @@ -380,7 +380,14 @@ type: 'warning', } ).then(() => { proxy.download("/stockin/export", {}, '入库台账.xlsx') // 根据不同的 tab 类型调用不同的导出接口 let exportUrl = "/stockin/export" if (activeTab.value === 'production') { exportUrl = "/stockin/exportOne" } else if (activeTab.value === 'manual') { exportUrl = "/stockin/exportTwo" } proxy.download(exportUrl, {}, '入库台账.xlsx') }).catch(() => { proxy.$modal.msg("已取消") }) src/views/inventoryManagement/receiptManagement/components/formDiaManual.vue
@@ -1,5 +1,5 @@ <template> <el-dialog v-model="dialogFormVisible" :title="operationType === 'add' ? '新增手动入库' : '编辑手动入库'" width="70%" <el-dialog v-model="dialogFormVisible" :title="operationType === 'add' ? '新增自定义入库' : '编辑自定义入库'" width="70%" @close="closeDia"> <el-form :model="form" label-width="140px" label-position="top" :rules="rules" ref="formRef"> <div style="margin-bottom: 10px;" v-if="operationType === 'add'"> @@ -235,7 +235,7 @@ return } // 验证手动添加的数据必填字段 // 验证自定义添加的数据必填字段 for (let i = 0; i < productList.value.length; i++) { const product = productList.value[i]; if (!product.productCategory || !product.specificationModel || !product.unit) { @@ -279,7 +279,7 @@ await addStockInCustom(payloadList) } proxy.$modal.msgSuccess(operationType.value === 'edit' ? '编辑手动入库成功' : '新增手动入库成功') proxy.$modal.msgSuccess(operationType.value === 'edit' ? '编辑自定义入库成功' : '新增自定义入库成功') closeDia() emit('success') src/views/inventoryManagement/receiptManagement/index.vue
@@ -99,7 +99,7 @@ </div> </el-tab-pane> <el-tab-pane label="手动入库" name="manual"> <el-tab-pane label="自定义入库" name="manual"> <div class="search_form"> <div> <span class="search_title">供应商名称:</span> @@ -169,7 +169,7 @@ getStockInPageByProduction, getStockInPageByCustom, delStockIn, delStockInCustom, delStockInCustom, getInPageByCustom, } from "@/api/inventoryManagement/stockIn.js"; import FormDia from './components/formDia.vue' import FormDiaManual from './components/formDiaManual.vue' @@ -226,7 +226,7 @@ const apiCall = activeTab.value === 'production' ? getStockInPageByProduction(params) : activeTab.value === 'manual' ? getStockInPageByCustom(params) ? getInPageByCustom(params) : getStockInPage(params) apiCall.then(res => { @@ -279,7 +279,14 @@ cancelButtonText: '取消', type: 'warning', }).then(() => { proxy.download("/stockin/export", {}, '入库台账.xlsx') // 根据不同的 tab 类型调用不同的导出接口 let exportUrl = "/stockin/export" if (activeTab.value === 'production') { exportUrl = "/stockin/exportOne" } else if (activeTab.value === 'manual') { exportUrl = "/stockin/exportTwo" } proxy.download(exportUrl, {}, '入库台账.xlsx') }).catch(() => { proxy.$modal.msg("已取消") }) src/views/inventoryManagement/stockManagement/index.vue
@@ -36,7 +36,9 @@ <el-table-column label="产品大类" prop="productCategory" width="100" show-overflow-tooltip /> <el-table-column label="规格型号" prop="specificationModel" width="200" show-overflow-tooltip /> <el-table-column label="单位" prop="unit" width="80" show-overflow-tooltip /> <el-table-column label="库存数量" prop="inboundNum0" width="100" show-overflow-tooltip /> <el-table-column label="库存数量" prop="inboundNum" width="100" show-overflow-tooltip /> <el-table-column label="已出库数量" prop="totalInboundNum" width="100" show-overflow-tooltip /> <el-table-column label="待出库数量" prop="inboundNum0" width="100" 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="100" show-overflow-tooltip /> @@ -88,7 +90,9 @@ <el-table-column label="产品大类" prop="productCategory" width="100" show-overflow-tooltip /> <el-table-column label="规格型号" prop="specificationModel" width="200" show-overflow-tooltip /> <el-table-column label="单位" prop="unit" width="80" show-overflow-tooltip /> <el-table-column label="库存数量" prop="inboundNum0" width="100" show-overflow-tooltip /> <el-table-column label="库存数量" prop="inboundNum" width="100" show-overflow-tooltip /> <el-table-column label="已出库数量" prop="totalInboundNum" width="100" show-overflow-tooltip /> <el-table-column label="待出库数量" prop="inboundNum0" width="100" show-overflow-tooltip /> <el-table-column label="库存预警数量" prop="warnNum" width="130" 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 /> @@ -106,7 +110,7 @@ </div> </el-tab-pane> <el-tab-pane label="手动入库" name="manual"> <el-tab-pane label="自定义入库" name="manual"> <div class="search_form"> <div> <span class="search_title">供应商名称:</span> @@ -143,6 +147,8 @@ <el-table-column label="单位" prop="unit" width="80" show-overflow-tooltip /> <el-table-column label="物品类型" prop="itemType" width="120" show-overflow-tooltip /> <el-table-column label="库存数量" prop="inboundNum" width="100" show-overflow-tooltip /> <el-table-column label="已出库数量" prop="totalInboundNum" width="100" show-overflow-tooltip /> <el-table-column label="待出库数量" prop="inboundNum0" width="100" 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="100" show-overflow-tooltip /> @@ -502,7 +508,14 @@ } ).then(() => { const exportParams = buildQueryParams() proxy.download("/stockin/exportCopy", exportParams, '库存信息.xlsx') // 根据不同的 tab 类型调用不同的导出接口 let exportUrl = "/stockin/exportCopy" if (activeTab.value === 'production') { exportUrl = "/stockin/exportCopyOne" } else if (activeTab.value === 'manual') { exportUrl = "/stockin/exportCopyTwo" } proxy.download(exportUrl, exportParams, '库存信息.xlsx') }).catch(() => { proxy.$modal.msg("已取消") })