diff --git a/src/pages/back/backCode.vue b/src/pages/back/backCode.vue index e07728a..69a017f 100644 --- a/src/pages/back/backCode.vue +++ b/src/pages/back/backCode.vue @@ -1,15 +1,15 @@ diff --git a/src/pages/back/detail.vue b/src/pages/back/detail.vue index b16cf2d..fcc3faf 100644 --- a/src/pages/back/detail.vue +++ b/src/pages/back/detail.vue @@ -132,13 +132,16 @@ const getTableList = () => { // // "statusList":statusList.value, // } // console.log(obj) + uni.showLoading({ title: '提交中...', mask: true }) getBackInfo(id.value,keyWord.value).then(res => { + uni.hideLoading() console.log(res) taskInfo.value = res.data.backApplyInfo; tableList.value = res.data.backApplyDetailsList; console.log(taskInfo.value) }).catch(error => { - console.log(error) + console.log(error) + uni.hideLoading() }) } const search = () => { @@ -189,6 +192,7 @@ const submit = async () => { taskId: taskId.value } try { + uni.showLoading({ title: '提交中...', mask: true }) const res = await submitBackApply(param) if (res.code==200){ uni.showToast({ title: '提交成功', icon: 'none' }) @@ -197,7 +201,8 @@ const submit = async () => { } catch (error) { console.log('🚀 ~ submit ~ error:', error) - uni.showToast({ title: '删除失败', icon: 'none' }) + } finally { + uni.hideLoading() } // console.log(param) // submitBackApply(param).then(res => { diff --git a/src/services/back.js b/src/services/back.js index b0d0618..2ce9b8d 100644 --- a/src/services/back.js +++ b/src/services/back.js @@ -299,4 +299,22 @@ export const addHandlingOrder = (data) => { url: '/material/back_apply_info/addHandlingOrder', data:data, }) +} + +// 设备类型树 +export const getMaTypeApi = (data) => { + return http({ + method: 'POST', + url: '/material/select/getBackDeviceTypeTree', + data, + }) +} + +// 根据id获取编码 +export const getMachineByIdListApi = (data) => { + return http({ + method: 'GET', + url: '/material/back_apply_info/selectMachineByIdList', + data, + }) } \ No newline at end of file