@ -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" >
< / e l - o p t i o n >
< / e l - s e l e c t >
@ -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" / >
< / e l - t a b l e >
@ -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' ) ,
ware Value: "" ,
warehouse : [
project Value: "全部项目 " ,
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 : 40 px ;
}
. mains {
. mains {
overflow - x : hidden ;
overflow - y : auto ;
height : 100 % ;
overflow - y : auto ;
height : 100 % ;
}
. index {