| | |
| | | <view class="customer-info"> |
| | | <view class="uni-title-sub uni-ellipsis-2"> |
| | | <view class="form-group"> |
| | | <label class="form-label">客户编号:</label> |
| | | <input class="form-input" disabled="true" type="text" v-model="item.customerNo"/> |
| | | <label class="form-label">客户名称:</label> |
| | | <input class="form-input" disabled="true" type="text" :value="item.customerName || item.CUSTOMERNAME || ''"/> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <view class="customer-info"> |
| | | <view class="uni-title-sub uni-ellipsis-2"> |
| | | <view class="form-group"> |
| | | <label class="form-label">客户编号:</label> |
| | | <input class="form-input" disabled="true" type="text" v-model="item.customerNo"/> |
| | | <label class="form-label">客户名称:</label> |
| | | <input class="form-input" disabled="true" type="text" :value="item.customerName || item.CUSTOMERNAME || ''"/> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | }, |
| | | methods: { |
| | | init() { |
| | | let result = ""; |
| | | if (this.current === 0) { |
| | | // 未完成:没有检验结果 |
| | | result = "未完成"; |
| | | } else if (this.current === 1) { |
| | | // 已完成:有检验结果 |
| | | result = "已完成"; |
| | | } |
| | | // 是否完成的判断:以 QS_QA_ITEM_THJ.TJ 是否等于 1 为准 |
| | | const tj = this.current === 1 ? 1 : 0; // 0=未完成,1=已完成 |
| | | |
| | | //页面加载时调用的事件 |
| | | this.$post({ |
| | |
| | | pageIndex: 1, |
| | | limit: 20, |
| | | statusUser: this.$loginInfo.account, |
| | | result: result |
| | | tj: tj |
| | | } |
| | | }).then(res => { |
| | | this.data = res.data.tbBillList; |
| | | const list = (res && res.data && res.data.tbBillList) ? res.data.tbBillList : []; |
| | | const showDone = this.current === 1; |
| | | this.data = list.filter(it => { |
| | | const tjRaw = it && (it.tj !== undefined ? it.tj : it.TJ); |
| | | const tjVal = tjRaw === undefined || tjRaw === null ? '' : String(tjRaw).trim(); |
| | | const isDone = tjVal === '1' || tjVal === 1; |
| | | return showDone ? isDone : !isDone; |
| | | }); |
| | | }) |
| | | }, |
| | | |