标段解析
This commit is contained in:
parent
f97458fda1
commit
12e2cc847c
|
|
@ -64,6 +64,15 @@ export function delProDataAPI(data) {
|
|||
})
|
||||
}
|
||||
|
||||
// 招标解析->提交标段解析
|
||||
export function saveBidDataAPI(data) {
|
||||
return request({
|
||||
url: '/smartBid/analysis/saveBidData',
|
||||
method: 'POST',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/* 测试 mq */
|
||||
export function testMQAPI(params) {
|
||||
return request({
|
||||
|
|
|
|||
|
|
@ -78,7 +78,8 @@
|
|||
<TableModel :showSearch="false" :showOperation="false" :showRightTools="false"
|
||||
ref="detailTableRef" :columnsList="detailColumnsList" :request-api="getBidListAPI"
|
||||
:sendParams="sendParams" :handleColWidth="180" :isRadioShow="true"
|
||||
@radio-change="handleRadioChange" :indexNumShow="false" :isShowtableCardStyle="false" :radioKey="radioKey">
|
||||
@radio-change="handleRadioChange" :indexNumShow="false" :isShowtableCardStyle="false"
|
||||
:radioKey="radioKey">
|
||||
<template slot="tableTitle">
|
||||
<div class="card-header">
|
||||
<img src="@/assets/enterpriseLibrary/basic-info.png" alt="标的信息">
|
||||
|
|
@ -126,7 +127,7 @@
|
|||
|
||||
<script>
|
||||
import { decryptWithSM4, encryptWithSM4 } from '@/utils/sm'
|
||||
import { getProDetailAPI, getBidListAPI } from '@/api/analysis/analysis'
|
||||
import { getProDetailAPI, getBidListAPI, saveBidDataAPI } from '@/api/analysis/analysis'
|
||||
import { formLabel, detailColumnsList } from '../config'
|
||||
import TableModel from '@/components/TableModel2'
|
||||
import BidForm from './BidForm.vue'
|
||||
|
|
@ -165,15 +166,15 @@ export default {
|
|||
},
|
||||
defaultParams,
|
||||
selectedRow: {},
|
||||
uploadType: ['标段文件', '标段文件2'],
|
||||
uploadType: [],
|
||||
form: {
|
||||
delFileList: []
|
||||
},
|
||||
rules: {},
|
||||
dialogVisible:false,
|
||||
fileData:{},
|
||||
dialogVisible: false,
|
||||
fileData: {},
|
||||
radioKey: 'bidId',
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
|
|
@ -222,6 +223,7 @@ export default {
|
|||
console.log('res:', res);
|
||||
if (res.code === 200) {
|
||||
this.detailData = res.data || {}
|
||||
this.uploadType = res.data.bidCompositions || []
|
||||
} else {
|
||||
this.$message.error(res.msg || '获取详情失败')
|
||||
}
|
||||
|
|
@ -295,6 +297,9 @@ export default {
|
|||
// 所有校验通过,组装完整数据
|
||||
let formData = {
|
||||
...data,
|
||||
bidId: this.selectedRow.bidId,
|
||||
proId: this.proId,
|
||||
uploadType: this.uploadType,
|
||||
allFiles: [
|
||||
...data.fileList.map((file) =>
|
||||
JSON.parse(JSON.stringify(file)),
|
||||
|
|
@ -325,12 +330,12 @@ export default {
|
|||
this.$el.querySelector('.el-dialog') || document.body,
|
||||
})
|
||||
console.log('所有表单校验通过,完整数据:', formData)
|
||||
/* const res = await this.saveData(formData)
|
||||
const res = await this.saveData(formData)
|
||||
if (res.code === 200) {
|
||||
this.handleReuslt(res)
|
||||
} else {
|
||||
this.$modal.msgError(res.msg)
|
||||
} */
|
||||
}
|
||||
} catch (error) {
|
||||
} finally {
|
||||
if (this.loading) {
|
||||
|
|
@ -342,25 +347,14 @@ export default {
|
|||
// 保存接口
|
||||
async saveData(formData) {
|
||||
return new Promise((resolve, reject) => {
|
||||
if (this.isAdd === 'add') {
|
||||
// 新增
|
||||
addDataAPI(formData)
|
||||
.then((res) => {
|
||||
resolve(res)
|
||||
})
|
||||
.catch((error) => {
|
||||
reject(error)
|
||||
})
|
||||
} else {
|
||||
// 修改
|
||||
editDataAPI(formData)
|
||||
.then((res) => {
|
||||
resolve(res)
|
||||
})
|
||||
.catch((error) => {
|
||||
reject(error)
|
||||
})
|
||||
}
|
||||
// 新增
|
||||
saveBidDataAPI(formData)
|
||||
.then((res) => {
|
||||
resolve(res)
|
||||
})
|
||||
.catch((error) => {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
},
|
||||
}
|
||||
|
|
@ -545,5 +539,4 @@ export default {
|
|||
color: red;
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
Loading…
Reference in New Issue