flat: 暂存
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
:before-close="handleClose"
|
:before-close="handleClose"
|
||||||
append-to-body>
|
append-to-body>
|
||||||
<span>{{ subTitle }}</span>
|
<span>{{ subTitle }}</span>
|
||||||
|
<div v-if="status === 1">
|
||||||
<div class="input_box">
|
<div class="input_box">
|
||||||
<el-input type="textarea" v-model="input" placeholder="请输入内容"></el-input>
|
<el-input type="textarea" v-model="input" placeholder="请输入内容"></el-input>
|
||||||
</div>
|
</div>
|
||||||
@@ -15,10 +16,11 @@
|
|||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button @click="handleClose">取 消</el-button>
|
<el-button @click="handleClose">取 消</el-button>
|
||||||
<el-button type="warning" @click="handleCancel">驳回</el-button>
|
<el-button :type="btnTypes[status]" @click="handleCancel">驳 回</el-button>
|
||||||
<el-button type="primary" @click="handleConfirm">确 定</el-button>
|
<el-button type="primary" @click="handleConfirm">通 过</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
@@ -33,11 +35,18 @@ const classEnum = {
|
|||||||
largeXX: '146px',
|
largeXX: '146px',
|
||||||
largeXXL: '186px',
|
largeXXL: '186px',
|
||||||
}
|
}
|
||||||
|
const btnTypes = {
|
||||||
|
0: 'warning',
|
||||||
|
1: 'danger'
|
||||||
|
}
|
||||||
export default {
|
export default {
|
||||||
name: "promptDialog",
|
name: "promptDialog",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
btnTypes,
|
||||||
input: '',
|
input: '',
|
||||||
|
status: 0,
|
||||||
|
btnType: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@@ -63,6 +72,7 @@ export default {
|
|||||||
visible(val) {
|
visible(val) {
|
||||||
if (val) {
|
if (val) {
|
||||||
this.input = ''
|
this.input = ''
|
||||||
|
this.status = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -72,7 +82,11 @@ export default {
|
|||||||
this.$emit('onClose')
|
this.$emit('onClose')
|
||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
|
if (this.status) {
|
||||||
this.$emit('onCancel', this.input)
|
this.$emit('onCancel', this.input)
|
||||||
|
} else {
|
||||||
|
this.status = 1
|
||||||
|
}
|
||||||
},
|
},
|
||||||
handleConfirm() {
|
handleConfirm() {
|
||||||
this.$emit('onConfirm', this.input)
|
this.$emit('onConfirm', this.input)
|
||||||
|
|||||||
@@ -117,6 +117,19 @@ let leftUserOptions = {
|
|||||||
}, {
|
}, {
|
||||||
label: '姓别',
|
label: '姓别',
|
||||||
prop: 'aac004',
|
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: '身份证',
|
label: '身份证',
|
||||||
prop: 'idNumber',
|
prop: 'idNumber',
|
||||||
@@ -127,9 +140,35 @@ let leftUserOptions = {
|
|||||||
}, {
|
}, {
|
||||||
label: "民族",
|
label: "民族",
|
||||||
prop: "aac005",
|
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: "户口性质",
|
label: "户口性质",
|
||||||
prop: "aac009",
|
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: "户口所在地",
|
label: "户口所在地",
|
||||||
prop: "aac010",
|
prop: "aac010",
|
||||||
@@ -137,6 +176,19 @@ let leftUserOptions = {
|
|||||||
}, {
|
}, {
|
||||||
label: "文化程度",
|
label: "文化程度",
|
||||||
prop: "aac011",
|
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: '个人标签',
|
label: '个人标签',
|
||||||
prop: 'labelsBase',
|
prop: 'labelsBase',
|
||||||
|
|||||||
@@ -300,7 +300,7 @@ export default {
|
|||||||
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC004",
|
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC004",
|
||||||
props: {
|
props: {
|
||||||
label: "dictValue",
|
label: "dictValue",
|
||||||
value: "dictValue",
|
value: "dictKey",
|
||||||
},
|
},
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -340,10 +340,10 @@ export default {
|
|||||||
prop: "aac005",
|
prop: "aac005",
|
||||||
type: 'select',
|
type: 'select',
|
||||||
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC005",
|
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC005",
|
||||||
props: {
|
// props: {
|
||||||
label: "dictValue",
|
// label: "dictValue",
|
||||||
value: "dictValue",
|
// value: "dictValue",
|
||||||
},
|
// },
|
||||||
props: {
|
props: {
|
||||||
label: "dictValue",
|
label: "dictValue",
|
||||||
value: "dictKey",
|
value: "dictKey",
|
||||||
@@ -364,7 +364,7 @@ export default {
|
|||||||
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC009",
|
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC009",
|
||||||
props: {
|
props: {
|
||||||
label: "dictValue",
|
label: "dictValue",
|
||||||
value: "dictValue",
|
value: "dictKey",
|
||||||
},
|
},
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
@@ -391,7 +391,7 @@ export default {
|
|||||||
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC011",
|
dicUrl: "/api/jobslink-api/system/dict-biz/tadict?code=AAC011",
|
||||||
props: {
|
props: {
|
||||||
label: "dictValue",
|
label: "dictValue",
|
||||||
value: "dictValue",
|
value: "dictKey",
|
||||||
},
|
},
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -87,6 +87,20 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</el-drawer>
|
</el-drawer>
|
||||||
|
<PromptDialog
|
||||||
|
:visible="dialogFlag"
|
||||||
|
title="审核"
|
||||||
|
sub-title="请核对用工单位信息后再进行审核通过, 一旦驳回无法进行后续操作"
|
||||||
|
:tips="[
|
||||||
|
'该用户未达期望,建议重筛;',
|
||||||
|
'不符合条件,请再评估;',
|
||||||
|
'经审核,该用户资质不符,建议重评;',
|
||||||
|
'用工单位资质不符;',
|
||||||
|
]"
|
||||||
|
@onClose="dialogFlag = false"
|
||||||
|
@onCancel="diaLogCancel"
|
||||||
|
@onConfirm="diaLogConfirm"
|
||||||
|
></PromptDialog>
|
||||||
</basic-container>
|
</basic-container>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -104,6 +118,7 @@ import {Message} from "element-ui";
|
|||||||
import lodash from "lodash";
|
import lodash from "lodash";
|
||||||
import {recruitStatus} from "@/common/dic";
|
import {recruitStatus} from "@/common/dic";
|
||||||
import {Auditing} from "@/api/manage/mission";
|
import {Auditing} from "@/api/manage/mission";
|
||||||
|
import PromptDialog from "@/components/promptDialog/index.vue";
|
||||||
|
|
||||||
const inviteCodeRules = {
|
const inviteCodeRules = {
|
||||||
stationId: [
|
stationId: [
|
||||||
@@ -214,8 +229,11 @@ const message = lodash.throttle(
|
|||||||
);
|
);
|
||||||
export default {
|
export default {
|
||||||
name: "manage_station_inviteCode",
|
name: "manage_station_inviteCode",
|
||||||
|
components: {PromptDialog},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
dialogFlag: false,
|
||||||
|
selectIdList: [],
|
||||||
distributionCodeDialog: false,
|
distributionCodeDialog: false,
|
||||||
inviteCodeRules: Object.assign({}, inviteCodeRules),
|
inviteCodeRules: Object.assign({}, inviteCodeRules),
|
||||||
enterpriseList: [], // 用工单位列表
|
enterpriseList: [], // 用工单位列表
|
||||||
@@ -236,6 +254,22 @@ export default {
|
|||||||
...mapGetters(["permission"]),
|
...mapGetters(["permission"]),
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
handleCheck() {
|
||||||
let self = this
|
let self = this
|
||||||
if (this.selectionList.length < 1) {
|
if (this.selectionList.length < 1) {
|
||||||
@@ -248,34 +282,36 @@ export default {
|
|||||||
let idList = this.selectionList.map((v) => v.id)
|
let idList = this.selectionList.map((v) => v.id)
|
||||||
|
|
||||||
let h = this.$createElement;
|
let h = this.$createElement;
|
||||||
this.$prompt(
|
this.dialogFlag = true
|
||||||
h("p", {style: "color: #F56C6C"}, "一旦驳回无法进行后续操作"),
|
this.selectIdList = idList
|
||||||
"请核对用工单位信息后再进行审核通过",
|
// this.$prompt(
|
||||||
{
|
// h("p", {style: "color: #F56C6C"}, "一旦驳回无法进行后续操作"),
|
||||||
distinguishCancelAndClose: true,
|
// "请核对用工单位信息后再进行审核通过",
|
||||||
confirmButtonText: "通 过",
|
// {
|
||||||
cancelButtonText: "驳 回",
|
// distinguishCancelAndClose: true,
|
||||||
type: "warning",
|
// confirmButtonText: "通 过",
|
||||||
center: true,
|
// cancelButtonText: "驳 回",
|
||||||
inputType: "textarea",
|
// type: "warning",
|
||||||
inputPlaceholder: "备注驳回原因",
|
// center: true,
|
||||||
beforeClose: function (action, instance, done) {
|
// inputType: "textarea",
|
||||||
if (action === 'cancel') {
|
// inputPlaceholder: "备注驳回原因",
|
||||||
if (!instance.inputValue) {
|
// beforeClose: function (action, instance, done) {
|
||||||
return this.$message({
|
// if (action === 'cancel') {
|
||||||
type: "info",
|
// if (!instance.inputValue) {
|
||||||
message: "请输入驳回原因!",
|
// 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())
|
// self.handelFetchAuditing(idList, 9, instance.inputValue, "成功驳回, 操作成功!").then(() => done())
|
||||||
} else {
|
// } else if (action === 'confirm') {
|
||||||
done()
|
// self.handelFetchAuditing(idList, 1, instance.inputValue).then(() => done())
|
||||||
}
|
// } else {
|
||||||
}
|
// done()
|
||||||
}
|
// }
|
||||||
)
|
// }
|
||||||
|
// }
|
||||||
|
// )
|
||||||
},
|
},
|
||||||
handelFetchAuditing(idList, reviewState, msg, message) {
|
handelFetchAuditing(idList, reviewState, msg, message) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
|||||||
@@ -117,6 +117,19 @@ let leftUserOptions = {
|
|||||||
}, {
|
}, {
|
||||||
label: '姓别',
|
label: '姓别',
|
||||||
prop: 'aac004',
|
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: '身份证',
|
label: '身份证',
|
||||||
prop: 'idNumber',
|
prop: 'idNumber',
|
||||||
@@ -127,9 +140,35 @@ let leftUserOptions = {
|
|||||||
}, {
|
}, {
|
||||||
label: "民族",
|
label: "民族",
|
||||||
prop: "aac005",
|
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: "户口性质",
|
label: "户口性质",
|
||||||
prop: "aac009",
|
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: "户口所在地",
|
label: "户口所在地",
|
||||||
prop: "aac010",
|
prop: "aac010",
|
||||||
@@ -137,6 +176,19 @@ let leftUserOptions = {
|
|||||||
}, {
|
}, {
|
||||||
label: "文化程度",
|
label: "文化程度",
|
||||||
prop: "aac011",
|
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: '个人标签',
|
label: '个人标签',
|
||||||
prop: 'labelsBase',
|
prop: 'labelsBase',
|
||||||
|
|||||||
Reference in New Issue
Block a user