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 @@ - - - - {{ item.label + ' ' }} - - {{ item.label + ' ' }} - - - - - {{ unmatchArray | handleArray }} - - + + + + {{ item.label + ' ' }} + + {{ item.label + ' ' }} + + + + + {{ unmatchArray | handleArray }} + + 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 @@ - - - - - - + + + + + + - - - - - - - - - - 查询 - 重置 - - - - - 驳回 - - + + + + + + + + + + + 查询 + + + 重置 + + + + + + + 驳回 + + + - - - - - - - - - + + + + + + + + + - - - + - + + + + + - - - 查看 - 绑定 - 驳回 - - - + + + + 查看 + + + + 绑定 + + + 驳回 + + + + + 下载 + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - 填充 - 绑定 - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - 移除 - - - - - - + + + + + + + + + + + + 填充 + 绑定 + + + + 当前待绑定数量: + + {{ waitBindNum }} + + + + + + + + + + + + + + + + + + + + + + + + + + + 移除 + + + + + + - + 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 @@ + - + - + - + - + - + + + + - + - + 查看 编码绑定 - + + 编码绑定 + 驳回 + > 二维码绑定 + + 下载 + - - - - - - - - - - {{ (queryBind.pageNum - 1) * queryBind.pageSize + scope.$index + 1 }} - - - - - - - - - - - - - - - - diff --git a/src/views/material/purchase/goodsBind/index.vue b/src/views/material/purchase/goodsBind/index.vue index 164d83e9..eaf83e52 100644 --- a/src/views/material/purchase/goodsBind/index.vue +++ b/src/views/material/purchase/goodsBind/index.vue @@ -1,79 +1,65 @@ - - - - - + + + + + + + - + \ No newline at end of file + data() { + return { + queryType: '', // 二级页面类型 + pageContent: '', // 二级页面标题 + queryTaskId: '', // 二级页面查询 taskId + queryId: '', // 二级页面查询 id + isShowComponent: 'Home', + } + }, + + methods: { + // 打开二级页面 + openBindTools(taskId, id, type) { + this.queryId = id + this.queryType = type + this.queryTaskId = taskId + if (type === 1) { + // 查看逻辑 + this.pageContent = '查看' + this.isShowComponent = 'BindTools' + } + if (type === 2) { + // 编码逻辑 + this.pageContent = '编码绑定' + this.isShowComponent = 'BindTools' + } + }, + + // 返回按钮 + goBack() { + this.isShowComponent = 'Home' + }, + }, +} + diff --git a/src/views/material/purchase/goodsEntry/index.vue b/src/views/material/purchase/goodsEntry/index.vue index 629a6aeb..3d23bf60 100644 --- a/src/views/material/purchase/goodsEntry/index.vue +++ b/src/views/material/purchase/goodsEntry/index.vue @@ -1,454 +1,562 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - 查询 - 重置 - - - - - - 入库 - - + + 查询 + 重置 + + + + + + 入库 + + - - 导出 - - + + 导出 + + + + + + + {{ + (queryParams.pageNum - 1) * queryParams.pageSize + + scope.$index + + 1 + }} + + + + + + + + + + + + + + + 待提交 + 待通知 + 待验收 + 待绑定 + 待入库 + 已完成 + 驳回待验收 + 驳回待绑定 + 驳回待入库 + 入库进行中 + 未完成 + + + + + + + + 查看 + + + 入库 + + + 入库单 + + + + - - - - - {{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }} - - - - - - - - - - - - - - - 待提交 - 待通知 - 待验收 - 待绑定 - 待入库 - 已完成 - 驳回待验收 - 驳回待绑定 - 驳回待入库 - 入库进行中 - 未完成 - + + + + + + + 机具设备到货验收单 + + + + 单据编号:{{ printData.code }} + + + 生产厂家(供应商):{{ + printData.supplierName + }} + - - - - - - - - - 查看 - - - 入库 - - - 入库单 - - - - - - - - - - - - - - 机具设备到货验收单 - - - - 单据编号:{{printData.code}} - - - 生产厂家(供应商):{{printData.supplierName}} - - - - 到货日期:{{printData.arrivalDate}} - - - - - - - - - + + 到货日期:{{ printData.arrivalDate }} + + + + - - - - - - - + label="序号" + align="center" + type="index" + row="2" + /> + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - 供应科:{{printData.supplyDept}} - - + + + + 供应科:{{ printData.supplyDept }} + + - - - 生产技术科:{{printData.productionTechDept}} - - + + + 生产技术科:{{ + printData.productionTechDept + }} + + - - - 库管班:{{printData.warehouseTeam}} - - - - - + + + 库管班:{{ printData.warehouseTeam }} + + + + + - - + + + + - - - - - - - \ 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 @@ - - - - + + - - + + - - + + - - + + - + 查询 - + 重置 + + + - - - - - - + + + + + + - - - - - - - - 查询 - - - 重置 - - - - - - - - {{ (listQuery.pageNum - 1) * listQuery.pageSize + scope.$index + 1 }} - - - - - - - - - - - {{ row.result}} - - - - - - - - - - - + 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 @@ - - - - - + + - - + + - - + + - + 查询 - + 重置