forked from integrated_whb/integrated_whb_vue
Compare commits
No commits in common. "0fc9cd9a76328aba9de1a8024810585df6b54da9" and "5cfc44479cc26fa66c841fae46f4f92db85f9f85" have entirely different histories.
0fc9cd9a76
...
5cfc44479c
|
@ -3,14 +3,11 @@ import { post, upload } from "@/request/axios.js";
|
||||||
export const getEnterpriseSafetyProductionList = (params) =>
|
export const getEnterpriseSafetyProductionList = (params) =>
|
||||||
post("/enterprisesafetyproduction/list", params); // 企业安全生产值班记录列表
|
post("/enterprisesafetyproduction/list", params); // 企业安全生产值班记录列表
|
||||||
|
|
||||||
export const getEnterpriseSafetyProductEdit = (params) =>
|
export const setEnterpriseSafetyProductEdit = (params) =>
|
||||||
upload("/enterprisesafetyproduction/goEdit", params); // 修改企业安全生产值班记录
|
upload("/enterprisesafetyproduction/goEdit", params); // 修改企业安全生产值班记录
|
||||||
|
|
||||||
export const setEnterpriseSafetyProductAdd = (params) =>
|
export const setEnterpriseSafetyProductAdd = (params) =>
|
||||||
upload("/enterprisesafetyproduction/add", params); // 新增企业安全生产值班记录
|
upload("/enterprisesafetyproduction/add", params); // 新增企业安全生产值班记录
|
||||||
|
|
||||||
export const setEnterpriseSafetyProductEdit = (params) =>
|
|
||||||
upload("/enterprisesafetyproduction/edit", params); // 新增企业安全生产值班记录
|
|
||||||
|
|
||||||
export const setEnterpriseSafetyProductDelete = (params) =>
|
export const setEnterpriseSafetyProductDelete = (params) =>
|
||||||
upload("/enterprisesafetyproduction/delete", params); // 新增企业安全生产值班记录
|
upload("/enterprisesafetyproduction/delete", params); // 新增企业安全生产值班记录
|
||||||
|
|
|
@ -20,13 +20,11 @@ export const setInsureAdd = (params) => post("/insure/add", params); // 保险
|
||||||
export const setInsureEdit = (params) => post("/insure/edit", params); // 保险管理修改
|
export const setInsureEdit = (params) => post("/insure/edit", params); // 保险管理修改
|
||||||
export const setInsureDelete = (params) => post("/insure/delete", params); // 保险管理删除
|
export const setInsureDelete = (params) => post("/insure/delete", params); // 保险管理删除
|
||||||
export const setInsureEdit2 = (params) => post("/insure/edit2", params); // 保险管理修改开启关闭
|
export const setInsureEdit2 = (params) => post("/insure/edit2", params); // 保险管理修改开启关闭
|
||||||
export const getTrailerList2 = (params) => post("/insure/vehicleList", params);
|
|
||||||
|
|
||||||
export const getOperationsList = (params) => post("/operations/list", params); // 运营管理列表
|
export const getOperationsList = (params) => post("/operations/list", params); // 运营管理列表
|
||||||
export const getOperationsView = (params) => post("/operations/goEdit", params); // 运营管理查看
|
export const getOperationsView = (params) => post("/operations/goEdit", params); // 运营管理查看
|
||||||
export const setOperationsAdd = (params) => post("/operations/add", params); // 运营管理新增
|
export const setOperationsAdd = (params) => post("/operations/add", params); // 运营管理新增
|
||||||
export const setOperationsEdit = (params) => post("/operations/edit", params); // 运营管理修改
|
export const setOperationsEdit = (params) => post("/operations/edit", params); // 运营管理修改
|
||||||
export const getOperationTrailerList = (params) => post("/operations/vehicleList", params);
|
|
||||||
export const setOperationsDelete = (params) =>
|
export const setOperationsDelete = (params) =>
|
||||||
post("/operations/delete", params); // 运营管理删除
|
post("/operations/delete", params); // 运营管理删除
|
||||||
export const setOperationsEdit2 = (params) => post("/operations/edit2", params); // 运营管理修改开启关闭
|
export const setOperationsEdit2 = (params) => post("/operations/edit2", params); // 运营管理修改开启关闭
|
||||||
|
@ -41,13 +39,9 @@ export const setMaintenanceDelete = (params) =>
|
||||||
export const setMaintenanceEdit2 = (params) =>
|
export const setMaintenanceEdit2 = (params) =>
|
||||||
post("/maintenance/edit2", params); // 维保管理修改开启关闭
|
post("/maintenance/edit2", params); // 维保管理修改开启关闭
|
||||||
|
|
||||||
export const getTrailerListMaintenance = (params) => post("/maintenance/vehicleList", params);
|
|
||||||
|
|
||||||
export const getBeidouList = (params) => post("/beidou/list", params); // 维保管理列表
|
export const getBeidouList = (params) => post("/beidou/list", params); // 维保管理列表
|
||||||
export const getBeidouView = (params) => post("/beidou/goEdit", params); // 维保管理查看
|
export const getBeidouView = (params) => post("/beidou/goEdit", params); // 维保管理查看
|
||||||
export const setBeidouAdd = (params) => post("/beidou/add", params); // 维保管理新增
|
export const setBeidouAdd = (params) => post("/beidou/add", params); // 维保管理新增
|
||||||
export const setBeidouEdit = (params) => post("/beidou/edit", params); // 维保管理修改
|
export const setBeidouEdit = (params) => post("/beidou/edit", params); // 维保管理修改
|
||||||
export const setBeidouDelete = (params) => post("/beidou/delete", params); // 维保管理删除
|
export const setBeidouDelete = (params) => post("/beidou/delete", params); // 维保管理删除
|
||||||
export const setBeidouEdit2 = (params) => post("/beidou/edit2", params); // 维保管理修改开启关闭
|
export const setBeidouEdit2 = (params) => post("/beidou/edit2", params); // 维保管理修改开启关闭
|
||||||
|
|
||||||
export const getTrailerListCompass = (params) => post("/beidou/vehicleList", params);
|
|
||||||
|
|
|
@ -100,9 +100,6 @@ 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获取运营车辆信息
|
||||||
|
|
||||||
|
|
|
@ -158,6 +158,7 @@ const info = ref({});
|
||||||
const fnGetData = async () => {
|
const fnGetData = async () => {
|
||||||
if (!OPERATING_ID) return;
|
if (!OPERATING_ID) return;
|
||||||
const resData = await findByIdOperatingVehicleInfo({ OPERATING_ID });
|
const resData = await findByIdOperatingVehicleInfo({ OPERATING_ID });
|
||||||
|
console.log("-=-=-=-",resData);
|
||||||
info.value = resData.pd;
|
info.value = resData.pd;
|
||||||
info.value.HEADSTOCK_PHOTO = addingPrefixToFile(resData.headstockphoto);
|
info.value.HEADSTOCK_PHOTO = addingPrefixToFile(resData.headstockphoto);
|
||||||
info.value.DRIVINGLICENSE_PHOTO = addingPrefixToFile(
|
info.value.DRIVINGLICENSE_PHOTO = addingPrefixToFile(
|
||||||
|
|
|
@ -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,6 +308,7 @@ 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" },
|
||||||
|
@ -343,6 +344,9 @@ 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({
|
||||||
|
|
|
@ -134,7 +134,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="北斗净费(元)" prop="ACTUAL_COLLECTION">
|
<el-form-item label="北斗净费" prop="ACTUAL_COLLECTION">
|
||||||
<el-input
|
<el-input
|
||||||
v-model.number="form.ACTUAL_COLLECTION"
|
v-model.number="form.ACTUAL_COLLECTION"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
@ -143,7 +143,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="北斗全费(元)" prop="ALL_FEES">
|
<el-form-item label="北斗全费" prop="ALL_FEES">
|
||||||
<el-input
|
<el-input
|
||||||
v-model.number="form.ALL_FEES"
|
v-model.number="form.ALL_FEES"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
@ -241,7 +241,7 @@ import {
|
||||||
getBeidouView,
|
getBeidouView,
|
||||||
setBeidouAdd,
|
setBeidouAdd,
|
||||||
setBeidouEdit,
|
setBeidouEdit,
|
||||||
getTrailerListCompass,
|
getTrailerList,
|
||||||
} from "@/request/mechanical_files.js";
|
} from "@/request/mechanical_files.js";
|
||||||
import { setUploadImg } from "@/request/api.js";
|
import { setUploadImg } from "@/request/api.js";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
|
@ -307,7 +307,6 @@ const getRemiderDate = (val) => {
|
||||||
if (form.value.DUE_DATE) {
|
if (form.value.DUE_DATE) {
|
||||||
// 计算提醒日期
|
// 计算提醒日期
|
||||||
const reminderDateStr = subtractDaysFromDate(form.value.DUE_DATE, val);
|
const reminderDateStr = subtractDaysFromDate(form.value.DUE_DATE, val);
|
||||||
console.log(reminderDateStr);
|
|
||||||
const reminderDate = new Date(reminderDateStr);
|
const reminderDate = new Date(reminderDateStr);
|
||||||
const today = new Date();
|
const today = new Date();
|
||||||
|
|
||||||
|
@ -326,7 +325,7 @@ const getRemiderDate = (val) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const getVehicle = async (event) => {
|
const getVehicle = async (event) => {
|
||||||
const resData = await getTrailerListCompass({ TRAFFIC_TYPE: event });
|
const resData = await getTrailerList({ TRAFFIC_TYPE: event });
|
||||||
data.vehicleList = resData.list;
|
data.vehicleList = resData.list;
|
||||||
form.value.VEHICLE = "";
|
form.value.VEHICLE = "";
|
||||||
data.busInfo.DRIVING_LICENSE_IMG = [];
|
data.busInfo.DRIVING_LICENSE_IMG = [];
|
||||||
|
@ -340,7 +339,7 @@ const getVehicle = async (event) => {
|
||||||
};
|
};
|
||||||
getVehicle("1");
|
getVehicle("1");
|
||||||
const fnBusChange = async (event) => {
|
const fnBusChange = async (event) => {
|
||||||
const resData = await getTrailerListCompass({ ID: event });
|
const resData = await getTrailerList({ ID: event });
|
||||||
data.busInfo = resData.list[0];
|
data.busInfo = resData.list[0];
|
||||||
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
|
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
|
||||||
resData.drivingLicenseImgs
|
resData.drivingLicenseImgs
|
||||||
|
|
|
@ -134,7 +134,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="北斗净费(元)" prop="ACTUAL_COLLECTION">
|
<el-form-item label="北斗净费" prop="ACTUAL_COLLECTION">
|
||||||
<el-input
|
<el-input
|
||||||
v-model.number="form.ACTUAL_COLLECTION"
|
v-model.number="form.ACTUAL_COLLECTION"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
@ -143,7 +143,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="北斗全费(元)" prop="ALL_FEES">
|
<el-form-item label="北斗全费" prop="ALL_FEES">
|
||||||
<el-input
|
<el-input
|
||||||
v-model.number="form.ALL_FEES"
|
v-model.number="form.ALL_FEES"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
|
|
@ -44,10 +44,10 @@
|
||||||
<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="北斗净费(元)">
|
<el-descriptions-item label-class-name="width_200" label="北斗净费">
|
||||||
{{ info.ACTUAL_COLLECTION }}
|
{{ info.ACTUAL_COLLECTION }}
|
||||||
</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.ALL_FEES }}
|
{{ info.ALL_FEES }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label-class-name="width_200" label="提醒天数">
|
<el-descriptions-item label-class-name="width_200" label="提醒天数">
|
||||||
|
|
|
@ -155,7 +155,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="年检费用(元)" prop="INSPECTFEES">
|
<el-form-item label="年检费用" prop="INSPECTFEES">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.INSPECTFEES"
|
v-model="form.INSPECTFEES"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
@ -164,7 +164,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="实收费用(元)" prop="ACTUAL_COLLECTION">
|
<el-form-item label="实收费用" prop="ACTUAL_COLLECTION">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.ACTUAL_COLLECTION"
|
v-model="form.ACTUAL_COLLECTION"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
@ -351,6 +351,7 @@ 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) {
|
||||||
// 计算提醒日期
|
// 计算提醒日期
|
||||||
const reminderDateStr = subtractDaysFromDate(form.value.DUE_DATE, val);
|
const reminderDateStr = 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.PLATE_NUMBER"
|
:key="item.ID"
|
||||||
:label="item.PLATE_NUMBER"
|
:label="item.PLATE_NUMBER"
|
||||||
:value="item.ID"
|
:value="item.ID"
|
||||||
/>
|
/>
|
||||||
|
@ -153,7 +153,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="年检费用(元)" prop="INSPECTFEES">
|
<el-form-item label="年检费用" prop="INSPECTFEES">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.INSPECTFEES"
|
v-model="form.INSPECTFEES"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
@ -162,7 +162,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="实收费用(元)" prop="ACTUAL_COLLECTION">
|
<el-form-item label="实收费用" prop="ACTUAL_COLLECTION">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.ACTUAL_COLLECTION"
|
v-model="form.ACTUAL_COLLECTION"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
|
|
@ -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="车辆型号">
|
||||||
{{ info.VEHICLE_TYPE }}
|
{{ data.busInfo.VEHICLE_MODEL }}
|
||||||
</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.VEHICLE_BRAND }}
|
{{ data.busInfo.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,43 +36,24 @@
|
||||||
</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>
|
||||||
<el-descriptions-item label-class-name="width_200" label="年检周期">
|
<el-descriptions-item label-class-name="width_200" label="年检周期">
|
||||||
{{ info.ANNUAL_INSPECTION_CYCLE_NAME }}
|
{{ info.ANNUAL_INSPECTION_CYCLE_NAME }}
|
||||||
</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.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="年检资料"
|
||||||
|
|
|
@ -175,7 +175,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="保险全费(元)" prop="ALL_FEES">
|
<el-form-item label="保险全费" prop="ALL_FEES">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.ALL_FEES"
|
v-model="form.ALL_FEES"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
@ -184,7 +184,7 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="净费实收(元)" prop="ACTUAL_COLLECTION">
|
<el-form-item label="净费实收" prop="ACTUAL_COLLECTION">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.ACTUAL_COLLECTION"
|
v-model="form.ACTUAL_COLLECTION"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
@ -283,7 +283,6 @@ import {
|
||||||
setInsureAdd,
|
setInsureAdd,
|
||||||
setInsureEdit,
|
setInsureEdit,
|
||||||
getTrailerList,
|
getTrailerList,
|
||||||
getTrailerList2,
|
|
||||||
} from "@/request/mechanical_files.js";
|
} from "@/request/mechanical_files.js";
|
||||||
import {
|
import {
|
||||||
INSURANCEMENU,
|
INSURANCEMENU,
|
||||||
|
@ -359,8 +358,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) => {
|
||||||
const model = "insure"
|
const resData = await getTrailerList({ TRAFFIC_TYPE: event });
|
||||||
const resData = await getTrailerList2({ 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 = [];
|
||||||
|
@ -373,7 +371,7 @@ const getVehicle = async (event) => {
|
||||||
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]);
|
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]);
|
||||||
};
|
};
|
||||||
const fnBusChange = async (event) => {
|
const fnBusChange = async (event) => {
|
||||||
const resData = await getTrailerList2({ ID: event });
|
const resData = await getTrailerList({ ID: event });
|
||||||
data.busInfo = resData.list[0];
|
data.busInfo = resData.list[0];
|
||||||
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
|
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
|
||||||
resData.drivingLicenseImgs
|
resData.drivingLicenseImgs
|
||||||
|
|
|
@ -169,12 +169,12 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="保险全费(元)" prop="ALL_FEES">
|
<el-form-item label="保险全费" prop="ALL_FEES">
|
||||||
<el-input v-model="form.ALL_FEES" maxlength="50" show-word-limit />
|
<el-input v-model="form.ALL_FEES" maxlength="50" show-word-limit />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="净费实收(元)" prop="ACTUAL_COLLECTION">
|
<el-form-item label="净费实收" prop="ACTUAL_COLLECTION">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.ACTUAL_COLLECTION"
|
v-model="form.ACTUAL_COLLECTION"
|
||||||
maxlength="50"
|
maxlength="50"
|
||||||
|
|
|
@ -148,6 +148,7 @@
|
||||||
<span v-else-if="row.DUE_DATE_TYPE === 2">即将到期</span>
|
<span v-else-if="row.DUE_DATE_TYPE === 2">即将到期</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column prop="ARCHIVES_TYPE" label="档案状态" width="150" />
|
||||||
<el-table-column prop="CREATTIME" label="创建时间" width="150" />
|
<el-table-column prop="CREATTIME" label="创建时间" width="150" />
|
||||||
<el-table-column prop="OPERATTIME" label="修改时间" width="150" />
|
<el-table-column prop="OPERATTIME" label="修改时间" width="150" />
|
||||||
<el-table-column label="操作" width="250">
|
<el-table-column label="操作" width="250">
|
||||||
|
|
|
@ -17,27 +17,21 @@
|
||||||
<el-descriptions-item label-class-name="width_200" label="车辆类型">
|
<el-descriptions-item label-class-name="width_200" label="车辆类型">
|
||||||
{{ 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_BRAND }}
|
{{ data.busInfo.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.VEHICLE_MODEL }}
|
{{ data.busInfo.VEHICLE_MODEL }}
|
||||||
</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 }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label-class-name="width_200" label="车主电话">
|
|
||||||
{{ data.busInfo.CAR_OWNERS_TEL }}
|
|
||||||
</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_TEL }}
|
{{ data.busInfo.CAR_OWNERS_TEL }}
|
||||||
</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.INITIAL_REGISTRATION_DATE }}
|
{{ data.busInfo.INITIAL_REGISTRATION_DATE }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label-class-name="width_200" label="所属区域">
|
|
||||||
{{ data.busInfo.COMPANY_AREA}}
|
|
||||||
</el-descriptions-item>
|
|
||||||
</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>
|
||||||
|
@ -45,8 +39,7 @@
|
||||||
{{ info.REGISTRANT }}
|
{{ info.REGISTRANT }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label-class-name="width_200" label="保险公司">
|
<el-descriptions-item label-class-name="width_200" label="保险公司">
|
||||||
<span v-if="info.INSURANCE_COMPANY === '1'">太平洋保险</span>
|
{{ info.INSURANCE_COMPANY_NAME }}
|
||||||
<span v-else-if="info.INSURANCE_COMPANY === '2'">中国人寿</span>
|
|
||||||
</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.INSURANCE_COVERAGE }}
|
{{ info.INSURANCE_COVERAGE }}
|
||||||
|
@ -63,13 +56,13 @@
|
||||||
<el-descriptions-item label-class-name="width_200" label="生效日期">
|
<el-descriptions-item label-class-name="width_200" label="生效日期">
|
||||||
{{ info.EFFECTIVE_DATE }}
|
{{ info.EFFECTIVE_DATE }}
|
||||||
</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.DUE_DATE }}
|
{{ info.DUE_DATE }}
|
||||||
</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.ALL_FEES }}
|
{{ info.ALL_FEES }}
|
||||||
</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.ACTUAL_COLLECTION }}
|
{{ info.ACTUAL_COLLECTION }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item
|
<el-descriptions-item
|
||||||
|
@ -127,7 +120,6 @@ const data = reactive({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const insuranceCompanyList = await layoutFnGetInsuranceCompany();
|
const insuranceCompanyList = await layoutFnGetInsuranceCompany();
|
||||||
|
|
||||||
const fnBusChange = async (event) => {
|
const fnBusChange = async (event) => {
|
||||||
const resData = await getTrailerList({ ID: event });
|
const resData = await getTrailerList({ ID: event });
|
||||||
data.busInfo = resData.list[0];
|
data.busInfo = resData.list[0];
|
||||||
|
|
|
@ -254,7 +254,7 @@ import {
|
||||||
getMaintenanceView,
|
getMaintenanceView,
|
||||||
setMaintenanceAdd,
|
setMaintenanceAdd,
|
||||||
setMaintenanceEdit,
|
setMaintenanceEdit,
|
||||||
getTrailerListMaintenance,
|
getTrailerList,
|
||||||
} from "@/request/mechanical_files.js";
|
} from "@/request/mechanical_files.js";
|
||||||
import { MAINTENANCE_LEVEL_LIST, REMIND_DAYS } from "@/assets/js/constant.js";
|
import { MAINTENANCE_LEVEL_LIST, REMIND_DAYS } from "@/assets/js/constant.js";
|
||||||
import { setUploadImg } from "@/request/api.js";
|
import { setUploadImg } from "@/request/api.js";
|
||||||
|
@ -359,7 +359,7 @@ const getRemiderDate = (val) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const getVehicle = async (event) => {
|
const getVehicle = async (event) => {
|
||||||
const resData = await getTrailerListMaintenance({ TRAFFIC_TYPE: event });
|
const resData = await getTrailerList({ TRAFFIC_TYPE: event });
|
||||||
data.vehicleList = resData.list;
|
data.vehicleList = resData.list;
|
||||||
form.value.VEHICLE = "";
|
form.value.VEHICLE = "";
|
||||||
data.busInfo.DRIVING_LICENSE_IMG = [];
|
data.busInfo.DRIVING_LICENSE_IMG = [];
|
||||||
|
@ -373,7 +373,7 @@ const getVehicle = async (event) => {
|
||||||
};
|
};
|
||||||
getVehicle("1");
|
getVehicle("1");
|
||||||
const fnBusChange = async (event) => {
|
const fnBusChange = async (event) => {
|
||||||
const resData = await getTrailerListMaintenance({ ID: event });
|
const resData = await getTrailerList({ ID: event });
|
||||||
data.busInfo = resData.list[0];
|
data.busInfo = resData.list[0];
|
||||||
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
|
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
|
||||||
resData.drivingLicenseImgs
|
resData.drivingLicenseImgs
|
||||||
|
|
|
@ -229,7 +229,6 @@ import {
|
||||||
setOperationsAdd,
|
setOperationsAdd,
|
||||||
setOperationsEdit,
|
setOperationsEdit,
|
||||||
getTrailerList,
|
getTrailerList,
|
||||||
getOperationTrailerList,
|
|
||||||
} from "@/request/mechanical_files.js";
|
} from "@/request/mechanical_files.js";
|
||||||
import { OPERATING_VEHICLE_TYPE_LIST, REMIND_DAYS } from "@/assets/js/constant.js";
|
import { OPERATING_VEHICLE_TYPE_LIST, REMIND_DAYS } from "@/assets/js/constant.js";
|
||||||
import { layoutFnGetAnnualInspectionCycle } from "@/assets/js/data_dictionary.js";
|
import { layoutFnGetAnnualInspectionCycle } from "@/assets/js/data_dictionary.js";
|
||||||
|
@ -335,7 +334,7 @@ const getRemiderDate = (val) => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const getVehicle = async (event) => {
|
const getVehicle = async (event) => {
|
||||||
const resData = await getOperationTrailerList({ TRAFFIC_TYPE: event });
|
const resData = await getTrailerList({ TRAFFIC_TYPE: event });
|
||||||
data.vehicleList = resData.list;
|
data.vehicleList = resData.list;
|
||||||
form.value.VEHICLE = "";
|
form.value.VEHICLE = "";
|
||||||
data.busInfo.DRIVING_LICENSE_IMG = [];
|
data.busInfo.DRIVING_LICENSE_IMG = [];
|
||||||
|
@ -348,7 +347,7 @@ const getVehicle = async (event) => {
|
||||||
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]);
|
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile([]);
|
||||||
};
|
};
|
||||||
const fnBusChange = async (event) => {
|
const fnBusChange = async (event) => {
|
||||||
const resData = await getOperationTrailerList({ ID: event });
|
const resData = await getTrailerList({ ID: event });
|
||||||
data.busInfo = resData.list[0];
|
data.busInfo = resData.list[0];
|
||||||
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
|
data.busInfo.DRIVING_LICENSE_IMG = addingPrefixToFile(
|
||||||
resData.drivingLicenseImgs
|
resData.drivingLicenseImgs
|
||||||
|
|
|
@ -141,6 +141,7 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="CREATTIME" label="创建时间" width="150" />
|
<el-table-column prop="CREATTIME" label="创建时间" width="150" />
|
||||||
|
<el-table-column prop="OPERATTIME" label="修改时间" width="150" />
|
||||||
<el-table-column label="操作" width="250">
|
<el-table-column label="操作" width="250">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -226,7 +227,6 @@ import {
|
||||||
setOperationsDelete,
|
setOperationsDelete,
|
||||||
setOperationsEdit2,
|
setOperationsEdit2,
|
||||||
} from "@/request/mechanical_files.js";
|
} from "@/request/mechanical_files.js";
|
||||||
|
|
||||||
import ExportExcel from "./components/export_excel.vue";
|
import ExportExcel from "./components/export_excel.vue";
|
||||||
import { reactive } from "vue";
|
import { reactive } from "vue";
|
||||||
import { debounce } from "throttle-debounce";
|
import { debounce } from "throttle-debounce";
|
||||||
|
@ -236,8 +236,6 @@ import {
|
||||||
DUE_STATUS_LIST,
|
DUE_STATUS_LIST,
|
||||||
REMINDER_STATUS_LIST,
|
REMINDER_STATUS_LIST,
|
||||||
} from "@/assets/js/constant.js";
|
} from "@/assets/js/constant.js";
|
||||||
|
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
exportExcelDialog: {
|
exportExcelDialog: {
|
||||||
|
|
|
@ -411,7 +411,6 @@ import { useRouter, useRoute } from "vue-router";
|
||||||
import {
|
import {
|
||||||
addAccidentInvestigationView,
|
addAccidentInvestigationView,
|
||||||
editAccidentInvestigation,
|
editAccidentInvestigation,
|
||||||
infoAccidentInvestigation
|
|
||||||
infoAccidentInvestigation,
|
infoAccidentInvestigation,
|
||||||
} from "@/request/production_accident.js";
|
} from "@/request/production_accident.js";
|
||||||
|
|
||||||
|
@ -512,25 +511,6 @@ const rules = reactive({
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
isEditMode.value = route.query.mode === "edit";
|
|
||||||
ACCIDENTINVESTIGATION_ID.value = route.query.ACCIDENTINVESTIGATION_ID || "";
|
|
||||||
if (isEditMode.value) {
|
|
||||||
Object.keys(rules).forEach((key) => {
|
|
||||||
rules[key] = []; // 清空每项校验规则
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
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({});
|
||||||
|
|
|
@ -192,14 +192,13 @@ import {
|
||||||
setScrapManageEdit,
|
setScrapManageEdit,
|
||||||
layoutFnGetScrapType,
|
layoutFnGetScrapType,
|
||||||
getScrapOperationVehicleList,
|
getScrapOperationVehicleList,
|
||||||
getScrapFreightTrailerList,
|
getScrapFreightTrailerList
|
||||||
} from "@/request/scrap_manage.js";
|
} from "@/request/scrap_manage.js";
|
||||||
import {
|
import {
|
||||||
getFreightTrailerView,
|
getFreightTrailerView,
|
||||||
} from "@/request/enterprise_management.js";
|
} from "@/request/enterprise_management.js";
|
||||||
import {
|
import {
|
||||||
getOperationVehicleInfo,
|
getOperationVehicleInfo,
|
||||||
setOperationsScrapStatus
|
|
||||||
} 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";
|
||||||
|
@ -298,7 +297,6 @@ 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,9 +335,6 @@ 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()
|
||||||
};
|
};
|
||||||
|
@ -352,9 +349,6 @@ 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 () => {
|
||||||
|
|
|
@ -185,6 +185,8 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { serialNumber } from "@/assets/js/utils.js";
|
import { serialNumber } from "@/assets/js/utils.js";
|
||||||
import useListData from "@/assets/js/useListData.js";
|
import useListData from "@/assets/js/useListData.js";
|
||||||
|
import { layoutFnGetRemindStatus } from "@/assets/js/taxation_manage.js";
|
||||||
|
import {
|
||||||
import {
|
import {
|
||||||
getTaxationManageList,
|
getTaxationManageList,
|
||||||
setTaxatonManageDelete,
|
setTaxatonManageDelete,
|
||||||
|
@ -193,7 +195,7 @@ import { useRouter } from "vue-router";
|
||||||
import useButtonJurisdiction from "@/assets/js/useButtonJurisdiction.js";
|
import useButtonJurisdiction from "@/assets/js/useButtonJurisdiction.js";
|
||||||
import { debounce } from "throttle-debounce";
|
import { debounce } from "throttle-debounce";
|
||||||
import { ElMessage, ElMessageBox } from "element-plus";
|
import { ElMessage, ElMessageBox } from "element-plus";
|
||||||
import { REMINDER_STATUS } from "@/assets/js/constant.js";
|
import { EXPIRE_STATUS, REMINDER_STATUS } from "@/assets/js/constant.js";
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
|
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
|
||||||
useListData(getTaxationManageList, {});
|
useListData(getTaxationManageList, {});
|
||||||
|
|
|
@ -93,11 +93,11 @@ const rules = {
|
||||||
WATCHLEAD: [{ required: true, message: "值班领导不能为空", trigger: "blur" }],
|
WATCHLEAD: [{ required: true, message: "值班领导不能为空", trigger: "blur" }],
|
||||||
WATCH_TELEPHONE: [
|
WATCH_TELEPHONE: [
|
||||||
{ required: true, message: "请输入", trigger: "blur" },
|
{ required: true, message: "请输入", trigger: "blur" },
|
||||||
{ min: 11, max: 11, message: "请输入11位座机号码", trigger: "blur" },
|
{ min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" },
|
||||||
{
|
{
|
||||||
pattern:
|
pattern:
|
||||||
/^(\d{3,4}-)?\d{7,8}$/,
|
/^(?:(?:\+|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: "请输入正确的座机号码",
|
message: "请输入正确的手机号码",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
WATCH_PHONE: [
|
WATCH_PHONE: [
|
||||||
|
|
|
@ -68,7 +68,7 @@
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import {
|
import {
|
||||||
setEnterpriseSafetyProductEdit,
|
setEnterpriseSafetyProductEdit,
|
||||||
getEnterpriseSafetyProductEdit
|
setEnterpriseSafetyProductAdd,
|
||||||
} from "@/request/enterprise_safety_production.js";
|
} from "@/request/enterprise_safety_production.js";
|
||||||
import { debounce } from "throttle-debounce";
|
import { debounce } from "throttle-debounce";
|
||||||
import useFormValidate from "@/assets/js/useFormValidate.js";
|
import useFormValidate from "@/assets/js/useFormValidate.js";
|
||||||
|
@ -88,11 +88,11 @@ const rules = {
|
||||||
WATCHLEAD: [{ required: true, message: "值班领导不能为空", trigger: "blur" }],
|
WATCHLEAD: [{ required: true, message: "值班领导不能为空", trigger: "blur" }],
|
||||||
WATCH_TELEPHONE: [
|
WATCH_TELEPHONE: [
|
||||||
{ required: true, message: "请输入", trigger: "blur" },
|
{ required: true, message: "请输入", trigger: "blur" },
|
||||||
{ min: 11, max: 11, message: "请输入11位座机号码", trigger: "blur" },
|
{ min: 11, max: 11, message: "请输入11位手机号码", trigger: "blur" },
|
||||||
{
|
{
|
||||||
pattern:
|
pattern:
|
||||||
/^(\d{3,4}-)?\d{7,8}$/,
|
/^(?:(?:\+|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: "请输入正确的座机号码",
|
message: "请输入正确的手机号码",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
WATCH_PHONE: [
|
WATCH_PHONE: [
|
||||||
|
@ -122,7 +122,7 @@ const form = ref({
|
||||||
});
|
});
|
||||||
const fnGetData = async () => {
|
const fnGetData = async () => {
|
||||||
if (!SAFETYPRODUCTION_ID) return;
|
if (!SAFETYPRODUCTION_ID) return;
|
||||||
const resData = await getEnterpriseSafetyProductEdit({ SAFETYPRODUCTION_ID });
|
const resData = await setEnterpriseSafetyProductEdit({ SAFETYPRODUCTION_ID });
|
||||||
form.value = resData.pd;
|
form.value = resData.pd;
|
||||||
};
|
};
|
||||||
fnGetData();
|
fnGetData();
|
||||||
|
@ -130,7 +130,7 @@ const fnSubmit = debounce(
|
||||||
1000,
|
1000,
|
||||||
async () => {
|
async () => {
|
||||||
await useFormValidate(formRef);
|
await useFormValidate(formRef);
|
||||||
await setEnterpriseSafetyProductEdit({ ...form.value });
|
await setEnterpriseSafetyProductAdd({ ...form.value });
|
||||||
ElMessage.success("提交成功");
|
ElMessage.success("提交成功");
|
||||||
router.back();
|
router.back();
|
||||||
},
|
},
|
||||||
|
|
|
@ -3,47 +3,29 @@
|
||||||
<el-divider content-position="left">基本信息</el-divider>
|
<el-divider content-position="left">基本信息</el-divider>
|
||||||
<el-descriptions border>
|
<el-descriptions border>
|
||||||
<el-descriptions-item label="设施名称">
|
<el-descriptions-item label="设施名称">
|
||||||
{{ info.FACILITY_NAME }}
|
{{ data.FACILITY_NAME }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="设施编号">
|
<el-descriptions-item label="设施编号">
|
||||||
{{ info.FACILITY_NUMBER }}
|
{{ data.FACILITY_NUMBER }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="设施单位">
|
<el-descriptions-item label="设施单位">
|
||||||
{{ info.FACILITY_UNIT }}
|
{{ data.FACILITY_UNIT }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="设施数量">
|
<el-descriptions-item label="设施数量">
|
||||||
{{ info.FACILITY_COUNT }}
|
{{ data.FACILITY_COUNT }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="设施位置">
|
<el-descriptions-item label="设施位置">
|
||||||
{{ info.FACILITY_LOCALTION }}
|
{{ data.FACILITY_LOCALTION }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="设施负责人">
|
<el-descriptions-item label="设施负责人">
|
||||||
{{ info.FACILITY_PRINCIPAL }}
|
{{ data.FACILITY_PRINCIPAL }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="登记时间">
|
<el-descriptions-item label="登记时间">
|
||||||
{{ info.REGISTRATION_TIME }}
|
{{ data.REGISTRATION_TIME }}
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="备注">
|
|
||||||
{{ info.FACILITY_REMARK }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="设备设施">
|
|
||||||
<img
|
|
||||||
v-for="item in info.EQUIPMENT_FACILITY"
|
|
||||||
:key="item.FILEPATH"
|
|
||||||
v-viewer
|
|
||||||
:src="item.url"
|
|
||||||
width="100"
|
|
||||||
height="100"
|
|
||||||
alt=""
|
|
||||||
class="ml-10"
|
|
||||||
/>
|
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
<el-divider content-position="left">保养记录</el-divider>
|
<el-divider content-position="left">保养记录</el-divider>
|
||||||
<layout-table :data="list"
|
<layout-table :data="list" :show-pagination="false">
|
||||||
:show-pagination="false"
|
|
||||||
@submit.prevent="fnResetPagination"
|
|
||||||
>
|
|
||||||
<el-table-column type="index" label="序号" align="center" />
|
<el-table-column type="index" label="序号" align="center" />
|
||||||
<el-table-column prop="MAINTAIN_DATE" label="保养时间" />
|
<el-table-column prop="MAINTAIN_DATE" label="保养时间" />
|
||||||
<el-table-column prop="MAINTAIN_CONDITION" label="保养情况" />
|
<el-table-column prop="MAINTAIN_CONDITION" label="保养情况" />
|
||||||
|
@ -105,22 +87,18 @@ import useListData from "@/assets/js/useListData.js";
|
||||||
import useButtonJurisdiction from "@/assets/js/useButtonJurisdiction.js";
|
import useButtonJurisdiction from "@/assets/js/useButtonJurisdiction.js";
|
||||||
import { debounce } from "throttle-debounce";
|
import { debounce } from "throttle-debounce";
|
||||||
import { ElMessage, ElMessageBox } from "element-plus";
|
import { ElMessage, ElMessageBox } from "element-plus";
|
||||||
import { addingPrefixToFile } from "@/assets/js/utils.js";
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { PRODUCTIONFACILITY_ID } = route.query;
|
const { PRODUCTIONFACILITY_ID } = route.query;
|
||||||
const info = ref({});
|
const data = ref({});
|
||||||
const getData = async () => {
|
const getData = async () => {
|
||||||
const resData = await getProductionEquipmentFacilityView({
|
const { pd } = await getProductionEquipmentFacilityView({
|
||||||
PRODUCTIONFACILITY_ID,
|
PRODUCTIONFACILITY_ID,
|
||||||
});
|
});
|
||||||
info.value = resData.pd;
|
data.value = pd;
|
||||||
info.value.EQUIPMENT_FACILITY = addingPrefixToFile(
|
|
||||||
resData.equipmentFacility
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
getData();
|
getData();
|
||||||
const { list, fnResetPagination } = useListData(getMaintainFindProductionEquipmentFacilityId, {
|
const { list } = useListData(getMaintainFindProductionEquipmentFacilityId, {
|
||||||
otherParams: { PRODUCTIONFACILITY_ID },
|
otherParams: { PRODUCTIONFACILITY_ID },
|
||||||
usePagination: false,
|
usePagination: false,
|
||||||
});
|
});
|
||||||
|
@ -131,7 +109,6 @@ const fnDelete = debounce(
|
||||||
await ElMessageBox.confirm("确定要删除吗?", { type: "warning" });
|
await ElMessageBox.confirm("确定要删除吗?", { type: "warning" });
|
||||||
await setMaintainDelete({ MAINTAIN_ID });
|
await setMaintainDelete({ MAINTAIN_ID });
|
||||||
ElMessage.success("删除成功");
|
ElMessage.success("删除成功");
|
||||||
fnResetPagination()
|
|
||||||
},
|
},
|
||||||
{ atBegin: true }
|
{ atBegin: true }
|
||||||
);
|
);
|
||||||
|
|
|
@ -80,16 +80,27 @@ import { setUploadImg } from "@/request/api.js";
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const { MAINTAIN_ID } = route.query;
|
const { MAINTAIN_ID } = route.query;
|
||||||
|
|
||||||
const rules = {
|
const rules = {
|
||||||
MAINTAIN_DATE: [
|
FACILITY_NUMBER: [
|
||||||
{ required: true, message: "保养时间不能为空", trigger: "blur" },
|
{ required: true, message: "设施编号不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
MAINTAIN_CONDITION: [
|
FACILITY_NAME: [
|
||||||
{ required: true, message: "保养情况不能为空", trigger: "blur" },
|
{ required: true, message: "设施名称不能为空", trigger: "blur" },
|
||||||
],
|
],
|
||||||
MAINTAIN_PERSON: [
|
FACILITY_UNIT: [
|
||||||
{ required: true, message: "保养人不能为空", trigger: "blur" },
|
{ required: true, message: "设施单位不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
FACILITY_COUNT: [
|
||||||
|
{ required: true, message: "设施数量不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
FACILITY_LOCALTION: [
|
||||||
|
{ required: true, message: "设施位置不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
FACILITY_PRINCIPAL: [
|
||||||
|
{ required: true, message: "设施负责人不能为空", trigger: "blur" },
|
||||||
|
],
|
||||||
|
REGISTRATION_TIME: [
|
||||||
|
{ required: true, message: "登记时间不能为空", trigger: "change" },
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
const formRef = ref(null);
|
const formRef = ref(null);
|
||||||
|
|
|
@ -4,40 +4,25 @@
|
||||||
<el-divider content-position="left">基本信息</el-divider>
|
<el-divider content-position="left">基本信息</el-divider>
|
||||||
<el-descriptions border>
|
<el-descriptions border>
|
||||||
<el-descriptions-item label="设施名称">
|
<el-descriptions-item label="设施名称">
|
||||||
{{ info.FACILITY_NAME }}
|
{{ data.FACILITY_NAME }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="设施编号">
|
<el-descriptions-item label="设施编号">
|
||||||
{{ info.FACILITY_NUMBER }}
|
{{ data.FACILITY_NUMBER }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="设施单位">
|
<el-descriptions-item label="设施单位">
|
||||||
{{ info.FACILITY_UNIT }}
|
{{ data.FACILITY_UNIT }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="设施数量">
|
<el-descriptions-item label="设施数量">
|
||||||
{{ info.FACILITY_COUNT }}
|
{{ data.FACILITY_COUNT }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="设施位置">
|
<el-descriptions-item label="设施位置">
|
||||||
{{ info.FACILITY_LOCALTION }}
|
{{ data.FACILITY_LOCALTION }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="设施负责人">
|
<el-descriptions-item label="设施负责人">
|
||||||
{{ info.FACILITY_PRINCIPAL }}
|
{{ data.FACILITY_PRINCIPAL }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="登记时间">
|
<el-descriptions-item label="登记时间">
|
||||||
{{ info.REGISTRATION_TIME }}
|
{{ data.REGISTRATION_TIME }}
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="备注">
|
|
||||||
{{ info.FACILITY_REMARK }}
|
|
||||||
</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="设备设施">
|
|
||||||
<img
|
|
||||||
v-for="item in info.EQUIPMENT_FACILITY"
|
|
||||||
:key="item.FILEPATH"
|
|
||||||
v-viewer
|
|
||||||
:src="item.url"
|
|
||||||
width="100"
|
|
||||||
height="100"
|
|
||||||
alt=""
|
|
||||||
class="ml-10"
|
|
||||||
/>
|
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
<el-divider content-position="left">保养记录</el-divider>
|
<el-divider content-position="left">保养记录</el-divider>
|
||||||
|
@ -65,18 +50,14 @@ import { useRoute } from "vue-router";
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import useListData from "@/assets/js/useListData.js";
|
import useListData from "@/assets/js/useListData.js";
|
||||||
import { PRINT_STYLE } from "@/assets/js/constant.js";
|
import { PRINT_STYLE } from "@/assets/js/constant.js";
|
||||||
import { addingPrefixToFile } from "@/assets/js/utils.js";
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const { PRODUCTIONFACILITY_ID } = route.query;
|
const { PRODUCTIONFACILITY_ID } = route.query;
|
||||||
const info = ref({});
|
const data = ref({});
|
||||||
const getData = async () => {
|
const getData = async () => {
|
||||||
const resData = await getProductionEquipmentFacilityView({
|
const { pd } = await getProductionEquipmentFacilityView({
|
||||||
PRODUCTIONFACILITY_ID,
|
PRODUCTIONFACILITY_ID,
|
||||||
});
|
});
|
||||||
info.value = resData.pd;
|
data.value = pd;
|
||||||
info.value.EQUIPMENT_FACILITY = addingPrefixToFile(
|
|
||||||
resData.equipmentFacility
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
getData();
|
getData();
|
||||||
const { list } = useListData(getMaintainFindProductionEquipmentFacilityId, {
|
const { list } = useListData(getMaintainFindProductionEquipmentFacilityId, {
|
||||||
|
|
|
@ -31,9 +31,9 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<el-form-item label="上报日期" prop="REPORTED_TIME">
|
<el-form-item label="上报日期" prop="REPORTED_DATE">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
v-model="searchForm.REPORTED_TIME"
|
v-model="searchForm.REPORTED_DATE"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
type="date"
|
type="date"
|
||||||
|
|
|
@ -167,7 +167,6 @@ const data = reactive({
|
||||||
fileList: [],
|
fileList: [],
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const fnSubmit = async () => {
|
const fnSubmit = async () => {
|
||||||
await useFormValidate(formRef);
|
await useFormValidate(formRef);
|
||||||
|
|
||||||
|
|
|
@ -1,201 +0,0 @@
|
||||||
<template>
|
|
||||||
<layout-card>
|
|
||||||
<el-form
|
|
||||||
ref="formRef"
|
|
||||||
:model="data.form"
|
|
||||||
:rules="rules"
|
|
||||||
label-width="175px"
|
|
||||||
>
|
|
||||||
<el-divider content-position="left">添加</el-divider>
|
|
||||||
<el-row>
|
|
||||||
<el-col :span="5">
|
|
||||||
<el-form-item label="从业人员" prop="USER_ID">
|
|
||||||
<el-select v-model="data.form.USER_ID" placeholder="请选择从业人员">
|
|
||||||
<el-option
|
|
||||||
v-for="item in data.unitsList"
|
|
||||||
:key="item.USER_ID"
|
|
||||||
:label="item.NAME"
|
|
||||||
:value="item.USER_ID"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="5">
|
|
||||||
<el-form-item label="车牌号" prop="TRANSPORTVEHICLE">
|
|
||||||
<el-select
|
|
||||||
v-model="data.form.TRANSPORTVEHICLE"
|
|
||||||
placeholder="请选择车辆"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in TRUCKMENU"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.id"
|
|
||||||
:value="item.name"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="5">
|
|
||||||
<el-form-item label="处罚方式" prop="PENALTYMETHOD">
|
|
||||||
<el-select
|
|
||||||
v-model="data.form.PENALTYMETHOD"
|
|
||||||
placeholder="请选择会议类型"
|
|
||||||
>
|
|
||||||
<el-option
|
|
||||||
v-for="item in PENALTYMETHODMENU"
|
|
||||||
:key="item.id"
|
|
||||||
:label="item.id"
|
|
||||||
:value="item.name"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="5">
|
|
||||||
<el-form-item prop="PENALTYTIME" label="处罚时间">
|
|
||||||
<el-date-picker
|
|
||||||
v-model="data.form.PENALTYTIME"
|
|
||||||
type="date"
|
|
||||||
format="YYYY-MM-DD"
|
|
||||||
value-format="YYYY-MM-DD"
|
|
||||||
placeholder="选择日期"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-form-item label="处罚事件" prop="PENALTYEVENT">
|
|
||||||
<el-input
|
|
||||||
v-model="data.form.PENALTYEVENT"
|
|
||||||
placeholder="请输入处罚事件"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-form-item label="处罚措施" prop="PENALTYMEASURES">
|
|
||||||
<el-input
|
|
||||||
v-model="data.form.PENALTYMEASURES"
|
|
||||||
placeholder="请输入处罚措施"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
|
||||||
<el-form-item label="处罚登记人" prop="PENALTYREGISTRANT">
|
|
||||||
<el-input
|
|
||||||
v-model="data.form.PENALTYREGISTRANT"
|
|
||||||
placeholder="请输入处罚登记人"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="12">
|
|
||||||
<el-form-item label="会议文本附件" prop="fileList">
|
|
||||||
<layout-upload
|
|
||||||
v-model:file-list="data.form.fileList"
|
|
||||||
accept=".pdf"
|
|
||||||
delete-to-server
|
|
||||||
:limit="9"
|
|
||||||
:size="100"
|
|
||||||
/>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
</el-row>
|
|
||||||
</el-form>
|
|
||||||
<div class="tc mt-10">
|
|
||||||
<el-button type="primary" @click="fnSubmit"> 确定 </el-button>
|
|
||||||
</div>
|
|
||||||
</layout-card>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script setup>
|
|
||||||
import { getUserListAll } from "@/request/safety_production_related.js";
|
|
||||||
import { onMounted, reactive, ref, toRaw } from "vue";
|
|
||||||
import { PENALTYMETHODMENU, TRUCKMENU } from "@/assets/js/constant.js";
|
|
||||||
import LayoutUpload from "@/components/upload/index.vue";
|
|
||||||
import useFormValidate from "@/assets/js/useFormValidate.js";
|
|
||||||
|
|
||||||
import { useRoute, useRouter } from "vue-router";
|
|
||||||
import {
|
|
||||||
editViolationRegistration,
|
|
||||||
infoViolationRegistration
|
|
||||||
} from "@/request/violation_registration.js";
|
|
||||||
import { ElMessage } from "element-plus";
|
|
||||||
|
|
||||||
const formRef = ref(null);
|
|
||||||
const rules = {
|
|
||||||
TRANSPORTVEHICLE: [
|
|
||||||
{ required: true, message: "请选择运行车辆", trigger: "blur" },
|
|
||||||
],
|
|
||||||
USER_ID: [{ required: true, message: "请选择从业人员", trigger: "change" }],
|
|
||||||
PENALTYMETHOD: [
|
|
||||||
{ required: true, message: "请选择处罚方式", trigger: "blur" },
|
|
||||||
],
|
|
||||||
PENALTYEVENT: [
|
|
||||||
{ required: true, message: "请输入处罚事件", trigger: "change" },
|
|
||||||
],
|
|
||||||
PENALTYMEASURES: [
|
|
||||||
{ required: true, message: "请输入处罚措施", trigger: "blur" },
|
|
||||||
],
|
|
||||||
PENALTYREGISTRANT: [
|
|
||||||
{ required: true, message: "请输入处罚登记人", trigger: "blur" },
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|
||||||
// 获取路由实例
|
|
||||||
const route = useRoute();
|
|
||||||
const router = useRouter();
|
|
||||||
// 通过路由查询参数来判断模式
|
|
||||||
const isEditMode = ref(false);
|
|
||||||
const { REGISTRATION_ID } = route.query;
|
|
||||||
|
|
||||||
onMounted(() => {
|
|
||||||
isEditMode.value = route.query.mode === "edit";
|
|
||||||
});
|
|
||||||
|
|
||||||
const fnGetUnitsList = async () => {
|
|
||||||
const resData = await getUserListAll({});
|
|
||||||
data.unitsList = resData.userList;
|
|
||||||
};
|
|
||||||
fnGetUnitsList();
|
|
||||||
|
|
||||||
const data = reactive({
|
|
||||||
form: {
|
|
||||||
TRANSPORTVEHICLE: "",
|
|
||||||
USER_ID: "",
|
|
||||||
PENALTYMETHOD: "",
|
|
||||||
PENALTYTIME: "",
|
|
||||||
PENALTYEVENT: "",
|
|
||||||
PENALTYMEASURES: "",
|
|
||||||
PENALTYREGISTRANT: "",
|
|
||||||
fileList: [],
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
const fnGetData = async () => {
|
|
||||||
if (!REGISTRATION_ID) return;
|
|
||||||
const resData = await infoViolationRegistration({ REGISTRATION_ID });
|
|
||||||
data.form = resData.pd
|
|
||||||
};
|
|
||||||
fnGetData()
|
|
||||||
const fnSubmit = async () => {
|
|
||||||
await useFormValidate(formRef);
|
|
||||||
|
|
||||||
const rawForm = toRaw(data.form);
|
|
||||||
const formData = new FormData();
|
|
||||||
Object.keys(rawForm).forEach((key) => {
|
|
||||||
const value = rawForm[key];
|
|
||||||
formData.append(key, value);
|
|
||||||
});
|
|
||||||
await editViolationRegistration(data.form)
|
|
||||||
ElMessage.success("编辑成功");
|
|
||||||
router.back();
|
|
||||||
};
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
|
||||||
.flexBox {
|
|
||||||
display: flex;
|
|
||||||
align-items: flex-end;
|
|
||||||
|
|
||||||
.addBtn {
|
|
||||||
margin-left: 12px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
|
|
@ -73,14 +73,9 @@
|
||||||
type="primary"
|
type="primary"
|
||||||
text
|
text
|
||||||
link
|
link
|
||||||
@click="
|
@click="fnAddOrEdit(row.REGISTRATION_ID)"
|
||||||
router.push({
|
|
||||||
path: '/production_course_regulate/violation_registration/edit',
|
|
||||||
query: { REGISTRATION_ID: row.REGISTRATION_ID },
|
|
||||||
})
|
|
||||||
"
|
|
||||||
>
|
>
|
||||||
修改
|
编辑
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
|
@ -144,7 +139,15 @@ const data = reactive({
|
||||||
info: {},
|
info: {},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
const fnAddOrEdit = (registrationId) => {
|
||||||
|
router.push({
|
||||||
|
path: "/production_course_regulate/violation_registration/add",
|
||||||
|
query: {
|
||||||
|
mode: "edit",
|
||||||
|
registrationId,
|
||||||
|
},
|
||||||
|
});
|
||||||
|
};
|
||||||
// 删除事件
|
// 删除事件
|
||||||
const deleteItem = async (value) => {
|
const deleteItem = async (value) => {
|
||||||
await ElMessageBox.confirm(`确定要删除吗?`, {
|
await ElMessageBox.confirm(`确定要删除吗?`, {
|
||||||
|
|
|
@ -126,7 +126,9 @@ const rules = {
|
||||||
TITLE: [{ required: true, message: "请输入通知标题", trigger: "blur" }],
|
TITLE: [{ required: true, message: "请输入通知标题", trigger: "blur" }],
|
||||||
LEVEL: [{ required: true, message: "请选择通知等级", trigger: "blur" }],
|
LEVEL: [{ required: true, message: "请选择通知等级", trigger: "blur" }],
|
||||||
PERSON: [{ required: true, message: "请选择通知人员", trigger: "blur" }],
|
PERSON: [{ required: true, message: "请选择通知人员", trigger: "blur" }],
|
||||||
NOTIFICATIONCONTENT: [{ required: true, message: "请输入通知内容", trigger: "blur" }],
|
NOTIFICATIONCONTENT: [
|
||||||
|
{ required: true, message: "请输入通知内容", trigger: "blur" },
|
||||||
|
],
|
||||||
};
|
};
|
||||||
const relatedClassificationTempList =
|
const relatedClassificationTempList =
|
||||||
await layoutFnGetNotificationsClassification();
|
await layoutFnGetNotificationsClassification();
|
||||||
|
|
|
@ -97,9 +97,6 @@ const { list, searchForm, pagination, fnGetData, fnResetPagination, tableRef } =
|
||||||
clearSelection: false,
|
clearSelection: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const stop = watch(
|
const stop = watch(
|
||||||
() => props.visible,
|
() => props.visible,
|
||||||
(value) => {
|
(value) => {
|
||||||
|
|
Loading…
Reference in New Issue