forked from integrated_whb/integrated_whb_vue
BUG优化
parent
274b58f12f
commit
fd40d59ede
|
@ -67,6 +67,9 @@ export const setFreightTrailerEdit = (params) =>
|
||||||
export const setFreightTrailerDelete = (params) =>
|
export const setFreightTrailerDelete = (params) =>
|
||||||
post("/freightTrailer/delete", params); // 货运挂车删除
|
post("/freightTrailer/delete", params); // 货运挂车删除
|
||||||
|
|
||||||
|
export const findTrailerByPlateNumber = (params) =>
|
||||||
|
post("/freightTrailer/findTrailerByPlateNumber", params); // 根据Id获取运营车辆信息
|
||||||
|
|
||||||
export const getChoiceTrailerList = (params) =>
|
export const getChoiceTrailerList = (params) =>
|
||||||
post("/taxationmanage/choicetrailerlist", params); // 车船税添加选择挂车
|
post("/taxationmanage/choicetrailerlist", params); // 车船税添加选择挂车
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="演练时间" prop="CATEGORY">
|
<el-form-item label="演练时间" prop="dates">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="searchForm.dates"
|
v-model="searchForm.dates"
|
||||||
type="daterange"
|
type="daterange"
|
||||||
|
|
|
@ -154,7 +154,12 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="相关附件" prop="file">
|
<el-form-item label="相关附件" prop="file">
|
||||||
<layout-upload v-model:file-list="form.file" />
|
<layout-upload
|
||||||
|
v-model:file-list="form.file"
|
||||||
|
accept=".pdf"
|
||||||
|
:limit="99"
|
||||||
|
delete-to-server
|
||||||
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
|
@ -245,12 +250,14 @@ const fnGetData = async () => {
|
||||||
if (!EMERGENCYPLAN_ID) return;
|
if (!EMERGENCYPLAN_ID) return;
|
||||||
const resData = await getEmergencyPlanManagementView({ EMERGENCYPLAN_ID });
|
const resData = await getEmergencyPlanManagementView({ EMERGENCYPLAN_ID });
|
||||||
form.value = resData.pd;
|
form.value = resData.pd;
|
||||||
|
if(form.value.PLAN_ATTACH_NAME) {
|
||||||
form.value.file = [
|
form.value.file = [
|
||||||
{
|
{
|
||||||
url: VITE_FILE_URL + resData.pd.PLAN_ATTACH_IDS,
|
url: VITE_FILE_URL + resData.pd.PLAN_ATTACH_IDS,
|
||||||
name: resData.pd.PLAN_ATTACH_NAME,
|
name: resData.pd.PLAN_ATTACH_NAME,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
}
|
||||||
};
|
};
|
||||||
fnGetData();
|
fnGetData();
|
||||||
const applicableFieldsList = await layoutFnGetApplicableFields();
|
const applicableFieldsList = await layoutFnGetApplicableFields();
|
||||||
|
|
|
@ -290,6 +290,7 @@ import {
|
||||||
getFreightTrailerView,
|
getFreightTrailerView,
|
||||||
setFreightTrailerAdd,
|
setFreightTrailerAdd,
|
||||||
setFreightTrailerEdit,
|
setFreightTrailerEdit,
|
||||||
|
findTrailerByPlateNumber
|
||||||
} from "@/request/enterprise_management.js";
|
} from "@/request/enterprise_management.js";
|
||||||
import { setUploadImg } from "@/request/api.js";
|
import { setUploadImg } from "@/request/api.js";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
|
@ -326,6 +327,14 @@ const form = ref({
|
||||||
OPER_CERTIFICATE_IMG: [],
|
OPER_CERTIFICATE_IMG: [],
|
||||||
TRAILER_INFO: [],
|
TRAILER_INFO: [],
|
||||||
});
|
});
|
||||||
|
const isPlateNumberRepetition = async (rule, vehicleNumber, callback) => {
|
||||||
|
if (vehicleNumber) {
|
||||||
|
const vehicleCount = await findTrailerByPlateNumber({ vehicleNumber });
|
||||||
|
if (vehicleCount.pd) {
|
||||||
|
callback(new Error("车辆已存在"));
|
||||||
|
} else callback();
|
||||||
|
}
|
||||||
|
};
|
||||||
const isVehicleNumber = (rule, vehicleNumber, callback) => {
|
const isVehicleNumber = (rule, vehicleNumber, callback) => {
|
||||||
if (vehicleNumber) {
|
if (vehicleNumber) {
|
||||||
const xreg =
|
const xreg =
|
||||||
|
@ -349,6 +358,7 @@ const rules = {
|
||||||
PLATE_NUMBER: [
|
PLATE_NUMBER: [
|
||||||
{ required: true, message: "请输入", trigger: "blur" },
|
{ required: true, message: "请输入", trigger: "blur" },
|
||||||
{ validator: isVehicleNumber, trigger: "blur" },
|
{ validator: isVehicleNumber, trigger: "blur" },
|
||||||
|
{ validator: isPlateNumberRepetition, trigger: "blur" },
|
||||||
],
|
],
|
||||||
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" }],
|
||||||
|
|
|
@ -204,6 +204,8 @@ const data = reactive({
|
||||||
|
|
||||||
const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef } =
|
const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef } =
|
||||||
useListData(getOperationVehicleList, {});
|
useListData(getOperationVehicleList, {});
|
||||||
|
const varList = await getOperationVehicleList();
|
||||||
|
console.log(varList);
|
||||||
const troubleshootingCycleList = await layoutFnGetVehicleColor();
|
const troubleshootingCycleList = await layoutFnGetVehicleColor();
|
||||||
const fnGetDataTransfer = () => {
|
const fnGetDataTransfer = () => {
|
||||||
fnGetData({
|
fnGetData({
|
||||||
|
|
|
@ -803,15 +803,9 @@ const rules = {
|
||||||
],
|
],
|
||||||
NATION: [{ required: true, message: "民族不能为空", trigger: "change" }],
|
NATION: [{ required: true, message: "民族不能为空", trigger: "change" }],
|
||||||
SEX: [{ required: true, message: "性别不能为空", trigger: "change" }],
|
SEX: [{ required: true, message: "性别不能为空", trigger: "change" }],
|
||||||
POLITICAL_OUTLOOK: [
|
|
||||||
{ required: true, message: "政治面貌不能为空", trigger: "change" },
|
|
||||||
],
|
|
||||||
DATE_OF_BIRTH: [
|
DATE_OF_BIRTH: [
|
||||||
{ required: true, message: "请选择出生年月", trigger: "change" },
|
{ required: true, message: "请选择出生年月", trigger: "change" },
|
||||||
],
|
],
|
||||||
DEGREE_OF_EDUCATION: [
|
|
||||||
{ required: true, message: "文化程度不能为空", trigger: "change" },
|
|
||||||
],
|
|
||||||
PERSONNEL_TYPE: [
|
PERSONNEL_TYPE: [
|
||||||
{ required: true, message: "人员类型不能为空", trigger: "change" },
|
{ required: true, message: "人员类型不能为空", trigger: "change" },
|
||||||
],
|
],
|
||||||
|
@ -819,14 +813,11 @@ const rules = {
|
||||||
ENTRY_DATE: [
|
ENTRY_DATE: [
|
||||||
{ required: true, message: "请选择入职日期", trigger: "change" },
|
{ required: true, message: "请选择入职日期", trigger: "change" },
|
||||||
],
|
],
|
||||||
WORKING_DATE: [
|
|
||||||
{ required: true, message: "请选择参加工作日期", trigger: "change" },
|
|
||||||
],
|
|
||||||
INCUMBENCY: [
|
INCUMBENCY: [
|
||||||
{ required: true, message: "在职情况不能为空", trigger: "change" },
|
{ required: true, message: "在职情况不能为空", trigger: "change" },
|
||||||
],
|
],
|
||||||
TITLE: [{ required: true, message: "职称不能为空", trigger: "change" }],
|
|
||||||
DUTIES: [{ required: true, message: "职务不能为空", trigger: "change" }],
|
|
||||||
SHIFTDUTYONE: [{ required: true, message: "请选择排班", trigger: "change" }],
|
SHIFTDUTYONE: [{ required: true, message: "请选择排班", trigger: "change" }],
|
||||||
SHIFTDUTYTWO: [{ required: true, message: "请选择排班", trigger: "change" }],
|
SHIFTDUTYTWO: [{ required: true, message: "请选择排班", trigger: "change" }],
|
||||||
periodStr: [
|
periodStr: [
|
||||||
|
|
|
@ -306,7 +306,7 @@ const fnGetVehicleInfo = async () => {
|
||||||
form.value.VEHICLE.VEHICLEOWNER_NUMBER = info.value.VEHICLEOWNER_NUMBER;
|
form.value.VEHICLE.VEHICLEOWNER_NUMBER = info.value.VEHICLEOWNER_NUMBER;
|
||||||
form.value.VEHICLE.PLATE_NUMBER = info.value.PLATE_NUMBER;
|
form.value.VEHICLE.PLATE_NUMBER = info.value.PLATE_NUMBER;
|
||||||
form.value.VEHICLE.FRAMES_NUMBER = info.value.FRAMES_NUMBER;
|
form.value.VEHICLE.FRAMES_NUMBER = info.value.FRAMES_NUMBER;
|
||||||
form.value.VEHICLE.SCRAP_VEHICLEMODEL = info.value.VEHICLE_MODEL;
|
form.value.VEHICLE.SCRAP_VEHICLEMODEL = form.value.SCRAP_VEHICLEMODEL;
|
||||||
form.value.VEHICLE.BRAND = info.value.VEHICLE_BRAND;
|
form.value.VEHICLE.BRAND = info.value.VEHICLE_BRAND;
|
||||||
form.value.VEHICLE.EMISSION_STANDARD = info.value.EMISSION_STANDARD;
|
form.value.VEHICLE.EMISSION_STANDARD = info.value.EMISSION_STANDARD;
|
||||||
form.value.VEHICLE.POWER_TYPE = info.value.VEHICLE_BRAND;
|
form.value.VEHICLE.POWER_TYPE = info.value.VEHICLE_BRAND;
|
||||||
|
@ -344,8 +344,7 @@ const fnGetVehicleInfo = async () => {
|
||||||
form.value.VEHICLE.PLATE_NUMBER =
|
form.value.VEHICLE.PLATE_NUMBER =
|
||||||
form.value.FREIGHTVEHICLELIST[i].PLATE_NUMBER;
|
form.value.FREIGHTVEHICLELIST[i].PLATE_NUMBER;
|
||||||
form.value.VEHICLE.FRAMES_NUMBER = form.value.FREIGHTVEHICLELIST[i].VIN;
|
form.value.VEHICLE.FRAMES_NUMBER = form.value.FREIGHTVEHICLELIST[i].VIN;
|
||||||
form.value.VEHICLE.SCRAP_VEHICLEMODEL =
|
form.value.VEHICLE.SCRAP_VEHICLEMODEL = form.value.SCRAP_VEHICLEMODEL;
|
||||||
form.value.FREIGHTVEHICLELIST[i].TRAILER_MODEL;
|
|
||||||
form.value.VEHICLE.BRAND =
|
form.value.VEHICLE.BRAND =
|
||||||
form.value.FREIGHTVEHICLELIST[i].TRAILER_BRAND;
|
form.value.FREIGHTVEHICLELIST[i].TRAILER_BRAND;
|
||||||
form.value.VEHICLE.EMISSION_STANDARD =
|
form.value.VEHICLE.EMISSION_STANDARD =
|
||||||
|
|
Loading…
Reference in New Issue