This commit is contained in:
2025-08-22 22:58:47 +08:00
7 changed files with 156 additions and 145 deletions

View File

@ -25,6 +25,7 @@
</el-table-column>
<el-table-column prop="name" label="名称" />
<el-table-column prop="content" label="内容" />
<el-table-column prop="price" label="限价" />
<el-table-column prop="plannedBiddingTime" label="计划招标时间" align="center">
<template #default="scope">
<el-date-picker v-model="scope.row.plannedBiddingTime" type="date" value-format="YYYY-MM-DD" placeholder="选择时间" />

View File

@ -44,7 +44,7 @@
<el-table-column prop="name" label="工程或费用名称" />
<el-table-column prop="unit" label="单位" />
<el-table-column prop="quantity" label="数量" />
<el-table-column prop="remark" label="单价" align="center">
<el-table-column prop="unitPrice" label="单价" align="center">
<template #default="scope">
<el-input-number
:model-value="scope.row.unitPrice"
@ -81,7 +81,7 @@
<script setup lang="ts">
import { useUserStoreHook } from '@/store/modules/user';
import { listBillofquantitiesLimitList, obtainAllVersionNumbers, sheetList, updatePrice, importExcelFile } from '@/api/contract/index';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { proxy } = getCurrentInstance() as any;
const userStore = useUserStoreHook();
const currentProject = computed(() => userStore.selectedProject);
@ -94,6 +94,7 @@ const options = ref<any[]>([]);
const sheets = ref<any[]>([]);
const tableData = ref<any[]>([]);
const isExpandAll = ref(false);
const reviewStatus = ref('');
//获取版本号
const getVersionNums = async () => {
@ -110,6 +111,7 @@ const getVersionNums = async () => {
options.value = res.data;
if (res.data.length > 0) {
queryForm.value.versions = res.data[0].versions;
reviewStatus.value = res.data[0].status;
getSheetName();
} else {
@ -179,14 +181,10 @@ const getTableData = async () => {
};
const res = await listBillofquantitiesLimitList(params);
if (res.code == 200) {
tableData.value = [res.data[0]];
tableData.value = res.data;
}
} catch (error) {
console.log(error);
ElMessage({
message: '获取表格失败',
type: 'error'
});
tableData.value = [];
loading.value = false;
} finally {
@ -269,6 +267,20 @@ const handleExport = () => {
`限价一览表${queryForm.value.sheet}.xlsx`
);
};
// 审批
const clickApprovalSheet = () => {
proxy.$tab.closePage(proxy?.$route);
proxy?.$router.push({
path: `/approval/contractLimitPrice/indexEdit`,
query: {
projectId: currentProject.value?.id,
versions: queryForm.value.versions,
sheet: queryForm.value.sheet,
type: 'update',
status: reviewStatus.value
}
});
};
onUnmounted(() => {
listeningProject();
});