申请发布导出及终止

This commit is contained in:
mashuai 2025-03-07 13:34:30 +08:00
parent bd8a01ee1a
commit ddf066148c
2 changed files with 25 additions and 14 deletions

View File

@ -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) { export function applySendAll(data) {
return request({ return request({

View File

@ -33,8 +33,9 @@
filterable filterable
style="width: 240px" 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-select>
</el-form-item> </el-form-item>
@ -89,11 +90,11 @@
@click="handleView(scope.row)" @click="handleView(scope.row)"
>查看</el-button> >查看</el-button>
<el-button size="mini" style="margin-bottom: 10px" type="success" <el-button size="mini" style="margin-bottom: 10px" type="success"
v-if="scope.row.taskStatusName != '已完成'" v-if="scope.row.taskStatusName == '未完成'"
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
>发布</el-button> >发布</el-button>
<el-button size="mini" type="danger" <el-button size="mini" type="danger"
v-if="scope.row.taskStatusName != '已完成'" v-if="scope.row.taskStatusName == '未完成'"
@click="handleStop(scope.row)" @click="handleStop(scope.row)"
>终止</el-button> >终止</el-button>
<el-button size="mini" type="warning" <el-button size="mini" type="warning"
@ -261,6 +262,7 @@ import {
getListLeaseApply, getListLeaseApply,
applySend, applySend,
applySendAll, applySendAll,
applyEnd,
} from "@/api/lease/apply"; } from "@/api/lease/apply";
import { import {
getLeasePublishList, getLeasePublishList,
@ -396,9 +398,9 @@ export default {
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download( this.download(
"/material/lease_apply_info/export", "/material/leaseTask/exportPublish",
{ ...this.queryParams }, { ...this.queryParams },
`领料申请_${new Date().getTime()}.xlsx` `领料申请发布_${new Date().getTime()}.xlsx`
); );
}, },
@ -408,7 +410,7 @@ export default {
this.$modal this.$modal
.confirm("是否确认终止所选择的数据项?") .confirm("是否确认终止所选择的数据项?")
.then(function () { .then(function () {
// return applySend(param); return applyEnd(param);
}) })
.then(() => { .then(() => {
this.getList(); this.getList();