From 0135a47ba09597918b3422fa12a79904359b0051 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=B8=85?= Date: Sat, 9 Aug 2025 14:53:08 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ErpWarehouseServiceImpl.java | 6 +- maintain-ui/build/index.js | 35 ------ .../views/business/materialPicking/add.vue | 107 ++++++++++-------- .../business/materialPickingInfo/index.vue | 77 ++++++++----- .../src/views/business/repairForm/info.vue | 8 +- maintain-ui/src/views/business/user/index.vue | 2 +- 6 files changed, 119 insertions(+), 116 deletions(-) delete mode 100644 maintain-ui/build/index.js diff --git a/maintain-business/src/main/java/com/maintain/business/service/impl/ErpWarehouseServiceImpl.java b/maintain-business/src/main/java/com/maintain/business/service/impl/ErpWarehouseServiceImpl.java index 0279435..ff9192e 100644 --- a/maintain-business/src/main/java/com/maintain/business/service/impl/ErpWarehouseServiceImpl.java +++ b/maintain-business/src/main/java/com/maintain/business/service/impl/ErpWarehouseServiceImpl.java @@ -59,7 +59,11 @@ public class ErpWarehouseServiceImpl implements IErpWarehouseService { */ @Override public List queryList(ErpWarehouseBo bo) { - LambdaQueryWrapper lqw = buildQueryWrapper(bo); + LambdaQueryWrapper lqw = Wrappers.lambdaQuery(); + if (bo.getDeptId() != null) { + List deptList = deptMapper.selectChildrenDeptById(bo.getDeptId(), null); + lqw.in(ErpWarehouse::getDeptId, deptList.stream().map(SysDept::getDeptId).collect(Collectors.toList())); + } return baseMapper.selectVoList(lqw); } diff --git a/maintain-ui/build/index.js b/maintain-ui/build/index.js deleted file mode 100644 index 0c57de2..0000000 --- a/maintain-ui/build/index.js +++ /dev/null @@ -1,35 +0,0 @@ -const { run } = require('runjs') -const chalk = require('chalk') -const config = require('../vue.config.js') -const rawArgv = process.argv.slice(2) -const args = rawArgv.join(' ') - -if (process.env.npm_config_preview || rawArgv.includes('--preview')) { - const report = rawArgv.includes('--report') - - run(`vue-cli-service build ${args}`) - - const port = 9526 - const publicPath = config.publicPath - - var connect = require('connect') - var serveStatic = require('serve-static') - const app = connect() - - app.use( - publicPath, - serveStatic('./dist', { - index: ['index.html', '/'] - }) - ) - - app.listen(port, function () { - console.log(chalk.green(`> Preview at http://localhost:${port}${publicPath}`)) - if (report) { - console.log(chalk.green(`> Report at http://localhost:${port}${publicPath}report.html`)) - } - - }) -} else { - run(`vue-cli-service build ${args}`) -} diff --git a/maintain-ui/src/views/business/materialPicking/add.vue b/maintain-ui/src/views/business/materialPicking/add.vue index 3c6d144..e344afe 100644 --- a/maintain-ui/src/views/business/materialPicking/add.vue +++ b/maintain-ui/src/views/business/materialPicking/add.vue @@ -3,11 +3,6 @@
- - - - - - - + + + + + + + @@ -32,8 +32,10 @@ - - + + + + @@ -52,6 +54,13 @@ + + + + + + + @@ -106,13 +115,10 @@ - - + + + +