消除代码编译的警告、错误

dev
wangpeng 2024-04-01 10:04:41 +08:00
parent f2d72723ef
commit 8619753b0a
40 changed files with 494 additions and 445 deletions

View File

@ -139,11 +139,11 @@ export const REMINDER_STATUS = [
{ ID: "1", NAME: "关闭" }, { ID: "1", NAME: "关闭" },
]; ];
export const REMIND_DAYS = [ export const REMIND_DAYS = [
// 提醒天数 // 提醒天数
{ ID: "0", NAME: "30天", NUM: "30" }, { ID: "0", NAME: "30天", NUM: "30" },
{ ID: "1", NAME: "45天", NUM: "45" }, { ID: "1", NAME: "45天", NUM: "45" },
{ ID: "2", NAME: "90天", NUM: "90" } { ID: "2", NAME: "90天", NUM: "90" },
]; ];
// export const MAINTENANCE_LEVEL_LIST = [ // export const MAINTENANCE_LEVEL_LIST = [

View File

@ -414,8 +414,6 @@ export function subtractDaysFromDate(date, daysToSubtract, type = false) {
} else if (Object.prototype.toString.call(date) === "[object Date]") { } else if (Object.prototype.toString.call(date) === "[object Date]") {
// 直接传入了 Date 对象 // 直接传入了 Date 对象
newDate = date; newDate = date;
} else {
console.log("无效的输入参数");
} }
if (type) { if (type) {
newDate.setDate(newDate.getDate() + daysToSubtract); newDate.setDate(newDate.getDate() + daysToSubtract);

View File

@ -26,7 +26,8 @@ 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 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,7 +42,8 @@ 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 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); // 维保管理查看
@ -50,4 +52,5 @@ 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); export const getTrailerListCompass = (params) =>
post("/beidou/vehicleList", params);

View File

