diff --git a/.env b/.env index 2403b03..6862a98 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ -VITE_BASE_URL=http://192.168.0.55:8093/ +VITE_BASE_URL=http://192.168.0.49:8093/ VITE_PROXY=/api/ VITE_FILE_URL=https://file.zcloudchina.com/YTHFile VITE_TEMPLATE_URL=https://qaaq.qhdsafety.com/file/ diff --git a/.env.production b/.env.production index e69de29..fdbe314 100644 --- a/.env.production +++ b/.env.production @@ -0,0 +1,7 @@ +VITE_BASE_URL=http://192.168.0.31:7082/integrated_traffic/ +VITE_PROXY=/api/ +VITE_FILE_URL=https://file.zcloudchina.com/YTHFile +VITE_TEMPLATE_URL=https://qaaq.qhdsafety.com/file/ +VITE_ON_LINE_WEB_SOCKET_URL=wss://qaaq.qhdsafety.com/zxwebsocket/ +VITE_LEARNING_WEB_SOCKET_URL=wss://qaaq.qhdsafety.com/websocket/ + diff --git a/src/assets/js/constant.js b/src/assets/js/constant.js index 74e778e..b406422 100644 --- a/src/assets/js/constant.js +++ b/src/assets/js/constant.js @@ -49,6 +49,24 @@ export const LOCATIONTYPEMENU = [ { id: "目的地", name: "2" }, ]; +export const PENALTYMETHODMENU = [ + { id: "罚款", name: "1" }, + { id: "罚钱", name: "2" }, + { id: "赔礼道歉", name: "3" }, +]; + +export const EDUCATIONALMENU = [ + { id: "专科", name: "1" }, + { id: "本科", name: "2" }, + { id: "博士", name: "3" }, +]; + +export const ACCIDENTNATUREMENU = [ + { id: "火灾", name: "1" }, + { id: "车祸", name: "2" }, + { id: "天灾", name: "3" }, +]; + export const PRINT_STYLE = ' + diff --git a/src/views/enterprise_management/basics_info_management/freight_trailer/components/export_excel.vue b/src/views/enterprise_management/basics_info_management/freight_trailer/components/export_excel.vue index fcf3b1a..fc45a92 100644 --- a/src/views/enterprise_management/basics_info_management/freight_trailer/components/export_excel.vue +++ b/src/views/enterprise_management/basics_info_management/freight_trailer/components/export_excel.vue @@ -53,7 +53,7 @@ const props = defineProps({ const emits = defineEmits(["update:visible"]); const visible = useVModel(props, "visible", emits); const options = [ - "自编号", + "编号", "车牌号", "车架号", "挂车类型", diff --git a/src/views/enterprise_management/basics_info_management/freight_trailer/edit.vue b/src/views/enterprise_management/basics_info_management/freight_trailer/edit.vue index 0c151ce..380dedb 100644 --- a/src/views/enterprise_management/basics_info_management/freight_trailer/edit.vue +++ b/src/views/enterprise_management/basics_info_management/freight_trailer/edit.vue @@ -6,7 +6,7 @@ 基本信息 - + diff --git a/src/views/enterprise_management/basics_info_management/freight_trailer/index.vue b/src/views/enterprise_management/basics_info_management/freight_trailer/index.vue index 3711e13..b66a80a 100644 --- a/src/views/enterprise_management/basics_info_management/freight_trailer/index.vue +++ b/src/views/enterprise_management/basics_info_management/freight_trailer/index.vue @@ -7,24 +7,24 @@ @submit.prevent="fnResetPaginationTransfer" > - + - + - + - + - + @@ -35,9 +35,12 @@ - + - 导出 + + 导入 + + 导出 @@ -57,8 +60,8 @@ {{ serialNumber(pagination, $index) }} - - + + @@ -67,7 +70,7 @@ label="初登日期" width="150" /> - + @@ -139,17 +137,9 @@ import { getFreightTrailerList, setFreightTrailerDelete, } from "@/request/enterprise_management.js"; -import ExportExcel from "./components/export_excel.vue"; -import { reactive } from "vue"; import { debounce } from "throttle-debounce"; import { ElMessageBox, ElMessage } from "element-plus"; const router = useRouter(); -const data = reactive({ - exportExcelDialog: { - visible: false, - ids: [], - }, -}); const { list, pagination, searchForm, fnGetData, fnResetPagination, tableRef } = useListData(getFreightTrailerList); const fnGetDataTransfer = () => { @@ -168,6 +158,22 @@ const fnResetPaginationTransfer = () => { DEPARTMENT_NAME: searchForm.value.DEPARTMENT_NAME, }); }; +const fnExport = async () => { + const selectionData = tableRef.value.getSelectionRows(); + if (selectionData.length === 0) { + ElMessage.warning("请选择需要导出至excel报表的记录信息"); + return; + } + await ElMessageBox.confirm("确定要导出到excel吗?", { type: "warning" }); + const DATA_IDS = selectionData.map((item) => item.RISKUNIT_ID).join(","); + window.location.href = + import.meta.env[import.meta.env.DEV ? "VITE_PROXY" : "VITE_BASE_URL"] + + "/freightTrailer/excel?" + + "&KEYWORDS=" + + (searchForm.value.KEYWORDS || "") + + "&DATA_IDS=" + + DATA_IDS; +}; const fnDelete = debounce( 1000, async (FREIGHTTRAILER_ID) => { @@ -179,13 +185,6 @@ const fnDelete = debounce( { atBegin: true } ); const buttonJurisdiction = await useButtonJurisdiction("hidden"); -const fnExport = () => { - const selectionData = tableRef.value.getSelectionRows(); - data.exportExcelDialog.ids = selectionData.map( - (item) => item.FREIGHTTRAILER_ID - ); - data.exportExcelDialog.visible = true; -}; diff --git a/src/views/enterprise_management/basics_info_management/freight_trailer/view.vue b/src/views/enterprise_management/basics_info_management/freight_trailer/view.vue index 1a56574..2d125ed 100644 --- a/src/views/enterprise_management/basics_info_management/freight_trailer/view.vue +++ b/src/views/enterprise_management/basics_info_management/freight_trailer/view.vue @@ -3,7 +3,7 @@
基本信息 - + {{ info.NUM }} @@ -37,9 +37,9 @@ {{ info.CONTACTS }} - - {{ info.CAR_OWNERS_TEL }} - + + + {{ info.CONTACT_PHONE }} diff --git a/src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue b/src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue index 7744d9c..d3b1e65 100644 --- a/src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue +++ b/src/views/enterprise_management/basics_info_management/operation_vehicle/edit.vue @@ -7,7 +7,7 @@ diff --git a/src/views/enterprise_management/user_practitioner/index.vue b/src/views/enterprise_management/user_practitioner/index.vue index 58bfbff..429f45f 100644 --- a/src/views/enterprise_management/user_practitioner/index.vue +++ b/src/views/enterprise_management/user_practitioner/index.vue @@ -16,12 +16,13 @@ - + - {{ operatingCompany }} + {{ form.OPERATINGCOMPANY }} - + diff --git a/src/views/mechanical_files/beidou/components/export_excel.vue b/src/views/mechanical_files/beidou/components/export_excel.vue index fcf3b1a..fc45a92 100644 --- a/src/views/mechanical_files/beidou/components/export_excel.vue +++ b/src/views/mechanical_files/beidou/components/export_excel.vue @@ -53,7 +53,7 @@ const props = defineProps({ const emits = defineEmits(["update:visible"]); const visible = useVModel(props, "visible", emits); const options = [ - "自编号", + "编号", "车牌号", "车架号", "挂车类型", diff --git a/src/views/mechanical_files/beidou/index.vue b/src/views/mechanical_files/beidou/index.vue index ccd2c40..02a0bce 100644 --- a/src/views/mechanical_files/beidou/index.vue +++ b/src/views/mechanical_files/beidou/index.vue @@ -101,15 +101,15 @@ diff --git a/src/views/mechanical_files/beidou/view.vue b/src/views/mechanical_files/beidou/view.vue index ebfcb77..7945406 100644 --- a/src/views/mechanical_files/beidou/view.vue +++ b/src/views/mechanical_files/beidou/view.vue @@ -81,6 +81,22 @@ class="ml-10" /> + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 年检信息 diff --git a/src/views/mechanical_files/inspect_annually/components/export_excel.vue b/src/views/mechanical_files/inspect_annually/components/export_excel.vue index fcf3b1a..fc45a92 100644 --- a/src/views/mechanical_files/inspect_annually/components/export_excel.vue +++ b/src/views/mechanical_files/inspect_annually/components/export_excel.vue @@ -53,7 +53,7 @@ const props = defineProps({ const emits = defineEmits(["update:visible"]); const visible = useVModel(props, "visible", emits); const options = [ - "自编号", + "编号", "车牌号", "车架号", "挂车类型", diff --git a/src/views/mechanical_files/inspect_annually/index.vue b/src/views/mechanical_files/inspect_annually/index.vue index 2f7e56e..285e8c4 100644 --- a/src/views/mechanical_files/inspect_annually/index.vue +++ b/src/views/mechanical_files/inspect_annually/index.vue @@ -98,47 +98,46 @@ {{ serialNumber(pagination, $index) }} - - + + - - - - - - - + + + + + + + - + - + - - - - + + + + @@ -261,6 +264,18 @@ const fnResetPaginationTransfer = () => { REMINDER_STATUS: searchForm.value.REMINDER_STATUS, }); }; +// 使用一个对象来跟踪每一行的展开状态 +const expandedRows = reactive({}); // 初始化一个空对象 + +// 定义一个函数来切换展开状态 +function toggleExpand(rowId) { + if (expandedRows[rowId] === undefined) { + expandedRows[rowId] = true; // 如果之前没有状态,默认设置为展开 + } else { + expandedRows[rowId] = !expandedRows[rowId]; // 切换状态 + } +} + const fnDelete = debounce( 1000, async (INSPECTANNUALLY_ID) => { diff --git a/src/views/mechanical_files/insure/add.vue b/src/views/mechanical_files/insure/add.vue index 24d26b4..60c170a 100644 --- a/src/views/mechanical_files/insure/add.vue +++ b/src/views/mechanical_files/insure/add.vue @@ -43,213 +43,223 @@ /> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 投保信息 - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + 投保信息 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + +
保存
@@ -266,8 +276,10 @@ import { setInsureEdit, getTrailerList, } from "@/request/mechanical_files.js"; -import { OPERATING_VEHICLE_TYPE_LIST } from "@/assets/js/constant.js"; -import { layoutFnGetInsuranceCompany } from "@/assets/js/data_dictionary.js"; +import { + INSURANCEMENU, + OPERATING_VEHICLE_TYPE_LIST, +} from "@/assets/js/constant.js"; import { setUploadImg } from "@/request/api.js"; import { ElMessage } from "element-plus"; import { useRoute, useRouter } from "vue-router"; @@ -280,8 +292,6 @@ import { const route = useRoute(); const router = useRouter(); const INSURE_ID = route.query.INSURE_ID; -const insuranceCompanyList = await layoutFnGetInsuranceCompany(); -console.log(insuranceCompanyList, "11111111111111111111111111111111111"); const formRef = ref(null); const form = ref({ VEHICLE_MODEL: "", diff --git a/src/views/mechanical_files/insure/components/export_excel.vue b/src/views/mechanical_files/insure/components/export_excel.vue index fcf3b1a..fc45a92 100644 --- a/src/views/mechanical_files/insure/components/export_excel.vue +++ b/src/views/mechanical_files/insure/components/export_excel.vue @@ -53,7 +53,7 @@ const props = defineProps({ const emits = defineEmits(["update:visible"]); const visible = useVModel(props, "visible", emits); const options = [ - "自编号", + "编号", "车牌号", "车架号", "挂车类型", diff --git a/src/views/mechanical_files/insure/index.vue b/src/views/mechanical_files/insure/index.vue index 067ab47..c5129a5 100644 --- a/src/views/mechanical_files/insure/index.vue +++ b/src/views/mechanical_files/insure/index.vue @@ -137,8 +137,8 @@ diff --git a/src/views/mechanical_files/maintenance/components/export_excel.vue b/src/views/mechanical_files/maintenance/components/export_excel.vue index fcf3b1a..fc45a92 100644 --- a/src/views/mechanical_files/maintenance/components/export_excel.vue +++ b/src/views/mechanical_files/maintenance/components/export_excel.vue @@ -53,7 +53,7 @@ const props = defineProps({ const emits = defineEmits(["update:visible"]); const visible = useVModel(props, "visible", emits); const options = [ - "自编号", + "编号", "车牌号", "车架号", "挂车类型", diff --git a/src/views/mechanical_files/maintenance/index.vue b/src/views/mechanical_files/maintenance/index.vue index eca81c4..8a3a29c 100644 --- a/src/views/mechanical_files/maintenance/index.vue +++ b/src/views/mechanical_files/maintenance/index.vue @@ -108,15 +108,15 @@ diff --git a/src/views/mechanical_files/operations/components/export_excel.vue b/src/views/mechanical_files/operations/components/export_excel.vue index fcf3b1a..fc45a92 100644 --- a/src/views/mechanical_files/operations/components/export_excel.vue +++ b/src/views/mechanical_files/operations/components/export_excel.vue @@ -53,7 +53,7 @@ const props = defineProps({ const emits = defineEmits(["update:visible"]); const visible = useVModel(props, "visible", emits); const options = [ - "自编号", + "编号", "车牌号", "车架号", "挂车类型", diff --git a/src/views/mechanical_files/operations/index.vue b/src/views/mechanical_files/operations/index.vue index 9554ea0..8e25983 100644 --- a/src/views/mechanical_files/operations/index.vue +++ b/src/views/mechanical_files/operations/index.vue @@ -98,7 +98,7 @@ {{ serialNumber(pagination, $index) }} - +