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