| | |
| | | dataType: [], |
| | | }) |
| | | |
| | | const data = ref({ |
| | | printList: [] |
| | | }) |
| | | |
| | | const {currentRoute} = useRouter() |
| | | const route = currentRoute.value |
| | | |
| | | let orderId = route.query.orderId |
| | | data.value.printList=JSON.parse(route.query.printList) |
| | | |
| | | |
| | | // 第一次加载查询 |
| | | request.post(`/processCard/selectPrint/${orderId}`, filterData.value).then((res) => { |
| | | request.post(`/processCard/selectPrint`, data.value).then((res) => { |
| | | |
| | | if (res.code == 200) { |
| | | produceList = produceList.value.concat(deepClone(res.data.data)) |
| | | let newDataCollection = []; |
| | | for (let i = 0; i <res.data.data.length ; i++) { |
| | | res.data.data[i].detail.forEach((item) =>{ |
| | | newDataCollection.push(item); |
| | | }) |
| | | } |
| | | |
| | | titleSelectJson.value.dataType = res.data.type |
| | | // produceList.forEach(item => { |
| | | // if(item.print_status == 1){ |
| | | // item.print_status='已打印' |
| | | // } |
| | | // else if (item.print_status == 0){ |
| | | // item.print_status='未打印' |
| | | // } |
| | | // }); |
| | | xGrid.value.reloadData(produceList) |
| | | xGrid.value.reloadData(newDataCollection) |
| | | gridOptions.loading = false |
| | | hideButton() |
| | | } else { |