| | |
| | | </view>
|
| | |
|
| | |
|
| | | <view class="huoshiju-box" v-if="compId == '1000278'">
|
| | | <view class="huoshiju-box" v-if="roles && roles.includes(2000144)">
|
| | | <!-- 产品当前价格 -->
|
| | | <view class="price-group" v-if="coalData && coalData.length > 0">
|
| | | <combined-title title="产品当前价格"></combined-title>
|
| | |
| | | </uni-tr>
|
| | | <uni-tr v-for="(item,index) in coalData" :key="index">
|
| | | <uni-td align="left">{{item.coalName}}</uni-td>
|
| | | <uni-td align="center">{{item.price1}}</uni-td>
|
| | | <uni-td align="center">{{item.price2}}</uni-td>
|
| | | <uni-td align="center">{{item.price1 || ''}}</uni-td>
|
| | | <uni-td align="center">{{item.price2 || ''}}</uni-td>
|
| | | </uni-tr>
|
| | | </uni-table>
|
| | | <!-- <view class="price-line">
|
| | |
| | | <view class="text1">{{item.ledgerName || ''}}</view>
|
| | | </view>
|
| | | </view>
|
| | | <view class="shouqiIcon" @click="handleShouKuanIsMore">
|
| | | <view v-if="shoukuanJiluTemp && shoukuanJiluTemp.length > 2" class="shouqiIcon" @click="handleShouKuanIsMore">
|
| | | <image v-if="!shoukuanIsMore" src="@/static/home/xialaIcon.png"></image>
|
| | | <image v-else src="@/static/home/shouqiIcon.png"></image>
|
| | | </view>
|
| | |
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | | <view class="shouqiIcon" @click="handleCoalIsMore">
|
| | | <view class="shouqiIcon" v-if="coalTongjiTemp && coalTongjiTemp.length > 2" @click="handleCoalIsMore">
|
| | | <image v-if="!coalShowIsMore" src="@/static/home/xialaIcon.png"></image>
|
| | | <image v-else src="@/static/home/shouqiIcon.png"></image>
|
| | | </view>
|
| | |
| | | <div class="shoukuan-box-inside">
|
| | | <view class="shoukuan-main" v-for="(item,index) in kehuTongji" :key="index">
|
| | | <view class="shoukuan-line">
|
| | | <view class="name">客户:</view>
|
| | | <!-- <view class="name">客户:</view>-->
|
| | | <view class="text1">{{item.customerName}}</view>
|
| | | <!-- <view class="meizhong">
|
| | | <view class="coal">{{item.coalName}}</view>
|
| | | </view>-->
|
| | | </view>
|
| | | <view class="shoukuan-line coal-line">
|
| | | <view class="coal" v-if="item.coalName">{{item.coalName}}</view>
|
| | | <view class="coal" v-if="item.type">{{item.type || ''}}</view>
|
| | | <view class="coal" v-if="item.carSize">{{item.carSize || ''}}车</view>
|
| | | </view>
|
| | | <view class="shoukuan-line">
|
| | | <view class="name">账套:</view>
|
| | | <view class="text1">{{item.ledgerName}}</view>
|
| | | </view>
|
| | | <view class="coalTongji-box">
|
| | | <!-- <view class="coalTongji-box">
|
| | | <view class="shoukuan-line kehu-block">
|
| | | <view class="name">车数:</view>
|
| | | <view class="text1 num">{{item.carSize}}</view>
|
| | | <view class="text1 num">{{item.carSize || ''}}</view>
|
| | | </view>
|
| | | <view class="shoukuan-line kehu-block">
|
| | | <view class="name">方式:</view>
|
| | | <view class="text1 num">{{item.type || ''}}</view>
|
| | | </view>
|
| | | <!– <view class="shoukuan-line kehu-block">
|
| | | <view class="name">煤种:</view>
|
| | | <view class="text1">{{item.coalName}}</view>
|
| | | </view>
|
| | | </view>
|
| | | </view>–>
|
| | | </view>-->
|
| | | <view class="coalTongji-box marginTop">
|
| | | <view class="caol-block">
|
| | | <view class="name">发运量(吨)</view>
|
| | |
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | | <view class="shouqiIcon" @click="handlekehuTongjiShowIsMore">
|
| | | <view class="shouqiIcon" v-if="kehuTongjiTemp && kehuTongjiTemp.length > 2" @click="handlekehuTongjiShowIsMore">
|
| | | <image v-if="!kehuTongjiShowIsMore" src="@/static/home/xialaIcon.png"></image>
|
| | | <image v-else src="@/static/home/shouqiIcon.png"></image>
|
| | | </view>
|
| | |
| | | kehuTongji:[], //煤种统计
|
| | | kehuTongjiTemp:[], //煤种统计
|
| | | kehuTongjiShowIsMore: false,
|
| | | compId:'',
|
| | | roles:[],
|
| | | d2Sum:0, //总计金额
|
| | | d1Sum:0, //总计
|
| | | lyDSumSum:0, //路运
|
| | |
| | | watch: {
|
| | | shoukuanIsMore: {
|
| | | handler(newVal,oldVal) {
|
| | | console.log(newVal,'newVal-------当天收款记录')
|
| | | let temp = newVal.toString() || ''
|
| | | if(this.shoukuanJiluTemp && this.shoukuanJiluTemp.length > 0) {
|
| | | if(temp == 'false') {
|
| | | this.shoukuanJilu = this.shoukuanJiluTemp.slice(0,2)
|
| | | console.log(this.shoukuanJilu,'this.shoukuanJilu------收款情况')
|
| | | this.coalShowIsMore = false
|
| | | }else if(temp == 'true') {
|
| | | this.shoukuanJilu = this.shoukuanJiluTemp
|
| | |
| | | },
|
| | | coalShowIsMore: {
|
| | | handler(newVal,oldVal) {
|
| | | console.log(newVal,'newVal-------按煤种统计')
|
| | | let temp = newVal.toString() || ''
|
| | | if(this.coalTongjiTemp && this.coalTongjiTemp.length > 0) {
|
| | | if(temp == 'false') {
|
| | |
| | | },
|
| | | kehuTongjiShowIsMore: {
|
| | | handler(newVal,oldVal) {
|
| | | console.log(newVal,'newVal-------按客户发运统计')
|
| | | let temp = newVal.toString() || ''
|
| | | if(this.kehuTongjiTemp && this.kehuTongjiTemp.length > 0) {
|
| | | if(temp == 'false') {
|
| | |
| | | this.shoukuanJiluTemp = res.data || []
|
| | | if(this.shoukuanJiluTemp && this.shoukuanJiluTemp.length > 0) {
|
| | | this.shoukuanToatl = this.shoukuanJiluTemp[0]?.money || 0
|
| | | if(this.shoukuanJiluTemp.length > 1) {
|
| | | if(this.shoukuanJiluTemp.length > 0) {
|
| | | this.shoukuanJilu = this.shoukuanJiluTemp.slice(0,2)
|
| | | this.shoukuanIsMore = false
|
| | | }
|
| | |
| | | this.d1Sum = this.coalTongjiTemp[0]?.d1Sum || 0
|
| | | this.lyDSumSum = this.coalTongjiTemp[0]?.lyDSumSum || 0
|
| | | this.dsumSum = this.coalTongjiTemp[0]?.dsumSum || 0
|
| | | if(this.coalTongjiTemp.length > 1) {
|
| | | if(this.coalTongjiTemp.length > 0) {
|
| | | this.coalTongji = this.coalTongjiTemp.slice(0,2)
|
| | | this.coalShowIsMore = false
|
| | | }
|
| | |
| | | if (res.code == 0) {
|
| | | this.kehuTongjiTemp = res.data || []
|
| | | if(this.kehuTongjiTemp && this.kehuTongjiTemp.length > 0){
|
| | | if(this.kehuTongjiTemp.length > 1) {
|
| | | if(this.kehuTongjiTemp.length > 0) {
|
| | | this.kehuTongji = this.kehuTongjiTemp.slice(0,2)
|
| | | this.kehuTongjiShowIsMore = false
|
| | | }
|
| | |
| | | this.$store.commit('SET_PERMISSIONS',res.data.permissions)
|
| | | //uni.setStorageSync('permissions', res.data.permissions);
|
| | | this.userId = res.data.sysUser?.userId;
|
| | | this.compId = res.data.sysUser?.compId;
|
| | | console.log(this.compId,'this.compId---111')
|
| | | this.roles = res.data?.roles;
|
| | | console.log(this.roles,'this.roles---111')
|
| | | this.$nextTick(() => {
|
| | | this.coalbunker();
|
| | | });
|
| | |
| | | align-items: baseline;
|
| | | height: 60rpx;
|
| | | line-height: 60rpx;
|
| | | position: relative;
|
| | | .coal{
|
| | | font-size: 26rpx;
|
| | | color: #3884ff;
|
| | | border: 1px solid #3884ff;
|
| | | margin-right: 26rpx;
|
| | | padding: 0 32rpx;
|
| | | height: 38rpx;
|
| | | line-height: 38rpx;
|
| | | border-radius: 8rpx;
|
| | | letter-spacing: 2px;
|
| | | font-weight: 500;
|
| | | }
|
| | | .name{
|
| | | font-size: 24rpx;
|
| | | color: #606266;
|
| | |
| | | align-items: baseline;
|
| | | }
|
| | | }
|
| | | .coal-line{
|
| | | display: flex;
|
| | | align-items: center;
|
| | | }
|
| | | .kehu-block{
|
| | | width: 33%;
|
| | | .text1{
|