Commit 2f63c9d0 by Lin

feat: BI事项管理删除交互

1 parent 677ca12a
...@@ -328,3 +328,11 @@ export function reasonList(data) { ...@@ -328,3 +328,11 @@ export function reasonList(data) {
data.method = "dj.api.smartcarlife.staff.missing.reception.report.reason.list" data.method = "dj.api.smartcarlife.staff.missing.reception.report.reason.list"
return request(data, RequestMethods.POST) return request(data, RequestMethods.POST)
} }
/**
*
* 删除BI事务
*/
export function reportDelete(data) {
data.method = "dj.api.smartcarlife.staff.missing.reception.report.delete"
return request(data, RequestMethods.POST)
}
...@@ -87,7 +87,8 @@ ...@@ -87,7 +87,8 @@
getReportList, getReportList,
reasonList, reasonList,
merchantList, merchantList,
reportExport reportExport,
reportDelete
} from "@/api/earlyWarningManager" } from "@/api/earlyWarningManager"
import dayjs from "dayjs" import dayjs from "dayjs"
// import { ACTIVITY_STATUS_OPTIONS } from "../constant" // import { ACTIVITY_STATUS_OPTIONS } from "../constant"
...@@ -277,6 +278,22 @@ ...@@ -277,6 +278,22 @@
this.rejectVisible = true this.rejectVisible = true
this.currentInfo = row this.currentInfo = row
}, },
// 删除
handleDel(row) {
this.$confirm('删除后不可恢复。确定是否删除?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
closeOnClickModal: false
}).then(() => {
reportDelete({ id: row.id }).then(res => {
this.notice.okTips()
this.$refs.table.refreshTable()
})
}).catch(err => {
console.log(err)
})
},
handleBatchExamine(type) { handleBatchExamine(type) {
let selectedData = [] let selectedData = []
if (this.$refs.table.mutiSelectArr.refundList) { if (this.$refs.table.mutiSelectArr.refundList) {
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
</d2-table> </d2-table>
</div> </div>
<!-- 导入文件弹框 --> <!-- 导入文件弹框 -->
<!-- <d2-dialog :title="'毛利导入'" <d2-dialog :title="'毛利导入'"
:is-visible="fileVisible" :is-visible="fileVisible"
@closeDialog="handleImport" @closeDialog="handleImport"
@confirmDialog="handleConfirmImport"> @confirmDialog="handleConfirmImport">
...@@ -129,92 +129,7 @@ ...@@ -129,92 +129,7 @@
</el-form-item> </el-form-item>
</el-form> </el-form>
</slot> </slot>
</d2-dialog> --> </d2-dialog>
<el-dialog
title="毛利导入"
:visible.sync="fileVisible"
width="480px"
:close-on-click-modal="false"
>
<div class="activity-info-container">
<el-form
:model="fileForm"
ref="fileRuleForm"
:rules="fileRules"
label-width="120px"
>
<el-form-item label="毛利信息表:" prop="fileName">
<div>
<el-button class="import-btn1">
<i class="el-icon-plus"></i>添加附件
<input
type="file"
id="fileUpload"
class="import-input"
accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel"
@change="importFile($event)"
/>
</el-button>
<el-link
type="primary"
class="import-template"
icon="el-icon-link"
@click="exportTemplate"
>
下载模板
</el-link>
</div>
<div style="margin-top: 10px">
<div v-if="!fileForm.fileName">请选择需要导入的合同信息表格</div>
<div class="flex" v-else>
<div class="fileName">{{ fileForm.fileName }}</div>
<i class="el-icon-delete" @click="removeFile"></i>
</div>
</div>
</el-form-item>
</el-form>
<div
style="margin-top: 10px"
class="result-box"
v-if="fileInfo && !uploadFlag"
>
<div>
<span style="color: #666666">操作结果:</span>
<span style="margin-right: 10px"
>成功记录
<span style="color: #2cca74; margin-left: 10px">{{
fileForm.succ
}}</span></span
>
<span style="margin-right: 10px"
>失败记录
<span style="color: #eb4e4e; margin-left: 10px">{{
fileForm.fail
}}</span></span
>
</div>
<el-button
v-if="fileForm.failDownloadUrl"
type="text"
@click.stop="exportError(fileForm.failDownloadUrl)"
>
导出失败记录
</el-button>
</div>
</div>
<div slot="footer">
<el-button v-preventReClick @click="fileVisible = false">
取消
</el-button>
<el-button
type="primary"
@click="fileVisible = false"
:loading="uploadFlag"
>
确定
</el-button>
</div>
</el-dialog>
<!-- 新增&修改&详情 --> <!-- 新增&修改&详情 -->
<edit-dialog :visible.sync="editVisible" <edit-dialog :visible.sync="editVisible"
v-if="editVisible" v-if="editVisible"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!