From e4b6297960fbb055196e4de97eae7b25009d4cfb Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期二, 29 八月 2023 11:43:57 +0800
Subject: [PATCH] 称重异常增加接口
---
pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue | 30 +++++-------------------------
1 files changed, 5 insertions(+), 25 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 1ee26ca..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
@@ -592,7 +592,7 @@
this.avgSkin = res.data.avgSkin
this.tmTaskCoalList = res.data.tmTaskCoalList
/**
- * @description true鐨勮瘽鏄笉寮傚父 false灏辨槸寮傚父 娌℃湁鍘嗗彶锛屽钩鍧囩毊閲嶄负0鏄涓�娆℃甯� */
+ * @description true鐨勮瘽鏄笉寮傚父 false灏辨槸寮傚父 娌℃湁鍘嗗彶锛屽钩鍧囩毊閲嶄负0鏄涓�娆′篃鏄甯� */
this.isAbnormalAvgSkin = (Array.isArray(this.tmTaskCoalList) && this
.tmTaskCoalList.length === 0 || !this.tmTaskCoalList) && this.avgSkin == 0
} else {
@@ -608,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