From 4a96df3ea2c19216bd49f2dfa4a41decd16a1486 Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期一, 23 六月 2025 09:52:12 +0800
Subject: [PATCH] 1、设备结构树页面接收NC文件列表新增指派到产品NC文件功能 2、设备TEEP页面故障率数据展示格式调整

---
 src/views/dnc/base/modules/ProductStructure/Cutter/CutterModal.vue |   78 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 78 insertions(+), 0 deletions(-)

diff --git a/src/views/dnc/base/modules/ProductStructure/Cutter/CutterModal.vue b/src/views/dnc/base/modules/ProductStructure/Cutter/CutterModal.vue
new file mode 100644
index 0000000..14533d6
--- /dev/null
+++ b/src/views/dnc/base/modules/ProductStructure/Cutter/CutterModal.vue
@@ -0,0 +1,78 @@
+<template>
+  <j-modal
+    :title="title"
+    :width="width"
+    :visible="visible"
+    switchFullscreen
+    :maskClosable="false"
+    @ok="handleOk"
+    @cancel="handleCancel"
+    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
+    cancelText="鍏抽棴">
+    <CutterModalForm ref="realForm" @ok="submitCallback" :disableSubmit="disableSubmit"/>
+  </j-modal>
+</template>
+
+<script>
+import CutterModalForm from './CutterModalForm.vue'
+
+export default {
+  name: 'CutterModal',
+  components: {
+    CutterModalForm
+  },
+  props: {
+    currentTreeNodeInfo: {
+      type: Object
+    }
+  },
+  data() {
+    return {
+      title: '',
+      width: 700,
+      visible: false,
+      disableSubmit: false
+    }
+  },
+  methods: {
+    // 娣诲姞鎵�鐢ㄥ垁鍏�
+    handleCutterAdd() {
+      const { attributionId, attributionType, docId } = this.currentTreeNodeInfo
+      this.visible = true
+      this.$nextTick(() => {
+        if (this.$refs.realForm) {
+          this.$refs.realForm.add({
+            attributionId: attributionId,
+            attributionType: attributionType,
+            docId: docId
+          })
+        }
+      })
+    },
+
+    // 缂栬緫鍒�鍏蜂俊鎭�
+    handleCutterEdit(record) {
+      this.visible = true
+      this.$nextTick(() => {
+        if (this.$refs.realForm) {
+          this.$refs.realForm.edit({ ...record })
+        }
+      })
+    },
+
+    handleOk() {
+      this.$refs.realForm.submitForm()
+    },
+
+    submitCallback() {
+      this.$emit('submitSuccess')
+      this.visible = false
+    },
+
+    handleCancel() {
+      this.$emit('close')
+      this.visible = false
+    }
+  }
+}
+</script>
\ No newline at end of file

--
Gitblit v1.9.3