代码更新
This commit is contained in:
parent
c77bb019e0
commit
f7c19c0ffe
@ -10,15 +10,15 @@ export function apiBidBiddingDecisionAdd(params: any) {
|
||||
return request.post({ url: '/bid.bid_bidding_decision/add', params })
|
||||
}
|
||||
|
||||
// 编辑投标决策
|
||||
export function apiBidBiddingDecisionEdit(params: any) {
|
||||
return request.post({ url: '/bid.bid_bidding_decision/edit', params })
|
||||
}
|
||||
// // 编辑投标决策
|
||||
// export function apiBidBiddingDecisionEdit(params: any) {
|
||||
// return request.post({ url: '/bid.bid_bidding_decision/edit', params })
|
||||
// }
|
||||
|
||||
// 删除投标决策
|
||||
export function apiBidBiddingDecisionDelete(params: any) {
|
||||
return request.post({ url: '/bid.bid_bidding_decision/delete', params })
|
||||
}
|
||||
// // 删除投标决策
|
||||
// export function apiBidBiddingDecisionDelete(params: any) {
|
||||
// return request.post({ url: '/bid.bid_bidding_decision/delete', params })
|
||||
// }
|
||||
|
||||
// 投标决策详情
|
||||
export function apiBidBiddingDecisionDetail(params: any) {
|
||||
|
@ -11,14 +11,14 @@ export function apiBidBuyBiddingDocumentAdd(params: any) {
|
||||
}
|
||||
|
||||
// 编辑购买标书
|
||||
export function apiBidBuyBiddingDocumentEdit(params: any) {
|
||||
return request.post({ url: '/bid.bid_buy_bidding_document/edit', params })
|
||||
}
|
||||
// export function apiBidBuyBiddingDocumentEdit(params: any) {
|
||||
// return request.post({ url: '/bid.bid_buy_bidding_document/edit', params })
|
||||
// }
|
||||
|
||||
// 删除购买标书
|
||||
export function apiBidBuyBiddingDocumentDelete(params: any) {
|
||||
return request.post({ url: '/bid.bid_buy_bidding_document/delete', params })
|
||||
}
|
||||
// export function apiBidBuyBiddingDocumentDelete(params: any) {
|
||||
// return request.post({ url: '/bid.bid_buy_bidding_document/delete', params })
|
||||
// }
|
||||
|
||||
// 购买标书详情
|
||||
export function apiBidBuyBiddingDocumentDetail(params: any) {
|
||||
|
@ -10,18 +10,20 @@
|
||||
<el-col :span="12">
|
||||
<el-form-item label="客户名称">
|
||||
|
||||
{{ formData.custom_name }}
|
||||
{{ formData.custom_name
|
||||
}}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="项目名称">
|
||||
{{ formData.project.name }}
|
||||
{{ formData.project_name
|
||||
}}
|
||||
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="项目编码">
|
||||
{{ formData.project ? formData.project.project_code : '暂无数据' }}
|
||||
{{ formData.project_code }}
|
||||
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -42,12 +44,14 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="招标项目资金来源">
|
||||
<dict-value :options="dictData.construction_funds_sources" :value="formData.bidding_project_fund_source" />
|
||||
|
||||
{{ formData.bidding_project_fund_source }}
|
||||
<!-- <dict-value :options="dictData.construction_funds_sources" :value="formData.bidding_project_fund_source" /> -->
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="招标方式">
|
||||
<dict-value :options="dictData.bidding_method" :value="formData.bid_type" />
|
||||
{{ formData.bid_type }}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
@ -62,7 +66,8 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="是否需要保证金">
|
||||
<dict-value :options="dictData.whether_status" :value="formData.whether_status" />
|
||||
{{ formData.whether_status }}
|
||||
<!-- <dict-value :options="dictData.whether_status" :value="formData.whether_status" /> -->
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
@ -83,12 +88,14 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="有无内部资源">
|
||||
<dict-value :options="dictData.whether_status" :value="formData.is_internal_resources" />
|
||||
{{ formData.is_internal_resources }}
|
||||
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="项目把握度">
|
||||
{{ formData.project_assurancee }}
|
||||
{{ formData.project_assurance
|
||||
}}
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
|
@ -133,7 +133,7 @@ import reviewprocess from '@/components/reviewprocess/index.vue'
|
||||
|
||||
import projectTable from "@/components/project/index.vue"
|
||||
|
||||
import { apiBidBiddingDecisionAdd, apiBidBiddingDecisionEdit, apiBidBiddingDecisionDetail } from '@/api/bid_bidding_decision'
|
||||
import { apiBidBiddingDecisionAdd, apiBidBiddingDecisionDetail } from '@/api/bid_bidding_decision'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import type { PropType } from 'vue'
|
||||
defineProps({
|
||||
@ -292,9 +292,10 @@ const handleSubmit = async () => {
|
||||
}
|
||||
await formRef.value?.validate()
|
||||
const data = { ...formData, }
|
||||
mode.value == 'edit'
|
||||
? await apiBidBiddingDecisionEdit(data)
|
||||
: await apiBidBiddingDecisionAdd(data)
|
||||
// mode.value == 'edit'
|
||||
// ? await apiBidBiddingDecisionEdit(data)
|
||||
// :
|
||||
await apiBidBiddingDecisionAdd(data)
|
||||
popupRef.value?.close()
|
||||
emit('success')
|
||||
}
|
||||
|
@ -28,9 +28,9 @@
|
||||
</template>
|
||||
新增
|
||||
</el-button>
|
||||
<el-button v-perms="['bid.bid_bidding_decision/delete']" :disabled="!selectData.length" @click="handleDelete(selectData)">
|
||||
<!-- <el-button v-perms="['bid.bid_bidding_decision/delete']" :disabled="!selectData.length" @click="handleDelete(selectData)">
|
||||
删除
|
||||
</el-button>
|
||||
</el-button> -->
|
||||
<div class="mt-4">
|
||||
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" />
|
||||
@ -38,22 +38,14 @@
|
||||
|
||||
<el-table-column label="处理流程" prop="project_id" show-overflow-tooltip />
|
||||
<el-table-column label="流程步骤" prop="project_id" show-overflow-tooltip />
|
||||
<el-table-column label="流程编号" prop="project_id" show-overflow-tooltip />
|
||||
<el-table-column label="流程编号" prop="code" show-overflow-tooltip />
|
||||
<el-table-column label="客户名称" prop="custom_name" show-overflow-tooltip />
|
||||
<el-table-column label="项目名称" prop="project_name" show-overflow-tooltip />
|
||||
<el-table-column label="项目估算(万元)" width="125" prop="project_estimation" show-overflow-tooltip />
|
||||
<el-table-column label="招标项目资金来源" width="155" prop="bidding_project_fund_source">
|
||||
<template #default="{ row }">
|
||||
<dict-value :options="dictData.construction_funds_sources" :value="row.bidding_project_fund_source" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="招标项目资金来源" width="155" prop="bidding_project_fund_source" show-overflow-tooltip />
|
||||
<el-table-column label="投标时间" prop="bidding_time" width="155" show-overflow-tooltip />
|
||||
<el-table-column label="购买标书时间" width="155" prop="buy_bid_document_date" show-overflow-tooltip />
|
||||
<el-table-column label="招标方式" prop="bid_type">
|
||||
<template #default="{ row }">
|
||||
<dict-value :options="dictData.bidding_method" :value="row.bid_type" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="购买标书时间" width="155" prop="buy_bid_document_date" show-overflow-tooltip /> -->
|
||||
<el-table-column label="招标方式" prop="bid_type" show-overflow-tooltip />
|
||||
<el-table-column label="竞争对手" prop="competitor" show-overflow-tooltip />
|
||||
<!-- <el-table-column label="是否需要保证金" prop="is_margin">
|
||||
<template #default="{ row }">
|
||||
@ -63,24 +55,16 @@
|
||||
<el-table-column label="保证金金额" prop="margin_amount" width="125" show-overflow-tooltip />
|
||||
<el-table-column label="开标日期" prop="bid_opening_date" show-overflow-tooltip />
|
||||
<el-table-column label="保证金退还时间" width="155" prop="margin_amount_return_date" show-overflow-tooltip />
|
||||
<el-table-column label="有无内部资源" width="155" prop="is_internal_resources">
|
||||
<template #default="{ row }">
|
||||
<dict-value :options="dictData.whether_status" :value="row.is_internal_resources" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="项目把握度" width="85" prop="project_assurance" show-overflow-tooltip>
|
||||
<template #default="{ row }">
|
||||
<dict-value :options="dictData.project_assurance" :value="row.project_assurance" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="有无内部资源" width="155" prop="is_internal_resources" show-overflow-tooltip />
|
||||
<el-table-column label="项目把握度" width="85" prop="project_assurance" show-overflow-tooltip />
|
||||
<el-table-column label="操作" width="160" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button v-perms="['bid.bid_bidding_decision/edit']" type="primary" link @click="handleEdit(row)">
|
||||
<!-- <el-button v-perms="['bid.bid_bidding_decision/edit']" type="primary" link @click="handleEdit(row)">
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button v-perms="['bid.bid_bidding_decision/delete']" type="danger" link @click="handleDelete(row.id)">
|
||||
</el-button> -->
|
||||
<!-- <el-button v-perms="['bid.bid_bidding_decision/delete']" type="danger" link @click="handleDelete(row.id)">
|
||||
删除
|
||||
</el-button>
|
||||
</el-button> -->
|
||||
<el-button v-perms="['bid.bid_bidding_decision/detail']" link @click="handledetail(row)">
|
||||
详情
|
||||
</el-button>
|
||||
@ -100,7 +84,7 @@
|
||||
<script lang="ts" setup name="bidBiddingDecisionLists">
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { useDictData } from '@/hooks/useDictOptions'
|
||||
import { apiBidBiddingDecisionLists, apiBidBiddingDecisionDelete, apiBidBiddingDecisionDetail } from '@/api/bid_bidding_decision'
|
||||
import { apiBidBiddingDecisionLists, apiBidBiddingDecisionDetail } from '@/api/bid_bidding_decision'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import feedback from '@/utils/feedback'
|
||||
import EditPopup from './edit.vue'
|
||||
@ -144,21 +128,21 @@ const handleAdd = async () => {
|
||||
editRef.value?.open('add')
|
||||
}
|
||||
|
||||
// 编辑
|
||||
const handleEdit = async (data: any) => {
|
||||
let res = await apiBidBiddingDecisionDetail({ id: data.id })
|
||||
showEdit.value = true
|
||||
await nextTick()
|
||||
editRef.value?.open('edit')
|
||||
editRef.value?.setFormData(res)
|
||||
}
|
||||
// // 编辑
|
||||
// const handleEdit = async (data: any) => {
|
||||
// let res = await apiBidBiddingDecisionDetail({ id: data.id })
|
||||
// showEdit.value = true
|
||||
// await nextTick()
|
||||
// editRef.value?.open('edit')
|
||||
// editRef.value?.setFormData(res)
|
||||
// }
|
||||
|
||||
// 删除
|
||||
const handleDelete = async (id: number | any[]) => {
|
||||
await feedback.confirm('确定要删除?')
|
||||
await apiBidBiddingDecisionDelete({ id })
|
||||
getLists()
|
||||
}
|
||||
// // 删除
|
||||
// const handleDelete = async (id: number | any[]) => {
|
||||
// await feedback.confirm('确定要删除?')
|
||||
// await apiBidBiddingDecisionDelete({ id })
|
||||
// getLists()
|
||||
// }
|
||||
//详情
|
||||
const handledetail = async (data: any) => {
|
||||
let res = await apiBidBiddingDecisionDetail({ id: data.id })
|
||||
|
@ -118,7 +118,7 @@ import Popup from '@/components/popup/index.vue'
|
||||
import personnelselector from '@/components/personnelselector/index.vue'
|
||||
|
||||
import projectTable from "@/components/project/index.vue"
|
||||
import { apiBidBuyBiddingDocumentAdd, apiBidBuyBiddingDocumentEdit, apiBidBuyBiddingDocumentDetail } from '@/api/bid_buy_bidding_document'
|
||||
import { apiBidBuyBiddingDocumentAdd, apiBidBuyBiddingDocumentDetail } from '@/api/bid_buy_bidding_document'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import type { PropType } from 'vue'
|
||||
defineProps({
|
||||
@ -291,9 +291,10 @@ const handleSubmit = async () => {
|
||||
|
||||
await formRef.value?.validate()
|
||||
const data = { ...formData }
|
||||
mode.value == 'edit'
|
||||
? await apiBidBuyBiddingDocumentEdit(data)
|
||||
: await apiBidBuyBiddingDocumentAdd(data)
|
||||
// mode.value == 'edit'
|
||||
// ? await apiBidBuyBiddingDocumentEdit(data)
|
||||
// :
|
||||
await apiBidBuyBiddingDocumentAdd(data)
|
||||
popupRef.value?.close()
|
||||
emit('success')
|
||||
}
|
||||
|
@ -30,9 +30,9 @@
|
||||
</template>
|
||||
新增
|
||||
</el-button>
|
||||
<el-button v-perms="['bid.bid_buy_bidding_document/delete']" :disabled="!selectData.length" @click="handleDelete(selectData)">
|
||||
<!-- <el-button v-perms="['bid.bid_buy_bidding_document/delete']" :disabled="!selectData.length" @click="handleDelete(selectData)">
|
||||
删除
|
||||
</el-button>
|
||||
</el-button> -->
|
||||
<div class="mt-4">
|
||||
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" />
|
||||
@ -80,12 +80,12 @@
|
||||
<el-table-column label="附件" prop="annex" show-overflow-tooltip /> -->
|
||||
<el-table-column label="操作" width="160" fixed="right">
|
||||
<template #default="{ row }">
|
||||
<el-button v-perms="['bid.bid_buy_bidding_document/edit']" type="primary" link @click="handleEdit(row)">
|
||||
<!-- <el-button v-perms="['bid.bid_buy_bidding_document/edit']" type="primary" link @click="handleEdit(row)">
|
||||
编辑
|
||||
</el-button>
|
||||
<el-button v-perms="['bid.bid_buy_bidding_document/delete']" type="danger" link @click="handleDelete(row.id)">
|
||||
</el-button> -->
|
||||
<!-- <el-button v-perms="['bid.bid_buy_bidding_document/delete']" type="danger" link @click="handleDelete(row.id)">
|
||||
删除
|
||||
</el-button>
|
||||
</el-button> -->
|
||||
<el-button v-perms="['bid.bid_buy_bidding_document/detail']" link @click="handledetail(row)">
|
||||
详情
|
||||
</el-button>
|
||||
@ -105,7 +105,7 @@
|
||||
<script lang="ts" setup name="bidBuyBiddingDocumentLists">
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { useDictData } from '@/hooks/useDictOptions'
|
||||
import { apiBidBuyBiddingDocumentLists, apiBidBuyBiddingDocumentDelete, apiBidBuyBiddingDocumentDetail } from '@/api/bid_buy_bidding_document'
|
||||
import { apiBidBuyBiddingDocumentLists, apiBidBuyBiddingDocumentDetail } from '@/api/bid_buy_bidding_document'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import { apiProjectLists } from '@/api/project'
|
||||
import feedback from '@/utils/feedback'
|
||||
@ -152,21 +152,21 @@ const handleAdd = async () => {
|
||||
editRef.value?.open('add')
|
||||
}
|
||||
|
||||
// 编辑
|
||||
const handleEdit = async (data: any) => {
|
||||
let res = await apiBidBuyBiddingDocumentDetail({ id: data.id })
|
||||
showEdit.value = true
|
||||
await nextTick()
|
||||
editRef.value?.open('edit')
|
||||
editRef.value?.setFormData(res)
|
||||
}
|
||||
// // 编辑
|
||||
// const handleEdit = async (data: any) => {
|
||||
// let res = await apiBidBuyBiddingDocumentDetail({ id: data.id })
|
||||
// showEdit.value = true
|
||||
// await nextTick()
|
||||
// editRef.value?.open('edit')
|
||||
// editRef.value?.setFormData(res)
|
||||
// }
|
||||
|
||||
// 删除
|
||||
const handleDelete = async (id: number | any[]) => {
|
||||
await feedback.confirm('确定要删除?')
|
||||
await apiBidBuyBiddingDocumentDelete({ id })
|
||||
getLists()
|
||||
}
|
||||
// // 删除
|
||||
// const handleDelete = async (id: number | any[]) => {
|
||||
// await feedback.confirm('确定要删除?')
|
||||
// await apiBidBuyBiddingDocumentDelete({ id })
|
||||
// getLists()
|
||||
// }
|
||||
//详情
|
||||
const handledetail = async (data: any) => {
|
||||
let res = await apiBidBuyBiddingDocumentDetail({ id: data.id })
|
||||
|
@ -315,7 +315,7 @@ const customEvent = (e: any) => {
|
||||
};
|
||||
const customEvent1 = (e: any) => {
|
||||
tableData.value.push({
|
||||
product_id: e.id: any,
|
||||
product_id: e.id,
|
||||
name: e.name,
|
||||
code: e.code,
|
||||
unit: e.unit,
|
||||
|
Loading…
x
Reference in New Issue
Block a user