flat:9-11暂存

This commit is contained in:
史典卓
2024-09-11 15:10:55 +08:00
parent 1016f6f3f3
commit c40af81ac4
21 changed files with 1339 additions and 1292 deletions

View File

@@ -198,6 +198,7 @@
:page.sync="logPage"
@size-change="logSizeChange"
@current-change="logCurrentChange"
ref="logCrud"
>
<!-- <template slot="menuLeft">
<el-button @click="addNewLog" icon="el-icon-plus" type="primary" size="mini">添加</el-button>
@@ -206,6 +207,13 @@
<el-button type="text" @click="editLogInfo(row.id)" icon="el-icon-edit" size="mini">修改</el-button>
<el-button type="text" @click="editLogInfo(row.id)" icon="el-icon-edit" size="mini">查看附件</el-button>
</template> -->
<template slot-scope="{row,index}" slot="menu">
<el-button type="text" icon="el-icon-edit" size="small"
v-if="row.serveTheme !== '人工推送岗位' && row.serveTheme !== '人工推送政策'"
@click="$refs.logCrud.rowEdit(row, index)"
>编辑
</el-button>
</template>
</avue-crud>
</el-drawer>
<!--新建 编辑分组dialog-->
@@ -313,7 +321,83 @@ export default {
list: []
},
phoneItem: null,
depTree: []
depTree: [],
logOption: {
editBtn: false,
delBtn: true,
addBtn: true,
viewBtn: true,
border: true,
index: true,
indexLabel: "序号",
refreshBtn: false,
dialogType: "drawer",
height: '100',
column: [{
label: '服务时间',
prop: 'createTime',
type: 'date',
format: "yyyy-MM-dd",
valueFormat: "yyyy-MM-dd HH:mm:ss",
rules: [
{
required: true,
message: "请选择服务时间",
trigger: "blur",
},
],
}, {
label: '服务名称',
prop: 'serveName',
display: false,
}, {
label: '服务发起人',
prop: 'fromName',
display: false,
}, {
label: '服务对象',
prop: 'toName',
display: false,
}, {
label: '服务类型',
prop: 'serveType',
type: 'select',
dicData: [
{label: '普通日志', value: 0},
{label: '回访日志', value: 1},
{label: '推送岗位日志', value: 2},
{label: '推送政策日志', value: 3},
],
display: false,
}, {
label: '服务主题',
prop: 'serveTheme',
rules: [
{
required: true,
message: "请输入服务主题",
trigger: "blur",
},
],
}, {
label: '服务内容',
span: 24,
prop: 'serveContent',
type: 'textarea',
rules: [
{
required: true,
message: "请输入服务内容",
trigger: "blur",
},
],
}, {
label: '备注说明',
span: 24,
type: 'textarea',
prop: 'bak1'
}]
}
}
},
computed: {
@@ -615,84 +699,6 @@ export default {
]
}
},
logOption() {
return {
editBtn: true,
delBtn: true,
addBtn: true,
viewBtn: true,
border: true,
index: true,
indexLabel: "序号",
refreshBtn: false,
dialogType: "drawer",
height: '100',
column: [{
label: '服务时间',
prop: 'createTime',
type: 'date',
format: "yyyy-MM-dd",
valueFormat: "yyyy-MM-dd HH:mm:ss",
rules: [
{
required: true,
message: "请选择服务时间",
trigger: "blur",
},
],
}, {
label: '服务名称',
prop: 'serveName',
display: false,
}, {
label: '服务发起人',
prop: 'fromName',
display: false,
}, {
label: '服务对象',
prop: 'toName',
display: false,
}, {
label: '服务类型',
prop: 'serveType',
type: 'select',
dicData: [
{label: '普通日志', value: 0},
{label: '回访日志', value: 1},
{label: '推送岗位日志', value: 2},
{label: '推送政策日志', value: 3},
],
display: false,
}, {
label: '服务主题',
prop: 'serveTheme',
rules: [
{
required: true,
message: "请输入服务主题",
trigger: "blur",
},
],
}, {
label: '服务内容',
span: 24,
prop: 'serveContent',
type: 'textarea',
rules: [
{
required: true,
message: "请输入服务内容",
trigger: "blur",
},
],
}, {
label: '备注说明',
span: 24,
type: 'textarea',
prop: 'bak1'
}]
}
},
},
created() {
this.initDept();
@@ -702,6 +708,13 @@ export default {
this.getDept()
},
methods: {
// rowStyle(column) {
// if (column.row.serveTheme === '人工推送岗位' || column.row.serveTheme === '人工推送政策') {
// this.logOption.editBtn = true
// } else {
// this.logOption.editBtn = false
// }
// },
async getDept() {
let params = {
tenantId: '000000'
@@ -733,7 +746,8 @@ export default {
}).then(async (res) => {
let params = {
idNumber: _this.phoneItem.idNumber,
phone
phone,
serveId: this.selectInfo.id,
}
let resData = await phoneUpdate(params)
if (resData.data.code === 200) {

View File

@@ -235,11 +235,11 @@
back-text="不符合"
dialogWidth="60%"
:isInputInfo="false"
:placeholder="`请输入不符合潜在 ${selectGroupName} 的具体原因`"
:placeholder="`请输入不符合 ${selectGroupName} 的具体原因`"
:sub-title="[
`请核实人员相关信息进行以下操作`,
`符合表示为已初步判定该人员符合 ${selectGroupName} 相关条件但仍需与该人员主动联系并进一步核实最终以省就业3.0实际政策经办情况为准`,
`不符合表示经核查后该人员不符合 ${selectGroupName} 相关条件并将该人员从潜在的{就业困难}列表中剔除`,
`不符合表示经核查后该人员不符合 ${selectGroupName} 相关条件并将该人员从 ${selectGroupName} 列表中剔除`,
'核实完成后会产生服务日志记录'
]"
:tips="dialogTips"
@@ -896,7 +896,7 @@ export default {
this.selectGroupName = groupInfo.groupName
switch (groupInfo.groupName) {
case '潜在就业困难人员':
this.dialogTips = ['人员已死亡', '已经进行就业登记', '享受养老保险待遇', '不满足男性大于等于50岁女性大于等于40岁', '不满足失业登记一年以上', '存在工商信息']
this.dialogTips = ['人员已死亡', '已经进行就业登记', '享受养老保险待遇', '不满足男性大于等于50岁女性大于等于40岁', '不满足失业登记一年以上', '存在工商信息']
break
case '潜在登记失业人员':
this.dialogTips = ['不满足断保3个月', '存在工商信息']
@@ -908,10 +908,10 @@ export default {
this.dialogTips = ['已经进行就业登记', '存在工商信息', '不是以个人身份参保']
break
case '潜在公益性岗位申请人员':
this.dialogTips = ['人员已死亡', '已经进行就业登记', '享受养老保险待遇', '不满足男性大于等于50岁女性大于等于40岁', '不满足失业登记一年以上', '存在工商信息']
this.dialogTips = ['人员已死亡', '已经进行就业登记', '享受养老保险待遇', '不满足男性大于等于50岁女性大于等于40岁', '不满足失业登记一年以上', '存在工商信息']
break
case '潜在就业见习申请人员':
this.dialogTips = ['已就业登记', '不满足16-24岁']
this.dialogTips = ['已经进行就业登记', '不满足16-24岁']
break
default :
this.dialogTips = []
@@ -936,7 +936,7 @@ export default {
return talentsApproval(params);
})
.then(() => {
this.initDept();
// this.initDept();
this.onLoad(this.page, this.query);
this.dialogFlag = false
this.$message.success('操作成功');
@@ -964,8 +964,8 @@ export default {
return talentsApproval(params);
})
.then(() => {
this.initDept();
this.onLoad(this.page, this.query);
// this.initDept();
// this.onLoad(this.page, this.query);
this.dialogFlag = false
this.$message.success('操作成功');
});

View File

@@ -0,0 +1,263 @@
<template>
<el-row>
<basic-container>
<avue-crud
:option="option"
:table-loading="loading"
:data="dataSource"
:page.sync="page"
ref="crud"
v-model="crudValues"
:permission="permissionList"
@search-change="searchChange"
@search-reset="searchReset"
@current-change="currentChange"
@size-change="sizeChange"
class="customPage"
:row-style="rowStyle"
>
</avue-crud>
</basic-container>
</el-row>
</template>
<script>
import {mapGetters} from "vuex";
import {getList} from "@/api/tenant/personnelserve";
import {isvalidatemobile} from "@/util/validate";
import {detail, getDept, getDeptMyTree, talentsDetail} from "@/api/tenant/talents";
import {addServeLog, getMainServeUserLog, removeServeLog, updateServeLog} from "@/api/tenant/serve";
import {getTenantTalentsWarn, tenantTalentsWarn, updateTenantTalentsWarn} from "@/api/tenant/LocalWarningDisposal";
import {getServeLogList} from '@/api/tenant/serverRecords'
const page = {
pageSize: 10,
currentPage: 1,
total: 0,
}
const baseOptions = {
size: 'medium',
dateBtn: false,
addBtn: false,
editBtn: false,
viewBtn: false,
delBtn: false,
height: "auto",
menuWidth: 130,
reserveSelection: false,
border: true,
columnBtn: false,
refreshBtn: false,
menu: false,
tip: false,
selection: false,
align: 'center',
searchMenuSpan: 6,
// dialogType: "drawer",
searchLabelWidth: 60,
}
export default {
filters: {
ellipsis(value) {
if (!value) return "";
if (value.length > 15) {
return value.slice(0, 14) + "...";
}
return value;
},
},
data() {
return {
loading: false,
dataSource: [],
crudValues: {},
depTree: [],
page: Object.assign({}, page),
logPage: Object.assign({}, page),
logDataSource: [],
loadingLog: false,
innerDrawerLog: false,
innerDrawerAddLog: false,
logValues: {}
}
},
computed: {
...mapGetters(["permission", "userInfo"]),
permissionList() {
return {
addBtn: this.vaildData(this.permission.tenant_main_talents_latent_index_add, false),
viewBtn: true,
delBtn: this.vaildData(this.permission.tenant_main_talents_latent_index_del, false),
editBtn: this.vaildData(this.permission.tenant_main_talents_latent_index_edit, false),
};
},
option() {
const self = this;
const IdCardNo = (rule, value, callback) => {
// if (check18IdCardNo(value)) {
callback();
// } else {
// callback(new Error("身份证格式不正确"));
// }
};
const validateTel = (rule, value, callback) => {
if (isvalidatemobile(value)[0]) {
callback(new Error(isvalidatemobile(value)[1]));
} else {
callback();
}
};
return {
...baseOptions,
column: [
{
label: "所属机构",
prop: "deptId",
type: "tree",
multiple: false,
hide: true,
search: true,
dicData: this.depTree,
props: {
label: "title",
value: 'value'
},
searchSpan: 8,
searchLabelWidth: 100,
},
{
label: "姓名",
prop: "name",
display: false
},
{
label: "身份证",
prop: "idNumber",
search: true,
display: false,
searchSpan: 8,
},
{
label: '机构名称',
prop: 'deptName',
display: false
},
{
label: '服务主题',
prop: 'serveTheme',
display: false
},
{
label: '服务时间',
prop: 'time',
display: false
},
{
label: "开始时间",
prop: "stime",
type: "date",
placeholder: "请选开始日期",
search: true,
hide: true,
format: "yyyy-MM-dd",
valueFormat: "yyyy-MM-dd",
searchLabelWidth: 100,
searchValue: this.getdate(),
searchSpan: 8,
},
{
label: "结束时间",
prop: "etime",
type: "date",
placeholder: "请选择结束日期",
search: true,
hide: true,
format: "yyyy-MM-dd",
valueFormat: "yyyy-MM-dd",
searchLabelWidth: 100,
searchSpan: 8,
},
]
}
},
},
created() {
this.getDept()
this.onLoad(this.page, {...this.query, stime: this.getdate()})
},
activated() {
this.$nextTick(() => {
this.$refs.crud.refreshTable()
})
},
methods: {
rowStyle(column) {
if (column.row.status == "0") {
this.option.editBtn = true;
} else {
this.option.editBtn = false;
}
},
async getDept() {
let params = {
tenantId: '000000'
}
let resData = await getDeptMyTree(params)
if (resData.data.code === 200) {
this.depTree = resData.data.data
}
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
this.onLoad(this.page, this.query);
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
this.onLoad(this.page, this.query);
},
onLoad(page, params = {}) {
const {releaseTimeRange} = params;
let paramsed = {
current: page.currentPage,
pageSize: page.pageSize,
...params
};
this.loading = true;
getServeLogList(paramsed).then((res) => {
const {total, size, current, records, page} = res.data.data
this.dataSource = records;
this.loading = false;
this.page = {
pageSize: size,
currentPage: current,
total: total,
}
});
},
getdate() {
let time = new Date();
let day = ("0" + time.getDate()).slice(-2);
let month = ("0" + (time.getMonth() + 1)).slice(-2);
let today = time.getFullYear() + "-" + month + "-" + day;
return today;
},
}
}
</script>
<style lang="scss" scoped>
</style>