BUG 优化

dev
xiepeng 2024-04-16 16:19:55 +08:00
parent 258e02c2b6
commit 8b8eab7b72
8 changed files with 39 additions and 12 deletions

View File

@ -7,7 +7,11 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="北斗车辆"> <el-form-item label="北斗车辆">
<el-select v-model="form.PLATE_NUMBER" @change="getBusInfo"> <el-select
v-model="form.PLATE_NUMBER"
:disabled="form.BEIDOU_ID"
@change="getBusInfo"
>
<el-option <el-option
v-for="item in data.vehicleList" v-for="item in data.vehicleList"
:key="item.ID" :key="item.ID"
@ -20,7 +24,7 @@
<el-col :span="24"> <el-col :span="24">
<el-divider content-position="left">基本信息</el-divider> <el-divider content-position="left">基本信息</el-divider>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="13">
<el-form-item label="行驶证照片" prop="DRIVING_LICENSE_IMG"> <el-form-item label="行驶证照片" prop="DRIVING_LICENSE_IMG">
<layout-upload <layout-upload
v-model:file-list="data.busInfo.DRIVING_LICENSE_IMG" v-model:file-list="data.busInfo.DRIVING_LICENSE_IMG"
@ -341,6 +345,7 @@ getVehicle("1");
const fnBusChange = async (event) => { const fnBusChange = async (event) => {
const resData = await getTrailerListCompass({ ID: event }); const resData = await getTrailerListCompass({ ID: event });
data.busInfo = resData.list[0]; data.busInfo = resData.list[0];
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS;
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
resData.drivingLicenseImgs resData.drivingLicenseImgs
); );

View File

