代理当前账分
This commit is contained in:
parent
fd95869a59
commit
9868609b4b
|
@ -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")
|
||||
|
|
|
@ -75,4 +75,11 @@ export function getStoreStatistics() {
|
|||
})
|
||||
}
|
||||
|
||||
export function nowIntegral() {
|
||||
return request({
|
||||
url: '/business/store/getNowIntegral',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue