From d492850f1cc64ddcfaf43798af9c76c2505414fd Mon Sep 17 00:00:00 2001 From: renkang <8417338+k94314517@user.noreply.gitee.com> Date: 星期五, 24 一月 2025 18:24:31 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/2.0.1' into 2.0.1 --- admin/src/views/workorder/components/detail.vue | 96 +++++++++++++++++++++++++++++------------------ 1 files changed, 59 insertions(+), 37 deletions(-) diff --git a/admin/src/views/workorder/components/detail.vue b/admin/src/views/workorder/components/detail.vue index f2e7d5f..0743cfa 100644 --- a/admin/src/views/workorder/components/detail.vue +++ b/admin/src/views/workorder/components/detail.vue @@ -1,14 +1,17 @@ <template> - <GlobalWindow width="960px" title="宸ュ崟璇︽儏" :visible.sync="visible" :confirm-working="isWorking" @close="close" + <GlobalWindow width="100%" title="宸ュ崟璇︽儏" :visible.sync="visible" :confirm-working="isWorking" @close="close" @confirm="confirm"> <div class="main"> <div class="title"> - <span>宸ュ崟璇︽儏</span> - <div> - <div class="status primaryColor" v-if="info.dealStatus == 0 || info.dealStatus == null">寰呮寚娲�</div> - <div class="status green" v-if="info.dealStatus == 1">宸叉寚娲�</div> - <div class="status gray" v-if="info.dealStatus == 2">宸插鐞�</div> + <div class="title_left"> + <span>宸ュ崟璇︽儏</span> + <div> + <div class="status primaryColor" v-if="info.dealStatus == 0 || info.dealStatus == null">寰呮寚娲�</div> + <div class="status green" v-if="info.dealStatus == 1">宸叉寚娲�</div> + <div class="status gray" v-if="info.dealStatus == 2">宸插鐞�</div> + </div> </div> + <el-button v-if="info.origin === 1" @click="openWT">鏌ョ湅闂涓婃姤</el-button> </div> <div class="main_content"> <div class="list"> @@ -23,6 +26,11 @@ <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> @@ -164,19 +172,24 @@ </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() { @@ -209,6 +222,13 @@ 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) { @@ -308,39 +328,41 @@ padding-top: 20px; .title { - font-weight: 500; - font-size: 18px; - color: $primary-color; + margin-bottom: 10px; display: flex; align-items: center; - - .status { - padding: 0 12px; - height: 24px; - line-height: 24px; - border-radius: 2px; - border: 1px solid #00BA92; - color: #00BA92; - font-weight: 400; - font-size: 12px; - margin-left: 10px; - } - - .primaryColor { - border: 1px solid rgba(63, 126, 239, .2); - background-color: rgba(63, 126, 239, .2); - } - - .green { - background-color: rgba(83, 183, 148, .2); - border: 1px solid rgba(83, 183, 148, .2); - } - - .gray { - color: #333333; - background-color: rgba(128, 128, 128, .2); - border: 1px solid rgba(128, 128, 128, .2); + justify-content: space-between; + .title_left { + display: flex; + align-items: center; + font-weight: 500; + font-size: 18px; + color: $primary-color; + .status { + padding: 0 12px; + height: 24px; + line-height: 24px; + border-radius: 2px; + border: 1px solid #00BA92; + color: #00BA92; + font-weight: 400; + font-size: 12px; + margin-left: 10px; + } + .primaryColor { + border: 1px solid rgba(63, 126, 239, .2); + background-color: rgba(63, 126, 239, .2); + } + .green { + background-color: rgba(83, 183, 148, .2); + border: 1px solid rgba(83, 183, 148, .2); + } + .gray { + color: #333333; + background-color: rgba(128, 128, 128, .2); + border: 1px solid rgba(128, 128, 128, .2); + } } } -- Gitblit v1.9.3