| | |
| | | } |
| | | |
| | | // 删除 |
| | | export function getById (id) { |
| | | return request.get(`/business/workorder/${id}`) |
| | | } |
| | | export function deleteById (id) { |
| | | return request.get(`/business/workorder/delete/${id}`) |
| | | } |
| | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import {getById } from '@/api/business/workorder' |
| | | export default { |
| | | name: 'OperaWorkorderWindow', |
| | | extends: BaseOpera, |
| | |
| | | this.title = title |
| | | this.visible = true |
| | | this.info = target |
| | | this.getDetail() |
| | | this.type = this.info.type |
| | | }, |
| | | close () { |
| | | this.visible = false |
| | | }, |
| | | getDetail () { |
| | | const { id, type } = this |
| | | switch (type) { |
| | | case 0: |
| | | getVisitedDetail({ id }).then(res => { |
| | | getById(this.info.id).then(res => { |
| | | this.info = res |
| | | if (this.info.approveDateVO && this.info.approveDateVO.approveList.length > 0) { |
| | | this.info.approveDateVO.approveList.forEach(item => { |
| | | if (this.info.logList && this.info.logList.length > 0) { |
| | | this.info.logList.forEach(item => { |
| | | if (item.approveList && item.approveList.length == 1 && item.type !== 1) { |
| | | item.title = item.approveList[0].title |
| | | item.faceImg = item.approveList[0].faceImg |
| | |
| | | }) |
| | | } |
| | | }) |
| | | break |
| | | |
| | | default: |
| | | break |
| | | } |
| | | }, |
| | | reject () { }, |
| | | handleAvatarSuccess () { }, |
| | |
| | | @GetMapping("/{id}") |
| | | @RequiresPermissions("business:workorder:query") |
| | | public ApiResponse findById(@PathVariable Integer id) { |
| | | return ApiResponse.success(workorderService.findById(id)); |
| | | return ApiResponse.success(workorderService.getDetail(id)); |
| | | } |
| | | } |
| | |
| | | return workorder.getId(); |
| | | } |
| | | |
| | | |
| | | public void dealLogData(Workorder workorder){ |
| | | //处理上报日志 DCA工单 日志存储至子业务 不存在于父级 |
| | | if(!Constants.equalsInteger(workorder.getType(),Constants.ONE)){ |
| | |
| | | .selectAll(Workorder.class) |
| | | .selectAs(Member::getPhone,Workorder::getMemberPhone) |
| | | .selectAs(Member::getName,Workorder::getMemberName) |
| | | .selectAs(Workorder::getCompanyName,Workorder::getCompanyName) |
| | | .selectAs(Member::getCompanyName,Workorder::getCompanyName) |
| | | .select(" c3.name ",Workorder::getTypeName) |
| | | .select(" c4.name ",Workorder::getProblemName) |
| | | .leftJoin(Member.class,Member::getId,Workorder::getMemberId) |