forked from integrated_whb/integrated_whb_vue
BUG 优化
parent
40a5fd2496
commit
3b29fb05fc
|
@ -100,6 +100,9 @@ export const editOperatingVehicleInfo = (params) =>
|
||||||
export const getOperationVehicleInfo = (params) =>
|
export const getOperationVehicleInfo = (params) =>
|
||||||
post("/operatingvehicles/findById", params); // 根据Id获取运营车辆信息
|
post("/operatingvehicles/findById", params); // 根据Id获取运营车辆信息
|
||||||
|
|
||||||
|
export const setOperationsScrapStatus = (params) =>
|
||||||
|
post("/operatingvehicles/setOperationsScrapStatus", params); // 根据Id获取运营车辆信息
|
||||||
|
|
||||||
export const findByPlateNumber = (params) =>
|
export const findByPlateNumber = (params) =>
|
||||||
post("/operatingvehicles/findByPlateNumber", params); // 根据Id获取运营车辆信息
|
post("/operatingvehicles/findByPlateNumber", params); // 根据Id获取运营车辆信息
|
||||||
|
|
||||||
|
|
|
@ -277,7 +277,7 @@ import {
|
||||||
getFreightTrailerView,
|
getFreightTrailerView,
|
||||||
} from "@/request/enterprise_management.js";
|
} from "@/request/enterprise_management.js";
|
||||||
import {
|
import {
|
||||||
findByIdOperatingVehicleInfo,
|
findByIdOperatingVehicleInfo
|
||||||
} from "@/request/operation_vehicle.js";
|
} from "@/request/operation_vehicle.js";
|
||||||
import LayoutUpload from "@/components/upload/index.vue";
|
import LayoutUpload from "@/components/upload/index.vue";
|
||||||
import { debounce } from "throttle-debounce";
|
import { debounce } from "throttle-debounce";
|
||||||
|
@ -308,7 +308,6 @@ const freightVehicleList = await getAssignedFreightTrailerList();
|
||||||
const assignedWayList = await layoutFnGetAssignedWay();
|
const assignedWayList = await layoutFnGetAssignedWay();
|
||||||
const operationList = await getAssignedOperationVehicleList();
|
const operationList = await getAssignedOperationVehicleList();
|
||||||
|
|
||||||
|
|
||||||
const rules = {
|
const rules = {
|
||||||
ASSIGNED_VEHICLE_MODEL: [
|
ASSIGNED_VEHICLE_MODEL: [
|
||||||
{ required: true, message: "过户车型不能为空", trigger: "change" },
|
{ required: true, message: "过户车型不能为空", trigger: "change" },
|
||||||
|
@ -344,9 +343,6 @@ const rules = {
|
||||||
NOW_OWNERS: [
|
NOW_OWNERS: [
|
||||||
{ required: true, message: "请输入现车主/业主", trigger: "blur" },
|
{ required: true, message: "请输入现车主/业主", trigger: "blur" },
|
||||||
],
|
],
|
||||||
NOW_PLATE_NUMBER: [
|
|
||||||
{ required: true, message: "请输入现车牌号", trigger: "blur" },
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
const formRef = ref(null);
|
const formRef = ref(null);
|
||||||
const form = ref({
|
const form = ref({
|
||||||
|
|
|
@ -351,7 +351,6 @@ const getDueDate = () => {
|
||||||
};
|
};
|
||||||
const getRemiderDate = (val) => {
|
const getRemiderDate = (val) => {
|
||||||
if (val) {
|
if (val) {
|
||||||
console.log("REMINDER_DAYS",form.value.REMINDER_DAYS);
|
|
||||||
if (form.value.DUE_DATE) {
|
if (form.value.DUE_DATE) {
|
||||||
form.value.REMINDER_DATE = subtractDaysFromDate(form.value.DUE_DATE, val);
|
form.value.REMINDER_DATE = subtractDaysFromDate(form.value.DUE_DATE, val);
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<el-select v-model="form.VEHICLE" @change="getBusInfo">
|
<el-select v-model="form.VEHICLE" @change="getBusInfo">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in data.vehicleList"
|
v-for="item in data.vehicleList"
|
||||||
:key="item.ID"
|
:key="item.PLATE_NUMBER"
|
||||||
:label="item.PLATE_NUMBER"
|
:label="item.PLATE_NUMBER"
|
||||||
:value="item.ID"
|
:value="item.ID"
|
||||||
/>
|
/>
|
||||||
|
|
|
@ -16,10 +16,10 @@
|
||||||
{{ data.busInfo.TRAILER_TYPE }}
|
{{ data.busInfo.TRAILER_TYPE }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label-class-name="width_200" label="车辆型号">
|
<el-descriptions-item label-class-name="width_200" label="车辆型号">
|
||||||
{{ data.busInfo.VEHICLE_MODEL }}
|
{{ info.VEHICLE_TYPE }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label-class-name="width_200" label="车辆品牌">
|
<el-descriptions-item label-class-name="width_200" label="车辆品牌">
|
||||||
{{ data.busInfo.VEHICLE_BRAND }}
|
{{ info.VEHICLE_BRAND }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label-class-name="width_200" label="车主业户">
|
<el-descriptions-item label-class-name="width_200" label="车主业户">
|
||||||
{{ data.busInfo.CAR_OWNERS }}
|
{{ data.busInfo.CAR_OWNERS }}
|
||||||
|
@ -36,6 +36,12 @@
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
<el-divider content-position="left">年检信息</el-divider>
|
<el-divider content-position="left">年检信息</el-divider>
|
||||||
<el-descriptions :column="2" border>
|
<el-descriptions :column="2" border>
|
||||||
|
<el-descriptions-item label-class-name="width_200" label="车主业主">
|
||||||
|
{{ info.CAR_OWNERS }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label-class-name="width_200" label="联系电话">
|
||||||
|
{{ info.TELEPHONE }}
|
||||||
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label-class-name="width_200" label="办理日期">
|
<el-descriptions-item label-class-name="width_200" label="办理日期">
|
||||||
{{ info.PROCESSING_DATE }}
|
{{ info.PROCESSING_DATE }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
@ -45,15 +51,28 @@
|
||||||
<el-descriptions-item label-class-name="width_200" label="年检费用">
|
<el-descriptions-item label-class-name="width_200" label="年检费用">
|
||||||
{{ info.INSPECTFEES }}
|
{{ info.INSPECTFEES }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label-class-name="width_200" label="实收费用">
|
||||||
|
{{ info.ACTUAL_COLLECTION }}
|
||||||
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label-class-name="width_200" label="到期日期">
|
<el-descriptions-item label-class-name="width_200" label="到期日期">
|
||||||
{{ info.DUE_DATE }}
|
{{ info.DUE_DATE }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label-class-name="width_200" label="提醒天数">
|
||||||
|
{{ info.REMINDER_DAYS }}
|
||||||
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label-class-name="width_200" label="提醒日期">
|
||||||
|
{{ info.REMINDER_DATE }}
|
||||||
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label-class-name="width_200" label="年检地址">
|
<el-descriptions-item label-class-name="width_200" label="年检地址">
|
||||||
{{ info.ADDRESS }}
|
{{ info.ADDRESS }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label-class-name="width_200" label="登记人">
|
<el-descriptions-item label-class-name="width_200" label="登记人">
|
||||||
{{ info.REGISTRANT }}
|
{{ info.REGISTRANT }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
|
<el-descriptions-item label-class-name="width_200" label="提醒状态">
|
||||||
|
<span v-if="info.REMINDER_STATUS === '1'">开启</span>
|
||||||
|
<span v-else-if="info.REMINDER_STATUS === '0'">关闭</span>
|
||||||
|
</el-descriptions-item>
|
||||||
<el-descriptions-item
|
<el-descriptions-item
|
||||||
label-class-name="width_200"
|
label-class-name="width_200"
|
||||||
label="年检资料"
|
label="年检资料"
|
||||||
|
|
|
@ -358,7 +358,8 @@ const rules = {
|
||||||
REMINDER_DATE: [{ required: true, message: "请输入", trigger: "blur" }],
|
REMINDER_DATE: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||||
};
|
};
|
||||||
const getVehicle = async (event) => {
|
const getVehicle = async (event) => {
|
||||||
const resData = await getTrailerList({ TRAFFIC_TYPE: event });
|
const model = "insure"
|
||||||
|
const resData = await getTrailerList({ TRAFFIC_TYPE: event, model });
|
||||||
data.vehicleList = resData.list;
|
data.vehicleList = resData.list;
|
||||||
form.value.VEHICLE = "";
|
form.value.VEHICLE = "";
|
||||||
data.busInfo.DRIVING_LICENSE_IMG = [];
|
data.busInfo.DRIVING_LICENSE_IMG = [];
|
||||||
|
|
|
@ -411,6 +411,7 @@ import { useRouter, useRoute } from "vue-router";
|
||||||
import {
|
import {
|
||||||
addAccidentInvestigationView,
|
addAccidentInvestigationView,
|
||||||
editAccidentInvestigation,
|
editAccidentInvestigation,
|
||||||
|
infoAccidentInvestigation
|
||||||
} from "@/request/production_accident.js";
|
} from "@/request/production_accident.js";
|
||||||
|
|
||||||
// 获取路由实例
|
// 获取路由实例
|
||||||
|
@ -513,7 +514,6 @@ const rules = reactive({
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
isEditMode.value = route.query.mode === "edit";
|
isEditMode.value = route.query.mode === "edit";
|
||||||
ACCIDENTINVESTIGATION_ID.value = route.query.ACCIDENTINVESTIGATION_ID || "";
|
ACCIDENTINVESTIGATION_ID.value = route.query.ACCIDENTINVESTIGATION_ID || "";
|
||||||
|
|
||||||
if (isEditMode.value) {
|
if (isEditMode.value) {
|
||||||
Object.keys(rules).forEach((key) => {
|
Object.keys(rules).forEach((key) => {
|
||||||
rules[key] = []; // 清空每项校验规则
|
rules[key] = []; // 清空每项校验规则
|
||||||
|
@ -521,6 +521,15 @@ onMounted(() => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const fnGetData = async () => {
|
||||||
|
const ACCIDENTINVESTIGATION_ID = route.query.ACCIDENTINVESTIGATION_ID
|
||||||
|
if (!ACCIDENTINVESTIGATION_ID) return;
|
||||||
|
const resData = await infoAccidentInvestigation({ ACCIDENTINVESTIGATION_ID });
|
||||||
|
data.form = resData.pd;
|
||||||
|
|
||||||
|
};
|
||||||
|
fnGetData();
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const fnGetUnitsList = async () => {
|
const fnGetUnitsList = async () => {
|
||||||
const resData = await getUserListAll({});
|
const resData = await getUserListAll({});
|
||||||
|
|
|
@ -297,6 +297,7 @@ const fnGetVehicleInfo = async () => {
|
||||||
form.value.SCRAP_VEHICLE
|
form.value.SCRAP_VEHICLE
|
||||||
) {
|
) {
|
||||||
const OPERATING_ID = form.value.OPERATIONVEHICLELIST[i].OPERATING_ID;
|
const OPERATING_ID = form.value.OPERATIONVEHICLELIST[i].OPERATING_ID;
|
||||||
|
await setOperationsScrapStatus({OPERATING_ID})
|
||||||
const resData = await getOperationVehicleInfo({ OPERATING_ID });
|
const resData = await getOperationVehicleInfo({ OPERATING_ID });
|
||||||
info.value = resData.pd;
|
info.value = resData.pd;
|
||||||
form.value.VEHICLE.VEHICLEOWNER = info.value.VEHICLEOWNER;
|
form.value.VEHICLE.VEHICLEOWNER = info.value.VEHICLEOWNER;
|
||||||
|
|
|
@ -335,6 +335,9 @@ const fnGetExpireDate = async () => {
|
||||||
let day = date.getDate();
|
let day = date.getDate();
|
||||||
day = day < 10 ? "0" + day : day;
|
day = day < 10 ? "0" + day : day;
|
||||||
form.value.EXPIRE_DATE = year + "-" + month + "-" + day;
|
form.value.EXPIRE_DATE = year + "-" + month + "-" + day;
|
||||||
|
if(form.value.TRANSACTION_DATA === null) {
|
||||||
|
form.value.EXPIRE_DATE = null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fnGetReminderData()
|
fnGetReminderData()
|
||||||
};
|
};
|
||||||
|
@ -349,6 +352,9 @@ const fnGetReminderData = async () => {
|
||||||
let day = date.getDate();
|
let day = date.getDate();
|
||||||
day = day < 10 ? "0" + day : day;
|
day = day < 10 ? "0" + day : day;
|
||||||
form.value.REMINDER_DATA = year + "-" + month + "-" + day;
|
form.value.REMINDER_DATA = year + "-" + month + "-" + day;
|
||||||
|
if(form.value.TRANSACTION_DATA === null) {
|
||||||
|
form.value.REMINDER_DATA = null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const fnGetTrailerInfo = async () => {
|
const fnGetTrailerInfo = async () => {
|
||||||
|
|
Loading…
Reference in New Issue