diff --git a/src/api/leger/inspectionstandards.js b/src/api/leger/inspectionstandards.js index de4f7c3..7ebb892 100644 --- a/src/api/leger/inspectionstandards.js +++ b/src/api/leger/inspectionstandards.js @@ -1,8 +1,8 @@ import request from '@/router/axios'; -export const getList = (current, size, params) => { +export const inspection_getList = (current, size, params) => { return request({ - url: '/api/leger/inspectionstandards/list', + url: '/api/inspectionstandards/list', method: 'get', params: { ...params, @@ -12,9 +12,9 @@ export const getList = (current, size, params) => { }) } -export const getDetail = (id) => { +export const inspection_getDetail = (id) => { return request({ - url: '/api/leger/inspectionstandards/detail', + url: '/api/inspectionstandards/detail', method: 'get', params: { id @@ -22,9 +22,9 @@ export const getDetail = (id) => { }) } -export const remove = (ids) => { +export const inspection_remove = (ids) => { return request({ - url: '/api/leger/inspectionstandards/remove', + url: '/api/inspectionstandards/remove', method: 'post', params: { ids, @@ -32,19 +32,37 @@ export const remove = (ids) => { }) } -export const add = (row) => { +export const inspection_add = (row) => { return request({ - url: '/api/leger/inspectionstandards/submit', + url: '/api/inspectionstandards/submit', method: 'post', data: row }) } -export const update = (row) => { +export const inspection_update = (row) => { return request({ - url: '/api/leger/inspectionstandards/submit', + url: '/api/inspectionstandards/submit', method: 'post', data: row }) } +export const inspection_getListBylegerId = (toolsCodeId) => { + return request({ + url: '/api/inspectionstandards/getList', + method: 'get', + params: { + toolsCodeId: toolsCodeId + } + }) +} +export const inspection__Del = (toolsCodeId) => { + return request({ + url: '/api/inspectionstandards/del', + method: 'post', + params: { + toolsCodeId: toolsCodeId + } + }) +} diff --git a/src/views/leger/equipmentledgerDetail.vue b/src/views/leger/equipmentledgerDetail.vue index 8afe879..b28e800 100644 --- a/src/views/leger/equipmentledgerDetail.vue +++ b/src/views/leger/equipmentledgerDetail.vue @@ -870,24 +870,27 @@ }); }, del() { - remove(this.tab1_form.id()).then(() => { - this.$router.push({ - path: "/leger/equipmentledger", - query: {}, - }); - this.$message({ - type: "success", - message: "操作成功!" - }); - // document_Del(this.tab1_form.eqLedgerId()).then(() => { - // parameters_Del(this.tab1_form.eqLedgerId()); - // }); + this.$confirm("是否将选择数据审核?", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning" + }).then(() => { + remove(this.tab1_form.id).then(() => { + this.$router.push({ + path: "/leger/equipmentledger", + query: {}, + }); + this.$message({ + type: "success", + message: "操作成功!" + }); }).catch((error) => { this.$message({ type: "error", message: "操作失败!" }); - }); + }); + }) }, headerClass(){ return 'head-style' diff --git a/src/views/leger/toolinventoryrecordDetail.vue b/src/views/leger/toolinventoryrecordDetail.vue new file mode 100644 index 0000000..d308917 --- /dev/null +++ b/src/views/leger/toolinventoryrecordDetail.vue @@ -0,0 +1,828 @@ + + + + + + + + + + + + + + + + + + + + + + + {{scope.row.prAccessoryName}} + + + 下 载 + + + + + + + 取消 + + 确定 + + 审核 + + 驳回 + + 修改 + + 删除 + + + + + + +