``
This commit is contained in:
parent
90f8bfe677
commit
c9468784b0
117
public/mrp2.html
Normal file
117
public/mrp2.html
Normal file
@ -0,0 +1,117 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>MRP运算结果管理</title>
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
.container {
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
padding: 20px;
|
||||
}
|
||||
.header {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
color: white;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 20px;
|
||||
text-align: center;
|
||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.header h1 {
|
||||
margin: 0;
|
||||
font-size: 24px;
|
||||
}
|
||||
.header p {
|
||||
margin: 8px 0 0 0;
|
||||
opacity: 0.9;
|
||||
}
|
||||
.content {
|
||||
background: white;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
.info-box {
|
||||
background: #f0f9ff;
|
||||
border: 1px solid #b3d8ff;
|
||||
border-radius: 6px;
|
||||
padding: 16px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.info-box h3 {
|
||||
margin: 0 0 12px 0;
|
||||
color: #409eff;
|
||||
}
|
||||
.info-box p {
|
||||
margin: 8px 0;
|
||||
color: #606266;
|
||||
}
|
||||
.button-group {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.btn {
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 4px;
|
||||
cursor: pointer;
|
||||
text-decoration: none;
|
||||
display: inline-block;
|
||||
font-size: 14px;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.btn-primary {
|
||||
background: #409eff;
|
||||
color: white;
|
||||
}
|
||||
.btn-primary:hover {
|
||||
background: #66b1ff;
|
||||
}
|
||||
.btn-info {
|
||||
background: #909399;
|
||||
color: white;
|
||||
}
|
||||
.btn-info:hover {
|
||||
background: #a6a9ad;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<h1>📊 MRP运算结果核算</h1>
|
||||
<p>物料需求计划运算结果查询与分析</p>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<div class="info-box">
|
||||
<h3>🚀 快速访问</h3>
|
||||
<p><strong>独立访问地址:</strong> <code>/MRP</code></p>
|
||||
<p><strong>功能说明:</strong> 无需登录即可访问MRP运算结果管理页面</p>
|
||||
<p><strong>主要功能:</strong></p>
|
||||
<ul>
|
||||
<li>生产令号选择与搜索</li>
|
||||
<li>MRP运算执行</li>
|
||||
<li>运算结果查看与分析</li>
|
||||
<li>数据导出功能</li>
|
||||
<li>统计信息展示</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="button-group">
|
||||
<a href="/MRP" class="btn btn-primary">🎯 进入MRP页面</a>
|
||||
<a href="/" class="btn btn-info">🏠 返回首页</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@ -49,21 +49,15 @@
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item> -->
|
||||
<el-form-item label="计划结束时间" prop="planEndTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.planEndTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择计划结束时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="计划开始时间" prop="planStartTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.planStartTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择计划开始时间">
|
||||
</el-date-picker>
|
||||
<el-form-item label="项目类型" prop="isEnterpriseStandard">
|
||||
<el-select
|
||||
v-model="queryParams.isEnterpriseStandard"
|
||||
placeholder="请选择"
|
||||
clearable>
|
||||
<el-option label="非标单" :value="0"/>
|
||||
<el-option label="企标单" :value="1"/>
|
||||
<el-option label="变更单" :value="2"/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
@ -144,21 +138,40 @@
|
||||
<span v-else style="color: #909399; font-size: 12px;">暂无执行单图</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="图纸类型" align="center" prop="drawingType">
|
||||
<!-- <el-table-column label="项目类型" align="center" prop="drawingType">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.drawingType">
|
||||
{{ getDrawingTypeLabel(scope.row.drawingType) }}
|
||||
</span>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="计量单位" align="center" prop="unit"/>
|
||||
<!-- <el-table-column label="产品数量" align="center" prop="quantity"/>-->
|
||||
<el-table-column label="是否企标" align="center" prop="isEnterpriseStandard">
|
||||
</el-table-column>-->
|
||||
|
||||
<el-table-column label="项目状态" align="center" prop="imCategory">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.isEnterpriseStandard === 1 ? '是' : '否' }}</span>
|
||||
<dict-tag :options="dict.type.process_status" :value="scope.row.bomStatus"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
|
||||
<el-table-column label="计量单位" align="center" prop="unit"/>
|
||||
<!-- <el-table-column label="产品数量" align="center" prop="quantity"/>-->
|
||||
<el-table-column label="项目类型" align="center" prop="isEnterpriseStandard">
|
||||
<template v-slot="scope">
|
||||
<span>
|
||||
{{
|
||||
scope.row.isEnterpriseStandard === 0
|
||||
? '非标单'
|
||||
: scope.row.isEnterpriseStandard === 1
|
||||
? '企标单'
|
||||
: scope.row.isEnterpriseStandard === 2
|
||||
? '变更单'
|
||||
: ''
|
||||
}}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="项目完成时间" align="center" prop="projectEndTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.projectEndTime, '{y}-{m}-{d}') }}</span>
|
||||
@ -196,7 +209,6 @@
|
||||
</el-dropdown>
|
||||
|
||||
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -284,7 +296,8 @@
|
||||
<el-button type="primary" @click="downloadPDF" style="margin-bottom: 10px; margin-left: 10px;">
|
||||
下载PDF
|
||||
</el-button>
|
||||
<el-button type="warning" @click="downloadRoute" style="margin-bottom: 10px; margin-left: 10px;" v-hasPermi="['system:route:exportRoute']">
|
||||
<el-button type="warning" @click="downloadRoute" style="margin-bottom: 10px; margin-left: 10px;"
|
||||
v-hasPermi="['system:route:exportRoute']">
|
||||
下载生产工艺计划表
|
||||
</el-button>
|
||||
<el-progress :text-inside="true" :stroke-width="26" :percentage="percentage"></el-progress>
|
||||
@ -604,11 +617,12 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="是否企标" prop="isEnterpriseStandard">
|
||||
<el-select v-model="form.isEnterpriseStandard" placeholder="请选择是否企标" clearable>
|
||||
<el-option label="否" :value="0"/>
|
||||
<el-option label="是" :value="1"/>
|
||||
<el-option label="非标单" :value="0"/>
|
||||
<el-option label="变更单" :value="2"/>
|
||||
<el-option label="企标单" :value="1"/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <!– 文件路径输入框,非企标时只读 –>
|
||||
<!-- <!– 文件路径输入框,非企标时只读 –>
|
||||
<el-form-item label="文件路径" prop="drawingPath">
|
||||
<el-input v-model="form.drawingPath" :readonly="form.isEnterpriseStandard !== 1"
|
||||
placeholder="企标可填写,非企标请在子表单上传DWG文件"/>
|
||||
@ -665,6 +679,7 @@ import dayjs from "dayjs";
|
||||
|
||||
export default {
|
||||
name: "OrderPro",
|
||||
dicts: ['process_status'],
|
||||
components: {
|
||||
ImageUpload,
|
||||
bomInfo,
|
||||
|
||||
386
src/views/system/proPlan/index.vue
Normal file
386
src/views/system/proPlan/index.vue
Normal file
@ -0,0 +1,386 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="方案编码" prop="projectCode">
|
||||
<el-input
|
||||
v-model="queryParams.projectCode"
|
||||
placeholder="请输入方案编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="设计人" prop="designer">
|
||||
<el-select v-model="queryParams.designer" placeholder="请选择设计人" clearable>
|
||||
<el-option
|
||||
v-for="dict in dict.type.plan_proer"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="预计开始时间" prop="startDate">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.startDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择预计开始时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="预计完成时间" prop="endDate">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.endDate"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择预计完成时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="方案状态" prop="processStatus">
|
||||
<el-select v-model="queryParams.processStatus" placeholder="请选择方案状态" clearable>
|
||||
<el-option label="未开始" value="0" />
|
||||
<el-option label="已完成" value="1" />
|
||||
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['system:proPlan:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['system:proPlan:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['system:proPlan:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['system:proPlan:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="proPlanList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
|
||||
<el-table-column label="方案编码" align="center" prop="projectCode" />
|
||||
<el-table-column label="设计人" align="center" prop="designer">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.plan_proer" :value="scope.row.designer"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="方案备注" align="center" prop="remark" />
|
||||
|
||||
<el-table-column label="预计开始时间" align="center" prop="startDate" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.startDate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="预计完成时间" align="center" prop="endDate" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.endDate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="方案状态" align="center" prop="processStatus">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.pro_status" :value="scope.row.processStatus"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['system:proPlan:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['system:proPlan:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改方案管理对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="方案编码" prop="projectCode">
|
||||
<el-input v-model="form.projectCode" placeholder="请输入方案编码" />
|
||||
</el-form-item>
|
||||
<el-form-item label="设计人" prop="designer">
|
||||
<el-select v-model="form.designer" placeholder="请选择设计人">
|
||||
<el-option
|
||||
v-for="dict in dict.type.plan_proer"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="方案备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="预计开始时间" prop="startDate">
|
||||
<el-date-picker clearable
|
||||
v-model="form.startDate"
|
||||
type="datetime"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
placeholder="请选择预计开始时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="预计完成时间" prop="endDate">
|
||||
<el-date-picker clearable
|
||||
v-model="form.endDate"
|
||||
type="datetime"
|
||||
value-format="yyyy-MM-dd HH:mm:ss"
|
||||
placeholder="请选择预计完成时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="方案/设计状态" prop="processStatus">
|
||||
<el-select v-model="form.processStatus" placeholder="请选择方案状态">
|
||||
<el-option label="未开始" value="0" />
|
||||
<el-option label="已完成" value="1" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listProPlan, getProPlan, delProPlan, addProPlan, updateProPlan } from "@/api/system/proPlan";
|
||||
|
||||
export default {
|
||||
name: "ProPlan",
|
||||
dicts: ['plan_proer','pro_status'],
|
||||
data() {
|
||||
return {
|
||||
// 按钮loading
|
||||
buttonLoading: false,
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 方案管理表格数据
|
||||
proPlanList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
projectCode: undefined,
|
||||
designer: undefined,
|
||||
overdueDays: undefined,
|
||||
startDate: undefined,
|
||||
endDate: undefined,
|
||||
processStatus: undefined
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
|
||||
projectCode: [
|
||||
{ required: true, message: "方案编码不能为空", trigger: "blur" }
|
||||
],
|
||||
designer: [
|
||||
{ required: true, message: "设计人不能为空", trigger: "change" }
|
||||
],
|
||||
|
||||
remark: [
|
||||
{ required: true, message: "方案备注不能为空", trigger: "blur" }
|
||||
],
|
||||
startDate: [
|
||||
{ required: true, message: "预计开始时间不能为空", trigger: "blur" }
|
||||
],
|
||||
endDate: [
|
||||
{ required: true, message: "预计完成时间不能为空", trigger: "blur" }
|
||||
],
|
||||
processStatus: [
|
||||
{ required: true, message: "方案状态不能为空", trigger: "change" }
|
||||
]
|
||||
}
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询方案管理列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listProPlan(this.queryParams).then(response => {
|
||||
this.proPlanList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
id: undefined,
|
||||
projectCode: undefined,
|
||||
designer: undefined,
|
||||
overdueDays: undefined,
|
||||
remark: undefined,
|
||||
startDate: undefined,
|
||||
endDate: undefined,
|
||||
createTime: undefined,
|
||||
updateTime: undefined,
|
||||
createBy: undefined,
|
||||
updateBy: undefined,
|
||||
processStatus: undefined
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加方案";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.loading = true;
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getProPlan(id).then(response => {
|
||||
this.loading = false;
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改方案管理";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
this.buttonLoading = true;
|
||||
if (this.form.id != null) {
|
||||
updateProPlan(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}).finally(() => {
|
||||
this.buttonLoading = false;
|
||||
});
|
||||
} else {
|
||||
addProPlan(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}).finally(() => {
|
||||
this.buttonLoading = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$modal.confirm('是否确认删除方案管理编号为"' + ids + '"的数据项?').then(() => {
|
||||
this.loading = true;
|
||||
return delProPlan(ids);
|
||||
}).then(() => {
|
||||
this.loading = false;
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {
|
||||
}).finally(() => {
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('system/proPlan/export', {
|
||||
...this.queryParams
|
||||
}, `proPlan_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user