This commit is contained in:
zmj 2024-03-20 18:01:46 +08:00
parent eb89c4587a
commit bb46964ee8
11 changed files with 201 additions and 385 deletions

View File

@ -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) {

View File

@ -7,12 +7,10 @@
上传
</el-button>
</el-upload>
<div>
<div v-for="(item, index) in formData[value]" style="margin-left: 5px;display: block;">
<a style="margin-left: 10px; color: #4a5dff; align-self: flex-start" :href="item.uri" target="_blank">{{
item.name }}</a>
<span style="cursor: pointer;margin-left: 5px;" @click="delFile(index)">x</span>
</div>
<div v-for="(item, index) in formData[value]" class="ml-5 flex ">
<el-link :href="item.uri" type="primary"> {{ item.name }}</el-link>
<span class="ml-2 cursor-pointer" @click="delFile(index)">x</span>
</div>
</template>
<script setup lang="ts">

View File

@ -5,9 +5,8 @@
<el-form ref="formRef" :model="formData" label-width="120px" :rules="formRules">
<el-row>
<el-col :span="8">
<el-form-item label="项目名称" :rules="[{ required: true, message: '不可为空', trigger: 'change' }]"
@click="showDialog = true">
<el-input v-model="project_name" readonly clearable placeholder="选择项目" />
<el-form-item label="项目名称" @click="showDialog = true">
<el-input v-model="formData.project_name" readonly clearable placeholder="选择项目" />
</el-form-item>
</el-col>
<el-col :span="8">
@ -117,7 +116,7 @@
</el-col>
<el-col :span="16">
<el-form-item label="附件">
<el-upload
<!-- <el-upload
accept="doc, docx, xls, xlsx, ppt, pptx, pdf, txt, zip, rar, tar, jpg, png, gif, jpeg, webp, wmv, avi, mpg, mpeg, 3gp, mov, mp4, flv, f4v, rmvb, mkv"
class="upload-demo" :show-file-list="false" aria-hidden="true"
:headers="{ Token: userStore.token }" :action="base_url + '/upload/file'"
@ -132,8 +131,8 @@
:href="item.uri" target="_blank">{{ item.name }}</a>
<span style="cursor: pointer;margin-left: 5px;" @click="delFileFn(index)">x</span>
</div>
</div>
</div> -->
<UploadAnnex :formData="formData"></UploadAnnex>
</el-form-item>
</el-col>
</el-row>
@ -159,36 +158,14 @@ let props = defineProps({
const { dictData } = useDictData('construction_funds_sources,bidding_method,whether_status,project_assurance')
const matsname = ref('')
const project_name = ref('')
const project_code = ref('')
const emit = defineEmits(['success', 'close'])
const formRef = shallowRef<FormInstance>()
const popupRef = shallowRef<InstanceType<typeof Popup>>()
const showDialog = ref(false)
const mode = ref('')
import configs from "@/config"
const base_url = configs.baseUrl + configs.urlPrefix
import useUserStore from "@/stores/modules/user";
const userStore = useUserStore();
const formDataannex = reactive([])
//
const handleAvatarSuccess_four = (
response,
uploadFile
) => {
if (response.code == 0) {
ElMessage.error(response.msg);
return;
}
formDataannex.push(
{ uri: response.data.uri, name: response.data.name }
);
};
//
const delFileFn = (index: number) => {
formDataannex.splice(index, 1)
}
//
const popupTitle = computed(() => {
@ -199,6 +176,7 @@ const popupTitle = computed(() => {
const formData = reactive({
id: '',
project_id: '',
project_name: "",
project_estimation: '',
bidding_project_fund_source: '',
bidding_time: '',
@ -221,7 +199,7 @@ const formData = reactive({
const customEvent = (e: any) => {
formData.project_id = e.id;
matsname.value = e.custom_name
project_name.value = e.name
formData.project_name = e.name
project_code.value = e.project_code
showDialog.value = false;
};
@ -236,18 +214,8 @@ const formRules = reactive<any>({
//
const setFormData = async (data: Record<any, any>) => {
matsname.value = data.custom_name
project_name.value = data.project_name
project_code.value = data.project_code
if (data.annex && data.annex.length > 0) {
const arry1 = data.annex.map((item: any, index: any) => {
return {
name: `文件${index + 1}`,
uri: item
};
});
Object.assign(formDataannex, arry1)
}
for (const key in formData) {
if (data[key] != null && data[key] != undefined) {
//@ts-ignore
@ -268,9 +236,7 @@ const getDetail = async (row: Record<string, any>) => {
//
const handleSubmit = async () => {
if (formDataannex.length > 0) {
formData.annex = formDataannex.map((item: any) => item.uri)
}
await formRef.value?.validate()
const data = { ...formData, }
mode.value == 'edit'

View File

@ -1,52 +1,51 @@
<template>
<div class="detail-popup">
<popup ref="popupRef" title="购买标书详情" :async="true" width="80%" @confirm="handleSubmit" @close="handleClose">
<el-card>
<el-descriptions :column="3" border>
<el-descriptions-item label="项目名称" label-align="left" align="left" label-class-name="my-label">{{
formData.project_name }}</el-descriptions-item>
formData.project_name }}</el-descriptions-item>
<el-descriptions-item label="项目编码" label-align="left" align="left" label-class-name="my-label">{{
formData.project_code }}</el-descriptions-item>
<el-descriptions-item label="流程编号" label-align="left" align="left" label-class-name="my-label">{{
formData.code }}</el-descriptions-item>
formData.project_code }}</el-descriptions-item>
<el-descriptions-item label="客户名称" label-align="left" align="left" label-class-name="my-label">{{
formData.custom_name }}</el-descriptions-item>
formData.custom_name }}</el-descriptions-item>
<el-descriptions-item label="招标公司名称" label-align="left" align="left" label-class-name="my-label">{{
formData.invite_tenders_company_name }}</el-descriptions-item>
formData.invite_tenders_company_name }}</el-descriptions-item>
<el-descriptions-item label="投标公司名称" label-align="left" align="left" label-class-name="my-label">{{
formData.bid_company_name }}</el-descriptions-item>
formData.bid_company_name }}</el-descriptions-item>
<el-descriptions-item label="标书编号" label-align="left" align="left" label-class-name="my-label">{{
formData.bid_document_no }}</el-descriptions-item>
formData.bid_document_no }}</el-descriptions-item>
<el-descriptions-item label="购买人员" label-align="left" align="left" label-class-name="my-label">{{
formData.buyer }}</el-descriptions-item>
<el-descriptions-item label="购买标书金额(元)" label-align="left" align="left" label-class-name="my-label">{{
formData.amount }}</el-descriptions-item>
<el-descriptions-item label="招标项目资金来源" label-align="left" align="left" label-class-name="my-label">{{
formData.bidding_project_fund_source }}</el-descriptions-item>
formData.buyer_name }}</el-descriptions-item>
<el-descriptions-item label="购买标书金额(元)" label-align="left" align="left"
label-class-name="my-label">{{
formData.amount }}</el-descriptions-item>
<el-descriptions-item label="招标项目资金来源" label-align="left" align="left"
label-class-name="my-label">{{
formData.bidding_project_fund_source }}</el-descriptions-item>
<el-descriptions-item label="投标时间" label-align="left" align="left" label-class-name="my-label">{{
formData.bidding_time }}</el-descriptions-item>
formData.bidding_time }}</el-descriptions-item>
<el-descriptions-item label="购买标书时间" label-align="left" align="left" label-class-name="my-label">{{
formData.buy_date }}</el-descriptions-item>
formData.buy_date }}</el-descriptions-item>
<el-descriptions-item label="招标方式" label-align="left" align="left" label-class-name="my-label">{{
formData.bid_type }}</el-descriptions-item>
formData.bid_type }}</el-descriptions-item>
<el-descriptions-item label="流程是否结束" label-align="left" align="left" label-class-name="my-label">{{
formData.amount }}</el-descriptions-item>
<el-descriptions-item label="投标地址" label-align="left" align="left" label-class-name="my-label">{{
formData.bid_address }}</el-descriptions-item>
formData.amount }}</el-descriptions-item>
<!-- <el-descriptions-item label="投标地址" label-align="left" align="left" label-class-name="my-label">{{
formData.bid_address }}</el-descriptions-item> -->
<el-descriptions-item label="是否需要保证金" label-align="left" align="left" label-class-name="my-label">{{
formData.is_margin }}</el-descriptions-item>
<el-descriptions-item label="保证金金额(元)" label-align="left" align="left" label-class-name="my-label">{{
formData.margin_amount }}</el-descriptions-item>
formData.is_margin }}</el-descriptions-item>
<el-descriptions-item label="保证金金额(元)" label-align="left" align="left"
label-class-name="my-label">{{
formData.margin_amount }}</el-descriptions-item>
<el-descriptions-item label="招标项目慨况" label-align="left" align="left" label-class-name="my-label">{{
formData.bid_project_overview }}</el-descriptions-item>
formData.bid_project_overview }}</el-descriptions-item>
<el-descriptions-item label="项目简介" label-align="left" align="left" label-class-name="my-label">{{
formData.project_desc }}</el-descriptions-item>
formData.project_desc }}</el-descriptions-item>
</el-descriptions>
</el-card>

