From 01c82e2ed527bae42fe53452073522d74980bf16 Mon Sep 17 00:00:00 2001 From: 819527061@qq.com <123456> Date: 星期三, 03 七月 2024 11:28:09 +0800 Subject: [PATCH] 无车牌修改的内容 --- pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail.vue | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail.vue b/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail.vue index 43adabc..8754275 100644 --- a/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail.vue +++ b/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail.vue @@ -586,7 +586,7 @@ </view> </view> <!-- 鍘熷彂鍑哄満鏃堕棿 --> - <view> + <view v-if="roleType!==3"> <view> <text>璐х墿鍙戣揣鍦板嚭鍦烘椂闂存垨鍙戣揣纾呭崟鏃堕棿锛�</text> </view> @@ -738,6 +738,7 @@ @close='unqualifiedClose' @select="selectUnqualifiedClick"></u-action-sheet> </view> + </view> </view> @@ -758,12 +759,16 @@ <script> import BigNumber from "bignumber.js" + import formatDate from '@/utils/date' import { BaseUrl } from '@/api/publicInterface.js'; import { onlineurl } from '@/api/request.js' import { mapState, mapMutations } from "vuex" export default { data() { return { + dateInpShow:false, + outDate:'', + dateValue:'', previewImageShow:false, qualityInstructions:"", previewImageSrc: '', @@ -1036,7 +1041,7 @@ this.showWeigh[index].weight = '0'; this.$u.toast('褰撳墠鍑�閲嶄笉鍚堟牸锛岃妫�鏌ョ毊閲嶏紝姣涢噸鏄惁鍑嗙‘') }else{ - this.showWeigh[index].weight = x.minus(z).toFixed(2) ; + this.showWeigh[index].weight = x.minus(z).toFixed(4); } } @@ -1067,6 +1072,8 @@ uni.hideLoading() this.coalDetailsData = res.data; this.remarks = res.data.remarks; + this.dateValue = res.data.startTime; + this.outDate = res.data.startTime; this.qualityInstructions = res.data.qualityInstructions this.orderCode = res.data.orderCode this.showWeigh = this.coalDetailsData.tmTaskCoalItems ? this.coalDetailsData @@ -1171,13 +1178,14 @@ let params = {},unqualifiedWeightAll; params.qualityInstructions = this.qualityInstructions; params.remarks = this.remarks; + params.startTime = this.dateValue; console.log( this.showWeigh,' this.showWeigh') this.showWeigh = this.showWeigh.map((v, i) => { console.log(this.penaltyType,this.$refs.checkbox,'123') // let tempArr = v.penaltyType.split(','); v.unqualifiedType = ''; if(this.globalShowWeigh[i].unqualifiedWeights){ - unqualifiedWeightAll = this.globalShowWeigh[i].unqualifiedWeights.split(",").reduce((p,n)=>{return (p - 0) + (n - 0)},0).toFixed(2) || '' + unqualifiedWeightAll = this.globalShowWeigh[i].unqualifiedWeights.split(",").reduce((p,n)=>{return (p - 0) + (n - 0)},0).toFixed(4) || '' }else{ unqualifiedWeightAll = 0; } @@ -1293,7 +1301,7 @@ value = parseFloat(value); value = value + ""; // 鍙樺洖涓哄瓧绗︿覆 }else{ - value = value.replace(/^(-)*(\d+)\.(\d\d).*$/,"$1$2.$3"); + value = value.replace(/^(-)*(\d+)\.(\d\d\d\d).*$/,"$1$2.$3"); this.$nextTick(()=>{ this.showWeigh[index].cinderWeight = value.replace(/[^\d.]/g, ""); }); @@ -1349,7 +1357,7 @@ this.showWeigh[index].weight = '0'; this.$u.toast('褰撳墠鍑�閲嶄笉鍚堟牸锛岃妫�鏌ョ毊閲嶏紝姣涢噸鏄惁鍑嗙‘') }else{ - this.showWeigh[index].weight = x.minus(y).minus(z).toFixed(2) ; + this.showWeigh[index].weight = x.minus(y).minus(z).toFixed(4) ; } -- Gitblit v1.9.1