创建个人招工页面,删除无用的页面
This commit is contained in:
@@ -1,89 +0,0 @@
|
||||
<template>
|
||||
<el-dialog title="发工资延期" :visible.sync="dialogVisible" append-to-body @closed="handleClose">
|
||||
<avue-form ref="form" v-model="form" :option="option" @submit="submit"></avue-form>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="handleClose">取 消</el-button>
|
||||
<el-button type="primary" @click="confirm">确 定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { delay } from "@/api/manage/mission";
|
||||
|
||||
export default {
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
form: {},
|
||||
id: null,
|
||||
dialogVisible: false,
|
||||
option: {
|
||||
menuBtn: false,
|
||||
column: [
|
||||
{
|
||||
type: "date",
|
||||
label: "延期到",
|
||||
span: 24,
|
||||
display: true,
|
||||
format: "yyyy-MM-dd",
|
||||
valueFormat: "yyyy-MM-dd",
|
||||
size: "small",
|
||||
prop: "expiryTime",
|
||||
pickerOptions: {
|
||||
disabledDate(time) {
|
||||
const now = new Date().getTime();
|
||||
return time.getTime() < now
|
||||
}
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "延期到必须填写",
|
||||
},
|
||||
],
|
||||
|
||||
},
|
||||
{
|
||||
type: "textarea",
|
||||
label: "备注",
|
||||
span: 24,
|
||||
display: true,
|
||||
size: "small",
|
||||
prop: "remarks",
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
confirm() {
|
||||
this.$refs.form.submit();
|
||||
},
|
||||
submit(row, done) {
|
||||
delay(this.id, `${row.expiryTime} 23:59:59`, row.remarks)
|
||||
.then(() => {
|
||||
done();
|
||||
this.$message({ type: "success", message: "操作成功" });
|
||||
this.dialogVisible = false;
|
||||
this.$emit("success");
|
||||
})
|
||||
.catch(() => {
|
||||
done();
|
||||
});
|
||||
},
|
||||
handleClose() {
|
||||
this.$refs.form.resetForm();
|
||||
this.dialogVisible = false;
|
||||
},
|
||||
open(id) {
|
||||
this.id = id;
|
||||
this.dialogVisible = true;
|
||||
},
|
||||
},
|
||||
computed: {},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
@@ -94,28 +94,21 @@
|
||||
@refresh-change="refreshChange"
|
||||
@on-load="onLoad"
|
||||
>
|
||||
<!-- <template slot="menuLeft">
|
||||
<template slot="menuLeft">
|
||||
<el-button
|
||||
v-if="vaildData(permission.manage_mission_check, false)"
|
||||
size="small"
|
||||
@click.stop="handleCheck"
|
||||
type="primary"
|
||||
>任务审核</el-button
|
||||
>审核</el-button
|
||||
>
|
||||
</template> -->
|
||||
</template>
|
||||
<template slot="menuRight">
|
||||
<el-button size="small" @click.stop="downRecords" type="primary"
|
||||
>导出</el-button
|
||||
>
|
||||
</template>
|
||||
<template slot-scope="{ row }" slot="menu">
|
||||
<el-button
|
||||
v-if="vaildData(permission.manage_mission_delay, false) && row.jobStatus==3"
|
||||
size="small"
|
||||
@click.stop="handleDelay(row)"
|
||||
type="text"
|
||||
>发工资延期</el-button
|
||||
>
|
||||
<el-button
|
||||
type="text"
|
||||
size="small"
|
||||
@@ -130,13 +123,6 @@
|
||||
v-if="vaildData(permission.manage_mission_zpview, false)"
|
||||
>报名详情</el-button
|
||||
>
|
||||
<el-button
|
||||
v-if="row.jobStatus==2"
|
||||
size="small"
|
||||
@click.stop="handleFinish(row)"
|
||||
type="text"
|
||||
>完成任务</el-button
|
||||
>
|
||||
</template>
|
||||
</avue-crud>
|
||||
<delay-dialog
|
||||
@@ -161,10 +147,8 @@ import {
|
||||
download,
|
||||
} from "@/api/workstation/post";
|
||||
import { mapGetters } from "vuex";
|
||||
import delayDialog from "./delayDialog";
|
||||
import postView from "@/views/util/post-view";
|
||||
import zpView from "./zpView";
|
||||
import wageView from "./wageView";
|
||||
import { companyPostState, wageUnitCategoryState } from "@/common/dic";
|
||||
import { calcDate } from "@/util/date";
|
||||
import { Message } from "element-ui";
|
||||
@@ -179,7 +163,7 @@ const message = lodash.throttle(
|
||||
);
|
||||
|
||||
export default {
|
||||
components: { delayDialog, postView, zpView, wageView },
|
||||
components: {postView, zpView},
|
||||
name: "manage_mission",
|
||||
data() {
|
||||
return {
|
||||
@@ -511,43 +495,6 @@ export default {
|
||||
.catch(() => {});
|
||||
}
|
||||
},
|
||||
handleFinish(row) {
|
||||
if (row.jobStatus!=2) {
|
||||
this.$message.error('只能提前完成【任务中】的任务')
|
||||
}
|
||||
/*只能提前完成【任务中】的任务*/
|
||||
else{
|
||||
let h = this.$createElement;
|
||||
this.$confirm(
|
||||
h("p", { style: "color: #F56C6C" }, "一旦确定无法修改"),
|
||||
"您确定要提前此任务吗?",
|
||||
{
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
center: true,
|
||||
inputType: "textarea",
|
||||
inputPlaceholder: "备注原因",
|
||||
}
|
||||
)
|
||||
.then(() => {
|
||||
this.loading = true;
|
||||
complet(row.id)
|
||||
.then(() => {
|
||||
this.$message({
|
||||
type: "success",
|
||||
message: "操作成功!",
|
||||
});
|
||||
this.loading = false;
|
||||
this.onLoad(this.page, this.query);
|
||||
})
|
||||
.catch(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
})
|
||||
.catch(() => { });
|
||||
}
|
||||
},
|
||||
downRecords() {
|
||||
if (this.query.time) {
|
||||
this.query.stime = this.query.time[0];
|
||||
|
||||
@@ -1,177 +0,0 @@
|
||||
<template>
|
||||
<el-drawer title="工资情况" :visible.sync="visible" size="60%" append-to-body>
|
||||
<avue-crud
|
||||
:option="option"
|
||||
:table-loading="loading"
|
||||
:data="data"
|
||||
ref="crud"
|
||||
v-model="form"
|
||||
:permission="permissionList"
|
||||
:page.sync="page"
|
||||
@search-change="searchChange"
|
||||
@search-reset="searchReset"
|
||||
@selection-change="selectionChange"
|
||||
@current-change="currentChange"
|
||||
@size-change="sizeChange"
|
||||
@refresh-change="refreshChange"
|
||||
@on-load="onLoad"
|
||||
></avue-crud>
|
||||
</el-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getWageView } from "@/api/manage/mission";
|
||||
import { mapGetters } from "vuex";
|
||||
|
||||
export default {
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
missionNo: null,
|
||||
form: {},
|
||||
selectionList: [],
|
||||
query: {},
|
||||
loading: true,
|
||||
parentId: 0,
|
||||
page: {
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
total: 0,
|
||||
},
|
||||
visible: false,
|
||||
checkDialog: false,
|
||||
delayDialog: false,
|
||||
zpviewDialog: false,
|
||||
finishDialog: false,
|
||||
option: {
|
||||
height: "auto",
|
||||
tip: false,
|
||||
searchShow: true,
|
||||
searchMenuSpan: 6,
|
||||
border: true,
|
||||
index: false,
|
||||
selection: false,
|
||||
viewBtn: false,
|
||||
addBtn: false,
|
||||
menu: false,
|
||||
menuWidth: 300,
|
||||
dialogClickModal: false,
|
||||
dialogType: "drawer",
|
||||
dialogFullscreen: true,
|
||||
column: [
|
||||
{
|
||||
label: "姓名",
|
||||
prop: "realName",
|
||||
search: true,
|
||||
searchSpan: 4,
|
||||
searchLabelWidth: 50,
|
||||
display: false,
|
||||
},
|
||||
{
|
||||
label: "身份证号码",
|
||||
prop: "cardNumber",
|
||||
search: true,
|
||||
display: false,
|
||||
searchLabelWidth: 86,
|
||||
searchSpan: 7,
|
||||
},
|
||||
{
|
||||
type: "select",
|
||||
label: "发工资情况",
|
||||
prop: "status",
|
||||
display: false,
|
||||
search: true,
|
||||
searchLabelWidth: 86,
|
||||
searchSpan: 7,
|
||||
dicData: [
|
||||
{ label: "处理中", value: 0 },
|
||||
{ label: "发放成功", value: 1 },
|
||||
{ label: "未发放", value: 6 },
|
||||
{ label: "发放中", value: 7 },
|
||||
{ label: "发放失败", value: 8 },
|
||||
{ label: "异常", value: 9 },
|
||||
],
|
||||
},
|
||||
{
|
||||
label: "发放时间",
|
||||
prop: "accountTime",
|
||||
display: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
data: [],
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
...mapGetters(["userInfo", "permission"]),
|
||||
permissionList() {
|
||||
return {
|
||||
viewBtn: this.vaildData(
|
||||
this.permission.manage_station_mainList_view,
|
||||
false
|
||||
),
|
||||
};
|
||||
},
|
||||
ids() {
|
||||
let ids = [];
|
||||
this.selectionList.forEach((ele) => {
|
||||
ids.push(ele.id);
|
||||
});
|
||||
return ids;
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
initData() {
|
||||
this.onLoad(this.page, this.query);
|
||||
},
|
||||
open(missionNo) {
|
||||
this.missionNo = missionNo;
|
||||
this.initData();
|
||||
this.visible = true;
|
||||
},
|
||||
searchReset() {
|
||||
this.query = {};
|
||||
this.onLoad(this.page);
|
||||
},
|
||||
searchChange(params, done) {
|
||||
this.query = params;
|
||||
this.page.currentPage = 1;
|
||||
this.onLoad(this.page, params);
|
||||
done();
|
||||
},
|
||||
selectionChange(list) {
|
||||
this.selectionList = list;
|
||||
},
|
||||
selectionClear() {
|
||||
this.selectionList = [];
|
||||
this.$refs.crud.toggleSelection();
|
||||
},
|
||||
currentChange(currentPage) {
|
||||
this.page.currentPage = currentPage;
|
||||
},
|
||||
sizeChange(pageSize) {
|
||||
this.page.pageSize = pageSize;
|
||||
},
|
||||
refreshChange() {
|
||||
this.onLoad(this.page, this.query);
|
||||
},
|
||||
onLoad(page, params = {}) {
|
||||
this.loading = true;
|
||||
getWageView(
|
||||
page.currentPage,
|
||||
page.pageSize,
|
||||
this.missionNo,
|
||||
Object.assign(this.query, params)
|
||||
).then((res) => {
|
||||
const data = res.data.data;
|
||||
this.page.total = data.total;
|
||||
this.data = data.records;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
Reference in New Issue
Block a user