|
|
|
@ -2,7 +2,7 @@ |
|
|
|
import { |
|
|
|
checkIsPacking, |
|
|
|
getPackagePrintDataList, |
|
|
|
getSOScheduleRoutingData |
|
|
|
getSOScheduleRoutingDataPrint |
|
|
|
} from "../../../api/production/generateReport"; |
|
|
|
import {printPackageLabel} from "../print/print_package_label"; |
|
|
|
export default { |
|
|
|
@ -43,10 +43,9 @@ export default { |
|
|
|
} |
|
|
|
let params = { |
|
|
|
seqNo:this.searchData.seqNo, |
|
|
|
reportFlag:'a.QtyRequired>a.QtyApprove', |
|
|
|
userId:this.$store.state.user.name |
|
|
|
}; |
|
|
|
getSOScheduleRoutingData(params).then(({data})=>{ |
|
|
|
getSOScheduleRoutingDataPrint(params).then(({data})=>{ |
|
|
|
if (data && data.code === 0){ |
|
|
|
if (data.total === 0){ |
|
|
|
this.$message.warning("派工单不存在") |
|
|
|
@ -70,6 +69,7 @@ export default { |
|
|
|
workCenterNo:this.soScheduleRouting.sWorkCenterNo, |
|
|
|
} |
|
|
|
checkIsPacking(params).then(({data})=>{ |
|
|
|
this.soScheduleRouting={}; |
|
|
|
if (data && data.code === 0){ |
|
|
|
|
|
|
|
}else { |
|
|
|
@ -78,7 +78,6 @@ export default { |
|
|
|
seqNo: undefined, |
|
|
|
flag: '', |
|
|
|
} |
|
|
|
this.soScheduleRouting={}; |
|
|
|
} |
|
|
|
}).catch((error)=>{ |
|
|
|
this.$message.error(error) |
|
|
|
@ -144,7 +143,7 @@ export default { |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-select v-model="searchData.flag" clearable> |
|
|
|
<el-option value="" label="标准代数"></el-option> |
|
|
|
<el-option value="" label="标准袋数"></el-option> |
|
|
|
<el-option value="Y" label="零数袋"></el-option> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
|