no message

main
暴炳林 2025-04-10 10:08:16 +08:00
parent d4d2d76893
commit 7f0d11f407
7 changed files with 49 additions and 44 deletions

View File

@ -26,9 +26,9 @@
<el-select v-model="param.propC2" multiple filterable placeholder="请选择LOC" style="width: 100%;"> <el-select v-model="param.propC2" multiple filterable placeholder="请选择LOC" style="width: 100%;">
<el-option <el-option
v-for="item in LOCS" v-for="item in LOCS"
:key="item.ID" :key="item.id"
:label="item.PROP_C2" :label="item.code"
:value="item.PROP_C2" :value="item.code"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -757,7 +757,7 @@ export default {
}, },
LOC(){ LOC(){
//LOC //LOC
this.$axios.post(this.$httpUrl + '/Rukuzhengli/LOC', { this.$axios.post(this.$httpUrl + '/Enumerate/queryLoc', {
}).then(res => res.data) }).then(res => res.data)
.then(res => { .then(res => {

View File

@ -48,9 +48,9 @@
<el-select v-model="param.PROP_C2" multiple filterable placeholder="请选择LOC" style="width: 100%;"> <el-select v-model="param.PROP_C2" multiple filterable placeholder="请选择LOC" style="width: 100%;">
<el-option <el-option
v-for="item in LOCS" v-for="item in LOCS"
:key="item.ID" :key="item.id"
:label="item.PROP_C2" :label="item.code"
:value="item.PROP_C2" :value="item.code"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -69,8 +69,8 @@
<el-form-item label="工厂"> <el-form-item label="工厂">
<el-select v-model="param.PROP_C9" multiple filterable placeholder="请选择工厂" style="width: 100%;"> <el-select v-model="param.PROP_C9" multiple filterable placeholder="请选择工厂" style="width: 100%;">
<el-option <el-option
v-for="item in GcS" v-for="item in Plant"
:key="item.index" :key="item.id"
:label="item.code" :label="item.code"
:value="item.code" :value="item.code"
> >
@ -371,6 +371,7 @@
<script> <script>
import { downloadExcel } from '@/util/excelUtils'; import { downloadExcel } from '@/util/excelUtils';
export default { export default {
// eslint-disable-next-line vue/multi-word-component-names
name: "Kucunrizhi", name: "Kucunrizhi",
data() { data() {
return { return {
@ -431,7 +432,7 @@ export default {
LP: '' LP: ''
}, },
LOCS: [], LOCS: [],
GcS: [], Plant: [],
Log: [], Log: [],
checked: false, checked: false,
} }
@ -471,7 +472,7 @@ export default {
}, },
LOC(){ LOC(){
//LOC //LOC
this.$axios.post(this.$httpUrl + '/Rukuzhengli/LOC', { this.$axios.post(this.$httpUrl + '/Enumerate/queryLoc', {
}).then(res => res.data) }).then(res => res.data)
.then(res => { .then(res => {
@ -488,12 +489,12 @@ export default {
}, },
Gc(){ Gc(){
// //
this.$axios.post(this.$httpUrl + '/Enumerate/Gc', { this.$axios.post(this.$httpUrl + '/Enumerate/queryGc', {
}).then(res => res.data) }).then(res => res.data)
.then(res => { .then(res => {
if (res.code == 200) { if (res.code == 200) {
this.GcS = res.data; this.Plant = res.data;
} else { } else {
this.$message.error('获取数据失败'); this.$message.error('获取数据失败');
} }
@ -504,7 +505,7 @@ export default {
}) })
}, },
JdbcLogType(){ JdbcLogType(){
//LOC //
this.$axios.post(this.$httpUrl + '/Enumerate/InventoryLogType', { this.$axios.post(this.$httpUrl + '/Enumerate/InventoryLogType', {
}).then(res => res.data) }).then(res => res.data)

View File

@ -27,9 +27,9 @@
<el-select v-model="param.PROP_C9" multiple filterable placeholder="请选择工厂" style="width: 100%;"> <el-select v-model="param.PROP_C9" multiple filterable placeholder="请选择工厂" style="width: 100%;">
<el-option <el-option
v-for="item in Plant" v-for="item in Plant"
:key="item.ID" :key="item.id"
:label="item.PROP_C9" :label="item.code"
:value="item.PROP_C9" :value="item.code"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -41,9 +41,9 @@
<el-select v-model="param.PROP_C2" multiple filterable placeholder="请选择LOC" style="width: 100%;"> <el-select v-model="param.PROP_C2" multiple filterable placeholder="请选择LOC" style="width: 100%;">
<el-option <el-option
v-for="item in LOCS" v-for="item in LOCS"
:key="item.ID" :key="item.id"
:label="item.PROP_C2" :label="item.code"
:value="item.PROP_C2" :value="item.code"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -499,7 +499,7 @@ export default {
}, },
LOC(){ LOC(){
//LOC //LOC
this.$axios.post(this.$httpUrl + '/Rukuzhengli/LOC', { this.$axios.post(this.$httpUrl + '/Enumerate/queryLoc', {
}).then(res => res.data) }).then(res => res.data)
.then(res => { .then(res => {
@ -516,7 +516,7 @@ export default {
}, },
PlantS(){ PlantS(){
// //
this.$axios.post(this.$httpUrl + '/Rukuzhengli/Plant', { this.$axios.post(this.$httpUrl + '/Enumerate/queryGc', {
}).then(res => res.data) }).then(res => res.data)
.then(res => { .then(res => {

View File

@ -66,9 +66,9 @@
<el-select v-model="param.PROP_C2" multiple filterable placeholder="请选择LOC" style="width: 100%;"> <el-select v-model="param.PROP_C2" multiple filterable placeholder="请选择LOC" style="width: 100%;">
<el-option <el-option
v-for="item in Loc" v-for="item in Loc"
:key="item.ID" :key="item.id"
:label="item.PROP_C2" :label="item.code"
:value="item.PROP_C2" :value="item.code"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -80,9 +80,9 @@
<el-select v-model="param.PROP_C9" multiple filterable placeholder="请选择工厂" style="width: 100%;"> <el-select v-model="param.PROP_C9" multiple filterable placeholder="请选择工厂" style="width: 100%;">
<el-option <el-option
v-for="item in Plant" v-for="item in Plant"
:key="item.ID" :key="item.id"
:label="item.PROP_C9" :label="item.code"
:value="item.PROP_C9" :value="item.code"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -522,7 +522,7 @@ export default {
}, },
PlantS(){ PlantS(){
// //
this.$axios.post(this.$httpUrl + '/Zhengliqingdan/ZPlant', { this.$axios.post(this.$httpUrl + '/Enumerate/queryGc', {
}).then(res => res.data) }).then(res => res.data)
.then(res => { .then(res => {
if (res.code == 200) { if (res.code == 200) {
@ -538,7 +538,7 @@ export default {
}, },
LocS(){ LocS(){
// //
this.$axios.post(this.$httpUrl + '/Zhengliqingdan/ZLOC', { this.$axios.post(this.$httpUrl + '/Enumerate/queryLoc', {
}).then(res => res.data) }).then(res => res.data)
.then(res => { .then(res => {
if (res.code == 200) { if (res.code == 200) {

View File

@ -60,9 +60,9 @@
<el-select v-model="param.PROP_C2" multiple filterable placeholder="请选择LOC" style="width: 100%;"> <el-select v-model="param.PROP_C2" multiple filterable placeholder="请选择LOC" style="width: 100%;">
<el-option <el-option
v-for="item in loc" v-for="item in loc"
:key="item.ID" :key="item.id"
:label="item.PROP_C2" :label="item.code"
:value="item.PROP_C2" :value="item.code"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -80,9 +80,9 @@
<el-select v-model="param.PROP_C9" multiple filterable placeholder="请选择工厂" style="width: 100%;"> <el-select v-model="param.PROP_C9" multiple filterable placeholder="请选择工厂" style="width: 100%;">
<el-option <el-option
v-for="item in plant" v-for="item in plant"
:key="item.ID" :key="item.id"
:label="item.PROP_C9" :label="item.code"
:value="item.PROP_C9" :value="item.code"
> >
</el-option> </el-option>
</el-select> </el-select>
@ -650,7 +650,7 @@ export default {
}, },
Plant(){ Plant(){
// //
this.$axios.post(this.$httpUrl + '/Zhengliqingdan/ZPlant', { this.$axios.post(this.$httpUrl + '/Enumerate/queryGc', {
}).then(res => res.data) }).then(res => res.data)
.then(res => { .then(res => {
if (res.code == 200) { if (res.code == 200) {
@ -666,7 +666,7 @@ export default {
}, },
Loc(){ Loc(){
// //
this.$axios.post(this.$httpUrl + '/Zhengliqingdan/ZLOC', { this.$axios.post(this.$httpUrl + '/Enumerate/queryLoc', {
}).then(res => res.data) }).then(res => res.data)
.then(res => { .then(res => {
if (res.code == 200) { if (res.code == 200) {

View File

@ -20,12 +20,16 @@ public class EnumerateController {
@Autowired @Autowired
private JdbcQueryExample jdbcQueryExample; private JdbcQueryExample jdbcQueryExample;
/* 工厂*/ /* 工厂*/
@PostMapping("/Gc") @PostMapping("/queryGc")
public Result Gc() { public Result Gc() {
String sql = " SELECT " String sql = "select id,code from Plant_Info;";
+" commonCode.code, " List<Map<String, Object>> mapList = jdbcQueryExample.sqlQuery(sql);
+" commonCode.name From COMMON_CODE commonCode " return Result.success(mapList);
+" where commonCode.code_Type = '工厂' "; }
/* Loc*/
@PostMapping("/queryLoc")
public Result Loc() {
String sql = " select id,code from Plant_Location;";
List<Map<String, Object>> mapList = jdbcQueryExample.sqlQuery(sql); List<Map<String, Object>> mapList = jdbcQueryExample.sqlQuery(sql);
return Result.success(mapList); return Result.success(mapList);
} }

View File

@ -54,7 +54,7 @@ public class ZhengliqingdanController {
} }
//库区填充 //库区填充
@PostMapping("ZZONE") @PostMapping("/ZZONE")
public Result ZONE() { public Result ZONE() {
return zhengliqingdan.ZONE(); return zhengliqingdan.ZONE();
} }