diff --git a/src/api/purchase/goodsBind.js b/src/api/purchase/goodsBind.js index b6fbb8a5..c87f6429 100644 --- a/src/api/purchase/goodsBind.js +++ b/src/api/purchase/goodsBind.js @@ -1,100 +1,94 @@ import request from '@/utils/request' -//机具类型管理列表信息 -export function getListNewBuyBind(query) { - return request({ - url: '/material/purchase/bind/list', - method: 'get', - params: query, - }) +/** + * 获取新购待绑定列表数据 + */ +export function getNewBuyBindListApi(query) { + return request({ + url: '/material/purchase_check_info/list', + method: 'get', + params: query, + }) } -//任务 详情 -export function getListDetail(query) { - return request({ - url: '/material/purchase/bind/details', - method: 'get', - params: query, - }) +/** + * 获取新购待绑定列表详情 + */ +export function getNewBuyBindListDetailsApi(query) { + return request({ + url: '/material/purchase_check_info/getInfo', + method: 'get', + params: query, + }) } //任务 详情 export function bindAllData(data) { - return request({ - url: '/material/purchase/bind/bind', - method: 'post', - data: data, - }) + return request({ + url: '/material/purchase/bind/bind', + method: 'post', + data: data, + }) } //二级页面 详情 export function getListDetailById(query) { - return request({ - url: '/material/purchase/bind/getById', - method: 'get', - params: query, - }) + return request({ + url: '/material/purchase/bind/getById', + method: 'get', + params: query, + }) } // 导出 export function exportNewBuy(data) { - return request({ - url: '/material/purchase/bind/downloadQrCode', - method: 'post', - responseType: 'blob', - data: data - }) + return request({ + url: '/material/purchase/bind/downloadQrCode', + method: 'post', + responseType: 'blob', + data: data, + }) } - - //人员 详情 export function getNoticePeople(query) { - return request({ - url: '/material/purchase_notice_person/list', - method: 'get', - params: query, - }) + return request({ + url: '/material/purchase_notice_person/list', + method: 'get', + params: query, + }) } // 人员--删除 export function delPeople(ids) { - return request({ - url: '/material/purchase_notice_person/' + ids, - method: 'delete', - }) + return request({ + url: '/material/purchase_notice_person/' + ids, + method: 'delete', + }) } // 人员管理--新增 export function addNoticeUser(data) { - return request({ - url: '/material/purchase_notice_person/batchAddNoticePerson', - method: 'post', - data: data, - }) + return request({ + url: '/material/purchase_notice_person/batchAddNoticePerson', + method: 'post', + data: data, + }) } // 仓库管理--修改 export function bmNoticeInfo(data) { - return request({ - url: '/material/purchase_notice_person/batchSendSms', - method: 'put', - data: data, - }) + return request({ + url: '/material/purchase_notice_person/batchSendSms', + method: 'put', + data: data, + }) } - //机具类型管理列表信息 export function getUserAll() { - return request({ - url: '/system/user/list', - method: 'get', - }) + return request({ + url: '/system/user/list', + method: 'get', + }) } - - - - - - - diff --git a/src/assets/icons/svg/bind-icon.svg b/src/assets/icons/svg/bind-icon.svg new file mode 100644 index 00000000..83511f4d --- /dev/null +++ b/src/assets/icons/svg/bind-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/qr-icon.svg b/src/assets/icons/svg/qr-icon.svg new file mode 100644 index 00000000..f2e6ebd9 --- /dev/null +++ b/src/assets/icons/svg/qr-icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/DictTag/index.vue b/src/components/DictTag/index.vue index 6b5b230f..eff758c8 100644 --- a/src/components/DictTag/index.vue +++ b/src/components/DictTag/index.vue @@ -1,89 +1,110 @@ diff --git a/src/plugins/modal.js b/src/plugins/modal.js index b37ca145..98a086e6 100644 --- a/src/plugins/modal.js +++ b/src/plugins/modal.js @@ -1,83 +1,85 @@ import { Message, MessageBox, Notification, Loading } from 'element-ui' -let loadingInstance; +let loadingInstance export default { - // 消息提示 - msg(content) { - Message.info(content) - }, - // 错误消息 - msgError(content) { - Message.error(content) - }, - // 成功消息 - msgSuccess(content) { - Message.success(content) - }, - // 警告消息 - msgWarning(content) { - Message.warning(content) - }, - // 弹出提示 - alert(content) { - MessageBox.alert(content, "系统提示") - }, - // 错误提示 - alertError(content) { - MessageBox.alert(content, "系统提示", { type: 'error' }) - }, - // 成功提示 - alertSuccess(content) { - MessageBox.alert(content, "系统提示", { type: 'success' }) - }, - // 警告提示 - alertWarning(content) { - MessageBox.alert(content, "系统提示", { type: 'warning' }) - }, - // 通知提示 - notify(content) { - Notification.info(content) - }, - // 错误通知 - notifyError(content) { - Notification.error(content); - }, - // 成功通知 - notifySuccess(content) { - Notification.success(content) - }, - // 警告通知 - notifyWarning(content) { - Notification.warning(content) - }, - // 确认窗体 - confirm(content) { - return MessageBox.confirm(content, "系统提示", { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: "warning", - }) - }, - // 提交内容 - prompt(content) { - return MessageBox.prompt(content, "系统提示", { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: "warning", - }) - }, - // 打开遮罩层 - loading(content) { - loadingInstance = Loading.service({ - lock: true, - text: content, - spinner: "el-icon-loading", - background: "rgba(0, 0, 0, 0.7)", - }) - }, - // 关闭遮罩层 - closeLoading() { - loadingInstance.close(); - } + // 消息提示 + msg(content) { + Message.info(content) + }, + // 错误消息 + msgError(content) { + Message.closeAll() + Message.error(content) + }, + // 成功消息 + msgSuccess(content) { + Message.closeAll() + Message.success(content) + }, + // 警告消息 + msgWarning(content) { + Message.warning(content) + }, + // 弹出提示 + alert(content) { + MessageBox.alert(content, '系统提示') + }, + // 错误提示 + alertError(content) { + MessageBox.alert(content, '系统提示', { type: 'error' }) + }, + // 成功提示 + alertSuccess(content) { + MessageBox.alert(content, '系统提示', { type: 'success' }) + }, + // 警告提示 + alertWarning(content) { + MessageBox.alert(content, '系统提示', { type: 'warning' }) + }, + // 通知提示 + notify(content) { + Notification.info(content) + }, + // 错误通知 + notifyError(content) { + Notification.error(content) + }, + // 成功通知 + notifySuccess(content) { + Notification.success(content) + }, + // 警告通知 + notifyWarning(content) { + Notification.warning(content) + }, + // 确认窗体 + confirm(content) { + return MessageBox.confirm(content, '系统提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }) + }, + // 提交内容 + prompt(content) { + return MessageBox.prompt(content, '系统提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning', + }) + }, + // 打开遮罩层 + loading(content) { + loadingInstance = Loading.service({ + lock: true, + text: content, + spinner: 'el-icon-loading', + background: 'rgba(0, 0, 0, 0.7)', + }) + }, + // 关闭遮罩层 + closeLoading() { + loadingInstance.close() + }, } diff --git a/src/views/material/purchase/goodsBind/component/bindTools.vue b/src/views/material/purchase/goodsBind/component/bindTools.vue index eeddb2bb..f21e4df8 100644 --- a/src/views/material/purchase/goodsBind/component/bindTools.vue +++ b/src/views/material/purchase/goodsBind/component/bindTools.vue @@ -1,665 +1,618 @@ - + diff --git a/src/views/material/purchase/goodsBind/component/home.vue b/src/views/material/purchase/goodsBind/component/home.vue index ff3b6c96..21a393ef 100644 --- a/src/views/material/purchase/goodsBind/component/home.vue +++ b/src/views/material/purchase/goodsBind/component/home.vue @@ -1,4 +1,5 @@ - - \ No newline at end of file + diff --git a/src/views/system/log/abnormalLog/index.vue b/src/views/system/log/abnormalLog/index.vue index 0756171e..801ac495 100644 --- a/src/views/system/log/abnormalLog/index.vue +++ b/src/views/system/log/abnormalLog/index.vue @@ -1,42 +1,98 @@ - + let day = now.getDate(); + if (day < 10) { + day = "0" + day; + } + return year + "-" + month + "-" + day; + }, + }, +}; + diff --git a/src/views/system/log/systemLog/index.vue b/src/views/system/log/systemLog/index.vue index 1759d266..aebcd6ae 100644 --- a/src/views/system/log/systemLog/index.vue +++ b/src/views/system/log/systemLog/index.vue @@ -1,45 +1,96 @@