e64531ef by renchao@pashanhoo.com

style:转件

1 parent 720fe58a
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-10-19 16:23:02 4 * @LastEditTime: 2024-01-19 13:58:43
5 --> 5 -->
6 <template> 6 <template>
7 <div class="from-clues"> 7 <div class="from-clues">
...@@ -41,8 +41,6 @@ ...@@ -41,8 +41,6 @@
41 import { popupCacel } from "@/utils/popup.js"; 41 import { popupCacel } from "@/utils/popup.js";
42 import { mapGetters } from "vuex"; 42 import { mapGetters } from "vuex";
43 export default { 43 export default {
44 computed: {
45 },
46 props: { 44 props: {
47 formData: { 45 formData: {
48 type: Object, 46 type: Object,
...@@ -56,15 +54,6 @@ ...@@ -56,15 +54,6 @@
56 shyj: "", 54 shyj: "",
57 }; 55 };
58 }, 56 },
59 // watch: {
60 // yjsqOptions: {
61 // handler (val) {
62 // this.add(val.opinion);
63 // },
64 // deep: true,
65 // immediate: true,
66 // },
67 // },
68 methods: { 57 methods: {
69 /** 58 /**
70 * @description: submitForm 59 * @description: submitForm
...@@ -80,6 +69,7 @@ ...@@ -80,6 +69,7 @@
80 }) 69 })
81 }, 70 },
82 submitForm () { 71 submitForm () {
72 let that = this
83 this.queryForm = { 73 this.queryForm = {
84 bsmSlsq: this.formData.bsmSlsq, 74 bsmSlsq: this.formData.bsmSlsq,
85 shyj: this.shyj, 75 shyj: this.shyj,
...@@ -87,8 +77,8 @@ ...@@ -87,8 +77,8 @@
87 }; 77 };
88 completeTask(this.queryForm).then((res) => { 78 completeTask(this.queryForm).then((res) => {
89 if (res.code === 200) { 79 if (res.code === 200) {
90 this.$message.success("转件成功");
91 popupCacel(); 80 popupCacel();
81 that.$message.success("转件成功");
92 setTimeout(() => { 82 setTimeout(() => {
93 if (window.opener && window.opener.getBpageList) { 83 if (window.opener && window.opener.getBpageList) {
94 window.opener.getBpageList(); 84 window.opener.getBpageList();
...@@ -96,11 +86,14 @@ ...@@ -96,11 +86,14 @@
96 window.opener.frames[0].getBpageList(); 86 window.opener.frames[0].getBpageList();
97 } 87 }
98 window.close(); 88 window.close();
99 this.$emit("input", false); 89 that.$emit("input", false);
100 }, 1000); 90 }, 360);
101 } else { 91 } else {
102 this.$message.error(res.message); 92 this.$message.error(res.message);
103 } 93 }
94 }).catch((error) => {
95 // 可以添加适当的错误处理
96 this.$message.error("提交任务失败");
104 }); 97 });
105 }, 98 },
106 /** 99 /**
......