| | |
| | | <div class="status gray" v-if="info.dealStatus == 2">已处理</div> |
| | | </div> |
| | | </div> |
| | | <el-button>查看问题上报</el-button> |
| | | <el-button v-if="info.origin === 1" @click="openWT">查看问题上报</el-button> |
| | | </div> |
| | | <div class="main_content"> |
| | | <div class="list"> |
| | |
| | | <div class="item"> |
| | | <div class="la">工单分类</div> |
| | | <div class="val">{{ info.categoryName }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="la">来源</div> |
| | | <div class="val" v-if="info.origin === 0">自建</div> |
| | | <div class="val" v-if="info.origin === 1">问题转工单</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="la">上报人</div> |
| | |
| | | </template> |
| | | </el-form> |
| | | </div> |
| | | <!-- 问题上报详情 --> |
| | | <problemReportingDetails ref="problemReportingDetails" /> |
| | | </GlobalWindow> |
| | | </template> |
| | | |
| | | <script> |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import problemReportingDetails from './problemReportingDetails' |
| | | import { detailById, dispatchOrder, dealOrder } from '@/api/workorder/ywWorkorder' |
| | | import { getByWorkorderId } from '@/api/ywProblem' |
| | | import { getUserList } from '@/api/system/user' |
| | | import { Message, Loading } from 'element-ui' |
| | | import dayjs from 'dayjs' |
| | | export default { |
| | | components: { |
| | | GlobalWindow |
| | | GlobalWindow, |
| | | problemReportingDetails |
| | | }, |
| | | extends: BaseOpera, |
| | | data() { |
| | |
| | | this.getStaff() |
| | | }, |
| | | methods: { |
| | | openWT() { |
| | | getByWorkorderId(this.id) |
| | | .then(res => { |
| | | console.log(res) |
| | | this.$refs.problemReportingDetails.open('问题上报详情', res) |
| | | }) |
| | | }, |
| | | confirm() { |
| | | this.$refs['form'].validate((valid) => { |
| | | if (valid) { |