forked from integrated_whb/integrated_whb_vue
BUG 优化
parent
258e02c2b6
commit
8b8eab7b72
|
@ -7,7 +7,11 @@
|
|||
</el-col>
|
||||
<el-col :span="12">
|
||||
<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
|
||||
v-for="item in data.vehicleList"
|
||||
:key="item.ID"
|
||||
|
@ -20,7 +24,7 @@
|
|||
<el-col :span="24">
|
||||
<el-divider content-position="left">基本信息</el-divider>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-col :span="13">
|
||||
<el-form-item label="行驶证照片" prop="DRIVING_LICENSE_IMG">
|
||||
<layout-upload
|
||||
v-model:file-list="data.busInfo.DRIVING_LICENSE_IMG"
|
||||
|
@ -341,6 +345,7 @@ getVehicle("1");
|
|||
const fnBusChange = async (event) => {
|
||||
const resData = await getTrailerListCompass({ ID: event });
|
||||
data.busInfo = resData.list[0];
|
||||
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS;
|
||||
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
|
||||
resData.drivingLicenseImgs
|
||||
);
|
||||
|
|
|
@ -7,7 +7,10 @@
|
|||
</el-col>
|
||||
<el-col :span="12">
|
||||
<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
|
||||
v-for="item in OPERATING_VEHICLE_TYPE_LIST"
|
||||
:key="item.ID"
|
||||
|
@ -19,7 +22,9 @@
|
|||
</el-col>
|
||||
<el-col :span="12">
|
||||
<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
|
||||
v-for="item in data.vehicleList"
|
||||
:key="item.ID"
|
||||
|
@ -311,7 +316,6 @@ const data = reactive({
|
|||
const rules = {
|
||||
VEHICLE_MODEL: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||
VEHICLE: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||
CAR_OWNERS: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||
TELEPHONE: [
|
||||
{ required: true, message: "请输入", trigger: "blur" },
|
||||
{ min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" },
|
||||
|
@ -391,6 +395,7 @@ const getVehicle = async (event) => {
|
|||
const fnBusChange = async (event) => {
|
||||
const resData = await getTrailerList({ ID: event });
|
||||
data.busInfo = resData.list[0];
|
||||
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS
|
||||
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
|
||||
resData.drivingLicenseImgs
|
||||
);
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
<el-form-item label="年检车型" prop="VEHICLE_MODEL">
|
||||
<el-select v-model="form.VEHICLE_MODEL" @change="getVehicle">
|
||||
<el-option
|
||||
disabled
|
||||
v-for="item in OPERATING_VEHICLE_TYPE_LIST"
|
||||
:key="item.ID"
|
||||
:label="item.NAME"
|
||||
|
@ -19,8 +20,9 @@
|
|||
</el-col>
|
||||
<el-col :span="12">
|
||||
<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
|
||||
disabled
|
||||
v-for="item in data.vehicleList"
|
||||
:key="item.PLATE_NUMBER"
|
||||
:label="item.PLATE_NUMBER"
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
</el-col>
|
||||
<el-col :span="12">
|
||||
<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
|
||||
v-for="item in OPERATING_VEHICLE_TYPE_LIST"
|
||||
:key="item.ID"
|
||||
|
@ -19,7 +21,9 @@
|
|||
</el-col>
|
||||
<el-col :span="12">
|
||||
<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
|
||||
v-for="item in data.vehicleList"
|
||||
:key="item.ID"
|
||||
|
@ -342,7 +346,7 @@ const data = reactive({
|
|||
});
|
||||
const rules = {
|
||||
VEHICLE_MODEL: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||
VEHICLE: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||
|
||||
CAR_OWNERS: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||
TELEPHONE: [
|
||||
{ required: true, message: "请输入", trigger: "blur" },
|
||||
|
@ -379,6 +383,7 @@ const getVehicle = async (event) => {
|
|||
const fnBusChange = async (event) => {
|
||||
const resData = await getTrailerList2({ ID: event });
|
||||
data.busInfo = resData.list[0];
|
||||
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS
|
||||
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
|
||||
resData.drivingLicenseImgs
|
||||
);
|
||||
|
@ -438,6 +443,8 @@ const fnGetData = async () => {
|
|||
if (!INSURE_ID) return;
|
||||
const resData = await getInsureView({ INSURE_ID });
|
||||
form.value = resData.pd;
|
||||
|
||||
console.log(form.value);
|
||||
const listData = await getTrailerList({
|
||||
TRAFFIC_TYPE: form.value.VEHICLE_MODEL,
|
||||
});
|
||||
|
|
|
@ -410,6 +410,7 @@ const getRemiderDate = (val) => {
|
|||
const fnGetData = async () => {
|
||||
if (!INSURE_ID) return;
|
||||
const resData = await getInsureView({ INSURE_ID });
|
||||
|
||||
form.value = resData.pd;
|
||||
const listData = await getTrailerList({
|
||||
TRAFFIC_TYPE: form.value.VEHICLE_MODEL,
|
||||
|
|
|
@ -392,6 +392,7 @@ getVehicle("1");
|
|||
const fnBusChange = async (event) => {
|
||||
const resData = await getTrailerListMaintenance({ ID: event });
|
||||
data.busInfo = resData.list[0];
|
||||
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS
|
||||
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
|
||||
resData.drivingLicenseImgs
|
||||
);
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
</el-col>
|
||||
<el-col :span="12">
|
||||
<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
|
||||
v-for="item in OPERATING_VEHICLE_TYPE_LIST"
|
||||
:key="item.ID"
|
||||
|
@ -19,7 +21,9 @@
|
|||
</el-col>
|
||||
<el-col :span="12">
|
||||
<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
|
||||
v-for="item in data.vehicleList"
|
||||
:key="item.ID"
|
||||
|
@ -32,7 +36,7 @@
|
|||
<el-col :span="24">
|
||||
<el-divider content-position="left">基本信息</el-divider>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-col :span="13">
|
||||
<el-form-item label="行驶证照片" prop="DRIVING_LICENSE_IMG">
|
||||
<layout-upload
|
||||
v-model:file-list="data.busInfo.DRIVING_LICENSE_IMG"
|
||||
|
@ -353,6 +357,7 @@ const getVehicle = async (event) => {
|
|||
const fnBusChange = async (event) => {
|
||||
const resData = await getOperationTrailerList({ ID: event });
|
||||
data.busInfo = resData.list[0];
|
||||
form.value.CAR_OWNERS = data.busInfo.CAR_OWNERS
|
||||
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
|
||||
resData.drivingLicenseImgs
|
||||
);
|
||||
|
|
|
@ -384,6 +384,7 @@ const fnGetTrailerInfo = async () => {
|
|||
form.value.DRIVINGLICENSE_PHOTO = resData.pd.DRIVING_LICENSE_IMG;
|
||||
form.value.VEHICLE_MODEL = resData.pd.TRAILER_MODEL;
|
||||
form.value.VEHICLE_BRAND = resData.pd.TRAILER_BRAND;
|
||||
form.value.VEHICLEOWNER = resData.pd.CAR_OWNERS
|
||||
form.value.DRIVINGLICENSE_PHOTO = addingPrefixToFile(
|
||||
resData.drivingLicenseImgs
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue