From c4872b20503ddb671fa988e628e7f5363362d794 Mon Sep 17 00:00:00 2001 From: 18650502300 <18650502300@163.com> Date: Wed, 17 Jul 2024 09:52:24 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=B8=80=E9=94=AE=E5=87=BA=E4=BB=93=E3=80=81?= =?UTF-8?q?=E4=B8=80=E9=94=AE=E5=85=A5=E4=BB=93=202.=E6=8F=90=E7=8E=B0=203?= =?UTF-8?q?.=E5=9C=B0=E5=9B=BE=E5=88=87=E6=8D=A2=E8=BF=90=E8=90=A5?= =?UTF-8?q?=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/device.js | 18 + src/api/system/flow.js | 17 + src/api/system/order.js | 9 + src/api/system/user.js | 2 +- src/main.js | 2 + src/views/system/audit/index.vue | 34 +- src/views/system/dept/index.vue | 110 +++- .../system/device/components/orderRecord.vue | 6 +- src/views/system/device/index.vue | 98 +++- src/views/system/fee/index.vue | 24 +- src/views/system/flow/index.vue | 7 +- src/views/system/map/index.vue | 50 +- src/views/system/order/index.vue | 2 +- src/views/system/user/index.vue | 1 + src/views/system/withdrawAudit/index.vue | 470 ++++++++++++++++++ src/views/user/user/index.vue | 2 +- 16 files changed, 801 insertions(+), 51 deletions(-) create mode 100644 src/views/system/withdrawAudit/index.vue diff --git a/src/api/system/device.js b/src/api/system/device.js index 657bd6f..fd6cd4f 100644 --- a/src/api/system/device.js +++ b/src/api/system/device.js @@ -59,6 +59,24 @@ export function oneClickOffline(deviceId) { }) } + +// 一键出仓 +export function oneClickListing(deviceId) { + return request({ + url: '/system/device/oneClickListing/' + deviceId, + method: 'post' + }) +} + +// 一键入仓 +export function oneClickWarehousing(deviceId) { + return request({ + url: '/system/device/oneClickWarehousing/' + deviceId, + method: 'post' + }) +} + + // 查询所有车辆信息 export function allDevice() { return request({ diff --git a/src/api/system/flow.js b/src/api/system/flow.js index 08f0c42..5d4f107 100644 --- a/src/api/system/flow.js +++ b/src/api/system/flow.js @@ -42,3 +42,20 @@ export function delFlow(flowId) { method: 'delete' }) } + +// 提现 +export function withdraw(data) { + return request({ + url: '/system/flow/withdraw', + method: 'post', + data: data + }) +} +// 提现失败 +export function rejectWithdraw(data) { + return request({ + url: '/system/flow/rejectWithdraw', + method: 'post', + data: data + }) +} diff --git a/src/api/system/order.js b/src/api/system/order.js index 3949192..7e1fe4a 100644 --- a/src/api/system/order.js +++ b/src/api/system/order.js @@ -112,3 +112,12 @@ export function authoritypass(orderNo) { }) } +// 查询押金订单 +export function getDepositOrder(query) { + return request({ + url: '/appVerify/getDepositOrder', + method: 'get', + params: query + }) +} + diff --git a/src/api/system/user.js b/src/api/system/user.js index d1f1242..c05c7ad 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -21,7 +21,7 @@ export function getUser(userId) { // 绑定APP用户 export function bandAppUser(data) { return request({ - url: '/system/user/bandAppUser', + url: '/system/dept/bandAppUser', method: 'put', data: data }) diff --git a/src/main.js b/src/main.js index e781160..5f5b981 100644 --- a/src/main.js +++ b/src/main.js @@ -55,6 +55,8 @@ Vue.prototype.selectDictLabel = selectDictLabel Vue.prototype.selectDictLabels = selectDictLabels Vue.prototype.download = download Vue.prototype.handleTree = handleTree +// 创建全局事件总线 +Vue.prototype.$eventBus = new Vue(); // 全局组件挂载 Vue.component('DictTag', DictTag) diff --git a/src/views/system/audit/index.vue b/src/views/system/audit/index.vue index 4ccd271..8007868 100644 --- a/src/views/system/audit/index.vue +++ b/src/views/system/audit/index.vue @@ -289,21 +289,12 @@ - - 200 元 + + {{deposit}} - + {{form5.deductionAmount}} - - - - 展示音频 - - - - - +
+ 切换运营区 + + + +
全局查看 切换地图 @@ -97,7 +108,7 @@ import AMapLoader from "@amap/amap-jsapi-loader"; import globalConfig from "@/utils/config/globalConfig"; import { getDevice, listDevice } from '@/api/system/device' - import {listArea} from "@/api/system/area"; + import { listArea, optionselect as getAreaOptionselect } from '@/api/system/area' import { listParking } from '@/api/system/parking' import LocationMap from '@/components/Map/location/LocationMap' import OrderRecord from '@/views/system/device/components/orderRecord' @@ -143,6 +154,7 @@ tips: null, // 运营区表格数据 areaList: [], + userName: undefined, lon: null, lat: null, area:null, @@ -159,6 +171,8 @@ open2: false, // 表单参数 form: {}, + areaId: 14, + areaOptions: [], infoWindow: null, // 设备表格数据 deviceList: [], @@ -170,12 +184,26 @@ } }, mounted() { - this.getAreaList(); + console.log("当前用户信息:",this.$store.state.user.name) + this.userName = this.$store.state.user.name; + this.getAreaList(this.areaId); + this.getAreaOptions(); }, unmounted() { this.map?.destroy(); }, methods: { + handleAreaChange(newAreaId) { + console.log('newAreaId:', newAreaId); + this.areaId = newAreaId; + this.getAreaList(this.areaId); + }, + getAreaOptions() { + getAreaOptionselect().then(response => { + this.areaOptions = response.data; + console.log("areaOptions", this.areaOptions) + }); + }, onMapGeo(data, lat, lng) { console.log("onMapGeo", data) let component = data.regeocode.addressComponent; @@ -228,8 +256,8 @@ element.style.visibility = this.show ? 'hidden' : 'visible'; }); }, - async getAreaList(){ - listArea().then(response => { + async getAreaList(areaId){ + listArea({areaId: areaId}).then(response => { this.areaList = response.rows; if (this.areaList.length > 0) { // 确保数组不为空 const firstArea = this.areaList[0]; // 获取第一个元素 @@ -695,6 +723,20 @@ margin-right: 10px; /* 图片与文字间距,根据需要调整 */ } } + .area-options{ + display: flex; + flex-direction: row; + position: absolute; + top: 15px; + right: 15px; + span{ + display: flex; + align-items: center; + padding-right: 10px; + font-size: 13px; + color: #535353; + } + } diff --git a/src/views/user/user/index.vue b/src/views/user/user/index.vue index 5b12816..d0acfa2 100644 --- a/src/views/user/user/index.vue +++ b/src/views/user/user/index.vue @@ -571,7 +571,7 @@ export default { handleBandSysUser(row){ this.reset(); const userId = row.userId || this.ids; - getSysUserList({"userType":"00"}).then(response => { + getSysUserList({userType:"00",pageSize:9999,pageNum:1}).then(response => { this.sysUserOptions = response.rows; this.form.userId = userId; this.open2 = true;