提交
This commit is contained in:
@ -113,3 +113,11 @@ export const getUnitList = (query: any): AxiosPromise<any> => {
|
||||
params: query
|
||||
});
|
||||
};
|
||||
//修改状态
|
||||
export const editStatus = (query: any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/tender/biddingPlan/editStatus',
|
||||
method: 'put',
|
||||
data: query
|
||||
});
|
||||
};
|
||||
|
@ -28,12 +28,7 @@
|
||||
<el-table-column prop="content" label="内容" />
|
||||
<el-table-column prop="bidd" label="招标文件">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
:disabled="scope.row.bidStatus == 1"
|
||||
link
|
||||
v-hasPermi="['tender:segmentedIndicatorPlanning:getMore']"
|
||||
@click="biddView(scope.row)"
|
||||
<el-button type="primary" link v-hasPermi="['tender:segmentedIndicatorPlanning:getMore']" @click="biddView(scope.row)"
|
||||
>查看文件</el-button
|
||||
>
|
||||
</template>
|
||||
@ -41,12 +36,10 @@
|
||||
<el-table-column prop="winningBidder" label="中标单位" />
|
||||
<el-table-column prop="bidFileName" label="中标文件">
|
||||
<template #default="scope">
|
||||
<el-button type="primary" link :disabled="scope.row.bidStatus == 1" @click="openPdf(scope.row.bidFile)"
|
||||
>{{ scope.row.bidFileName }}
|
||||
</el-button>
|
||||
<el-button type="primary" link @click="openPdf(scope.row.bidFile)">{{ scope.row.bidFileName }} </el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="plannedBiddingTime" label="计划招标时间" align="center">
|
||||
<el-table-column prop="plannedBiddingTime" label="计划招标时间" align="center" width="250">
|
||||
<template #default="scope">
|
||||
<el-date-picker
|
||||
v-model="scope.row.plannedBiddingTime"
|
||||
@ -62,7 +55,25 @@
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="price" label="操作" align="center">
|
||||
<el-table-column prop="contractPrice" label="合同金额" align="center" width="200">
|
||||
<template #default="scope">
|
||||
<el-input-number
|
||||
:model-value="scope.row.contractPrice"
|
||||
@change="
|
||||
(val) => {
|
||||
scope.row.contractPrice = val;
|
||||
changeContractPrice(val, scope.row);
|
||||
}
|
||||
"
|
||||
:precision="2"
|
||||
:step="1"
|
||||
:controls="false"
|
||||
:disabled="scope.row.bidStatus == 1"
|
||||
/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column prop="price" label="操作" align="center" width="400">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
type="primary"
|
||||
@ -71,7 +82,7 @@
|
||||
@click="handleSave(scope.row)"
|
||||
v-hasPermi="['tender:segmentedIndicatorPlanning:edit']"
|
||||
:disabled="scope.row.bidStatus == 1"
|
||||
>上传投标资料
|
||||
>招标上传
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
@ -80,7 +91,7 @@
|
||||
@click="handleWinTheBid(scope.row)"
|
||||
v-hasPermi="['tender:segmentedIndicatorPlanning:edit']"
|
||||
:disabled="scope.row.bidStatus == 1"
|
||||
>上传中标资料
|
||||
>中标上传
|
||||
</el-button>
|
||||
<!-- <el-button type="primary" link icon="Edit" @click="handleSave(scope.row)" v-hasPermi="['tender:segmentedIndicatorPlanning:edit']"
|
||||
>信息
|
||||
@ -103,6 +114,15 @@
|
||||
v-hasPermi="['tender:segmentedIndicatorPlanning:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
<el-button
|
||||
type="primary"
|
||||
link
|
||||
icon="Lock"
|
||||
@click="editStatusBtn(scope.row)"
|
||||
:disabled="scope.row.bidStatus == 1"
|
||||
v-hasPermi="['tender:segmentedIndicatorPlanning:remove']"
|
||||
>确定</el-button
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -212,7 +232,7 @@
|
||||
<el-table-column prop="price" label="操作" align="center">
|
||||
<template #default="scope">
|
||||
<el-button type="primary" link icon="View" @click="openPdf(scope.row.url)">查看</el-button>
|
||||
<el-button type="primary" link icon="Delete" @click="delHandlebidd(scope.row)">删除</el-button>
|
||||
<el-button type="primary" link icon="Delete" @click="delHandlebidd(scope.row)" v-if="scope.row.bidStatus != 1">删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -240,8 +260,10 @@ import {
|
||||
getTenderPlanDetail,
|
||||
obtainAllVersionNumbers,
|
||||
biddViewLook,
|
||||
delBiddView
|
||||
delBiddView,
|
||||
editStatus
|
||||
} from '@/api/tender/index';
|
||||
import { it } from 'element-plus/es/locale/index.mjs';
|
||||
|
||||
const userStore = useUserStoreHook();
|
||||
const currentProject = computed(() => userStore.selectedProject);
|
||||
@ -539,6 +561,7 @@ const submitForm = async (formEl: FormInstance | undefined) => {
|
||||
}
|
||||
});
|
||||
};
|
||||
//修改计划时间
|
||||
const changeBiddingTime = (value: any, row: any) => {
|
||||
updateTenderPlan({
|
||||
...row
|
||||
@ -552,6 +575,21 @@ const changeBiddingTime = (value: any, row: any) => {
|
||||
}
|
||||
});
|
||||
};
|
||||
//修改合同金额
|
||||
const changeContractPrice = (value: any, row: any) => {
|
||||
updateTenderPlan({
|
||||
...row
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
ElMessage({
|
||||
message: '修改成功',
|
||||
type: 'success'
|
||||
});
|
||||
getList();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
//上传投标文件
|
||||
const handleSave = (row: any) => {
|
||||
informationRef.value.open(row, planType.value);
|
||||
@ -612,6 +650,7 @@ const biddView = async (row: any) => {
|
||||
};
|
||||
const res = await biddViewLook(params);
|
||||
if (res.code == 200) {
|
||||
res.data.forEach((item) => (item.bidStatus = biddViewRow.value.bidStatus));
|
||||
biddViewData.value = res.data;
|
||||
}
|
||||
};
|
||||
@ -630,6 +669,20 @@ const delHandlebidd = (row: any) => {
|
||||
}
|
||||
});
|
||||
};
|
||||
//修改状态
|
||||
const editStatusBtn = (row: any) => {
|
||||
editStatus({
|
||||
...row
|
||||
}).then((res) => {
|
||||
if (res.code == 200) {
|
||||
ElMessage({
|
||||
message: '修改成功',
|
||||
type: 'success'
|
||||
});
|
||||
getList();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
//查看文件
|
||||
const openPdf = (url: any) => {
|
||||
|
Reference in New Issue
Block a user