营运车辆修改同步行车三检

dev
xiepeng 2024-05-13 18:01:12 +08:00
parent 46487fb9c1
commit 7874734e31
3 changed files with 21 additions and 10 deletions

View File

@ -59,9 +59,9 @@
> >
<el-option <el-option
v-for="item in data.OperationVehicle" v-for="item in data.OperationVehicle"
:key="item" :key="item.OPERATING_ID"
:label="item" :label="item.PLATE_NUMBER"
:value="item" :value="item.OPERATING_ID"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -294,6 +294,7 @@
import { import {
addSafetyWaybillreView, addSafetyWaybillreView,
getUserPersonTypeListAll, getUserPersonTypeListAll,
getSecurityWaybillreList,
} from "@/request/waybill_registration.js"; } from "@/request/waybill_registration.js";
import { onMounted, reactive, ref, watchEffect } from "vue"; import { onMounted, reactive, ref, watchEffect } from "vue";
import useFormValidate from "@/assets/js/useFormValidate.js"; import useFormValidate from "@/assets/js/useFormValidate.js";
@ -534,7 +535,16 @@ const changeDESTINATION = () => {
const fnVehicle = async () => { const fnVehicle = async () => {
const res = await getOperationVehicleList(); const res = await getOperationVehicleList();
const varList = res.varList || []; const varList = res.varList || [];
data.OperationVehicle = varList.map((item) => item.PLATE_NUMBER); data.OperationVehicle = varList;
const waybillList = await getSecurityWaybillreList();
waybillList.varList = waybillList.varList.filter((item) => {
return item.WAYBILLSTATUS !== "2";
});
waybillList.varList.forEach((item1) => {
data.OperationVehicle = data.OperationVehicle.filter((item2) => {
return item2.PLATE_NUMBER !== item1.TRANSPORTVEHICLE;
});
});
}; };
const fnTruck = async () => { const fnTruck = async () => {
@ -671,7 +681,6 @@ onMounted(async () => {
await fnVehicle(); await fnVehicle();
await fnTruck(); await fnTruck();
}); });
const fnSubmit = async () => { const fnSubmit = async () => {
await useFormValidate(formRef); await useFormValidate(formRef);
const formData = new FormData(); const formData = new FormData();

View File

@ -59,9 +59,9 @@
> >
<el-option <el-option
v-for="item in data.OperationVehicle" v-for="item in data.OperationVehicle"
:key="item" :key="item.OPERATING_ID"
:label="item" :label="item.PLATE_NUMBER"
:value="item" :value="item.OPERATING_ID"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -550,7 +550,7 @@ fnGetUnitsList();
const fnVehicle = async () => { const fnVehicle = async () => {
const res = await getOperationVehicleList(); const res = await getOperationVehicleList();
const varList = res.varList || []; const varList = res.varList || [];
data.OperationVehicle = varList.map((item) => item.PLATE_NUMBER); data.OperationVehicle = varList.map((item) => item);
}; };
const fnTruck = async () => { const fnTruck = async () => {

View File

@ -22,6 +22,7 @@
<el-option label="收车后" :value="2" /> <el-option label="收车后" :value="2" />
<el-option label="已出发" :value="1" /> <el-option label="已出发" :value="1" />
<el-option label="未出发" :value="0" /> <el-option label="未出发" :value="0" />
<el-option label="待承诺" :value="3" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -52,7 +53,8 @@
<el-table-column prop="WAYBILLNUMBER" label="运单编号" /> <el-table-column prop="WAYBILLNUMBER" label="运单编号" />
<el-table-column prop="WAYBILLSTATUS" label="运单状态" width="80"> <el-table-column prop="WAYBILLSTATUS" label="运单状态" width="80">
<template #default="{ row }"> <template #default="{ row }">
<el-tag v-if="row.WAYBILLSTATUS === '0' || row.WAYBILLSTATUS === '3'"></el-tag> <el-tag v-if="row.WAYBILLSTATUS === '3'"></el-tag>
<el-tag v-else-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>
</template> </template>