| | |
| | | methods: { |
| | | onlineWorkReporting(row){ |
| | | const id = row.id || this.ids |
| | | const stationCode = "OP230" |
| | | const stationCode = "POP230" |
| | | workReportingByStation(id,stationCode).then(response => { |
| | | this.getList() |
| | | }); |
| | | }, |
| | | offlineWorkReporting(row){ |
| | | const id = row.id || this.ids |
| | | const stationCode = "OP500" |
| | | const stationCode = "POP430" |
| | | workReportingByStation(id,stationCode).then(response => { |
| | | this.getList() |
| | | }); |
| | |
| | | this.onlineSingle = selection.length!==1 |
| | | this.offlineSingle = selection.length!==1 |
| | | |
| | | if(selection.length === 0){ |
| | | this.onlineSingle = true |
| | | this.offlineSingle = true |
| | | } |
| | | if(selection.length === 1){ |
| | | if(selection[0].onlineCompletionMark === '2'){ |
| | | this.onlineSingle = false |
| | | }else { |
| | | this.onlineSingle = true |
| | | } |
| | | if(selection[0].sfResult === '2'){ |
| | | this.offlineSingle = false |
| | | }else { |
| | | this.offlineSingle = true |
| | | } |
| | | } |
| | | // if(selection.length === 0){ |
| | | // this.onlineSingle = true |
| | | // this.offlineSingle = true |
| | | // } |
| | | // if(selection.length === 1){ |
| | | // if(selection[0].onlineCompletionMark === '2'){ |
| | | // this.onlineSingle = false |
| | | // }else { |
| | | // this.onlineSingle = true |
| | | // } |
| | | // if(selection[0].sfResult === '2'){ |
| | | // this.offlineSingle = false |
| | | // }else { |
| | | // this.offlineSingle = true |
| | | // } |
| | | // } |
| | | }, |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |