From 693623a118e6086614a4a0dae901966fc60dba36 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期五, 20 九月 2024 19:47:03 +0800 Subject: [PATCH] feat:提交 提示,合卡 --- pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue | 50 ++++++++++++++++++++++++++------------------------ 1 files changed, 26 insertions(+), 24 deletions(-) diff --git a/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue b/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue index f9dd274..1141048 100644 --- a/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue +++ b/pages/customer-page/customer-my/faYunstatistics/faYunstatistics.vue @@ -84,7 +84,7 @@ <text v-if="value.orderType == '澶栭攢' || value.orderType == '鍐呴攢' || value.orderType == '澶栭攢閫�' || value.orderType == '杞嚭'">{{ value.customerName || '' }}</text> <text - v-else-if="value.orderType == '澶栬喘' || value.orderType == '鍐呰喘' || value.orderType == '澶栬喘閫�' || value.orderType == '杞叆'">{{ value.deptName || '' }}</text> + v-else-if="value.orderType == '澶栬喘' || value.orderType == '鍐呰喘' || value.orderType == '澶栬喘閫�' || value.orderType == '杞叆'">{{ value.filedName || '' }}</text> </view> </view> </view> @@ -100,7 +100,7 @@ </view> <view class="third-line"> <view class="carnum-icon"> - <image src="https://mx.jzeg.cn:9096/appimg/image/banner/carNO.png" + <image src="https://wrzs.czjlchem.com:9090/appimg/image/banner/carNO.png" mode="widthFix"></image> </view> <view class="carnum-text">{{ value.carNo || '' }}</view> @@ -184,7 +184,7 @@ v-for="(item, index) in customerList" :key="index" @click="filterCondition(2, index, item.condition)"> - <u-button :text="item.condition" + <u-button :text="item.name" :type="item.active ? 'primary' : ''" size="small"></u-button> </view> @@ -193,9 +193,9 @@ </view> --> </view> </view> - <view class="filter-body" + <!-- <view class="filter-body" v-if="roleType == 1"> - <view class="condition-name">璐т唬</view> + <view class="condition-name">鎵胯繍鍟�</view> <view class="filter-name"> <view class="filter-button" v-for="(item, index) in forwarderList" @@ -204,18 +204,9 @@ <u-button :text="item.condition" :type="item.active ? 'primary' : ''"></u-button> </view> - <!-- <view class="toggle-button"> - <u-button - :text="forwarderShow < forwarderTotal ? '鏌ョ湅鏇村' : '鏀惰捣'" - type="primary" - size="small" - @click="toggle(3)" - v-if="forwarderTotal > 3" - ></u-button> - </view> --> </view> - </view> - <view class="filter-body" + </view> --> + <!-- <view class="filter-body" v-if="roleType != 3"> <view class="condition-name">杞﹂槦</view> <view class="filter-name"> @@ -227,11 +218,7 @@ :type="item.active ? 'primary' : ''" size="small"></u-button> </view> - <!-- <view class="toggle-button"> - <u-button :text="fleetShow < fleetTotal ? '鏌ョ湅鏇村' : '鏀惰捣'" type="primary" size="small" @click="toggle(4)" v-if="fleetTotal > 3"></u-button> - </view> --> - </view> - </view> + </view> --> <view class="filter-body" v-if="false"> <view class="condition-name">鐭垮満</view> <view class="filter-name"> @@ -438,6 +425,7 @@ this.$reqGet('getTmTaskCoalData', { startTime: this.first, endTime: this.last }).then(res => { this.filterList = this.taskList = res.data; if (this.filterList.length != 0) { + let customerTemp; this.totalLength = this.filterList.map(v => v.taskCoalList.length).reduce((x, y) => x + y); this.totalTon = this.filterList.map(v => v.taskCoalList.reduce((prev, cur) => { @@ -450,6 +438,20 @@ let yy = new BigNumber(y) return xx.plus(yy).toNumber().toFixed(2) }, new BigNumber(0)); + customerTemp = res.data.map(item=>item.taskCoalList.map(val=>{ + return { + name:val.customerName, + active:false + } + })).flat(Infinity); + console.log(customerTemp,'') + if(customerTemp.length){ + let obj = {}; + this.customerList = customerTemp.reduce(function (item, next) { + obj[next.name] ? '' : obj[next.name] = true && item.push(next) + return item + }, []) + } } else { this.totalLength = 0; this.totalTon = 0; @@ -493,7 +495,7 @@ let conditionMapping = { productName: this.coalList.filter(v => v.active == true).map(item => item.condition), orderType: this.typeList.filter(v => v.active == true).map(item => item.condition), - customerName: this.customerList.filter(v => v.active == true).map(item => item.condition), + customerName: this.customerList.filter(v => v.active == true).map(item => item.name), //瀹㈡埛绛涢�夋潯浠跺墠绔嚜宸卞仛 鎵�浠ユ槸name xsUser2Name: this.forwarderList.filter(v => v.active == true).map(item => item.condition), fleetName: this.fleetList.filter(v => v.active == true).map(item => item.condition), filedName: this.filedList.filter(v => v.active == true).map(item => item.condition), @@ -977,7 +979,7 @@ height: vww(28); line-height: vww(28); text-align: center; - background: url('https://mx.jzeg.cn:9096/appimg/image/banner/blueblock.png') no-repeat; + background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/blueblock.png') no-repeat; background-size: contain; font-size: 30rpx; font-weight: 400; @@ -1034,7 +1036,7 @@ // display: flex; // justify-content: center; // align-items: center; - background: url('https://mx.jzeg.cn:9096/appimg/image/banner/redblock.png') no-repeat; + background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/redblock.png') no-repeat; background-size: contain; font-size: 30rpx; font-weight: 400; -- Gitblit v1.9.1