From 64d748607d42358038f54538ddc245e38c1ef567 Mon Sep 17 00:00:00 2001 From: qingyiay <2386314947@qq.com> Date: 星期二, 05 九月 2023 10:17:54 +0800 Subject: [PATCH] 修改bug --- pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue | 35 ++++++++--------------------------- 1 files changed, 8 insertions(+), 27 deletions(-) diff --git a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue index 90bfe6c..6c99049 100644 --- a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue +++ b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue @@ -528,7 +528,8 @@ sceneId: this.weighData.sceneId, carNo: this.weighData.carNo, tmId: this.weighData.tmId, - filedId: this.weighData.filedId + filedId: this.weighData.filedId, + equipmentCode: this.weighData.equipmentCode }, 'json').then(res => { if (res.code == 0) { this.$u.toast('鎿嶄綔鎴愬姛锛屽嵆灏嗚繑鍥炰笂涓�椤�'); @@ -591,8 +592,8 @@ this.avgSkin = res.data.avgSkin this.tmTaskCoalList = res.data.tmTaskCoalList /** - * @description true鐨勮瘽鏄笉寮傚父 false灏辨槸寮傚父 娌℃湁鍘嗗彶锛屽钩鍧囩毊閲嶄负0鏄涓�娆℃甯� */ - this.isAbnormalAvgSkin = (Array.isArray(this.tmTaskCoalList.length === 0) && this + * @description true鐨勮瘽鏄笉寮傚父 false灏辨槸寮傚父 娌℃湁鍘嗗彶锛屽钩鍧囩毊閲嶄负0鏄涓�娆′篃鏄甯� */ + this.isAbnormalAvgSkin = (Array.isArray(this.tmTaskCoalList) && this .tmTaskCoalList.length === 0 || !this.tmTaskCoalList) && this.avgSkin == 0 } else { uni.hideLoading() @@ -607,32 +608,12 @@ // 鎻愪氦寮傚父鍘熷洜 abnormalConfirm() { this.weighData.abnormalText = this.abnormalContent + this.skinAbnormal() this.saveWeigh() - // uni.showLoading({ - // title: "鎻愪氦涓�" - // }) - // this.$reqPost('tmAbnormalTextAdd', { tmId: this.weighData.tmId, abnormalText: this.abnormalContent }, - // 'params').then( - // res => { - // if (res.code == 0) { - // uni.hideLoading() - // this.$u.toast('鎻愪氦鎴愬姛') - // this.abnormalModalShow = false - // this.isConfirmWeighLoading = false - // setTimeout(() => { - // uni.navigateBack({ - // delta: 1 - // }); - // }, 1000); - - // } else { - // uni.hideLoading() - // this.$u.toast('鎻愪氦澶辫触') - // this.abnormalModalShow = true - // this.isConfirmWeighLoading = false - // } - // }) }, + skinAbnormal() { + this.$reqPost('skinAbnormal', { sceneId: this.weighData.sceneId }, 'params') + } } }; </script> -- Gitblit v1.9.1