| | |
| | | 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 { |
| | |
| | | // 提交异常原因 |
| | | 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> |