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-option
v-for="item in LOCS"
:key="item.ID"
:label="item.PROP_C2"
:value="item.PROP_C2"
:key="item.id"
:label="item.code"
:value="item.code"
>
</el-option>
</el-select>
@ -757,7 +757,7 @@ export default {
},
LOC(){
//LOC
this.$axios.post(this.$httpUrl + '/Rukuzhengli/LOC', {
this.$axios.post(this.$httpUrl + '/Enumerate/queryLoc', {
}).then(res => res.data)
.then(res => {

View File

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

View File

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

View File

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

View File

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

View File

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