| | |
| | | |
| | | <view class="meta-info" v-if="item.activeTab==0"> |
| | | <text class="meta-item"><uni-icons type="calendar" size="14" color="#95a5a6"></uni-icons> |
| | | {{item.createDate}}</text> |
| | | 创建:{{item.createDate}}</text> |
| | | |
| | | <text class="meta-item"><uni-icons type="person" size="14" color="#95a5a6"></uni-icons> |
| | | {{item.userName}}</text> |
| | | </view> |
| | | <view class="meta-info" v-if="item.activeTab==0 && item.arrivalDate!=null"> |
| | | <text class="meta-item"><uni-icons type="calendar" size="14" color="#95a5a6"></uni-icons> |
| | | 到达:{{item.arrivalDate}}</text> |
| | | |
| | | </view> |
| | | <!-- 查看时显示检验完成的数据 --> |
| | | <view class="meta-info" v-if="item.activeTab==1"> |
| | |
| | | url: 'Add?id=' + item.id + '&lotNo=' + item.lotNo + '&releaseNo=' + item.releaseNo + |
| | | '¤t=A' |
| | | }) |
| | | // uni.showModal({ |
| | | // title: '开始检验', |
| | | // content: '开始检验将记录当前时间为开始检验时间,确定开始?', |
| | | // success: function(res) { |
| | | // if (res.confirm) { |
| | | // uni.navigateTo({ |
| | | // url: 'Add?id=' + item.id + '&lotNo=' + item.lotNo + '&releaseNo=' + item.releaseNo + |
| | | // '¤t=A' |
| | | // }) |
| | | // } else { |
| | | |
| | | // } |
| | | // } |
| | | // }) |
| | | |
| | | |
| | | } |
| | | |
| | | }, |
| | |
| | | Barcode: code |
| | | } |
| | | }).then(ress => { |
| | | if (ress.status == 0) { |
| | | if (ress.data.tbBillList.length > 0) { |
| | | |
| | | if (ress.data.tbBillList[0].fsubmit === 1) { |
| | |
| | | '¤t=B' |
| | | }) |
| | | } else { |
| | | |
| | | uni.navigateTo({ |
| | | url: 'Add?id=' + ress.data.tbBillList[0].id + '&lotNo=' + ress.data |
| | | .tbBillList[0].lotNo + '&releaseNo=' + ress.data.tbBillList[0] |
| | | .releaseNo + |
| | | '¤t=A' |
| | | }) |
| | | |
| | | |
| | | // uni.showModal({ |
| | | // title: '开始检验', |
| | | // content: '开始检验将记录当前时间为开始检验时间,确定开始?', |
| | | // success: function(res) { |
| | | // if (res.confirm) { |
| | | // uni.navigateTo({ |
| | | // url: 'Add?id=' + ress.data.tbBillList[0].id + '&lotNo=' + ress.data |
| | | // .tbBillList[0].lotNo + '&releaseNo=' + ress.data.tbBillList[0] |
| | | // .releaseNo + |
| | | // '¤t=A' |
| | | // }) |
| | | // } else { |
| | | |
| | | // } |
| | | // } |
| | | // }) |
| | | } |
| | | |
| | | } else { |
| | |
| | | //showScanError('提示:未查询到条码【' + res.result + '】相关单据内容') |
| | | //this.msg = '提示:未查询到条码【' + res.result + '】相关单据内容' |
| | | } |
| | | } else { |
| | | console.log(ress.data.message); |
| | | uni.showModal({ |
| | | title: '提示', |
| | | content: ress.message, |
| | | showCancel: false |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | |
| | |
| | | } |
| | | }, |
| | | validateForm() { |
| | | for (const item of this.components) { |
| | | if (item.selectedSpec === -1 || item.selectedMfg === -1) { |
| | | return { |
| | | valid: false, |
| | | msg: `${item.name} 未完成选择` |
| | | } |
| | | } |
| | | } |
| | | // for (const item of this.components) { |
| | | // if (item.selectedSpec === -1 || item.selectedMfg === -1) { |
| | | // return { |
| | | // valid: false, |
| | | // msg: `${item.name} 未完成选择` |
| | | // } |
| | | // } |
| | | // } |
| | | return { valid: true } |
| | | }, |
| | | onLoad(options) { |