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

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
v-for="item in data.OperationVehicle"
:key="item"
:label="item"
:value="item"
:key="item.OPERATING_ID"
:label="item.PLATE_NUMBER"
:value="item.OPERATING_ID"
/>
</el-select>
</el-form-item>
@ -294,6 +294,7 @@
import {
addSafetyWaybillreView,
getUserPersonTypeListAll,
getSecurityWaybillreList,
} from "@/request/waybill_registration.js";
import { onMounted, reactive, ref, watchEffect } from "vue";
import useFormValidate from "@/assets/js/useFormValidate.js";
@ -534,7 +535,16 @@ const changeDESTINATION = () => {
const fnVehicle = async () => {
const res = await getOperationVehicleList();
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 () => {
@ -671,7 +681,6 @@ onMounted(async () => {
await fnVehicle();
await fnTruck();
});
const fnSubmit = async () => {
await useFormValidate(formRef);
const formData = new FormData();

View File

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

View File

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