口门门禁车辆申请增加审核信息,修改问题
parent
9a0af93217
commit
2da16be46d
|
@ -51,6 +51,7 @@
|
||||||
<u-upload class="mt-10"
|
<u-upload class="mt-10"
|
||||||
multiple
|
multiple
|
||||||
:fileList="form.vehicleImgFiles"
|
:fileList="form.vehicleImgFiles"
|
||||||
|
:maxCount="2"
|
||||||
:preview-full-image="true"
|
:preview-full-image="true"
|
||||||
@afterRead="fnAfterRead($event, 'vehicleImgFiles')"
|
@afterRead="fnAfterRead($event, 'vehicleImgFiles')"
|
||||||
@delete="fnDeletePic($event, 'vehicleImgFiles')"
|
@delete="fnDeletePic($event, 'vehicleImgFiles')"
|
||||||
|
@ -71,7 +72,7 @@ import AppTime from "@/components/time/index.vue";
|
||||||
import AppDepartment from "@/components/department/index.vue";
|
import AppDepartment from "@/components/department/index.vue";
|
||||||
import AppPersonnel from "@/components/personnel/index.vue";
|
import AppPersonnel from "@/components/personnel/index.vue";
|
||||||
import {
|
import {
|
||||||
addVehicleMessage, goCheckLicenceNo, getVehiclemessageView, setVehiclemessageSave, getCorpInfoList,
|
goCheckLicenceNo, getVehiclemessageView, setVehiclemessageSave, getCorpInfoList,
|
||||||
setVehiclemessageUpdate, getAuditUserList, uploadSmd, getVehicleTypeList
|
setVehiclemessageUpdate, getAuditUserList, uploadSmd, getVehicleTypeList
|
||||||
} from "@/api";
|
} from "@/api";
|
||||||
export default {
|
export default {
|
||||||
|
@ -253,13 +254,13 @@ export default {
|
||||||
deleteFileIds: JSON.stringify(this.form.deleteFileIds),
|
deleteFileIds: JSON.stringify(this.form.deleteFileIds),
|
||||||
vehicleImgFiles: null,
|
vehicleImgFiles: null,
|
||||||
drivingImgFiles: null,
|
drivingImgFiles: null,
|
||||||
OLD_LICENCE_NO:this.form.LICENCE_NO
|
OLD_LICENCE_NO: this.form.LICENCE_NO,
|
||||||
|
VEHICLE_BELONG_TYPE: "0"
|
||||||
}
|
}
|
||||||
// const resData = await addVehicleMessage(params);
|
|
||||||
this.VEHICLE_ID ? await setVehiclemessageUpdate(params) : await setVehiclemessageSave(params)
|
this.VEHICLE_ID ? await setVehiclemessageUpdate(params) : await setVehiclemessageSave(params)
|
||||||
uni.navigateBack(); // 返回上一页
|
uni.navigateBack(); // 返回上一页
|
||||||
} catch {
|
} catch(e) {
|
||||||
uni.$u.toast('请补全必填项')
|
uni.$u.toast(e?.msg || '请补全必填项')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async getCorpInfoList() {
|
async getCorpInfoList() {
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
<view class="search card">
|
<view class="search card">
|
||||||
<u--input
|
<u--input
|
||||||
prefixIcon="search"
|
prefixIcon="search"
|
||||||
placeholder="请输入关键字"
|
placeholder="请输入车牌号"
|
||||||
border="surround"
|
border="surround"
|
||||||
v-model="keyword"
|
v-model="LICENCE_NO"
|
||||||
clearable
|
clearable
|
||||||
shape="circle"
|
shape="circle"
|
||||||
></u--input>
|
></u--input>
|
||||||
|
@ -22,7 +22,7 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-between mt-10 subtitle">
|
<view class="flex-between mt-10 subtitle">
|
||||||
<text>车牌类型:{{ VEHICLE_LICENSE_PLATE_TYPE_MAP[item.LICENCE_TYPE] }}</text>
|
<text>车牌类型:{{ VEHICLE_LICENSE_PLATE_TYPE_MAP[item.LICENCE_TYPE] }}</text>
|
||||||
<text>车辆类型:{{ VEHICLE_TYPE_MAP[item.VEHICLE_TYPE] }}</text>
|
<text>车辆类型:{{ getVehicleTypeName(item.VEHICLE_TYPE) }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-between mt-10 subtitle">
|
<view class="flex-between mt-10 subtitle">
|
||||||
<text>车辆所属部门:{{ item.JG_DEPT_NAME }}</text>
|
<text>车辆所属部门:{{ item.JG_DEPT_NAME }}</text>
|
||||||
|
@ -30,9 +30,10 @@
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-between mt-10 subtitle">
|
<view class="flex-between mt-10 subtitle">
|
||||||
<text>车辆进/出港状态:{{ item.vehicleArrivalStatus || '出港' }}</text>
|
<text>车辆进/出港状态:{{ item.vehicleArrivalStatus || '出港' }}</text>
|
||||||
|
<text> 审核状态:{{ IS_AUDIT_LIST[item.IS_AUDIT] }} </text>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-between mt-10 subtitle">
|
<view class="flex-between mt-10 subtitle">
|
||||||
<text>车辆来源:{{ VEHICLE_OWNERSHIP_TYPE_MAP[item.CAR_FROM] }}</text>
|
<text>车辆来源:{{ VEHICLE_OWNERSHIP_TYPE_MAP[parseInt(item.CAR_FROM)] }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="mt-10 see_btn">
|
<view class="mt-10 see_btn">
|
||||||
<view class="wrap">
|
<view class="wrap">
|
||||||
|
@ -59,7 +60,7 @@
|
||||||
<script>
|
<script>
|
||||||
import FabButton from '@/components/fab_button/index.vue'
|
import FabButton from '@/components/fab_button/index.vue'
|
||||||
|
|
||||||
import {getVehiclemessagePageList, setVehiclemessageDelete} from "@/api";
|
import {getVehiclemessagePageList, getVehicleTypeList, setVehiclemessageDelete} from "@/api";
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
FabButton,
|
FabButton,
|
||||||
|
@ -73,21 +74,23 @@ export default {
|
||||||
3: "绿牌",
|
3: "绿牌",
|
||||||
4: "黑牌",
|
4: "黑牌",
|
||||||
},
|
},
|
||||||
VEHICLE_TYPE_MAP: {
|
VEHICLE_TYPE_MAP: [],
|
||||||
0: "货车",
|
|
||||||
1: "轿车",
|
|
||||||
2: "大巴客车",
|
|
||||||
},
|
|
||||||
AUDIT_STATUS_MAP: {
|
AUDIT_STATUS_MAP: {
|
||||||
1: "待审核",
|
1: "待审核",
|
||||||
2: "已审核",
|
2: "已审核",
|
||||||
3: "审核驳回",
|
3: "审核驳回",
|
||||||
},
|
},
|
||||||
VEHICLE_OWNERSHIP_TYPE_MAP: {
|
VEHICLE_OWNERSHIP_TYPE_MAP: {
|
||||||
0: "员工车辆",
|
0: "监管",
|
||||||
1: "单位车辆",
|
1: "企业",
|
||||||
|
2: "相关方",
|
||||||
},
|
},
|
||||||
keyword: '',
|
IS_AUDIT_LIST: {
|
||||||
|
1: "待审核",
|
||||||
|
2: "审核通过",
|
||||||
|
3: "审核驳回",
|
||||||
|
},
|
||||||
|
LICENCE_NO: '',
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
totalPage: 0,
|
totalPage: 0,
|
||||||
|
@ -101,12 +104,12 @@ export default {
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.resetList()
|
this.resetList()
|
||||||
|
this.getVehicleTypes()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async getData() {
|
async getData() {
|
||||||
const resData = await getVehiclemessagePageList({ type: 1, CAR_FROM: 2, curPage: this.currentPage, limit: this.pageSize});
|
const resData = await getVehiclemessagePageList({ LICENCE_NO: this.LICENCE_NO, type: 1, CAR_FROM: 2, curPage: this.currentPage, limit: this.pageSize});
|
||||||
this.list = [...this.list, ...resData.varList];
|
this.list = [...this.list, ...resData.varList];
|
||||||
console.info(this.list)
|
|
||||||
this.totalPage = resData.page.totalPage;
|
this.totalPage = resData.page.totalPage;
|
||||||
},
|
},
|
||||||
fnDelete(VEHICLE_ID) {
|
fnDelete(VEHICLE_ID) {
|
||||||
|
@ -149,6 +152,22 @@ export default {
|
||||||
this.currentPage++;
|
this.currentPage++;
|
||||||
if (this.totalPage >= this.currentPage) this.getData();
|
if (this.totalPage >= this.currentPage) this.getData();
|
||||||
},
|
},
|
||||||
|
async getVehicleTypes() {
|
||||||
|
const { list } = await getVehicleTypeList();
|
||||||
|
const TYPE_LIST = [];
|
||||||
|
for (let i = 0; i < list.length; i++){
|
||||||
|
TYPE_LIST.push({id: list[i].BIANMA, name: list[i].NAME})
|
||||||
|
}
|
||||||
|
this.VEHICLE_TYPE_MAP = TYPE_LIST;
|
||||||
|
},
|
||||||
|
getVehicleTypeName(id) {
|
||||||
|
if (!id || id === '') return '';
|
||||||
|
for (let i = 0; i < this.VEHICLE_TYPE_MAP.length; i++) {
|
||||||
|
if (this.VEHICLE_TYPE_MAP[i].id === id) {
|
||||||
|
return this.VEHICLE_TYPE_MAP[i].name
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -26,11 +26,37 @@
|
||||||
<view slot="title" class="title">车辆归属人</view>
|
<view slot="title" class="title">车辆归属人</view>
|
||||||
<view slot="label" class="mt-10">{{ info.USER_NAME }}</view>
|
<view slot="label" class="mt-10">{{ info.USER_NAME }}</view>
|
||||||
</u-cell>
|
</u-cell>
|
||||||
|
<u-cell>
|
||||||
|
<view slot="title" class="title">有效期开始</view>
|
||||||
|
<view slot="label" class="mt-10">{{ info.VISIT_START_TIME }}</view>
|
||||||
|
</u-cell>
|
||||||
|
<u-cell>
|
||||||
|
<view slot="title" class="title">有效期结束</view>
|
||||||
|
<view slot="label" class="mt-10">{{ info.VISIT_END_TIME }}</view>
|
||||||
|
</u-cell>
|
||||||
|
<template v-if="info.IS_AUDIT === '2' || info.IS_AUDIT === '3'">
|
||||||
|
<u-cell>
|
||||||
|
<view slot="title" class="title">审核状态</view>
|
||||||
|
<view slot="label" class="mt-10">{{ IS_AUDIT_LIST[info.IS_AUDIT] }}</view>
|
||||||
|
</u-cell>
|
||||||
|
<u-cell>
|
||||||
|
<view slot="title" class="title">企业审核人</view>
|
||||||
|
<view slot="label" class="mt-10">{{ info.QY_AUDITOR_NAME }}</view>
|
||||||
|
</u-cell>
|
||||||
|
<u-cell>
|
||||||
|
<view slot="title" class="title">企业审核时间</view>
|
||||||
|
<view slot="label" class="mt-10">{{ info.QY_AUDIT_DATE }}</view>
|
||||||
|
</u-cell>
|
||||||
|
<u-cell>
|
||||||
|
<view slot="title" class="title">打回原因</view>
|
||||||
|
<view slot="label" class="mt-10">{{ info.QY_REMARK }}</view>
|
||||||
|
</u-cell>
|
||||||
|
</template>
|
||||||
<u-cell v-if="info.drivingImgs && info.drivingImgs.length > 0">
|
<u-cell v-if="info.drivingImgs && info.drivingImgs.length > 0">
|
||||||
<view slot="title" class="title">行驶证照片:</view>
|
<view slot="title" class="title">行驶证照片:</view>
|
||||||
<view slot="label" class="mt-10">
|
<view slot="label" class="mt-10">
|
||||||
<view style="display: flex;flex-wrap: wrap">
|
<view style="display: flex;flex-wrap: wrap">
|
||||||
<view v-for="item in info.drivingImgs" :key="item" class="ml-10 mt-10">
|
<view v-for="(item, index) in info.drivingImgs" :key="index" class="ml-10 mt-10">
|
||||||
<u--image :showLoading="true" :src="item.FILEPATH" width="80px" height="80px"
|
<u--image :showLoading="true" :src="item.FILEPATH" width="80px" height="80px"
|
||||||
@click="previewImage(item.FILEPATH, info.drivingImgs)"></u--image>
|
@click="previewImage(item.FILEPATH, info.drivingImgs)"></u--image>
|
||||||
</view>
|
</view>
|
||||||
|
@ -41,7 +67,7 @@
|
||||||
<view slot="title" class="title">车辆照片:</view>
|
<view slot="title" class="title">车辆照片:</view>
|
||||||
<view slot="label" class="mt-10">
|
<view slot="label" class="mt-10">
|
||||||
<view style="display: flex;flex-wrap: wrap">
|
<view style="display: flex;flex-wrap: wrap">
|
||||||
<view v-for="item in info.vehicleImgs" :key="item" class="ml-10 mt-10">
|
<view v-for="(item, index) in info.vehicleImgs" :key="index" class="ml-10 mt-10">
|
||||||
<u--image :showLoading="true" :src="item.FILEPATH" width="80px" height="80px"
|
<u--image :showLoading="true" :src="item.FILEPATH" width="80px" height="80px"
|
||||||
@click="previewImage(item.FILEPATH, info.vehicleImgs)"></u--image>
|
@click="previewImage(item.FILEPATH, info.vehicleImgs)"></u--image>
|
||||||
</view>
|
</view>
|
||||||
|
@ -72,6 +98,11 @@ export default {
|
||||||
0: "全部",
|
0: "全部",
|
||||||
1: "东港区",
|
1: "东港区",
|
||||||
2: "西港区",
|
2: "西港区",
|
||||||
|
},
|
||||||
|
IS_AUDIT_LIST: {
|
||||||
|
1: "待审核",
|
||||||
|
2: "审核通过",
|
||||||
|
3: "审核驳回",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -99,7 +130,14 @@ export default {
|
||||||
const TYPE_MAP = new Map(TYPE_LIST.map(item => [item.id, item.name]));
|
const TYPE_MAP = new Map(TYPE_LIST.map(item => [item.id, item.name]));
|
||||||
// 如果你需要将 Map 转换为普通对象
|
// 如果你需要将 Map 转换为普通对象
|
||||||
this.VEHICLE_TYPE_MAP = Object.fromEntries(TYPE_MAP);
|
this.VEHICLE_TYPE_MAP = Object.fromEntries(TYPE_MAP);
|
||||||
}
|
},
|
||||||
|
previewImage(src, srcArr) {
|
||||||
|
const urls = srcArr.map((item) => item.FILEPATH);
|
||||||
|
uni.previewImage({
|
||||||
|
urls,
|
||||||
|
current: src,
|
||||||
|
});
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue