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 02794353ed8974f6471257a85a1e8b3e4ce3deae..ff9192e29eadf4c235739243ee0001371d998d27 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 0c57de2aad9ee533046b71c08b56943be304d867..0000000000000000000000000000000000000000 --- 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 3c6d1443abd0b4bf8c0202a21310e39dc0ef430f..e344afe59a273ed675657ed9ec37def9b43edc12 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 @@ - - + + + +