forked from integrated_whb/integrated_whb_vue
功能优化
parent
37f176bd1a
commit
42e79f21be
|
@ -40,6 +40,10 @@ export const CUSTOMERTYPEMENU = [
|
||||||
{ id: "委托方", name: "1" },
|
{ id: "委托方", name: "1" },
|
||||||
{ id: "确认方", name: "2" },
|
{ id: "确认方", name: "2" },
|
||||||
];
|
];
|
||||||
|
export const MEETINGTYPEMENU = [
|
||||||
|
{ id: "安全生产例会", name: "1" },
|
||||||
|
{ id: "安全生产委员会会议", name: "2" },
|
||||||
|
];
|
||||||
export const LOCATIONTYPEMENU = [
|
export const LOCATIONTYPEMENU = [
|
||||||
{ id: "起运地", name: "1" },
|
{ id: "起运地", name: "1" },
|
||||||
{ id: "目的地", name: "2" },
|
{ id: "目的地", name: "2" },
|
||||||
|
|
|
@ -29,9 +29,3 @@ export const layoutFnGetSIGNEDSTATUSClassification = async () => {
|
||||||
});
|
});
|
||||||
return ref(resData);
|
return ref(resData);
|
||||||
};
|
};
|
||||||
export const layoutFnGetMEETINGTYPEClassification = async () => {
|
|
||||||
const resData = await getLevelsByParentId({
|
|
||||||
parentId: "eeeec1cbabe7406083994447d00d0d4a",
|
|
||||||
});
|
|
||||||
return ref(resData);
|
|
||||||
};
|
|
||||||
|
|
|
@ -97,7 +97,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { layoutFnGetMEETINGTYPEClassification } from "@/request/safety_production_related.js";
|
|
||||||
import { LOCATIONTYPEMENU } from "@/assets/js/constant";
|
import { LOCATIONTYPEMENU } from "@/assets/js/constant";
|
||||||
import LayoutTerritory from "@/components/territory/index.vue";
|
import LayoutTerritory from "@/components/territory/index.vue";
|
||||||
import { getSecurityPerson } from "@/request/waybill_registration.js";
|
import { getSecurityPerson } from "@/request/waybill_registration.js";
|
||||||
|
@ -127,12 +126,6 @@ const rules = {
|
||||||
LONGITUDE: [{ required: true, message: "请选择经度", trigger: "change" }],
|
LONGITUDE: [{ required: true, message: "请选择经度", trigger: "change" }],
|
||||||
LATITUDE: [{ required: true, message: "请选择维度", trigger: "change" }],
|
LATITUDE: [{ required: true, message: "请选择维度", trigger: "change" }],
|
||||||
};
|
};
|
||||||
const relatedClassificationTempList =
|
|
||||||
await layoutFnGetMEETINGTYPEClassification();
|
|
||||||
const relatedClassificationList = [];
|
|
||||||
JSON.parse(relatedClassificationTempList.value.zTreeNodes).forEach((e) => {
|
|
||||||
relatedClassificationList.push({ name: e.id, BIANMA: e.name });
|
|
||||||
});
|
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
mapDialogVisible: false,
|
mapDialogVisible: false,
|
||||||
|
|
|
@ -59,11 +59,11 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="ORIGIN" label="起运地" width="150">
|
<el-table-column prop="ORIGIN" label="起运地" width="150">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="DESTINATION" label="目的地" width="120">
|
<el-table-column prop="DESTINATION" label="目的地" width="150">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="SHIPPINGDATE" label="起止时间" width="150">
|
<el-table-column prop="SHIPPINGDATE" label="起止时间" width="180">
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="操作" width="180">
|
<el-table-column label="操作" width="120">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
@ -86,19 +86,11 @@
|
||||||
link
|
link
|
||||||
@click="deleteItem(row.SAFETY_MEETING_ID)"
|
@click="deleteItem(row.SAFETY_MEETING_ID)"
|
||||||
>
|
>
|
||||||
授权
|
删除
|
||||||
</el-button>
|
|
||||||
|
|
||||||
<el-button
|
|
||||||
type="danger"
|
|
||||||
text
|
|
||||||
link
|
|
||||||
@click="deleteItem(row.SAFETY_MEETING_ID)"
|
|
||||||
>
|
|
||||||
解聘
|
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<template #button>
|
<template #button>
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
|
|
|
@ -178,7 +178,7 @@
|
||||||
<el-form-item class="end">
|
<el-form-item class="end">
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="data.selectRiskDialogVisible = true"
|
@click="data.SelectPersonDialogVisible = true"
|
||||||
>
|
>
|
||||||
选择其他存在风险
|
选择其他存在风险
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -219,9 +219,9 @@
|
||||||
@get-data="fnAddRiskSubmit"
|
@get-data="fnAddRiskSubmit"
|
||||||
/>
|
/>
|
||||||
<select-risk
|
<select-risk
|
||||||
v-model:visible="data.selectRiskDialogVisible"
|
v-model:visible="data.SelectPersonDialogVisible"
|
||||||
:list-data="data.listAll"
|
:list-data="data.listAll"
|
||||||
@submit="fnSelectRiskSubmit"
|
@submit="fnSelectPersonSubmit"
|
||||||
/>
|
/>
|
||||||
<add-inspection-route
|
<add-inspection-route
|
||||||
v-model:visible="data.inspectionRouteDialog.visible"
|
v-model:visible="data.inspectionRouteDialog.visible"
|
||||||
|
@ -252,7 +252,7 @@ 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 AddRisk from "@/views/risk_control/ledger/components/add.vue";
|
import AddRisk from "@/views/risk_control/ledger/components/add.vue";
|
||||||
import SelectRisk from "./components/select_risk.vue";
|
import SelectPerson from "./components/select_risk.vue";
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
@ -303,7 +303,7 @@ const data = reactive({
|
||||||
list: [],
|
list: [],
|
||||||
listAll: [],
|
listAll: [],
|
||||||
searchForm: {},
|
searchForm: {},
|
||||||
selectRiskDialogVisible: false,
|
SelectPersonDialogVisible: false,
|
||||||
addOrEditDialog: {
|
addOrEditDialog: {
|
||||||
visible: false,
|
visible: false,
|
||||||
form: {
|
form: {
|
||||||
|
@ -399,7 +399,7 @@ const fnAddRiskSubmit = (item) => {
|
||||||
data.listAll.push(item);
|
data.listAll.push(item);
|
||||||
fnTableSelection();
|
fnTableSelection();
|
||||||
};
|
};
|
||||||
const fnSelectRiskSubmit = (listData) => {
|
const fnSelectPersonSubmit = (listData) => {
|
||||||
data.list.push(...listData);
|
data.list.push(...listData);
|
||||||
data.listAll.push(...listData);
|
data.listAll.push(...listData);
|
||||||
fnTableSelection();
|
fnTableSelection();
|
||||||
|
|
|
@ -24,10 +24,10 @@
|
||||||
@change="handleMeetingTypeChange"
|
@change="handleMeetingTypeChange"
|
||||||
>
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in relatedClassificationList"
|
v-for="item in MEETINGTYPEMENU"
|
||||||
:key="item.BIANMA"
|
:key="item.id"
|
||||||
:label="item.NAME"
|
:label="item.id"
|
||||||
:value="item.BIANMA"
|
:value="item.name"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -78,13 +78,25 @@
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
|
||||||
<el-col :span="24">
|
<el-col :span="12">
|
||||||
<el-form-item label="会议附件" prop="fileList">
|
<el-form-item label="会议文本附件" prop="fileList">
|
||||||
<layout-upload
|
<layout-upload
|
||||||
v-model:file-list="data.form.fileList"
|
v-model:file-list="data.form.fileList"
|
||||||
accept=".pdf,.mp4"
|
accept=".pdf"
|
||||||
delete-to-server
|
delete-to-server
|
||||||
:limit="9"
|
:limit="9"
|
||||||
|
:before-upload="fnUpload"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="12">
|
||||||
|
<el-form-item label="会议视频附件" prop="videoList">
|
||||||
|
<layout-upload
|
||||||
|
v-model:file-list="data.form.videoList"
|
||||||
|
accept=".mp4"
|
||||||
|
delete-to-server
|
||||||
|
:limit="9"
|
||||||
|
:before-upload="fnUpload"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
@ -105,12 +117,10 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import {
|
import { getUserListAll } from "@/request/safety_production_related.js";
|
||||||
layoutFnGetMEETINGTYPEClassification,
|
|
||||||
getUserListAll,
|
|
||||||
} from "@/request/safety_production_related.js";
|
|
||||||
import { addSafetyMeetingView } from "@/request/traffic_safety_meeting.js";
|
import { addSafetyMeetingView } from "@/request/traffic_safety_meeting.js";
|
||||||
import { reactive, ref } from "vue";
|
import { reactive, ref } from "vue";
|
||||||
|
import { MEETINGTYPEMENU } from "@/assets/js/constant.js";
|
||||||
import LayoutUpload from "@/components/upload/index.vue";
|
import LayoutUpload from "@/components/upload/index.vue";
|
||||||
import LayoutEditor from "@/components/editor/index.vue";
|
import LayoutEditor from "@/components/editor/index.vue";
|
||||||
import useFormValidate from "@/assets/js/useFormValidate.js";
|
import useFormValidate from "@/assets/js/useFormValidate.js";
|
||||||
|
@ -151,12 +161,6 @@ const fnGetUnitsList = async () => {
|
||||||
data.unitsList = resData.varList;
|
data.unitsList = resData.varList;
|
||||||
};
|
};
|
||||||
fnGetUnitsList();
|
fnGetUnitsList();
|
||||||
const relatedClassificationTempList =
|
|
||||||
await layoutFnGetMEETINGTYPEClassification();
|
|
||||||
const relatedClassificationList = [];
|
|
||||||
JSON.parse(relatedClassificationTempList.value.zTreeNodes).forEach((e) => {
|
|
||||||
relatedClassificationList.push({ name: e.id, BIANMA: e.name });
|
|
||||||
});
|
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
form: {
|
form: {
|
||||||
|
@ -167,6 +171,7 @@ const data = reactive({
|
||||||
HOST_PERSON: "",
|
HOST_PERSON: "",
|
||||||
RECORDER: "",
|
RECORDER: "",
|
||||||
fileList: [],
|
fileList: [],
|
||||||
|
videoList: [],
|
||||||
PRACTITIONER_TYPE: [],
|
PRACTITIONER_TYPE: [],
|
||||||
NOTIFICATIONCONTENT: "",
|
NOTIFICATIONCONTENT: "",
|
||||||
},
|
},
|
||||||
|
@ -174,6 +179,7 @@ const data = reactive({
|
||||||
const handleMeetingTypeChange = (value) => {
|
const handleMeetingTypeChange = (value) => {
|
||||||
data.form.MEETING_TYPE = value;
|
data.form.MEETING_TYPE = value;
|
||||||
};
|
};
|
||||||
|
|
||||||
const fnSubmit = async () => {
|
const fnSubmit = async () => {
|
||||||
await useFormValidate(formRef);
|
await useFormValidate(formRef);
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
|
@ -203,6 +209,15 @@ const fnSubmit = async () => {
|
||||||
ElMessage.error("添加失败");
|
ElMessage.error("添加失败");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const fnUpload = (file) => {
|
||||||
|
const isLt100M = file.size / 1024 / 1024 < 100;
|
||||||
|
if (!isLt100M) {
|
||||||
|
ElMessage.error("文件大小不能超过100M");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
@ -24,11 +24,6 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
|
||||||
<el-form-item label="联系电话" prop="CONTACT_PHONE">
|
|
||||||
<el-input v-model="searchForm.CONTACT_PHONE" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item label="参会状态" prop="ATTENDANCE_STATUS">
|
<el-form-item label="参会状态" prop="ATTENDANCE_STATUS">
|
||||||
<el-select v-model="searchForm.ATTENDANCE_STATUS">
|
<el-select v-model="searchForm.ATTENDANCE_STATUS">
|
||||||
|
@ -39,11 +34,6 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="8">
|
|
||||||
<el-form-item label="身份证号" prop="IDENTITY_NUMBER">
|
|
||||||
<el-input v-model="searchForm.IDENTITY_NUMBER" />
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="8">
|
<el-col :span="8">
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button type="primary" native-type="submit">搜索</el-button>
|
<el-button type="primary" native-type="submit">搜索</el-button>
|
||||||
|
@ -57,12 +47,12 @@
|
||||||
</el-card>
|
</el-card>
|
||||||
<layout-card>
|
<layout-card>
|
||||||
<layout-table
|
<layout-table
|
||||||
:data="list"
|
|
||||||
@get-data="fnGetData"
|
|
||||||
v-model:pagination="pagination"
|
v-model:pagination="pagination"
|
||||||
|
:data="list"
|
||||||
stripe
|
stripe
|
||||||
border
|
border
|
||||||
show-header
|
show-header
|
||||||
|
@get-data="fnGetData"
|
||||||
>
|
>
|
||||||
<el-table-column label="序号" width="60">
|
<el-table-column label="序号" width="60">
|
||||||
<template #default="{ $index }">
|
<template #default="{ $index }">
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
<el-form-item label="会议类型" prop="MEETING_TYPE">
|
<el-form-item label="会议类型" prop="MEETING_TYPE">
|
||||||
<el-select v-model="searchForm.MEETING_TYPE">
|
<el-select v-model="searchForm.MEETING_TYPE">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in relatedClassificationList"
|
v-for="item in MEETINGTYPEMENU"
|
||||||
:key="item.BIANMA"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.id"
|
||||||
:value="item.name"
|
:value="item.name"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -47,7 +47,12 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="MEETING_TITLE" label="会议标题" width="250" />
|
<el-table-column prop="MEETING_TITLE" label="会议标题" width="250" />
|
||||||
<el-table-column prop="MEETING_TYPE" label="会议类型" width="250" />
|
<el-table-column prop="MEETING_TYPE" label="会议类型" width="250">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<div v-if="row.MEETING_TYPE === '1'">安全生产例会</div>
|
||||||
|
<div v-else-if="row.MEETING_TYPE === '2'">安全生产委员会会议</div>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="会议状态" prop="SIGNEDDATE">
|
<el-table-column label="会议状态" prop="SIGNEDDATE">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-tag v-if="row.MEETING_STATUS === 1">{{ "进行中" }}</el-tag>
|
<el-tag v-if="row.MEETING_STATUS === 1">{{ "进行中" }}</el-tag>
|
||||||
|
@ -62,7 +67,7 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="HOST_PERSON" label="主持人" />
|
<el-table-column prop="HOST_PERSON" label="主持人" />
|
||||||
<el-table-column prop="MEETING_ADDRESS" label="会议地点" />
|
<el-table-column prop="MEETING_ADDRESS" label="会议地点" />
|
||||||
<el-table-column prop="TRANSPORTATIONCOMPANY" label="运输企业" />
|
<el-table-column prop="CORP_NAME" label="运输企业" />
|
||||||
<el-table-column label="操作" width="180">
|
<el-table-column label="操作" width="180">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -131,13 +136,13 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { serialNumber } from "@/assets/js/utils";
|
import { serialNumber } from "@/assets/js/utils";
|
||||||
import useListData from "@/assets/js/useListData.js";
|
import useListData from "@/assets/js/useListData.js";
|
||||||
import { onMounted, reactive, ref } from "vue";
|
import { MEETINGTYPEMENU } from "@/assets/js/constant.js";
|
||||||
|
import { reactive } from "vue";
|
||||||
import {
|
import {
|
||||||
getSafetyMeetingList,
|
getSafetyMeetingList,
|
||||||
setSafetyMeetingDelete,
|
setSafetyMeetingDelete,
|
||||||
} from "@/request/traffic_safety_meeting.js";
|
} from "@/request/traffic_safety_meeting.js";
|
||||||
import router from "@/router/index.js";
|
import router from "@/router/index.js";
|
||||||
import { layoutFnGetMEETINGTYPEClassification } from "@/request/safety_production_related.js";
|
|
||||||
import { ElMessage, ElMessageBox } from "element-plus";
|
import { ElMessage, ElMessageBox } from "element-plus";
|
||||||
|
|
||||||
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
|
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
|
||||||
|
@ -157,12 +162,6 @@ const deleteItem = async (value) => {
|
||||||
ElMessage.success("删除成功");
|
ElMessage.success("删除成功");
|
||||||
fnGetData();
|
fnGetData();
|
||||||
};
|
};
|
||||||
const relatedClassificationList = ref(null);
|
|
||||||
|
|
||||||
onMounted(async () => {
|
|
||||||
const data = await layoutFnGetMEETINGTYPEClassification();
|
|
||||||
relatedClassificationList.value = JSON.parse(data.value.zTreeNodes);
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{{ detailItems.MEETING_TITLE }}
|
{{ detailItems.MEETING_TITLE }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="运输企业">
|
<el-descriptions-item label="运输企业">
|
||||||
{{ detailItems.TRANSPORTATIONCOMPANY }}
|
{{ detailItems.CORP_NAME }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="主持人">
|
<el-descriptions-item label="主持人">
|
||||||
{{ detailItems.HOST_PERSON }}
|
{{ detailItems.HOST_PERSON }}
|
||||||
|
@ -21,14 +21,19 @@
|
||||||
{{ detailItems.MEETING_DATE_END }}
|
{{ detailItems.MEETING_DATE_END }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="会议类型">
|
<el-descriptions-item label="会议类型">
|
||||||
{{ detailItems.MEETING_TYPE }}
|
<template v-if="detailItems.MEETING_TYPE === '1'">
|
||||||
|
安全生产例会
|
||||||
|
</template>
|
||||||
|
<template v-else-if="detailItems.MEETING_TYPE === '2'">
|
||||||
|
安全生产委员会会议
|
||||||
|
</template>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="会议内容">
|
<el-descriptions-item label="会议内容">
|
||||||
{{ detailItems.MEETING_CONTENT }}
|
{{ detailItems.MEETING_CONTENT }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="备注">
|
<!-- <el-descriptions-item label="备注">-->
|
||||||
{{ detailItems.NOTES }}
|
<!-- {{ detailItems.NOTES }}-->
|
||||||
</el-descriptions-item>
|
<!-- </el-descriptions-item>-->
|
||||||
<el-descriptions-item label="远程参会人员">
|
<el-descriptions-item label="远程参会人员">
|
||||||
应参会{{ detailItems.totalPersonNum }}/人,实参人数{{
|
应参会{{ detailItems.totalPersonNum }}/人,实参人数{{
|
||||||
detailItems.realPersonNum
|
detailItems.realPersonNum
|
||||||
|
|
|
@ -13,21 +13,6 @@
|
||||||
<el-input v-model="data.form.TITLE" placeholder="请输入内容" />
|
<el-input v-model="data.form.TITLE" placeholder="请输入内容" />
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<!-- <el-col :span="8">-->
|
|
||||||
<!-- <el-form-item label="运输企业" prop="TRANSPORTATIONCOMPANY">-->
|
|
||||||
<!-- <el-select-->
|
|
||||||
<!-- v-model="data.form.TRANSPORTATIONCOMPANY"-->
|
|
||||||
<!-- placeholder="请选择运输企业"-->
|
|
||||||
<!-- >-->
|
|
||||||
<!-- <el-option-->
|
|
||||||
<!-- v-for="item in data.personList"-->
|
|
||||||
<!-- :key="item.CORPINFO_ID"-->
|
|
||||||
<!-- :label="item.CORP_NAME"-->
|
|
||||||
<!-- :value="item.CORP_NAME"-->
|
|
||||||
<!-- />-->
|
|
||||||
<!-- </el-select>-->
|
|
||||||
<!-- </el-form-item>-->
|
|
||||||
<!-- </el-col>-->
|
|
||||||
<el-col :span="5">
|
<el-col :span="5">
|
||||||
<el-form-item label="通知等级" prop="LEVEL">
|
<el-form-item label="通知等级" prop="LEVEL">
|
||||||
<el-select v-model="data.form.LEVEL" placeholder="请选择通知等级">
|
<el-select v-model="data.form.LEVEL" placeholder="请选择通知等级">
|
||||||
|
@ -52,7 +37,7 @@
|
||||||
<el-button
|
<el-button
|
||||||
class="addBtn"
|
class="addBtn"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="data.selectRiskDialogVisible = true"
|
@click="data.SelectPersonDialogVisible = true"
|
||||||
>
|
>
|
||||||
选择
|
选择
|
||||||
</el-button>
|
</el-button>
|
||||||
|
@ -105,10 +90,10 @@
|
||||||
<div class="tc mt-10">
|
<div class="tc mt-10">
|
||||||
<el-button type="primary" @click="fnSubmit"> 确定 </el-button>
|
<el-button type="primary" @click="fnSubmit"> 确定 </el-button>
|
||||||
</div>
|
</div>
|
||||||
<select-risk
|
<select-person
|
||||||
v-model:visible="data.selectRiskDialogVisible"
|
v-model:visible="data.SelectPersonDialogVisible"
|
||||||
:list-data="data.listAll"
|
:list-data="data.listAll"
|
||||||
@submit="fnSelectRiskSubmit"
|
@submit="fnSelectPersonSubmit"
|
||||||
@submitall="fnSelectAllRiskSubmit"
|
@submitall="fnSelectAllRiskSubmit"
|
||||||
/>
|
/>
|
||||||
</layout-card>
|
</layout-card>
|
||||||
|
@ -123,7 +108,7 @@ import {
|
||||||
import { onMounted, reactive, ref } from "vue";
|
import { onMounted, reactive, ref } from "vue";
|
||||||
import LayoutUpload from "@/components/upload/index.vue";
|
import LayoutUpload from "@/components/upload/index.vue";
|
||||||
import LayoutEditor from "@/components/editor/index.vue";
|
import LayoutEditor from "@/components/editor/index.vue";
|
||||||
import SelectRisk from "./components/select_person.vue";
|
import SelectPerson from "./components/select_person.vue";
|
||||||
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 { getSecurityPerson } from "@/request/waybill_registration.js";
|
import { getSecurityPerson } from "@/request/waybill_registration.js";
|
||||||
|
@ -181,6 +166,7 @@ const fnSubmit = async () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
formData.append("PERSON_ID", data.form.PERSON_ID);
|
formData.append("PERSON_ID", data.form.PERSON_ID);
|
||||||
|
|
||||||
data.form.fileList.forEach((file) => {
|
data.form.fileList.forEach((file) => {
|
||||||
if (file.raw) {
|
if (file.raw) {
|
||||||
formData.append("fileList", file.raw);
|
formData.append("fileList", file.raw);
|
||||||
|
@ -214,7 +200,7 @@ const fnSubmit = async () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const fnSelectRiskSubmit = (selectionData) => {
|
const fnSelectPersonSubmit = (selectionData) => {
|
||||||
const userIds = selectionData.map((item) => item.USER_ID).join(", ");
|
const userIds = selectionData.map((item) => item.USER_ID).join(", ");
|
||||||
const names = selectionData.map((item) => item.NAME).join(", ");
|
const names = selectionData.map((item) => item.NAME).join(", ");
|
||||||
data.form.PERSON_ID = userIds;
|
data.form.PERSON_ID = userIds;
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
<el-dialog v-model="visible" title="选择人员" width="1500">
|
<el-dialog v-model="visible" title="选择人员" width="1500">
|
||||||
<el-form
|
<el-form
|
||||||
:model="searchForm"
|
:model="searchForm"
|
||||||
label-width="60px"
|
label-width="90px"
|
||||||
@submit.prevent="fnResetPagination"
|
@submit.prevent="fnResetPagination"
|
||||||
>
|
>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="6">
|
<el-col :span="5">
|
||||||
<el-form-item label="关键字" prop="KEYWORDS">
|
<el-form-item label="关键字" prop="KEYWORDS">
|
||||||
<el-input
|
<el-input
|
||||||
v-model="searchForm.KEYWORDS"
|
v-model="searchForm.KEYWORDS"
|
||||||
|
@ -14,6 +14,21 @@
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :span="5">
|
||||||
|
<el-form-item label="从业类型" prop="PRACTITIONERTYPE">
|
||||||
|
<el-select
|
||||||
|
v-model="searchForm.PRACTITIONERTYPE"
|
||||||
|
placeholder="请选择从业类型"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in PERSONTYPEMENU"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.id"
|
||||||
|
:value="item.name"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<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>
|
||||||
|
@ -40,6 +55,7 @@
|
||||||
<el-table-column prop="USER_ID" label="用户Id" />
|
<el-table-column prop="USER_ID" label="用户Id" />
|
||||||
<el-table-column prop="NAME" label="姓名" />
|
<el-table-column prop="NAME" label="姓名" />
|
||||||
<el-table-column prop="DEPARTMENT_NAME" label="部门" />
|
<el-table-column prop="DEPARTMENT_NAME" label="部门" />
|
||||||
|
<el-table-column prop="PRACTITIONERTYPE" label="从业类型" />
|
||||||
</layout-table>
|
</layout-table>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<el-button @click="fnClose">取消</el-button>
|
<el-button @click="fnClose">取消</el-button>
|
||||||
|
@ -57,6 +73,7 @@ import { watch } from "vue";
|
||||||
import { serialNumber } from "@/assets/js/utils.js";
|
import { serialNumber } from "@/assets/js/utils.js";
|
||||||
import { differenceWith } from "lodash-es";
|
import { differenceWith } from "lodash-es";
|
||||||
import { getUserListAll } from "@/request/safety_production_related.js";
|
import { getUserListAll } from "@/request/safety_production_related.js";
|
||||||
|
import { PERSONTYPEMENU } from "@/assets/js/constant.js";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
visible: {
|
visible: {
|
||||||
|
|
Loading…
Reference in New Issue