forked from integrated_whb/integrated_whb_vue
补充替换CORPINFO_ID通用标识
parent
680b3cc994
commit
db057467b2
|
@ -1,10 +1,13 @@
|
||||||
import { post, upload } from "@/request/axios.js";
|
import { post, upload } from "@/request/axios.js";
|
||||||
|
|
||||||
export const getSecurityCustomerList = (params) =>
|
export const getSecurityCustomerList = (params) =>
|
||||||
post("/securitycustomer/listForSecurityCustomerManagement", params); // 客户管理列表
|
post("/securitycustomer/listForSecurityCustomerManagement", params); // 客户管理列表(table)
|
||||||
|
|
||||||
export const addSafetyCustomerView = (params) =>
|
export const addSafetyCustomerView = (params) =>
|
||||||
upload("/securitycustomer/add", params); // 添加
|
upload("/securitycustomer/add", params); // 添加
|
||||||
|
|
||||||
export const deleteSafetyCustomerView = (params) =>
|
export const deleteSafetyCustomerView = (params) =>
|
||||||
upload("/securitycustomer/delete", params); // 删除
|
upload("/securitycustomer/delete", params); // 删除
|
||||||
|
|
||||||
|
export const getTrafficCustomerSelectList = (params) =>
|
||||||
|
post("/securitycustomer/getTrafficCustomerSelectList", params); // 客户管理列表(list)
|
||||||
|
|
|
@ -8,3 +8,6 @@ export const addSafetyLocationView = (params) =>
|
||||||
|
|
||||||
export const deleteSafetyLocationView = (params) =>
|
export const deleteSafetyLocationView = (params) =>
|
||||||
post("/securitylocation/delete", params); // 添加地段管理
|
post("/securitylocation/delete", params); // 添加地段管理
|
||||||
|
|
||||||
|
export const getTrafficLocationSelectList = (params) =>
|
||||||
|
post("/securitylocation/getTrafficLocationSelectList", params); // 地点管理列表
|
||||||
|
|
|
@ -3,9 +3,6 @@ import { post, upload } from "@/request/axios.js";
|
||||||
export const getSecurityWaybillreList = (params) =>
|
export const getSecurityWaybillreList = (params) =>
|
||||||
post("/waybillregistration/listForSecurityWaybillre", params); // 运单登记列表
|
post("/waybillregistration/listForSecurityWaybillre", params); // 运单登记列表
|
||||||
|
|
||||||
export const getSecurityPerson = (params) =>
|
|
||||||
post("/waybillregistration/forSecurityPerson", params);
|
|
||||||
|
|
||||||
export const addSafetyWaybillreView = (params) =>
|
export const addSafetyWaybillreView = (params) =>
|
||||||
upload("/waybillregistration/add", params); // 添加运单登记
|
upload("/waybillregistration/add", params); // 添加运单登记
|
||||||
|
|
||||||
|
|
|
@ -104,8 +104,7 @@
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { CUSTOMERTYPEMENU } from "@/assets/js/constant";
|
import { CUSTOMERTYPEMENU } from "@/assets/js/constant";
|
||||||
import { getSecurityPerson } from "@/request/waybill_registration.js";
|
import { reactive, ref } from "vue";
|
||||||
import { onMounted, reactive, ref } from "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 { addSafetyCustomerView } from "@/request/customer_management.js";
|
import { addSafetyCustomerView } from "@/request/customer_management.js";
|
||||||
|
@ -139,13 +138,6 @@ const data = reactive({
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
onMounted(async () => {
|
|
||||||
await fnPerson();
|
|
||||||
});
|
|
||||||
const fnPerson = async () => {
|
|
||||||
const resData = await getSecurityPerson({});
|
|
||||||
data.unitsList = [resData.pd];
|
|
||||||
};
|
|
||||||
|
|
||||||
const addContact = () => {
|
const addContact = () => {
|
||||||
data.form.contacts.push({
|
data.form.contacts.push({
|
||||||
|
|
|
@ -15,18 +15,6 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
|
||||||
<el-form-item label="运输企业" prop="TRANSPORTATIONCOMPANY">
|
|
||||||
<el-select v-model="searchForm.TRANSPORTATIONCOMPANY" clearable>
|
|
||||||
<el-option
|
|
||||||
v-for="item in data.unitsList"
|
|
||||||
:key="item.CORPINFO_ID"
|
|
||||||
:label="item.CORP_NAME"
|
|
||||||
:value="item.CORP_NAME"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<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>
|
||||||
|
@ -100,12 +88,11 @@
|
||||||
<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 { ref } from "vue";
|
||||||
import {
|
import {
|
||||||
deleteSafetyCustomerView,
|
deleteSafetyCustomerView,
|
||||||
getSecurityCustomerList,
|
getSecurityCustomerList,
|
||||||
} from "@/request/customer_management.js";
|
} from "@/request/customer_management.js";
|
||||||
import { getSecurityPerson } from "@/request/waybill_registration.js";
|
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import { ElMessage, ElMessageBox } from "element-plus";
|
import { ElMessage, ElMessageBox } from "element-plus";
|
||||||
|
|
||||||
|
@ -113,20 +100,7 @@ const router = useRouter();
|
||||||
const tableRef = ref(null);
|
const tableRef = ref(null);
|
||||||
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
|
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
|
||||||
useListData(getSecurityCustomerList);
|
useListData(getSecurityCustomerList);
|
||||||
const data = reactive({
|
|
||||||
analysisDialog: {
|
|
||||||
visible: false,
|
|
||||||
info: {},
|
|
||||||
unitsList: [],
|
|
||||||
},
|
|
||||||
});
|
|
||||||
onMounted(async () => {
|
|
||||||
await fnPerson();
|
|
||||||
});
|
|
||||||
const fnPerson = async () => {
|
|
||||||
const resData = await getSecurityPerson({});
|
|
||||||
data.unitsList = [resData.pd];
|
|
||||||
};
|
|
||||||
// 删除事件
|
// 删除事件
|
||||||
const deleteItem = async (value) => {
|
const deleteItem = async (value) => {
|
||||||
await ElMessageBox.confirm(`确定要删除吗?`, {
|
await ElMessageBox.confirm(`确定要删除吗?`, {
|
||||||
|
|
|
@ -90,8 +90,7 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
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 { reactive, ref } from "vue";
|
||||||
import { reactive, ref, onMounted } from "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 { addSafetyLocationView } from "@/request/location_management.js";
|
import { addSafetyLocationView } from "@/request/location_management.js";
|
||||||
|
@ -100,7 +99,7 @@ import { useRouter } from "vue-router";
|
||||||
|
|
||||||
const formRef = ref(null);
|
const formRef = ref(null);
|
||||||
const rules = {
|
const rules = {
|
||||||
TRANSPORTATIONCOMPANY: [
|
CORPINFO_ID: [
|
||||||
{ required: true, message: "请输入运输企业名称", trigger: "blur" },
|
{ required: true, message: "请输入运输企业名称", trigger: "blur" },
|
||||||
],
|
],
|
||||||
LOCATIONTYPE: [
|
LOCATIONTYPE: [
|
||||||
|
@ -122,26 +121,19 @@ const rules = {
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
mapDialogVisible: false,
|
mapDialogVisible: false,
|
||||||
form: {
|
form: {
|
||||||
TRANSPORTATIONCOMPANY: "",
|
CORPINFO_ID: "",
|
||||||
LOCATIONTYPE: "",
|
LOCATIONTYPE: "",
|
||||||
LOCATIONNAME: "",
|
LOCATIONNAME: "",
|
||||||
ADMINISTRATIVEREGIONS: [],
|
ADMINISTRATIVEREGIONS: [],
|
||||||
ADDRESSDETAILS: "",
|
ADDRESSDETAILS: "",
|
||||||
LONGITUDE: "",
|
LONGITUDE: "",
|
||||||
LATITUDE: "",
|
LATITUDE: "",
|
||||||
unitsList: [],
|
|
||||||
territoryCascaderRef: "",
|
territoryCascaderRef: "",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const territoryCascaderRef = ref(null);
|
const territoryCascaderRef = ref(null);
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
onMounted(async () => {
|
|
||||||
await fnPerson();
|
|
||||||
});
|
|
||||||
const fnPerson = async () => {
|
|
||||||
const resData = await getSecurityPerson({});
|
|
||||||
data.unitsList = [resData.pd];
|
|
||||||
};
|
|
||||||
const fnSubmit = async () => {
|
const fnSubmit = async () => {
|
||||||
await useFormValidate(formRef);
|
await useFormValidate(formRef);
|
||||||
data.form.ADMINISTRATIVEREGIONS =
|
data.form.ADMINISTRATIVEREGIONS =
|
||||||
|
|
|
@ -15,18 +15,6 @@
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
|
||||||
<el-form-item label="运输企业" prop="TRANSPORTATIONCOMPANY">
|
|
||||||
<el-select v-model="searchForm.TRANSPORTATIONCOMPANY" clearable>
|
|
||||||
<el-option
|
|
||||||
v-for="item in data.unitsList"
|
|
||||||
:key="item.CORPINFO_ID"
|
|
||||||
:label="item.CORP_NAME"
|
|
||||||
:value="item.CORP_NAME"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
</el-col>
|
|
||||||
<el-col :span="6">
|
<el-col :span="6">
|
||||||
<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>
|
||||||
|
@ -98,8 +86,7 @@
|
||||||
<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 { ref } from "vue";
|
||||||
import { getSecurityPerson } from "@/request/waybill_registration.js";
|
|
||||||
import {
|
import {
|
||||||
deleteSafetyLocationView,
|
deleteSafetyLocationView,
|
||||||
getSecurityLocationList,
|
getSecurityLocationList,
|
||||||
|
@ -111,20 +98,7 @@ const router = useRouter();
|
||||||
const tableRef = ref(null);
|
const tableRef = ref(null);
|
||||||
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
|
const { list, pagination, searchForm, fnGetData, fnResetPagination } =
|
||||||
useListData(getSecurityLocationList);
|
useListData(getSecurityLocationList);
|
||||||
const data = reactive({
|
|
||||||
analysisDialog: {
|
|
||||||
visible: false,
|
|
||||||
info: {},
|
|
||||||
unitsList: [],
|
|
||||||
},
|
|
||||||
});
|
|
||||||
onMounted(async () => {
|
|
||||||
await fnPerson();
|
|
||||||
});
|
|
||||||
const fnPerson = async () => {
|
|
||||||
const resData = await getSecurityPerson({});
|
|
||||||
data.unitsList = [resData.pd];
|
|
||||||
};
|
|
||||||
// 删除事件
|
// 删除事件
|
||||||
const deleteItem = async (value) => {
|
const deleteItem = async (value) => {
|
||||||
await ElMessageBox.confirm(`确定要删除吗?`, {
|
await ElMessageBox.confirm(`确定要删除吗?`, {
|
||||||
|
|
|
@ -291,7 +291,6 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import {
|
import {
|
||||||
addSafetyWaybillreView,
|
addSafetyWaybillreView,
|
||||||
getSecurityPerson,
|
|
||||||
getUserPersonTypeListAll,
|
getUserPersonTypeListAll,
|
||||||
} from "@/request/waybill_registration.js";
|
} from "@/request/waybill_registration.js";
|
||||||
import { onMounted, reactive, ref, watchEffect } from "vue";
|
import { onMounted, reactive, ref, watchEffect } from "vue";
|
||||||
|
@ -299,15 +298,15 @@ import useFormValidate from "@/assets/js/useFormValidate.js";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import LayoutDepartment from "@/components/department/index.vue";
|
import LayoutDepartment from "@/components/department/index.vue";
|
||||||
import { getPostListAll, getUserListAll } from "@/request/data_dictionary.js";
|
import { getPostListAll, getUserListAll } from "@/request/data_dictionary.js";
|
||||||
import { getSecurityCustomerList } from "@/request/customer_management.js";
|
import { getTrafficCustomerSelectList } from "@/request/customer_management.js";
|
||||||
import { getSecurityLocationList } from "@/request/location_management.js";
|
import { getTrafficLocationSelectList } from "@/request/location_management.js";
|
||||||
import { getOperationVehicleList } from "@/request/operation_vehicle.js";
|
import { getOperationVehicleList } from "@/request/operation_vehicle.js";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
import { getFreightTrailerList } from "@/request/enterprise_management.js";
|
import { getFreightTrailerList } from "@/request/enterprise_management.js";
|
||||||
|
|
||||||
const formRef = ref(null);
|
const formRef = ref(null);
|
||||||
const rules = {
|
const rules = {
|
||||||
TRANSPORTATIONCOMPANY: [
|
CORPINFO_ID: [
|
||||||
{ required: true, message: "请输入运输企业名称", trigger: "blur" },
|
{ required: true, message: "请输入运输企业名称", trigger: "blur" },
|
||||||
],
|
],
|
||||||
DISPATCHER: [
|
DISPATCHER: [
|
||||||
|
@ -365,7 +364,7 @@ const rules = {
|
||||||
|
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
form: {
|
form: {
|
||||||
TRANSPORTATIONCOMPANY: "",
|
CORPINFO_ID: "",
|
||||||
DISPATCHER: "",
|
DISPATCHER: "",
|
||||||
DEPARTMENT_ID: "",
|
DEPARTMENT_ID: "",
|
||||||
POST_ID: "",
|
POST_ID: "",
|
||||||
|
@ -496,7 +495,7 @@ const fnTruck = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const fnCustomerType = async () => {
|
const fnCustomerType = async () => {
|
||||||
const res = await getSecurityCustomerList();
|
const res = await getTrafficCustomerSelectList();
|
||||||
const varList = res.varList;
|
const varList = res.varList;
|
||||||
const clientMap = new Map();
|
const clientMap = new Map();
|
||||||
varList.forEach((item) => {
|
varList.forEach((item) => {
|
||||||
|
@ -540,7 +539,7 @@ const fnCustomerType = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const fnLocation = async () => {
|
const fnLocation = async () => {
|
||||||
const res = await getSecurityLocationList();
|
const res = await getTrafficLocationSelectList();
|
||||||
const varList = res.varList || [];
|
const varList = res.varList || [];
|
||||||
|
|
||||||
const StartOptionstMap = new Map();
|
const StartOptionstMap = new Map();
|
||||||
|
@ -625,16 +624,11 @@ watchEffect(() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await fnPerson();
|
|
||||||
await fnCustomerType();
|
await fnCustomerType();
|
||||||
await fnLocation();
|
await fnLocation();
|
||||||
await fnVehicle();
|
await fnVehicle();
|
||||||
await fnTruck();
|
await fnTruck();
|
||||||
});
|
});
|
||||||
const fnPerson = async () => {
|
|
||||||
const resData = await getSecurityPerson({});
|
|
||||||
data.unitsList = [resData.pd];
|
|
||||||
};
|
|
||||||
|
|
||||||
const fnSubmit = async () => {
|
const fnSubmit = async () => {
|
||||||
await useFormValidate(formRef);
|
await useFormValidate(formRef);
|
||||||
|
|
|
@ -35,14 +35,14 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6" :offset="18">
|
<!-- <el-col :span="6" :offset="18">
|
||||||
<el-form-item label-width="10px" class="end">
|
<el-form-item label-width="10px" class="end">
|
||||||
<el-button type="primary" @click="fnImportDialogChangeShow">
|
<el-button type="primary" @click="fnImportDialogChangeShow">
|
||||||
导入
|
导入
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="primary" @click="fnExport">导出</el-button>
|
<el-button type="primary" @click="fnExport">导出</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -188,6 +188,7 @@ const fnSubmitImport = async (formData) => {
|
||||||
fnImportDialogChangeShow();
|
fnImportDialogChangeShow();
|
||||||
fnResetPaginationTransfer();
|
fnResetPaginationTransfer();
|
||||||
};
|
};
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
const fnExport = async () => {
|
const fnExport = async () => {
|
||||||
const selectionData = tableRef.value.getSelectionRows();
|
const selectionData = tableRef.value.getSelectionRows();
|
||||||
if (selectionData.length === 0) {
|
if (selectionData.length === 0) {
|
||||||
|
|
|
@ -77,14 +77,14 @@
|
||||||
>
|
>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="6">
|
<!-- <el-col :span="6">
|
||||||
<el-form-item label-width="10px" class="end">
|
<el-form-item label-width="10px" class="end">
|
||||||
<el-button type="primary" @click="fnImportDialogChangeShow">
|
<el-button type="primary" @click="fnImportDialogChangeShow">
|
||||||
导入
|
导入
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button type="primary" @click="fnExport">导出</el-button>
|
<el-button type="primary" @click="fnExport">导出</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -244,6 +244,7 @@ const fnSubmitImport = async (formData) => {
|
||||||
fnResetPaginationTransfer();
|
fnResetPaginationTransfer();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
const fnExport = async () => {
|
const fnExport = async () => {
|
||||||
const selectionData = tableRef.value.getSelectionRows();
|
const selectionData = tableRef.value.getSelectionRows();
|
||||||
if (selectionData.length === 0) {
|
if (selectionData.length === 0) {
|
||||||
|
|
|
@ -94,11 +94,11 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<!-- <el-col :span="12">
|
||||||
<el-form-item label-width="10px" class="end">
|
<el-form-item label-width="10px" class="end">
|
||||||
<el-button>导出</el-button>
|
<el-button>导出</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
|
@ -64,11 +64,11 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<!-- <el-col :span="2">
|
||||||
<el-form-item label-width="10px" class="end">
|
<el-form-item label-width="10px" class="end">
|
||||||
<el-button @click="fnExport">导出</el-button>
|
<el-button @click="fnExport">导出</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -273,6 +273,7 @@ const fnStatusChange = debounce(
|
||||||
{ atBegin: true }
|
{ atBegin: true }
|
||||||
);
|
);
|
||||||
const buttonJurisdiction = await useButtonJurisdiction("hidden");
|
const buttonJurisdiction = await useButtonJurisdiction("hidden");
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
const fnExport = () => {
|
const fnExport = () => {
|
||||||
const selectionData = tableRef.value.getSelectionRows();
|
const selectionData = tableRef.value.getSelectionRows();
|
||||||
data.exportExcelDialog.ids = selectionData.map((item) => item.BEIDOU_ID);
|
data.exportExcelDialog.ids = selectionData.map((item) => item.BEIDOU_ID);
|
||||||
|
|
|
@ -86,14 +86,14 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="4">
|
<!-- <el-col :span="4">
|
||||||
<el-form-item label-width="10px" class="end">
|
<el-form-item label-width="10px" class="end">
|
||||||
<el-button type="primary" @click="fnImportDialogChangeShow"
|
<el-button type="primary" @click="fnImportDialogChangeShow"
|
||||||
>导入</el-button
|
>导入</el-button
|
||||||
>
|
>
|
||||||
<el-button type="primary" @click="fnExport">导出</el-button>
|
<el-button type="primary" @click="fnExport">导出</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -301,6 +301,7 @@ const fnSubmitImport = async (formData) => {
|
||||||
fnResetPaginationTransfer();
|
fnResetPaginationTransfer();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
const fnExport = async () => {
|
const fnExport = async () => {
|
||||||
const selectionData = tableRef.value.getSelectionRows();
|
const selectionData = tableRef.value.getSelectionRows();
|
||||||
if (selectionData.length === 0) {
|
if (selectionData.length === 0) {
|
||||||
|
|
|
@ -97,11 +97,11 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<!-- <el-col :span="2">
|
||||||
<el-form-item label-width="10px" class="end">
|
<el-form-item label-width="10px" class="end">
|
||||||
<el-button @click="fnExport">导出</el-button>
|
<el-button @click="fnExport">导出</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -317,6 +317,7 @@ const fnStatusChange = debounce(
|
||||||
{ atBegin: true }
|
{ atBegin: true }
|
||||||
);
|
);
|
||||||
const buttonJurisdiction = await useButtonJurisdiction("hidden");
|
const buttonJurisdiction = await useButtonJurisdiction("hidden");
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
const fnExport = () => {
|
const fnExport = () => {
|
||||||
const selectionData = tableRef.value.getSelectionRows();
|
const selectionData = tableRef.value.getSelectionRows();
|
||||||
data.exportExcelDialog.ids = selectionData.map((item) => item.INSURE_ID);
|
data.exportExcelDialog.ids = selectionData.map((item) => item.INSURE_ID);
|
||||||
|
|
|
@ -7,7 +7,11 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="维保车辆">
|
<el-form-item label="维保车辆">
|
||||||
<el-select v-model="form.PLATE_NUMBER" @change="getBusInfo">
|
<el-select
|
||||||
|
v-model="form.PLATE_NUMBER"
|
||||||
|
:disabled="form.MAINTENANCE_ID"
|
||||||
|
@change="getBusInfo"
|
||||||
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in data.vehicleList"
|
v-for="item in data.vehicleList"
|
||||||
:key="item.ID"
|
:key="item.ID"
|
||||||
|
@ -222,7 +226,7 @@
|
||||||
v-model:file-list="form.MAINTENANCEINFO"
|
v-model:file-list="form.MAINTENANCEINFO"
|
||||||
list-type="picture-card"
|
list-type="picture-card"
|
||||||
accept=".jpg,.jpeg,.png"
|
accept=".jpg,.jpeg,.png"
|
||||||
:limit="99"
|
:limit="4"
|
||||||
delete-to-server
|
delete-to-server
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
@ -299,9 +303,9 @@ const data = reactive({
|
||||||
});
|
});
|
||||||
const rules = {
|
const rules = {
|
||||||
VEHICLE: [{ required: true, message: "请输入", trigger: "blur" }],
|
VEHICLE: [{ required: true, message: "请输入", trigger: "blur" }],
|
||||||
CAR_OWNERS: [{ required: true, message: "请输入", trigger: "blur" }],
|
CAR_OWNERS: [{ required: true, message: "请输入车主业户", trigger: "blur" }],
|
||||||
TELEPHONE: [
|
TELEPHONE: [
|
||||||
{ 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:
|
||||||
|
@ -309,13 +313,16 @@ const rules = {
|
||||||
message: "请输入正确的手机号码",
|
message: "请输入正确的手机号码",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
REGISTRANT: [{ required: true, message: "请输入", trigger: "blur" }],
|
REGISTRANT: [{ required: true, message: "请输入登记人", trigger: "blur" }],
|
||||||
PROCESSING_DATE: [{ required: true, message: "请输入", trigger: "blur" }],
|
PROCESSING_DATE: [{ required: true, message: "请选择办理日期", trigger: "blur" }],
|
||||||
MAINTENANCE_LEVEL: [{ required: true, message: "请选择", trigger: "blur" }],
|
MAINTENANCE_LEVEL: [{ required: true, message: "请选择维保等级", trigger: "blur" }],
|
||||||
MAINTENANCE_CYCLE: [{ required: true, message: "请输入", trigger: "blur" }],
|
MAINTENANCE_CYCLE: [{ required: true, message: "请输入维保周期天数", trigger: "blur" }],
|
||||||
DUE_DATE: [{ required: true, message: "请输入", trigger: "blur" }],
|
KILOMETERS: [
|
||||||
REMINDER_DAYS: [{ required: true, message: "请输入", trigger: "blur" }],
|
{ required: true, message: "请输入维保公里数", trigger: "blur" },
|
||||||
REMINDER_DATE: [{ required: true, message: "请输入", trigger: "blur" }],
|
],
|
||||||
|
DUE_DATE: [{ required: true, message: "请选择到期日期", trigger: "blur" }],
|
||||||
|
REMINDER_DAYS: [{ required: true, message: "请选择提醒天数", trigger: "blur" }],
|
||||||
|
REMINDER_DATE: [{ required: true, message: "请选择提醒日期", trigger: "blur" }],
|
||||||
};
|
};
|
||||||
const getDueDate = () => {
|
const getDueDate = () => {
|
||||||
if (form.value.PROCESSING_DATE && form.value.MAINTENANCE_CYCLE) {
|
if (form.value.PROCESSING_DATE && form.value.MAINTENANCE_CYCLE) {
|
||||||
|
|
|
@ -7,7 +7,11 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<el-form-item label="维保车辆" prop="VEHICLE">
|
<el-form-item label="维保车辆" prop="VEHICLE">
|
||||||
<el-select v-model="form.VEHICLE" @change="getBusInfo">
|
<el-select
|
||||||
|
v-model="form.VEHICLE"
|
||||||
|
:disabled="true"
|
||||||
|
@change="getBusInfo"
|
||||||
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in data.vehicleList"
|
v-for="item in data.vehicleList"
|
||||||
:key="item.ID"
|
:key="item.ID"
|
||||||
|
|
|
@ -64,11 +64,11 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<!-- <el-col :span="2">
|
||||||
<el-form-item label-width="10px" class="end">
|
<el-form-item label-width="10px" class="end">
|
||||||
<el-button @click="fnExport">导出</el-button>
|
<el-button @click="fnExport">导出</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -291,6 +291,7 @@ const fnStatusChange = debounce(
|
||||||
{ atBegin: true }
|
{ atBegin: true }
|
||||||
);
|
);
|
||||||
const buttonJurisdiction = await useButtonJurisdiction("hidden");
|
const buttonJurisdiction = await useButtonJurisdiction("hidden");
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
const fnExport = () => {
|
const fnExport = () => {
|
||||||
const selectionData = tableRef.value.getSelectionRows();
|
const selectionData = tableRef.value.getSelectionRows();
|
||||||
data.exportExcelDialog.ids = selectionData.map((item) => item.MAINTENANCE_ID);
|
data.exportExcelDialog.ids = selectionData.map((item) => item.MAINTENANCE_ID);
|
||||||
|
|
|
@ -86,11 +86,11 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<!-- <el-col :span="2">
|
||||||
<el-form-item label-width="10px" class="end">
|
<el-form-item label-width="10px" class="end">
|
||||||
<el-button @click="fnExport">导出</el-button>
|
<el-button @click="fnExport">导出</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
@ -280,6 +280,7 @@ const fnDelete = debounce(
|
||||||
);
|
);
|
||||||
|
|
||||||
const buttonJurisdiction = await useButtonJurisdiction("hidden");
|
const buttonJurisdiction = await useButtonJurisdiction("hidden");
|
||||||
|
// eslint-disable-next-line no-unused-vars
|
||||||
const fnExport = () => {
|
const fnExport = () => {
|
||||||
const selectionData = tableRef.value.getSelectionRows();
|
const selectionData = tableRef.value.getSelectionRows();
|
||||||
data.exportExcelDialog.ids = selectionData.map((item) => item.OPERATIONS_ID);
|
data.exportExcelDialog.ids = selectionData.map((item) => item.OPERATIONS_ID);
|
||||||
|
|
|
@ -413,7 +413,7 @@ import {
|
||||||
infoAccidentInvestigation,
|
infoAccidentInvestigation,
|
||||||
} from "@/request/production_accident.js";
|
} from "@/request/production_accident.js";
|
||||||
import { addingPrefixFile } from "@/assets/js/utils.js";
|
import { addingPrefixFile } from "@/assets/js/utils.js";
|
||||||
import { getUserSelectListAll } from "@/request/user_practitioner.js";
|
import { getPractitionerSelectList } from "@/request/user_practitioner.js";
|
||||||
|
|
||||||
// 获取路由实例
|
// 获取路由实例
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
@ -582,7 +582,10 @@ fnGetData();
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
const fnGetUnitsList = async () => {
|
const fnGetUnitsList = async () => {
|
||||||
const resData = await getUserSelectListAll({});
|
const resData = await getPractitionerSelectList({
|
||||||
|
PARENT_ID: "0b62f92b0b624aab8e89a77304a64d5e",
|
||||||
|
BIANMA: "TRAFFIC_EMPLOYMENT_DRIVE",
|
||||||
|
});
|
||||||
data.unitsList = resData.userList;
|
data.unitsList = resData.userList;
|
||||||
};
|
};
|
||||||
fnGetUnitsList();
|
fnGetUnitsList();
|
||||||
|
|
|
@ -54,11 +54,11 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="18">
|
<!-- <el-col :span="18">
|
||||||
<el-form-item label-width="10px" class="end">
|
<el-form-item label-width="10px" class="end">
|
||||||
<el-button>导出</el-button>
|
<el-button>导出</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
|
@ -78,11 +78,11 @@
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="25">
|
<!-- <el-col :span="25">
|
||||||
<el-form-item label-width="10px" class="end">
|
<el-form-item label-width="10px" class="end">
|
||||||
<el-button>导出</el-button>
|
<el-button>导出</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>-->
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
<el-input
|
<el-input
|
||||||
v-model="form.MANAGEMENTAGREEMENTNAME"
|
v-model="form.MANAGEMENTAGREEMENTNAME"
|
||||||
placeholder="请输入名称"
|
placeholder="请输入名称"
|
||||||
|
maxlength="100"
|
||||||
style="width: 300px"
|
style="width: 300px"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
|
@ -115,7 +115,7 @@ const VITE_FILE_URL = import.meta.env.VITE_FILE_URL;
|
||||||
const { SAFETY_MEETING_ID } = route.query;
|
const { SAFETY_MEETING_ID } = route.query;
|
||||||
const detailItems = ref({
|
const detailItems = ref({
|
||||||
MEETING_TITLE: "",
|
MEETING_TITLE: "",
|
||||||
TRANSPORTATIONCOMPANY: "",
|
CORPINFO_ID: "",
|
||||||
HOST_PERSON: "",
|
HOST_PERSON: "",
|
||||||
RECORDER: "",
|
RECORDER: "",
|
||||||
MEETING_DATE_START: "",
|
MEETING_DATE_START: "",
|
||||||
|
|
|
@ -110,13 +110,12 @@ import {
|
||||||
layoutFnGetNotificationsClassification,
|
layoutFnGetNotificationsClassification,
|
||||||
addSecurityNotice,
|
addSecurityNotice,
|
||||||
} from "@/request/safety_production_related.js";
|
} from "@/request/safety_production_related.js";
|
||||||
import { onMounted, reactive, ref } from "vue";
|
import { 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 SelectPerson 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 { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
const formRef = ref(null);
|
const formRef = ref(null);
|
||||||
const rules = {
|
const rules = {
|
||||||
|
@ -144,7 +143,7 @@ const router = useRouter();
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
form: {
|
form: {
|
||||||
TITLE: "",
|
TITLE: "",
|
||||||
TRANSPORTATIONCOMPANY: "",
|
CORPINFO_ID: "",
|
||||||
LEVEL: "",
|
LEVEL: "",
|
||||||
PERSON: "",
|
PERSON: "",
|
||||||
fileList: [],
|
fileList: [],
|
||||||
|
@ -152,18 +151,9 @@ const data = reactive({
|
||||||
NOTIFICATIONCONTENT: "",
|
NOTIFICATIONCONTENT: "",
|
||||||
allStatus: 0, // 是否全选
|
allStatus: 0, // 是否全选
|
||||||
REPLYSTATUS: "",
|
REPLYSTATUS: "",
|
||||||
personList: [],
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(async () => {
|
|
||||||
await fnPerson();
|
|
||||||
});
|
|
||||||
const fnPerson = async () => {
|
|
||||||
const resData = await getSecurityPerson({});
|
|
||||||
data.personList = [resData.pd];
|
|
||||||
};
|
|
||||||
|
|
||||||
const fnSubmit = async () => {
|
const fnSubmit = async () => {
|
||||||
await useFormValidate(formRef);
|
await useFormValidate(formRef);
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
|
|
|
@ -109,15 +109,14 @@
|
||||||
import {
|
import {
|
||||||
layoutFnGetNotificationsClassification,
|
layoutFnGetNotificationsClassification,
|
||||||
editSecurityNotice,
|
editSecurityNotice,
|
||||||
getSecurityNoticeInfo
|
getSecurityNoticeInfo,
|
||||||
} from "@/request/safety_production_related.js";
|
} from "@/request/safety_production_related.js";
|
||||||
import { onMounted, reactive, ref } from "vue";
|
import { 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 SelectPerson 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 { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
import { addingPrefixToFile } from "@/assets/js/utils.js";
|
import { addingPrefixToFile } from "@/assets/js/utils.js";
|
||||||
const formRef = ref(null);
|
const formRef = ref(null);
|
||||||
|
@ -150,7 +149,7 @@ const router = useRouter();
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
form: {
|
form: {
|
||||||
TITLE: "",
|
TITLE: "",
|
||||||
TRANSPORTATIONCOMPANY: "",
|
CORPINFO_ID: "",
|
||||||
LEVEL: "",
|
LEVEL: "",
|
||||||
PERSON: "",
|
PERSON: "",
|
||||||
fileList: [],
|
fileList: [],
|
||||||
|
@ -158,18 +157,9 @@ const data = reactive({
|
||||||
NOTIFICATIONCONTENT: "",
|
NOTIFICATIONCONTENT: "",
|
||||||
allStatus: 0, // 是否全选
|
allStatus: 0, // 是否全选
|
||||||
REPLYSTATUS: "",
|
REPLYSTATUS: "",
|
||||||
personList: [],
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(async () => {
|
|
||||||
await fnPerson();
|
|
||||||
});
|
|
||||||
const fnPerson = async () => {
|
|
||||||
const resData = await getSecurityPerson({});
|
|
||||||
data.personList = [resData.pd];
|
|
||||||
};
|
|
||||||
|
|
||||||
const fnSubmit = async () => {
|
const fnSubmit = async () => {
|
||||||
await useFormValidate(formRef);
|
await useFormValidate(formRef);
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
|
@ -179,7 +169,7 @@ const fnSubmit = async () => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
formData.append("PERSON_ID", data.form.PERSON_ID);
|
formData.append("PERSON_ID", data.form.PERSON_ID);
|
||||||
if(data.form.fileList !== "" || data.form.videoList !== "" ) {
|
if (data.form.fileList !== "" || data.form.videoList !== "") {
|
||||||
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);
|
||||||
|
@ -221,16 +211,16 @@ const fnGetData = async () => {
|
||||||
if (!NOTIFICATION_ID) return;
|
if (!NOTIFICATION_ID) return;
|
||||||
const resData = await getSecurityNoticeInfo({ NOTIFICATION_ID });
|
const resData = await getSecurityNoticeInfo({ NOTIFICATION_ID });
|
||||||
data.form = resData.pd;
|
data.form = resData.pd;
|
||||||
data.form.PERSON = resData.names[0].NAME
|
data.form.PERSON = resData.names[0].NAME;
|
||||||
data.form.fileList = addingPrefixToFile([
|
data.form.fileList = addingPrefixToFile([
|
||||||
{
|
{
|
||||||
FILEPATH: data.form.ATTACHMENT_ROUTE
|
FILEPATH: data.form.ATTACHMENT_ROUTE,
|
||||||
}
|
},
|
||||||
]);
|
]);
|
||||||
data.form.videoList = addingPrefixToFile([
|
data.form.videoList = addingPrefixToFile([
|
||||||
{
|
{
|
||||||
FILEPATH: data.form.VIDEO_ROUTE
|
FILEPATH: data.form.VIDEO_ROUTE,
|
||||||
}
|
},
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
fnGetData();
|
fnGetData();
|
||||||
|
|
|
@ -66,7 +66,9 @@
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="POSTSTATUS" label="发布状态" width="200">
|
<el-table-column prop="POSTSTATUS" label="发布状态" width="200">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-tag v-if="row.POSTSTATUS === '0'" type = "warning ">待发布</el-tag>
|
<el-tag v-if="row.POSTSTATUS === '0'" type="warning "
|
||||||
|
>待发布</el-tag
|
||||||
|
>
|
||||||
<el-tag v-else type="success">已发布</el-tag>
|
<el-tag v-else type="success">已发布</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
@ -173,7 +175,7 @@ import {
|
||||||
layoutFnGetNotificationsClassification,
|
layoutFnGetNotificationsClassification,
|
||||||
dateteSecurityAllNotice,
|
dateteSecurityAllNotice,
|
||||||
dateteSecurityNotice,
|
dateteSecurityNotice,
|
||||||
issueSecurityNotice
|
issueSecurityNotice,
|
||||||
} from "@/request/safety_production_related.js";
|
} from "@/request/safety_production_related.js";
|
||||||
import { ElMessageBox, ElMessage } from "element-plus";
|
import { ElMessageBox, ElMessage } from "element-plus";
|
||||||
import { debounce } from "throttle-debounce";
|
import { debounce } from "throttle-debounce";
|
||||||
|
@ -187,7 +189,7 @@ const { list, pagination, searchForm, fnGetData, fnResetPagination } =
|
||||||
useListData(getSecurityNoticeList);
|
useListData(getSecurityNoticeList);
|
||||||
const fnResetPaginationTransfer = () => {
|
const fnResetPaginationTransfer = () => {
|
||||||
fnResetPagination({
|
fnResetPagination({
|
||||||
DEPTIDS: searchForm.value.DEPTIDS?.join(",")
|
DEPTIDS: searchForm.value.DEPTIDS?.join(","),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const fnBatchDelete = debounce(
|
const fnBatchDelete = debounce(
|
||||||
|
@ -214,7 +216,7 @@ const relatedClassificationList = ref(null);
|
||||||
// 删除事件
|
// 删除事件
|
||||||
const deleteItem = async (value) => {
|
const deleteItem = async (value) => {
|
||||||
await ElMessageBox.confirm(`确定要删除吗?`, {
|
await ElMessageBox.confirm(`确定要删除吗?`, {
|
||||||
type: "warning"
|
type: "warning",
|
||||||
});
|
});
|
||||||
await dateteSecurityNotice({ NOTIFICATION_ID: value });
|
await dateteSecurityNotice({ NOTIFICATION_ID: value });
|
||||||
ElMessage.success("删除成功");
|
ElMessage.success("删除成功");
|
||||||
|
@ -223,7 +225,7 @@ const deleteItem = async (value) => {
|
||||||
|
|
||||||
const issueItem = async (value) => {
|
const issueItem = async (value) => {
|
||||||
await ElMessageBox.confirm(`确定要发布此条通知吗?`, {
|
await ElMessageBox.confirm(`确定要发布此条通知吗?`, {
|
||||||
type: "warning"
|
type: "warning",
|
||||||
});
|
});
|
||||||
await issueSecurityNotice({ NOTIFICATION_ID: value });
|
await issueSecurityNotice({ NOTIFICATION_ID: value });
|
||||||
ElMessage.success("发布成功");
|
ElMessage.success("发布成功");
|
||||||
|
|
|
@ -76,7 +76,7 @@ const { NOTIFICATION_ID } = route.query;
|
||||||
const detailItems = ref({
|
const detailItems = ref({
|
||||||
LEVEL: "",
|
LEVEL: "",
|
||||||
PERSON: "",
|
PERSON: "",
|
||||||
TRANSPORTATIONCOMPANY: "",
|
CORPINFO_ID: "",
|
||||||
NOTIFICATIONCONTENT: "",
|
NOTIFICATIONCONTENT: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue