Commit f71d751f by cen

fix: 接待报备新增报错

1 parent 92bdbff7
......@@ -481,5 +481,5 @@ export function templatEexport(data) {
/** 获奖名单导入 */
export function importWinner(data) {
data.method = `dj.api.script.activity.award.winner.import.sync`
return request(data, "post")
return request(data, "post", ["file"])
}
......@@ -69,8 +69,8 @@
@change="changeChannelFn"
v-model="formData.category"
>
<el-checkbox label="0">问界</el-checkbox>
<el-checkbox label="1">鸿蒙</el-checkbox>
<el-checkbox label="1">问界</el-checkbox>
<el-checkbox label="0">鸿蒙</el-checkbox>
<el-checkbox label="3">通用</el-checkbox>
</el-checkbox-group>
</el-form-item>
......@@ -140,7 +140,7 @@
</template>
<script>
import { deepClone } from "@/common/util"
import { deepClone, Util } from "@/common/util"
import { SCENETYPE_OPTIONS } from "../constant"
import preview from "../components/preview"
......@@ -313,6 +313,7 @@ export default {
const start = new Date()
const end = new Date()
end.setTime(start.getTime() + 3600 * 1000 * 24 * 30)
this.formData.dateTime = [start, end]
}
// 克隆
......@@ -332,8 +333,11 @@ export default {
const params = deepClone(this.formData)
console.log(params, "8989898")
console.log(this.formData, "8989898")
params.startTime = params.dateTime[0]
params.endTime = params.dateTime[1]
params.startTime = Util.dateFormate(
params.dateTime[0],
"YYYY-MM-DD HH:mm"
)
params.endTime = Util.dateFormate(params.dateTime[1], "YYYY-MM-DD HH:mm")
params.category = params.category.join(",")
params.activityCover = params.activityCover.join(",")
// params.status = type
......
......@@ -41,7 +41,7 @@
<el-button
size="small"
type="primary"
@click="jumpAdd"
@click="exportTemplate"
v-if="formData.activityCycleResponses"
>
导出名单
......@@ -51,9 +51,9 @@
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane
:label="value.cycleName"
:name="value.cycleName"
:name="value.id"
v-for="value in formData.activityCycleResponses"
:key="value.activityId"
:key="value.id"
>
<template>
<el-table :data="value.activityAwardWinnerResponses" border>
......@@ -107,6 +107,7 @@
</template>
<script>
import { mapActions, mapState } from "vuex"
export default {
name: "ActivityDetails",
data() {
......@@ -166,22 +167,48 @@ export default {
activeName: ""
}
},
computed: {
...mapState({
dowloadList: (state) => state.d2admin.user.dowloadList,
updateList: (state) => state.d2admin.user.updateList,
updateRefesh: (state) => state.d2admin.user.updateRefesh
})
},
mounted() {
const info = this.$route.query.info
console.log(info)
this.formData = info
this.activeName = this.formData.activityCycleResponses[0].cycleName
this.activeName = this.formData.activityCycleResponses[0].id
console.log(this.formData)
},
methods: {
...mapActions("d2admin/user", ["actionSetDownloadList"]),
// 取消按钮返回列表页
handleCancel() {
this.$router.push({
name: "activityManagement"
})
},
// 模板下载
exportTemplate() {
var params = {}
params.method =
"dj.api.script.activity.award.winner.import.template.export.async"
params.moduleName = "script"
params.activityId = this.activeName
const list = [
...this.dowloadList,
{
name: "获奖人员列表",
exportParam: JSON.stringify(params),
status: "waiting",
timeid: new Date().getTime()
}
]
this.actionSetDownloadList({ list, type: "dowloadList" })
}
}
}
......
......@@ -99,34 +99,47 @@
label-width="120px"
>
<el-form-item label="评选周期:" prop="periodList">
<div
v-for="(item, index) in periodList"
:key="index"
style="margin-bottom: 10px"
>
<el-input
placeholder="请输入"
v-model="periodList[index].cycleName"
@blur="handleNameBlur(index)"
style="
width: 432px;
height: 32px;
display: inline-block;
margin-right: 10px;
border-radius: 4px;
"
></el-input>
<!-- <i
v-if="ruleForm.length > 1"
class="el-icon-delete"
@click="removePeriod(index)"
></i> -->
<div style="margin-bottom: 10px">
<el-select v-model="currentPeriod" placeholder="请选择">
<el-option
v-for="item in fileForm.periodList"
:key="item.id"
:label="item.cycleName"
:value="item.id"
>
</el-option>
</el-select>
<div class="add-box flex" v-if="addPeriodFlag">
<el-input
placeholder="请输入"
v-model="cycleName"
maxlength="10"
style="
width: 432px;
height: 32px;
display: inline-block;
margin-right: 10px;
border-radius: 4px;
"
></el-input>
<el-button type="text" size="small" @click="addPeriod">
确认
</el-button>
<el-button
type="text"
size="small"
@click="addPeriodFlag = false"
>
取消
</el-button>
</div>
</div>
<el-button
v-if="!addPeriodFlag"
type="primary"
size="small"
icon="el-icon-plus"
@click="addPeriod"
@click="addPeriodFlag = true"
>
新增周期
</el-button>
......@@ -161,7 +174,20 @@
<i class="el-icon-delete" @click="removeFile"></i>
</div>
</div>
</el-form-item>
<div class="err-box" v-if="fileForm.errorFileUrl">
<div class="err-tips">
<i class="el-icon-warning"></i>
文件校验失败,共发现
{{ fileForm.errors.length }}
个错误,请根据以下提示修改后重新上传:
</div>
<div class="err-list">
<div v-for="(item, index) in fileForm.errors" :key="item">
{{ index + 1 }} {{ item }}
</div>
</div>
</div></el-form-item
>
</el-form>
</div>
<div slot="footer">
......@@ -178,7 +204,8 @@ import {
getActivityPage,
delActivity,
getActivityCyclePage,
addActivityCycle
addActivityCycle,
importWinner
} from "@api/contentManager"
import { mapActions, mapState } from "vuex"
import dayjs from "dayjs"
......@@ -191,8 +218,10 @@ export default {
dayjs: dayjs,
fileVisible: false,
currentRow: null,
periodList: [],
fileForm: {},
fileForm: {
fileName: "",
periodList: []
},
fileRules: {
fileName: [
{
......@@ -270,6 +299,9 @@ export default {
}
],
getListApi: getActivityPage,
addPeriodFlag: false,
currentPeriod: "",
cycleName: "",
tableParams: {
listName: "list",
tableOption: {
......@@ -379,12 +411,24 @@ export default {
this.fileVisible = true
},
addPeriod() {
this.periodList.push({ cycleName: "" })
if (!this.cycleName || this.cycleName.trim() === "") {
this.$message.warning("请输入评选周期名称")
return
}
addActivityCycle({
activityId: this.currentRow.id,
cycleName: this.cycleName
}).then(async (res) => {
this.addPeriodFlag = false
this.notice.okTips()
await this.activityCyclePage()
this.currentPeriod = this.fileForm.periodList[0].id
})
},
// 添加删除周期方法
removePeriod(index) {
this.ruleForm.splice(index, 1)
this.fileForm.periodList.splice(index, 1)
},
// 上传文件,转码为base64
importFile(e) {
......@@ -448,34 +492,25 @@ export default {
getActivityCyclePage({ activityId: this.currentRow.id }).then((res) => {
console.log(res)
this.periodList = res || []
})
},
handleNameBlur(index) {
if (
!this.periodList[index].cycleName ||
this.periodList[index].cycleName.trim() === ""
) {
this.$message.warning("请输入评选周期名称")
return
}
addActivityCycle({
activityId: this.currentRow.id,
cycleName: this.ruleForm[index].name
}).then((res) => {
this.notice.okTips()
this.activityCyclePage()
this.fileForm.periodList = res || []
})
},
handleNameBlur(index) {},
confirmBtn() {
this.$refs.fileRuleForm.validate((valid) => {
if (valid) {
importWinner({
cycleActivityId: this.periodList[0].id,
fileInfo: this.fileInfo
cycleActivityId: this.currentPeriod,
file: this.fileInfo
}).then((res) => {
this.notice.okTips()
this.fileVisible = false
if (res.errorFileUrl) {
this.fileForm = { ...this.fileForm, ...res }
} else {
this.fileVisible = false
this.fileForm = {}
this.$refs.table.refreshTable()
}
})
}
})
......@@ -603,5 +638,33 @@ export default {
display: flex;
align-items: center;
}
.add-box {
margin-top: 10px;
}
.err-box {
border-radius: 3px;
opacity: 1;
background: #feeff0;
padding: 10px;
box-sizing: border-box;
margin-top: 8px;
.err-tips {
color: #333333;
font-size: 12px;
font-weight: 500;
.el-icon-warning {
color: #ff4d4f;
font-size: 14px;
margin-right: 7px;
}
}
.err-list {
padding-left: 20px;
color: #666666;
font-size: 12px;
font-weight: 400;
line-height: 20px;
}
}
}
</style>
<!-- 运营审核 -->
<template>
<baseDialog
:dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm"
<el-dialog
id="baseDialog"
top="15vh"
:close-on-click-modal="false"
:close-on-press-escape="true"
:title="dialogConfig.title"
:width="dialogConfig.width"
:visible.sync="visible"
:show-close="true"
class="noborder"
>
<div class="reject-dialog">
<div class="dialog-title-box">
<div>2323232</div>
<div class="dialog-title">
<div class="dialog-name">{{ info.staffName }}</div>
<div class="dialog-title1">
<div>
<span class="title-text">手机号:</span>
<span class="title-text">12222</span>
<span class="title-text">{{ info.mobile }}</span>
</div>
<div>
<span class="title-text">所属门店:</span>
<span class="title-text">12222</span>
<span class="title-text">{{ info.merchantName }}</span>
</div>
</div>
<div class="dialog-title">
<div class="dialog-title1">
<div>
<span class="title-text">客户姓名:</span>
<span class="title-text">32323</span>
<span class="title-text">{{ info.customerName }}</span>
</div>
<div>
<span class="title-text">缺失原因:</span>
<span class="title-text">323232</span>
<span class="title-text">{{ info.reason }}</span>
</div>
</div>
</div>
......@@ -35,7 +40,7 @@
ref="formRef"
label-width="150px"
default-width="350px"
:form-ref="examineRef"
:form-ref="rejectRef"
:form-obj="infoForm"
:form-data="editFormData"
:form-rules="formRules"
......@@ -44,15 +49,26 @@
>审核通过后,转账业务单据自动流转至财务确认。</span
> -->
</div>
</baseDialog>
<div slot="footer">
<el-button v-preventReClick @click="visible = false" type="info">
取消
</el-button>
<el-button v-preventReClick @click="confirmBtn(2)" type="danger">
驳回
</el-button>
<el-button
type="primary"
@click="confirmBtn(1)"
:loading="$store.state.d2admin.loading.value || btnLoding"
>
通过
</el-button>
</div>
</el-dialog>
</template>
<script>
import {
transferAccountsRecordUpdateStatus,
batchOperatorAudit
} from "@api/transferAccountsManage"
import { deepClone } from "@/common/util"
import { reportApproval } from "@/api/earlyWarningManager"
export default {
name: "ExamineDialog",
data() {
......@@ -65,13 +81,14 @@ export default {
infoForm: {
remark: ""
},
rejectRef: "rejectRef",
dialogConfig: {
title: "批量通过审核",
width: "600px"
},
examineRef: "examineRef",
formRules: {
// sendOutMerchantId: [{ required: true, message: '请选择发货主体', trigger: 'change' }]
remark: [{ required: true, message: "请填写审核意见", trigger: "blur" }]
},
editFormData: [
{
......@@ -95,7 +112,7 @@ export default {
// type: String,
// default: 'procurementReview'
// },
examineVisible: {
auditsVisible: {
type: Boolean,
default: false
},
......@@ -103,18 +120,18 @@ export default {
// type: Object,
// default: {}
// }
infoList: {
type: Array,
info: {
type: Object,
default: () => {}
}
},
computed: {
visible: {
get() {
return this.examineVisible
return this.auditsVisible
},
set(newVal) {
this.$emit("dialogClose", { flag: newVal, attrName: "examineVisible" })
this.$emit("dialogClose", { flag: newVal, attrName: "auditsVisible" })
}
}
},
......@@ -122,26 +139,20 @@ export default {
mounted() {},
methods: {
handleAddConfirm() {
var params = {}
params.remark = this.infoForm.remark
params.status = 2
if (this.infoList.length > 1) {
params.orderCodeList = this.infoList.map((item) => {
return item.orderCode
})
} else {
params.orderCode = this.infoList[0].orderCode
}
console.log(params)
confirmBtn(type) {
this.$refs.formRef.$refs[this.rejectRef].validate((valid) => {
if (valid) {
var params = {}
params.auditOpinion = this.infoForm.remark
params.id = this.info.id
params.auditStatus = type
console.log(params)
const _api =
this.infoList.length > 1
? batchOperatorAudit
: transferAccountsRecordUpdateStatus
_api(params).then((res) => {
this.notice.okTips("操作成功")
this.visible = true
reportApproval(params).then((res) => {
this.notice.okTips("操作成功")
this.visible = true
})
}
})
}
}
......@@ -149,15 +160,25 @@ export default {
</script>
<style lang="scss" scoped>
.reject-dialog {
.dialog-title {
.dialog-title-box {
width: 100%;
height: 44px;
background: #fafafa;
text-align: center;
line-height: 44px;
padding: 10px 20px;
color: #333333;
font-size: 16px;
font-weight: 400;
box-sizing: border-box;
margin-bottom: 20px;
.dialog-name {
margin-bottom: 12px;
}
.dialog-title1 {
display: flex;
color: #333333;
font-size: 14px;
font-weight: 400;
margin-bottom: 8px;
}
}
.reject-input {
......
......@@ -7,7 +7,7 @@
@handleClick="handleAddConfirm"
>
<div class="reject-dialog">
<div class="dialog-title">已选中 15 条记录</div>
<div class="dialog-title">已选中 {{ infoList.length }} 条记录</div>
<glsx-combi-form
class="edit-form-container"
ref="formRef"
......@@ -117,7 +117,7 @@ export default {
this.$refs.formRef.$refs[this.rejectRef].validate((valid) => {
if (valid) {
var params = {}
params.remark = this.infoForm.remark
params.auditOpinion = this.infoForm.remark
params.auditStatus = this.auditStatus
if (this.infoList.length > 1) {
params.ids = this.infoList.map((item) => {
......
<!-- 驳回 -->
<!-- 运营审核 -->
<template>
<baseDialog
:dialog-config="dialogConfig"
:is-show.sync="visible"
class="accountDailog"
@handleClick="handleAddConfirm"
<el-dialog
id="baseDialog"
top="15vh"
:close-on-click-modal="false"
:close-on-press-escape="true"
:title="dialogConfig.title"
:width="dialogConfig.width"
:visible.sync="visible"
:show-close="true"
@close="dialogClose"
class="noborder"
>
<div class="reject-dialog">
<div class="dialog-title">已选中 15 条记录</div>
<div class="list-name">审核信息</div>
<div class="dialog-title-box">
<div class="dialog-name">{{ info.staffName }}</div>
<div class="dialog-title1">
<div>
<span class="title-text">手机号:</span>
<span class="title-text">{{ info.mobile }}</span>
</div>
<div>
<span class="title-text">所属门店:</span>
<span class="title-text">{{ info.merchantName }}</span>
</div>
</div>
<div class="dialog-title1">
<div>
<span class="title-text">客户姓名:</span>
<span class="title-text">{{ info.customerName }}</span>
</div>
<div>
<span class="title-text">缺失原因:</span>
<span class="title-text">{{ info.reason }}</span>
</div>
</div>
</div>
<glsx-combi-form
class="edit-form-container"
ref="formRef"
......@@ -18,28 +47,72 @@
:form-data="editFormData"
:form-rules="formRules"
></glsx-combi-form>
<div class="list-name">历史审核记录</div>
<div class="timeline-box">
<el-timeline>
<el-timeline-item
v-for="(activity, index) in activities"
:key="index"
:color="index == 0 ? '#2a58ad' : ''"
>
<div class="status-box">
<span class="status-box-text">{{
activity.auditStatus == "1" ? "【已通过】" : "【已驳回】"
}}</span>
<span class="status-box-text">{{
activity.auditOpinion || "-"
}}</span>
</div>
<div class="time-box">
<span class="time-box-text">{{ activity.auditUser }}</span>
<span class="time-box-text">{{ activity.auditTime }}</span>
</div>
</el-timeline-item>
</el-timeline>
</div>
</div>
</baseDialog>
<div slot="footer">
<el-button v-preventReClick @click="dialogClose" type="info">
取消
</el-button>
<el-button v-preventReClick @click="confirmBtn(2)" type="danger">
驳回
</el-button>
<el-button
type="primary"
@click="confirmBtn(1)"
:loading="$store.state.d2admin.loading.value || btnLoding"
>
通过
</el-button>
</div>
</el-dialog>
</template>
<script>
import { transferAccountsRecordUpdateStatus } from "@api/transferAccountsManage"
import { deepClone } from "@/common/util"
import { reportApproval, reportDetail } from "@/api/earlyWarningManager"
import { color } from "echarts"
export default {
name: "RejectDialog",
name: "ExamineDialog",
data() {
return {
userInfo: this.$store.state.d2admin.user.info,
// txtObj: {
// procurementReview: '说明:订单审核后会自动流转至商务进行复审',
// procurementBusiness: '说明:订单审核后会自动流转至供应商进行确认并发货'
// },
infoForm: {
remark: ""
},
activities: [],
rejectRef: "rejectRef",
dialogConfig: {
title: "批量驳回审核",
title: "重新审核",
width: "600px"
},
rejectRef: "rejectRef",
examineRef: "examineRef",
formRules: {
remark: [{ required: true, message: "请输入审核意见", trigger: "blur" }]
remark: [{ required: true, message: "请填写审核意见", trigger: "blur" }]
},
editFormData: [
{
......@@ -52,18 +125,29 @@ export default {
rows: 4
}
],
baseData: {}
baseData: {
// shippingEntityList: []
},
btnLoading: false
}
},
props: {
// fromPage: {
// type: String,
// default: 'procurementReview'
// },
rejectVisible: {
type: Boolean,
default: false
},
paramsObj: {
// paramsObj: {
// type: Object,
// default: {}
// }
info: {
type: Object,
default: {}
default: () => {}
}
},
computed: {
......@@ -78,40 +162,81 @@ export default {
},
mounted() {
console.log("paramsObj", this.paramsObj)
this.getReportDetail()
},
methods: {
handleAddConfirm() {
confirmBtn(type) {
this.$refs.formRef.$refs[this.rejectRef].validate((valid) => {
if (valid) {
var params = {}
params.remark = this.infoForm.remark
params.orderCode = this.paramsObj.orderCode
params.status = 9
params.auditOpinion = this.infoForm.remark
params.id = this.info.id
params.auditStatus = type
console.log(params)
transferAccountsRecordUpdateStatus(params).then((res) => {
reportApproval(params).then((res) => {
this.notice.okTips("操作成功")
this.visible = true
this.visible = false
})
}
})
},
getReportDetail() {
reportDetail({ id: this.info.id }).then((res) => {
this.activities = res
})
},
dialogClose() {
this.visible = false
}
}
}
</script>
<style lang="scss" scoped>
::v-deep .el-dialog__body {
padding: 0px 20px 30px;
}
::v-deep .el-timeline {
box-sizing: border-box;
}
::v-deep .el-timeline-item__node--normal {
width: 8px;
height: 8px;
background-color: #2a58ad;
}
.reject-dialog {
.dialog-title {
max-height: 70vh;
overflow-y: scroll;
.list-name {
font-size: 16px;
font-weight: 400;
color: #333333;
margin-bottom: 20px;
border-bottom: 1px solid #e5e5e5;
padding: 13px 0;
}
.dialog-title-box {
width: 100%;
height: 44px;
background: #fafafa;
text-align: center;
line-height: 44px;
padding: 10px 20px;
color: #333333;
font-size: 16px;
font-weight: 400;
box-sizing: border-box;
margin-bottom: 20px;
.dialog-name {
margin-bottom: 12px;
}
.dialog-title1 {
display: flex;
color: #333333;
font-size: 14px;
font-weight: 400;
margin-bottom: 8px;
}
}
.reject-input {
::v-deep .el-textarea__inner {
height: 70px;
......@@ -128,5 +253,27 @@ export default {
.tips {
color: #999999;
}
.status-box {
display: flex;
align-items: center;
.status-box-text {
margin-right: 8px;
}
}
.time-box {
display: flex;
align-items: center;
margin-top: 5px;
color: #999999;
font-size: 12px;
font-weight: 400;
.time-box-text {
margin-right: 8px;
}
}
.timeline-box {
width: 100%;
}
}
</style>
......@@ -24,7 +24,7 @@
<el-button size="small" type="primary" @click="handleBatchExamine(2)">
批量驳回
</el-button>
<el-button size="small" type="primary" @click="jumpAdd">
<el-button size="small" type="primary" @click="exportList">
导出
</el-button>
</d2-table-header>
......@@ -34,12 +34,30 @@
:table-params="tableParams"
:get-list-api="getListApi"
:before-search-fn="beforeSearchFn"
@pageChange="handlePageChange"
>
<div slot="auditStatus" slot-scope="scope">
<div class="online-status">
<span
class="dot"
:style="{
background: STATUS_OPTIONS.find(
(item) => item.id == scope.scope.auditStatus
).backgroundColor
}"
></span>
{{
STATUS_OPTIONS.find(
(item) => item.id == scope.scope.auditStatus
).label
}}
</div>
</div>
<template slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleAudits(scope.scope)">
审核
</el-button>
<el-button type="text" @click="jumpEdit(scope.scope)">
<el-button type="text" @click="handleReject(scope.scope)">
重新审核
</el-button>
</template>
......@@ -58,14 +76,14 @@
<!-- 审核 -->
<audits-dialog
:audits-visible="auditsVisible"
:info-list="infos"
:info="currentInfo"
v-if="auditsVisible"
@dialogClose="auditsDialogClose"
/>
<!-- 驳回 -->
<reject-dialog
:reject-visible="rejectVisible"
:params-obj="recordInfo"
:info="currentInfo"
v-if="rejectVisible"
@dialogClose="rejectDialogClose"
/>
......@@ -73,28 +91,48 @@
</template>
<script>
import examineDialog from "./components/examineDialog"
import rejectDialog from "./components/rejectDialog"
import auditsDialog from "./components/auditsDialog"
import rejectDialog from "./components/rejectDialog"
import {
getReportList,
reasonList,
merchantList
merchantList,
reportExport
} from "@/api/earlyWarningManager"
import dayjs from "dayjs"
// import { ACTIVITY_STATUS_OPTIONS } from "../constant"
import { Util, deepClone } from "@/common/util"
const STATUS_OPTIONS = [
{
label: "待审核",
id: "0",
backgroundColor: "#FDB757"
},
{
label: "已通过",
id: "1",
backgroundColor: "#2CCA74"
},
{
label: "已驳回",
id: "2",
backgroundColor: "#EB4E4E"
}
]
export default {
name: "FailureToReportReception",
components: {
examineDialog,
rejectDialog,
auditsDialog
auditsDialog,
rejectDialog
},
data() {
return {
STATUS_OPTIONS,
examineVisible: false,
auditsVisible: false,
infos: [],
currentInfo: null,
rejectVisible: false,
showFormData: [
{
......@@ -157,8 +195,8 @@ export default {
name: "reasonCode",
type: "select",
optionList: [],
optionId: "confId",
optionLabel: "confLabel",
optionId: "reasonCode",
optionLabel: "reason",
optionsName: "customerStatusList"
},
......@@ -179,6 +217,10 @@ export default {
pickerOptions: "rangePickerOptions"
}
],
pageInfo: {
pageSize: 10,
currentPage: 1
},
searchForm: {
customerStatus: "",
sellerMerchantId: "",
......@@ -191,7 +233,7 @@ export default {
tableParams: {
listName: "list",
mutiSelectUniqueKey: "id",
mutiSelectName: "transferAccounts",
mutiSelectName: "refundList",
tableOption: {
width: "100"
},
......@@ -199,9 +241,7 @@ export default {
{
label: "员工姓名",
prop: "staffName",
minWidth: 175,
type: "slot",
addHtml: "name"
minWidth: 175
},
{
label: "员工手机号",
......@@ -257,7 +297,7 @@ export default {
minWidth: 100,
prop: "auditStatus",
type: "slot",
addHtml: "punishStatus"
addHtml: "auditStatus"
},
{
label: "审核意见",
......@@ -272,16 +312,35 @@ export default {
this.getOptionsList()
},
methods: {
handleAudits() {
handleAudits(row) {
console.log(row)
this.auditsVisible = true
this.currentInfo = row
},
handleReject(row) {
console.log(row)
this.rejectVisible = true
this.currentInfo = row
},
handleBatchExamine(type) {
let selectedData = []
if (this.$refs.table.mutiSelectArr.refundList) {
selectedData = this.$refs.table.mutiSelectArr.refundList
}
if (!selectedData?.length) {
this.$message({
message: "请选择需要审核的记录;本次操作无效",
type: "warning",
showClose: true
})
return false
}
console.log(selectedData)
this.infos = selectedData
this.examineVisible = true
this.auditStatus = type
},
handleReject() {
this.rejectVisible = true
},
handleExport() {
var params = this.searchFormSearch
if (params.statuses.length > 0) {
......@@ -317,7 +376,8 @@ export default {
this.actionSetDownloadList({ list, type: "dowloadList" })
},
getOptionsList() {
merchantList().then((res) => {
console.log(this.pageInfo)
merchantList({}).then((res) => {
this.showFormData.forEach((item, index) => {
if (item.name === "merchantId") {
const options = res.map((item) => ({
......@@ -328,11 +388,11 @@ export default {
}
})
})
reasonList().then((res) => {
reasonList({}).then((res) => {
this.showFormData.forEach((item, index) => {
if (item.name === "reasonCode") {
const options = res.map((item) => ({
reason: item.reasonCode,
reason: item.reason,
reasonCode: item.reasonCode
}))
this.$set(this.showFormData[index], "optionList", options)
......@@ -374,9 +434,47 @@ export default {
this.page = this.$options.data.call(this).page
this.$refs.table.refreshTable(true, true)
},
handleReset() {
this.searchForm = this.$options.data.call(this).searchForm
},
examineDialogClose() {
this.examineVisible = false
this.$refs.table.refreshTable()
},
auditsDialogClose() {
this.auditsVisible = false
this.$refs.table.refreshTable()
},
rejectDialogClose() {
this.rejectVisible = false
this.$refs.table.refreshTable()
},
handlePageChange(page) {
this.pageInfo = page
},
exportList() {
reportExport({
...this.searchFormSearch,
...this.pageInfo
}).then((res) => {
res && window.open(res)
})
}
}
}
</script>
<style scoped lang="scss">
.online-status {
display: flex;
justify-content: center;
align-items: center;
.dot {
display: inline-block;
width: 6px;
height: 6px;
border-radius: 50%;
margin-right: 8px;
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!