From 250440c9c8684d79f10fb659b8f25188abdb30a9 Mon Sep 17 00:00:00 2001
From: CD配唱片 <CD配唱片>
Date: 星期一, 28 四月 2025 19:21:30 +0800
Subject: [PATCH] 修改条件

---
 src/views/mainPlan/gasPlanning/index.vue       |   82 ++++++++++++++++++++---------------------
 src/views/mainPlan/gasProduceStatics/index.vue |    2 +
 2 files changed, 42 insertions(+), 42 deletions(-)

diff --git a/src/views/mainPlan/gasPlanning/index.vue b/src/views/mainPlan/gasPlanning/index.vue
index 8973d2d..62fa389 100644
--- a/src/views/mainPlan/gasPlanning/index.vue
+++ b/src/views/mainPlan/gasPlanning/index.vue
@@ -642,7 +642,7 @@
   const $table = tableRef.value;
   if ($table) {
     $table.clearEdit().then(() => {
-      // loading.value = true
+      loading.value = true
       // setTimeout(() => {
       //   loading.value = false
       //   VxeUI.modal.message({ content: `淇濆瓨鎴愬姛锛乶ame=${row.name}`, status: 'success' })
@@ -715,12 +715,12 @@
 //   }
 // };
 async function getRouteList(year, month) {
+  loading.value = true;
   const res = await listGasPlan({
     major: "绠¤矾",
     year,
     month,
   });
-  console.log(res.rows, "getList");
   routePlanList.value = res.rows;
   routePlanList.value = routePlanList.value.map((item, index) => {
     return {
@@ -746,6 +746,7 @@
   loading.value = false;
 }
 async function getGasList(year, month) {
+  loading2.value = true;
   const res = await listGasPlan({
     major: "姘旀煖",
     year,
@@ -786,7 +787,6 @@
 //   row.monthProduceAllNum = row.dayProduceAllNum * row.days;
 // }
 function cellClickEvent(e, row) {
-  console.log(row,"cellClickEvent")
   if(row.dayProduceType==="1"){
     row.dayProduceAllNum = row.dayProduceNum * row.personnelNumber;
   }else{
@@ -850,47 +850,45 @@
     message: "鏁版嵁淇濆瓨鎴愬姛",
     type: "success",
   });
+  loading.value = false;
+  loading2.value = false;
   handleQuery();
 }
-async function handleSave2(row) {
-  const year = queryParams.value.date.split("-")[0];
-  const month = parseInt(queryParams.value.date.split("-")[1]);
-  console.log(row, "baocun");
-  // gasPlanList.value = gasPlanList.value.map((item) => {
-  //   return {
-  //     ...item,
-  //     major: "姘斾綋",
-  //     year,
-  //     month,
-  //   };
-  // });
-  // routePlanList.value = routePlanList.value.map((item) => {
-  //   return {
-  //     ...item,
-  //     major: "绠¤矾",
-  //     year,
-  //     month,
-  //   };
-  // });
-  const res = await getGasPlanSave([
-    {
-      ...row,
-      major: "姘旀煖",
-      year,
-      month,
-    },
-  ]);
-  ElMessage({
-    message: "鏁版嵁淇濆瓨鎴愬姛",
-    type: "success",
-  });
-  handleQuery();
-  console.log(res, "akiwjciwj");
-}
-onMounted(() => {
-  // getRouteList();
-  // getGasList();
-});
+// async function handleSave2(row) {
+//   const year = queryParams.value.date.split("-")[0];
+//   const month = parseInt(queryParams.value.date.split("-")[1]);
+//   console.log(row, "baocun");
+//   // gasPlanList.value = gasPlanList.value.map((item) => {
+//   //   return {
+//   //     ...item,
+//   //     major: "姘斾綋",
+//   //     year,
+//   //     month,
+//   //   };
+//   // });
+//   // routePlanList.value = routePlanList.value.map((item) => {
+//   //   return {
+//   //     ...item,
+//   //     major: "绠¤矾",
+//   //     year,
+//   //     month,
+//   //   };
+//   // });
+//   const res = await getGasPlanSave([
+//     {
+//       ...row,
+//       major: "姘旀煖",
+//       year,
+//       month,
+//     },
+//   ]);
+//   ElMessage({
+//     message: "鏁版嵁淇濆瓨鎴愬姛",
+//     type: "success",
+//   });
+//   handleQuery();
+//   console.log(res, "akiwjciwj");
+// }
 </script>
 <style lang="scss" scoped>
 .box_container {
diff --git a/src/views/mainPlan/gasProduceStatics/index.vue b/src/views/mainPlan/gasProduceStatics/index.vue
index af6df23..d06ebc9 100644
--- a/src/views/mainPlan/gasProduceStatics/index.vue
+++ b/src/views/mainPlan/gasProduceStatics/index.vue
@@ -311,6 +311,8 @@
     return `<font color="#f89c9c">${capacityLoad}%</font>`
   }else if(designTimes==0&&requireTimes>0){
     return `<font color="#f56c6c">error</font>`
+  }else{
+    return `${capacityLoad}%`
   }
 }
 /** 瀵煎嚭鎸夐挳鎿嶄綔 */

--
Gitblit v1.9.3