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 @@ + + + + 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 @@ + + + + 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 @@ 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 @@ - -