From bc8bbcf6189ab678d5fc99457c384f736b19b024 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 25 Jul 2025 22:43:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=A4=E6=8E=A5=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E5=9C=A8=E6=92=A4=E9=94=80=E5=90=8E=E4=BE=9D=E7=84=B6=E5=8F=AF?= =?UTF-8?q?=E6=B2=BF=E7=94=A8=E5=B7=A5=E5=8D=95=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/enum.js | 11 +++++++++- src/views/wpm_gx/handover.vue | 18 +++++++++++++++ src/views/wpm_gx/handover_form.vue | 35 +++++++++++++++++++++++++++++- 3 files changed, 62 insertions(+), 2 deletions(-) diff --git a/src/utils/enum.js b/src/utils/enum.js index fa8e831b..1b84415d 100644 --- a/src/utils/enum.js +++ b/src/utils/enum.js @@ -213,4 +213,13 @@ export const certStateEnum = new EnumFactory({ 10: { text: '正常', type: 'success' }, 20: { text: '临期', type: 'warning' }, 30: { text: '过期', type: 'danger' } -}, parseInt) \ No newline at end of file +}, parseInt) + +export const actStateEnum = new EnumFactory({ + 0: { text: '草稿中', type: 'primary' }, + 1: { text: '进行中', type: 'primary' }, + 2: { text: '被退回', type: 'danger' }, + 3: { text: '被撤回', type: 'warning' }, + 4: { text: '已完成', type: 'success' }, + 5: { text: '已关闭', type: 'info' }, +}) \ No newline at end of file diff --git a/src/views/wpm_gx/handover.vue b/src/views/wpm_gx/handover.vue index 18d1a561..d70f9b9a 100644 --- a/src/views/wpm_gx/handover.vue +++ b/src/views/wpm_gx/handover.vue @@ -148,6 +148,20 @@ prop="recive_user_name" width="80" > + + + + import saveDialog from "./handover_form.vue"; import print from "./../setting/print/A4.vue"; +import { actStateEnum } from "@/utils/enum.js"; export default { props: { deptId: { @@ -323,6 +338,7 @@ export default { }, data() { return { + actStateEnum, apiObj: null, dialog: { @@ -361,6 +377,7 @@ export default { { required: true, message: "请选择接收工段", trigger: "blur" }, ], }, + route_code: "", // setNameVisible: false, }; }, @@ -372,6 +389,7 @@ export default { that.apiObj = that.$API.wpm.handover.list; that.$refs.table.refresh(); that.getMgroupOptions(); + that.route_code = that.$route.path.split("/")[2]; }, methods: { //获取工段列表 diff --git a/src/views/wpm_gx/handover_form.vue b/src/views/wpm_gx/handover_form.vue index eb05fb93..3fb28411 100644 --- a/src/views/wpm_gx/handover_form.vue +++ b/src/views/wpm_gx/handover_form.vue @@ -192,7 +192,7 @@ -