BUG优化

行车三检 详情 添加安全承诺记录
dev
xiepeng 2024-05-10 17:51:33 +08:00
parent b23d40a502
commit 7c9aa8603d
5 changed files with 85 additions and 24 deletions

View File

@ -46,14 +46,56 @@
<td class="title" colspan="1">收车地点</td> <td class="title" colspan="1">收车地点</td>
<td colspan="5">{{ data.info.DESTINATION_NAME }}</td> <td colspan="5">{{ data.info.DESTINATION_NAME }}</td>
</tr> </tr>
<tr> <!-- <tr>
<td :rowspan="4" class="title">行车安全问询</td> <td :rowspan="4" class="title">行车安全问询</td>
</tr> </tr>
<tr v-for="(item, index) in data.commitmentList" :key="index"> <tr v-for="(item, index) in data.commitmentList" :key="index">
<td colspan="9"> <td colspan="9">
<span>{{ item.INQUIRYCONTENT }}</span> <span>{{ item.INQUIRYCONTENT }}</span>
</td> </td>
</tr>-->
<tr v-for="(item, index) in data.info.varList2" :key="index">
<td :rowspan="1" class="title">行车安全问询</td>
<td colspan="8">
<table
v-for="(item1, index1) in item.pd1Children"
:key="index1"
class="archive_print_table"
>
<tr>
<td :rowspan="10" class="title">承诺记录</td>
</tr>
<tr v-for="(item2, index2) in data.commitmentList" :key="index2">
<td class="title">承诺项</td>
<td>{{ item2.INQUIRYCONTENT }}</td>
<td>
<el-tag v-if="item2.STATUS === '0'"></el-tag>
<el-tag v-else-if="item2.STATUS === '1'">不合格</el-tag>
<el-tag v-else></el-tag>
</td>
</tr>
<tr>
<td class="title">检查人</td>
<td colspan="3">
<img
v-viewer
:src="VITE_FILE_URL + item1.SIGN_PATH"
alt=""
width="20"
height="20"
class="mr-10 mt-10"
/>
</td>
</tr>
<tr>
<td class="title">检查时间</td>
<td colspan="3">{{ item1.SIGN_TIME }}</td>
</tr>
</table>
</td>
</tr> </tr>
<tr v-for="(item, index) in data.info.varList" :key="index"> <tr v-for="(item, index) in data.info.varList" :key="index">
<td :rowspan="1" class="title">{{ item.CHECKTYPE_NAME }}检查</td> <td :rowspan="1" class="title">{{ item.CHECKTYPE_NAME }}检查</td>
<td colspan="8"> <td colspan="8">
@ -70,6 +112,10 @@
<td>{{ item2.CHECKITEMNAME }}</td> <td>{{ item2.CHECKITEMNAME }}</td>
<td class="title">检查项说明</td> <td class="title">检查项说明</td>
<td>{{ item2.REMARKS }}</td> <td>{{ item2.REMARKS }}</td>
<td>
<el-tag v-if="item2.STATUS === '0'"></el-tag>
<el-tag v-else></el-tag>
</td>
</tr> </tr>
<tr> <tr>
<td class="title">检查人</td> <td class="title">检查人</td>
@ -84,11 +130,11 @@
/> />
</td> </td>
<td class="title">检查时间</td> <td class="title">检查时间</td>
<td>{{ item1.SIGN_TIME }}</td> <td colspan="2">{{ item1.SIGN_TIME }}</td>
</tr> </tr>
<tr> <tr v-if="item.CHECKTYPE_NAME !== '待承诺'">
<td class="title">检查照片</td> <td class="title">检查照片</td>
<td colspan="1"> <td colspan="4">
<div> <div>
<template <template
v-for="(item3, index3) in item1.IMG_PATH.split(',')" v-for="(item3, index3) in item1.IMG_PATH.split(',')"
@ -105,15 +151,6 @@
</template> </template>
</div> </div>
</td> </td>
<td v-if="item.CHECKTYPE_NAME === '出车前'" class="title">
是否合格
</td>
<td v-if="item.CHECKTYPE_NAME === '出车前'" colspan="3">
<el-tag v-if="item1.pd2Children[0].STATUS === '0'"
>合格</el-tag
>
<el-tag v-else></el-tag>
</td>
</tr> </tr>
<!-- <tr v-if="item.CHECKTYPE_NAME === '出车前'">--> <!-- <tr v-if="item.CHECKTYPE_NAME === '出车前'">-->
<!-- <td class="title">是否合格</td>--> <!-- <td class="title">是否合格</td>-->

