| | |
| | | this.primarySkin = params.primarySkin; |
| | | this.primaryHair = params.primaryHair; |
| | | this.primaryClean = params.primaryClean; |
| | | if (params.overTmWaixiao) { |
| | | if (params.overTmWaixiao !== 'null') { |
| | | this.weighData.overTmWaixiao = 1 |
| | | } |
| | | this.changeweighHouseCode(params.weighHouseCode); |
| | |
| | | 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('操作成功,即将返回上一页'); |
| | |
| | | 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() |
| | |
| | | // 提交异常原因 |
| | | 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> |