This commit is contained in:
faiz 2024-04-22 09:54:29 +08:00
parent 2d5c330269
commit 0c75467976
2 changed files with 112 additions and 15 deletions

View File

@ -154,6 +154,13 @@ export function marginMakeCode() {
export function marginRecordLst(data) { export function marginRecordLst(data) {
return request.get('margin/lst', data) return request.get('margin/lst', data)
} }
/**
* @description 转账记录
* @param {Object} param params {Object} 传值参数
*/
export function offlineRecordLst(data) {
return request.get('offline/lst', data)
}
/** /**
* @description 申请退回保证金(只返回信息) * @description 申请退回保证金(只返回信息)
* @param {Object} param params {Object} 传值参数 * @param {Object} param params {Object} 传值参数

View File

@ -81,7 +81,7 @@
</div> </div>
</div> </div>
</div> </div>
<el-button type="success" size="small" class="mr10 pay_btn" @click="handleTransfer(10)">提交转账信息</el-button> <el-button v-if="!merData.offline.includes(10)" type="success" size="small" class="mr10 pay_btn" @click="handleTransfer(10)">提交转账信息</el-button>
</div> </div>
<!--产品服务费--> <!--产品服务费-->
<div v-if="merData.is_service == 1"> <div v-if="merData.is_service == 1">
@ -102,7 +102,7 @@
</div> </div>
</div> </div>
</div> </div>
<el-button type="success" size="small" class="mr10 pay_btn" @click="handleTransfer(30)">提交转账信息</el-button> <el-button v-if="!merData.offline.includes(30)" type="success" size="small" class="mr10 pay_btn" @click="handleTransfer(30)">提交转账信息</el-button>
</div> </div>
<!--商品上架费--> <!--商品上架费-->
<div v-if="merData.is_goods == 1"> <div v-if="merData.is_goods == 1">
@ -122,7 +122,7 @@
</div> </div>
</div> </div>
</div> </div>
<el-button type="success" size="small" class="mr10 pay_btn" @click="handleTransfer(40)">提交转账信息</el-button> <el-button v-if="!merData.offline.includes(40)" type="success" size="small" class="mr10 pay_btn" @click="handleTransfer(40)">提交转账信息</el-button>
</div> </div>
<!--已支付--> <!--已支付-->
<div v-if="merData.is_margin == 10 " class="margin_main"> <div v-if="merData.is_margin == 10 " class="margin_main">
@ -157,7 +157,7 @@
</div> </div>
</div> </div>
</div> </div>
<el-button type="success" size="small" class="mr10 pay_btn" @click="handleTransfer(10)">提交转账信息</el-button> <!-- <el-button v-if="merData.offline.includes('10')" type="success" size="small" class="mr10 pay_btn" @click="handleTransfer(10)">提交转账信息</el-button> -->
</div> </div>
</div> </div>
<!-- 技术服务费 --> <!-- 技术服务费 -->
@ -171,7 +171,7 @@
<div> <div>
<img src="@/assets/images/margin03.png"> <img src="@/assets/images/margin03.png">
<div class="alic"> <div class="alic">
<span class="text_g">剩余保证金{{ merData.service_cost }}</span> <span class="text_g">剩余技术服务费{{ merData.service_cost }}</span>
</div> </div>
</div> </div>
</div> </div>
@ -192,7 +192,7 @@
</div> </div>
</div> </div>
</div> </div>
<el-button type="success" size="small" class="mr10 pay_btn" @click="handleTransfer(30)">提交转账信息</el-button> <!-- <el-button v-if="handleShow" type="success" size="small" class="mr10 pay_btn" @click="handleTransfer(30)">提交转账信息</el-button> -->
</div> </div>
</div> </div>
<!-- 上架费 --> <!-- 上架费 -->
@ -206,7 +206,7 @@
<div> <div>
<img src="@/assets/images/margin03.png"> <img src="@/assets/images/margin03.png">
<div class="alic"> <div class="alic">
<span class="text_g">剩余保证金{{ merData.goods_cost }}</span> <span class="text_g">剩余上架费{{ merData.goods_cost }}</span>
</div> </div>
</div> </div>
</div> </div>
@ -227,7 +227,7 @@
</div> </div>
</div> </div>
</div> </div>
<el-button type="success" size="small" class="mr10 pay_btn" @click="handleTransfer(40)">提交转账信息</el-button> <!-- <el-button v-if="merData.offline.includes('40')" type="success" size="small" class="mr10 pay_btn" @click="handleTransfer(40)">提交转账信息</el-button> -->
</div> </div>
</div> </div>
<div v-if="merData.is_margin == -10 || merData.is_margin == -1" class="margin_main"> <div v-if="merData.is_margin == -10 || merData.is_margin == -1" class="margin_main">
@ -260,6 +260,10 @@
</div> </div>
</div> </div>
</div> </div>
<div class="basic-information">
<span class="basic-label"> 申请记录</span>
<span class="mr10 spanBtn" @click="viewOffRecords">查看记录</span>
</div>
</div> </div>
<!--申请退回保障金银行信息弹窗--> <!--申请退回保障金银行信息弹窗-->
<el-dialog <el-dialog
@ -551,13 +555,60 @@
@current-change="pageChange" @current-change="pageChange"
/> />
</div> </div>
</el-dialog>
<!--查看记录-->
<el-dialog
v-if="offRecord"
:visible.sync="offRecord"
title="操作记录"
width="800px"
close-on-click-modal
class="mapBox"
custom-class="dialog-scustom"
>
<el-table :data="tableOffData.data" :loading="loading" size="small">
<el-table-column label="序号" min-width="50">
<template scope="scope">
<span>{{ scope.$index+(tableFrom.page - 1) * tableFrom.limit + 1 }}</span>
</template>
</el-table-column>
<el-table-column label="缴费截图" min-width="90" prop="image">
<template scope="scope">
<el-image
style="width: 30px; height: 30px"
:src="scope.row.image"
:preview-src-list="[scope.row.image]">
</el-image>
</template>
</el-table-column>
<el-table-column prop="pay_price" label="支付金额" min-width="60"></el-table-column>
<el-table-column prop="type" label="缴费类型" min-width="60">
<template scope="scope">
<span>{{scope.row.type == 10?'保证金':scope.row.type == 30?'上架费':'技术服务费'}}</span>
</template>
</el-table-column>
<el-table-column label="备注" min-width="100" prop="mark" />
<el-table-column label="拒绝原因" min-width="100" prop="refuse" />
<el-table-column prop="create_time" label="缴费时间" min-width="120" />
<!-- <el-table-column prop="create_time" label="操作时间" min-width="120" /> -->
</el-table>
<div class="acea-row row-right page">
<el-pagination
:page-size="tableOffFrom.limit"
:current-page="tableOffFrom.page"
layout="prev, pager, next, jumper"
:total="tableOffData.total"
@size-change="handleOffSizeChange"
@current-change="pageOffChange"
/>
</div>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { serviceCodeApi,goodsCodeApi,storeGetInfoApi, marginCode, marginMakeCode, marginRecordLst, marginRefund, marginRefundApply,offlinePayApi } from '@/api/setting' import { serviceCodeApi,goodsCodeApi,storeGetInfoApi, marginCode, marginMakeCode, marginRecordLst,offlineRecordLst, marginRefund, marginRefundApply,offlinePayApi } from '@/api/setting'
import { getBaseInfo, merchantUpdate } from '@/api/user.js' import { getBaseInfo, merchantUpdate } from '@/api/user.js'
import Maps from '@/components/map/map.vue' import Maps from '@/components/map/map.vue'
@ -642,6 +693,7 @@ export default {
modalMap: false, modalMap: false,
modalBank: false, modalBank: false,
modalRecord: false, modalRecord: false,
offRecord: false,
loading: false, loading: false,
roterPre: roterPre, roterPre: roterPre,
qrCode: '', qrCode: '',
@ -660,6 +712,14 @@ export default {
total: 0, total: 0,
data: [] data: []
}, },
tableOffFrom: {
page: 1,
limit: 20
},
tableOffData: {
total: 0,
data: []
},
value1: '', value1: '',
value2: '', value2: '',
marginPrice: 0, marginPrice: 0,
@ -782,6 +842,9 @@ export default {
this.getInfo() this.getInfo()
}, },
methods: { methods: {
handleShow(){
console.log(this.merData.offline.includes('30'));
},
handleTransfer(id){ handleTransfer(id){
this.$modalForm(offlinePayApi(id)).then(() => this.getInfo()) this.$modalForm(offlinePayApi(id)).then(() => this.getInfo())
}, },
@ -969,12 +1032,6 @@ export default {
// }) // })
} }
}, },
//
viewRecords() {
this.tableFrom.page = 1
this.modalRecord = true
this.getRecordList()
},
// //
getRecordList() { getRecordList() {
const that = this const that = this
@ -988,6 +1045,31 @@ export default {
that.$message.error(res.message) that.$message.error(res.message)
}) })
}, },
//
viewRecords() {
this.tableFrom.page = 1
this.modalRecord = true
this.getRecordList()
},
//
viewOffRecords() {
this.tableOffFrom.page = 1
this.offRecord = true
this.getOffRecordList()
},
//
getOffRecordList() {
const that = this
that.loading = true
offlineRecordLst(that.tableOffFrom).then(async(res) => {
that.tableOffData.data = res.data.list
that.tableOffData.total = res.data.count
that.loading = false
}).catch((res) => {
that.loading = false
that.$message.error(res.message)
})
},
pageChange(page) { pageChange(page) {
this.tableFrom.page = page this.tableFrom.page = page
this.getRecordList() this.getRecordList()
@ -996,6 +1078,14 @@ export default {
this.tableFrom.limit = val this.tableFrom.limit = val
this.getRecordList() this.getRecordList()
}, },
pageOffChange(page) {
this.tableFrom.page = page
this.getRecordList()
},
handleOffSizeChange(val) {
this.tableFrom.limit = val
this.getRecordList()
},
// 退 // 退
applyReturn() { applyReturn() {
const that = this const that = this