View File

@ -56,6 +56,7 @@
<el-tag v-if="row.WAYBILLSTATUS === '0'"></el-tag> <el-tag v-if="row.WAYBILLSTATUS === '0'"></el-tag>
<el-tag v-else-if="row.WAYBILLSTATUS === '1'">已出发</el-tag> <el-tag v-else-if="row.WAYBILLSTATUS === '1'">已出发</el-tag>
<el-tag v-else-if="row.WAYBILLSTATUS === '2'">收车后</el-tag> <el-tag v-else-if="row.WAYBILLSTATUS === '2'">收车后</el-tag>
<el-tag v-else-if="row.WAYBILLSTATUS === '3'">待承诺</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="TRANSPORTVEHICLE" label="运输车辆" width="100" /> <el-table-column prop="TRANSPORTVEHICLE" label="运输车辆" width="100" />

View File

@ -54,6 +54,9 @@
<el-tag v-if="row.CHECKTYPE_NAME === '收车后'" type="success">{{ <el-tag v-if="row.CHECKTYPE_NAME === '收车后'" type="success">{{
row.CHECKTYPE_NAME row.CHECKTYPE_NAME
}}</el-tag> }}</el-tag>
<el-tag v-if="row.CHECKTYPE_NAME === '待承诺'" type="error">{{
row.CHECKTYPE_NAME
}}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="REMARKS" label="检查项说明" /> <el-table-column prop="REMARKS" label="检查项说明" />

View File

@ -53,7 +53,7 @@
{{ data.info.ORIGIN_NAME }} {{ data.info.ORIGIN_NAME }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="起运地址"> <el-descriptions-item label="起运地址">
{{ data.info.SHIPPINGADDRESS }} {{ data.info.SHIPPING_ADDR}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="行政区域"> <el-descriptions-item label="行政区域">
{{ data.info.STARTADMINISTRATIVEAREA }} {{ data.info.STARTADMINISTRATIVEAREA }}
@ -62,7 +62,7 @@
{{ data.info.DESTINATION_NAME }} {{ data.info.DESTINATION_NAME }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="目的地址"> <el-descriptions-item label="目的地址">
{{ data.info.DESTINATIONADDRESS }} {{ data.info.DESTINATION_ADDR }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="行政区域"> <el-descriptions-item label="行政区域">
{{ data.info.ENDDMINISTRATIVEAREA }} {{ data.info.ENDDMINISTRATIVEAREA }}

View File

@ -356,17 +356,37 @@ const data = reactive({
}); });
const insureType = async (rule, insureType, callback) => { const insureType = async (rule, insureType, callback) => {
if (insureType) { if(!INSURE_ID) {
data.info = await getInsureList(); if (insureType) {
data.info.varList.forEach((item) => { data.info = await getInsureList();
if(item.VEHICLE === data.busInfo.ID) { data.info.varList.forEach((item) => {
if(insureType === item.INSURANCE_COVERAGE) { if(item.VEHICLE === data.busInfo.ID) {
callback(new Error("该保险已被此车辆重复选择")); if(insureType === item.INSURANCE_COVERAGE) {
callback(new Error("该保险已被此车辆重复选择"));
}
} }
});
} else {
callback();
}
}else{
if (insureType) {
const resData = await getInsureView({ INSURE_ID })
if(insureType === resData.pd.INSURANCE_COVERAGE) {
callback();
}else{
data.info = await getInsureList();
data.info.varList.forEach((item) => {
if(item.VEHICLE === data.busInfo.ID) {
if(insureType === item.INSURANCE_COVERAGE) {
callback(new Error("该保险已被此车辆重复选择"));
}
}
});
} }
}); } else {
} else { callback();
callback(); }
} }
}; };