diff --git a/src/api/system/clean.js b/src/api/system/clean.js index 04c4fcb..ab53abf 100644 --- a/src/api/system/clean.js +++ b/src/api/system/clean.js @@ -42,3 +42,15 @@ export function delClean(cleanId) { method: 'delete' }) } + + +// 完成保洁 +export function completeCleaning(data) { + return request({ + url: '/app/clean/completeCleaning', + method: 'get', + params: { + cleanId: data.cleanId + } + }) +} diff --git a/src/utils/ruoyi.js b/src/utils/ruoyi.js index d79b4d8..ef2ae14 100644 --- a/src/utils/ruoyi.js +++ b/src/utils/ruoyi.js @@ -236,9 +236,9 @@ export function generateCode(type) { console.log('generateCode', type) // 定义type与前缀的映射关系 const prefixMap = { - '1': 'DP', + '1': 'D', '2': 'F', - '3': 'D', + '3': 'T', '4': 'W' }; diff --git a/src/views/system/clean/index.vue b/src/views/system/clean/index.vue index b136467..1251dac 100644 --- a/src/views/system/clean/index.vue +++ b/src/views/system/clean/index.vue @@ -42,38 +42,38 @@ - - 新增 - - - 修改 - - - 删除 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 修改 - 删除 + >完成保洁 @@ -219,7 +213,7 @@