|
@@ -147,8 +147,7 @@
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button type="primary" size="small" :disabled="task.done" :plain="task.done" v-if="task.id == 7" :loading="task.type == 1">
|
|
<el-button type="primary" size="small" :disabled="task.done" :plain="task.done" v-if="task.id == 7" :loading="task.type == 1">
|
|
|
<span v-if="task.done">已完成</span>
|
|
<span v-if="task.done">已完成</span>
|
|
|
- <span v-else @click="confirmTask(task)">{{task.type == 1 ? '监控中' : task.type == 0 ? '待确认' :''}}</span>
|
|
|
|
|
-
|
|
|
|
|
|
|
+ <span v-else @click="confirmTask(task)">{{task.type == 1 ? '监控中' : task.type == 2 ? '待确认' :''}}</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button type="primary" size="small" :disabled="task.done" :plain="task.done" v-if="task.id != 3 && task.id != 7">
|
|
<el-button type="primary" size="small" :disabled="task.done" :plain="task.done" v-if="task.id != 3 && task.id != 7">
|
|
|
<span v-if="task.done">已完成</span>
|
|
<span v-if="task.done">已完成</span>
|
|
@@ -173,17 +172,19 @@
|
|
|
<th>年份</th>
|
|
<th>年份</th>
|
|
|
<th>结果</th>
|
|
<th>结果</th>
|
|
|
<th>金额</th>
|
|
<th>金额</th>
|
|
|
- <th>操作</th>
|
|
|
|
|
|
|
+ <th>地址</th>
|
|
|
|
|
+ <!-- <th>操作</th> -->
|
|
|
</tr>
|
|
</tr>
|
|
|
</thead>
|
|
</thead>
|
|
|
<tbody>
|
|
<tbody>
|
|
|
<tr v-for="item in historyBidList" :key="item.id">
|
|
<tr v-for="item in historyBidList" :key="item.id">
|
|
|
<td>{{ item.year }}</td>
|
|
<td>{{ item.year }}</td>
|
|
|
- <td> 中标</td>
|
|
|
|
|
|
|
+ <td>{{ item.type }}</td>
|
|
|
<td>{{ UTIL.formatCurrency(item.money/10000) }} 万元</td>
|
|
<td>{{ UTIL.formatCurrency(item.money/10000) }} 万元</td>
|
|
|
- <td class="link-text" >
|
|
|
|
|
|
|
+ <td>{{ item.address }}</td>
|
|
|
|
|
+ <!-- <td class="link-text" >
|
|
|
查看
|
|
查看
|
|
|
- </td>
|
|
|
|
|
|
|
+ </td> -->
|
|
|
</tr>
|
|
</tr>
|
|
|
</tbody>
|
|
</tbody>
|
|
|
</table>
|
|
</table>
|
|
@@ -400,6 +401,23 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-dialog> -->
|
|
</el-dialog> -->
|
|
|
|
|
|
|
|
|
|
+ <el-dialog v-model="dialogZBJKVisible" draggable title="提示信息" width="500">
|
|
|
|
|
+ <div style="height: auto;overflow: auto;">
|
|
|
|
|
+ <el-select v-model="ruleZBJKForm.c_project_jkname" placeholder="请选择匹配的项目" value-key="value" @change="handleJKTypeChange" >
|
|
|
|
|
+ <el-option v-for="item in zbjkProject" :key="item.id" :label="item.name" :value="item.id" />
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <div class="dialog-footer">
|
|
|
|
|
+ <!-- <el-button @click="dialogZBJKVisible = false" class="btn">取消</el-button> -->
|
|
|
|
|
+ <el-button type="primary" class="btn enter-btn" @click="handleJKZBJKSubmit()">
|
|
|
|
|
+ 确认
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
<el-dialog v-model="dialogZBVisible" draggable title="提示信息" width="500">
|
|
<el-dialog v-model="dialogZBVisible" draggable title="提示信息" width="500">
|
|
|
<div style="overflow: auto;">
|
|
<div style="overflow: auto;">
|
|
|
<el-form
|
|
<el-form
|
|
@@ -584,6 +602,21 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
+ <el-dialog v-model="dialogFinishBidVisible2" draggable title="提示信息" width="350">
|
|
|
|
|
+ <div v-if="finishBidObject?.c_detail_url" style="padding-top: 20px;text-align: center;color: var(--primary);">
|
|
|
|
|
+ <strong style="cursor: pointer;" @click="handleOpenViewClick('0')">点击查看招标结果文件</strong>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <div class="dialog-footer">
|
|
|
|
|
+ <el-button @click="dialogFinishBidVisible2 = false" class="btn">取消</el-button>
|
|
|
|
|
+ <el-button type="primary" class="btn enter-btn" @click="handleFinishBidSubmit()">
|
|
|
|
|
+ 确认
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dialog>
|
|
|
|
|
+
|
|
|
<el-dialog v-model="dialogBidFileVisible" draggable title="提示信息" width="300">
|
|
<el-dialog v-model="dialogBidFileVisible" draggable title="提示信息" width="300">
|
|
|
<div>
|
|
<div>
|
|
|
<strong style="cursor: pointer;" @click="handleOpenViewClick('1')">点击查看招标公告</strong>
|
|
<strong style="cursor: pointer;" @click="handleOpenViewClick('1')">点击查看招标公告</strong>
|
|
@@ -644,9 +677,11 @@ import type { FormInstance, FormRules } from 'element-plus'
|
|
|
const userInfo = JSON.parse(localStorage.getItem('userInfo') || '{}')
|
|
const userInfo = JSON.parse(localStorage.getItem('userInfo') || '{}')
|
|
|
const userName = userInfo?.username =='user_xtw' ? '徐天炜' : userInfo?.username || ''
|
|
const userName = userInfo?.username =='user_xtw' ? '徐天炜' : userInfo?.username || ''
|
|
|
const projects = ref<any>({})
|
|
const projects = ref<any>({})
|
|
|
|
|
+const soureProjects = ref<any>({})
|
|
|
const left_btn_disabled = ref(false)
|
|
const left_btn_disabled = ref(false)
|
|
|
const right_btn_disabled = ref(false)
|
|
const right_btn_disabled = ref(false)
|
|
|
const dialogZBVisible = ref(false)
|
|
const dialogZBVisible = ref(false)
|
|
|
|
|
+const dialogZBJKVisible = ref(false)
|
|
|
const tempTask = ref<any>({})
|
|
const tempTask = ref<any>({})
|
|
|
const dialogBidVisible = ref(false)
|
|
const dialogBidVisible = ref(false)
|
|
|
const ruleBidFormRef = ref<FormInstance>()
|
|
const ruleBidFormRef = ref<FormInstance>()
|
|
@@ -666,36 +701,7 @@ const ruleBidForm = reactive<RuleForm>({
|
|
|
file:null,
|
|
file:null,
|
|
|
},
|
|
},
|
|
|
})
|
|
})
|
|
|
-const historyBidList = ref<any>([
|
|
|
|
|
- {
|
|
|
|
|
- year: '2019',
|
|
|
|
|
- money: '8585360'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- year: '2020',
|
|
|
|
|
- money: '8585360'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- year: '2021',
|
|
|
|
|
- money: '8585360'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- year: '2022',
|
|
|
|
|
- money: '8499576'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- year: '2023',
|
|
|
|
|
- money: '8499576'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- year: '2024',
|
|
|
|
|
- money: '8499576'
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- year: '2025',
|
|
|
|
|
- money: '8395152'
|
|
|
|
|
- },
|
|
|
|
|
-])
|
|
|
|
|
|
|
+const historyBidList = ref<any>([])
|
|
|
|
|
|
|
|
const dialogBidFileVisible = ref(false)
|
|
const dialogBidFileVisible = ref(false)
|
|
|
const bidRules = reactive<FormRules<RuleForm>>({
|
|
const bidRules = reactive<FormRules<RuleForm>>({
|
|
@@ -849,6 +855,7 @@ const ruleKBJKForm = reactive<RuleForm>({
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const dialogFinishBidVisible = ref(false)
|
|
const dialogFinishBidVisible = ref(false)
|
|
|
|
|
+const dialogFinishBidVisible2 = ref(false)
|
|
|
const finishBidObjectTemp = ref({
|
|
const finishBidObjectTemp = ref({
|
|
|
flag:false,
|
|
flag:false,
|
|
|
url:''
|
|
url:''
|
|
@@ -933,7 +940,12 @@ const confirmTask = async (task: any) => {
|
|
|
ElMessage.error(msg)
|
|
ElMessage.error(msg)
|
|
|
}else{
|
|
}else{
|
|
|
tempTask.value = task
|
|
tempTask.value = task
|
|
|
- dialogZBVisible.value = true
|
|
|
|
|
|
|
+ if(task.type != 2){
|
|
|
|
|
+ dialogZBVisible.value = true
|
|
|
|
|
+ }else{
|
|
|
|
|
+ dialogZBJKVisible.value = true
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}else if(task.id == "4"){
|
|
}else if(task.id == "4"){
|
|
|
const msg = getMessage(4)
|
|
const msg = getMessage(4)
|
|
@@ -956,7 +968,11 @@ const confirmTask = async (task: any) => {
|
|
|
const res = await getfinishProjects()
|
|
const res = await getfinishProjects()
|
|
|
if(res){
|
|
if(res){
|
|
|
finishBidOption.value = res
|
|
finishBidOption.value = res
|
|
|
- dialogFinishBidVisible.value = true
|
|
|
|
|
|
|
+ if(task.type != 2){
|
|
|
|
|
+ dialogFinishBidVisible.value = true
|
|
|
|
|
+ }else{
|
|
|
|
|
+ dialogFinishBidVisible2.value = true
|
|
|
|
|
+ }
|
|
|
}else{
|
|
}else{
|
|
|
finishBidOption.value = []
|
|
finishBidOption.value = []
|
|
|
}
|
|
}
|
|
@@ -973,7 +989,7 @@ const getMessage = (ids: any) => {
|
|
|
return "请先执行完"+steps.value.filter((item: any) => item.n == stage.value)[0].label
|
|
return "请先执行完"+steps.value.filter((item: any) => item.n == stage.value)[0].label
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-// 模拟点击进入下一步
|
|
|
|
|
|
|
+// 点击进入下一步
|
|
|
const handleViewClick = (item: any,type: string) => {
|
|
const handleViewClick = (item: any,type: string) => {
|
|
|
if(item.n == 1){
|
|
if(item.n == 1){
|
|
|
updateProject()
|
|
updateProject()
|
|
@@ -1026,9 +1042,14 @@ const handleViewClick = (item: any,type: string) => {
|
|
|
if(flag){
|
|
if(flag){
|
|
|
updateTypeProject(3)
|
|
updateTypeProject(3)
|
|
|
// 生成招标文件
|
|
// 生成招标文件
|
|
|
- // api.getGenerateTender({
|
|
|
|
|
- // txbId: projects.value.id,
|
|
|
|
|
- // })
|
|
|
|
|
|
|
+ api.getGenerateTender({txbId: projects.value.id}).then((res: any) => {
|
|
|
|
|
+ if ((res as any).code === 200) {
|
|
|
|
|
+ ElMessage.success("标书文件生成成功")
|
|
|
|
|
+ }else{
|
|
|
|
|
+ ElMessage.error((res as any).msg || "标书文件生成失败")
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
}else{
|
|
}else{
|
|
|
ElMessage.error("请先确认标书需求拆解与生成")
|
|
ElMessage.error("请先确认标书需求拆解与生成")
|
|
|
}
|
|
}
|
|
@@ -1167,8 +1188,152 @@ const getProjects = async () => {
|
|
|
stepsType.value = projects.value.c_xmjd_json[projects.value.c_xmjd_json.length-1].type
|
|
stepsType.value = projects.value.c_xmjd_json[projects.value.c_xmjd_json.length-1].type
|
|
|
// swb_status.value = projects.value.c_xmjd_json[projects.value.c_xmjd_json.length-1].typeObj?.swb || ''
|
|
// swb_status.value = projects.value.c_xmjd_json[projects.value.c_xmjd_json.length-1].typeObj?.swb || ''
|
|
|
// jsb_status.value = projects.value.c_xmjd_json[projects.value.c_xmjd_json.length-1].typeObj?.jsb || ''
|
|
// jsb_status.value = projects.value.c_xmjd_json[projects.value.c_xmjd_json.length-1].typeObj?.jsb || ''
|
|
|
|
|
+ historyBidList.value = []
|
|
|
|
|
+ soureProjects.value = await getSoureProjects(CONFIG.COLUMNIDARR[0],projects.value.xmbh,"c_guid")
|
|
|
|
|
+ historyBidList.value = [{
|
|
|
|
|
+ year: soureProjects.value.c_guid.substring(10,14),
|
|
|
|
|
+ name: soureProjects.value.c_xmmc,
|
|
|
|
|
+ type: "中标",
|
|
|
|
|
+ money: soureProjects.value.c_nhhtsr,
|
|
|
|
|
+ address: soureProjects.value.c_query_address || ''
|
|
|
|
|
+ }]
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if(projects.value.rwlcqd[2].done == false){//匹配招标监控
|
|
|
|
|
+ getzbjkPorject(projects.value.id)
|
|
|
|
|
+ }
|
|
|
|
|
+ if(projects.value.rwlcqd[5].done == true && projects.value.rwlcqd[6].done == false){//匹配开标监控
|
|
|
|
|
+ getkbjkPorject(projects.value.c_xgjk)
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+const zbjkProject = ref<any[]>([]);
|
|
|
|
|
+const getzbjkPorject = async (id:any) => {
|
|
|
|
|
+ const ret = await getTypeProjects(CONFIG.COLUMNIDARR[5],id,"c_gl_xm")
|
|
|
|
|
+ if(ret.c_result_json){
|
|
|
|
|
+ const reslust = JSON.parse(ret.c_result_json)
|
|
|
|
|
+ let arr:any[] = []
|
|
|
|
|
+ reslust.notices.forEach((item:any) => {
|
|
|
|
|
+ let str = {id:item.data.id,type:item.type,name:item.data.title || ''}
|
|
|
|
|
+ arr.push(str)
|
|
|
|
|
+ })
|
|
|
|
|
+ reslust.intents.forEach((item:any) => {
|
|
|
|
|
+ let str = {id:item.data.id,type:item.type,name:item.data.title || ''}
|
|
|
|
|
+ arr.push(str)
|
|
|
|
|
+ })
|
|
|
|
|
+ zbjkProject.value = arr
|
|
|
|
|
+ updaterwlcqdProject2(projects.value,2)//匹配招标监控成功,进行修改投续标流程状态
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+const getkbjkPorject = async (id:any) => {
|
|
|
|
|
+ const ret = await getTypeProjects(CONFIG.COLUMNIDARR[6],id,"id")
|
|
|
|
|
+ if(ret){
|
|
|
|
|
+ if(ret.c_jgjk_url){
|
|
|
|
|
+ let str = {c_detail_url:ret.c_jgjk_url}
|
|
|
|
|
+ finishBidObject.value = str
|
|
|
|
|
+ updaterwlcqdProject2(projects.value,6)//匹配开标监控成功,进行修改投续标流程状态
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+// 匹配招标有数据进行更新项目流程状态
|
|
|
|
|
+const updaterwlcqdProject2 = async (item:any,lcid:any) => {
|
|
|
|
|
+ item.rwlcqd[lcid].type = 2
|
|
|
|
|
+ const params: any = {
|
|
|
|
|
+ columnId: CONFIG.COLUMNIDARR[2],
|
|
|
|
|
+ modelId: CONFIG.MODELIDARR[0],
|
|
|
|
|
+ content: JSON.stringify({
|
|
|
|
|
+ id: item.id,
|
|
|
|
|
+ rwlcqd:item.rwlcqd
|
|
|
|
|
+ }),
|
|
|
|
|
+ }
|
|
|
|
|
+ await api.updateContent(params)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// 项目类型改变时,进行更新项目类型
|
|
|
|
|
+const handleJKTypeChange = async (val:any) => {
|
|
|
|
|
+ console.log(val)
|
|
|
|
|
+ let opt = zbjkProject.value.find((item:any) => item.id == val)
|
|
|
|
|
+ console.log(opt)
|
|
|
|
|
+ if(opt){
|
|
|
|
|
+ if(opt.type == 'notice'){//公告
|
|
|
|
|
+ let ret = await getSoureProjects(CONFIG.COLUMNIDARR[3],opt.id,"id")
|
|
|
|
|
+ console.log(ret)
|
|
|
|
|
+ ruleZBForm.c_project_code = ret.c_project_code || ""
|
|
|
|
|
+ ruleZBForm.c_project_name = ret.c_project_name || ""
|
|
|
|
|
+ ruleZBForm.c_budget_amount = ret.c_budget_amount || ""
|
|
|
|
|
+ ruleZBForm.c_bid_open_time = ret.c_bid_open_time || ""
|
|
|
|
|
+ ruleZBForm.c_bid_deadline = ret.c_bid_deadline || ""
|
|
|
|
|
+ ruleZBForm.c_source_name = ret.c_source_name || ""
|
|
|
|
|
+ ruleZBForm.c_author = ret.c_author || ""
|
|
|
|
|
+ ruleZBForm.c_publish_time = ret.c_publish_time || ""
|
|
|
|
|
+ ruleZBForm.c_detail_url = ret.c_detail_url || ""
|
|
|
|
|
+ }else{//意向
|
|
|
|
|
+ let ret = await getSoureProjects(CONFIG.COLUMNIDARR[4],opt.id,"id")
|
|
|
|
|
+ console.log(ret)
|
|
|
|
|
+ ruleZBForm.c_project_code = ret.id || ""
|
|
|
|
|
+ ruleZBForm.c_project_name = ret.title || ""
|
|
|
|
|
+ ruleZBForm.c_budget_amount = 0
|
|
|
|
|
+ ruleZBForm.c_bid_open_time = ret.c_publish_time || ""
|
|
|
|
|
+ ruleZBForm.c_bid_deadline = ret.c_publish_time || ""
|
|
|
|
|
+ ruleZBForm.c_source_name = ret.c_source_name || ""
|
|
|
|
|
+ ruleZBForm.c_author = ret.c_author || ""
|
|
|
|
|
+ ruleZBForm.c_publish_time = ret.c_publish_time || ""
|
|
|
|
|
+ ruleZBForm.c_detail_url = ret.c_detail_url || ""
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
+// 匹配招标监控
|
|
|
|
|
+const handleJKZBJKSubmit = async () => {
|
|
|
|
|
+ dialogZBJKVisible.value = false
|
|
|
|
|
+ let formData = {
|
|
|
|
|
+ c_project_code:ruleZBForm.c_project_code,
|
|
|
|
|
+ c_project_name:ruleZBForm.c_project_name,
|
|
|
|
|
+ c_budget_amount:ruleZBForm.c_budget_amount,
|
|
|
|
|
+ c_bid_open_time:moment(ruleZBForm.c_bid_open_time, 'YYYY年MM月DD日 HH:mm').format('YYYY-MM-DD HH:mm'),
|
|
|
|
|
+ c_bid_deadline:moment(ruleZBForm.c_bid_open_time, 'YYYY年MM月DD日 HH:mm').format('YYYY-MM-DD HH:mm'),
|
|
|
|
|
+ c_source_name:ruleZBForm.c_source_name,
|
|
|
|
|
+ c_author:ruleZBForm.c_author,
|
|
|
|
|
+ c_publish_time:ruleZBForm.c_publish_time,
|
|
|
|
|
+ c_detail_url:ruleZBForm.c_detail_url,
|
|
|
|
|
+ }
|
|
|
|
|
+ updateZBProject(tempTask.value,formData,ruleZBForm.c_project_code)
|
|
|
|
|
+ getProjectParams(projects.value.id,'c_gl_xm',CONFIG.COLUMNIDARR[5]).then(async res => {
|
|
|
|
|
+ const reslust = (res as any)[0]
|
|
|
|
|
+ const content = {
|
|
|
|
|
+ id: reslust.id,
|
|
|
|
|
+ c_complete: true,
|
|
|
|
|
+ c_enable: false
|
|
|
|
|
+ }
|
|
|
|
|
+ updateProjectParams(CONFIG.COLUMNIDARR[5],CONFIG.MODELIDARR[2], content)
|
|
|
|
|
+ })
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+const getSoureProjects = async (columnId:number,ids: string,type: string) =>{
|
|
|
|
|
+ const params: any = {
|
|
|
|
|
+ columnId: columnId,
|
|
|
|
|
+ states: '0,1,2,3',
|
|
|
|
|
+ pageSize: 1,
|
|
|
|
|
+ page: 0
|
|
|
|
|
+ }
|
|
|
|
|
+ if (ids !== "") {
|
|
|
|
|
+ params.search = JSON.stringify([
|
|
|
|
|
+ ...(params.search ? JSON.parse(params.search) : []),
|
|
|
|
|
+ {
|
|
|
|
|
+ field: type,
|
|
|
|
|
+ searchType: 2,
|
|
|
|
|
+ content: { value: `%${ids}%` },
|
|
|
|
|
+ },
|
|
|
|
|
+ ]);
|
|
|
|
|
+ }
|
|
|
|
|
+ const res = await getDmsDataList(params)
|
|
|
|
|
+ if((res as any).code == 200){
|
|
|
|
|
+ return (res as any).content.data[0]
|
|
|
|
|
+ }else{
|
|
|
|
|
+ return ''
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
const getDmsDataList = async (params: any) => {
|
|
const getDmsDataList = async (params: any) => {
|
|
|
return await api.getDmsDataList(params)
|
|
return await api.getDmsDataList(params)
|
|
@@ -1308,7 +1473,9 @@ const updateZBProject = async (item:any,formData:any,contentId:any) => {
|
|
|
if ((res as any).code === 200) {
|
|
if ((res as any).code === 200) {
|
|
|
ElMessage.success('更新成功')
|
|
ElMessage.success('更新成功')
|
|
|
dialogZBVisible.value = false
|
|
dialogZBVisible.value = false
|
|
|
- initData()
|
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ initData()
|
|
|
|
|
+ }, 1000);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
const handleZBSubmit = async (formEl: FormInstance | undefined) => {
|
|
const handleZBSubmit = async (formEl: FormInstance | undefined) => {
|
|
@@ -1618,7 +1785,7 @@ const getFIlePath = async (params: any) => {
|
|
|
|
|
|
|
|
|
|
|
|
|
const bidFile = ref({
|
|
const bidFile = ref({
|
|
|
- flag:false,
|
|
|
|
|
|
|
+ flag: sessionStorage.getItem('bidFileFlag') == 'true' ? true : false,
|
|
|
swb:false,
|
|
swb:false,
|
|
|
jsb:false,
|
|
jsb:false,
|
|
|
})
|
|
})
|
|
@@ -1631,9 +1798,28 @@ const getBidFile = async () => {
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
// const fileName = `杨浦区图书馆总馆物业管理服务项目投标文件.docx`
|
|
// const fileName = `杨浦区图书馆总馆物业管理服务项目投标文件.docx`
|
|
|
// UTIL.downloadFile(fileName, filePath)
|
|
// UTIL.downloadFile(fileName, filePath)
|
|
|
- loading.close()
|
|
|
|
|
- ElMessage.success('获取标书成功')
|
|
|
|
|
- bidFile.value.flag = true
|
|
|
|
|
|
|
+ const aiscbs = projects.value.c_ai_scbs || "";
|
|
|
|
|
+ // let aiscbs = "/data/model/shenqin_data/57f7bf655e994fa8a8867e4bc55e8709/1779-杨浦区图书馆总馆物业管理服务项目招标文件.pdf-ca9d5daf-443b-44c6-a1f3-bf43890a55d8.docx"
|
|
|
|
|
+ if(aiscbs){
|
|
|
|
|
+ let filename = aiscbs.split('/').pop() || ''
|
|
|
|
|
+ filename = filename.replace(/\?.*$/, '')
|
|
|
|
|
+ if(filename.includes('.docx')){
|
|
|
|
|
+ UTIL.downloadFile(filename, CONFIG.FILEPATH + (aiscbs.replace("/data/model","")))
|
|
|
|
|
+ loading.close()
|
|
|
|
|
+ ElMessage.success('获取标书成功')
|
|
|
|
|
+ bidFile.value.flag = true
|
|
|
|
|
+ sessionStorage.setItem('bidFileFlag', "true")
|
|
|
|
|
+ }else{
|
|
|
|
|
+ sessionStorage.setItem('bidFileFlag', "false")
|
|
|
|
|
+ ElMessage.error('暂无标书文件')
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ }else{
|
|
|
|
|
+ loading.close()
|
|
|
|
|
+ // bidFile.value.flag = true
|
|
|
|
|
+ ElMessage.error('获取标书失败')
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}, 3000);
|
|
}, 3000);
|
|
|
|
|
|
|
|
// if(bittype == 'swb'){
|
|
// if(bittype == 'swb'){
|
|
@@ -1654,6 +1840,7 @@ const handleSwitchChange = (val: any) => {
|
|
|
}
|
|
}
|
|
|
const handleFinishBidSubmit = async () => {
|
|
const handleFinishBidSubmit = async () => {
|
|
|
dialogFinishBidVisible.value = false
|
|
dialogFinishBidVisible.value = false
|
|
|
|
|
+ dialogFinishBidVisible2.value = false
|
|
|
let str = {id: '7'} // 修改
|
|
let str = {id: '7'} // 修改
|
|
|
updaterwlcqdProject(str)
|
|
updaterwlcqdProject(str)
|
|
|
// 修改中标监控
|
|
// 修改中标监控
|