View File

@ -1,60 +1,45 @@
<template>
<div class="edit-popup">
<popup ref="popupRef" :title="popupTitle" :async="true" width="80%" @confirm="handleSubmit"
<popup ref="popupRef" :title="popupTitle" :async="true" width="550px" @confirm="handleSubmit"
@close="handleClose">
<el-form ref="formRef" :model="formData" label-width="auto" :rules="formRules" inline>
<el-row>
<el-col :span="8">
<el-form-item label="项目名称" prop="project_id"
:rules="[{ required: true, message: '不可为空', trigger: 'change' }]"
@click="showDialog = true">
<el-input v-model="project_name" readonly clearable placeholder="选择项目" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="项目编码" prop="project_id"
:rules="[{ required: true, message: '不可为空', trigger: 'change' }]">
<el-input v-model="project_code" clearable disabled placeholder="系统自动填写" />
</el-form-item></el-col>
<el-col :span="8">
<el-form-item label="客户名称" prop="project_id"
:rules="[{ required: true, message: '不可为空', trigger: 'change' }]">
<el-input v-model="matsname" clearable disabled placeholder="系统自动填写" />
</el-form-item></el-col>
<el-col :span="8">
<el-form-item label="招标公司名称" prop="invite_tenders_company_name"
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]">
<el-input v-model="formData.invite_tenders_company_name" clearable
placeholder="请输入招标公司名称" />
</el-form-item></el-col>
<el-col :span="8">
<el-form-item label="投标公司名称" prop="bid_company_name"
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]">
<el-input v-model="formData.bid_company_name" clearable placeholder="请输入投标公司名称" />
</el-form-item>
</el-col>
<el-form ref="formRef" :model="formData" label-width="auto" :rules="formRules">
<el-col :span="8">
<el-form-item label="投标决策信息" prop="bid_decision_id"
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]" @click="showDialog2 = true">
<el-input v-model="formData.bid_document_no" clearable placeholder="请选择" />
</el-form-item></el-col>
<el-col :span="8">
<el-form-item label="购买人员" prop="buyer" @click="userclick">
<el-input v-model="buyer_name" clearable placeholder="请输入购买人员" />
</el-form-item></el-col>
<el-col :span="8">
<el-form-item label="购买标书金额" prop="amount">
<el-input v-model="formData.amount" clearable placeholder="请输入购买标书金额" />
</el-form-item></el-col>
<el-col :span="8">
<el-form-item label="购买标书时间" prop="buy_date">
<el-date-picker class="flex-1 !flex" v-model="formData.buy_date" clearable
value-format="YYYY-MM-DD" placeholder="选择购买标书时间">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-form-item label="项目名称" prop="project_id"
:rules="[{ required: true, message: '不可为空', trigger: 'change' }]" @click="showDialog = true">
<el-input v-model="formData.project_name" readonly clearable placeholder="选择项目" />
</el-form-item>
<el-form-item label="项目编码" prop="project_id"
:rules="[{ required: true, message: '不可为空', trigger: 'change' }]">
<el-input v-model="formData.project_code" clearable disabled placeholder="系统自动填写" />
</el-form-item>
<el-form-item label="客户名称" prop="project_id"
:rules="[{ required: true, message: '不可为空', trigger: 'change' }]">
<el-input v-model="formData.custom_name" clearable disabled placeholder="系统自动填写" />
</el-form-item>
<el-form-item label="招标公司名称" prop="invite_tenders_company_name"
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]">
<el-input v-model="formData.invite_tenders_company_name" clearable placeholder="请输入招标公司名称" />
</el-form-item>
<el-form-item label="投标公司名称" prop="bid_company_name"
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]">
<el-input v-model="formData.bid_company_name" clearable placeholder="请输入投标公司名称" />
</el-form-item>
<el-form-item label="投标决策信息" prop="bid_decision_id"
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]" @click="showDialog2 = true">
<el-input v-model="formData.bid_document_no" clearable placeholder="请选择" />
</el-form-item>
<el-form-item label="购买人员" prop="buyer" @click="userclick">
<el-input v-model="formData.buyer_name" clearable placeholder="请输入购买人员" />
</el-form-item>
<el-form-item label="购买标书金额" prop="amount">
<el-input v-model="formData.amount" clearable placeholder="请输入购买标书金额" />
</el-form-item>
<el-form-item label="购买标书时间" prop="buy_date">
<el-date-picker class="flex-1 !flex" v-model="formData.buy_date" clearable value-format="YYYY-MM-DD"
placeholder="选择购买标书时间">
</el-date-picker>
</el-form-item>
</el-form>
</popup>
<personnelselector ref="personnel" @confirm="submituser" type="1"></personnelselector>
@ -74,14 +59,12 @@
<script lang="ts" setup name="bidBuyBiddingDocumentEdit">
import type { FormInstance } from 'element-plus'
import reviewprocess from '@/components/reviewprocess/index.vue'
import Popup from '@/components/popup/index.vue'
import personnelselector from '@/components/personnelselector/index.vue'
import biddingDecisionSelector from '@/components/biddingDecision/index.vue'
import projectTable from "@/components/biddingDecision/index.vue"
import { apiBidBuyBiddingDocumentAdd, apiBidBuyBiddingDocumentDetail } from '@/api/bid_buy_bidding_document'
import { timeFormat } from '@/utils/util'
import { apiBidBuyBiddingDocumentAdd, apiBidBuyBiddingDocumentDetail, apiBidBuyBiddingDocumentEdit } from '@/api/bid_buy_bidding_document'
import type { PropType } from 'vue'
defineProps({
dictData: {
@ -97,11 +80,6 @@ const emit = defineEmits(['success', 'close'])
const formRef = shallowRef<FormInstance>()
const popupRef = shallowRef<InstanceType<typeof Popup>>()
const mode = ref('add')
const list1 = reactive([])
const list2 = reactive([])
import configs from "@/config"
const base_url = configs.baseUrl + configs.urlPrefix
import useUserStore from "@/stores/modules/user";
const showDialog = ref(false)
const showDialog2 = ref(false)
const buyer_name = ref('')
@ -112,13 +90,18 @@ const popupTitle = computed(() => {
//
const formData = reactive({
id: "",
"project_id": 0,
project_name: "",
project_code: "",
custom_name: "",
"bid_decision_id": 0,
bid_decision_code: "",
"bid_document_no": "",
"invite_tenders_company_name": "",
"bid_company_name": "",
"buyer": "",
"buyer_name": "",
"amount": 0,
"buy_date": 0,
"bid_address": ""
@ -133,7 +116,7 @@ const userclick = () => {
//
const submituser = (e: any) => {
formData.buyer = e.id;
buyer_name.value = e.name;
formData.buyer_name = e.name;
}
//
const formRules = reactive<any>({
@ -142,9 +125,9 @@ const formRules = reactive<any>({
//
const customEvent = (e: any) => {
formData.project_id = e.project_id;
matsname.value = e.custom_name
project_name.value = e.project_name
project_code.value = e.project_code
formData.custom_name = e.custom_name
formData.project_name = e.project_name
formData.project_code = e.project_code
formData.bid_document_no = ''
showDialog.value = false;
};
@ -157,26 +140,12 @@ const customEvent2 = (e: any) => {
//
const setFormData = async (data: Record<any, any>) => {
matsname.value = data.project.person
project_name.value = data.project.name
project_code.value = data.project.project_code
for (const key in formData) {
if (data[key] != null && data[key] != undefined) {
//@ts-ignore
formData[key] = data[key]
}
}
// if (data.annex && data.annex.length > 0) {
// const arry1 = data.annex.map((item: any, index: any) => {
// return {
// name: `${index + 1}`,
// uri: item
// };
// });
// Object.assign(formDataannex, arry1)
// }
}
@ -194,10 +163,9 @@ 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')
}
@ -206,7 +174,7 @@ const handleSubmit = async () => {
const open = (type = 'add') => {
mode.value = type
popupRef.value?.open()
getlist()
}
//

View File

@ -86,17 +86,19 @@
<script lang="ts" setup name="bidBuyBiddingDocumentLists">
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiBidBuyBiddingDocumentLists, apiBidBuyBiddingDocumentDetail } from '@/api/bid_buy_bidding_document'
import { apiBidBuyBiddingDocumentLists, apiBidBuyBiddingDocumentDetail, apiBidBuyBiddingDocumentDelete } from '@/api/bid_buy_bidding_document'
import { apiProjectSearch } from '@/api/project'
import EditPopup from './edit.vue'
import DetailPopup from './detail.vue'
import feedback from '@/utils/feedback'
const detailRef = shallowRef<InstanceType<typeof DetailPopup>>()
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
//
const showEdit = ref(false)
const showDtail = ref(false)
const projectList = ref([])
//
@ -160,16 +162,16 @@ const handledetail = async (data: any) => {
//
const projectlist = async () => {
let res = await apiProjectLists({ page_no: 1, page_size: 15 })
projectList.value = res.lists
// const projectlist = async () => {
// let res = await apiProjectLists({ page_no: 1, page_size: 15 })
// projectList.value = res.lists
}
// }
import { useRoute } from "vue-router";
const route = useRoute()
if (route.query?.listId) {
handledetail({ id: route.query.listId })
}
projectlist()
// projectlist()
getLists()
</script>

View File

@ -1,65 +1,56 @@
<template>
<div class="detail-popup">
<popup ref="popupRef" title="投标审查详情" :async="true" width="80%" @confirm="handleSubmit" @close="handleClose">
<el-card>
<el-descriptions title="基本信息" :column="3" border>
<el-descriptions-item label="标书编号" label-align="left" align="left" label-class-name="my-label">{{
formData.bid_document_no }}</el-descriptions-item>
formData.bid_document_no }}</el-descriptions-item>
<el-descriptions-item label="购买人员" label-align="left" align="left" label-class-name="my-label">{{
formData.buyer }}</el-descriptions-item>
formData.buyer }}</el-descriptions-item>
<el-descriptions-item label="客户名称" label-align="left" align="left" label-class-name="my-label">{{
formData.custom_name }}</el-descriptions-item>
formData.custom_name }}</el-descriptions-item>
<el-descriptions-item label="项目名称" label-align="left" align="left" label-class-name="my-label">{{
formData.project_name }}</el-descriptions-item>
formData.project_name }}</el-descriptions-item>
<el-descriptions-item label="招标公司名称" label-align="left" align="left" label-class-name="my-label">{{
formData.invite_tenders_company_name }}</el-descriptions-item>
formData.invite_tenders_company_name }}</el-descriptions-item>
<el-descriptions-item label="投标公司名称" label-align="left" align="left" label-class-name="my-label">{{
formData.bid_company_name }}</el-descriptions-item>
formData.bid_company_name }}</el-descriptions-item>
<el-descriptions-item label="购买标书金额" label-align="left" align="left" label-class-name="my-label">{{
formData.bid_document_amount }}</el-descriptions-item>
<el-descriptions-item label="招标项目资金来源" label-align="left" align="left" label-class-name="my-label">{{
formData.bidding_project_fund_source }}</el-descriptions-item>
formData.bid_document_amount }}</el-descriptions-item>
<el-descriptions-item label="招标项目资金来源" label-align="left" align="left"
label-class-name="my-label">{{
formData.bidding_project_fund_source }}</el-descriptions-item>
<el-descriptions-item label="投标时间" label-align="left" align="left" label-class-name="my-label">{{
formData.bidding_time }}</el-descriptions-item>
formData.bidding_time }}</el-descriptions-item>
<el-descriptions-item label="购买标书时间" label-align="left" align="left" label-class-name="my-label">{{
formData.buy_date }}</el-descriptions-item>
formData.buy_date }}</el-descriptions-item>
<el-descriptions-item label="招标方式" label-align="left" align="left" label-class-name="my-label">{{
formData.bid_type }}</el-descriptions-item>
formData.bid_type }}</el-descriptions-item>
<el-descriptions-item label="投标地址" label-align="left" align="left" label-class-name="my-label">{{
formData.bid_address }}</el-descriptions-item>
formData.bid_address }}</el-descriptions-item>
<el-descriptions-item label="是否需要保证金" label-align="left" align="left" label-class-name="my-label">{{
formData.is_margin }}</el-descriptions-item>
formData.is_margin }}</el-descriptions-item>
<el-descriptions-item label="保证金金额" label-align="left" align="left" label-class-name="my-label">{{
formData.margin_amount }}</el-descriptions-item>
formData.margin_amount }}</el-descriptions-item>
<el-descriptions-item label="保证金退还时间" label-align="left" align="left" label-class-name="my-label">{{
formData.margin_amount_return_date }}</el-descriptions-item>
formData.margin_amount_return_date }}</el-descriptions-item>
<el-descriptions-item label="开标日期" label-align="left" align="left" label-class-name="my-label">{{
formData.bid_opening_date }}</el-descriptions-item>
formData.bid_opening_date }}</el-descriptions-item>
<el-descriptions-item label="招标项目概况" label-align="left" align="left" label-class-name="my-label">{{
formData.bid_project_overview }}</el-descriptions-item>
formData.bid_project_overview }}</el-descriptions-item>
<el-descriptions-item label="项目简介" label-align="left" align="left" label-class-name="my-label">{{
formData.project_desc }}</el-descriptions-item>
<el-descriptions-item label="附件" label-align="left" align="left" label-class-name="my-label">
<div v-if="formData.annex && formData.annex.length > 0">
<div v-for="(item, index) in formData.annex" style="margin-left: 5px;display: block;">
<el-link style="margin-left: 10px; color: #4a5dff; align-self: flex-start" :href="item"
target="_blank">文件{{ index + 1 }}查看</el-link>
</div>
</div>
<div v-else> 暂无附件</div>
</el-descriptions-item>
formData.project_desc }}</el-descriptions-item>
</el-descriptions>
</el-card>
<el-card>
<el-descriptions title="技术审查" :column="1" border style="margin-top:30px">
<el-descriptions-item label="技术协议偏差" label-align="left" align="left" label-class-name="my-label">{{
formData.technical_protocol_deviation }}</el-descriptions-item>
<el-descriptions-item label="协议偏差处理方案" label-align="left" align="left" label-class-name="my-label">{{
formData.protocol_deviation_handling_plan }}</el-descriptions-item>
formData.technical_protocol_deviation }}</el-descriptions-item>
<el-descriptions-item label="协议偏差处理方案" label-align="left" align="left"
label-class-name="my-label">{{
formData.protocol_deviation_handling_plan }}</el-descriptions-item>
<el-descriptions-item label="附件" label-align="left" align="left" label-class-name="my-label">
<div v-if="formData.technical_review_annex && formData.technical_review_annex.length > 0">
<div v-for="(item, index) in formData.technical_review_annex"
@ -76,17 +67,17 @@
<el-card>
<el-descriptions title="商务审查" :column="3" border style="margin-top:30px">
<el-descriptions-item label="总金额" label-align="left" align="left" label-class-name="my-label">{{
formData.total_amount }}</el-descriptions-item>
formData.total_amount }}</el-descriptions-item>
<el-descriptions-item label="税率" label-align="left" align="left" label-class-name="my-label">{{
formData.tax_rate }}</el-descriptions-item>
formData.tax_rate }}</el-descriptions-item>
<el-descriptions-item label="付款方式" label-align="left" align="left" label-class-name="my-label">{{
formData.pay_type }}</el-descriptions-item>
formData.pay_type }}</el-descriptions-item>
<el-descriptions-item label="付款比例" label-align="left" align="left" label-class-name="my-label">{{
formData.pay_rate }}</el-descriptions-item>
formData.pay_rate }}</el-descriptions-item>
<el-descriptions-item label="商务合同偏差" label-align="left" align="left" label-class-name="my-label">{{
formData.business_contract_deviation }}</el-descriptions-item>
formData.business_contract_deviation }}</el-descriptions-item>
<el-descriptions-item label="偏差处理方案" label-align="left" align="left" label-class-name="my-label">{{
formData.business_contract_deviation_handling_plan }}</el-descriptions-item>
formData.business_contract_deviation_handling_plan }}</el-descriptions-item>
<el-descriptions-item label="附件" label-align="left" align="left" label-class-name="my-label">
<div

