From 65f86f41dedbbbb7030e2f37ce3e001bbca4923a Mon Sep 17 00:00:00 2001
From: chengxiangling <291105840@qq.com>
Date: 星期四, 15 五月 2025 13:03:25 +0800
Subject: [PATCH] 查询日历带适用工厂
---
src/views/basicData/calendar/index.vue | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/src/views/basicData/calendar/index.vue b/src/views/basicData/calendar/index.vue
index 0e0d7af..9a6fd7e 100644
--- a/src/views/basicData/calendar/index.vue
+++ b/src/views/basicData/calendar/index.vue
@@ -26,7 +26,7 @@
<el-select
style="width: 140px"
clearable
- v-model="queryParams.plant"
+ v-model="queryParams.applicableFactory"
placeholder="閫傜敤宸ュ巶"
>
<el-option
@@ -642,7 +642,7 @@
pageNum: 1,
pageSize: 10,
description: null,
- plant: null,
+ applicableFactory: null,
type: null,
effectiveDate: null,
expiringDate: null,
@@ -1013,15 +1013,13 @@
console.log(response.data, "response.data");
form.value.content = JSON.parse(response.data.content.value);
weekDaysSettingList.value = response.data.content.weekdays;
-
- // else if (form.value.type === "2") {
- // holidays.value = JSON.parse(response.data.content.value).holidays;
- // }
+ form.value.applicableTranslate= applicableTranslateArr(response.data);
+ console.log(form.value.applicableTranslate,"form.value.applicableTranslate")
});
+
}
-// 璁剧疆鑺傚亣鏃�
-function handleSetHolidays(row) {
- let applicableTranslateArr = JSON.parse(row.applicableTranslate).map(
+let applicableTranslateArr = (row)=>{
+ return JSON.parse(row.applicableTranslate).map(
(item) => {
return Object.keys(item).map((n) => {
console.log(item);
@@ -1035,10 +1033,13 @@
});
}
);
+}
+// 璁剧疆鑺傚亣鏃�
+function handleSetHolidays(row) {
console.log(applicableTranslateArr, "applicableTranslateArr");
form.value = {
...row,
- applicableTranslate: applicableTranslateArr,
+ applicableTranslate: applicableTranslateArr(row),
};
if (!row.holidays) {
formHolidays.value = {
--
Gitblit v1.9.3