| | |
| | | |
| | | let props = defineProps({ |
| | | orderId:null, |
| | | row: {} |
| | | row: {}, |
| | | processId:null//用于后端数据返回,结果筛选 |
| | | }) |
| | | const columns = [ |
| | | {field: 'product_name', width: 150, title: t('order.product'),filters:[{ data: '' }],slots: { filter: 'num1_filter' }}, |
| | |
| | | item.reportWorkQuantityCount=JSON.parse(item.reportWorkQuantityCount) |
| | | item.reportWorkQuantityShow=JSON.parse(item.reportWorkQuantityShow) |
| | | }) |
| | | await xGrid.value.loadData(res.data.data) |
| | | console.log(res.data.data) |
| | | if (props.processId!=null && props.processId!=""){ |
| | | const processIdData = res.data.data.filter(item => item.process_id === props.processId) |
| | | await xGrid.value.loadData(processIdData) |
| | | }else { |
| | | await xGrid.value.loadData(res.data.data) |
| | | } |
| | | mergeCells.value = res.data.mergeCells |
| | | gridOptions.loading = false |
| | | |