1.提现展示二维码

2.
This commit is contained in:
邱贞招 2024-09-02 09:09:08 +08:00
parent e27bf9bfba
commit 61cbf02877
6 changed files with 74 additions and 43 deletions

View File

@ -5,8 +5,8 @@ VUE_APP_TITLE = 共享电动车管理系统
ENV = 'production' ENV = 'production'
# 共享电动车管理系统/生产环境 # 共享电动车管理系统/生产环境
# VUE_APP_BASE_API = 'https://dche.ccttiot.com/prod-api' VUE_APP_BASE_API = 'https://dche.ccttiot.com/prod-api'
VUE_APP_BASE_API = 'https://che.chuangtewl.com/prod-api' # VUE_APP_BASE_API = 'https://che.chuangtewl.com/prod-api'
# 小程序外链跳转设备 # 小程序外链跳转设备
VUE_APP_WX_DEVICE_URL = 'weixin://dl/business/?appid=wx4d178f8c80348214&env_version=release' VUE_APP_WX_DEVICE_URL = 'weixin://dl/business/?appid=wx4d178f8c80348214&env_version=release'

View File

@ -9,6 +9,15 @@ export function listHardwareVersion(query) {
}) })
} }
// 查询硬件版本列表 排除父节点
export function listHardwareVersionExcludeParent(query) {
return request({
url: '/system/hardwareVersion/list/exclude',
method: 'get',
params: query
})
}
// 查询硬件版本详细 // 查询硬件版本详细
export function getHardwareVersion(id) { export function getHardwareVersion(id) {
return request({ return request({

View File

@ -809,7 +809,7 @@
</el-date-picker> </el-date-picker>
</el-row> </el-row>
<!-- <el-row style="margin-bottom: 0.5em"> <!-- <el-row style="margin-bottom: 0.5em">
</el-row> --> </el-row> -->
<location-map <location-map
v-if="showPlaceSearchMap && tripRouteStr != ''" v-if="showPlaceSearchMap && tripRouteStr != ''"
@ -904,8 +904,8 @@ import {
import { listDept2 } from "@/api/system/dept"; import { listDept2 } from "@/api/system/dept";
import { import {
getHardwareVersion, getHardwareVersion,
listHardwareVersion, listHardwareVersion, listHardwareVersionExcludeParent
} from "@/api/system/hardwareVersion"; } from '@/api/system/hardwareVersion'
import Treeselect from "@riophae/vue-treeselect"; import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@ -1032,8 +1032,8 @@ export default {
window.removeEventListener("scroll", this.handleScroll, true); window.removeEventListener("scroll", this.handleScroll, true);
}, },
created() { created() {
listHardwareVersion(this.queryParams).then((response) => { listHardwareVersionExcludeParent(this.queryParams).then((response) => {
this.hardwareVersionOptions = response.rows; this.hardwareVersionOptions = response.data;
this.loading2 = false; this.loading2 = false;
}); });
console.log("当前用户信息:", this.$store.state.user.name); console.log("当前用户信息:", this.$store.state.user.name);
@ -1483,13 +1483,13 @@ export default {
endTime: this.formatDate(this.endTime), endTime: this.formatDate(this.endTime),
}; };
this.showPlaceSearchMap=false this.showPlaceSearchMap=false
gettrajectory(data).then((response) => { gettrajectory(data).then((response) => {
this.tripRouteStr = response.data; this.tripRouteStr = response.data;
// this.re // this.re
this.showPlaceSearchMap=true this.showPlaceSearchMap=true
setTimeout(() => { setTimeout(() => {
this.$refs.map.trajectory(); this.$refs.map.trajectory();
}, 600); }, 600);

View File

@ -100,6 +100,14 @@
@click="handleUpdate(scope.row)" @click="handleUpdate(scope.row)"
v-hasPermi="['system:hardwareVersion:edit']" v-hasPermi="['system:hardwareVersion:edit']"
>修改</el-button> >修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-edit"
v-if="scope.row.parentId == 0"
@click="handleAddChild(scope.row)"
v-hasPermi="['system:hardwareVersion:edit']"
>新增</el-button>
<el-button <el-button
size="mini" size="mini"
type="text" type="text"
@ -254,7 +262,16 @@ export default {
handleAdd() { handleAdd() {
this.reset(); this.reset();
this.open = true; this.open = true;
this.title = "添加硬件版本"; this.form.parentId = 0;
this.title = "添加批次版本";
},
/** 添加子版本 */
handleAddChild(row) {
this.reset();
this.open = true;
console.log("row",row)
this.form.parentId = row.id;
this.title = "添加子版本";
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {

View File

@ -58,7 +58,7 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
v-if="scope.row.rechargeType == '2' && !scope.row.isRefunded" v-if="scope.row.rechargeType == '2' && !scope.row.isRefunded && scope.row.depositDeduction == '0'"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"

View File

@ -170,28 +170,25 @@
</div> </div>
</el-dialog> </el-dialog>
<el-dialog title="提现详细" :visible.sync="open3" width="700px" append-to-body> <el-dialog title="提现详细" :visible.sync="open3" width="1000px" append-to-body>
<el-form ref="form3" :model="form3" label-width="100px" size="mini"> <el-form ref="form3" :model="form3" label-width="100px" size="mini">
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="申请人:">{{ form3.owner }}</el-form-item> <el-col :span="12">
<el-form-item label="区域:">{{ form3.areaName }}</el-form-item> <el-form-item label="申请人:">{{ form3.owner }}</el-form-item>
</el-col> <el-form-item label="区域:">{{ form3.areaName }}</el-form-item>
<el-col :span="24"> <el-form-item label="提现金额:"><span style="font-weight: 700">{{ form3.amount + form3.handlingCharge }}</span> </el-form-item>
<el-form-item label="提现金额:"><span style="color: red;font-weight: 700">{{ form3.amount + form3.handlingCharge }}</span> </el-form-item> <el-form-item label="支付手续费:"><span style="font-weight: 700">{{ form3.handlingCharge }}</span> </el-form-item>
<el-form-item label="支付手续费:"><span style="color: red;font-weight: 700">{{ form3.handlingCharge }}</span> </el-form-item> <el-form-item label="实际到账:"><span style="color: red;font-weight: 700">{{ form3.amount }}</span> </el-form-item>
</el-col> <el-form-item label="运营商结余:"><span style="font-weight: 700">{{ form3.operatorBalance }}</span> </el-form-item>
<el-col :span="24"> <el-form-item label="申请时间:">{{ form3.createTime }}</el-form-item>
<el-form-item label="实际到账:"><span style="color: red;font-weight: 700">{{ form3.amount }}</span> </el-form-item> <el-form-item label="状态:">
<el-form-item label="运营商结余:"><span style="color: red;font-weight: 700">{{ form3.operatorBalance }}</span> </el-form-item> <dict-tag :options="dict.type.et_flow_status" :value="form3.status"/>
</el-col> </el-form-item>
<el-col :span="24"> </el-col>
<el-form-item label="申请时间:">{{ form3.createTime }}</el-form-item> <el-col :span="12">
</el-col> <img :src="collectionCode" alt="收款码" style="max-width: 100%; height: auto;">
<el-col :span="24"> </el-col>
<el-form-item label="状态:">
<dict-tag :options="dict.type.et_flow_status" :value="form3.status"/>
</el-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="驳回原因" prop="rejectReason"> <el-form-item label="驳回原因" prop="rejectReason">
@ -213,7 +210,7 @@
<script> <script>
import { listFlow, getFlow, delFlow, updateFlow, withdraw, rejectWithdraw } from '@/api/system/flow' import { listFlow, getFlow, delFlow, updateFlow, withdraw, rejectWithdraw } from '@/api/system/flow'
import { optionselect as getAreaOptionselect } from '@/api/system/area' import { optionselect as getAreaOptionselect } from '@/api/system/area'
import { getDeptByToken, listDept, listDept2 } from '@/api/system/dept' import { getDept, getDeptByToken, listDept, listDept2 } from '@/api/system/dept'
export default { export default {
name: "Flow", name: "Flow",
@ -308,6 +305,7 @@ export default {
// //
form: {}, form: {},
form3: {}, form3: {},
collectionCode:null,
// //
rules: { rules: {
amount: [ amount: [
@ -352,9 +350,12 @@ export default {
}, },
/** 审核 */ /** 审核 */
handleEdit(row) { handleEdit(row) {
this.open3 = true; getDept(row.ownerId).then(response => {
this.form3 = row; this.collectionCode = response.data.collectionCode;
this.view = false; this.open3 = true;
this.form3 = row;
this.view = false;
});
}, },
/** 通过 */ /** 通过 */
pass(){ pass(){
@ -508,20 +509,24 @@ export default {
}; };
</script> </script>
<style lang="scss"> <style lang="scss">
.el-select { .el-select {
.el-input__inner{ .el-input__inner{
color: red; color: red;
} }
}
.el-input{
.el-input__inner{
color: red;
} }
} .el-input{
.el-input__inner{
color: red;
}
}
.amoun-tips{ .amoun-tips{
color: red; color: red;
font-size: 12px; font-size: 12px;
font-weight: 700; font-weight: 700;
} }
.el-dialog__body {
padding: 0px 20px !important;
}
</style> </style>