From ae478a3d5dab28dd598d39f27429e4a544b15ad2 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期四, 25 十二月 2025 22:48:06 +0800
Subject: [PATCH] feat:已完成时,检查附件是否上传
---
app/api/task.js | 38 +++++++++++++++++++++++++++++++++++++-
1 files changed, 37 insertions(+), 1 deletions(-)
diff --git a/app/api/task.js b/app/api/task.js
index f43e912..f9c95ba 100644
--- a/app/api/task.js
+++ b/app/api/task.js
@@ -26,7 +26,7 @@
export function updateTask(data) {
return request({
- url: '/task/' + data.taskId,
+ url: '/task',
method: 'put',
data: data
})
@@ -141,3 +141,39 @@
method: 'get'
})
}
+
+// 妫�鏌ヨ溅杈嗘槸鍚︽湁姝e湪杩涜涓殑浠诲姟
+export function checkVehicleActiveTasks(vehicleId) {
+ return request({
+ url: '/task/vehicle/' + vehicleId + '/active',
+ method: 'get'
+ })
+}
+
+// 鏍囪鎵ц浜哄氨缁�
+export function setAssigneeReady(taskId) {
+ return request({
+ url: '/task/' + taskId + '/assignee/ready',
+ method: 'post'
+ })
+}
+
+// 妫�鏌ヤ换鍔℃槸鍚︿笂浼犱簡鐭ユ儏鍚屾剰涔�
+export function checkTaskConsentAttachment(taskId) {
+ return request({
+ url: '/task/attachment/sync/task/check/' + taskId,
+ method: 'post'
+ })
+}
+
+// 妫�鏌ヤ换鍔℃槸鍚﹂噸澶嶏紙鏍规嵁鑱旂郴浜虹數璇濆拰鍒涘缓鏃ユ湡锛�
+export function checkTaskDuplicate(phone, createDate) {
+ return request({
+ url: '/task/checkDuplicate',
+ method: 'get',
+ params: {
+ phone: phone,
+ createDate: createDate
+ }
+ })
+}
--
Gitblit v1.9.1