From 7ed2a032d0724e68aec8af940f2ce0023a9f0eb7 Mon Sep 17 00:00:00 2001
From: sen <sen@qq.com>
Date: 星期三, 15 四月 2026 09:27:51 +0800
Subject: [PATCH] 修改调度单年月日

---
 ui/admin-ui3/src/views/tms/tmsApBill/index.vue |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/ui/admin-ui3/src/views/tms/tmsApBill/index.vue b/ui/admin-ui3/src/views/tms/tmsApBill/index.vue
index 296a124..b00b52a 100644
--- a/ui/admin-ui3/src/views/tms/tmsApBill/index.vue
+++ b/ui/admin-ui3/src/views/tms/tmsApBill/index.vue
@@ -32,6 +32,10 @@
         <el-link size="small" type="primary" v-if="row.pushStatus == 3 || row.pushStatus == 4|| row.pushStatus == 0"
           @click="handleManualPush(row)" class="link-btn" underline="never" icon="el-icon-upload">鎵嬪姩鎺ㄩ��
         </el-link>
+           <el-link size="small" type="primary" v-if="[0, 2].includes(row.status)" @click="handleClose(row)"
+            class="link-btn" v-hasPermi="['tms:tmsApBill:closeOrder']" underline="never" icon="el-icon-close">
+            浣滃簾
+          </el-link>
         <el-link size="small" type="primary" v-if="row.status == 0" @click="handleEdit(row)" class="link-btn"
           :underline="false" icon="el-icon-edit">璐﹀崟纭
         </el-link>
@@ -132,7 +136,7 @@
   exportTmsApBill,
   getTmsApBill,
   listTmsApBill,
-  updateTmsApBill, manualPushTmsApBill,getPayableAuditLog
+  updateTmsApBill, manualPushTmsApBill,getPayableAuditLog,tmsApBillCancelPush
 } from "@/api/tms/tmsApBill";
 import useCurrentInstance from "@/utils/useCurrentInstance";
 import { computed, reactive, ref, toRefs } from "vue";
@@ -470,4 +474,21 @@
 
   })
 }
+
+const handleClose = (row: any) => {
+  ElMessageBox.confirm("鏄惁瀵瑰簲浠樿处鍗�" + row.systemNo + "杩涜浣滃簾锛�", '绯荤粺鎻愮ず', {
+    confirmButtonText: '纭畾',
+    cancelButtonText: '鍙栨秷',
+    type: 'warning'
+  }).then(() => {
+    return tmsApBillCancelPush(row.id);
+  }).then(() => {
+    onLoad(page.value);
+    ElMessage({
+      message: "鎿嶄綔鎴愬姛锛�",
+      type: 'success'
+    })
+  });
+}
+
 </script>

--
Gitblit v1.8.0