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