gaoshp
2024-09-08 f46660aeeef4964bc794046fe90482e2b4dd8d3f
补全班制
已修改1个文件
37 ■■■■■ 文件已修改
src/views/console/base/Dialog.vue 37 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/console/base/Dialog.vue
@@ -154,8 +154,9 @@
                shiftNumber: params?.shiftNumber || this?.detail?.paramValue - 0,
                number: params?.number || 1
            }
            console.log(this?.detail?.paramValue, '?????????????//')
            if (params?.shiftDetailVOList?.length > 0) {
                this.shiftDetailDTOList = params?.shiftDetailVOList?.map((item, index) => {
                    let shiftRestTimeDTOList = item?.shiftRestTimeVOList.map(item => {
                        return {
@@ -181,6 +182,40 @@
                    }
                })
                if (params?.shiftDetailVOList?.length < this?.detail?.paramValue) {
                    for (let i = 0; i < this?.detail?.paramValue - params?.shiftDetailVOList?.length; i++) {
                        this.shiftDetailDTOList.push({
                            range: [0, 0],
                            shiftStartTime: 0,
                            shiftEndTime: 0,
                            shiftIndex: i + 1,
                            indexName: '',
                            restNumber: i + 1,
                            shiftRestTimeDTOList: [
                                {
                                    range: [0, 0],
                                    restStartTime: 0,
                                    restEndTime: 0,
                                },
                                {
                                    range: [0, 0],
                                    restStartTime: 0,
                                    restEndTime: 0,
                                },
                                {
                                    range: [0, 0],
                                    restStartTime: 0,
                                    restEndTime: 0,
                                },
                                {
                                    range: [0, 0],
                                    restStartTime: 0,
                                    restEndTime: 0,
                                }
                            ]
                        })
                    }
                }
            } else {
                let len = this?.detail?.paramValue - 0 || 1
                let shiftDetailDTOList = []