BUG 优化

dev
xiepeng 2024-04-19 12:07:50 +08:00
parent 6e324752fe
commit 4fd3727c49
10 changed files with 26 additions and 53 deletions

View File

@ -233,6 +233,7 @@
<el-input
v-model="data.form.STARTADMINISTRATIVEAREA"
placeholder="请输入行政区域"
disabled
clearable
/>
</el-form-item>
@ -276,6 +277,7 @@
<el-input
v-model="data.form.ENDDMINISTRATIVEAREA"
placeholder="请输入行政区域"
disabled
clearable
/>
</el-form-item>

View File

@ -330,16 +330,6 @@ const rules = {
],
VIN: [{ 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" }],
CONTACT_PHONE: [
{ required: true, message: "请输入", trigger: "blur" },

View File

@ -295,16 +295,6 @@ const rules = {
],
VIN: [{ 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" }],
CONTACT_PHONE: [
{ required: true, message: "请输入", trigger: "blur" },

View File

@ -408,18 +408,6 @@ const rules = {
VEHICLE_TYPE: [
{ 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_NUMBER: [
{ required: true, message: "请输入", trigger: "blur" },
@ -445,14 +433,6 @@ const rules = {
OPERATING_CERTIFICATE_PHOTO: [
{ 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: [
{ required: true, message: "请输入核定载人数", trigger: "blur" },
{ pattern: /^([1-9][0-9]*)$/, message: "请输入整数", trigger: "blur" },

View File

@ -394,18 +394,6 @@ const rules = {
VEHICLE_TYPE: [
{ 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_NUMBER: [
{ required: true, message: "请输入", trigger: "blur" },

View File

@ -343,6 +343,10 @@ const getVehicle = async (event) => {
};
getVehicle("1");
const fnBusChange = async (event) => {
if (!BEIDOU_ID) {
form.value.CAR_OWNERS = "";
form.value.TELEPHONE = "";
}
const resData = await getTrailerListCompass({ ID: event });
data.busInfo = resData.list[0];
if (form.value.TELEPHONE === "") {

View File

@ -383,6 +383,7 @@ const getRemiderDate = (val) => {
};
const getVehicle = async (event) => {
form.value.PLATE_NUMBER = ''
const resData = await getTrailerList({ TRAFFIC_TYPE: event });
data.vehicleList = resData.list;
form.value.VEHICLE = "";
@ -396,6 +397,10 @@ const getVehicle = async (event) => {
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]);
};
const fnBusChange = async (event) => {
if(!INSPECTANNUALLY_ID) {
form.value.CAR_OWNERS = ''
form.value.TELEPHONE = ''
}
const resData = await getTrailerList({ ID: event });
data.busInfo = resData.list[0];
if (form.value.CAR_OWNERS === "") {

View File

@ -371,6 +371,7 @@ const rules = {
REMINDER_DATE: [{ required: true, message: "请输入", trigger: "blur" }],
};
const getVehicle = async (event) => {
form.value.PLATE_NUMBER = ''
const model = "insure";
const resData = await getTrailerList2({ TRAFFIC_TYPE: event, model });
data.vehicleList = resData.list;
@ -385,6 +386,10 @@ const getVehicle = async (event) => {
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]);
};
const fnBusChange = async (event) => {
if(!INSURE_ID) {
form.value.CAR_OWNERS = ''
form.value.TELEPHONE = ''
}
const resData = await getTrailerList2({ ID: event });
data.busInfo = resData.list[0];
if (form.value.CAR_OWNERS === "") {

View File

@ -24,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"
@ -390,6 +390,10 @@ const getVehicle = async (event) => {
};
getVehicle("1");
const fnBusChange = async (event) => {
if (!MAINTENANCE_ID) {
form.value.CAR_OWNERS = "";
form.value.TELEPHONE = "";
}
const resData = await getTrailerListMaintenance({ ID: event });
data.busInfo = resData.list[0];
if (form.value.CAR_OWNERS === "") {

View File

@ -346,6 +346,7 @@ const getRemiderDate = (val) => {
}
};
const getVehicle = async (event) => {
form.value.PLATE_NUMBER = "";
const resData = await getOperationTrailerList({ TRAFFIC_TYPE: event });
data.vehicleList = resData.list;
form.value.VEHICLE = "";
@ -359,6 +360,10 @@ const getVehicle = async (event) => {
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]);
};
const fnBusChange = async (event) => {
if (!OPERATIONS_ID) {
form.value.TELEPHONE = "";
form.value.CAR_OWNERS = "";
}
const resData = await getOperationTrailerList({ ID: event });
data.busInfo = resData.list[0];
if (form.value.TELEPHONE === "") {