|
@@ -93,7 +93,7 @@ import useTagsViewStore from "/src/store/modules/tagsView";
|
|
|
import SelectInventory from "/src/views/production/warehouse/inventory/index";
|
|
|
|
|
|
const { proxy } = getCurrentInstance();
|
|
|
-const departmentList = ref([{ dictKey: "0", dictValue: "胜德体育" }]);
|
|
|
+const departmentList = ref([]);
|
|
|
const warehouseList = ref([]);
|
|
|
const router = useRouter();
|
|
|
const submit = ref(null);
|
|
@@ -146,14 +146,12 @@ const rules = ref({
|
|
|
const getDemandData = () => {
|
|
|
proxy.post("/department/page", { pageNum: 1, pageSize: 999 }).then((res) => {
|
|
|
if (res.rows && res.rows.length > 0) {
|
|
|
- departmentList.value = departmentList.value.concat(
|
|
|
- res.rows.map((item) => {
|
|
|
- return {
|
|
|
- dictKey: item.id,
|
|
|
- dictValue: item.name,
|
|
|
- };
|
|
|
- })
|
|
|
- );
|
|
|
+ departmentList.value = res.rows.map((item) => {
|
|
|
+ return {
|
|
|
+ dictKey: item.id,
|
|
|
+ dictValue: item.name,
|
|
|
+ };
|
|
|
+ });
|
|
|
}
|
|
|
});
|
|
|
proxy.post("/warehouse/page", { pageNum: 1, pageSize: 999 }).then((res) => {
|