From edc5305f78c33d0fefab80cd170e696b3d9ae096 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期四, 19 十一月 2026 15:53:40 +0800
Subject: [PATCH] 测试完成

---
 src/views/SatisfactionRelay.vue |   92 +++++++++++++++++++++++++++-------------------
 vue.config.js                   |    4 +-
 2 files changed, 56 insertions(+), 40 deletions(-)

diff --git a/src/views/SatisfactionRelay.vue b/src/views/SatisfactionRelay.vue
index 7390597..9a0cd0c 100644
--- a/src/views/SatisfactionRelay.vue
+++ b/src/views/SatisfactionRelay.vue
@@ -8,13 +8,25 @@
         <div class="spinner-dot"></div>
       </div>
       <!-- 鏍囬 -->
-      <h1 class="relay-title">姝e湪鍔犺浇鏈嶅姟</h1>
+      <h1 class="relay-title">璇疯緭鍏ユ墜鏈哄彿</h1>
       <!-- 鎻忚堪 -->
-      <p class="relay-desc">璇风◢鍊欙紝鍗冲皢涓烘偍璺宠浆鑷抽棶鍗烽〉闈�</p>
-      <!-- 杩涘害鏉¤楗� -->
-      <div class="progress-bar">
-        <div class="progress-fill"></div>
-      </div>
+      <p class="relay-desc">璇疯緭鍏ユ偍鐨勬墜鏈哄彿锛岀敤浜庤幏鍙栭棶鍗烽摼鎺�</p>
+      <!-- 鎵嬫満鍙疯緭鍏� -->
+      <el-input
+        v-model="phone"
+        class="phone-input"
+        placeholder="璇疯緭鍏ユ墜鏈哄彿"
+        maxlength="11"
+        clearable
+        @keyup.enter.native="handleRedirect"
+      ></el-input>
+      <!-- 纭鎸夐挳 -->
+      <el-button
+        type="primary"
+        class="confirm-btn"
+        :loading="submitting"
+        @click="handleRedirect"
+      >纭� 瀹�</el-button>
     </div>
   </div>
 </template>
@@ -24,8 +36,11 @@
 
 export default {
   name: "RelayPage",
-  created() {
-    this.handleRedirect();
+  data() {
+    return {
+      phone: "",
+      submitting: false
+    };
   },
   methods: {
     handleRedirect() {
@@ -34,17 +49,31 @@
         this.$message.error("缂哄皯浠诲姟鏍囪瘑锛岃閲嶆柊鎵爜");
         return;
       }
+
+      // 鎵嬫満鍙峰繀濉牎楠�
+      const tel = (this.phone || "").trim();
+      if (!tel) {
+        this.$message.warning("璇疯緭鍏ユ墜鏈哄彿");
+        return;
+      }
+      if (!/^1[3-9]\d{9}$/.test(tel)) {
+        this.$message.warning("璇疯緭鍏ユ纭殑11浣嶆墜鏈哄彿");
+        return;
+      }
+
+      this.submitting = true;
       const params = {
         taskid: taskid,
         deptcode: deptcode,
         leaveldeptcodes: leaveldeptcodes,
+        phone: tel
       };
       scanGenerateSubtask(params)
         .then((res) => {
-          console.log(res,'鍒濆');
+          console.log(res, "鍒濆");
 
           if (res.code == 200) {
-            console.log(res.msg,'res.msg');
+            console.log(res.msg, "res.msg");
             // return
             window.location.href = res.msg;
             console.log("window鍚�");
@@ -55,9 +84,12 @@
         .catch((err) => {
           console.error(err);
           this.$message.error("鏈嶅姟寮傚父锛岃绋嶅悗閲嶈瘯");
+        })
+        .finally(() => {
+          this.submitting = false;
         });
-    },
-  },
+    }
+  }
 };
 </script>
 
@@ -152,33 +184,17 @@
   line-height: 1.6;
 }
 
-/* 杩涘害鏉★紙瑁呴グ锛� */
-.progress-bar {
+/* 鎵嬫満鍙疯緭鍏ユ */
+.phone-input {
+  margin-bottom: 24px;
+}
+
+/* 纭鎸夐挳 */
+.confirm-btn {
   width: 100%;
-  height: 4px;
-  background: #e0e7f1;
-  border-radius: 4px;
-  overflow: hidden;
-  margin-top: 8px;
-}
-
-.progress-fill {
-  width: 60%;
-  height: 100%;
-  background: linear-gradient(90deg, #409eff, #79bbff);
-  border-radius: 4px;
-  animation: progressMove 1.8s ease-in-out infinite alternate;
-}
-
-@keyframes progressMove {
-  0% {
-    transform: translateX(-10%);
-    width: 40%;
-  }
-  100% {
-    transform: translateX(10%);
-    width: 80%;
-  }
+  height: 44px;
+  font-size: 16px;
+  letter-spacing: 4px;
 }
 
 /* 绉诲姩绔�傞厤 */
diff --git a/vue.config.js b/vue.config.js
index 4f71276..b9f469d 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -40,10 +40,10 @@
         // target: `http://192.168.100.10:8094`,//鐪佺珛鍚屽痉
         // target: `http://192.168.100.10:8095`,//鏂板崕
         // target: `http://192.168.100.10:8098`,//甯備竴
-        target:`http://localhost:8095`,
+        // target:`http://localhost:8095`,
         // target: `http://192.168.100.168:8095`,
         // target:`http://35z1t16164.qicp.vip`,
-        // target: `http://220.66.154.95:8095`,
+        target: `http://220.66.154.95:8095`,
         // target: `http://192.168.100.10:8089`,//鍗楀崕
         // target: `https://9.208.38.93:8092/`,
         changeOrigin: true,

--
Gitblit v1.9.3