代理当前账分

This commit is contained in:
Lenovo 2024-07-12 19:46:06 +08:00
parent fd95869a59
commit 9868609b4b
3 changed files with 29 additions and 9 deletions

View File

@ -1,16 +1,10 @@
package com.ruoyi.business.controller;
import com.ruoyi.business.domain.BusReturnVisitInfo;
import com.ruoyi.business.domain.BusStoreConfigInfo;
import com.ruoyi.business.domain.BusStoreDayInfo;
import com.ruoyi.business.domain.BusStoreInfo;
import com.ruoyi.business.domain.*;
import com.ruoyi.business.req.ReqBusStoreConfigInfo;
import com.ruoyi.business.req.ReqBusStoreInfo;
import com.ruoyi.business.resp.RespBusStoreInfo;
import com.ruoyi.business.service.IBusReturnVisitInfoService;
import com.ruoyi.business.service.IBusStoreConfigInfoService;
import com.ruoyi.business.service.IBusStoreDayInfoService;
import com.ruoyi.business.service.IBusStoreInfoService;
import com.ruoyi.business.service.*;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
@ -57,6 +51,8 @@ public class BusStoreInfoController extends BaseController {
@Autowired
private IBusReturnVisitInfoService iBusReturnVisitInfoService;
@Autowired
private IBusAgentInfoService agentInfoService;
/**
* 查询店铺信息列表
@ -85,6 +81,14 @@ public class BusStoreInfoController extends BaseController {
return AjaxResult.success(data);
}
@GetMapping("/getNowIntegral")
public AjaxResult getNowIntegral() {
BusAgentInfo info = new BusAgentInfo();
info.setAgentAccount(SecurityUtils.getLoginUser().getUsername());
BusAgentInfo temp = agentInfoService.selectBusAgentInfoList(info).get(0);
return AjaxResult.success(temp.getAiDurationBalance());
}
@ApiOperation("查询店铺信息列表")
// @PreAuthorize("@ss.hasPermi('business:store:list')")
@GetMapping("/listA")

View File

@ -75,4 +75,11 @@ export function getStoreStatistics() {
})
}
export function nowIntegral() {
return request({
url: '/business/store/getNowIntegral',
method: 'get'
})
}

View File

@ -147,6 +147,7 @@
@click="handleExport"
>导出</el-button>
</el-col>
<el-col :span="1.5"><el-button size="mini" >当前账分{{nowIntegral}}</el-button></el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
@ -374,7 +375,7 @@
<script>
import { listStore, changeReturnVisitStatus, getMtUrl, changeSelfDeliveryStatus, getStoreConfig, updateStoreConfig, refresh, getStoreStatistics } from "@/api/business/store";
import { listStore, changeReturnVisitStatus, getMtUrl, changeSelfDeliveryStatus, getStoreConfig, updateStoreConfig, refresh, getStoreStatistics,nowIntegral } from "@/api/business/store";
import { listSaleA} from "@/api/business/sale";
export default {
@ -399,6 +400,7 @@ export default {
storeList: [],
//
title: "",
nowIntegral: 0,
//
open: false,
//
@ -451,6 +453,7 @@ export default {
this.getListSale();
this.getList();
this.storeStatistics();
this.getNowIntegral();
},
methods: {
renderPrice(h, { column, $index }) {
@ -492,6 +495,12 @@ export default {
}
);
},
getNowIntegral() {
nowIntegral().then(response => {
this.nowIntegral = response.data;
}
);
},
idToName(row, column, cellValue) {
// ID
const person = this.saleList.find(p => p.id === parseInt(cellValue));