flat: 暂存

This commit is contained in:
Apcallover
2024-05-13 18:27:25 +08:00
parent 26dca7884c
commit 5f4363ce89
5 changed files with 261 additions and 107 deletions

View File

@@ -6,6 +6,7 @@
:before-close="handleClose"
append-to-body>
<span>{{ subTitle }}</span>
<div v-if="status === 1">
<div class="input_box">
<el-input type="textarea" v-model="input" placeholder="请输入内容"></el-input>
</div>
@@ -15,10 +16,11 @@
}}
</div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="handleClose"> </el-button>
<el-button type="warning" @click="handleCancel">驳回</el-button>
<el-button type="primary" @click="handleConfirm"> </el-button>
<el-button :type="btnTypes[status]" @click="handleCancel"> </el-button>
<el-button type="primary" @click="handleConfirm"> </el-button>
</span>
</el-dialog>
</template>
@@ -33,11 +35,18 @@ const classEnum = {
largeXX: '146px',
largeXXL: '186px',
}
const btnTypes = {
0: 'warning',
1: 'danger'
}
export default {
name: "promptDialog",
data() {
return {
btnTypes,
input: '',
status: 0,
btnType: ''
}
},
props: {
@@ -63,6 +72,7 @@ export default {
visible(val) {
if (val) {
this.input = ''
this.status = 0
}
}
},
@@ -72,7 +82,11 @@ export default {
this.$emit('onClose')
},
handleCancel() {
if (this.status) {
this.$emit('onCancel', this.input)
} else {
this.status = 1
}
},
handleConfirm() {
this.$emit('onConfirm', this.input)

View File

@@ -117,6 +117,19 @@ let leftUserOptions = {
}, {
label: '姓别',
prop: 'aac004',
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC004",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入性别",
trigger: "blur",
},
],
}, {
label: '身份证',
prop: 'idNumber',
@@ -127,9 +140,35 @@ let leftUserOptions = {
}, {
label: "民族",
prop: "aac005",
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC005",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入民族",
trigger: "blur",
},
],
}, {
label: "户口性质",
prop: "aac009",
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC009",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入户口性质",
trigger: "blur",
},
],
}, {
label: "户口所在地",
prop: "aac010",
@@ -137,6 +176,19 @@ let leftUserOptions = {
}, {
label: "文化程度",
prop: "aac011",
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC011",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入文化程度",
trigger: "blur",
},
],
}, {
label: '个人标签',
prop: 'labelsBase',

View File

@@ -300,7 +300,7 @@ export default {
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC004",
props: {
label: "dictValue",
value: "dictValue",
value: "dictKey",
},
rules: [
{
@@ -340,10 +340,10 @@ export default {
prop: "aac005",
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC005",
props: {
label: "dictValue",
value: "dictValue",
},
// props: {
// label: "dictValue",
// value: "dictValue",
// },
props: {
label: "dictValue",
value: "dictKey",
@@ -364,7 +364,7 @@ export default {
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC009",
props: {
label: "dictValue",
value: "dictValue",
value: "dictKey",
},
rules: [
{
@@ -391,7 +391,7 @@ export default {
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC011",
props: {
label: "dictValue",
value: "dictValue",
value: "dictKey",
},
rules: [
{

View File

@@ -87,6 +87,20 @@
</span>
</div>
</el-drawer>
<PromptDialog
:visible="dialogFlag"
title="审核"
sub-title="请核对用工单位信息后再进行审核通过 一旦驳回无法进行后续操作"
:tips="[
'该用户未达期望,建议重筛;',
'不符合条件,请再评估;',
'经审核,该用户资质不符,建议重评;',
'用工单位资质不符;',
]"
@onClose="dialogFlag = false"
@onCancel="diaLogCancel"
@onConfirm="diaLogConfirm"
></PromptDialog>
</basic-container>
</template>
<script>
@@ -104,6 +118,7 @@ import {Message} from "element-ui";
import lodash from "lodash";
import {recruitStatus} from "@/common/dic";
import {Auditing} from "@/api/manage/mission";
import PromptDialog from "@/components/promptDialog/index.vue";
const inviteCodeRules = {
stationId: [
@@ -214,8 +229,11 @@ const message = lodash.throttle(
);
export default {
name: "manage_station_inviteCode",
components: {PromptDialog},
data() {
return {
dialogFlag: false,
selectIdList: [],
distributionCodeDialog: false,
inviteCodeRules: Object.assign({}, inviteCodeRules),
enterpriseList: [], // 用工单位列表
@@ -236,6 +254,22 @@ export default {
...mapGetters(["permission"]),
},
methods: {
diaLogCancel(value) {
if (!value) {
return this.$message({
type: "info",
message: "请输入驳回原因!",
});
}
this.handelFetchAuditing(this.selectIdList, 9, value, "成功驳回, 操作成功!").then(() => {
this.dialogFlag = false
})
},
diaLogConfirm(value) {
this.handelFetchAuditing(this.selectIdList, 1, value).then(() => {
this.dialogFlag = false
})
},
handleCheck() {
let self = this
if (this.selectionList.length < 1) {
@@ -248,34 +282,36 @@ export default {
let idList = this.selectionList.map((v) => v.id)
let h = this.$createElement;
this.$prompt(
h("p", {style: "color: #F56C6C"}, "一旦驳回无法进行后续操作"),
"请核对用工单位信息后再进行审核通过",
{
distinguishCancelAndClose: true,
confirmButtonText: "通 过",
cancelButtonText: "驳 回",
type: "warning",
center: true,
inputType: "textarea",
inputPlaceholder: "备注驳回原因",
beforeClose: function (action, instance, done) {
if (action === 'cancel') {
if (!instance.inputValue) {
return this.$message({
type: "info",
message: "请输入驳回原因!",
});
}
self.handelFetchAuditing(idList, 9, instance.inputValue, "成功驳回, 操作成功!").then(() => done())
} else if (action === 'confirm') {
self.handelFetchAuditing(idList, 1, instance.inputValue).then(() => done())
} else {
done()
}
}
}
)
this.dialogFlag = true
this.selectIdList = idList
// this.$prompt(
// h("p", {style: "color: #F56C6C"}, "一旦驳回无法进行后续操作"),
// "请核对用工单位信息后再进行审核通过",
// {
// distinguishCancelAndClose: true,
// confirmButtonText: "通 过",
// cancelButtonText: "驳 回",
// type: "warning",
// center: true,
// inputType: "textarea",
// inputPlaceholder: "备注驳回原因",
// beforeClose: function (action, instance, done) {
// if (action === 'cancel') {
// if (!instance.inputValue) {
// return this.$message({
// type: "info",
// message: "请输入驳回原因!",
// });
// }
// self.handelFetchAuditing(idList, 9, instance.inputValue, "成功驳回, 操作成功!").then(() => done())
// } else if (action === 'confirm') {
// self.handelFetchAuditing(idList, 1, instance.inputValue).then(() => done())
// } else {
// done()
// }
// }
// }
// )
},
handelFetchAuditing(idList, reviewState, msg, message) {
return new Promise((resolve, reject) => {

View File

@@ -117,6 +117,19 @@ let leftUserOptions = {
}, {
label: '姓别',
prop: 'aac004',
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC004",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入性别",
trigger: "blur",
},
],
}, {
label: '身份证',
prop: 'idNumber',
@@ -127,9 +140,35 @@ let leftUserOptions = {
}, {
label: "民族",
prop: "aac005",
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC005",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入民族",
trigger: "blur",
},
],
}, {
label: "户口性质",
prop: "aac009",
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC009",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入户口性质",
trigger: "blur",
},
],
}, {
label: "户口所在地",
prop: "aac010",
@@ -137,6 +176,19 @@ let leftUserOptions = {
}, {
label: "文化程度",
prop: "aac011",
type: 'select',
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC011",
props: {
label: "dictValue",
value: "dictKey",
},
rules: [
{
required: true,
message: "请输入文化程度",
trigger: "blur",
},
],
}, {
label: '个人标签',
prop: 'labelsBase',