zjh
2 天以前 d123ca35bb3ec4982af44aeb1ffffa8a3569a21b
代码提交
已修改3个文件
69 ■■■■ 文件已修改
pages/QC/LLJ/List.vue 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/QC/LLJ/ScanCode.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/QC/LLJ/yzxFrom.vue 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/QC/LLJ/List.vue
@@ -131,9 +131,15 @@
                    <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">
@@ -320,6 +326,22 @@
                        url: 'Add?id=' + item.id + '&lotNo=' + item.lotNo + '&releaseNo=' + item.releaseNo +
                            '&current=A'
                    })
                    // uni.showModal({
                    //                     title: '开始检验',
                    //                     content: '开始检验将记录当前时间为开始检验时间,确定开始?',
                    //                     success: function(res) {
                    //                     if (res.confirm) {
                    //                         uni.navigateTo({
                    //                             url: 'Add?id=' + item.id + '&lotNo=' + item.lotNo + '&releaseNo=' + item.releaseNo +
                    //                                 '&current=A'
                    //                         })
                    //                     } else {
                    //                     }
                    //                 }
                    //             })
                }
            },
pages/QC/LLJ/ScanCode.vue
@@ -63,6 +63,7 @@
                        Barcode: code
                    }
                }).then(ress => { 
                    if (ress.status == 0) {
                    if (ress.data.tbBillList.length > 0) {
                        if (ress.data.tbBillList[0].fsubmit === 1) {
@@ -74,13 +75,30 @@
                                    '&current=B'
                            })
                        } else {
                            uni.navigateTo({
                                url: 'Add?id=' + ress.data.tbBillList[0].id + '&lotNo=' + ress.data
                                    .tbBillList[0].lotNo + '&releaseNo=' + ress.data.tbBillList[0]
                                    .releaseNo +
                                    '&current=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 +
                                //                                 '&current=A'
                                //                         })
                                //                     } else {
                                //                     }
                                //                 }
                                //             })
                        }
                    } else {
@@ -92,6 +110,15 @@
                        //showScanError('提示:未查询到条码【' + res.result + '】相关单据内容')
                        //this.msg = '提示:未查询到条码【' + res.result + '】相关单据内容'
                    }
                    } else {
                        console.log(ress.data.message);
                        uni.showModal({
                            title: '提示',
                            content: ress.message,
                            showCancel: false
                        })
                    }
                })
            },
pages/QC/LLJ/yzxFrom.vue
@@ -181,14 +181,14 @@
      }
    },
    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) {