快乐的昕的电脑
2025-10-18 385d6897f53224770393de44520a15ec79a4b286
components/WorkOrder.vue
@@ -422,33 +422,33 @@
               }
            })
         },
         getXJByOrder() {
            this.$post({
               url: "/MesQaItemsDetect02/FindXJByOrderNo",
               data: {
                  orderNo: this.orderNo
               }
            }).then(res => {
               let xjList = res.data.tbBillList;
               if (Array.isArray(xjList) && xjList.length > 0) {
                  let latest = xjList[0];
                  this.lastPatrolCheck = latest.fcheckDate;
                  this.patrolConclusion = latest.fcheckResu;
                  this.patrolInspector = latest.checkUser;
                  this.patrolCount = xjList.length;
               } else if (xjList) {
                  this.lastPatrolCheck = xjList.fcheckDate;
                  this.patrolConclusion = xjList.fcheckResu;
                  this.patrolInspector = xjList.checkUser;
                  this.patrolCount = 1;
               } else {
                  this.lastPatrolCheck = '';
                  this.patrolConclusion = '';
                  this.patrolInspector = '';
                  this.patrolCount = 0;
               }
            })
         }
            getXJByOrder() {
                this.$post({
                    url: "/MesQaItemsDetect02/FindXJByOrderNo",
                    data: {
                        orderNo: this.orderNo
                    }
                }).then(res => {
                    let xjList = res.data.tbBillList;
                    if (Array.isArray(xjList) && xjList.length > 0) {
                        let latest = xjList[0];
                        this.lastPatrolCheck = latest.fcheckDate;
                        this.patrolConclusion = latest.fcheckResu;
                        this.patrolInspector = latest.checkUser;
                        this.patrolCount = latest.xjCount ?? xjList.length;
                    } else if (xjList) {
                        this.lastPatrolCheck = xjList.fcheckDate;
                        this.patrolConclusion = xjList.fcheckResu;
                        this.patrolInspector = xjList.checkUser;
                        this.patrolCount = xjList.xjCount ?? 1;
                    } else {
                        this.lastPatrolCheck = '';
                        this.patrolConclusion = '';
                        this.patrolInspector = '';
                        this.patrolCount = 0;
                    }
                })
            }
      }
   }
</script>