Browse Source

2023-11-21

master
guoxing 2 years ago
parent
commit
8c878a2b76
  1. 2
      supervise-report-ui/.env.development
  2. 16
      supervise-report-ui/src/api/main/main.js
  3. 2
      supervise-report-ui/src/main.js
  4. 123
      supervise-report-ui/src/views/index.vue

2
supervise-report-ui/.env.development

@ -6,4 +6,4 @@ VUE_APP_BASE_API = '/api'
## 配置测试和本地开发时的 接口地址
##VUE_APP_URL = "http://8.130.39.13:8112"
VUE_APP_URL = "http://192.168.0.104:7009"
VUE_APP_URL = "http://192.168.0.108:7009"

16
supervise-report-ui/src/api/main/main.js

@ -0,0 +1,16 @@
import request from '@/utils/request'
// 主页
// 列表
export default {
getProjectDailys(data) {
return request({
url: '/projectdaily/getProjectDailys',
method: 'post',
data: data
})
},
}

2
supervise-report-ui/src/main.js

@ -50,7 +50,7 @@ VueAMap.initAMapApiLoader({
Vue.config.productionTip = false
let token = null
// let token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI4NWUwYWY0Yi1lMGJhLTQyM2UtOTIxMS1kYjI2MDg2NTgwM2YiLCJpc3MiOiJXQksiLCJleHAiOjE3MDA0NDI3NDF9.ofDoXvqN58tdWomVV70gwpRxjYn6qeaNlbnd7qyy0AI'
// let token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI4NWUwYWY0Yi1lMGJhLTQyM2UtOTIxMS1kYjI2MDg2NTgwM2YiLCJpc3MiOiJXQksiLCJleHAiOjE3MDA2MjAwNzF9.iAXRy8SKmeGqteP68u_MD32b1hG7pNsYoZQ3C-fgHSI'
token = GetQueryString('token')
if (token) {
setStorage(token)

123
supervise-report-ui/src/views/index.vue

@ -9,8 +9,9 @@
<div class="title-select">
<el-select v-model="wareValue" placeholder="请选择仓库" style="width: 250px;margin-right: 50px;">
<el-option v-for="item in warehouse" :key="item.value" :label="item.label" :value="item.value">
<el-select v-model="projectValue" placeholder="请选择项目" style="width: 250px;margin-right: 50px;"
@change="projectSelect">
<el-option v-for="item in projectList" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
@ -143,11 +144,16 @@
<div class="bom">
<el-table v-loading="tableLoading" :data="listSalesChannelData" border style="width: 100%;">
<el-table-column width="200" label="销售渠道类别" prop="salesChannelCategory" align="center" />
<el-table-column label="总额" prop="totalAmount" align="center" />
<el-table-column label="应收帐款" prop="accountsReceivable" align="center" />
<el-table-column label="扣除应收" prop="deductionAccountsReceivable" align="center" />
<el-table v-loading="tableLoading" :data="projectlistlData" border style="width: 100%;" :row-style="{height: '50px'}">
<el-table-column width="200" label="项目名称" prop="projectName" align="center" />
<el-table-column label="授信额度(元)" prop="totalLoan" align="center" />
<el-table-column label="用信额度(元)" prop="useLimit" align="center" />
<el-table-column label="账户余额(元)" prop="accountsBalance" align="center" />
<el-table-column label="应收账款(元)" prop="accountsReceivable" align="center" />
<el-table-column label="库存货值(元)" prop="stockAmount" align="center" />
<el-table-column label="在途货值(元)" prop="transitAmount" align="center" />
<el-table-column label="预付款(元)" prop="advancePayment" align="center" />
<el-table-column label="质押率" prop="pledgeRatePercent" align="center" />
</el-table>
@ -161,6 +167,7 @@
</div>
<script>
import * as echarts from 'echarts'
import req from '@/api/main/main'
import {
getDateRang
} from '@/utils/index'
@ -168,9 +175,10 @@
name: '',
data() {
return {
tableLoading: false,
times: getDateRang('yesterday'),
wareValue: "",
warehouse: [
projectValue: "全部项目",
projectList: [
{
label: "111111111",
@ -185,66 +193,7 @@
value: "项目3"
}
],
listSalesChannelData: [{
salesChannelCategory: '连网连锁店',
totalAmount: '2000000',
accountsReceivable: '31,914',
deductionAccountsReceivable: '35,793'
},
{
salesChannelCategory: '连锁内加盟',
totalAmount: '28,700',
accountsReceivable: '28,749',
deductionAccountsReceivable: '58,339'
},
{
salesChannelCategory: '配送中心',
totalAmount: '-1241.81',
accountsReceivable: '28,749',
deductionAccountsReceivable: '58,339'
},
{
salesChannelCategory: '连锁外加盟',
totalAmount: '29822.44',
accountsReceivable: '28,749',
deductionAccountsReceivable: '58,339'
},
{
salesChannelCategory: '配送中心',
totalAmount: '-1241.81',
accountsReceivable: '28,749',
deductionAccountsReceivable: '58,339'
},
{
salesChannelCategory: '连锁外加盟',
totalAmount: '29822.44',
accountsReceivable: '28,749',
deductionAccountsReceivable: '58,339'
},
{
salesChannelCategory: '配送中心',
totalAmount: '-1241.81',
accountsReceivable: '28,749',
deductionAccountsReceivable: '58,339'
},
{
salesChannelCategory: '连锁外加盟',
totalAmount: '29822.44',
accountsReceivable: '28,749',
deductionAccountsReceivable: '58,339'
},
{
salesChannelCategory: '配送中心',
totalAmount: '-1241.81',
accountsReceivable: '28,749',
deductionAccountsReceivable: '58,339'
},
{
salesChannelCategory: '连锁外加盟',
totalAmount: '29822.44',
accountsReceivable: '28,749',
deductionAccountsReceivable: '58,339'
}
projectlistlData: [
],
}
@ -253,12 +202,39 @@
this.drawLine()
},
created() {
this.init()
},
methods: {
init() {
//
let params = {
orderDate: this.times,
projectSid: "",
}
req.getProjectDailys(params).then(res => {
console.log('getProjectDailys:', res)
this.projectlistlData = res.data
})
},
projectSelect(val) {
console.log('projectSelect:', val)
},
selectTime(val) {
console.log('val:', val)
console.log('selectTime:', val)
this.times = val
this.init()
},
// 线
@ -359,10 +335,11 @@
text-align: right;
padding-right: 40px;
}
.mains{
.mains {
overflow-x: hidden;
overflow-y: auto;
height: 100%;
overflow-y: auto;
height: 100%;
}
.index {

Loading…
Cancel
Save