From 4ddaf1aee1f088a15d5a06a2426a66b443a53138 Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Tue, 12 Nov 2024 18:27:02 +0800 Subject: [PATCH 1/3] =?UTF-8?q?lsun=20=E5=8D=8F=E8=AE=AE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/lease/outbound.js | 335 ++++ src/api/lease/picking.js | 335 ++++ src/api/lease/protocol.js | 377 +--- .../lease/apply/component/outbound.vue | 1181 ++++++++++++ .../lease/apply/component/picking.vue | 1181 ++++++++++++ src/views/material/lease/protocol/index.vue | 1581 +++++++++-------- 6 files changed, 3938 insertions(+), 1052 deletions(-) create mode 100644 src/api/lease/outbound.js create mode 100644 src/api/lease/picking.js create mode 100644 src/views/material/lease/apply/component/outbound.vue create mode 100644 src/views/material/lease/apply/component/picking.vue diff --git a/src/api/lease/outbound.js b/src/api/lease/outbound.js new file mode 100644 index 00000000..7a0be060 --- /dev/null +++ b/src/api/lease/outbound.js @@ -0,0 +1,335 @@ +import request from '@/utils/request' + +// 往来单位-下拉 +export function getUnitList(query) { + return request({ + url: '/material/agreementInfo/getUnitList', + method: 'get', + params: query, + }) +} + +// 工程名称-下拉 +export function getProjectList(query) { + return request({ + url: '/material/agreementInfo/getProjectList', + method: 'get', + params: query, + }) +} + +// 协议管理-列表 +export function getAgreementList(query) { + return request({ + url: '/material/agreementInfo/getAgreementInfoAll', + method: 'get', + params: query, + }) +} +// 协议管理-详情 +export function getAgreementInfoId(query) { + return request({ + url: '/material/agreementInfo/getAgreementInfoId', + method: 'get', + params: query, + }) +} + +//协议管理--新增 +export function addAgreement(data) { + return request({ + url: '/material/agreementInfo/add', + method: 'post', + data: data, + }) +} + +// 协议管理--修改 +export function updateAgreement(data) { + return request({ + url: '/material/agreementInfo/update', + method: 'post', + data: data, + }) +} +// //协议管理--删除 +export function removeAgreement(data) { + return request({ + url: '/material/agreementInfo/remove', + method: 'post', + data: data, + }) +} + +// 机具领料-申请列表 +export function getLeaseManageListAll(query) { + return request({ + url: '/material/base/tm_task/getLeaseManageListAll', + method: 'get', + params: query, + }) +} +// 机具领料-申请列表 +export function getLeaseManageListAllCq(query) { + return request({ + url: '/material/base/tm_task/getLeaseManageListAllCq', + method: 'get', + params: query, + }) +} +// 机具领料-管理列表 +export function getLeaseAuditListAll(query) { + return request({ + url: '/material/base/tm_task/getLeaseAuditListAll', + method: 'get', + params: query, + }) +} + +// 获取 来往单位 列表 +export function getUnitData(params = {}) { + return request({ + url: '/material/select/getUnitCbx', + method: 'post', + data: params, + }) +} + +// 获取 工程 列表 +export function getProData(params = {}) { + return request({ + url: '/material/select/getSectionEngineeringCbx', + method: 'post', + data: params, + }) +} + +// 获取 设备树 +export function getDeviceTypeTree(params = {}) { + return request({ + url: '/material/select/getDeviceTypeTree', + method: 'post', + data: params, + }) +} + +// 根据单位id和工程id 获取 协议id +export function getAgreementInfoById(params = {}) { + return request({ + url: '/material/select/getAgreementInfoById', + method: 'post', + data: params, + }) +} + +//提交 领料申请 +export function submitLeaseApply(params = {}) { + return request({ + url: '/material/base/tm_task/submitLeaseApply', + method: 'post', + data: params, + }) +} + +//编辑 领料申请 +export function editLeaseApply(params = {}) { + return request({ + url: '/material/base/tm_task/edit', + method: 'post', + data: params, + }) +} + +// 参数 领料任务 +export function deleteTask(taskId) { + return request({ + url: `/material/base/tm_task/${taskId}`, + method: 'delete', + }) +} + +// 根据 领料任务id 获取详情数据 +export function getLeaseListAll(params = {}) { + return request({ + url: '/material/base/tm_task/getLeaseListAll', + method: 'get', + params: params, + }) +} + +export function getLeaseOutOrder(params = {}) { + return request({ + url: '/material/base/leaseOutDetails/getLeaseOutOrder', + method: 'get', + params: params, + }) +} +// 根据 领料任务id 获取详情数据 +export function getLeaseListAllCq(params = {}) { + return request({ + url: '/material/base/tm_task/getLeaseListAllCq', + method: 'get', + params: params, + }) +} + +// 领料审核 同意 +export function auditLeaseByCompany(params = {}) { + return request({ + url: '/material/base/tm_task/auditLeaseByCompany', + method: 'post', + data: params, + }) +} +// 领料审核 同意 +export function auditLeaseByCompanyCq(params = {}) { + return request({ + url: '/material/base/tm_task/auditLeaseByCompanyCq', + method: 'post', + data: params, + }) +} + +// 领料审核 拒绝 +export function rejectLeaseByCompany(params = {}) { + return request({ + url: '/material/base/tm_task/rejectLeaseByCompany', + method: 'post', + data: params, + }) +} +// 领料审核 拒绝 +export function rejectLeaseByCompanyCq(params = {}) { + return request({ + url: '/material/base/tm_task/rejectLeaseByCompanyCq', + method: 'post', + data: params, + }) +} + +// 获取 物品类型 +export function getUseTypeTreee(params = {}) { + return request({ + url: '/material/backApply/getUseTypeTree', + method: 'post', + data: params, + }) +} + +// 机具领料申请-详情 +export function getLeaseApplyListAll(query) { + return request({ + url: '/material/base/tm_task/getLeaseApplyListAll', + method: 'get', + params: query, + }) +} + +export function getLeaseApplyAuditListAll(query) { + return request({ + url: '/material/base/tm_task/getLeaseApplyAuditListAll', + method: 'get', + params: query, + }) +} + +//领料出库 列表 +export function getLeaseAuditList(query) { + return request({ + url: '/material/base/tm_task/getLeaseAuditList', + method: 'get', + params: query, + }) +} + +//领料出库 详情 +export function getLeaseAuditListDetail(query) { + return request({ + url: '/material/base/tm_task/getLeaseAuditListDetail', + method: 'get', + params: query, + }) +} + +//领料出库 编码出库获取编码 +export function getDetailsByTypeId(query) { + return request({ + url: '/material/base/leaseOutDetails/getDetailsByTypeId', + method: 'get', + params: query, + }) +} + +// 领料出库 编码出库 保存 +export function submitOut(params) { + return request({ + url: '/material/base/leaseOutDetails/submitOutRfid', + method: 'post', + data: params, + }) +} + +// 领料出库 数量出库 保存 +export function submitNumOut(params) { + return request({ + url: '/material/base/leaseOutDetails/submitOutRfid', + method: 'post', + data: params, + }) +} + +// 领料确认 +export function updateLeaseTaskStatusConfirmByCq(params) { + return request({ + url: '/material/base/tm_task/updateLeaseTaskStatusConfirmByCq', + method: 'post', + data: params, + }) +} + +// 当前在用量 +export function getUseNumByTypeId(params) { + return request({ + url: '/material/backApply/getUseNumByTypeId', + method: 'get', + params, + }) +} + +// 批量审核 +export function auditAll(params) { + return request({ + url: '/material/backApply/auditAll', + method: 'post', + data: params, + }) +} + +// 获取费用承担方 +export function getCostBearingApi() { + return request({ + url: '/material/base/dic/pid', + method: 'get', + }) +} +// 推送智慧工程 +export function pushSmartEngineeringApi(data) { + return request({ + url: '/material/base/tm_task/pushToIntelligentProject', + method: 'post', + data, + }) +} +// 推送智慧工程 +export function getLeaseOutDetailRecordApi(data) { + return request({ + url: '/material/base/tm_task/getLeaseOutDetailRecord', + method: 'get', + params: data, + }) +} + +/* 获取抱杆成套下拉数据 */ +export const getHoldingPoleSelListApi = () => { + return request.get('/material/maWhole/selectWholeList') +} diff --git a/src/api/lease/picking.js b/src/api/lease/picking.js new file mode 100644 index 00000000..7a0be060 --- /dev/null +++ b/src/api/lease/picking.js @@ -0,0 +1,335 @@ +import request from '@/utils/request' + +// 往来单位-下拉 +export function getUnitList(query) { + return request({ + url: '/material/agreementInfo/getUnitList', + method: 'get', + params: query, + }) +} + +// 工程名称-下拉 +export function getProjectList(query) { + return request({ + url: '/material/agreementInfo/getProjectList', + method: 'get', + params: query, + }) +} + +// 协议管理-列表 +export function getAgreementList(query) { + return request({ + url: '/material/agreementInfo/getAgreementInfoAll', + method: 'get', + params: query, + }) +} +// 协议管理-详情 +export function getAgreementInfoId(query) { + return request({ + url: '/material/agreementInfo/getAgreementInfoId', + method: 'get', + params: query, + }) +} + +//协议管理--新增 +export function addAgreement(data) { + return request({ + url: '/material/agreementInfo/add', + method: 'post', + data: data, + }) +} + +// 协议管理--修改 +export function updateAgreement(data) { + return request({ + url: '/material/agreementInfo/update', + method: 'post', + data: data, + }) +} +// //协议管理--删除 +export function removeAgreement(data) { + return request({ + url: '/material/agreementInfo/remove', + method: 'post', + data: data, + }) +} + +// 机具领料-申请列表 +export function getLeaseManageListAll(query) { + return request({ + url: '/material/base/tm_task/getLeaseManageListAll', + method: 'get', + params: query, + }) +} +// 机具领料-申请列表 +export function getLeaseManageListAllCq(query) { + return request({ + url: '/material/base/tm_task/getLeaseManageListAllCq', + method: 'get', + params: query, + }) +} +// 机具领料-管理列表 +export function getLeaseAuditListAll(query) { + return request({ + url: '/material/base/tm_task/getLeaseAuditListAll', + method: 'get', + params: query, + }) +} + +// 获取 来往单位 列表 +export function getUnitData(params = {}) { + return request({ + url: '/material/select/getUnitCbx', + method: 'post', + data: params, + }) +} + +// 获取 工程 列表 +export function getProData(params = {}) { + return request({ + url: '/material/select/getSectionEngineeringCbx', + method: 'post', + data: params, + }) +} + +// 获取 设备树 +export function getDeviceTypeTree(params = {}) { + return request({ + url: '/material/select/getDeviceTypeTree', + method: 'post', + data: params, + }) +} + +// 根据单位id和工程id 获取 协议id +export function getAgreementInfoById(params = {}) { + return request({ + url: '/material/select/getAgreementInfoById', + method: 'post', + data: params, + }) +} + +//提交 领料申请 +export function submitLeaseApply(params = {}) { + return request({ + url: '/material/base/tm_task/submitLeaseApply', + method: 'post', + data: params, + }) +} + +//编辑 领料申请 +export function editLeaseApply(params = {}) { + return request({ + url: '/material/base/tm_task/edit', + method: 'post', + data: params, + }) +} + +// 参数 领料任务 +export function deleteTask(taskId) { + return request({ + url: `/material/base/tm_task/${taskId}`, + method: 'delete', + }) +} + +// 根据 领料任务id 获取详情数据 +export function getLeaseListAll(params = {}) { + return request({ + url: '/material/base/tm_task/getLeaseListAll', + method: 'get', + params: params, + }) +} + +export function getLeaseOutOrder(params = {}) { + return request({ + url: '/material/base/leaseOutDetails/getLeaseOutOrder', + method: 'get', + params: params, + }) +} +// 根据 领料任务id 获取详情数据 +export function getLeaseListAllCq(params = {}) { + return request({ + url: '/material/base/tm_task/getLeaseListAllCq', + method: 'get', + params: params, + }) +} + +// 领料审核 同意 +export function auditLeaseByCompany(params = {}) { + return request({ + url: '/material/base/tm_task/auditLeaseByCompany', + method: 'post', + data: params, + }) +} +// 领料审核 同意 +export function auditLeaseByCompanyCq(params = {}) { + return request({ + url: '/material/base/tm_task/auditLeaseByCompanyCq', + method: 'post', + data: params, + }) +} + +// 领料审核 拒绝 +export function rejectLeaseByCompany(params = {}) { + return request({ + url: '/material/base/tm_task/rejectLeaseByCompany', + method: 'post', + data: params, + }) +} +// 领料审核 拒绝 +export function rejectLeaseByCompanyCq(params = {}) { + return request({ + url: '/material/base/tm_task/rejectLeaseByCompanyCq', + method: 'post', + data: params, + }) +} + +// 获取 物品类型 +export function getUseTypeTreee(params = {}) { + return request({ + url: '/material/backApply/getUseTypeTree', + method: 'post', + data: params, + }) +} + +// 机具领料申请-详情 +export function getLeaseApplyListAll(query) { + return request({ + url: '/material/base/tm_task/getLeaseApplyListAll', + method: 'get', + params: query, + }) +} + +export function getLeaseApplyAuditListAll(query) { + return request({ + url: '/material/base/tm_task/getLeaseApplyAuditListAll', + method: 'get', + params: query, + }) +} + +//领料出库 列表 +export function getLeaseAuditList(query) { + return request({ + url: '/material/base/tm_task/getLeaseAuditList', + method: 'get', + params: query, + }) +} + +//领料出库 详情 +export function getLeaseAuditListDetail(query) { + return request({ + url: '/material/base/tm_task/getLeaseAuditListDetail', + method: 'get', + params: query, + }) +} + +//领料出库 编码出库获取编码 +export function getDetailsByTypeId(query) { + return request({ + url: '/material/base/leaseOutDetails/getDetailsByTypeId', + method: 'get', + params: query, + }) +} + +// 领料出库 编码出库 保存 +export function submitOut(params) { + return request({ + url: '/material/base/leaseOutDetails/submitOutRfid', + method: 'post', + data: params, + }) +} + +// 领料出库 数量出库 保存 +export function submitNumOut(params) { + return request({ + url: '/material/base/leaseOutDetails/submitOutRfid', + method: 'post', + data: params, + }) +} + +// 领料确认 +export function updateLeaseTaskStatusConfirmByCq(params) { + return request({ + url: '/material/base/tm_task/updateLeaseTaskStatusConfirmByCq', + method: 'post', + data: params, + }) +} + +// 当前在用量 +export function getUseNumByTypeId(params) { + return request({ + url: '/material/backApply/getUseNumByTypeId', + method: 'get', + params, + }) +} + +// 批量审核 +export function auditAll(params) { + return request({ + url: '/material/backApply/auditAll', + method: 'post', + data: params, + }) +} + +// 获取费用承担方 +export function getCostBearingApi() { + return request({ + url: '/material/base/dic/pid', + method: 'get', + }) +} +// 推送智慧工程 +export function pushSmartEngineeringApi(data) { + return request({ + url: '/material/base/tm_task/pushToIntelligentProject', + method: 'post', + data, + }) +} +// 推送智慧工程 +export function getLeaseOutDetailRecordApi(data) { + return request({ + url: '/material/base/tm_task/getLeaseOutDetailRecord', + method: 'get', + params: data, + }) +} + +/* 获取抱杆成套下拉数据 */ +export const getHoldingPoleSelListApi = () => { + return request.get('/material/maWhole/selectWholeList') +} diff --git a/src/api/lease/protocol.js b/src/api/lease/protocol.js index 0df83e80..a252380f 100644 --- a/src/api/lease/protocol.js +++ b/src/api/lease/protocol.js @@ -2,31 +2,58 @@ import request from '@/utils/request' // 往来单位-下拉 export function getUnitList(query) { - return request({ - url: '/material/select/getUnitList', - method: 'post', - data: { + return request({ + url: '/material/select/getUnitList', + method: 'post', + data: { - }, - }) + }, + }) } // 工程名称-下拉 export function getProjectList(query) { - return request({ - url: '/material/select/getProjectList', - method: 'post', - data: {}, - }) + return request({ + url: '/material/select/getProjectList', + method: 'post', + data: {}, + }) } -// 协议管理-列表 -export function getAgreementList(query) { - return request({ - url: '/material/bm_agreement_info/list', - method: 'get', - params: query, - }) +//协议管理-列表 +export function getListAgreement(query) { + return request({ + url: '/material/bm_agreement_info/list', + method: 'get', + params: query, + }) +} + + +// 协议管理-详情 +export function getAgreementDetail(id) { + return request({ + url: '/material/bm_agreement_info/'+id, + method: 'get', + }) +} + + +//协议管理--删除 +export function delAgreement(id) { + return request({ + url: '/material/bm_agreement_info/'+id, + method: 'delete', + }) +} + +// 协议管理--修改 +export function editAgreement(data) { + return request({ + url: '/material/bm_agreement_info', + method: 'put', + data: data, + }) } //协议管理--新增 @@ -38,316 +65,10 @@ export function addAgreement(data) { }) } -// 协议管理--修改 -export function updateAgreement(data) { +//协议管理--删除 +export function deleteFile(objectKey) { return request({ - url: '/material/bm_agreement_info', - method: 'put', - data: data, + url: '/material/bm_agreement_info/'+id, + method: 'delete', }) } - - -// 协议管理-详情 -export function getAgreementInfoId(id) { - return request({ - url: '/material/bm_agreement_info/'+id, - method: 'get', - params: query, - }) -} - -// //协议管理--删除 -export function removeAgreement(id) { - return request({ - url: '/material/bm_agreement_info/'+id, - method: 'delete', - data: data, - }) -} - -//资源图片上传 -export function imgUpLoad(param){ - const formData = new FormData() - formData.append('file', param.file) - formData.append('fileType', param.type) - return request({ - url: '/material/bm_file_info', - method: 'post', - data: formData, - header:'multipart/form-data' - }) -} - -// 机具领料-申请列表 -export function getLeaseManageListAll(query) { - return request({ - url: '/material/base/tm_task/getLeaseManageListAll', - method: 'get', - params: query, - }) -} -// 机具领料-申请列表 -export function getLeaseManageListAllCq(query) { - return request({ - url: '/material/base/tm_task/getLeaseManageListAllCq', - method: 'get', - params: query, - }) -} -// 机具领料-管理列表 -export function getLeaseAuditListAll(query) { - return request({ - url: '/material/base/tm_task/getLeaseAuditListAll', - method: 'get', - params: query, - }) -} - -// 获取 来往单位 列表 -export function getUnitData(params = {}) { - return request({ - url: '/material/select/getUnitCbx', - method: 'post', - data: params, - }) -} - -// 获取 工程 列表 -export function getProData(params = {}) { - return request({ - url: '/material/select/getSectionEngineeringCbx', - method: 'post', - data: params, - }) -} - -// 获取 设备树 -export function getDeviceTypeTree(params = {}) { - return request({ - url: '/material/select/getDeviceTypeTree', - method: 'post', - data: params, - }) -} - -// 根据单位id和工程id 获取 协议id -export function getAgreementInfoById(params = {}) { - return request({ - url: '/material/select/getAgreementInfoById', - method: 'post', - data: params, - }) -} - -//提交 领料申请 -export function submitLeaseApply(params = {}) { - return request({ - url: '/material/base/tm_task/submitLeaseApply', - method: 'post', - data: params, - }) -} - -//编辑 领料申请 -export function editLeaseApply(params = {}) { - return request({ - url: '/material/base/tm_task/edit', - method: 'post', - data: params, - }) -} - -// 参数 领料任务 -export function deleteTask(taskId) { - return request({ - url: `/material/base/tm_task/${taskId}`, - method: 'delete', - }) -} - -// 根据 领料任务id 获取详情数据 -export function getLeaseListAll(params = {}) { - return request({ - url: '/material/base/tm_task/getLeaseListAll', - method: 'get', - params: params, - }) -} - -export function getLeaseOutOrder(params = {}) { - return request({ - url: '/material/base/leaseOutDetails/getLeaseOutOrder', - method: 'get', - params: params, - }) -} -// 根据 领料任务id 获取详情数据 -export function getLeaseListAllCq(params = {}) { - return request({ - url: '/material/base/tm_task/getLeaseListAllCq', - method: 'get', - params: params, - }) -} - -// 领料审核 同意 -export function auditLeaseByCompany(params = {}) { - return request({ - url: '/material/base/tm_task/auditLeaseByCompany', - method: 'post', - data: params, - }) -} -// 领料审核 同意 -export function auditLeaseByCompanyCq(params = {}) { - return request({ - url: '/material/base/tm_task/auditLeaseByCompanyCq', - method: 'post', - data: params, - }) -} - -// 领料审核 拒绝 -export function rejectLeaseByCompany(params = {}) { - return request({ - url: '/material/base/tm_task/rejectLeaseByCompany', - method: 'post', - data: params, - }) -} -// 领料审核 拒绝 -export function rejectLeaseByCompanyCq(params = {}) { - return request({ - url: '/material/base/tm_task/rejectLeaseByCompanyCq', - method: 'post', - data: params, - }) -} - -// 获取 物品类型 -export function getUseTypeTreee(params = {}) { - return request({ - url: '/material/backApply/getUseTypeTree', - method: 'post', - data: params, - }) -} - -// 机具领料申请-详情 -export function getLeaseApplyListAll(query) { - return request({ - url: '/material/base/tm_task/getLeaseApplyListAll', - method: 'get', - params: query, - }) -} - -export function getLeaseApplyAuditListAll(query) { - return request({ - url: '/material/base/tm_task/getLeaseApplyAuditListAll', - method: 'get', - params: query, - }) -} - -//领料出库 列表 -export function getLeaseAuditList(query) { - return request({ - url: '/material/base/tm_task/getLeaseAuditList', - method: 'get', - params: query, - }) -} - -//领料出库 详情 -export function getLeaseAuditListDetail(query) { - return request({ - url: '/material/base/tm_task/getLeaseAuditListDetail', - method: 'get', - params: query, - }) -} - -//领料出库 编码出库获取编码 -export function getDetailsByTypeId(query) { - return request({ - url: '/material/base/leaseOutDetails/getDetailsByTypeId', - method: 'get', - params: query, - }) -} - -// 领料出库 编码出库 保存 -export function submitOut(params) { - return request({ - url: '/material/base/leaseOutDetails/submitOutRfid', - method: 'post', - data: params, - }) -} - -// 领料出库 数量出库 保存 -export function submitNumOut(params) { - return request({ - url: '/material/base/leaseOutDetails/submitOutRfid', - method: 'post', - data: params, - }) -} - -// 领料确认 -export function updateLeaseTaskStatusConfirmByCq(params) { - return request({ - url: '/material/base/tm_task/updateLeaseTaskStatusConfirmByCq', - method: 'post', - data: params, - }) -} - -// 当前在用量 -export function getUseNumByTypeId(params) { - return request({ - url: '/material/backApply/getUseNumByTypeId', - method: 'get', - params, - }) -} - -// 批量审核 -export function auditAll(params) { - return request({ - url: '/material/backApply/auditAll', - method: 'post', - data: params, - }) -} - -// 获取费用承担方 -export function getCostBearingApi() { - return request({ - url: '/material/base/dic/pid', - method: 'get', - }) -} -// 推送智慧工程 -export function pushSmartEngineeringApi(data) { - return request({ - url: '/material/base/tm_task/pushToIntelligentProject', - method: 'post', - data, - }) -} -// 推送智慧工程 -export function getLeaseOutDetailRecordApi(data) { - return request({ - url: '/material/base/tm_task/getLeaseOutDetailRecord', - method: 'get', - params: data, - }) -} - -/* 获取抱杆成套下拉数据 */ -export const getHoldingPoleSelListApi = () => { - return request.get('/material/maWhole/selectWholeList') -} diff --git a/src/views/material/lease/apply/component/outbound.vue b/src/views/material/lease/apply/component/outbound.vue new file mode 100644 index 00000000..cbb96a4b --- /dev/null +++ b/src/views/material/lease/apply/component/outbound.vue @@ -0,0 +1,1181 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + 导出 + + + + + + + + + + + + + + + + + + 查看 + + 出库 + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + + + 出库记录 + 出库单 + + + + + + + 编码出库 + + + 数量出库 + + + + + + + + + + + + + + + 查询 + 重置 + 导出 + + + + + + + + + + + + + + + + + + + 待出库数量:{{ outNum }} + + + + + 部分设备出库时,需进行装车,需记录车牌号码 + + + + + + + + + + + + + 查询 + 重置 + + + + + 出库 + + + + + + + + + + + + + + + + + + + + + + + + 部分设备出库时,需进行装车,需记录车牌号码 + + + + + + + + + 出库 + + + + + + + + + + + + + + + + + + + + + + + 出库单 + + + + 领料单位:{{ leaseOutData.unitName }} + + + 工程名称:{{ leaseOutData.proName }} + + + 时间:{{ leaseOutData.updateTime }} + + + 编号:{{ leaseOutData.code }} + + + + + + + + + + + + + + + + + 审核: + + + 领料: + + + 仓库: + + + 操作人: + + + + + + + + + + + diff --git a/src/views/material/lease/apply/component/picking.vue b/src/views/material/lease/apply/component/picking.vue new file mode 100644 index 00000000..cbb96a4b --- /dev/null +++ b/src/views/material/lease/apply/component/picking.vue @@ -0,0 +1,1181 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + 导出 + + + + + + + + + + + + + + + + + + 查看 + + 出库 + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + + + 出库记录 + 出库单 + + + + + + + 编码出库 + + + 数量出库 + + + + + + + + + + + + + + + 查询 + 重置 + 导出 + + + + + + + + + + + + + + + + + + + 待出库数量:{{ outNum }} + + + + + 部分设备出库时,需进行装车,需记录车牌号码 + + + + + + + + + + + + + 查询 + 重置 + + + + + 出库 + + + + + + + + + + + + + + + + + + + + + + + + 部分设备出库时,需进行装车,需记录车牌号码 + + + + + + + + + 出库 + + + + + + + + + + + + + + + + + + + + + + + 出库单 + + + + 领料单位:{{ leaseOutData.unitName }} + + + 工程名称:{{ leaseOutData.proName }} + + + 时间:{{ leaseOutData.updateTime }} + + + 编号:{{ leaseOutData.code }} + + + + + + + + + + + + + + + + + 审核: + + + 领料: + + + 仓库: + + + 操作人: + + + + + + + + + + + diff --git a/src/views/material/lease/protocol/index.vue b/src/views/material/lease/protocol/index.vue index 659e4fc6..87f7867e 100644 --- a/src/views/material/lease/protocol/index.vue +++ b/src/views/material/lease/protocol/index.vue @@ -1,757 +1,890 @@ - - - - - - - - - 查询 - 重置 - - - - - - - 新建 - - - - 导出 - - - - - - - - - - - - - - - - - - 编辑 - 删除 - - - - - + + + + - - + 搜索 + 重置 + + + + + 新增 - - - - - - - - - - - - - - - - - - - - - - - - - + + + 导出 + + + + - - - - - - + + + + {{ (queryParams.pageNum - 1) * queryParams.pageSize + scope.$index + 1 }} + + + + + + + + + + + + + + 内部单位 + + + 外部单位 + + - - - - - - - - - - - - - - - - - - + + + + 查看 + + + + + + + + 查看 + + + 编辑 + + + 删除 + + + + - - - - - - + - - - - - - - - - - - + + + + + + + + + + + + + From 9d5bcd5b4fe0e77ffbd96a22cd38ba067b91b4fd Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Tue, 12 Nov 2024 18:43:01 +0800 Subject: [PATCH 2/3] =?UTF-8?q?lsun=20=E5=8D=8F=E8=AE=AE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/lease/protocol/index.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/material/lease/protocol/index.vue b/src/views/material/lease/protocol/index.vue index 87f7867e..7709b123 100644 --- a/src/views/material/lease/protocol/index.vue +++ b/src/views/material/lease/protocol/index.vue @@ -645,7 +645,9 @@ export default { //** 提交按钮 */ submitForm() { this.$refs["form"].validate(async valid => { - if (valid) { + this.form.projectId = this.form.proId; + await this.addAgreementTemp(this.form); + /*if (valid) { if (this.form.supplierId != undefined) { const reqData = new FormData(); if(this.businessLicenseListTemp.length!=0){ @@ -658,15 +660,18 @@ export default { } } else { + console.log(1) if(this.businessLicenseListTemp.length!=0){ + console.log(2) await this.getImaUpload(), await this.addAgreementTemp(this.form); }else{ + console.log(3) await this.addAgreementTemp(this.form); } } - } + }*/ }); this.uploadKey = Date.now(); }, @@ -679,7 +684,7 @@ export default { console.log('res',res) if (res.code === 200) { res.data.forEach(item=>{ - let objTwo = { 'name': item.name, 'url': item.url,'modelId': null, 'fileType':4, 'taskType':9}; + let objTwo = { 'name': item.name, 'url': item.url, 'taskType':10}; this.businessLicenseFileList.push(objTwo); }) } else { From 3bce0ae64940cf3b6e14f34878770add07040a40 Mon Sep 17 00:00:00 2001 From: lSun <15893999301@qq.com> Date: Wed, 13 Nov 2024 13:56:53 +0800 Subject: [PATCH 3/3] =?UTF-8?q?lsun=20=E5=8D=8F=E8=AE=AE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/lease/protocol/index.vue | 121 +++++++++++++++----- 1 file changed, 93 insertions(+), 28 deletions(-) diff --git a/src/views/material/lease/protocol/index.vue b/src/views/material/lease/protocol/index.vue index 7709b123..5580bf3b 100644 --- a/src/views/material/lease/protocol/index.vue +++ b/src/views/material/lease/protocol/index.vue @@ -11,6 +11,19 @@ /> + + + + + + + + + + + 搜索 重置 @@ -60,11 +73,9 @@ - - 内部单位 - - - 外部单位 + + 内部单位 + 外部单位 @@ -89,7 +100,7 @@ size="mini" type="text" icon="el-icon-zoom-in" - @click="handleUpdate(scope.row)" + @click="handleView(scope.row)" > 查看 @@ -236,6 +247,17 @@ + + + + + + + + + + + @@ -297,6 +319,7 @@ import { downloadFile,downloadFileData } from '@/utils/download' import { getToken } from '@/utils/auth' import {Base64} from 'js-base64' import { forEach } from 'jszip'; +import {listUser} from "@/api/system/user"; export default { name: "supplier", data() { @@ -320,6 +343,8 @@ export default { // 非多个禁用 multiple: true, + // 日期范围 + dateRange: [], // 显示搜索条件 showSearch: true, @@ -343,21 +368,15 @@ export default { title: "", // 是否显示弹出层 open: false, + showConfirmButton:true, // 查询参数 queryParams: { pageNum: 1, pageSize: 10, - keyWord:undefined + keyWord:undefined, + status:undefined, + time: null, //申请时间 }, - // 查询参数 - queryTeam: { - pageNum: 1, - pageSize: 10, - name: undefined, - sex: undefined, - teamId: undefined, - }, - fileList:[], businessLicenseFileList:[], businessLicenseListTemp:[], @@ -570,7 +589,15 @@ export default { async getList() { this.loading = true; - getListAgreement(this.queryParams).then(response => { + const params = { + keyWord: this.queryParams.keyWord, + startTime: this.queryParams.time && this.queryParams.time[0], + endTime: this.queryParams.time && this.queryParams.time[1], + pageSize: this.queryParams.pageSize, + pageNum: this.queryParams.pageNum, + status: this.queryParams.status + }; + getListAgreement(this.addDateRange(params)).then(response => { this.houseList = response.rows; this.total = response.total; this.loading = false; @@ -609,8 +636,11 @@ export default { this.businessLicenseFileList=[]; const supplierId = row.supplierId; this.modelIdTemp = row.supplierId; - getAgreementDetail(supplierId).then((response) => { + + var id = row.agreementId; + getAgreementDetail(id).then((response) => { this.form = response.data; + this.form.proId = response.data.projectId; if(response.data.bmFileInfos!=null){ this.businessLicenseListTemp = response.data.bmFileInfos; this.businessLicenseListTemp.forEach(item=>{ @@ -629,6 +659,40 @@ export default { this.title = '修改' }) }, + + handleView(row){ + this.reset() + this.uploadKey = Date.now(); + this.delBusinessFileIdList=[]; + this.businessLicenseListTemp=[]; + this.businessLicenseFileList=[]; + const supplierId = row.supplierId; + this.modelIdTemp = row.supplierId; + + var id = row.agreementId; + getAgreementDetail(id).then((response) => { + this.form = response.data; + this.form.proId = response.data.projectId; + if(response.data.bmFileInfos!=null){ + this.businessLicenseListTemp = response.data.bmFileInfos; + this.businessLicenseListTemp.forEach(item=>{ + if(item.name.includes('/')){ + const fileNameWithTimestamp = item.name.split('/').pop(); + const parts = fileNameWithTimestamp.split('_'); + const fileType = item.name.split('.').pop(); + const mainFileName = parts.slice(0, parts.length - 1).join('_'); + item.name = mainFileName + '.' +fileType; + } + }) + }else{ + this.businessLicenseListTemp = []; + } + this.showHouse = true + this.showConfirmButton = false + this.title = '查询' + }) + }, + // 表单重置 reset() { this.form = {}; @@ -637,8 +701,10 @@ export default { /** 重置按钮操作 */ resetQuery() { - this.resetForm("queryForm"); this.queryParams.keyWord=null; + this.queryParams.status=null; + this.queryParams.time = []; + this.resetForm("queryForm"); this.handleQuery(); }, @@ -646,9 +712,8 @@ export default { submitForm() { this.$refs["form"].validate(async valid => { this.form.projectId = this.form.proId; - await this.addAgreementTemp(this.form); - /*if (valid) { - if (this.form.supplierId != undefined) { + if (valid) { + if (this.form.agreementId != undefined) { const reqData = new FormData(); if(this.businessLicenseListTemp.length!=0){ await this.getImaUploadEdit(), @@ -671,7 +736,7 @@ export default { } } - }*/ + } }); this.uploadKey = Date.now(); }, @@ -784,11 +849,11 @@ export default { /** 删除按钮操作 */ handleDelete(row) { - const supplierId = row.supplierId + var id = row.agreementId this.$modal .confirm('是否确认删除数据项?') .then(function () { - return delAgreement(supplierId) + return delAgreement(id) }) .then(() => { this.$modal.msgSuccess('删除成功') @@ -798,9 +863,9 @@ export default { }, handleExport() { - this.download('/material/wh_house_info/export', { + this.download('/material/bm_agreement_info/export', { ...this.queryParams - }, `仓库管理_${new Date().getTime()}.xlsx`) + }, `协议管理 _${new Date().getTime()}.xlsx`) }, /** 搜索按钮操作 */