From 92c562a3f3282058b3cf19b7d71bbb19bde56a57 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 13 九月 2024 16:46:26 +0800
Subject: [PATCH] 监控类别下拉
---
src/views/system/work-order/detail/index.vue | 68 +++++++++++++++++++++++++++++++--
1 files changed, 63 insertions(+), 5 deletions(-)
diff --git a/src/views/system/work-order/detail/index.vue b/src/views/system/work-order/detail/index.vue
index 8ede435..9d9153e 100644
--- a/src/views/system/work-order/detail/index.vue
+++ b/src/views/system/work-order/detail/index.vue
@@ -29,7 +29,8 @@
</div>
<div class="item-warp">
<div>澶勭悊鏃堕檺锛�</div>
- <div>{{workOrderInfo.processingPeriod}}(灏忔椂)</div>
+ <div v-if="workOrderInfo.processingPeriod">{{workOrderInfo.processingPeriod}}(灏忔椂)</div>
+ <div v-else>鏃�</div>
</div>
<div class="item-warp">
<div>涓嬪彂鏃堕棿锛�</div>
@@ -81,7 +82,7 @@
</div>
</div>
</el-tab-pane>
- <el-tab-pane v-loading="loading2" name="report" label="鎶ュ淇℃伅">
+ <el-tab-pane v-loading="loading2" name="report" label="鎶ュ璁板綍">
<div v-if="reportList && reportList.length > 0">
<el-timeline>
<el-timeline-item
@@ -106,15 +107,52 @@
</div>
<el-empty v-else description="鏈煡鍒版姤澶囦俊鎭�"></el-empty>
</el-tab-pane>
- <el-tab-pane v-loading="loading3" name="handle" label="杩愮淮淇℃伅">瑙掕壊绠$悊</el-tab-pane>
- <el-tab-pane v-loading="loading4" name="auditing" label="瀹℃牳淇℃伅">瀹氭椂浠诲姟琛ュ伩</el-tab-pane>
+ <el-tab-pane v-loading="loading3" name="handle" label="澶勭悊璁板綍">
+ <div v-if="ywList && ywList.length > 0">
+ <el-timeline>
+ <el-timeline-item
+ placement="top"
+ v-for="(yw, index) in ywList"
+ :key="index"
+ :timestamp="yw.createTime">
+ <div>
+ <div style="margin: 8px 0">
+ <el-link
+ v-for="item in yw.ywProofMaterials != null ? yw.ywProofMaterials.split(',') : yw.ywProofMaterials"
+ :underline="false" type="primary" :key="item" @click="handleDownload(item)">{{ item.substring(item.lastIndexOf("/") + 1)
+ }}</el-link>
+ </div>
+ <div v-html="yw.ywCondition"></div>
+ </div>
+ </el-timeline-item>
+ </el-timeline>
+ </div>
+ <el-empty v-else description="鏈煡鍒拌繍缁村鐞嗕俊鎭�"></el-empty>
+ </el-tab-pane>
+ <el-tab-pane v-loading="loading4" name="auditing" label="瀹℃牳璁板綍">
+ <div v-if="auditingList && auditingList.length > 0">
+ <el-timeline>
+ <el-timeline-item
+ placement="top"
+ v-for="(auditing, index) in auditingList"
+ :key="index"
+ :timestamp="auditing.createTime">
+ <div>
+ <div style="margin: 8px 0"><el-tag :type="auditing.result === '瀹℃牳閫氳繃' ? 'success' : 'warning'">{{auditing.result}}</el-tag></div>
+ <div v-html="auditing.remark"></div>
+ </div>
+ </el-timeline-item>
+ </el-timeline>
+ </div>
+ <el-empty v-else description="鏈煡鍒板鏍镐俊鎭�"></el-empty>
+ </el-tab-pane>
</el-tabs>
</div>
</template>
<script>
-import {getWorkOrderInfo} from '@/api/platform/work-order'
+import {getWorkOrderInfo, getYwConditionList, getYwAuditingList} from '@/api/platform/work-order'
import {getReportByGb} from '@/api/platform/report'
export default {
name: "index",
@@ -141,6 +179,8 @@
hasReport: null
},
reportList: [],
+ ywList: [],
+ auditingList: [],
workOrderNo: ''
}
},
@@ -163,6 +203,20 @@
this.loading2 = false
})
},
+ getYw() {
+ this.loading3 = true;
+ getYwConditionList(this.workOrderInfo.workOrderNo).then(res => {
+ this.ywList = res.data
+ this.loading3 = false
+ })
+ },
+ getAuditing() {
+ this.loading4 = true;
+ getYwAuditingList(this.workOrderInfo.workOrderNo).then(res => {
+ this.auditingList = res.data
+ this.loading4 = false
+ })
+ },
covertStatus(status) {
if (status === 'DISTRIBUTED') {
return '澶勭悊涓�'
@@ -179,6 +233,10 @@
this.getWorkOrder()
} else if (tab.name === 'report') {
this.getReport()
+ } else if (tab.name === 'handle') {
+ this.getYw()
+ } else if (tab.name === 'auditing') {
+ this.getAuditing()
}
},
--
Gitblit v1.8.0