|
@@ -3,6 +3,16 @@
|
|
|
<van-nav-bar :title="title" :left-text="isHome? '首页':'返回'" @click-left="routeBack" left-arrow></van-nav-bar>
|
|
|
<div class="body_com" :class="{ can_complete: detail_info.can_complete == 1}">
|
|
|
<scroller>
|
|
|
+ <van-collapse
|
|
|
+ v-model="activeNames"
|
|
|
+ >
|
|
|
+ <van-collapse-item v-if="detail_info && detail_info.logs && detail_info.logs.length > 0" :title="detail_info.logs.length + '条操作日志'" name="logs">
|
|
|
+ <div v-for="(item,index) in detail_info.logs" :key="index" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
|
|
|
+ <van-tag type="primary" size="medium">{{item.create_time}}</van-tag>
|
|
|
+ {{item.msg}}
|
|
|
+ </div>
|
|
|
+ </van-collapse-item>
|
|
|
+ </van-collapse>
|
|
|
<van-cell-group>
|
|
|
<van-cell :title="detail_info.employee_info.name" v-if="detail_info.process !== null && detail_info.status == 0">
|
|
|
<template slot="icon">
|
|
@@ -94,6 +104,7 @@
|
|
|
<approvalProcess :data.sync="detail_info.process"></approvalProcess>
|
|
|
<div style="height: 3.5rem;"></div>
|
|
|
</scroller>
|
|
|
+
|
|
|
<!-- 审批者 || -->
|
|
|
<!-- <footer class="flex-box flex-v-ce footer" v-if="detail_info.can_refuse === 1">-->
|
|
|
<!-- <div class="flex-2">撤回后需重新审批</div>-->
|
|
@@ -162,7 +173,7 @@
|
|
|
<script>
|
|
|
import Vue from 'vue'
|
|
|
import approvalProcess from '@/point/view/integral/approval_process'
|
|
|
-import { Dialog, Panel, Step, Steps, Overlay, ImagePreview } from 'vant'
|
|
|
+import { Dialog, Panel, Step, Steps, Overlay, ImagePreview, Collapse, CollapseItem } from 'vant'
|
|
|
import Footer from "../../../components/footer.vue";
|
|
|
Vue.use(Dialog)
|
|
|
.use(Panel)
|
|
@@ -170,6 +181,8 @@ Vue.use(Dialog)
|
|
|
.use(Steps)
|
|
|
.use(Overlay)
|
|
|
.use(ImagePreview)
|
|
|
+ .use(Collapse)
|
|
|
+ .use(CollapseItem)
|
|
|
export default {
|
|
|
// 数据
|
|
|
components: {Footer, approvalProcess },
|
|
@@ -208,6 +221,7 @@ export default {
|
|
|
remark:''
|
|
|
},
|
|
|
submitting:false,
|
|
|
+ activeNames:[]
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
@@ -414,6 +428,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
activated() {
|
|
|
+ this.activeNames = []
|
|
|
this.get_info()
|
|
|
if(this.$route.query.isHome){
|
|
|
this.isHome = true;
|