forked from integrated_whb/integrated_whb_vue
BUG 优化
parent
6e324752fe
commit
4fd3727c49
|
@ -233,6 +233,7 @@
|
||||||
<el-input
|
<el-input
|
||||||
v-model="data.form.STARTADMINISTRATIVEAREA"
|
v-model="data.form.STARTADMINISTRATIVEAREA"
|
||||||
placeholder="请输入行政区域"
|
placeholder="请输入行政区域"
|
||||||
|
disabled
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -276,6 +277,7 @@
|
||||||
<el-input
|
<el-input
|
||||||
v-model="data.form.ENDDMINISTRATIVEAREA"
|
v-model="data.form.ENDDMINISTRATIVEAREA"
|
||||||
placeholder="请输入行政区域"
|
placeholder="请输入行政区域"
|
||||||
|
disabled
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
|
@ -330,16 +330,6 @@ const rules = {
|
||||||
],
|
],
|
||||||
VIN: [{ required: true, message: "请输入", trigger: "blur" }],
|
VIN: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||||
TRAILER_TYPE: [{ required: true, message: "请输入", trigger: "blur" }],
|
TRAILER_TYPE: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||||
CAR_OWNERS: [{ required: true, message: "请输入", trigger: "blur" }],
|
|
||||||
CAR_OWNERS_TEL: [
|
|
||||||
{ required: true, message: "请输入", trigger: "blur" },
|
|
||||||
{ min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" },
|
|
||||||
{
|
|
||||||
pattern:
|
|
||||||
/^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/,
|
|
||||||
message: "请输入正确的手机号码",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
CONTACTS: [{ required: true, message: "请输入", trigger: "blur" }],
|
CONTACTS: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||||
CONTACT_PHONE: [
|
CONTACT_PHONE: [
|
||||||
{ required: true, message: "请输入", trigger: "blur" },
|
{ required: true, message: "请输入", trigger: "blur" },
|
||||||
|
|
|
@ -295,16 +295,6 @@ const rules = {
|
||||||
],
|
],
|
||||||
VIN: [{ required: true, message: "请输入", trigger: "blur" }],
|
VIN: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||||
TRAILER_TYPE: [{ required: true, message: "请输入", trigger: "blur" }],
|
TRAILER_TYPE: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||||
CAR_OWNERS: [{ required: true, message: "请输入", trigger: "blur" }],
|
|
||||||
CAR_OWNERS_TEL: [
|
|
||||||
{ required: true, message: "请输入", trigger: "blur" },
|
|
||||||
{ min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" },
|
|
||||||
{
|
|
||||||
pattern:
|
|
||||||
/^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/,
|
|
||||||
message: "请输入正确的手机号码",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
CONTACTS: [{ required: true, message: "请输入", trigger: "blur" }],
|
CONTACTS: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||||
CONTACT_PHONE: [
|
CONTACT_PHONE: [
|
||||||
{ required: true, message: "请输入", trigger: "blur" },
|
{ required: true, message: "请输入", trigger: "blur" },
|
||||||
|
|
|
@ -408,18 +408,6 @@ const rules = {
|
||||||
VEHICLE_TYPE: [
|
VEHICLE_TYPE: [
|
||||||
{ required: true, message: "车辆类型不能为空", trigger: "blur" },
|
{ required: true, message: "车辆类型不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
VEHICLEOWNER: [
|
|
||||||
{ required: true, message: "车主/业户不能为空", trigger: "blur" },
|
|
||||||
],
|
|
||||||
VEHICLEOWNER_NUMBER: [
|
|
||||||
{ required: true, message: "请输入", trigger: "blur" },
|
|
||||||
{ min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" },
|
|
||||||
{
|
|
||||||
pattern:
|
|
||||||
/^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/,
|
|
||||||
message: "请输入正确的手机号码",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
CONTACT: [{ required: true, message: "联系人不能为空", trigger: "blur" }],
|
CONTACT: [{ required: true, message: "联系人不能为空", trigger: "blur" }],
|
||||||
CONTACT_NUMBER: [
|
CONTACT_NUMBER: [
|
||||||
{ required: true, message: "请输入", trigger: "blur" },
|
{ required: true, message: "请输入", trigger: "blur" },
|
||||||
|
@ -445,14 +433,6 @@ const rules = {
|
||||||
OPERATING_CERTIFICATE_PHOTO: [
|
OPERATING_CERTIFICATE_PHOTO: [
|
||||||
{ required: true, message: "营运证照片不能为空", trigger: "blur" },
|
{ required: true, message: "营运证照片不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
ENGINE_NUMBER: [
|
|
||||||
{ required: true, message: "请输入发动机号", trigger: "blur" },
|
|
||||||
{ min: 7, max: 8, message: "请输入7-8位发动机号", trigger: "blur" },
|
|
||||||
{
|
|
||||||
pattern: /^[A-Z0-9a-z\d]{7,8}$/,
|
|
||||||
message: "请输入正确的发动机号",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
VOUCH_NUMBERLOAD: [
|
VOUCH_NUMBERLOAD: [
|
||||||
{ required: true, message: "请输入核定载人数", trigger: "blur" },
|
{ required: true, message: "请输入核定载人数", trigger: "blur" },
|
||||||
{ pattern: /^([1-9][0-9]*)$/, message: "请输入整数", trigger: "blur" },
|
{ pattern: /^([1-9][0-9]*)$/, message: "请输入整数", trigger: "blur" },
|
||||||
|
|
|
@ -394,18 +394,6 @@ const rules = {
|
||||||
VEHICLE_TYPE: [
|
VEHICLE_TYPE: [
|
||||||
{ required: true, message: "车辆类型不能为空", trigger: "blur" },
|
{ required: true, message: "车辆类型不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
VEHICLEOWNER: [
|
|
||||||
{ required: true, message: "车主/业户不能为空", trigger: "blur" },
|
|
||||||
],
|
|
||||||
VEHICLEOWNER_NUMBER: [
|
|
||||||
{ required: true, message: "请输入", trigger: "blur" },
|
|
||||||
{ min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" },
|
|
||||||
{
|
|
||||||
pattern:
|
|
||||||
/^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[189]))\d{8}$/,
|
|
||||||
message: "请输入正确的手机号码",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
CONTACT: [{ required: true, message: "联系人不能为空", trigger: "blur" }],
|
CONTACT: [{ required: true, message: "联系人不能为空", trigger: "blur" }],
|
||||||
CONTACT_NUMBER: [
|
CONTACT_NUMBER: [
|
||||||
{ required: true, message: "请输入", trigger: "blur" },
|
{ required: true, message: "请输入", trigger: "blur" },
|
||||||
|
|
|
@ -343,6 +343,10 @@ const getVehicle = async (event) => {
|
||||||
};
|
};
|
||||||
getVehicle("1");
|
getVehicle("1");
|
||||||
const fnBusChange = async (event) => {
|
const fnBusChange = async (event) => {
|
||||||
|
if (!BEIDOU_ID) {
|
||||||
|
form.value.CAR_OWNERS = "";
|
||||||
|
form.value.TELEPHONE = "";
|
||||||
|
}
|
||||||
const resData = await getTrailerListCompass({ ID: event });
|
const resData = await getTrailerListCompass({ ID: event });
|
||||||
data.busInfo = resData.list[0];
|
data.busInfo = resData.list[0];
|
||||||
if (form.value.TELEPHONE === "") {
|
if (form.value.TELEPHONE === "") {
|
||||||
|
|
|
@ -383,6 +383,7 @@ const getRemiderDate = (val) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const getVehicle = async (event) => {
|
const getVehicle = async (event) => {
|
||||||
|
form.value.PLATE_NUMBER = ''
|
||||||
const resData = await getTrailerList({ TRAFFIC_TYPE: event });
|
const resData = await getTrailerList({ TRAFFIC_TYPE: event });
|
||||||
data.vehicleList = resData.list;
|
data.vehicleList = resData.list;
|
||||||
form.value.VEHICLE = "";
|
form.value.VEHICLE = "";
|
||||||
|
@ -396,6 +397,10 @@ const getVehicle = async (event) => {
|
||||||
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]);
|
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]);
|
||||||
};
|
};
|
||||||
const fnBusChange = async (event) => {
|
const fnBusChange = async (event) => {
|
||||||
|
if(!INSPECTANNUALLY_ID) {
|
||||||
|
form.value.CAR_OWNERS = ''
|
||||||
|
form.value.TELEPHONE = ''
|
||||||
|
}
|
||||||
const resData = await getTrailerList({ ID: event });
|
const resData = await getTrailerList({ ID: event });
|
||||||
data.busInfo = resData.list[0];
|
data.busInfo = resData.list[0];
|
||||||
if (form.value.CAR_OWNERS === "") {
|
if (form.value.CAR_OWNERS === "") {
|
||||||
|
|
|
@ -371,6 +371,7 @@ const rules = {
|
||||||
REMINDER_DATE: [{ required: true, message: "请输入", trigger: "blur" }],
|
REMINDER_DATE: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||||
};
|
};
|
||||||
const getVehicle = async (event) => {
|
const getVehicle = async (event) => {
|
||||||
|
form.value.PLATE_NUMBER = ''
|
||||||
const model = "insure";
|
const model = "insure";
|
||||||
const resData = await getTrailerList2({ TRAFFIC_TYPE: event, model });
|
const resData = await getTrailerList2({ TRAFFIC_TYPE: event, model });
|
||||||
data.vehicleList = resData.list;
|
data.vehicleList = resData.list;
|
||||||
|
@ -385,6 +386,10 @@ const getVehicle = async (event) => {
|
||||||
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]);
|
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]);
|
||||||
};
|
};
|
||||||
const fnBusChange = async (event) => {
|
const fnBusChange = async (event) => {
|
||||||
|
if(!INSURE_ID) {
|
||||||
|
form.value.CAR_OWNERS = ''
|
||||||
|
form.value.TELEPHONE = ''
|
||||||
|
}
|
||||||
const resData = await getTrailerList2({ ID: event });
|
const resData = await getTrailerList2({ ID: event });
|
||||||
data.busInfo = resData.list[0];
|
data.busInfo = resData.list[0];
|
||||||
if (form.value.CAR_OWNERS === "") {
|
if (form.value.CAR_OWNERS === "") {
|
||||||
|
|
|
@ -24,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"
|
||||||
|
@ -390,6 +390,10 @@ const getVehicle = async (event) => {
|
||||||
};
|
};
|
||||||
getVehicle("1");
|
getVehicle("1");
|
||||||
const fnBusChange = async (event) => {
|
const fnBusChange = async (event) => {
|
||||||
|
if (!MAINTENANCE_ID) {
|
||||||
|
form.value.CAR_OWNERS = "";
|
||||||
|
form.value.TELEPHONE = "";
|
||||||
|
}
|
||||||
const resData = await getTrailerListMaintenance({ ID: event });
|
const resData = await getTrailerListMaintenance({ ID: event });
|
||||||
data.busInfo = resData.list[0];
|
data.busInfo = resData.list[0];
|
||||||
if (form.value.CAR_OWNERS === "") {
|
if (form.value.CAR_OWNERS === "") {
|
||||||
|
|
|
@ -346,6 +346,7 @@ const getRemiderDate = (val) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const getVehicle = async (event) => {
|
const getVehicle = async (event) => {
|
||||||
|
form.value.PLATE_NUMBER = "";
|
||||||
const resData = await getOperationTrailerList({ TRAFFIC_TYPE: event });
|
const resData = await getOperationTrailerList({ TRAFFIC_TYPE: event });
|
||||||
data.vehicleList = resData.list;
|
data.vehicleList = resData.list;
|
||||||
form.value.VEHICLE = "";
|
form.value.VEHICLE = "";
|
||||||
|
@ -359,6 +360,10 @@ const getVehicle = async (event) => {
|
||||||
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]);
|
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]);
|
||||||
};
|
};
|
||||||
const fnBusChange = async (event) => {
|
const fnBusChange = async (event) => {
|
||||||
|
if (!OPERATIONS_ID) {
|
||||||
|
form.value.TELEPHONE = "";
|
||||||
|
form.value.CAR_OWNERS = "";
|
||||||
|
}
|
||||||
const resData = await getOperationTrailerList({ ID: event });
|
const resData = await getOperationTrailerList({ ID: event });
|
||||||
data.busInfo = resData.list[0];
|
data.busInfo = resData.list[0];
|
||||||
if (form.value.TELEPHONE === "") {
|
if (form.value.TELEPHONE === "") {
|
||||||
|
|
Loading…
Reference in New Issue