页面路径完善

This commit is contained in:
Zy
2026-04-28 19:18:57 +08:00
parent bde3ca8ff1
commit 7b89144dd4
70 changed files with 573 additions and 221 deletions

View File

@@ -29,7 +29,6 @@
<template #header>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button type="primary" plain icon="Plus" @click="handleMain" v-hasPermi="['system:bill:add']">详情</el-button>
<el-button type="primary" plain icon="Plus" @click="handleAdd" v-hasPermi="['system:bill:add']">新增</el-button>
</el-col>
<el-col :span="1.5">
@@ -53,7 +52,7 @@
<dict-tag :options="com_questionnaire_scope" :value="scope.row.chargeScope"></dict-tag>
</template>
</el-table-column>
<el-table-column label="收费项目" align="center" prop="chargeItemId" />
<el-table-column label="收费项目" align="center" prop="chargeItemName" />
<el-table-column label="收费周期" align="center" prop="chargePeriod">
<template #default="scope">
<dict-tag :options="com_bill_charge_period" :value="scope.row.chargePeriod"></dict-tag>
@@ -71,11 +70,11 @@
</el-table-column>
<el-table-column label="单价" align="center" prop="endDate" width="180">
<template #default="scope">
<span>{{ parseTime(scope.row.endDate, '{y}-{m}-{d}') }}</span>
<span>{{ scope.row.fixedPrice }}</span>
</template>
</el-table-column>
<el-table-column label="数量" align="center" prop="chargePeriod" />
<el-table-column label="费用合计" align="center" prop="chargePeriod" />
<!-- <el-table-column label="数量" align="center" prop="chargePeriod" />
<el-table-column label="费用合计" align="center" prop="chargePeriod" /> -->
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:bill:edit']">修改</el-button>
@@ -159,18 +158,6 @@ const getList = async () => {
loading.value = false;
};
/** 取消按钮 */
const cancel = () => {
reset();
dialog.visible = false;
};
/** 表单重置 */
const reset = () => {
form.value = { ...initFormData };
billFormRef.value?.resetFields();
};
/** 搜索按钮操作 */
const handleQuery = () => {
queryParams.value.pageNum = 1;
@@ -201,27 +188,10 @@ const handleAdd = () => {
/** 修改按钮操作 */
const handleUpdate = async (row?: BillVO) => {
reset();
const _id = row?.id || ids.value[0];
const res = await getBill(_id);
Object.assign(form.value, res.data);
dialog.visible = true;
dialog.title = '修改账单管理';
};
/** 提交按钮 */
const submitForm = () => {
billFormRef.value?.validate(async (valid: boolean) => {
if (valid) {
buttonLoading.value = true;
if (form.value.id) {
await updateBill(form.value).finally(() => (buttonLoading.value = false));
} else {
await addBill(form.value).finally(() => (buttonLoading.value = false));
}
proxy?.$modal.msgSuccess('操作成功');
dialog.visible = false;
await getList();
router.push({
path: '/sdb/editSdbbill',
query: {
id: row.id
}
});
};
@@ -244,17 +214,6 @@ const handleDelete = async (row?: BillVO) => {
await getList();
};
/** 导出按钮操作 */
const handleExport = () => {
proxy?.download(
'system/bill/export',
{
...queryParams.value
},
`bill_${new Date().getTime()}.xlsx`
);
};
onMounted(() => {
getList();
});