forked from integrated_whb/integrated_whb_vue
代码格式化
parent
3420e2b965
commit
b622567973
|
@ -186,7 +186,6 @@ const data = reactive({
|
||||||
const fnGetData = async () => {
|
const fnGetData = async () => {
|
||||||
const resData = await getSafetyDrivingLogView({ WAYBILLREGISTRATION_ID });
|
const resData = await getSafetyDrivingLogView({ WAYBILLREGISTRATION_ID });
|
||||||
data.info = resData.pd;
|
data.info = resData.pd;
|
||||||
console.log(data.info);
|
|
||||||
data.commitmentList = resData.commitmentList;
|
data.commitmentList = resData.commitmentList;
|
||||||
};
|
};
|
||||||
fnGetData();
|
fnGetData();
|
||||||
|
|
|
@ -410,9 +410,7 @@ const rules = {
|
||||||
PRACTITIONER: [
|
PRACTITIONER: [
|
||||||
{ required: true, message: "请选择从业人员", trigger: "change" },
|
{ required: true, message: "请选择从业人员", trigger: "change" },
|
||||||
],
|
],
|
||||||
DEPARTMENT_ID: [
|
DEPARTMENT_ID: [{ required: true, message: "请选择部门", trigger: "change" }],
|
||||||
{ required: true, message: "请选择部门", trigger: "change"}
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
|
@ -504,7 +502,9 @@ const changeCONFIRMINGPERSON = (contactPersonId) => {
|
||||||
const fnGetUnitsList = async () => {
|
const fnGetUnitsList = async () => {
|
||||||
const resData = await getUserPersonTypeListAll({});
|
const resData = await getUserPersonTypeListAll({});
|
||||||
data.userTypeList = resData.userList;
|
data.userTypeList = resData.userList;
|
||||||
data.userTypeList = data.userTypeList.filter(( item ) => item.APPLY_STATUS === '1')
|
data.userTypeList = data.userTypeList.filter(
|
||||||
|
(item) => item.APPLY_STATUS === "1"
|
||||||
|
);
|
||||||
};
|
};
|
||||||
fnGetUnitsList();
|
fnGetUnitsList();
|
||||||
|
|
||||||
|
|
|
@ -177,7 +177,8 @@
|
||||||
<layout-import-file
|
<layout-import-file
|
||||||
v-model:visible="data.importDialogVisible"
|
v-model:visible="data.importDialogVisible"
|
||||||
template-url="/template/truckExcelTemplate.xls"
|
template-url="/template/truckExcelTemplate.xls"
|
||||||
@submit="fnSubmitImport"></layout-import-file>
|
@submit="fnSubmitImport"
|
||||||
|
></layout-import-file>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -143,7 +143,11 @@
|
||||||
{{ data.drivingLicence.ID_ORGAN }}
|
{{ data.drivingLicence.ID_ORGAN }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="有效期">
|
<el-descriptions-item label="有效期">
|
||||||
{{ data.drivingLicence.ID_VALIDITY_START + "至" + data.drivingLicence.ID_VALIDITY_END }}
|
{{
|
||||||
|
data.drivingLicence.ID_VALIDITY_START +
|
||||||
|
"至" +
|
||||||
|
data.drivingLicence.ID_VALIDITY_END
|
||||||
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
<el-divider content-position="left">道路运输从业资格证</el-divider>
|
<el-divider content-position="left">道路运输从业资格证</el-divider>
|
||||||
|
@ -168,7 +172,11 @@
|
||||||
{{ data.qualificationCertificate.ID_ORGAN }}
|
{{ data.qualificationCertificate.ID_ORGAN }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="有效期">
|
<el-descriptions-item label="有效期">
|
||||||
{{ data.qualificationCertificate.ID_VALIDITY_START + "至" + data.qualificationCertificate.ID_VALIDITY_END }}
|
{{
|
||||||
|
data.qualificationCertificate.ID_VALIDITY_START +
|
||||||
|
"至" +
|
||||||
|
data.qualificationCertificate.ID_VALIDITY_END
|
||||||
|
}}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
</el-descriptions>
|
</el-descriptions>
|
||||||
<!-- <div v-for="(item, index) in data.certificateList" :key="index">
|
<!-- <div v-for="(item, index) in data.certificateList" :key="index">
|
||||||
|
@ -291,7 +299,7 @@ const data = reactive({
|
||||||
dispose: "",
|
dispose: "",
|
||||||
idCard: [],
|
idCard: [],
|
||||||
drivingLicence: [],
|
drivingLicence: [],
|
||||||
qualificationCertificate: []
|
qualificationCertificate: [],
|
||||||
});
|
});
|
||||||
const fnGetData = async () => {
|
const fnGetData = async () => {
|
||||||
if (!USER_ID) return;
|
if (!USER_ID) return;
|
||||||
|
@ -322,15 +330,14 @@ const fnGetData = async () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
data.certificateList.forEach((item) => {
|
data.certificateList.forEach((item) => {
|
||||||
if(item.CERTIFICATE_CATEGORY === '1') {
|
if (item.CERTIFICATE_CATEGORY === "1") {
|
||||||
data.idCard = item;
|
data.idCard = item;
|
||||||
}else if(item.CERTIFICATE_CATEGORY === '2') {
|
} else if (item.CERTIFICATE_CATEGORY === "2") {
|
||||||
data.drivingLicence = item
|
data.drivingLicence = item;
|
||||||
}else if(item.CERTIFICATE_CATEGORY === '3') {
|
} else if (item.CERTIFICATE_CATEGORY === "3") {
|
||||||
data.qualificationCertificate = item
|
data.qualificationCertificate = item;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
console.log("1111",data.certificateList);
|
|
||||||
if (
|
if (
|
||||||
data.statusInfo.APPLY_TYPE === "1" ||
|
data.statusInfo.APPLY_TYPE === "1" ||
|
||||||
data.statusInfo.APPLY_TYPE === "3"
|
data.statusInfo.APPLY_TYPE === "3"
|
||||||
|
|
|
@ -411,8 +411,8 @@ const form = ref({
|
||||||
});
|
});
|
||||||
const info = ref({});
|
const info = ref({});
|
||||||
const fnEditVehicleModel = async () => {
|
const fnEditVehicleModel = async () => {
|
||||||
form.value.NOW_OWNERS = '';
|
form.value.NOW_OWNERS = "";
|
||||||
form.value.NOW_OWNERS_NUMBER = '';
|
form.value.NOW_OWNERS_NUMBER = "";
|
||||||
form.value.VEHICLE_PLATE_NUMBER = null;
|
form.value.VEHICLE_PLATE_NUMBER = null;
|
||||||
form.value.VEHICLE = {};
|
form.value.VEHICLE = {};
|
||||||
if (form.value.ASSIGNED_VEHICLE_MODEL === "运输车辆") {
|
if (form.value.ASSIGNED_VEHICLE_MODEL === "运输车辆") {
|
||||||
|
@ -424,8 +424,8 @@ const fnEditVehicleModel = async () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
const fnGetVehicleInfo = async () => {
|
const fnGetVehicleInfo = async () => {
|
||||||
form.value.NOW_OWNERS = '';
|
form.value.NOW_OWNERS = "";
|
||||||
form.value.NOW_OWNERS_NUMBER = '';
|
form.value.NOW_OWNERS_NUMBER = "";
|
||||||
if (form.value.ASSIGNED_VEHICLE_MODEL === "运输车辆") {
|
if (form.value.ASSIGNED_VEHICLE_MODEL === "运输车辆") {
|
||||||
for (let i = 0; i < form.value.OPERATIONVEHICLELIST.length; i++) {
|
for (let i = 0; i < form.value.OPERATIONVEHICLELIST.length; i++) {
|
||||||
if (
|
if (
|
||||||
|
|
|
@ -556,7 +556,7 @@ const data = reactive({
|
||||||
const fnGetLevels = async () => {
|
const fnGetLevels = async () => {
|
||||||
const { value: degreeOfEducationList } = await layoutFnGetDegreeOfEducation();
|
const { value: degreeOfEducationList } = await layoutFnGetDegreeOfEducation();
|
||||||
data.degreeOfEducationList = degreeOfEducationList;
|
data.degreeOfEducationList = degreeOfEducationList;
|
||||||
}
|
};
|
||||||
fnGetLevels();
|
fnGetLevels();
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|
|
@ -570,7 +570,7 @@ onMounted(() => {
|
||||||
const fnGetLevels = async () => {
|
const fnGetLevels = async () => {
|
||||||
const { value: degreeOfEducationList } = await layoutFnGetDegreeOfEducation();
|
const { value: degreeOfEducationList } = await layoutFnGetDegreeOfEducation();
|
||||||
data.degreeOfEducationList = degreeOfEducationList;
|
data.degreeOfEducationList = degreeOfEducationList;
|
||||||
}
|
};
|
||||||
|
|
||||||
fnGetLevels();
|
fnGetLevels();
|
||||||
|
|
||||||
|
|
|
@ -320,7 +320,7 @@ const getRemiderDate = (val) => {
|
||||||
const getUserList = async () => {
|
const getUserList = async () => {
|
||||||
const resData = await getUserPersonTypeListAll({});
|
const resData = await getUserPersonTypeListAll({});
|
||||||
data.userList = resData.userList;
|
data.userList = resData.userList;
|
||||||
data.userList = data.userList.filter(( item ) => item.APPLY_STATUS === '1')
|
data.userList = data.userList.filter((item) => item.APPLY_STATUS === "1");
|
||||||
};
|
};
|
||||||
getUserList();
|
getUserList();
|
||||||
const getVehicle = async (event) => {
|
const getVehicle = async (event) => {
|
||||||
|
|
|
@ -117,9 +117,7 @@ import {
|
||||||
addViolationRegistrationView,
|
addViolationRegistrationView,
|
||||||
editViolationRegistration,
|
editViolationRegistration,
|
||||||
} from "@/request/violation_registration.js";
|
} from "@/request/violation_registration.js";
|
||||||
import {
|
import { getAllVehicleList } from "@/request/enterprise_management.js";
|
||||||
getAllVehicleList
|
|
||||||
} from "@/request/enterprise_management.js"
|
|
||||||
import { getPractitionerSelectList } from "@/request/user_practitioner.js";
|
import { getPractitionerSelectList } from "@/request/user_practitioner.js";
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
|
@ -159,9 +157,8 @@ onMounted(async () => {
|
||||||
|
|
||||||
const fnGetAllVehicle = async () => {
|
const fnGetAllVehicle = async () => {
|
||||||
const resData = await getAllVehicleList();
|
const resData = await getAllVehicleList();
|
||||||
data.vehicleList = resData.varList
|
data.vehicleList = resData.varList;
|
||||||
console.log(data.vehicleList);
|
};
|
||||||
}
|
|
||||||
fnGetAllVehicle();
|
fnGetAllVehicle();
|
||||||
|
|
||||||
const fnGetUnitsList = async () => {
|
const fnGetUnitsList = async () => {
|
||||||
|
@ -184,7 +181,7 @@ const data = reactive({
|
||||||
PENALTYREGISTRANT: "",
|
PENALTYREGISTRANT: "",
|
||||||
fileList: [],
|
fileList: [],
|
||||||
},
|
},
|
||||||
vehicleList: []
|
vehicleList: [],
|
||||||
});
|
});
|
||||||
|
|
||||||
const fnSubmit = async () => {
|
const fnSubmit = async () => {
|
||||||
|
|
|
@ -100,7 +100,9 @@ const { visible, form } = useVModels(props, emits);
|
||||||
const rules = {
|
const rules = {
|
||||||
file: [{ required: true, message: "请上传附件", trigger: "change" }],
|
file: [{ required: true, message: "请上传附件", trigger: "change" }],
|
||||||
ACTIVITIESNAME: [{ required: true, message: "请输入名称", trigger: "blur" }],
|
ACTIVITIESNAME: [{ required: true, message: "请输入名称", trigger: "blur" }],
|
||||||
EXPIRYDATE: [{ required: true, message: "请选择到期日期", trigger: "change" }],
|
EXPIRYDATE: [
|
||||||
|
{ required: true, message: "请选择到期日期", trigger: "change" },
|
||||||
|
],
|
||||||
CYCLE: [{ required: true, message: "请选择周期", trigger: "change" }],
|
CYCLE: [{ required: true, message: "请选择周期", trigger: "change" }],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -174,9 +174,7 @@ const rules = {
|
||||||
trigger: "blur",
|
trigger: "blur",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
PERSON: [
|
PERSON: [{ required: true, message: "请选择人员", trigger: "change" }],
|
||||||
{ required: true, message: "请选择人员", trigger: "change" },
|
|
||||||
],
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
|
@ -39,7 +39,10 @@
|
||||||
detailItems.realPersonNum
|
detailItems.realPersonNum
|
||||||
}}人
|
}}人
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="会议附件" v-if="detailItems.CONFIRM_MESSAGE_SIGN_ROUTE">
|
<el-descriptions-item
|
||||||
|
v-if="detailItems.CONFIRM_MESSAGE_SIGN_ROUTE"
|
||||||
|
label="会议附件"
|
||||||
|
>
|
||||||
<a
|
<a
|
||||||
:href="VITE_FILE_URL + detailItems.CONFIRM_MESSAGE_SIGN_ROUTE"
|
:href="VITE_FILE_URL + detailItems.CONFIRM_MESSAGE_SIGN_ROUTE"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
@ -47,7 +50,10 @@
|
||||||
>查看会议附件</a
|
>查看会议附件</a
|
||||||
>
|
>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="会议视频" v-if="detailItems.VIDEO_SIGN_ROUTE">
|
<el-descriptions-item
|
||||||
|
v-if="detailItems.VIDEO_SIGN_ROUTE"
|
||||||
|
label="会议视频"
|
||||||
|
>
|
||||||
<video
|
<video
|
||||||
:src="VITE_FILE_URL + detailItems.VIDEO_SIGN_ROUTE"
|
:src="VITE_FILE_URL + detailItems.VIDEO_SIGN_ROUTE"
|
||||||
controls
|
controls
|
||||||
|
@ -64,9 +70,12 @@
|
||||||
<img
|
<img
|
||||||
v-if="row.USERAVATARPREFIX && row.USERAVATARURL_CONVERT"
|
v-if="row.USERAVATARPREFIX && row.USERAVATARURL_CONVERT"
|
||||||
:src="row.USERAVATARPREFIX + row.USERAVATARURL_CONVERT"
|
:src="row.USERAVATARPREFIX + row.USERAVATARURL_CONVERT"
|
||||||
alt="Avatar" width="100" height="100" />
|
alt="Avatar"
|
||||||
|
width="100"
|
||||||
|
height="100"
|
||||||
|
/>
|
||||||
<span v-else>
|
<span v-else>
|
||||||
{{ '暂无头像' }}
|
{{ "暂无头像" }}
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
|
@ -103,7 +103,6 @@ const { list, searchForm, pagination, fnGetData, fnResetPagination, tableRef } =
|
||||||
key: "userList",
|
key: "userList",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
const fnInit = async () => {
|
const fnInit = async () => {
|
||||||
await fnResetPagination();
|
await fnResetPagination();
|
||||||
await nextTick();
|
await nextTick();
|
||||||
|
|
|
@ -19,10 +19,7 @@
|
||||||
<el-form-item label="文件" prop="file">
|
<el-form-item label="文件" prop="file">
|
||||||
<layout-upload v-model:file-list="form.file" accept=".pdf" />
|
<layout-upload v-model:file-list="form.file" accept=".pdf" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<div
|
<div v-if="form.TEXT_INFO && type === 'edit'" class="tr mb-10">
|
||||||
v-if="form.TEXT_INFO && type === 'edit'"
|
|
||||||
class="tr mb-10"
|
|
||||||
>
|
|
||||||
<el-button type="primary" @click="fnExport">导出WORD</el-button>
|
<el-button type="primary" @click="fnExport">导出WORD</el-button>
|
||||||
</div>
|
</div>
|
||||||
<el-form-item label="文件内容" prop="TEXT_INFO">
|
<el-form-item label="文件内容" prop="TEXT_INFO">
|
||||||
|
|
|
@ -134,7 +134,6 @@
|
||||||
<el-table-column prop="UPLOAD_TIME" label="上传时间" width="150" />
|
<el-table-column prop="UPLOAD_TIME" label="上传时间" width="150" />
|
||||||
<el-table-column label="操作" width="200">
|
<el-table-column label="操作" width="200">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
v-if="tabName === 'platform_resource_library'"
|
v-if="tabName === 'platform_resource_library'"
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
Loading…
Reference in New Issue