| | |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'date', |
| | | formatter: this.formatDutyDate, |
| | | }, |
| | | { |
| | | minWidth: '100', |
| | | prop: 'workShop', |
| | | label: '车间', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | |
| | | minWidth: '100', |
| | | prop: 'partName', |
| | | label: '生产零件', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | |
| | | minWidth: '100', |
| | | prop: 'partNo', |
| | | label: '生产零件号', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | |
| | | minWidth: '100', |
| | | prop: 'staffName', |
| | | label: '生产人员', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | | }, |
| | | { |
| | | minWidth: '100', |
| | | prop: 'operation', |
| | | label: '工序', |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | |
| | | minWidth: '100', |
| | | prop: 'unit', |
| | | label: '单位', |
| | | sort: true, |
| | | isTrue: true, |
| | | isSearch: true, |
| | | searchInfoType: 'text', |
| | |
| | | handleSelectionChange(val) { |
| | | this.multipleSelection = val |
| | | }, |
| | | formatDutyDate(row, column, cellValue) { |
| | | if (cellValue) { |
| | | const dutyDateList = /\d{4}-\d{1,2}-\d{1,2}/g.exec(cellValue) |
| | | if (dutyDateList && dutyDateList.length > 0) { |
| | | return dutyDateList[0] |
| | | } |
| | | } |
| | | return '' |
| | | }, |
| | | } |
| | | } |
| | | </script> |