BUG 优化

dev
xiepeng 2024-04-29 17:54:44 +08:00
parent db6c4bfaea
commit df25c3b3f8
8 changed files with 35 additions and 31 deletions

View File

@ -305,6 +305,8 @@ const rules = {
DUE_DATE: [{ required: true, message: "请输入", trigger: "blur" }], DUE_DATE: [{ required: true, message: "请输入", trigger: "blur" }],
REMINDER_DAYS: [{ required: true, message: "请输入", trigger: "blur" }], REMINDER_DAYS: [{ required: true, message: "请输入", trigger: "blur" }],
REMINDER_DATE: [{ required: true, message: "请输入", trigger: "blur" }], REMINDER_DATE: [{ required: true, message: "请输入", trigger: "blur" }],
CONTRACT: [{ required: true, message: "请添加合同资料", trigger: "blur" }],
BEIDOUINFO: [{ required: true, message: "请添加北斗资料", trigger: "blur" }],
}; };
const getRemiderDate = (val) => { const getRemiderDate = (val) => {
if (val) { if (val) {

View File

@ -43,9 +43,9 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="到期状态" prop="DUE_DATE_TYPE"> <el-form-item label="到期状态" prop="REVERT">
<el-select <el-select
v-model="searchForm.DUE_DATE_TYPE" v-model="searchForm.REVERT"
placeholder="请选择到期状态" placeholder="请选择到期状态"
> >
<el-option <el-option
@ -125,15 +125,15 @@
> >
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="DUE_DATE_TYPE" label="到期状态" width="80"> <el-table-column prop="REVERT" label="到期状态" width="80">
<template #default="{ row }"> <template #default="{ row }">
<el-tag v-if="row.DUE_DATE_TYPE === 1" type="success" <el-tag v-if="row.REVERT === '1'" type="success"
>未到期</el-tag >未到期</el-tag
> >
<el-tag v-else-if="row.DUE_DATE_TYPE === 0" type="error" <el-tag v-else-if="row.REVERT === '0'" type="error"
>已到期</el-tag >已到期</el-tag
> >
<el-tag v-else-if="row.DUE_DATE_TYPE === 2" type="warning" <el-tag v-else-if="row.REVERT === '2'" type="warning"
>即将到期</el-tag >即将到期</el-tag
> >
</template> </template>

View File

@ -58,9 +58,9 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="到期状态" prop="DUE_DATE_TYPE"> <el-form-item label="到期状态" prop="REVERT">
<el-select <el-select
v-model="searchForm.DUE_DATE_TYPE" v-model="searchForm.REVERT"
placeholder="请选择到期状态" placeholder="请选择到期状态"
> >
<el-option <el-option
@ -146,15 +146,15 @@
> >
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="DUE_DATE_TYPE" label="到期状态" width="95"> <el-table-column prop="REVERT" label="到期状态" width="95">
<template #default="{ row }"> <template #default="{ row }">
<el-tag v-if="row.DUE_DATE_TYPE === 1" type="success" <el-tag v-if="row.REVERT === '1'" type="success"
>未到期 >未到期
</el-tag> </el-tag>
<el-tag v-else-if="row.DUE_DATE_TYPE === 0" type="error" <el-tag v-else-if="row.REVERT === '0'" type="error"
>已到期 >已到期
</el-tag> </el-tag>
<el-tag v-else-if="row.DUE_DATE_TYPE === 2" type="info" <el-tag v-else-if="row.REVERT === '2'" type="warning"
>即将到期 >即将到期
</el-tag> </el-tag>
</template> </template>
@ -259,6 +259,7 @@ const data = reactive({
}); });
const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef } = const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef } =
useListData(getInspectAnnuallyList); useListData(getInspectAnnuallyList);
console.log(await getInspectAnnuallyList());
const fnGetDataTransfer = () => { const fnGetDataTransfer = () => {
fnGetData({ fnGetData({
PLATE_NUMBER: searchForm.value.PLATE_NUMBER, PLATE_NUMBER: searchForm.value.PLATE_NUMBER,

View File

@ -146,6 +146,7 @@ const fnGetData = async () => {
if (!INSPECTANNUALLY_ID) return; if (!INSPECTANNUALLY_ID) return;
const resData = await getInspectAnnuallyView(INSPECTANNUALLY_ID); const resData = await getInspectAnnuallyView(INSPECTANNUALLY_ID);
info.value = resData.pd; info.value = resData.pd;
console.log(info.value);
fnBusChange(resData.pd.VEHICLE); fnBusChange(resData.pd.VEHICLE);
info.value.INSPECTINFO = addingPrefixToFile(resData.inspectinfoImgs); info.value.INSPECTINFO = addingPrefixToFile(resData.inspectinfoImgs);
}; };

View File

@ -58,9 +58,9 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="到期状态" prop="DUE_DATE_TYPE"> <el-form-item label="到期状态" prop="REVERT">
<el-select <el-select
v-model="searchForm.DUE_DATE_TYPE" v-model="searchForm.REVERT"
placeholder="请选择到期状态" placeholder="请选择到期状态"
> >
<el-option <el-option
@ -165,15 +165,15 @@
> >
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="DUE_DATE_TYPE" label="到期状态" width="75"> <el-table-column prop="REVERT" label="到期状态" width="75">
<template #default="{ row }"> <template #default="{ row }">
<el-tag v-if="row.DUE_DATE_TYPE === 1" type="success" <el-tag v-if="row.REVERT === '1'" type="success"
>未到期</el-tag >未到期</el-tag
> >
<el-tag v-else-if="row.DUE_DATE_TYPE === 0" type="error" <el-tag v-else-if="row.REVERT === '0'" type="error"
>已到期</el-tag >已到期</el-tag
> >
<el-tag v-else-if="row.DUE_DATE_TYPE === 2" type="warning " <el-tag v-else-if="row.REVERT === '2'" type="warning"
>即将到期</el-tag >即将到期</el-tag
> >
</template> </template>

View File

@ -43,9 +43,9 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="到期状态" prop="DUE_DATE_TYPE"> <el-form-item label="到期状态" prop="REVERT">
<el-select <el-select
v-model="searchForm.DUE_DATE_TYPE" v-model="searchForm.REVERT"
placeholder="请选择到期状态" placeholder="请选择到期状态"
> >
<el-option <el-option
@ -132,15 +132,15 @@
> >
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="DUE_DATE_TYPE" label="到期状态" width="80"> <el-table-column prop="REVERT" label="到期状态" width="80">
<template #default="{ row }"> <template #default="{ row }">
<el-tag v-if="row.DUE_DATE_TYPE === 1" type="success" <el-tag v-if="row.REVERT === '1'" type="success"
>未到期</el-tag >未到期</el-tag
> >
<el-tag v-else-if="row.DUE_DATE_TYPE === 0" type="error" <el-tag v-else-if="row.REVERT === '0'" type="error"
>已到期</el-tag >已到期</el-tag
> >
<el-tag v-else-if="row.DUE_DATE_TYPE === 2" type="info" <el-tag v-else-if="row.REVERT === '2'" type="warning"
>即将到期</el-tag >即将到期</el-tag
> >
</template> </template>

View File

@ -55,8 +55,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="到期状态" prop="DUE_DATE_TYPE"> <el-form-item label="到期状态" prop="REVERT">
<el-select v-model="searchForm.DUE_DATE_TYPE"> <el-select v-model="searchForm.REVERT">
<el-option <el-option
v-for="item in DUE_STATUS_LIST" v-for="item in DUE_STATUS_LIST"
:key="item.ID" :key="item.ID"
@ -134,15 +134,15 @@
</el-tag> </el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="DUE_DATE_TYPE" label="到期状态" width="80"> <el-table-column prop="REVERT" label="到期状态" width="80">
<template #default="{ row }"> <template #default="{ row }">
<el-tag v-if="row.DUE_DATE_TYPE === 1" type="success" <el-tag v-if="row.REVERT === '1'" type="success"
>未到期 >未到期
</el-tag> </el-tag>
<el-tag v-else-if="row.DUE_DATE_TYPE === 0" type="error" <el-tag v-else-if="row.REVERT === '0'" type="error"
>已到期 >已到期
</el-tag> </el-tag>
<el-tag v-else-if="row.DUE_DATE_TYPE === 2" type="info" <el-tag v-else-if="row.REVERT === '2'" type="warning"
>即将到期 >即将到期
</el-tag> </el-tag>
</template> </template>

View File

@ -128,7 +128,7 @@
<el-tag v-else-if="row.EXPIRE_STATUS === '0'" type="error" <el-tag v-else-if="row.EXPIRE_STATUS === '0'" type="error"
>已到期 >已到期
</el-tag> </el-tag>
<el-tag v-else-if="row.EXPIRE_STATUS === '2'" type="info" <el-tag v-else-if="row.EXPIRE_STATUS === '2'" type="warning"
>即将到期 >即将到期
</el-tag> </el-tag>
</template> </template>