licp
2024-05-28 52e18000ace434b2acdebce5e118c45c337a3fe7
src/views/accounting/jmreport/index.vue
@@ -60,6 +60,7 @@
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'date',
                        formatter: this.formatDutyDate,
                    },
                    {
                        minWidth: '100',
@@ -91,6 +92,14 @@
                        minWidth: '100',
                        prop: 'staffName',
                        label: '生产人员',
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'text',
                    },
                    {
                        minWidth: '100',
                        prop: 'operation',
                        label: '工序',
                        isTrue: true,
                        isSearch: true,
                        searchInfoType: 'text',
@@ -145,8 +154,17 @@
                this.workShopList = []
            }
            })
        },
        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>