|
@@ -55,6 +55,7 @@ import byTable from "/src/components/byTable/index";
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
const activeName = ref("first");
|
|
|
const departmentList = ref([{ dictKey: "0", dictValue: "胜德体育" }]);
|
|
|
+const warehouseList = ref([]);
|
|
|
const status = ref([
|
|
|
{ dictKey: "0", dictValue: "正常" },
|
|
|
{ dictKey: "1", dictValue: "异常" },
|
|
@@ -98,8 +99,9 @@ const searchConfig = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
|
- prop: "warehouseName",
|
|
|
- label: "仓库名称",
|
|
|
+ prop: "warehouseId",
|
|
|
+ data: warehouseList.value,
|
|
|
+ label: "仓库",
|
|
|
},
|
|
|
{
|
|
|
type: "select",
|
|
@@ -134,8 +136,9 @@ const searchConfigTwo = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
|
- prop: "warehouseName",
|
|
|
- label: "仓库名称",
|
|
|
+ prop: "warehouseId",
|
|
|
+ data: warehouseList.value,
|
|
|
+ label: "仓库",
|
|
|
},
|
|
|
{
|
|
|
type: "select",
|
|
@@ -349,6 +352,16 @@ const getDemandData = () => {
|
|
|
);
|
|
|
}
|
|
|
});
|
|
|
+ proxy.post("/warehouse/page", { pageNum: 1, pageSize: 999 }).then((res) => {
|
|
|
+ if (res.rows && res.rows.length > 0) {
|
|
|
+ warehouseList.value = res.rows.map((item) => {
|
|
|
+ return {
|
|
|
+ dictKey: item.id,
|
|
|
+ dictValue: item.name,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
};
|
|
|
getDemandData();
|
|
|
const clickModal = () => {
|