From 3e5a1806bce60170c8749cae3cd5c900b550f4f2 Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期日, 27 四月 2025 16:10:18 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/eam/repair/modules/EamReportRepairList/AssignRepairReportModal.vue |   74 +++++++++++++++++++++++++++++++++++++
 1 files changed, 74 insertions(+), 0 deletions(-)

diff --git a/src/views/eam/repair/modules/EamReportRepairList/AssignRepairReportModal.vue b/src/views/eam/repair/modules/EamReportRepairList/AssignRepairReportModal.vue
new file mode 100644
index 0000000..5951a14
--- /dev/null
+++ b/src/views/eam/repair/modules/EamReportRepairList/AssignRepairReportModal.vue
@@ -0,0 +1,74 @@
+<template>
+  <j-modal :visible="visible" title="鎸囨淳鎶ヤ慨" :width="500" @ok="handleSubmit" @cancel="handleCancel"
+           :confirmLoading="confirmLoading">
+    <a-spin :spinning="confirmLoading">
+      <a-form-model ref="form" :model="model" :rules="validateRules" :labelCol="{span:4}" :wrapperCol="{span:18}">
+        <a-form-model-item label="缁翠慨宸�" prop="repairer">
+          <j-search-select-tag v-model="model.repairer" placeholder="璇烽�夋嫨缁翠慨宸�"
+                               dict="sys_user,realname, username, del_flag=0 and post='PCR0002' and status=1"/>
+        </a-form-model-item>
+      </a-form-model>
+    </a-spin>
+  </j-modal>
+</template>
+
+<script>
+  import { postAction } from '@/api/manage'
+
+  export default {
+    name: 'AssignRepairReportModal',
+    data() {
+      return {
+        visible: false,
+        confirmLoading: false,
+        model: {},
+        validateRules: {
+          repairer: [
+            { required: true, message: '璇烽�夋嫨缁翠慨宸�' }
+          ]
+        },
+        url: {
+          assign: '/eam/eamRepairOrder/assign'
+        }
+      }
+    },
+    methods: {
+      handleSubmit() {
+        const that = this
+        this.$refs.form.validate(valid => {
+          if (valid) {
+            that.confirmLoading = true
+            postAction(that.url.assign, that.model)
+              .then(res => {
+                if (res.success) {
+                  that.$message.success(res.message)
+                  that.handleCancel()
+                  that.$emit('ok')
+                } else {
+                  that.$message.warning(res.message)
+                }
+              })
+              .finally(() => {
+                that.confirmLoading = false
+              })
+          } else {
+            return false
+          }
+        })
+      },
+
+      handleCancel() {
+        this.visible = false
+      }
+    }
+  }
+</script>
+
+<style scoped>
+  .container {
+    display: flex;
+    flex-direction: column;
+    justify-content: center;
+    align-content: center;
+  }
+</style>
\ No newline at end of file

--
Gitblit v1.9.3