@ -108,8 +108,6 @@ export const findByPlateNumber = (params) =>
const getCorpList = (params) => post("/operatingvehicles/corpList", params); const getCorpList = (params) => post("/operatingvehicles/corpList", params);
export const getOperationVehicleCorpList1 = async () => { export const getOperationVehicleCorpList1 = async () => {
const resData = await getCorpList(); const resData = await getCorpList();
return resData.list; return resData.list;

View File

@ -6,7 +6,9 @@ export const setDrivingCommitmentDelete = (params) =>
post("/drivingcommitment/delete", params); // 行车日志删除 post("/drivingcommitment/delete", params); // 行车日志删除
export const getSafetyDrivingCommitmentView = (params) => export const getSafetyDrivingCommitmentView = (params) =>
post("/drivingcommitment/goEdit", params); // 安全例会详情 post("/drivingcommitment/goEdit", params); // 行车承诺详情
export const setDrivingCommitmentAdd = (params) => post("/drivingcommitment/add", params); // 风险点单元添加 export const setDrivingCommitmentAdd = (params) =>
export const setDrivingCommitmentEdit = (params) => post("/drivingcommitment/edit", params); // 风险点单元修改 post("/drivingcommitment/add", params); // 行车承诺添加
export const setDrivingCommitmentEdit = (params) =>
post("/drivingcommitment/edit", params); // 行车承诺修改

View File

@ -6,7 +6,7 @@ export const setDrivingTypeDelete = (params) =>
post("/drivingtype/delete", params); // 行车日志删除 post("/drivingtype/delete", params); // 行车日志删除
export const getSafetyDrivingTypeView = (params) => export const getSafetyDrivingTypeView = (params) =>
post("/drivingtype/goEdit", params); // 安全例会详情 post("/drivingtype/goEdit", params); // 行车排查项类型详情
export const setDrivingTypeAdd = (params) => post("/drivingtype/add", params); // 风险点单元添加 export const setDrivingTypeAdd = (params) => post("/drivingtype/add", params); // 行车排查项类型添加
export const setDrivingTypeEdit = (params) => post("/drivingtype/edit", params); // 风险点单元修改 export const setDrivingTypeEdit = (params) => post("/drivingtype/edit", params); // 行车排查项类型修改

View File

@ -12,7 +12,8 @@ export const setPractitionerReview = (params) =>
export const getPractitionerInfo = (params) => export const getPractitionerInfo = (params) =>
post("/user/getPractitionerInfo", params); post("/user/getPractitionerInfo", params);
export const getPractitionerForEdit = (params) => post("/user/getPractitionerForEdit", params); // 用户管理查看 export const getPractitionerForEdit = (params) =>
post("/user/getPractitionerForEdit", params); // 用户管理查看
// 从业人员添加(需从业人员确认) // 从业人员添加(需从业人员确认)
export const setPractitionerAdd = (params) => export const setPractitionerAdd = (params) =>

View File

@ -7,9 +7,9 @@
<el-form ref="formRef" :rules="rules" :model="form" label-width="100px"> <el-form ref="formRef" :rules="rules" :model="form" label-width="100px">
<el-form-item label="问询内容" prop="INQUIRYCONTENT"> <el-form-item label="问询内容" prop="INQUIRYCONTENT">
<el-input <el-input
v-model="form.INQUIRYCONTENT" v-model="form.INQUIRYCONTENT"
type="textarea" type="textarea"
:autosize="{ minRows: 5 }" :autosize="{ minRows: 5 }"
/> />
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -26,7 +26,10 @@ import { useVModels } from "@vueuse/core";
import { debounce } from "throttle-debounce"; import { debounce } from "throttle-debounce";
import useFormValidate from "@/assets/js/useFormValidate.js"; import useFormValidate from "@/assets/js/useFormValidate.js";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import {setDrivingCommitmentAdd, setDrivingCommitmentEdit} from "@/request/traffic_driving_commitment.js"; import {
setDrivingCommitmentAdd,
setDrivingCommitmentEdit,
} from "@/request/traffic_driving_commitment.js";
const props = defineProps({ const props = defineProps({
visible: { visible: {

View File

@ -8,21 +8,21 @@
<el-form-item label="排查项类型" prop="CHECKTYPE_ID"> <el-form-item label="排查项类型" prop="CHECKTYPE_ID">
<el-select v-model="form.CHECKTYPE_ID"> <el-select v-model="form.CHECKTYPE_ID">
<el-option <el-option
v-for="item in drivingTypeList" v-for="item in drivingTypeList"
:key="item.BIANMA" :key="item.BIANMA"
:label="item.NAME" :label="item.NAME"
:value="item.BIANMA" :value="item.BIANMA"
/> />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="排查项名称" prop="CHECKITEMNAME"> <el-form-item label="排查项名称" prop="CHECKITEMNAME">
<el-input v-model="form.CHECKITEMNAME"/> <el-input v-model="form.CHECKITEMNAME" />
</el-form-item> </el-form-item>
<el-form-item label="排查项说明" prop="REMARKS"> <el-form-item label="排查项说明" prop="REMARKS">
<el-input <el-input
v-model="form.REMARKS" v-model="form.REMARKS"
type="textarea" type="textarea"
:autosize="{ minRows: 5 }" :autosize="{ minRows: 5 }"
/> />
</el-form-item> </el-form-item>
</el-form> </el-form>
@ -39,8 +39,11 @@ import { useVModels } from "@vueuse/core";
import { debounce } from "throttle-debounce"; import { debounce } from "throttle-debounce";
import useFormValidate from "@/assets/js/useFormValidate.js"; import useFormValidate from "@/assets/js/useFormValidate.js";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import {setDrivingTypeAdd, setDrivingTypeEdit} from "@/request/traffic_driving_type.js"; import {
import {layoutFnGetDrivingType} from "@/assets/js/data_dictionary.js"; setDrivingTypeAdd,
setDrivingTypeEdit,
} from "@/request/traffic_driving_type.js";
import { layoutFnGetDrivingType } from "@/assets/js/data_dictionary.js";
const props = defineProps({ const props = defineProps({
visible: { visible: {
@ -68,9 +71,7 @@ const rules = {
CHECKITEMNAME: [ CHECKITEMNAME: [
{ required: true, message: "排查项名称不能为空", trigger: "blur" }, { required: true, message: "排查项名称不能为空", trigger: "blur" },
], ],
REMARKS: [ REMARKS: [{ required: true, message: "排查项说明不能为空", trigger: "blur" }],
{ required: true, message: "排查项说明不能为空", trigger: "blur" },
],
}; };
const formRef = ref(null); const formRef = ref(null);
const fnClose = () => { const fnClose = () => {

View File

@ -449,15 +449,14 @@ const rules = {
{ required: true, message: "请输入发动机号", trigger: "blur" }, { required: true, message: "请输入发动机号", trigger: "blur" },
{ min: 7, max: 8, message: "请输入7-8位发动机号", trigger: "blur" }, { min: 7, max: 8, message: "请输入7-8位发动机号", trigger: "blur" },
{ {
pattern: pattern: /^[A-Z0-9a-z\d]{7,8}$/,
/^[A-Z0-9a-z\d]{7,8}$/,
message: "请输入正确的发动机号", 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" },
] ],
}; };
const formRef = ref(null); const formRef = ref(null);
const form = ref({ const form = ref({

View File

@ -5,10 +5,7 @@
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="编号" prop="GOODSSELFNUMBER"> <el-form-item label="编号" prop="GOODSSELFNUMBER">
<el-input <el-input v-model="form.GOODSSELFNUMBER" placeholder="请填写编号" />
v-model="form.GOODSSELFNUMBER"
placeholder="请填写编号"
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -328,7 +325,8 @@ import {
import { import {
findByIdOperatingVehicleInfo, findByIdOperatingVehicleInfo,
editOperatingVehicleInfo, editOperatingVehicleInfo,
addOperatingVehicleInfo, findByPlateNumber addOperatingVehicleInfo,
findByPlateNumber,
} from "@/request/operation_vehicle.js"; } from "@/request/operation_vehicle.js";
import useFormValidate from "@/assets/js/useFormValidate.js"; import useFormValidate from "@/assets/js/useFormValidate.js";
@ -343,17 +341,17 @@ import LayoutDepartment from "@/components/department/index.vue";
const route = useRoute(); const route = useRoute();
const router = useRouter(); const router = useRouter();
const { OPERATING_ID } = route.query; const { OPERATING_ID } = route.query;
let plateNumber = '' let plateNumber = "";
const isPlateNumberRepetition = async (rule, vehicleNumber, callback) => { const isPlateNumberRepetition = async (rule, vehicleNumber, callback) => {
if (vehicleNumber) { if (vehicleNumber) {
const vehicleCount = await findByPlateNumber({ vehicleNumber }); const vehicleCount = await findByPlateNumber({ vehicleNumber });
if(vehicleCount.pd) { if (vehicleCount.pd) {
if(vehicleCount.pd.PLATE_NUMBER === plateNumber){ if (vehicleCount.pd.PLATE_NUMBER === plateNumber) {
callback(); callback();
}else{ } else {
callback(new Error("车辆已存在")) callback(new Error("车辆已存在"));
} }
}else callback(); } else callback();
} }
}; };
const isVehicleNumber = (rule, vehicleNumber, callback) => { const isVehicleNumber = (rule, vehicleNumber, callback) => {
@ -495,7 +493,7 @@ const fnGetData = async () => {
form.value.OPERATING_CERTIFICATE_PHOTO = addingPrefixToFile( form.value.OPERATING_CERTIFICATE_PHOTO = addingPrefixToFile(
resData.operatingcertificatephoto resData.operatingcertificatephoto
); );
plateNumber = form.value.PLATE_NUMBER plateNumber = form.value.PLATE_NUMBER;
}; };
fnGetData(); fnGetData();
const fnSubmit = debounce( const fnSubmit = debounce(

View File

@ -57,7 +57,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- <el-col :span="6"> <!-- <el-col :span="6">
<el-form-item label="主动安全" prop="ACTIVE_SAFETY"> <el-form-item label="主动安全" prop="ACTIVE_SAFETY">
<el-select v-model="searchForm.ACTIVE_SAFETY" clearable> <el-select v-model="searchForm.ACTIVE_SAFETY" clearable>
<el-option <el-option
@ -72,7 +72,9 @@
<el-col :span="10"> <el-col :span="10">
<el-form-item label-width="10px"> <el-form-item label-width="10px">
<el-button type="primary" native-type="submit">搜索</el-button> <el-button type="primary" native-type="submit">搜索</el-button>
<el-button native-type="reset" @click="fnResetPaginationTransfer"></el-button> <el-button native-type="reset" @click="fnResetPaginationTransfer"
>重置</el-button
>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="30"> <el-col :span="30">
@ -174,9 +176,7 @@
<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 { import { layoutFnGetVehicleColor } from "@/assets/js/operation_vehicle.js";
layoutFnGetVehicleColor,
} from "@/assets/js/operation_vehicle.js";
import { import {
getOperationVehicleList, getOperationVehicleList,
setOperationVehicleDelete, setOperationVehicleDelete,
@ -188,7 +188,7 @@ import { ElMessage, ElMessageBox } from "element-plus";
import { NETWORK_STATE } from "@/assets/js/constant.js"; import { NETWORK_STATE } from "@/assets/js/constant.js";
const router = useRouter(); const router = useRouter();
const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef} = const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef } =
useListData(getOperationVehicleList, {}); useListData(getOperationVehicleList, {});
const troubleshootingCycleList = await layoutFnGetVehicleColor(); const troubleshootingCycleList = await layoutFnGetVehicleColor();
const fnGetDataTransfer = () => { const fnGetDataTransfer = () => {
@ -220,9 +220,7 @@ const fnExport = async () => {
return; return;
} }
await ElMessageBox.confirm("确定要导出到excel吗", { type: "warning" }); await ElMessageBox.confirm("确定要导出到excel吗", { type: "warning" });
const DATA_IDS = selectionData const DATA_IDS = selectionData.map((item) => item.OPERATING_ID).join(",");
.map((item) => item.OPERATING_ID)
.join(",");
window.location.href = window.location.href =
import.meta.env[import.meta.env.DEV ? "VITE_PROXY" : "VITE_BASE_URL"] + import.meta.env[import.meta.env.DEV ? "VITE_PROXY" : "VITE_BASE_URL"] +
"/operatingvehicles/excel?" + "/operatingvehicles/excel?" +

View File

@ -451,7 +451,6 @@ import { reactive, ref } from "vue";
import LayoutTerritory from "@/components/territory/index.vue"; import LayoutTerritory from "@/components/territory/index.vue";
import LayoutIndustry from "@/components/industry/index.vue"; import LayoutIndustry from "@/components/industry/index.vue";
import LayoutEconomicType from "@/components/economic_type/index.vue"; import LayoutEconomicType from "@/components/economic_type/index.vue";
import LayoutLearningTrainType from "@/components/learning_train_type/index.vue";
import LayoutUpload from "@/components/upload/index.vue"; import LayoutUpload from "@/components/upload/index.vue";
import { import {
layoutFnGetEnterpriseScale, layoutFnGetEnterpriseScale,

View File

@ -53,38 +53,36 @@
}} }}
</el-divider> </el-divider>
<el-descriptions :column="2" border> <el-descriptions :column="2" border>
<template> <el-descriptions-item
<el-descriptions-item :label="
:label=" item.CERTIFICATE_CATEGORY === '1'
item.CERTIFICATE_CATEGORY === '1' ? '身份证(正面)'
? '身份证(正面)' : item.CERTIFICATE_CATEGORY === '2'
: item.CERTIFICATE_CATEGORY === '2' ? '驾驶证'
? '驾驶证' : '道路运输从业资格证'
: '道路运输从业资格证' "
" :span="item.CERTIFICATE_CATEGORY === '1' ? 1 : 2"
:span="item.CERTIFICATE_CATEGORY === '1' ? 1 : 2" >
> <img
<img v-viewer
v-viewer :src="item.ID_PHOTO_FRONT"
:src="item.ID_PHOTO_FRONT" width="100"
width="100" height="100"
height="100" class="ml-10"
class="ml-10" />
/> </el-descriptions-item>
</el-descriptions-item> <el-descriptions-item
<el-descriptions-item v-if="item.CERTIFICATE_CATEGORY === '1'"
v-if="item.CERTIFICATE_CATEGORY === '1'" label="身份证(背面)"
label="身份证(背面)" >
> <img
<img v-viewer
v-viewer :src="item.ID_PHOTO_BACK"
:src="item.ID_PHOTO_BACK" width="100"
width="100" height="100"
height="100" class="ml-10"
class="ml-10" />
/> </el-descriptions-item>
</el-descriptions-item>
</template>
<el-descriptions-item <el-descriptions-item
v-if="item.CERTIFICATE_CATEGORY === '1'" v-if="item.CERTIFICATE_CATEGORY === '1'"
label="住址" label="住址"

View File

@ -40,10 +40,7 @@
<el-col :span="8"> <el-col :span="8">
<el-form-item label="手机号" prop="PHONE"> <el-form-item label="手机号" prop="PHONE">
<el-input <el-input v-model="data.form.PHONE" placeholder="请输入" />
v-model="data.form.PHONE"
placeholder="请输入"
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
@ -486,7 +483,9 @@
prop="QUALIFICATION_CERTIFICATE" prop="QUALIFICATION_CERTIFICATE"
> >
<layout-upload <layout-upload
v-model:file-list="data.fileForm.QUALIFICATION_CERTIFICATE" v-model:file-list="
data.fileForm.QUALIFICATION_CERTIFICATE
"
accept=".jpg,.jpeg,.png" accept=".jpg,.jpeg,.png"
list-type="picture-card" list-type="picture-card"
> >
@ -937,7 +936,10 @@ const fnGetData = async () => {
form.DRIVER_LICENSE_NO = item.ID_NO; form.DRIVER_LICENSE_NO = item.ID_NO;
form.DRIVING_NATIONALITY = item.ID_NATIONALITY; form.DRIVING_NATIONALITY = item.ID_NATIONALITY;
form.DRIVER_LICENSE_ISSUE_DATE = item.ID_ISSUE_DATE; form.DRIVER_LICENSE_ISSUE_DATE = item.ID_ISSUE_DATE;
form.DRIVER_LICENSE_VALIDITY = [item.ID_VALIDITY_START, item.ID_VALIDITY_END]; form.DRIVER_LICENSE_VALIDITY = [
item.ID_VALIDITY_START,
item.ID_VALIDITY_END,
];
form.DRIVER_LICENSE_VALIDITY_START = item.ID_VALIDITY_START; form.DRIVER_LICENSE_VALIDITY_START = item.ID_VALIDITY_START;
form.DRIVER_LICENSE_VALIDITY_END = item.ID_VALIDITY_END; form.DRIVER_LICENSE_VALIDITY_END = item.ID_VALIDITY_END;
form.DRIVER_LICENSE_ORGAN = item.ID_ORGAN; form.DRIVER_LICENSE_ORGAN = item.ID_ORGAN;
@ -945,12 +947,17 @@ const fnGetData = async () => {
? item.ALLOW_QUALIFICATION.split(",") ? item.ALLOW_QUALIFICATION.split(",")
: []; : [];
} else if (item.CERTIFICATE_CATEGORY === "3") { } else if (item.CERTIFICATE_CATEGORY === "3") {
data.fileForm.QUALIFICATION_CERTIFICATE = addingPrefixFile(item.ID_PHOTO_FRONT); data.fileForm.QUALIFICATION_CERTIFICATE = addingPrefixFile(
item.ID_PHOTO_FRONT
);
form.QUALIFICATION_CERTIFICATE = item.ID_PHOTO_FRONT; form.QUALIFICATION_CERTIFICATE = item.ID_PHOTO_FRONT;
form.QUALIFICATION_CERTIFICATE_NO = item.ID_NO; form.QUALIFICATION_CERTIFICATE_NO = item.ID_NO;
form.QUALIFICATION_CERTIFICATE_NATIONALITY = item.ID_NATIONALITY; form.QUALIFICATION_CERTIFICATE_NATIONALITY = item.ID_NATIONALITY;
form.QUALIFICATION_CERTIFICATE_ISSUE_DATE = item.ID_ISSUE_DATE; form.QUALIFICATION_CERTIFICATE_ISSUE_DATE = item.ID_ISSUE_DATE;
form.QUALIFICATION_CERTIFICATE_VALIDITY = [item.ID_VALIDITY_START, item.ID_VALIDITY_END]; form.QUALIFICATION_CERTIFICATE_VALIDITY = [
item.ID_VALIDITY_START,
item.ID_VALIDITY_END,
];
form.QUALIFICATION_CERTIFICATE_VALIDITY_START = item.ID_VALIDITY_START; form.QUALIFICATION_CERTIFICATE_VALIDITY_START = item.ID_VALIDITY_START;
form.QUALIFICATION_CERTIFICATE_VALIDITY_END = item.ID_VALIDITY_END; form.QUALIFICATION_CERTIFICATE_VALIDITY_END = item.ID_VALIDITY_END;
form.QUALIFICATION_CERTIFICATE_ORGAN = item.ID_ORGAN; form.QUALIFICATION_CERTIFICATE_ORGAN = item.ID_ORGAN;
@ -1156,9 +1163,15 @@ const fnSubmit = debounce(
data.fileForm.ID_CARD_BACK?.[0]?.raw && data.fileForm.ID_CARD_BACK?.[0]?.raw &&
formData.append("idCardBackFiles", data.fileForm.ID_CARD_BACK[0].raw); formData.append("idCardBackFiles", data.fileForm.ID_CARD_BACK[0].raw);
data.fileForm.DRIVER_LICENSE?.[0]?.raw && data.fileForm.DRIVER_LICENSE?.[0]?.raw &&
formData.append("driverLicenseFiles", data.fileForm.DRIVER_LICENSE[0].raw); formData.append(
"driverLicenseFiles",
data.fileForm.DRIVER_LICENSE[0].raw
);
data.fileForm.QUALIFICATION_CERTIFICATE?.[0]?.raw && data.fileForm.QUALIFICATION_CERTIFICATE?.[0]?.raw &&
formData.append("qualificationCertificateFiles", data.fileForm.QUALIFICATION_CERTIFICATE[0].raw); formData.append(
"qualificationCertificateFiles",
data.fileForm.QUALIFICATION_CERTIFICATE[0].raw
);
if (!USER_ID) { if (!USER_ID) {
// if (data.allUser > data.USERS_NUM) { // if (data.allUser > data.USERS_NUM) {
// ElMessage.error(""); // ElMessage.error("");

View File

@ -273,12 +273,8 @@ import {
layoutFnGetAssignedWay, layoutFnGetAssignedWay,
layoutFnGetAssignedVehicleModel, layoutFnGetAssignedVehicleModel,
} from "@/assets/js/assigned_manage.js"; } from "@/assets/js/assigned_manage.js";
import { import { getFreightTrailerView } from "@/request/enterprise_management.js";
getFreightTrailerView, import { findByIdOperatingVehicleInfo } from "@/request/operation_vehicle.js";
} from "@/request/enterprise_management.js";
import {
findByIdOperatingVehicleInfo
} 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";
import useFormValidate from "@/assets/js/useFormValidate.js"; import useFormValidate from "@/assets/js/useFormValidate.js";
@ -288,7 +284,7 @@ import {
setAssignedManageEdit, setAssignedManageEdit,
layoutFnGetScrapVehicleType, layoutFnGetScrapVehicleType,
getAssignedOperationVehicleList, getAssignedOperationVehicleList,
getAssignedFreightTrailerList getAssignedFreightTrailerList,
} from "@/request/assigned_manage.js"; } from "@/request/assigned_manage.js";
import { setUploadImg } from "@/request/api.js"; import { setUploadImg } from "@/request/api.js";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";

View File

@ -1,108 +1,108 @@
<template> <template>
<layout-card> <layout-card>
<div id="printContainer"> <div id="printContainer">
<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.RECORD_NUMBER }} {{ info.RECORD_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="办理日期"> <el-descriptions-item label="办理日期">
{{ info.TRANSACTION_DATE }} {{ info.TRANSACTION_DATE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="登记人"> <el-descriptions-item label="登记人">
{{ info.REGISTRANT }} {{ info.REGISTRANT }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="过户类型"> <el-descriptions-item label="过户类型">
{{ info.ASSIGNED_TYPE }} {{ info.ASSIGNED_TYPE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车辆类型"> <el-descriptions-item label="车辆类型">
{{ info.VEHICLE_TYPE }} {{ info.VEHICLE_TYPE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车架号"> <el-descriptions-item label="车架号">
{{ info.FRAMES_NUMBER }} {{ info.FRAMES_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车辆类型"> <el-descriptions-item label="车辆类型">
{{ info.VEHICLE_TYPE }} {{ info.VEHICLE_TYPE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车辆品牌"> <el-descriptions-item label="车辆品牌">
{{ info.VEHICLE_BRAND }} {{ info.VEHICLE_BRAND }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车辆型号"> <el-descriptions-item label="车辆型号">
{{ info.VEHICLE_MODEL }} {{ info.VEHICLE_MODEL }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="发动机号"> <el-descriptions-item label="发动机号">
{{ info.ENGINE_NUMBER }} {{ info.ENGINE_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="动力类型"> <el-descriptions-item label="动力类型">
{{ info.POWER_TYPE }} {{ info.POWER_TYPE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="排放标准"> <el-descriptions-item label="排放标准">
{{ info.EMISSION_STANDARD }} {{ info.EMISSION_STANDARD }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<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.RAW_PLATE_NUMBER }} {{ info.RAW_PLATE_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="原车主业主"> <el-descriptions-item label="原车主业主">
{{ info.RAW_OWNERS }} {{ info.RAW_OWNERS }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="原联系电话"> <el-descriptions-item label="原联系电话">
{{ info.RAW_CONTACT_NUMBER }} {{ info.RAW_CONTACT_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="现车牌号"> <el-descriptions-item label="现车牌号">
{{ info.NOW_PLATE_NUMBER }} {{ info.NOW_PLATE_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="现车主业主"> <el-descriptions-item label="现车主业主">
{{ info.NOW_OWNERS }} {{ info.NOW_OWNERS }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="现联系电话"> <el-descriptions-item label="现联系电话">
{{ info.NOW_CONTACT_NUMBER }} {{ info.NOW_CONTACT_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="原营运证号"> <el-descriptions-item label="原营运证号">
{{ info.RAW_OPERATION_CERTIFICATE }} {{ info.RAW_OPERATION_CERTIFICATE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="现营运证号"> <el-descriptions-item label="现营运证号">
{{ info.NOW_OPERATION_CERTIFICATE }} {{ info.NOW_OPERATION_CERTIFICATE }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-descriptions border> <el-descriptions border>
<el-descriptions-item label="现营运证照片"> <el-descriptions-item label="现营运证照片">
<img <img
v-for="item in info.NOW_VEHICLE_OPERATION_CERTIFICATE" v-for="item in info.NOW_VEHICLE_OPERATION_CERTIFICATE"
:key="item.FILEPATH" :key="item.FILEPATH"
v-viewer v-viewer
:src="item.url" :src="item.url"
width="100" width="100"
height="100" height="100"
alt="" alt=""
class="ml-10" class="ml-10"
/> />
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="现行驶证照片"> <el-descriptions-item label="现行驶证照片">
<img <img
v-for="item in info.NOW_DRIVINGLICENSE_IMG" v-for="item in info.NOW_DRIVINGLICENSE_IMG"
:key="item.FILEPATH" :key="item.FILEPATH"
v-viewer v-viewer
:src="item.url" :src="item.url"
width="100" width="100"
height="100" height="100"
alt="" alt=""
class="ml-10" class="ml-10"
/> />
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-descriptions :column="1" border> <el-descriptions :column="1" border>
<el-descriptions-item label="过户资料"> <el-descriptions-item label="过户资料">
{{ info.ASSIGNED_MATERIAL }} {{ info.ASSIGNED_MATERIAL }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-descriptions :column="1" border> <el-descriptions :column="1" border>
<el-descriptions-item label="备注"> <el-descriptions-item label="备注">
{{ info.REMARK }} {{ info.REMARK }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
<div class="mt-10 tc"> <div class="mt-10 tc">
<el-button v-print="'#printContainer'" type="primary"></el-button> <el-button v-print="'#printContainer'" type="primary"></el-button>

View File

@ -161,7 +161,7 @@
:value="item.NUM" :value="item.NUM"
/> />
</el-select> </el-select>
<!-- <el-input <!-- <el-input
v-model.number="form.REMINDER_DAYS" v-model.number="form.REMINDER_DAYS"
maxlength="50" maxlength="50"
show-word-limit show-word-limit

View File

@ -187,7 +187,7 @@
:value="item.NUM" :value="item.NUM"
/> />
</el-select> </el-select>
<!-- <el-input <!-- <el-input
v-model.number="form.REMINDER_DAYS" v-model.number="form.REMINDER_DAYS"
maxlength="50" maxlength="50"
show-word-limit show-word-limit
@ -258,7 +258,10 @@ import {
setInspectAnnuallyEdit, setInspectAnnuallyEdit,
getTrailerList, getTrailerList,
} 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";
import { setUploadImg } from "@/request/api.js"; import { setUploadImg } from "@/request/api.js";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";

View File

@ -185,7 +185,7 @@
:value="item.NUM" :value="item.NUM"
/> />
</el-select> </el-select>
<!-- <el-input <!-- <el-input
v-model.number="form.REMINDER_DAYS" v-model.number="form.REMINDER_DAYS"
maxlength="50" maxlength="50"
show-word-limit show-word-limit
@ -256,7 +256,10 @@ import {
setInspectAnnuallyEdit, setInspectAnnuallyEdit,
getTrailerList, getTrailerList,
} 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";
import { setUploadImg } from "@/request/api.js"; import { setUploadImg } from "@/request/api.js";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";

View File

@ -30,8 +30,8 @@
<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="所属区域"> <el-descriptions-item label-class-name="width_200" label="所属区域">
{{ info.AREA }} {{ info.AREA }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-divider content-position="left">年检信息</el-divider> <el-divider content-position="left">年检信息</el-divider>
@ -48,10 +48,16 @@
<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="实收费用(元)"> <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="到期日期">

View File

@ -194,7 +194,10 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="提醒天数" prop="REMINDER_DAYS"> <el-form-item label="提醒天数" prop="REMINDER_DAYS">
<el-select v-model="form.REMINDER_DAYS" @change="getRemiderDate"> <el-select
v-model="form.REMINDER_DAYS"
@change="getRemiderDate"
>
<el-option <el-option
v-for="item in REMIND_DAYS" v-for="item in REMIND_DAYS"
:key="item.NAME" :key="item.NAME"
@ -202,7 +205,7 @@
:value="item.NUM" :value="item.NUM"
/> />
</el-select> </el-select>
<!-- <el-input <!-- <el-input
v-model.number="form.REMINDER_DAYS" v-model.number="form.REMINDER_DAYS"
maxlength="50" maxlength="50"
show-word-limit show-word-limit
@ -287,7 +290,8 @@ import {
} from "@/request/mechanical_files.js"; } from "@/request/mechanical_files.js";
import { import {
INSURANCEMENU, INSURANCEMENU,
OPERATING_VEHICLE_TYPE_LIST, REMIND_DAYS OPERATING_VEHICLE_TYPE_LIST,
REMIND_DAYS,
} from "@/assets/js/constant.js"; } from "@/assets/js/constant.js";
import { setUploadImg } from "@/request/api.js"; import { setUploadImg } from "@/request/api.js";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
@ -359,7 +363,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 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;
form.value.VEHICLE = ""; form.value.VEHICLE = "";

View File

@ -192,7 +192,7 @@
:value="item.NUM" :value="item.NUM"
/> />
</el-select> </el-select>
<!-- <el-input <!-- <el-input
v-model.number="form.REMINDER_DAYS" v-model.number="form.REMINDER_DAYS"
maxlength="50" maxlength="50"
show-word-limit show-word-limit
@ -274,7 +274,10 @@ import {
setInsureEdit, setInsureEdit,
getTrailerList, getTrailerList,
} 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 { layoutFnGetInsuranceCompany } from "@/assets/js/data_dictionary.js"; import { layoutFnGetInsuranceCompany } from "@/assets/js/data_dictionary.js";
import { setUploadImg } from "@/request/api.js"; import { setUploadImg } from "@/request/api.js";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";

View File

@ -17,7 +17,7 @@
<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="车辆型号">
@ -36,7 +36,7 @@
{{ 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="所属区域"> <el-descriptions-item label-class-name="width_200" label="所属区域">
{{ data.busInfo.COMPANY_AREA}} {{ data.busInfo.COMPANY_AREA }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-divider content-position="left">年检信息</el-divider> <el-divider content-position="left">年检信息</el-divider>
@ -72,10 +72,16 @@
<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

View File

@ -185,7 +185,7 @@
:value="item.NUM" :value="item.NUM"
/> />
</el-select> </el-select>
<!-- <el-input <!-- <el-input
v-model.number="form.REMINDER_DAYS" v-model.number="form.REMINDER_DAYS"
maxlength="50" maxlength="50"
show-word-limit show-word-limit

View File

@ -185,7 +185,7 @@
:value="item.NUM" :value="item.NUM"
/> />
</el-select> </el-select>
<!-- <el-input <!-- <el-input
v-model.number="form.REMINDER_DAYS" v-model.number="form.REMINDER_DAYS"
maxlength="50" maxlength="50"
show-word-limit show-word-limit

View File

@ -20,7 +20,7 @@
<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.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="车主业户">
@ -29,7 +29,7 @@
<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="所属区域"> <el-descriptions-item label-class-name="width_200" label="所属区域">
{{ data.busInfo.COMPANY_AREA }} {{ data.busInfo.COMPANY_AREA }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>

View File

@ -159,7 +159,7 @@
:value="item.NUM" :value="item.NUM"
/> />
</el-select> </el-select>
<!-- <el-input <!-- <el-input
v-model.number="form.REMINDER_DAYS" v-model.number="form.REMINDER_DAYS"
maxlength="50" maxlength="50"
show-word-limit show-word-limit
@ -231,7 +231,10 @@ import {
getTrailerList, getTrailerList,
getOperationTrailerList, 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";
import { setUploadImg } from "@/request/api.js"; import { setUploadImg } from "@/request/api.js";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";

View File

@ -159,7 +159,7 @@
:value="item.NUM" :value="item.NUM"
/> />
</el-select> </el-select>
<!-- <el-input <!-- <el-input
v-model.number="form.REMINDER_DAYS" v-model.number="form.REMINDER_DAYS"
maxlength="50" maxlength="50"
show-word-limit show-word-limit
@ -230,7 +230,10 @@ import {
setOperationsEdit, setOperationsEdit,
getTrailerList, getTrailerList,
} 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";
import { setUploadImg } from "@/request/api.js"; import { setUploadImg } from "@/request/api.js";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";

View File

@ -237,7 +237,6 @@ import {
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: {

View File

@ -194,12 +194,10 @@ import {
getScrapOperationVehicleList, getScrapOperationVehicleList,
getScrapFreightTrailerList, getScrapFreightTrailerList,
} from "@/request/scrap_manage.js"; } from "@/request/scrap_manage.js";
import { import { getFreightTrailerView } from "@/request/enterprise_management.js";
getFreightTrailerView,
} from "@/request/enterprise_management.js";
import { import {
getOperationVehicleInfo, getOperationVehicleInfo,
setOperationsScrapStatus 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";
@ -288,7 +286,6 @@ const fnEditVehicleModel = async () => {
} else if (form.value.SCRAP_VEHICLEMODEL === "货运挂车") { } else if (form.value.SCRAP_VEHICLEMODEL === "货运挂车") {
form.value.ALLVEHICLE = getAllFrailerList.varList; form.value.ALLVEHICLE = getAllFrailerList.varList;
form.value.FREIGHTVEHICLELIST = form.value.ALLVEHICLE; form.value.FREIGHTVEHICLELIST = form.value.ALLVEHICLE;
console.log();
} }
}; };
const info = ref({}); const info = ref({});
@ -300,7 +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}) 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;
@ -337,7 +334,7 @@ const fnGetVehicleInfo = async () => {
form.value.SCRAP_VEHICLE form.value.SCRAP_VEHICLE
) { ) {
form.value.FREIGHTTRAILER_ID = form.value.FREIGHTTRAILER_ID =
form.value.FREIGHTVEHICLELIST[i].FREIGHTTRAILER_ID form.value.FREIGHTVEHICLELIST[i].FREIGHTTRAILER_ID;
form.value.VEHICLE.VEHICLEOWNER = form.value.VEHICLE.VEHICLEOWNER =
form.value.FREIGHTVEHICLELIST[i].CAR_OWNERS; form.value.FREIGHTVEHICLELIST[i].CAR_OWNERS;
form.value.VEHICLE.VEHICLEOWNER_NUMBER = form.value.VEHICLE.VEHICLEOWNER_NUMBER =
@ -393,7 +390,6 @@ const fnSubmit = debounce(
1000, 1000,
async () => { async () => {
await useFormValidate(formRef); await useFormValidate(formRef);
console.log("form.value",form.value);
await setScrapManageAdd({ ...form.value }); await setScrapManageAdd({ ...form.value });
ElMessage.success("提交成功"); ElMessage.success("提交成功");
router.back(); router.back();

View File

@ -1,61 +1,61 @@
<template> <template>
<layout-card> <layout-card>
<div id="printContainer"> <div id="printContainer">
<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="车牌号">
{{ data.PLATE_NUMBER }} {{ data.PLATE_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车架号"> <el-descriptions-item label="车架号">
{{ data.FRAMES_NUMBER }} {{ data.FRAMES_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车主业主"> <el-descriptions-item label="车主业主">
{{ data.VEHICLEOWNER }} {{ data.VEHICLEOWNER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车主电话"> <el-descriptions-item label="车主电话">
{{ data.VEHICLEOWNER_NUMBER }} {{ data.VEHICLEOWNER_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<!-- <el-descriptions-item label="发动机号"> <!-- <el-descriptions-item label="发动机号">
{{ data.ENGINE_NUMBER }} {{ data.ENGINE_NUMBER }}
</el-descriptions-item>--> </el-descriptions-item>-->
<el-descriptions-item label="初登日期"> <el-descriptions-item label="初登日期">
{{ data.FIRSTSHOW_DATE }} {{ data.FIRSTSHOW_DATE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车辆品牌"> <el-descriptions-item label="车辆品牌">
{{ data.BRAND }} {{ data.BRAND }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车辆型号"> <el-descriptions-item label="车辆型号">
{{ data.VEHICLE_MODEL }} {{ data.VEHICLE_MODEL }}
</el-descriptions-item> </el-descriptions-item>
<!-- <el-descriptions-item label="动力类型"> <!-- <el-descriptions-item label="动力类型">
{{ data.POWER_TYPE }} {{ data.POWER_TYPE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="排放标准"> <el-descriptions-item label="排放标准">
{{ data.EMISSION_STANDARD }} {{ data.EMISSION_STANDARD }}
</el-descriptions-item>--> </el-descriptions-item>-->
</el-descriptions> </el-descriptions>
<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="登记编号">
{{ data.RECORD_NUMBER }} {{ data.RECORD_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="办理日期"> <el-descriptions-item label="办理日期">
{{ data.SCRAP_DATE }} {{ data.SCRAP_DATE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="登记人"> <el-descriptions-item label="登记人">
{{ data.REGISTRANT }} {{ data.REGISTRANT }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-descriptions :column="1" border> <el-descriptions :column="1" border>
<el-descriptions-item label="报废资料"> <el-descriptions-item label="报废资料">
{{ data.SCRAP_MATERIAL }} {{ data.SCRAP_MATERIAL }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-descriptions :column="1" border> <el-descriptions :column="1" border>
<el-descriptions-item label="备注"> <el-descriptions-item label="备注">
{{ data.REMARK }} {{ data.REMARK }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
<div class="mt-10 tc"> <div class="mt-10 tc">
<el-button v-print="'#printContainer'" type="primary"></el-button> <el-button v-print="'#printContainer'" type="primary"></el-button>

View File

@ -69,11 +69,7 @@
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="所属省份" prop="PROVINCE"> <el-form-item label="所属省份" prop="PROVINCE">
<el-input <el-input v-model="form.PROVINCE" placeholder="--" disabled />
v-model="form.PROVINCE"
placeholder="--"
disabled
/>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
@ -174,7 +170,7 @@
:value="item.NUM" :value="item.NUM"
/> />
</el-select> </el-select>
<!-- <el-input <!-- <el-input
v-model="form.REMINDER_DAY" v-model="form.REMINDER_DAY"
placeholder="请填写提醒天数" placeholder="请填写提醒天数"
@change="fnGetReminderData" @change="fnGetReminderData"
@ -239,7 +235,10 @@ import LayoutUpload from "@/components/upload/index.vue";
import { debounce } from "throttle-debounce"; import { debounce } from "throttle-debounce";
import useFormValidate from "@/assets/js/useFormValidate.js"; import useFormValidate from "@/assets/js/useFormValidate.js";
import { setTaxationManageAdd } from "@/request/taxation_manage.js"; import { setTaxationManageAdd } from "@/request/taxation_manage.js";
import { getFreightTrailerView, getChoiceTrailerList } from "@/request/enterprise_management.js"; import {
getFreightTrailerView,
getChoiceTrailerList,
} from "@/request/enterprise_management.js";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import { addingPrefixToFile } from "@/assets/js/utils.js"; import { addingPrefixToFile } from "@/assets/js/utils.js";
@ -281,7 +280,7 @@ const rules = {
], ],
FREIGHTTRAILER_ID: [ FREIGHTTRAILER_ID: [
{ required: true, message: "挂车车辆不能为空", trigger: "change" }, { required: true, message: "挂车车辆不能为空", trigger: "change" },
] ],
}; };
const formRef = ref(null); const formRef = ref(null);
const form = ref({ const form = ref({
@ -322,11 +321,19 @@ const form = ref({
DRIVING_LICENSE_IMG: [], DRIVING_LICENSE_IMG: [],
ALLTRAILERINFO: [], ALLTRAILERINFO: [],
TAXATIONLISTTRAILER: [], TAXATIONLISTTRAILER: [],
TRAILER: [] TRAILER: [],
}); });
const fnGetExpireDate = async () => { const fnGetExpireDate = async () => {
if(form.value.TRANSACTION_DATA !== '' && form.value.TAXESDUES_PERIOD !== ''){ if (
const TAXESDUES_PERIOD = Number(form.value.TAXESDUES_PERIOD.substring(0,form.value.TAXESDUES_PERIOD.indexOf("个"))); form.value.TRANSACTION_DATA !== "" &&
form.value.TAXESDUES_PERIOD !== ""
) {
const TAXESDUES_PERIOD = Number(
form.value.TAXESDUES_PERIOD.substring(
0,
form.value.TAXESDUES_PERIOD.indexOf("个")
)
);
const date = new Date(form.value.TRANSACTION_DATA); const date = new Date(form.value.TRANSACTION_DATA);
date.setMonth(date.getMonth() + TAXESDUES_PERIOD); date.setMonth(date.getMonth() + TAXESDUES_PERIOD);
const year = date.getFullYear(); const year = date.getFullYear();
@ -335,14 +342,18 @@ 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) { if (form.value.TRANSACTION_DATA === null) {
form.value.EXPIRE_DATE = null form.value.EXPIRE_DATE = null;
} }
} }
fnGetReminderData() fnGetReminderData();
}; };
const fnGetReminderData = async () => { const fnGetReminderData = async () => {
if(form.value.TRANSACTION_DATA !== '' && form.value.TAXESDUES_PERIOD !== '' && form.value.REMINDER_DAY !== '') { if (
form.value.TRANSACTION_DATA !== "" &&
form.value.TAXESDUES_PERIOD !== "" &&
form.value.REMINDER_DAY !== ""
) {
const REMINDER_DAY = Number(form.value.REMINDER_DAY); const REMINDER_DAY = Number(form.value.REMINDER_DAY);
const date = new Date(form.value.EXPIRE_DATE); const date = new Date(form.value.EXPIRE_DATE);
date.setDate(date.getDate() - REMINDER_DAY); date.setDate(date.getDate() - REMINDER_DAY);
@ -352,8 +363,8 @@ 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) { if (form.value.TRANSACTION_DATA === null) {
form.value.REMINDER_DATA = null form.value.REMINDER_DATA = null;
} }
} }
}; };
@ -361,9 +372,9 @@ const fnGetTrailerInfo = async () => {
const FREIGHTTRAILER_ID = form.value.FREIGHTTRAILER_ID; const FREIGHTTRAILER_ID = form.value.FREIGHTTRAILER_ID;
form.value.FREIGHTTRAILER_ID = FREIGHTTRAILER_ID; form.value.FREIGHTTRAILER_ID = FREIGHTTRAILER_ID;
const resData = await getFreightTrailerView({ FREIGHTTRAILER_ID }); const resData = await getFreightTrailerView({ FREIGHTTRAILER_ID });
form.value.PROVINCE = resData.pd.PROVINCE form.value.PROVINCE = resData.pd.PROVINCE;
form.value.CITY = resData.pd.CITY form.value.CITY = resData.pd.CITY;
form.value.COUNTY = resData.pd.COUNTY form.value.COUNTY = resData.pd.COUNTY;
form.value.PLATE_NUMBER = resData.pd.PLATE_NUMBER; form.value.PLATE_NUMBER = resData.pd.PLATE_NUMBER;
form.value.FRAMES_NUMBER = resData.pd.VIN; form.value.FRAMES_NUMBER = resData.pd.VIN;
form.value.VEHICLE_TYPE = resData.pd.TRAILER_TYPE; form.value.VEHICLE_TYPE = resData.pd.TRAILER_TYPE;

View File

@ -129,8 +129,9 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="税费周期" prop="TAXESDUES_PERIOD"> <el-form-item label="税费周期" prop="TAXESDUES_PERIOD">
<el-select v-model="form.TAXESDUES_PERIOD" <el-select
@change="fnGetExpireDate" v-model="form.TAXESDUES_PERIOD"
@change="fnGetExpireDate"
> >
<el-option <el-option
v-for="item in TAXES_PERIOD" v-for="item in TAXES_PERIOD"
@ -164,7 +165,7 @@
:value="item.NUM" :value="item.NUM"
/> />
</el-select> </el-select>
<!-- <el-input <!-- <el-input
v-model="form.REMINDER_DAY" v-model="form.REMINDER_DAY"
placeholder="请填写提醒天数" placeholder="请填写提醒天数"
@change="fnGetReminderData" @change="fnGetReminderData"
@ -308,8 +309,16 @@ const form = ref({
}); });
const fnGetExpireDate = async () => { const fnGetExpireDate = async () => {
if(form.value.TRANSACTION_DATA !== '' && form.value.TAXESDUES_PERIOD !== ''){ if (
const TAXESDUES_PERIOD = Number(form.value.TAXESDUES_PERIOD.substring(0,form.value.TAXESDUES_PERIOD.indexOf("个"))); form.value.TRANSACTION_DATA !== "" &&
form.value.TAXESDUES_PERIOD !== ""
) {
const TAXESDUES_PERIOD = Number(
form.value.TAXESDUES_PERIOD.substring(
0,
form.value.TAXESDUES_PERIOD.indexOf("个")
)
);
const date = new Date(form.value.TRANSACTION_DATA); const date = new Date(form.value.TRANSACTION_DATA);
date.setMonth(date.getMonth() + TAXESDUES_PERIOD); date.setMonth(date.getMonth() + TAXESDUES_PERIOD);
const year = date.getFullYear(); const year = date.getFullYear();
@ -319,10 +328,10 @@ const fnGetExpireDate = async () => {
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;
} }
fnGetReminderData() fnGetReminderData();
}; };
const fnGetReminderData = async () => { const fnGetReminderData = async () => {
if(form.value.REMINDER_DAY !== '') { if (form.value.REMINDER_DAY !== "") {
const REMINDER_DAY = Number(form.value.REMINDER_DAY); const REMINDER_DAY = Number(form.value.REMINDER_DAY);
const date = new Date(form.value.EXPIRE_DATE); const date = new Date(form.value.EXPIRE_DATE);
date.setDate(date.getDate() - REMINDER_DAY); date.setDate(date.getDate() - REMINDER_DAY);
@ -333,7 +342,6 @@ const fnGetReminderData = async () => {
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;
} }
}; };
fnGetReminderData(); fnGetReminderData();

View File

@ -1,66 +1,66 @@
<template> <template>
<layout-card> <layout-card>
<div id="printContainer"> <div id="printContainer">
<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="登记编号">
{{ data.RECORD_NUMBER }} {{ data.RECORD_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车牌号"> <el-descriptions-item label="车牌号">
{{ data.PLATE_NUMBER }} {{ data.PLATE_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车架号"> <el-descriptions-item label="车架号">
{{ data.FRAMES_NUMBER }} {{ data.FRAMES_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车辆类型"> <el-descriptions-item label="车辆类型">
{{ data.VEHICLE_TYPE }} {{ data.VEHICLE_TYPE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="车主业主"> <el-descriptions-item label="车主业主">
{{ data.VEHICLEOWNER }} {{ data.VEHICLEOWNER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="联系电话"> <el-descriptions-item label="联系电话">
{{ data.CONTACT_NUMBER }} {{ data.CONTACT_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="初登日期"> <el-descriptions-item label="初登日期">
{{ data.FIRSTSHOW_DATE }} {{ data.FIRSTSHOW_DATE }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<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="登记人">
{{ data.REGISTRANT }} {{ data.REGISTRANT }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="办理日期"> <el-descriptions-item label="办理日期">
{{ data.TRANSACTION_DATA }} {{ data.TRANSACTION_DATA }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="税费周期"> <el-descriptions-item label="税费周期">
{{ data.TAXESDUES_PERIOD }} {{ data.TAXESDUES_PERIOD }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="到期日期"> <el-descriptions-item label="到期日期">
{{ data.EXPIRE_DATE }} {{ data.EXPIRE_DATE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="提醒天数"> <el-descriptions-item label="提醒天数">
{{ data.REMINDER_DAY }} {{ data.REMINDER_DAY }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="提醒日期"> <el-descriptions-item label="提醒日期">
{{ data.REMINDER_DATA }} {{ data.REMINDER_DATA }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="提醒状态"> <el-descriptions-item label="提醒状态">
<span v-if="data.REMINDER_STATUS === '0'"></span> <span v-if="data.REMINDER_STATUS === '0'"></span>
<span v-else-if="data.REMINDER_STATUS === '1'">关闭</span> <span v-else-if="data.REMINDER_STATUS === '1'">关闭</span>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-descriptions :column="1" border> <el-descriptions :column="1" border>
<el-descriptions-item label="税费资料"> <el-descriptions-item label="税费资料">
{{ data.TAXESDUES_MATERIAL }} {{ data.TAXESDUES_MATERIAL }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-descriptions :column="1" border> <el-descriptions :column="1" border>
<el-descriptions-item label="备注"> <el-descriptions-item label="备注">
{{ data.REMARK }} {{ data.REMARK }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
<div class="mt-10 tc"> <div class="mt-10 tc">
<el-button v-print="'#printContainer'" type="primary"></el-button> <el-button v-print="'#printContainer'" type="primary"></el-button>

View File

@ -30,6 +30,7 @@
<el-input <el-input
v-model="form.WATCH_TELEPHONE" v-model="form.WATCH_TELEPHONE"
placeholder="请输入值班座机" placeholder="请输入值班座机"
maxlength="20"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -92,13 +93,13 @@ 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" }, /* { required: true, message: "", trigger: "blur" },
{ min: 11, max: 11, message: "请输入座机号码", trigger: "blur" },
{ {
pattern: pattern: /^(\d{3,4}-)?\d{7,8}$/,
/^(\d{3,4}-)?\d{7,8}$/,
message: "请输入正确的座机号码", message: "请输入正确的座机号码",
}, }, */
], ],
WATCH_PHONE: [ WATCH_PHONE: [
{ required: true, message: "请输入", trigger: "blur" }, { required: true, message: "请输入", trigger: "blur" },

View File

@ -68,7 +68,7 @@
import { ref } from "vue"; import { ref } from "vue";
import { import {
setEnterpriseSafetyProductEdit, setEnterpriseSafetyProductEdit,
getEnterpriseSafetyProductEdit getEnterpriseSafetyProductEdit,
} 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";
@ -90,8 +90,7 @@ const rules = {
{ 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}$/,
/^(\d{3,4}-)?\d{7,8}$/,
message: "请输入正确的座机号码", message: "请输入正确的座机号码",
}, },
], ],

View File

@ -1,53 +1,53 @@
<template> <template>
<layout-card> <layout-card>
<div id="printContainer"> <div id="printContainer">
<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 }} {{ info.FACILITY_NAME }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="设施编号"> <el-descriptions-item label="设施编号">
{{ info.FACILITY_NUMBER }} {{ info.FACILITY_NUMBER }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="设施单位"> <el-descriptions-item label="设施单位">
{{ info.FACILITY_UNIT }} {{ info.FACILITY_UNIT }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="设施数量"> <el-descriptions-item label="设施数量">
{{ info.FACILITY_COUNT }} {{ info.FACILITY_COUNT }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="设施位置"> <el-descriptions-item label="设施位置">
{{ info.FACILITY_LOCALTION }} {{ info.FACILITY_LOCALTION }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="设施负责人"> <el-descriptions-item label="设施负责人">
{{ info.FACILITY_PRINCIPAL }} {{ info.FACILITY_PRINCIPAL }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="登记时间"> <el-descriptions-item label="登记时间">
{{ info.REGISTRATION_TIME }} {{ info.REGISTRATION_TIME }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="备注"> <el-descriptions-item label="备注">
{{ info.FACILITY_REMARK }} {{ info.FACILITY_REMARK }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="设备设施"> <el-descriptions-item label="设备设施">
<img <img
v-for="item in info.EQUIPMENT_FACILITY" v-for="item in info.EQUIPMENT_FACILITY"
:key="item.FILEPATH" :key="item.FILEPATH"
v-viewer v-viewer
:src="item.url" :src="item.url"
width="100" width="100"
height="100" height="100"
alt="" alt=""
class="ml-10" 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" :show-pagination="false"> <layout-table :data="list" :show-pagination="false">
<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="保养情况" />
<el-table-column prop="MAINTAIN_PERSON" label="保养人" /> <el-table-column prop="MAINTAIN_PERSON" label="保养人" />
<el-table-column prop="REMARK" label="备注" /> <el-table-column prop="REMARK" label="备注" />
</layout-table> </layout-table>
</div> </div>
<div class="mt-10 tc"> <div class="mt-10 tc">
<el-button v-print="'#printContainer'" type="primary"></el-button> <el-button v-print="'#printContainer'" type="primary"></el-button>
@ -74,9 +74,7 @@ const getData = async () => {
PRODUCTIONFACILITY_ID, PRODUCTIONFACILITY_ID,
}); });
info.value = resData.pd; info.value = resData.pd;
info.value.EQUIPMENT_FACILITY = addingPrefixToFile( info.value.EQUIPMENT_FACILITY = addingPrefixToFile(resData.equipmentFacility);
resData.equipmentFacility
);
}; };
getData(); getData();
const { list } = useListData(getMaintainFindProductionEquipmentFacilityId, { const { list } = useListData(getMaintainFindProductionEquipmentFacilityId, {

View File

@ -117,7 +117,6 @@ import { useRouter, useRoute } from "vue-router";
import { import {
addViolationRegistrationView, addViolationRegistrationView,
editViolationRegistration, editViolationRegistration,
infoViolationRegistration,
} from "@/request/violation_registration.js"; } from "@/request/violation_registration.js";
const formRef = ref(null); const formRef = ref(null);
@ -149,9 +148,9 @@ const registrationId = ref("");
onMounted(async () => { onMounted(async () => {
isEditMode.value = route.query.mode === "edit"; isEditMode.value = route.query.mode === "edit";
registrationId.value = route.query.REGISTRATION_ID || ""; registrationId.value = route.query.REGISTRATION_ID || "";
const resData = await infoViolationRegistration({ /* const resData = await infoViolationRegistration({
REGISTRATION_ID: registrationId.value, REGISTRATION_ID: registrationId.value,
}); }); */
}); });
const router = useRouter(); const router = useRouter();

View File

@ -114,7 +114,7 @@ import useFormValidate from "@/assets/js/useFormValidate.js";
import { useRoute, useRouter } from "vue-router"; import { useRoute, useRouter } from "vue-router";
import { import {
editViolationRegistration, editViolationRegistration,
infoViolationRegistration infoViolationRegistration,
} from "@/request/violation_registration.js"; } from "@/request/violation_registration.js";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
@ -171,9 +171,9 @@ const data = reactive({
const fnGetData = async () => { const fnGetData = async () => {
if (!REGISTRATION_ID) return; if (!REGISTRATION_ID) return;
const resData = await infoViolationRegistration({ REGISTRATION_ID }); const resData = await infoViolationRegistration({ REGISTRATION_ID });
data.form = resData.pd data.form = resData.pd;
}; };
fnGetData() fnGetData();
const fnSubmit = async () => { const fnSubmit = async () => {
await useFormValidate(formRef); await useFormValidate(formRef);
@ -183,7 +183,7 @@ const fnSubmit = async () => {
const value = rawForm[key]; const value = rawForm[key];
formData.append(key, value); formData.append(key, value);
}); });
await editViolationRegistration(data.form) await editViolationRegistration(data.form);
ElMessage.success("编辑成功"); ElMessage.success("编辑成功");
router.back(); router.back();
}; };