新购文件管理

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) {
return request({
url: '/material/purchase_check_details/uploadFile',
url: '/material/bm_file_info',
method: 'post',
data: data
})

View File

@ -62,7 +62,7 @@ export function addNoticeUser(data) {
})
}
// 仓库管理--修改
export function bmNoticeInfo(data) {
return request({
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) {
return request({
url: '/material/wh_house_info/'+ id,
@ -98,7 +108,7 @@ export function getHouseDetail(id) {
}
// 物资名称下拉框-
export function queryKeeperNameApi(query) {
return request({
url: '/material/ma_type/selectMaTypeListByTypeId',
@ -109,7 +119,7 @@ export function queryKeeperNameApi(query) {
// 仓库管理--删除
export function delHouse(id) {
return request({
url: '/material/wh_house_info/' + id,
@ -117,7 +127,7 @@ export function delHouse(id) {
})
}
// 仓库管理--修改
export function editHouse(data) {
return request({
url: '/material/wh_house_info',
@ -126,7 +136,7 @@ export function editHouse(data) {
})
}
// 仓库管理--新增
export function addHouse(data) {
return request({
url: '/material/wh_house_info',
@ -135,7 +145,7 @@ export function addHouse(data) {
})
}
// 工程项目-列表
export function getProjectList(query) {
return request({
url: '/material/base/bmProjectInfo/projectInfoAll',

View File

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

View File

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