View File

@ -1,6 +1,7 @@
<template>
<div class="edit-popup">
<popup ref="popupRef" :title="popupTitle" :async="true" width="80%" @confirm="handleSubmit" @close="handleClose">
<popup ref="popupRef" :title="popupTitle" :async="true" width="80%" @confirm="handleSubmit"
@close="handleClose">
<el-form ref="formRef" :model="formData" label-width="auto" :rules="formRules" inline>
<el-row>
@ -24,7 +25,7 @@
<el-col :span="8">
<el-form-item label="项目名称" prop="buy_bidding_document_id"
:rules="[{ required: true, message: '不可为空', trigger: 'blur' }]">
<el-input v-model="project_name" clearable disabled placeholder="系统自动填写" />
<el-input v-model="formData.project_name" clearable disabled placeholder="系统自动填写" />
</el-form-item>
</el-col>
@ -46,9 +47,6 @@
<el-col :span="8">
<el-form-item label="招标项目资金来源" prop="buy_bidding_document_id">
<!-- <el-select v-model="project_fund_source" clearable disabled placeholder="系统自动填写">
<el-option v-for="(item, index) in dictData.construction_funds_sources" :key="index" :label="item.name" :value="parseInt(item.value)" />
</el-select> -->
<el-input v-model="bidding_project_fund_source" clearable disabled placeholder="系统自动填写" />
</el-form-item>
</el-col>
@ -64,22 +62,13 @@
</el-col>
<el-col :span="8">
<el-form-item label="招标方式" prop="buy_bidding_document_id">
<!-- <el-select v-model="invite_tenders_type" clearable disabled placeholder="系统自动填写">
<el-option v-for="(item, index) in dictData.bidding_method" :key="index" :label="item.name" :value="parseInt(item.value)" />
</el-select> -->
<el-input v-model="invite_tenders_type" clearable disabled placeholder="系统自动填写" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="投标地址" prop="buy_bidding_document_id">
<el-input v-model="bid_address" clearable disabled placeholder="系统自动填写" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="是否需要保证金" prop="is_margin">
<el-input v-model="is_margin" clearable disabled placeholder="系统自动填写" />
<el-input v-model="formData.is_margin" clearable disabled placeholder="系统自动填写" />
</el-form-item>
</el-col>
@ -89,37 +78,20 @@
<el-col :span="8">
<el-form-item label="技术协议偏差" prop="technical_protocol_deviation">
<el-input v-model="formData.technical_protocol_deviation" clearable placeholder="请输入技术协议偏差" />
</el-form-item></el-col> <el-col :span="8">
<el-input v-model="formData.technical_protocol_deviation" clearable
placeholder="请输入技术协议偏差" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="协议偏差处理方案" prop="protocol_deviation_handling_plan">
<el-input v-model="formData.protocol_deviation_handling_plan" clearable
placeholder="请输入协议偏差处理方案" />
</el-form-item></el-col>
<el-col :span="24">
<el-col :span="8">
<el-form-item label="技术审查附件" prop="technical_review_annex">
<el-upload
accept="doc, docx, xls, xlsx, ppt, pptx, pdf, txt, zip, rar, tar, jpg, png, gif, jpeg, webp, wmv, avi, mpg, mpeg, 3gp, mov, mp4, flv, f4v, rmvb, mkv"
class="upload-demo" :show-file-list="false" aria-hidden="true"
:headers="{ Token: userStore.token }" :action="base_url + '/upload/file'"
:on-success="handleAvatarSuccess_four1" ref="upload">
<el-button type="primary">
上传
</el-button>
</el-upload>
<div>
<div v-for="(item, index) in formDataannex1" style="margin-left: 5px;display: block;">
<a style="margin-left: 10px; color: #4a5dff; align-self: flex-start" :href="item.uri"
target="_blank">{{ item.name }}</a>
<span style="cursor: pointer;margin-left: 5px;" @click="delFileFn1(index)">x</span>
</div>
</div>
<uploadAnnex :formData="formData" value="technical_review_annex"></uploadAnnex>
</el-form-item>
</el-col>
</el-row>
<div class="tit">商务审查</div>
<el-row>
@ -144,35 +116,17 @@
<el-input v-model="formData.pay_rate" clearable placeholder="请输入付款比例" />
</el-form-item></el-col> <el-col :span="8">
<el-form-item label="商务合同偏差" prop="business_contract_deviation">
<el-input v-model="formData.business_contract_deviation" clearable placeholder="请输入商务合同偏差" />
<el-input v-model="formData.business_contract_deviation" clearable
placeholder="请输入商务合同偏差" />
</el-form-item></el-col> <el-col :span="8">
<el-form-item label="偏差处理方案" prop="business_contract_deviation_handling_plan">
<el-input v-model="formData.business_contract_deviation_handling_plan" clearable
placeholder="请输入偏差处理方案" />
</el-form-item></el-col> <el-col :span="24">
<el-form-item label="商务审查附件" prop="business_contract_deviation_annex">
<el-upload
accept="doc, docx, xls, xlsx, ppt, pptx, pdf, txt, zip, rar, tar, jpg, png, gif, jpeg, webp, wmv, avi, mpg, mpeg, 3gp, mov, mp4, flv, f4v, rmvb, mkv"
class="upload-demo" :show-file-list="false" aria-hidden="true"
:headers="{ Token: userStore.token }" :action="base_url + '/upload/file'"
:on-success="handleAvatarSuccess_four2" ref="upload">
<el-button type="primary">
上传
</el-button>
</el-upload>
<div>
<div v-for="(item, index) in formDataannex2" style="margin-left: 5px;display: block;">
<a style="margin-left: 10px; color: #4a5dff; align-self: flex-start" :href="item.uri"
target="_blank">{{ item.name }}</a>
<span style="cursor: pointer;margin-left: 5px;" @click="delFileFn2(index)">x</span>
</div>
</div>
</el-form-item></el-col>
<uploadAnnex :formData="formData" value="business_contract_deviation_annex"></uploadAnnex>
</el-form-item>
</el-col>
</el-row>
<div class="tit">审查明细</div>
<div style="margin-bottom: 30px;">
@ -186,7 +140,8 @@
</el-table-column>
<el-table-column label="产品名称" prop="name">
<template #default="{ row, $index }">
<el-input v-model="row.name" readonly @click="productDiag(row, $index)" placeholder="请选择产品">
<el-input v-model="row.product_name" readonly @click="productDiag(row, $index)"
placeholder="请选择产品">
<template #suffix>
<icon name="el-icon-Search" />
</template>
@ -195,20 +150,22 @@
</el-table-column>
<el-table-column label="型号规格" prop="specs">
<template #default="{ row }">
<el-input v-model="row.specs" />
<el-input v-model="row.product_specs" />
</template></el-table-column>
<el-table-column label="单位" prop="unit">
<template #default="{ row }">
<el-input v-model="row.unit" /> </template>
<el-input v-model="row.product_unit" /> </template>
</el-table-column>
<el-table-column label="数量" prop="num">
<template #default="{ row, $index }">
<el-input v-model="row.num" type="number" @input="jiprice1(row, $index)" /> </template>
<el-input v-model="row.num" type="number" @change="calcTotalAmount"
@input="jiprice1(row, $index)" /> </template>
</el-table-column>
<el-table-column label="成本单价" prop="cost_price">
<template #default="{ row, $index }">
<el-input v-model="row.cost_price" type="number" @input="jiprice2(row, $index)" />
<el-input v-model="row.cost_price" @change="calcTotalAmount" type="number"
@input="jiprice2(row, $index)" />
</template>
</el-table-column>
@ -219,11 +176,12 @@
</el-table-column>
<el-table-column label="点数" prop="points">
<template #default="{ row }">
<el-input v-model="row.points" type="number" /> </template>
<el-input v-model="row.points" type="number" @change="calcTotalAmount" /> </template>
</el-table-column>
<el-table-column label="报价单价" prop="sale_price">
<template #default="{ row, $index }">
<el-input v-model="row.sale_price" type="number" @input="jiprice3(row, $index)" />
<el-input v-model="row.sale_price" type="number" @change="calcTotalAmount"
@input="jiprice3(row, $index)" />
</template>
</el-table-column>
<el-table-column label="报价金额" prop="total_amount">
@ -251,7 +209,7 @@ import Popup from '@/components/popup/index.vue'
import customDialog1 from '@/components/product/index.vue'
import biddocumentTable from "@/components/biddocument/index.vue"
import { apiBidDocumentExaminationAdd, apiBidDocumentExaminationEdit, apiBidDocumentExaminationDetail } from '@/api/bid_document_examination'
import type { PropType } from 'vue'
import { apiBidDocumentExaminationDetailLists, apiBidDocumentExaminationDetailDelete } from '@/api/bid_document_examination_detail'
import { watch } from "vue"
import { useDictData } from '@/hooks/useDictOptions'
const { dictData } = useDictData('whether_status,tax_rate,pay_type,construction_funds_sources,bidding_method')
@ -268,7 +226,6 @@ const bid_company_name = ref('')
const amount = ref('')
const buyer = ref('')
const project_name = ref('')
const project_fund_source = ref('')
const is_margin = ref('')
const bid_date = ref('')
const buy_date = ref('')
@ -280,36 +237,10 @@ const bidding_project_overview = ref('')
const project_introduction = ref('')
const bid_address = ref('')
const tableData = ref([{}])
const list1 = reactive([])
const list2 = reactive([])
import configs from "@/config"
const base_url = configs.baseUrl + configs.urlPrefix
import useUserStore from "@/stores/modules/user";
const userStore = useUserStore();
const formDataannex = reactive([])
const formDataannex1 = reactive([])
const formDataannex2 = reactive([])
//
const handleAvatarSuccess_four1 = (
response,
uploadFile
) => {
if (response.code == 0) {
ElMessage.error(response.msg);
return;
}
formDataannex1.push(
{ uri: response.data.uri, name: response.data.name }
);
};
//
const delFileFn1 = (index: number) => {
formDataannex1.splice(index, 1)
}
//
const jiprice1 = (row: any, index: any) => {
if (row.cost_price) {
@ -331,24 +262,7 @@ const jiprice3 = (row: any, index: any) => {
}
}
//
const handleAvatarSuccess_four2 = (
response,
uploadFile
) => {
if (response.code == 0) {
ElMessage.error(response.msg);
return;
}
formDataannex2.push(
{ uri: response.data.uri, name: response.data.name }
);
};
//
const delFileFn2 = (index: number) => {
formDataannex2.splice(index, 1)
}
const handleAdd = (row: any) => {
// row
@ -356,10 +270,12 @@ const handleAdd = (row: any) => {
tableData.value.splice(index + 1, 0, {});
};
const handleDelete = (row: any) => {
const handleDelete = async (row: any) => {
if (row.id) await apiBidDocumentExaminationDetailDelete({ id: row.id })
// row
const index = tableData.value.indexOf(row);
tableData.value.splice(index, 1);
calcTotalAmount()
};
//
@ -377,7 +293,9 @@ const formData = reactive({
id: '',
approve_id: 0,
buy_bidding_document_id: '',
project_name: "",
custom_name: "",
is_margin: "",
bidding_project_overview: '',
project_introduction: '',
technical_protocol_deviation: '',
@ -393,25 +311,28 @@ const formData = reactive({
quotation_detail: [],
})
watch(tableData.value, (newVal, oldVal) => {
const calcTotalAmount = () => {
formData.business_review_total_amount = 0
tableData.value.forEach(item => {
formData.business_review_total_amount += Number(item.sale_amount)
item.sale_amount = item.num * item.sale_price
})
})
}
//
const customEvent = (e: any) => {
formData.buy_bidding_document_id = e.id;
is_margin.value = e.is_margin
formData.is_margin = e.is_margin
bid_document_no.value = e.bid_document_no
invite_tenders_company_name.value = e.invite_tenders_company_name
bid_company_name.value = e.bid_company_name
amount.value = e.amount
buyer.value = e.buyer
project_name.value = e.project_name
formData.project_name = e.project_name
bid_date.value = e.bidding_time
buy_date.value = e.buy_date
invite_tenders_type.value = e.bid_type
@ -427,9 +348,9 @@ const customEvent = (e: any) => {
};
const customEvent1 = (e: any) => {
tableData.value[num.value].product_id = e.id
tableData.value[num.value].name = e.name
tableData.value[num.value].specs = e.specs
tableData.value[num.value].unit = e.unit
tableData.value[num.value].product_name = e.name
tableData.value[num.value].product_specs = e.specs
tableData.value[num.value].product_unit = e.unit
showDialog1.value = false;
};
@ -454,31 +375,7 @@ const setFormData = async (data: Record<any, any>) => {
formData[key] = data[key]
}
}
if (data.dept_id) {
// getlist1(data.org_id)
}
if (data.technical_review_annex && data.technical_review_annex.length > 0) {
const arry1 = data.technical_review_annex.map((item: any, index: any) => {
return {
name: `文件${index + 1}`,
uri: item
};
});
Object.assign(formDataannex1, arry1)
}
if (data.business_contract_deviation_annex && data.business_contract_deviation_annex.length > 0) {
const arry1 = data.business_contract_deviation_annex.map((item: any, index: any) => {
return {
name: `文件${index + 1}`,
uri: item
};
});
Object.assign(formDataannex2, arry1)
}
bid_document_no.value = data.bid_document_no
invite_tenders_company_name.value = data.invite_tenders_company_name
bid_company_name.value = data.bid_company_name
@ -494,6 +391,15 @@ const setFormData = async (data: Record<any, any>) => {
deposit_refund_time.value = data.margin_amount_return_date
bidding_project_overview.value = data.bid_project_overview
project_introduction.value = data.project_desc
let res = await apiBidDocumentExaminationDetailLists({ bid_document_examination_id: formData.id })
tableData.value = res.lists
calcTotalAmount()
}
const getDetail = async (row: Record<string, any>) => {
@ -506,12 +412,7 @@ const getDetail = async (row: Record<string, any>) => {
//
const handleSubmit = async () => {
if (formDataannex1.length > 0) {
formData.technical_review_annex = formDataannex1.map(item => item.uri)
}
if (formDataannex2.length > 0) {
formData.business_contract_deviation_annex = formDataannex2.map(item => item.uri)
}
if (tableData.value.length > 0) {
let data1 = tableData.value.map((item) => ({
product_id: item.product_id,

View File

@ -30,9 +30,6 @@
</template>
新增
</el-button>
<!-- <el-button v-perms="['bid.bid_document_examination/delete']" :disabled="!selectData.length" @click="handleDelete(selectData)">
删除
</el-button> -->
<div class="mt-4">
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" />
@ -50,12 +47,14 @@
<el-table-column label="总金额" prop="total_amount" show-overflow-tooltip />
<el-table-column label="操作" width="160" fixed="right">
<template #default="{ row }">
<!-- <el-button v-perms="['bid.bid_document_examination/edit']" type="primary" link @click="handleEdit(row)">
<el-button v-perms="['bid.bid_document_examination/edit']" type="primary" link
@click="handleEdit(row)">
编辑
</el-button> -->
<!-- <el-button v-perms="['bid.bid_document_examination/delete']" type="danger" link @click="handleDelete(row.id)">
</el-button>
<el-button v-perms="['bid.bid_document_examination/delete']" type="danger" link
@click="handleDelete(row.id)">
删除
</el-button> -->
</el-button>
<el-button v-perms="['bid.bid_document_examination/detail']" link
@click="handledetail(row)">
详情
@ -87,6 +86,7 @@ import EditPopup from './edit.vue'
import DetailPopup from './detail.vue'
const detailRef = shallowRef<InstanceType<typeof DetailPopup>>()
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
//

View File

@ -44,13 +44,11 @@
<div v-else> 暂无附件</div>
</el-descriptions-item>
<el-descriptions-item label="添加人" label-align="left" align="left" label-class-name="my-label">{{
formData.add_user_name }}</el-descriptions-item>
<el-descriptions-item label="创建日期" label-align="left" align="left" label-class-name="my-label">{{
formData.create_time }}</el-descriptions-item>
formData.add_user_name }}</el-descriptions-item>
<el-descriptions-item label="更新人" label-align="left" align="left" label-class-name="my-label">{{
formData.update_user_name }}</el-descriptions-item>
<el-descriptions-item label="更新日期" label-align="left" align="left" label-class-name="my-label">{{
formData.update_time }}</el-descriptions-item>
</el-descriptions>
</popup>
</div>

View File

@ -43,7 +43,7 @@
<el-table-column label="中标单位" prop="bidder_company" show-overflow-tooltip />
<el-table-column label="中标金额" prop="bidder_amount" show-overflow-tooltip />
<el-table-column label="操作" width="160" fixed="right">
<el-table-column label="操作" width="160" align="center" fixed="right">
<template #default="{ row }">
<el-button v-perms="['bid.bid_result/edit']" type="primary" link @click="handleEdit(row)">
编辑
@ -140,13 +140,7 @@ const handledetail = async (data: any) => {
detailRef.value?.open()
detailRef.value?.setFormData(res)
}
//
const projectlist = async () => {
let res = await apiProjectLists({ page_no: 1, page_size: 9999 })
projectList.value = res.lists
}
//
const documentlists = async () => {
@ -155,6 +149,5 @@ const documentlists = async () => {
}
documentlists()
projectlist()
getLists()
</script>