diff --git a/src/views/modules/shopOrder/productionReport/searchProductionLineOutputReportInOrderNo.vue b/src/views/modules/shopOrder/productionReport/searchProductionLineOutputReportInOrderNo.vue index 70e2d0d..64de176 100644 --- a/src/views/modules/shopOrder/productionReport/searchProductionLineOutputReportInOrderNo.vue +++ b/src/views/modules/shopOrder/productionReport/searchProductionLineOutputReportInOrderNo.vue @@ -197,7 +197,7 @@ - + { this.dataList3=data.rows; - this.modelFlag2=true; + if(data.rows.length>0){ + this.modelData=data.rows[0]; + let inData={ + site:this.modelData.site, + orderNo:this.modelData.orderNo, + user:this.$store.state.user.name + } + searchItemToBeProduct(inData).then(({data}) => { + this.dataList = data.rows + }) + searchProductionLineOutputReport(inData).then(({data}) => { + this.dataList2 = data.rows + }) + } }) }, cancelReport(row){ @@ -1523,8 +1536,13 @@ }).then(() => { cancelReport(data).then(({data}) => { if (data && data.code == 200) { - searchReportInOrderNo(this.searchData).then(({data}) => { - this.dataList3=data.rows; + let inData={ + site: this.modelData.site, + orderNo: this.modelData.orderNo, + user:this.$store.state.user.name + } + searchProductionLineOutputReport(inData).then(({data}) => { + this.dataList2 = data.rows }) this.$message.success( '操作成功') } else { @@ -1536,7 +1554,6 @@ }) }, tableHanddle(row){ - console.log(row); this.modelData=row; this.modelFlag2=false; let inData={