申请发布导出及终止
This commit is contained in:
parent
bd8a01ee1a
commit
ddf066148c
|
|
@ -79,6 +79,15 @@ export function applySend(data) {
|
|||
})
|
||||
}
|
||||
|
||||
// 领用申请发布-终止
|
||||
export function applyEnd(data) {
|
||||
return request({
|
||||
url: '/material/leaseTask/endPublish',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
|
||||
// 领料申请-批量发布
|
||||
export function applySendAll(data) {
|
||||
return request({
|
||||
|
|
|
|||
|
|
@ -33,8 +33,9 @@
|
|||
filterable
|
||||
style="width: 240px"
|
||||
>
|
||||
<el-option label="未完成" value="0"></el-option>
|
||||
<el-option label="已完成" value="1"></el-option>
|
||||
<el-option label="未完成" value="1"></el-option>
|
||||
<el-option label="已终结" value="2"></el-option>
|
||||
<el-option label="已完成" value="3"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
|
|
@ -85,16 +86,16 @@
|
|||
<el-table-column label="备注" align="center" width="100" prop="remark" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="操作" align="center" width="300" fixed="right">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="mini" style="margin-bottom: 10px" type="normal"
|
||||
@click="handleView(scope.row)"
|
||||
<el-button size="mini" style="margin-bottom: 10px" type="normal"
|
||||
@click="handleView(scope.row)"
|
||||
>查看</el-button>
|
||||
<el-button size="mini" style="margin-bottom: 10px" type="success"
|
||||
v-if="scope.row.taskStatusName != '已完成'"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-if="scope.row.taskStatusName == '未完成'"
|
||||
@click="handleUpdate(scope.row)"
|
||||
>发布</el-button>
|
||||
<el-button size="mini" type="danger"
|
||||
v-if="scope.row.taskStatusName != '已完成'"
|
||||
@click="handleStop(scope.row)"
|
||||
v-if="scope.row.taskStatusName == '未完成'"
|
||||
@click="handleStop(scope.row)"
|
||||
>终止</el-button>
|
||||
<el-button size="mini" type="warning"
|
||||
@click="handleLld(scope.row)"
|
||||
|
|
@ -261,6 +262,7 @@ import {
|
|||
getListLeaseApply,
|
||||
applySend,
|
||||
applySendAll,
|
||||
applyEnd,
|
||||
} from "@/api/lease/apply";
|
||||
import {
|
||||
getLeasePublishList,
|
||||
|
|
@ -299,7 +301,7 @@ export default {
|
|||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
time: null, //申请时间
|
||||
time: null, //申请时间
|
||||
keyWord: "",
|
||||
taskStatus: null, //状态
|
||||
},
|
||||
|
|
@ -321,7 +323,7 @@ export default {
|
|||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
||||
// 多选框选中数据
|
||||
|
|
@ -349,7 +351,7 @@ export default {
|
|||
keyWord: this.queryParams.keyWord,
|
||||
taskStatus: this.queryParams.taskStatus,
|
||||
startTime: this.queryParams.time && this.queryParams.time[0],
|
||||
endTime: this.queryParams.time && this.queryParams.time[1],
|
||||
endTime: this.queryParams.time && this.queryParams.time[1],
|
||||
pageSize: this.queryParams.pageSize,
|
||||
pageNum: this.queryParams.pageNum,
|
||||
};
|
||||
|
|
@ -396,9 +398,9 @@ export default {
|
|||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download(
|
||||
"/material/lease_apply_info/export",
|
||||
"/material/leaseTask/exportPublish",
|
||||
{ ...this.queryParams },
|
||||
`领料申请_${new Date().getTime()}.xlsx`
|
||||
`领料申请发布_${new Date().getTime()}.xlsx`
|
||||
);
|
||||
},
|
||||
|
||||
|
|
@ -408,7 +410,7 @@ export default {
|
|||
this.$modal
|
||||
.confirm("是否确认终止所选择的数据项?")
|
||||
.then(function () {
|
||||
// return applySend(param);
|
||||
return applyEnd(param);
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
|
|
|
|||
Loading…
Reference in New Issue