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