| | |
| | | this.drawerInfo = this.selectInfo |
| | | }, |
| | | relationWork() { |
| | | this.$HTTP.post('/api/blade-cps/group/groupWorkstation', { groupCategory: 1, groupType: 'group_workstation' }).then(res => { |
| | | this.$HTTP.post('/api/smis/group/groupWorkstation', { groupCategory: 1, groupType: 'group_workstation' }).then(res => { |
| | | if (res.code === 200) { |
| | | this.raworkVisible = true |
| | | this.workStations = this.formatData(res.data) |
| | |
| | | }, |
| | | save(workstationIdList) { |
| | | console.log(workstationIdList, this.selectInfo) |
| | | this.$HTTP.post('/api/blade-cps/calendar/associate-workstation', { |
| | | this.$HTTP.post('/api/smis/calendar/associate-workstation', { |
| | | calendarCode: this.selectInfo.code, |
| | | workstationIdList |
| | | }).then(res => { |
| | |
| | | // console.log(day) |
| | | }, |
| | | init() { |
| | | this.$HTTP.post('/api/blade-cps/shift/list', { statusList: [1] }).then(res => { |
| | | this.$HTTP.post('/api/smis/shift/list', { statusList: [1] }).then(res => { |
| | | if (res.code === 200) { |
| | | this.shiftList = res.data |
| | | } |
| | |
| | | select(row) { |
| | | |
| | | this.months = [] |
| | | this.$HTTP.get(`/api/blade-cps/calendar/${row.id}`).then(res => { |
| | | this.$HTTP.get(`/api/smis/calendar/${row.id}`).then(res => { |
| | | if (res.code === 200) { |
| | | // console.log(res.data) |
| | | this.setDay(res.data) |
| | |
| | | }) |
| | | }, |
| | | table_del() { |
| | | this.$HTTP.delete(`/api/blade-cps/calendar/${this.selectInfo.id}`).then(res => { |
| | | this.$HTTP.delete(`/api/smis/calendar/${this.selectInfo.id}`).then(res => { |
| | | if (res.code == 200) { |
| | | this.$message.success("操作成功"); |
| | | this.load(true) |
| | |
| | | }, |
| | | setDay(data) { |
| | | let year = data.year |
| | | this.$HTTP.post('/api/blade-cps/shift-off-day/list', { |
| | | this.$HTTP.post('/api/smis/shift-off-day/list', { |
| | | year: year, |
| | | startOffDay: `${year}-01-01`, |
| | | endOffDay: `${year}-12-31` |