| | |
| | | <input type="number" v-model="hform.HCheckQty" :disabled="hasCheckQty" /> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="form-item"> |
| | | <view class="left">不良数量</view> |
| | | <view class="right"> |
| | | {{ totalNum }} |
| | | </view> |
| | | </view> |
| | | <view class="form-item"> |
| | | <view class="left">检验员</view> |
| | | <view class="right-select"> |
| | |
| | | BillListPopupVue, |
| | | }, |
| | | computed: { |
| | | // 计算 num 合计 |
| | | totalNum() { |
| | | if (!this.HBadReasonList || this.HBadReasonList.length === 0) return 0; |
| | | return this.HBadReasonList.reduce((sum, item) => sum + (item.num || 0), 0); |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | |
| | | }, |
| | | async onLoad(e) { |
| | | this.setAuto(); |
| | | //this.setAuto(); |
| | | this.operationType = e.operationType || 1; |
| | | this.hform.HInterID = e.linterid || 0; |
| | | if (this.operationType == 1) { |