|
@@ -1,368 +1,458 @@
|
|
|
-<template>
|
|
|
-
|
|
|
-
|
|
|
- <div style="padding-bottom: 10px;" >
|
|
|
- <loading :visible="isLoading"></loading>
|
|
|
-
|
|
|
- <div class="mui-loading z-loadingDiv" v-show="showPerson">
|
|
|
- <div>
|
|
|
- <Person ></Person>
|
|
|
- </div>
|
|
|
- </div >
|
|
|
-
|
|
|
- <div v-show="!showPerson">
|
|
|
- <div class="mui-content-padded" >
|
|
|
- <h5>审核记录
|
|
|
- <span v-show="view&&!edit">修改流程</span>
|
|
|
- <span v-show="view&&edit" >取消修改</span>
|
|
|
- </h5>
|
|
|
- </div>
|
|
|
- <div class="vongi-slot" style="padding-bottom: 10px;">
|
|
|
-
|
|
|
- <template v-for="(item,i) in examineDetail.examineList" >
|
|
|
-
|
|
|
- <div class="vongi-slot-block" :key="i">
|
|
|
- <!-- 单人展示单人 -->
|
|
|
- <!-- 多人展示单人 -->
|
|
|
- <!-- 多人展示多人 -->
|
|
|
- <div class="vongi-slot-img"
|
|
|
- v-if="item.source==1">
|
|
|
-
|
|
|
- <img v-for="(item1,j) in item.examinePersonDetailDTOList" :key="j" :src="item1.faceImageUrl+'?x-oss-process=image/resize,h_800,m_lfit'">
|
|
|
-
|
|
|
-
|
|
|
- <img v-if="item.examinePersonDetailDTOList.length==0" src="@/assets/img/default_face.png" >
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="vongi-slot-img" v-else>
|
|
|
- <img src="@/assets/img/team.png">
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
- <div class="vongi-slot-content">
|
|
|
- <h4>{{item.desc}}
|
|
|
- <span class="mui-pull-right mui-h5 color999">{{item.finishTime}}</span>
|
|
|
-
|
|
|
- <span v-if="operationBool&&(item.action!=2)"
|
|
|
- @click="editbtn(i,item.examinePersonDetailDTOList)"
|
|
|
- class=" mui-h5 color-bule">修改</span>
|
|
|
-
|
|
|
- <span v-if="operationBool&&(item.action==0)"
|
|
|
- class="mui-pull-right mui-h5 " style="color: red;" @click="delbtn(i)" >删除</span>
|
|
|
-
|
|
|
- <span class="mui-pull-right mui-h5"
|
|
|
- v-if="operationBool&&(item.action!=2)"
|
|
|
- v-show="i!=examineDetail.examineList.length-1"
|
|
|
- @click="addExamineBtn(i)" >向下添加 </span>
|
|
|
-
|
|
|
- </h4>
|
|
|
-
|
|
|
- <template
|
|
|
- v-if="item.source==1 ">
|
|
|
-
|
|
|
- <p v-for="(item1,j) in item.examinePersonDetailDTOList" :key="'a'+j">{{item1.name}}
|
|
|
- <span :class="getClass(item1,i)">{{item1.remark}}</span>
|
|
|
- </p>
|
|
|
- <ul class="mui-table-view mui-grid-view mui-grid-9 flex ">
|
|
|
- </ul>
|
|
|
- </template>
|
|
|
-
|
|
|
- <template v-else>
|
|
|
- <p>{{item.operation=='or'?'或签':''}}{{item.operation=='and'?'会签':''}}{{item.examinePersonDetailDTOList.length}}人
|
|
|
- <span :class="getClass(item,i)" >{{item.actionName}} </span>
|
|
|
- </p>
|
|
|
- <ul class="mui-table-view mui-grid-view mui-grid-9 flex ">
|
|
|
-
|
|
|
-
|
|
|
- <li class="mui-table-view-cell mui-media"
|
|
|
- v-for="(item1,j) in item.examinePersonDetailDTOList" :key="'c'+j">
|
|
|
- <div class="flex">
|
|
|
- <img :src="item1.faceImageUrl+'?x-oss-process=image/resize,h_800,m_lfit'" />
|
|
|
- <i class="iconfont icon-gou" v-if="item1.action=='1'"></i>
|
|
|
- <i class="iconfont icon-chacha" v-if="item1.action=='2'"></i>
|
|
|
- </div>
|
|
|
- <div class="mui-media-body">{{item1.name}}</div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <p v-for="(item1,j) in item.examinePersonDetailDTOList"
|
|
|
- style=" background-color: #EBEBEE;"
|
|
|
- :key="'a'+j" v-if="item1.action!='0'">{{item1.name}}:
|
|
|
- <span :class="getClass(item1,i)">{{item1.remark}}</span>
|
|
|
- </p>
|
|
|
- </template>
|
|
|
-
|
|
|
- </div>
|
|
|
-
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- <div class="vongi-slot-block" v-if="item.action=='1'&&item.ccPersonDetailDTOList.length" :key="'e'+i" >
|
|
|
- <div class="vongi-slot-img"><img src="@/assets/img/icon_chaosong.png"></div>
|
|
|
- <div class="vongi-slot-content">
|
|
|
- <h4>抄送人</h4>
|
|
|
- <p>已抄送{{item.ccPersonDetailDTOList.length}}人</p>
|
|
|
- <ul class="mui-table-view mui-grid-view mui-grid-9 flex ">
|
|
|
- <li class="mui-table-view-cell mui-media" v-for="(item1,j) in item.ccPersonDetailDTOList" :key="'f'+j">
|
|
|
- <div class="flex">
|
|
|
- <img :src="item1.faceImageUrl+'?x-oss-process=image/resize,h_800,m_lfit'" />
|
|
|
- </div>
|
|
|
- <div class="mui-media-body">{{item1.name}}</div>
|
|
|
- </li>
|
|
|
-
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- </template>
|
|
|
-
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="addbtn" style="text-align: center;" v-if="operationBool" >
|
|
|
- <button class="btn1 mui-btn mui-btn-primary" @click="addExamineBtn(-1)">添加流程</button>
|
|
|
-
|
|
|
- <button class="btn1 mui-btn mui-btn-primary" v-show="view&&edit" >保存</button>
|
|
|
-
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- </div>
|
|
|
-</template>
|
|
|
-
|
|
|
-<script>
|
|
|
- //import * as API_sp from '@/apis-xsy/xsy'
|
|
|
+<template>
|
|
|
+
|
|
|
+
|
|
|
+ <div style="padding-bottom: 10px;">
|
|
|
+ <loading :visible="isLoading"></loading>
|
|
|
+
|
|
|
+ <div class="mui-loading z-loadingDiv" v-show="showPerson">
|
|
|
+ <div>
|
|
|
+ <Person ref="PersonSelect" @confirm="personConfirm" :selectObj="selectObj"></Person>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div v-show="!showPerson">
|
|
|
+ <div class="mui-content-padded">
|
|
|
+ <h5>审核记录
|
|
|
+ <span v-show="view&&!edit" @click="edit=true" style="
|
|
|
+ float: right;
|
|
|
+ color: #3385FF;
|
|
|
+ " >修改流程</span>
|
|
|
+ <span v-show="view&&edit" @click="edit=false" style="
|
|
|
+ float: right;
|
|
|
+ color: #3385FF;
|
|
|
+ " >取消修改</span>
|
|
|
+ </h5>
|
|
|
+ </div>
|
|
|
+ <div class="vongi-slot" style="padding-bottom: 10px;">
|
|
|
+
|
|
|
+ <template v-for="(item,i) in examineDetail.examineStepDTOList">
|
|
|
+
|
|
|
+ <div class="vongi-slot-block" :key="i" v-if="item.examineStep.stepType==1">
|
|
|
+ <!-- 单人展示单人 -->
|
|
|
+ <!-- 多人展示单人 -->
|
|
|
+ <!-- 多人展示多人 -->
|
|
|
+ <div class="vongi-slot-img" v-if="item.examineStep.examineType=='single'">
|
|
|
+
|
|
|
+ <img v-for="(item1,j) in item.stepPersonList" :key="j"
|
|
|
+ :src="item1.auditorImage+'?x-oss-process=image/resize,h_800,m_lfit'">
|
|
|
+
|
|
|
+
|
|
|
+ <img v-if="item.stepPersonList.length==0" src="@/assets/img/default_face.png">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="vongi-slot-img" v-else>
|
|
|
+ <img src="@/assets/img/team.png">
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <div class="vongi-slot-content">
|
|
|
+ <h4>第{{i+1}}步
|
|
|
+ <span :class="getClass(item.examineStep,i)">{{getClassText(item.examineStep)}} </span>
|
|
|
+
|
|
|
+ <span class="mui-pull-right mui-h5 color999">{{item.examineStep.checkTime}}</span>
|
|
|
+
|
|
|
+ <span
|
|
|
+ v-if="operationBool&&(item.examineStep.examineStatus==0||item.examineStep.examineStatus==1)"
|
|
|
+ @click="editbtn(i)" class=" mui-h5 color-bule">修改</span>
|
|
|
+
|
|
|
+ <span v-if="operationBool&&(item.examineStep.examineStatus==0)"
|
|
|
+ class="mui-pull-right mui-h5 " style="color: red;" @click="delbtn(i)">删除</span>
|
|
|
+
|
|
|
+ <span class="mui-pull-right mui-h5"
|
|
|
+ v-if="operationBool&&(item.examineStep.examineStatus==0||item.examineStep.examineStatus==1)"
|
|
|
+ v-show="i!=examineDetail.examineStepDTOList.length-1" @click="addExamineBtn(i)">向下添加
|
|
|
+ </span>
|
|
|
+
|
|
|
+ </h4>
|
|
|
+
|
|
|
+ <template v-if="item.examineStep.examineType=='single'">
|
|
|
+
|
|
|
+ <p v-for="(item1,j) in item.stepPersonList" :key="'a'+j">{{item1.auditorName}}
|
|
|
+ <span :class="getClass(item1,i)">{{item1.opinion}} </span>
|
|
|
+ </p>
|
|
|
+ <ul class="mui-table-view mui-grid-view mui-grid-9 flex ">
|
|
|
+ </ul>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template v-else>
|
|
|
+ <p>{{item.examineStep.examineType=='or'?'或签':''}}{{item.examineStep.examineType=='and'?'会签':''}}{{item.stepPersonList.length}}人
|
|
|
+ <span :class="getClass(item,i)">{{item.examineStep.examineStatusName}} </span>
|
|
|
+ </p>
|
|
|
+ <ul class="mui-table-view mui-grid-view mui-grid-9 flex ">
|
|
|
+
|
|
|
+
|
|
|
+ <li class="mui-table-view-cell mui-media" v-for="(item1,j) in item.stepPersonList"
|
|
|
+ :key="'c'+j">
|
|
|
+ <div class="flex">
|
|
|
+ <img :src="item1.auditorImage+'?x-oss-process=image/resize,h_800,m_lfit'" />
|
|
|
+ <i class="iconfont icon-gou" v-if="item1.status=='2'"></i>
|
|
|
+ <i class="iconfont icon-chacha" v-if="item1.status=='3'"></i>
|
|
|
+ </div>
|
|
|
+ <div class="mui-media-body">{{item1.auditorName}}</div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <p v-for="(item1,j) in item.stepPersonList" style=" background-color: #EBEBEE;"
|
|
|
+ :key="'a'+j" v-if="item1.status&&item1.status!=0">{{item1.auditorName}}:
|
|
|
+ <span :class="getClass(item1,i)">{{item1.opinion}}</span>
|
|
|
+ </p>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </template>
|
|
|
+ <div class="vongi-slot-block">
|
|
|
+ <div class="vongi-slot-img"><img src="@/assets/img/icon_chaosong.png"></div>
|
|
|
+ <div class="vongi-slot-content">
|
|
|
+ <h4>抄送人
|
|
|
+ <span v-if="operationBool" @click="editbtn('view')" class=" mui-h5 color-bule">修改</span>
|
|
|
+
|
|
|
+ </h4>
|
|
|
+ <p>抄送{{ccPersonList.length}}人</p>
|
|
|
+ <ul class="mui-table-view mui-grid-view mui-grid-9 flex ">
|
|
|
+ <li class="mui-table-view-cell mui-media" v-for="(item1,j) in ccPersonList" :key="'f'+j">
|
|
|
+ <div class="flex">
|
|
|
+ <img :src="item1.auditorImage+'?x-oss-process=image/resize,h_800,m_lfit'" />
|
|
|
+ </div>
|
|
|
+ <div class="mui-media-body">{{item1.auditorName}}</div>
|
|
|
+ </li>
|
|
|
+
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="addbtn" style="text-align: center;" v-if="operationBool">
|
|
|
+ <button class="btn1 mui-btn mui-btn-primary" @click="addExamineBtn(-1)">添加流程</button>
|
|
|
+
|
|
|
+ <button class="btn1 mui-btn mui-btn-primary" v-show="view&&edit" @click="save">保存</button>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+ import * as API from '@/apis/Oa/doc'
|
|
|
import Loading from '@/components/Loading.vue'
|
|
|
- import Person from './Person.vue'
|
|
|
-
|
|
|
- export default {
|
|
|
-
|
|
|
- name: 'examineDetail',
|
|
|
- data() {
|
|
|
- return {
|
|
|
- showPerson:true,
|
|
|
- isLoading:false,
|
|
|
- examineDetail: {
|
|
|
- "examineList2": [],
|
|
|
- "examineList": [
|
|
|
- {
|
|
|
- "finishTime": null,
|
|
|
- "action": "2",
|
|
|
- "actionName": "已审核",
|
|
|
- "remark": "已审核1",
|
|
|
- "operation": "or",
|
|
|
- "source": "1",
|
|
|
- "desc": "审核人",
|
|
|
- "examinePersonDetailDTOList": [
|
|
|
-
|
|
|
- {
|
|
|
- "personId": 49605,
|
|
|
- "faceImageUrl": "http://oss.xiaoxinda.com/smart/person/2021/5/24/75e73e10-0590-45d4-95cb-0731596ead09/1.jpg",
|
|
|
- "name": "付龙龙",
|
|
|
- "type": "1",
|
|
|
- "action": "1",
|
|
|
- "remark": "已审核2"
|
|
|
- }
|
|
|
- ],
|
|
|
- "ccPersonDetailDTOList": []
|
|
|
- },
|
|
|
- {
|
|
|
- "finishTime": null,
|
|
|
- "action": "1",
|
|
|
- "actionName": "待审核",
|
|
|
- "remark": "待审核",
|
|
|
- "operation": "or",
|
|
|
- "source": "0",
|
|
|
- "desc": "审核人",
|
|
|
- "examinePersonDetailDTOList": [
|
|
|
- {
|
|
|
- "personId": 49881,
|
|
|
- "faceImageUrl": "http://oss.xiaoxinda.com/smart/person/2021/5/31/f29e6b9d-80a4-451a-a0e7-294c3f5a4b4b/1.jpg",
|
|
|
- "name": "郑开鑫",
|
|
|
- "type": "1",
|
|
|
- "action": "1",
|
|
|
- "remark": "待审核"
|
|
|
- },
|
|
|
- {
|
|
|
- "personId": 49605,
|
|
|
- "faceImageUrl": "http://oss.xiaoxinda.com/smart/person/2021/5/24/75e73e10-0590-45d4-95cb-0731596ead09/1.jpg",
|
|
|
- "name": "付龙龙",
|
|
|
- "type": "1",
|
|
|
- "action": "2",
|
|
|
- "remark": "待审核"
|
|
|
- }
|
|
|
- ],
|
|
|
- "ccPersonDetailDTOList": []
|
|
|
- },
|
|
|
- {
|
|
|
- "finishTime": null,
|
|
|
- "action": "0",
|
|
|
- "actionName": "待审核",
|
|
|
- "remark": "待审核",
|
|
|
- "operation": "or",
|
|
|
- "source": "0",
|
|
|
- "desc": "审核人",
|
|
|
- "examinePersonDetailDTOList": [
|
|
|
- {
|
|
|
- "personId": 49881,
|
|
|
- "faceImageUrl": "http://oss.xiaoxinda.com/smart/person/2021/5/31/f29e6b9d-80a4-451a-a0e7-294c3f5a4b4b/1.jpg",
|
|
|
- "name": "郑开鑫",
|
|
|
- "type": "1",
|
|
|
- "action": "0",
|
|
|
- "remark": "待审核"
|
|
|
- },
|
|
|
- {
|
|
|
- "personId": 49605,
|
|
|
- "faceImageUrl": "http://oss.xiaoxinda.com/smart/person/2021/5/24/75e73e10-0590-45d4-95cb-0731596ead09/1.jpg",
|
|
|
- "name": "付龙龙",
|
|
|
- "type": "1",
|
|
|
- "action": "0",
|
|
|
- "remark": "待审核"
|
|
|
- }
|
|
|
- ],
|
|
|
- "ccPersonDetailDTOList": []
|
|
|
- }
|
|
|
- ],
|
|
|
- "allowExamine": true,
|
|
|
- "procinstActUserId": "726dead5-1d0d-4d27-afef-94166bb2d119",
|
|
|
- "ownerSubmit": true
|
|
|
- },
|
|
|
- only: "test"
|
|
|
-
|
|
|
- }
|
|
|
- },
|
|
|
- components: {
|
|
|
-
|
|
|
- Loading,Person
|
|
|
-
|
|
|
- },
|
|
|
- props: {
|
|
|
- id: {
|
|
|
- require: false,
|
|
|
- default: '',
|
|
|
- },
|
|
|
- //编辑状态
|
|
|
- edit: {
|
|
|
- require: false,
|
|
|
- default: true,
|
|
|
- },
|
|
|
- //是否只能查看
|
|
|
- view: {
|
|
|
- require: false,
|
|
|
- default: false,
|
|
|
- },
|
|
|
- },
|
|
|
- computed:{
|
|
|
- operationBool(){
|
|
|
- return this.edit
|
|
|
- }
|
|
|
- },
|
|
|
+ import Person from './Person.vue'
|
|
|
+
|
|
|
+ export default {
|
|
|
+
|
|
|
+ name: 'examineDetail',
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ showPerson: false,
|
|
|
+ selectIndex: 0,
|
|
|
+ selectIndexBl: true, // 添加 、 修改
|
|
|
+ selectObj: {
|
|
|
+ examineStep: {},
|
|
|
+ stepPersonList: []
|
|
|
+ },
|
|
|
+ isLoading: false,
|
|
|
+ ccPersonList: [],
|
|
|
+ examineDetail: {
|
|
|
+ examineStepDTOList: [],
|
|
|
+
|
|
|
+ },
|
|
|
+ only: "test"
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ components: {
|
|
|
+
|
|
|
+ Loading,
|
|
|
+ Person
|
|
|
+
|
|
|
+ },
|
|
|
+ props: {
|
|
|
+ list: {
|
|
|
+ require: false,
|
|
|
+ default: false,
|
|
|
+ },
|
|
|
+ //编辑状态
|
|
|
+ edit: {
|
|
|
+ require: false,
|
|
|
+ default: true,
|
|
|
+ },
|
|
|
+ //是否只能查看
|
|
|
+ view: {
|
|
|
+ require: false,
|
|
|
+ default: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ operationBool() {
|
|
|
+ return this.edit
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
- editbtn(i,list){
|
|
|
-
|
|
|
- },
|
|
|
- delbtn(i){
|
|
|
-
|
|
|
- },
|
|
|
- addExamineBtn(i){
|
|
|
- // var obj={
|
|
|
- // source:1,
|
|
|
- // desc:"审批人",
|
|
|
- // operation:"or",
|
|
|
- // examinePersonDetailDTOList:[],
|
|
|
- // ccPersonDetailDTOList:[],
|
|
|
- // }
|
|
|
- // if(type){
|
|
|
- // obj.source=0
|
|
|
- // obj.operation=type
|
|
|
- // }
|
|
|
- // if(i==-1){
|
|
|
- // this.examineDetail.examineList.push(obj)
|
|
|
- // }else{
|
|
|
-
|
|
|
- // }
|
|
|
- },
|
|
|
- getClass(ac, i) {
|
|
|
- var reclass = ""
|
|
|
+ save(){
|
|
|
+ this.isLoading = true;
|
|
|
+ this.list.examineStepDTOList=this.getData();
|
|
|
|
|
|
- if (ac.action == "0") {
|
|
|
- if (this.only == "test") {
|
|
|
-
|
|
|
- this.only = i;
|
|
|
- }
|
|
|
- if (this.only == i) {
|
|
|
- return "color3385FF"
|
|
|
- } else {
|
|
|
- return "mui-hidden"
|
|
|
- }
|
|
|
+ API.update(this.list).then(response => {
|
|
|
+ this.isLoading = false;
|
|
|
+ this.init();
|
|
|
+ mui.toast("保存成功");
|
|
|
+ }).catch(error => {
|
|
|
+ this.isLoading = false;
|
|
|
+ mui.toast(error);
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getData() {
|
|
|
+ var list = this.examineDetail.examineStepDTOList;
|
|
|
+
|
|
|
+ //添加抄送
|
|
|
+ var sp = true;
|
|
|
|
|
|
+ var viewindex=-1;
|
|
|
+ var viewObj = {
|
|
|
+ examineStep: {
|
|
|
+ examineStatus: 0,
|
|
|
+ examineType: "view",
|
|
|
+ stepType: 2,
|
|
|
+ },
|
|
|
+ stepPersonList: this.ccPersonList
|
|
|
+ }
|
|
|
+ for (var i in list) {
|
|
|
+ var obj = list[i];
|
|
|
+ if (obj.examineStep.stepType == 2) {
|
|
|
+ viewindex=i;
|
|
|
+ } else {
|
|
|
+ sp = false
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
- if (ac.action == "3" || ac.action == "2") {
|
|
|
- return "colorfe616c"
|
|
|
+ if(viewindex!=-1){
|
|
|
+ list.splice(viewindex,1);
|
|
|
}
|
|
|
-
|
|
|
- if (ac.action == "1" || ac.action == "4") {
|
|
|
+ if(this.ccPersonList.length){
|
|
|
+ list.push(viewObj)
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if (sp) {
|
|
|
+ //如果没有选择审批人, 返回为空
|
|
|
+ return []
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ for (var i in list) {
|
|
|
+ var obj = list[i];
|
|
|
+ obj.examineStep.examineStep = parseInt(i)+1;
|
|
|
+ for (var j in obj.stepPersonList) {
|
|
|
+ var obj2 = obj.stepPersonList[j];
|
|
|
+ obj2.sortNo = parseInt(j)+1;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ return list;
|
|
|
+ },
|
|
|
+ personConfirm(obj) {
|
|
|
+ this.showPerson = false;
|
|
|
+ if (obj.status) {
|
|
|
+ if (this.selectIndex == 'view') {
|
|
|
+ this.ccPersonList = obj.selectObj.stepPersonList;
|
|
|
+ } else if (this.selectIndexBl) {
|
|
|
+ if (this.selectIndex == -1) {
|
|
|
+ this.examineDetail.examineStepDTOList.push(obj.selectObj)
|
|
|
+ } else {
|
|
|
+ this.examineDetail.examineStepDTOList.splice(this.selectIndex, 0, obj.selectObj)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.examineDetail.examineStepDTOList[this.selectIndex] = obj.selectObj
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+ console.log(this.examineDetail)
|
|
|
+ },
|
|
|
+ editbtn(i) {
|
|
|
+ this.selectIndex = i
|
|
|
+ if (i == 'view') {
|
|
|
+ this.selectObj = {
|
|
|
+ examineStep: {
|
|
|
+ examineStatus: 0,
|
|
|
+ examineType: "view",
|
|
|
+ stepType: 2,
|
|
|
+ },
|
|
|
+ stepPersonList: this.ccPersonList
|
|
|
+ };
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.selectObj = this.examineDetail.examineStepDTOList[this.selectIndex]
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ this.selectIndexBl = false
|
|
|
+ this.showPerson = true
|
|
|
+ console.log(this.selectObj)
|
|
|
+ this.$refs.PersonSelect.init(this.selectObj)
|
|
|
+ },
|
|
|
+ delbtn(i) {
|
|
|
+ this.examineDetail.examineStepDTOList.splice(i, 1)
|
|
|
+ },
|
|
|
+
|
|
|
+ addExamineBtn(i) {
|
|
|
+
|
|
|
+ this.selectObj = {
|
|
|
+ examineStep: {
|
|
|
+ examineStatus: 0,
|
|
|
+ examineType: "single",
|
|
|
+ stepType: 1,
|
|
|
+ },
|
|
|
+ stepPersonList: []
|
|
|
+ };
|
|
|
+ this.selectIndex = i
|
|
|
+ this.selectIndexBl = true
|
|
|
+ this.showPerson = true
|
|
|
+ console.log(this.selectObj)
|
|
|
+ this.$refs.PersonSelect.init(this.selectObj)
|
|
|
+ },getClassText(ac, i) {
|
|
|
+ var reclass = ""
|
|
|
+ if(ac.examineStatus==null){
|
|
|
+ ac.examineStatus=ac.status
|
|
|
+ }
|
|
|
+ if (ac.examineStatus == "0") {
|
|
|
+ return ""
|
|
|
+
|
|
|
+ }
|
|
|
+ if (ac.examineStatus == "1" ) {
|
|
|
+ return "审批中"
|
|
|
+ }
|
|
|
+ if (ac.examineStatus == "2") {
|
|
|
+ return "已同意"
|
|
|
+ }
|
|
|
+
|
|
|
+ if ( ac.examineStatus == "3") {
|
|
|
+ return "已拒绝"
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ return reclass
|
|
|
+ },
|
|
|
+ getClass(ac, i) {
|
|
|
+ var reclass = ""
|
|
|
+ if(ac.examineStatus==null){
|
|
|
+ ac.examineStatus=ac.status
|
|
|
+ }
|
|
|
+ if (ac.examineStatus == "0") {
|
|
|
+ return "mui-hidden"
|
|
|
+
|
|
|
+ }
|
|
|
+ if (ac.examineStatus == "1" ) {
|
|
|
+ return "color3385FF"
|
|
|
+ }
|
|
|
+ if (ac.examineStatus == "2") {
|
|
|
return "color389E0D"
|
|
|
}
|
|
|
- return reclass
|
|
|
+
|
|
|
+ if ( ac.examineStatus == "3") {
|
|
|
+ return "colorfe616c"
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ return reclass
|
|
|
+ },
|
|
|
+ getExamineDetail() {
|
|
|
+ API_sp.examineDetail(this.id).then(response => {
|
|
|
+ this.examineDetail = response
|
|
|
+
|
|
|
+ this.$emit('getOwnerSubmit', response.ownerSubmit);
|
|
|
+
|
|
|
+ this.$emit('allowExamine', response.procinstActUserId);
|
|
|
+ }).catch(error => {
|
|
|
+
|
|
|
+ mui.toast(error);
|
|
|
+ })
|
|
|
},
|
|
|
- getExamineDetail() {
|
|
|
- API_sp.examineDetail(this.id).then(response => {
|
|
|
- this.examineDetail = response
|
|
|
+ init(){
|
|
|
+ if(this.list){
|
|
|
+ console.log(this.list)
|
|
|
+ var list=this.list.examineStepDTOList;
|
|
|
+ var sz=[];
|
|
|
+
|
|
|
+ for (var i in list) {
|
|
|
+ var obj = list[i];
|
|
|
+ // for (var j in obj.stepPersonList) {
|
|
|
+ // var obj2 = obj.stepPersonList[j];
|
|
|
+ // obj2.id = obj2.personId;
|
|
|
+ // obj2.spStatus=obj2.status
|
|
|
+ // obj2.faceImageUrl=obj2.auditorImage
|
|
|
+ // obj2.name=obj2.auditorName
|
|
|
+ // }
|
|
|
+ if(obj.examineStep.stepType==2){
|
|
|
+
|
|
|
+ this.ccPersonList=obj.stepPersonList;
|
|
|
+ continue;//会签不添加
|
|
|
+ }
|
|
|
+ sz.push(obj)
|
|
|
+ }
|
|
|
+ sz.sort(function(a,b){
|
|
|
+ return a.examineStep.examineStep-b.examineStep.examineStep
|
|
|
+ })
|
|
|
|
|
|
- this.$emit('getOwnerSubmit', response.ownerSubmit);
|
|
|
|
|
|
- this.$emit('allowExamine', response.procinstActUserId);
|
|
|
- }).catch(error => {
|
|
|
-
|
|
|
- mui.toast(error);
|
|
|
- })
|
|
|
- },
|
|
|
- },
|
|
|
- mounted() {
|
|
|
+ this.examineDetail.examineStepDTOList=sz ;
|
|
|
+ console.log(this.examineDetail)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
// this.getExamineDetail();
|
|
|
- }
|
|
|
- }
|
|
|
-</script>
|
|
|
-
|
|
|
-<style src="@/assets/css/iconfont.css"></style>
|
|
|
-<style scoped src="@/assets/css/xpwyfyy-oa.css"></style>
|
|
|
-<style src="@/assets/css/xsy.css"></style>
|
|
|
-<style scoped>
|
|
|
- .color3385FF {
|
|
|
- color: #3385FF
|
|
|
- }
|
|
|
-
|
|
|
- .color389E0D {
|
|
|
- color: #389E0D
|
|
|
- }
|
|
|
- .mui-content-padded{
|
|
|
- margin:0 !important;
|
|
|
- border-top: 1px solid #f4f4f6 ;
|
|
|
- }
|
|
|
- .addbtn{
|
|
|
- text-align: center;
|
|
|
- }
|
|
|
- .mui-pull-right{
|
|
|
- padding-left: 5px;
|
|
|
- }
|
|
|
- .btn1,.btn2,.btn3{
|
|
|
- padding: 3px 8px;
|
|
|
- margin-right: 2px;
|
|
|
- }
|
|
|
- .z-loadingDiv {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- width: 100%;
|
|
|
- height: 100%;
|
|
|
- background: rgb(255, 255, 255);
|
|
|
- z-index: 999;
|
|
|
- }
|
|
|
-
|
|
|
- .z-loadingDiv div {
|
|
|
- /* top: 40%;
|
|
|
- position: absolute;
|
|
|
- left: 40% */
|
|
|
- }
|
|
|
+ this.init()
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+</script>
|
|
|
+
|
|
|
+<style src="@/assets/css/iconfont.css"></style>
|
|
|
+<style scoped src="@/assets/css/xpwyfyy-oa.css"></style>
|
|
|
+<style src="@/assets/css/xsy.css"></style>
|
|
|
+<style scoped>
|
|
|
+ .color3385FF {
|
|
|
+ color: #3385FF
|
|
|
+ }
|
|
|
+
|
|
|
+ .color389E0D {
|
|
|
+ color: #389E0D
|
|
|
+ }
|
|
|
+
|
|
|
+ .mui-content-padded {
|
|
|
+ margin: 0 !important;
|
|
|
+ border-top: 1px solid #f4f4f6;
|
|
|
+ }
|
|
|
+
|
|
|
+ .addbtn {
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ .mui-pull-right {
|
|
|
+ padding-left: 5px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .btn1,
|
|
|
+ .btn2,
|
|
|
+ .btn3 {
|
|
|
+ padding: 3px 8px;
|
|
|
+ margin-right: 2px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .z-loadingDiv {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ background: rgb(255, 255, 255);
|
|
|
+ z-index: 999;
|
|
|
+ }
|
|
|
+
|
|
|
+ .z-loadingDiv div {
|
|
|
+ /* top: 40%;
|
|
|
+ position: absolute;
|
|
|
+ left: 40% */
|
|
|
+ }
|
|
|
</style>
|