桶编号下拉修改

master
mhsnet 3 months ago
parent 50261279e2
commit fa2745ae95

@ -341,6 +341,21 @@ public class RecycleDeviceController {
List<CompanyEntity> list = companyService.list(lambda);
return ActionResult.success(list);
}
//获取桶列表
@PostMapping("/getBucketList")
@Operation(summary = "获取桶清单下拉框")
public ActionResult getBucketList() {
UserInfo userInfo = userProvider.get();
Boolean isAdministrator = userInfo.getIsAdministrator();
String organizeId = userInfo.getOrganizeId();
QueryWrapper<RecycleBucketEntity> wrapper = new QueryWrapper<>();
LambdaQueryWrapper<RecycleBucketEntity> lambda = wrapper.lambda();
if (!isAdministrator) {
lambda.eq(RecycleBucketEntity::getCompanyId, organizeId);
}
List<RecycleBucketEntity> list = recycleBucketService.list(lambda);
return ActionResult.success(list);
}
//获取设备信息
@PostMapping("/getControlAuth")

@ -231,6 +231,13 @@ export function getDeviceListOption() {
method: "POST"
});
}
// 获取桶设备列表
export function getBucketList() {
return request({
url: `/api/scm/RecycleDevice/getBucketList`,
method: "POST"
});
}
// 获取设备信息
export function getDeviceListInfo(query) {
// let query = {

@ -395,6 +395,7 @@ import {
getLaterTime
} from "@/components/Generator/utils/index.js";
import { thousandsFormat } from "@/components/Generator/utils/index";
import { getBucketList } from "@/api/device";
export default {
components: {},
props: [],
@ -661,8 +662,8 @@ export default {
doorNumProps: { label: "fullName", value: "id" },
bucketCodeOptions: [],
bucketCodeProps: {
label: "show_name",
value: "bucket_code",
label: "showName",
value: "bucketCode",
children: "children"
}
};
@ -786,11 +787,15 @@ export default {
let template = {
paramList: templateJsonList
};
getDataInterfaceRes("565524506681020549", template).then(res => {
let data = res.data;
this.bucketCodeOptions = data;
getBucketList().then(res => {
this.bucketCodeOptions = res.data;
this.changeDataFormData(1, "bucketCode", "bucketCode", index, []);
});
// getDataInterfaceRes("565524506681020549", template).then(res => {
// let data = res.data;
// this.bucketCodeOptions = data;
// this.changeDataFormData(1, "bucketCode", "bucketCode", index, []);
// });
},
getproductCodeOptions() {
const index = this.childIndex;

Loading…
Cancel
Save