新购文件管理

This commit is contained in:
zzyuan 2024-11-06 19:06:30 +08:00
parent b971631106
commit 534a14bc0f
4 changed files with 30 additions and 24 deletions

View File

@ -37,7 +37,7 @@ export function getPurchaseFileList(query) {
// 上传报告附件 - 异步 // 上传报告附件 - 异步
export function uploadPurchaseFile(data) { export function uploadPurchaseFile(data) {
return request({ return request({
url: '/material/purchase_check_details/uploadFile', url: '/material/bm_file_info',
method: 'post', method: 'post',
data: data data: data
}) })

View File

@ -62,7 +62,7 @@ export function addNoticeUser(data) {
}) })
} }
// 仓库管理--修改
export function bmNoticeInfo(data) { export function bmNoticeInfo(data) {
return request({ return request({
url: '/material/purchase_notice_person/batchSendSms', url: '/material/purchase_notice_person/batchSendSms',
@ -89,7 +89,17 @@ export function equipmentTypeTree(query) {
}) })
} }
//查看机具类型管理列表详细信息
// 上传报告附件
export function uploadPurchaseFile(data) {
return request({
url: '/material/bm_file_info',
method: 'post',
data: data
})
}
export function getHouseDetail(id) { export function getHouseDetail(id) {
return request({ return request({
url: '/material/wh_house_info/'+ id, url: '/material/wh_house_info/'+ id,
@ -98,7 +108,7 @@ export function getHouseDetail(id) {
} }
// 物资名称下拉框-
export function queryKeeperNameApi(query) { export function queryKeeperNameApi(query) {
return request({ return request({
url: '/material/ma_type/selectMaTypeListByTypeId', url: '/material/ma_type/selectMaTypeListByTypeId',
@ -109,7 +119,7 @@ export function queryKeeperNameApi(query) {
// 仓库管理--删除
export function delHouse(id) { export function delHouse(id) {
return request({ return request({
url: '/material/wh_house_info/' + id, url: '/material/wh_house_info/' + id,
@ -117,7 +127,7 @@ export function delHouse(id) {
}) })
} }
// 仓库管理--修改
export function editHouse(data) { export function editHouse(data) {
return request({ return request({
url: '/material/wh_house_info', url: '/material/wh_house_info',
@ -126,7 +136,7 @@ export function editHouse(data) {
}) })
} }
// 仓库管理--新增
export function addHouse(data) { export function addHouse(data) {
return request({ return request({
url: '/material/wh_house_info', url: '/material/wh_house_info',
@ -135,7 +145,7 @@ export function addHouse(data) {
}) })
} }
// 工程项目-列表
export function getProjectList(query) { export function getProjectList(query) {
return request({ return request({
url: '/material/base/bmProjectInfo/projectInfoAll', url: '/material/base/bmProjectInfo/projectInfoAll',

View File

@ -196,7 +196,7 @@
{dictLabel:"型式试验报告",dictCode:"1",fileName:"",fileUrl:""}, {dictLabel:"型式试验报告",dictCode:"1",fileName:"",fileUrl:""},
{dictLabel:"出厂检测报告",dictCode:"2",fileName:"",fileUrl:""}, {dictLabel:"出厂检测报告",dictCode:"2",fileName:"",fileUrl:""},
{dictLabel:"第三方监测报告",dictCode:"3",fileName:"",fileUrl:""}, {dictLabel:"第三方监测报告",dictCode:"3",fileName:"",fileUrl:""},
{dictLabel:"其他报告",dictCode:"99",fileName:"",fileUrl:""}, {dictLabel:"其他报告",dictCode:"4",fileName:"",fileUrl:""},
], ],
// //
queryParams: { queryParams: {
@ -318,15 +318,12 @@
handleFileSuccess(response, file, fileList) { handleFileSuccess(response, file, fileList) {
if(response.code==200){ if(response.code==200){
let param = { let param = {
"id": this.Id,
"taskId": this.taskId, "taskId": this.taskId,
"fileName": response.data.name, "taskType": "0",
"fileUrl": response.data.url, "name": response.data.name,
"typeId": this.rowData.typeId, "url": response.data.url,
"dictCode": this.rowData.dictCode,
"dictLabel": this.rowData.dictLabel,
"modelId": this.rowData.typeId, "modelId": this.rowData.typeId,
"createBy": "" "fileType": this.rowData.dictCode,
} }
console.log(param) console.log(param)
uploadPurchaseFile(param).then((response) => { uploadPurchaseFile(param).then((response) => {

View File

@ -356,7 +356,7 @@ export default {
{dictLabel:"型式试验报告",dictCode:"1",fileName:"",fileUrl:""}, {dictLabel:"型式试验报告",dictCode:"1",fileName:"",fileUrl:""},
{dictLabel:"出厂检测报告",dictCode:"2",fileName:"",fileUrl:""}, {dictLabel:"出厂检测报告",dictCode:"2",fileName:"",fileUrl:""},
{dictLabel:"第三方监测报告",dictCode:"3",fileName:"",fileUrl:""}, {dictLabel:"第三方监测报告",dictCode:"3",fileName:"",fileUrl:""},
{dictLabel:"其他报告",dictCode:"99",fileName:"",fileUrl:""}, {dictLabel:"其他报告",dictCode:"4",fileName:"",fileUrl:""},
], ],
// //
dialogImageUrl: '', dialogImageUrl: '',
@ -710,15 +710,14 @@ export default {
handleFileSuccess(response, file, fileList) { handleFileSuccess(response, file, fileList) {
if(response.code==200){ if(response.code==200){
let param = { let param = {
"id": this.Id, // "id": this.id,
"taskId": this.taskId, "taskId": this.taskId,
"fileName": response.data.name, "taskType": "0",
"fileUrl": response.data.url, "name": response.data.name,
"typeId": this.rowData.typeId, "url": response.data.url,
"dictCode": this.rowData.dictCode,
"dictLabel": this.rowData.dictLabel,
"modelId": this.rowData.typeId, "modelId": this.rowData.typeId,
"createBy": "" "fileType": this.rowData.dictCode,
// "dictLabel": this.rowData.dictLabel,
} }
console.log(param) console.log(param)
uploadPurchaseFile(param).then((response) => { uploadPurchaseFile(param).then((response) => {