From 7a228d5837e006af03e76db757e0f559e131f4b4 Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期五, 23 五月 2025 13:37:17 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/dnc/base/modules/TerminalIndex/ReportEquipmentClose/SplitShutdownInfoModal.vue |  121 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 121 insertions(+), 0 deletions(-)

diff --git a/src/views/dnc/base/modules/TerminalIndex/ReportEquipmentClose/SplitShutdownInfoModal.vue b/src/views/dnc/base/modules/TerminalIndex/ReportEquipmentClose/SplitShutdownInfoModal.vue
new file mode 100644
index 0000000..967c357
--- /dev/null
+++ b/src/views/dnc/base/modules/TerminalIndex/ReportEquipmentClose/SplitShutdownInfoModal.vue
@@ -0,0 +1,121 @@
+<template>
+  <a-modal :visible="visible" :width="800" title="鎷嗗垎鍋滄満淇℃伅" @ok="handleSubmit" @cancel="handleCancel">
+    <a-form-model ref="form" :model="model" :rules="validateRules" :labelCol="{span:8}" :wrapperCol="{span:12}">
+      <a-row>
+        <a-col :span="10">
+          <a-form-model-item prop="startTime" label="寮�濮嬫椂闂�">
+            <a-date-picker show-time value-format="YYYY-MM-DD HH:mm:ss" v-model="model.startTime"/>
+          </a-form-model-item>
+        </a-col>
+      </a-row>
+
+      <div v-for="item in splitList" :key="item.title">
+        <a-divider orientation="left">{{item.title}}</a-divider>
+
+        <a-row>
+          <a-col :span="10">
+            <a-form-model-item prop="endTime" label="缁撴潫鏃ユ湡">
+              <a-date-picker show-time value-format="YYYY-MM-DD HH:mm:ss" v-model="item.splitParams.endTime"/>
+            </a-form-model-item>
+          </a-col>
+
+          <a-col :span="10">
+            <a-form-model-item prop="closeReason" label="鍋滄満鍘熷洜">
+              <a-select v-model="item.splitParams.closeReason" placeholder="璇烽�夋嫨鍋滄満鍘熷洜">
+                <a-select-option v-for="item in closeReasonList" :key="item.id">
+                  {{item.label}}
+                </a-select-option>
+              </a-select>
+            </a-form-model-item>
+          </a-col>
+
+          <a-col :span="4">
+            <a-form-model-item label="閫夋嫨">
+              <a-checkbox @change="handleCheckboxChange(item,$event)"/>
+            </a-form-model-item>
+          </a-col>
+        </a-row>
+      </div>
+    </a-form-model>
+  </a-modal>
+</template>
+
+<script>
+  export default {
+    name: 'SplitShutdownInfoModal',
+    data() {
+      return {
+        visible: false,
+        model: {},
+        validateRules: {
+          startTime: [{ required: true, message: '璇烽�夋嫨寮�濮嬫椂闂达紒', trigger: 'change' }]
+        },
+        closeReasonList: [
+          {
+            id: 1,
+            label: '鍚冮キ鏃堕棿浼戞伅'
+          },
+          {
+            id: 2,
+            label: '宸ヤ綔鏃堕棿浼戞伅'
+          },
+          {
+            id: 3,
+            label: '璁″垝鎬у仠鐢�'
+          },
+          {
+            id: 4,
+            label: '寰呮枡鍋滄満'
+          },
+          {
+            id: 5,
+            label: '棣栦欢璋冭瘯'
+          },
+          {
+            id: 6,
+            label: '鍒�閲忓叿鍑嗗'
+          }
+        ],
+        splitList: [
+          {
+            title: '鎷嗗垎涓�娈�',
+            splitParams: {}
+          },
+          {
+            title: '鎷嗗垎浜屾',
+            splitParams: {}
+          },
+          {
+            title: '鎷嗗垎涓夋',
+            splitParams: {}
+          }
+        ]
+      }
+    },
+    methods: {
+      handleCheckboxChange(record, event) {
+        console.log('record', record)
+        record.splitParams.checked = event.target.checked
+      },
+
+      handleSubmit() {
+        this.$refs.form.validate(valid => {
+          if (valid) {
+
+          } else {
+            return false
+          }
+        })
+      },
+
+      handleCancel() {
+        this.$refs.form.clearValidate()
+        this.visible = false
+      }
+    }
+  }
+</script>
+
+<style scoped>
+
+</style>
\ No newline at end of file

--
Gitblit v1.9.3