@ -7,7 +7,10 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="年检车型" prop="VEHICLE_MODEL"> <el-form-item label="年检车型" prop="VEHICLE_MODEL">
<el-select v-model="form.VEHICLE_MODEL" @change="getVehicle"> <el-select
v-model="form.VEHICLE_MODEL"
:disabled="form.INSPECTANNUALLY_ID"
@change="getVehicle">
<el-option <el-option
v-for="item in OPERATING_VEHICLE_TYPE_LIST" v-for="item in OPERATING_VEHICLE_TYPE_LIST"
:key="item.ID" :key="item.ID"
@ -19,7 +22,9 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="年检车辆"> <el-form-item label="年检车辆">
<el-select v-model="form.PLATE_NUMBER" @change="getBusInfo"> <el-select v-model="form.PLATE_NUMBER"
:disabled="form.INSPECTANNUALLY_ID"
@change="getBusInfo">
<el-option <el-option
v-for="item in data.vehicleList" v-for="item in data.vehicleList"
:key="item.ID" :key="item.ID"
@ -311,7 +316,6 @@ const data = reactive({
const rules = { const rules = {
VEHICLE_MODEL: [{ required: true, message: "请输入", trigger: "blur" }], VEHICLE_MODEL: [{ required: true, message: "请输入", trigger: "blur" }],
VEHICLE: [{ required: true, message: "请输入", trigger: "blur" }], VEHICLE: [{ required: true, message: "请输入", trigger: "blur" }],
CAR_OWNERS: [{ required: true, message: "请输入", trigger: "blur" }],
TELEPHONE: [ TELEPHONE: [
{ required: true, message: "请输入", trigger: "blur" }, { required: true, message: "请输入", trigger: "blur" },
{ min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" }, { min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" },
@ -391,6 +395,7 @@ const getVehicle = async (event) => {
const fnBusChange = async (event) => { const fnBusChange = async (event) => {
const resData = await getTrailerList({ ID: event }); const resData = await getTrailerList({ ID: event });
data.busInfo = resData.list[0]; data.busInfo = resData.list[0];
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
resData.drivingLicenseImgs resData.drivingLicenseImgs
); );

View File

@ -9,6 +9,7 @@
<el-form-item label="年检车型" prop="VEHICLE_MODEL"> <el-form-item label="年检车型" prop="VEHICLE_MODEL">
<el-select v-model="form.VEHICLE_MODEL" @change="getVehicle"> <el-select v-model="form.VEHICLE_MODEL" @change="getVehicle">
<el-option <el-option
disabled
v-for="item in OPERATING_VEHICLE_TYPE_LIST" v-for="item in OPERATING_VEHICLE_TYPE_LIST"
:key="item.ID" :key="item.ID"
:label="item.NAME" :label="item.NAME"
@ -19,8 +20,9 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="年检车辆" prop="PLATE_NUMBER"> <el-form-item label="年检车辆" prop="PLATE_NUMBER">
<el-select v-model="form.PLATE_NUMBER" @change="getBusInfo"> <el-select v-model="form.PLATE_NUMBER" @change="getBusInfo" >
<el-option <el-option
disabled
v-for="item in data.vehicleList" v-for="item in data.vehicleList"
:key="item.PLATE_NUMBER" :key="item.PLATE_NUMBER"
:label="item.PLATE_NUMBER" :label="item.PLATE_NUMBER"

View File

@ -7,7 +7,9 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="保险车型" prop="VEHICLE_MODEL"> <el-form-item label="保险车型" prop="VEHICLE_MODEL">
<el-select v-model="form.VEHICLE_MODEL" @change="getVehicle"> <el-select v-model="form.VEHICLE_MODEL"
:disabled="form.INSURE_ID"
@change="getVehicle">
<el-option <el-option
v-for="item in OPERATING_VEHICLE_TYPE_LIST" v-for="item in OPERATING_VEHICLE_TYPE_LIST"
:key="item.ID" :key="item.ID"
@ -19,7 +21,9 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="保险车辆" prop="VEHICLE"> <el-form-item label="保险车辆" prop="VEHICLE">
<el-select v-model="form.VEHICLE" @change="getBusInfo"> <el-select v-model="form.PLATE_NUMBER"
:disabled="form.INSURE_ID"
@change="getBusInfo">
<el-option <el-option
v-for="item in data.vehicleList" v-for="item in data.vehicleList"
:key="item.ID" :key="item.ID"
@ -342,7 +346,7 @@ const data = reactive({
}); });
const rules = { const rules = {
VEHICLE_MODEL: [{ required: true, message: "请输入", trigger: "blur" }], VEHICLE_MODEL: [{ required: true, message: "请输入", trigger: "blur" }],
VEHICLE: [{ required: true, message: "请输入", trigger: "blur" }],
CAR_OWNERS: [{ required: true, message: "请输入", trigger: "blur" }], CAR_OWNERS: [{ required: true, message: "请输入", trigger: "blur" }],
TELEPHONE: [ TELEPHONE: [
{ required: true, message: "请输入", trigger: "blur" }, { required: true, message: "请输入", trigger: "blur" },
@ -379,6 +383,7 @@ const getVehicle = async (event) => {
const fnBusChange = async (event) => { const fnBusChange = async (event) => {
const resData = await getTrailerList2({ ID: event }); const resData = await getTrailerList2({ ID: event });
data.busInfo = resData.list[0]; data.busInfo = resData.list[0];
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
resData.drivingLicenseImgs resData.drivingLicenseImgs
); );
@ -438,6 +443,8 @@ const fnGetData = async () => {
if (!INSURE_ID) return; if (!INSURE_ID) return;
const resData = await getInsureView({ INSURE_ID }); const resData = await getInsureView({ INSURE_ID });
form.value = resData.pd; form.value = resData.pd;
console.log(form.value);
const listData = await getTrailerList({ const listData = await getTrailerList({
TRAFFIC_TYPE: form.value.VEHICLE_MODEL, TRAFFIC_TYPE: form.value.VEHICLE_MODEL,
}); });

View File

@ -410,6 +410,7 @@ const getRemiderDate = (val) => {
const fnGetData = async () => { const fnGetData = async () => {
if (!INSURE_ID) return; if (!INSURE_ID) return;
const resData = await getInsureView({ INSURE_ID }); const resData = await getInsureView({ INSURE_ID });
form.value = resData.pd; form.value = resData.pd;
const listData = await getTrailerList({ const listData = await getTrailerList({
TRAFFIC_TYPE: form.value.VEHICLE_MODEL, TRAFFIC_TYPE: form.value.VEHICLE_MODEL,

View File

@ -392,6 +392,7 @@ getVehicle("1");
const fnBusChange = async (event) => { const fnBusChange = async (event) => {
const resData = await getTrailerListMaintenance({ ID: event }); const resData = await getTrailerListMaintenance({ ID: event });
data.busInfo = resData.list[0]; data.busInfo = resData.list[0];
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
resData.drivingLicenseImgs resData.drivingLicenseImgs
); );

View File

@ -7,7 +7,9 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="运营车型" prop="VEHICLE_MODEL"> <el-form-item label="运营车型" prop="VEHICLE_MODEL">
<el-select v-model="form.VEHICLE_MODEL" @change="getVehicle"> <el-select v-model="form.VEHICLE_MODEL"
:disabled="form.OPERATIONS_ID"
@change="getVehicle">
<el-option <el-option
v-for="item in OPERATING_VEHICLE_TYPE_LIST" v-for="item in OPERATING_VEHICLE_TYPE_LIST"
:key="item.ID" :key="item.ID"
@ -19,7 +21,9 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="运营车辆" prop="PLATE_NUMBER"> <el-form-item label="运营车辆" prop="PLATE_NUMBER">
<el-select v-model="form.PLATE_NUMBER" @change="getBusInfo"> <el-select v-model="form.PLATE_NUMBER"
:disabled="form.OPERATIONS_ID"
@change="getBusInfo">
<el-option <el-option
v-for="item in data.vehicleList" v-for="item in data.vehicleList"
:key="item.ID" :key="item.ID"
@ -32,7 +36,7 @@
<el-col :span="24"> <el-col :span="24">
<el-divider content-position="left">基本信息</el-divider> <el-divider content-position="left">基本信息</el-divider>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="13">
<el-form-item label="行驶证照片" prop="DRIVING_LICENSE_IMG"> <el-form-item label="行驶证照片" prop="DRIVING_LICENSE_IMG">
<layout-upload <layout-upload
v-model:file-list="data.busInfo.DRIVING_LICENSE_IMG" v-model:file-list="data.busInfo.DRIVING_LICENSE_IMG"
@ -353,6 +357,7 @@ const getVehicle = async (event) => {
const fnBusChange = async (event) => { const fnBusChange = async (event) => {
const resData = await getOperationTrailerList({ ID: event }); const resData = await getOperationTrailerList({ ID: event });
data.busInfo = resData.list[0]; data.busInfo = resData.list[0];
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile( data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
resData.drivingLicenseImgs resData.drivingLicenseImgs
); );

View File

@ -384,6 +384,7 @@ const fnGetTrailerInfo = async () => {
form.value.DRIVINGLICENSE_PHOTO = resData.pd.DRIVING_LICENSE_IMG; form.value.DRIVINGLICENSE_PHOTO = resData.pd.DRIVING_LICENSE_IMG;
form.value.VEHICLE_MODEL = resData.pd.TRAILER_MODEL; form.value.VEHICLE_MODEL = resData.pd.TRAILER_MODEL;
form.value.VEHICLE_BRAND = resData.pd.TRAILER_BRAND; form.value.VEHICLE_BRAND = resData.pd.TRAILER_BRAND;
form.value.VEHICLEOWNER = resData.pd.CAR_OWNERS
form.value.DRIVINGLICENSE_PHOTO = addingPrefixToFile( form.value.DRIVINGLICENSE_PHOTO = addingPrefixToFile(
resData.drivingLicenseImgs resData.drivingLicenseImgs
); );