This commit is contained in:
2025-08-21 12:03:34 +08:00
parent 6dff42a6cb
commit c092650aed
7 changed files with 619 additions and 293 deletions

View File

@ -27,6 +27,9 @@
<el-form-item>
<el-button type="primary" @click="handleExport()" v-hasPermi="['bidding:biddingLimitList:export']">导出excel</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="Edit" @click="handleAudit" v-hasPermi="['desibiddinggn:biddingLimitList:query']">审核</el-button>
</el-form-item>
</el-form>
</el-card>
</transition>
@ -123,28 +126,24 @@ const changeSheet = () => {
//获取表名
const getSheetName = async () => {
try {
const params = {
projectId: currentProject.value?.id
// versions: queryForm.value.versions
};
const res = await sheetList(params);
if (res.code == 200) {
sheets.value = res.data;
if (res.data.length > 0) {
queryForm.value.sheet = res.data[0];
} else {
queryForm.value.sheet = '';
}
getTableData();
const params = {
projectId: currentProject.value?.id
// versions: queryForm.value.versions
};
const res = await sheetList(params);
if (res.code == 200) {
sheets.value = res.data;
if (res.data.length > 0) {
queryForm.value.sheet = res.data[0];
} else {
queryForm.value.sheet = '';
}
} catch (error) {}
getTableData();
}
};
//获取表格
const getTableData = async () => {
loading.value = true;
console.log(212121);
const params = {
projectId: currentProject.value?.id,
sheet: queryForm.value.sheet
@ -154,7 +153,6 @@ const getTableData = async () => {
if (res.code == 200) {
tableData.value = [res.data[0]];
}
console.log(loading.value);
};
//修改单价
const handleSave = (row: any) => {
@ -228,6 +226,11 @@ const handleExport = () => {
`限价一览表${queryForm.value.sheet}.xlsx`
);
};
// 审核
const handleAudit = (row: any) => {
//
};
onUnmounted(() => {
listeningProject();
});