lcw
This commit is contained in:
@ -162,9 +162,10 @@ const getList = () => {
|
||||
const promes = {
|
||||
...pageData.pageConfiger,
|
||||
...queryFrom.value,
|
||||
ssbakk:userInfo.pxgs,
|
||||
ssbakkId:userInfo.pxgsid
|
||||
ssbakk:userInfo.pxgs,
|
||||
ssbakkId:userInfo.pxgsid,
|
||||
}
|
||||
|
||||
qcckPost(promes,'/mosty-base/bans/njxx/page').then(res => {
|
||||
pageData.tableData = res.records || [];
|
||||
pageData.total = res.total;
|
||||
|
||||
@ -81,7 +81,7 @@ const trainingCompany=ref()
|
||||
const onBatchAudit = (val) => {
|
||||
if (ids.value.length === 0) return ElMessage.warning("请选择要送培的人员");
|
||||
proxy.$modal.confirm("是否确认送培?").then(() => {
|
||||
let params = { ids:ids.value ,...val}
|
||||
let params = { ids: ids.value, ...val }
|
||||
qcckPost(params,'/mosty-base/bans/njxx/sendTraining').then(res=>{
|
||||
ElMessage.success("送培成功");
|
||||
emit('refresh');
|
||||
|
||||
@ -6,12 +6,12 @@
|
||||
</div>
|
||||
<div class="cntinfo">
|
||||
<!-- 标签 -->
|
||||
<ul class="tag-box">
|
||||
<li class="tag_item" :class="detail.pxgsShzt == 0 ? 'dsh_item' : detail.pxgsShzt == 1 ? 'tgg_item' : 'jtb_item'">
|
||||
<!-- <ul class="tag-box">
|
||||
<li class="tag_item" :class="detail.pxgsShzt == 0 ? 'dsh_item' : detail.pxgsShzt == 1 ? 'tgg_item' : 'jtb_item'"> -->
|
||||
<!-- 0-待审核 1-通过 2-驳回 -->
|
||||
{{ detail.pxgsShzt == 0 ? '待审核' : detail.pxgsShzt == 1 ? '通过' : '驳回' }}
|
||||
<!-- {{ detail.pxgsShzt == 0 ? '待审核' : detail.pxgsShzt == 1 ? '通过' : '驳回' }}
|
||||
</li>
|
||||
</ul>
|
||||
</ul> -->
|
||||
<!-- 内容描述 -->
|
||||
<el-descriptions class="desc" :column="3" border label-width="200px">
|
||||
<el-descriptions-item label="保安公司名称">{{ detail.ssbakk }}</el-descriptions-item>
|
||||
@ -97,7 +97,7 @@
|
||||
<script setup>
|
||||
import { ref, defineEmits } from 'vue';
|
||||
const emit = defineEmits(["refresh"]);
|
||||
const baseUrl = '/bagl/mosty-base/minio/image/download'
|
||||
const baseUrl = '/bagl/mosty-base/minio/image/download/'
|
||||
const props = defineProps({
|
||||
dic: {
|
||||
default: [[]], //二维数组
|
||||
@ -173,7 +173,7 @@ defineExpose({ init })
|
||||
color: #0072FF;
|
||||
border: 5px solid #0072FF;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.desc {
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
|
||||
<script setup>
|
||||
import { qcckPost } from "@/api/qcckApi.js";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { ref, reactive, defineExpose, getCurrentInstance, defineEmits } from 'vue'
|
||||
const visible = ref(false);
|
||||
const dataList = ref()
|
||||
@ -38,9 +39,13 @@ const init = () => {
|
||||
})
|
||||
}
|
||||
const onBatchAudit = () => {
|
||||
const data=dataList.value.find(item=>item.ssbakkId===dataValue.value)
|
||||
emit('onBatchAudit', data)
|
||||
const data = dataList.value.find(item => item.companyId === dataValue.value)
|
||||
if (data) {
|
||||
emit('onBatchAudit', data)
|
||||
close()
|
||||
} else {
|
||||
ElMessage.warning("请选择培训公司")
|
||||
}
|
||||
}
|
||||
const close = () => {
|
||||
visible.value = false;
|
||||
|
||||
@ -16,6 +16,9 @@
|
||||
@chooseData="chooseData">
|
||||
<template #sptz="{ row }">
|
||||
<DictTag :value="row.sptz" :tag="false" :options="D_BA_SPZT" />
|
||||
</template>
|
||||
<template #whcd="{ row }">
|
||||
<DictTag :value="row.whcd" :tag="false" :options="D_BZ_WHCD" />
|
||||
</template>
|
||||
<!-- 操作 -->
|
||||
<template #controls="{ row }">
|
||||
@ -96,7 +99,7 @@ const pageData = reactive({
|
||||
{ label: "姓名", prop: "xm" },
|
||||
{ label: "身份证号码", prop: "sfzhm",showOverflowTooltip: true },
|
||||
{ label: "电话", prop: "dh" },
|
||||
{ label: "文化程度", prop: "whcd" },
|
||||
{ label: "文化程度", prop: "whcd", showSolt: true },
|
||||
{ label: "证书编号", prop: "zsbh", showOverflowTooltip: true },
|
||||
{ label: "服务行业", prop: "fwxymc" },
|
||||
{ label: "入职时间", prop: "rzsj" },
|
||||
|
||||
@ -6,12 +6,12 @@
|
||||
</div>
|
||||
<div class="cntinfo">
|
||||
<!-- 标签 -->
|
||||
<ul class="tag-box">
|
||||
<li class="tag_item" :class="detail.pxgsShzt == 0 ? 'dsh_item' : detail.pxgsShzt == 1 ? 'tgg_item' : 'jtb_item'">
|
||||
<!-- <ul class="tag-box">
|
||||
<li class="tag_item" :class="detail.pxgsShzt == 0 ? 'dsh_item' : detail.pxgsShzt == 1 ? 'tgg_item' : 'jtb_item'"> -->
|
||||
<!-- 0-待审核 1-通过 2-驳回 -->
|
||||
{{ detail.pxgsShzt == 0 ? '待审核' : detail.pxgsShzt == 1 ? '通过' : '驳回' }}
|
||||
<!-- {{ detail.pxgsShzt == 0 ? '待审核' : detail.pxgsShzt == 1 ? '通过' : '驳回' }}
|
||||
</li>
|
||||
</ul>
|
||||
</ul> -->
|
||||
<!-- 内容描述 -->
|
||||
<el-descriptions class="desc" :column="3" border label-width="200px">
|
||||
<el-descriptions-item label="保安公司名称">{{ detail.ssbakk }}</el-descriptions-item>
|
||||
@ -100,7 +100,7 @@ import { ref, computed, defineEmits, getCurrentInstance,defineProps } from 'vue'
|
||||
import { qcckPost } from "@/api/qcckApi.js";
|
||||
const emit = defineEmits(["refresh"]);
|
||||
const { proxy } = getCurrentInstance();
|
||||
const baseUrl = '/bagl/mosty-base/minio/image/download'
|
||||
const baseUrl = '/bagl/mosty-base/minio/image/download/'
|
||||
const props = defineProps({
|
||||
dic: {
|
||||
default: [[]], //二维数组
|
||||
@ -118,7 +118,7 @@ const init = (type, row,) => {
|
||||
let zj = res.sfzzfmj.split(',');
|
||||
res.sfzzm = [zj[0]];
|
||||
res.sfzfm = [zj[1]];
|
||||
detail.value = res || {};
|
||||
detail.value = res || {};
|
||||
})
|
||||
};
|
||||
|
||||
@ -174,7 +174,7 @@ defineExpose({ init })
|
||||
color: #0072FF;
|
||||
border: 5px solid #0072FF;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.desc {
|
||||
|
||||
@ -48,7 +48,7 @@ import MyTable from "@/components/aboutTable/MyTable.vue";
|
||||
import Pages from "@/components/aboutTable/Pages.vue";
|
||||
import Search from "@/components/aboutTable/Search.vue";
|
||||
import DetailForm from "./components/detailForm.vue";
|
||||
import Steps from "./components/steps.vue";
|
||||
import Steps from "@/components/steps.vue";
|
||||
import ShForm from "./components/shForm.vue";
|
||||
import {getItem} from '@/utils/storage.js'
|
||||
import { qcckPost } from "@/api/qcckApi.js";
|
||||
@ -63,7 +63,7 @@ const shForm = ref();
|
||||
const searchBox = ref(); //搜索框
|
||||
const selectedRows = ref([]);
|
||||
const searchConfiger = ref([
|
||||
|
||||
|
||||
{
|
||||
label: "姓名",
|
||||
prop: "xm",
|
||||
@ -133,9 +133,9 @@ const getList = () => {
|
||||
const promes = {
|
||||
...pageData.pageConfiger,
|
||||
...queryFrom.value,
|
||||
ssbakk:userInfo.pxgs,
|
||||
ssbakkId:userInfo.pxgsid,
|
||||
pxgsShzt:'1',//保安公司已通过
|
||||
sptzCompanyName:userInfo.pxgs,
|
||||
sptzCompanyId:userInfo.pxgsid,
|
||||
// pxgsShzt:'1',//保安公司已通过
|
||||
sptz:'1',//已送培
|
||||
}
|
||||
qcckPost(promes,'/mosty-base/bans/njxx/page').then((res) => {
|
||||
|
||||
@ -100,7 +100,7 @@
|
||||
{ label: "签到状态", prop: "qdztdm",showSolt: true },
|
||||
{ label: "签到时间", prop: "qdsj" },
|
||||
]
|
||||
});
|
||||
});
|
||||
|
||||
const init = (type, row) => {
|
||||
visible.value = true
|
||||
@ -111,7 +111,13 @@ const init = (type, row) => {
|
||||
qcckPost({},'/mosty-base/bans/pxqd-item/getDetailInfo/'+row.id).then(res=>{
|
||||
formData.value = { ...res }
|
||||
delete formData.value.personAndNjxxList;
|
||||
pageData.tableData = res.personAndNjxxList || [];
|
||||
pageData.tableData = res.personAndNjxxList.map(item => {
|
||||
return {
|
||||
...item,
|
||||
ssbakkId: item.bakkid,
|
||||
ssbakk: item.bakkmc,
|
||||
}
|
||||
}) || [];
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -120,7 +126,6 @@ const openPeoList = () => {
|
||||
if(disabled.value) return;
|
||||
shoewList.value = true;
|
||||
}
|
||||
|
||||
// 删除
|
||||
const deleteItem = (row) => {
|
||||
pageData.tableData = pageData.tableData.filter(it=>it.id != row.id);
|
||||
@ -133,8 +138,15 @@ const choosedList = (list) => {
|
||||
}
|
||||
|
||||
const save = () => {
|
||||
FormRef.value.submit((val) => {
|
||||
let data = { pxqdItem:{ ...val } ,pxqdPersons:pageData.tableData }
|
||||
FormRef.value.submit((val) => {
|
||||
const tableData = pageData.tableData.map(item => {
|
||||
return {
|
||||
...item,
|
||||
bakkid: item.ssbakkId,
|
||||
bakkmc: item.ssbakk,
|
||||
}
|
||||
})
|
||||
let data = { pxqdItem: { ...val }, pxqdPersons: tableData }
|
||||
qcckPost(data,'/mosty-base/bans/pxqd-item/addWithPersons').then(res=>{
|
||||
ElMessage.success('保存成功');
|
||||
emit('refresh')
|
||||
@ -142,7 +154,7 @@ const save = () => {
|
||||
close()
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
const close = () => {
|
||||
FormRef.value?.reset();
|
||||
@ -159,4 +171,4 @@ defineExpose({
|
||||
padding: 20px 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user