|
@@ -121,13 +121,13 @@
|
|
<view class="left">
|
|
<view class="left">
|
|
<view class="item1">
|
|
<view class="item1">
|
|
<view class="item-content">{{item.operatorTitle}}</view>
|
|
<view class="item-content">{{item.operatorTitle}}</view>
|
|
- <view v-if="item.status='success'" class='status success'>
|
|
|
|
|
|
+ <view v-if="item.status=='success'" class='status success'>
|
|
<u-icon name="checkmark" color="#2979ff" size="28"></u-icon>
|
|
<u-icon name="checkmark" color="#2979ff" size="28"></u-icon>
|
|
</view>
|
|
</view>
|
|
- <view v-if="item.status='error'" class='status error'>
|
|
|
|
|
|
+ <view v-if="item.status=='error'" class='status error'>
|
|
<u-icon name="close" color="rgb(245, 108, 108)" size="28"></u-icon>
|
|
<u-icon name="close" color="rgb(245, 108, 108)" size="28"></u-icon>
|
|
</view>
|
|
</view>
|
|
- <view v-if="item.status='question'" class='status question'>
|
|
|
|
|
|
+ <view v-if="item.status=='question'" class='status question'>
|
|
<u-icon name="question" color="#f9ae3d" size="28"></u-icon>
|
|
<u-icon name="question" color="#f9ae3d" size="28"></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -135,72 +135,29 @@
|
|
<view class="name">{{item.desc}}
|
|
<view class="name">{{item.desc}}
|
|
</view>
|
|
</view>
|
|
<view class='time'>{{item.updateDate}}</view>
|
|
<view class='time'>{{item.updateDate}}</view>
|
|
- <view :class="{'color':item.approved ? 'green':'red'}" class="status">{{item.commonStaffs1?item.staffscontent:item.operatorName}}<text v-if='!item.commonStaffs1'>{{item.workflowHistoricTasks ? "已审核":'未审核'}}</text></view>
|
|
|
|
|
|
+ <view v-if="item.status=='success'" class="status success">{{item.commonStaffs1?item.staffscontent:item.operatorName}}<text v-if='!item.commonStaffs1'>已审核</text></view>
|
|
|
|
+ <!-- <view v-if="item.status='error'" class="status error">{{item.commonStaffs1?item.staffscontent:item.operatorName}}<text v-if='!item.commonStaffs1'>{{item.workflowHistoricTasks ? "已审核":'未审核'}}</text></view> -->
|
|
|
|
+ <view v-if="item.status=='question'" class="status question">{{item.commonStaffs1?item.staffscontent:''}}<text v-if='!item.commonStaffs1'>未审核</text></view>
|
|
<!-- <view class="status success">吕波(已审核)</view> -->
|
|
<!-- <view class="status success">吕波(已审核)</view> -->
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view v-if='item.commonStaffs1' class="right">
|
|
<view v-if='item.commonStaffs1' class="right">
|
|
- <u-icon @click='showcontent(item)' :name="showflow?'arrow-up':'arrow-down'" size="28"></u-icon>
|
|
|
|
|
|
+ <u-icon @click='showcontent(item)' :name="item.showflow?'arrow-up':'arrow-down'" size="28"></u-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view v-if='item.showflow' style='padding:10px 0 0 50px;'>
|
|
<view v-if='item.showflow' style='padding:10px 0 0 50px;'>
|
|
<view class='row2'>
|
|
<view class='row2'>
|
|
<view v-for='item1 in item.commonStaffs1' style='margin:5px;text-align:center;'>
|
|
<view v-for='item1 in item.commonStaffs1' style='margin:5px;text-align:center;'>
|
|
- <view class="item-content">{{item1.staffTitle}}</view>
|
|
|
|
|
|
+ <view class="item-content">
|
|
|
|
+ <u-icon v-if='item1.status' name="checkmark" color="#fff" size="14"></u-icon>
|
|
|
|
+ <u-icon v-if='!item1.status' name="question" color="#f9ae3d" size="14"></u-icon>
|
|
|
|
+ </view>
|
|
<view class="name">{{item1.staffName}}</view>
|
|
<view class="name">{{item1.staffName}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="row-line" v-if="index!= auditList.length - 1"></view>
|
|
<view class="row-line" v-if="index!= auditList.length - 1"></view>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
- <!-- <view class="audit">
|
|
|
|
- <view>
|
|
|
|
- <view class="row">
|
|
|
|
- <view class="left">
|
|
|
|
- <view class="item1">
|
|
|
|
- <view class="item-content">长江</view>
|
|
|
|
- <view class='status question'>
|
|
|
|
- <u-icon name="question" color="#f9ae3d" size="28"></u-icon>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
- </view>
|
|
|
|
- <view class="item2">
|
|
|
|
- <view class="name">单证中心审核
|
|
|
|
- </view>
|
|
|
|
- <view class='time'>2022-10-14 15:17:15</view>
|
|
|
|
- <view class="status">共3人</view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- <view class="right">
|
|
|
|
- <u-icon @click='showcontent' :name="showflow?'arrow-up':'arrow-down'" size="28"></u-icon>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
- <view class="row-line"></view>
|
|
|
|
- <view class="row">
|
|
|
|
- <view class="left">
|
|
|
|
- <view class="item1">
|
|
|
|
- <view class="item-content">大光</view>
|
|
|
|
- <view class='status error'>
|
|
|
|
- <u-icon name="close" color="rgb(245, 108, 108)" size="28"></u-icon>
|
|
|
|
- </view>
|
|
|
|
-
|
|
|
|
- </view>
|
|
|
|
- <view class="item2">
|
|
|
|
- <view class="name">决策人审核
|
|
|
|
-
|
|
|
|
- </view>
|
|
|
|
- <view class='time'>2022-10-14 15:17:15</view>
|
|
|
|
- <view class="status error">杜大光(已驳回)</view>
|
|
|
|
-
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view>
|
|
|
|
- </view> -->
|
|
|
|
</view>
|
|
</view>
|
|
</u-form>
|
|
</u-form>
|
|
<view style='padding:10px;' class='flex bottom-btn'>
|
|
<view style='padding:10px;' class='flex bottom-btn'>
|
|
@@ -324,12 +281,14 @@
|
|
}).then(response => {
|
|
}).then(response => {
|
|
// uni.hideLoading()
|
|
// uni.hideLoading()
|
|
for (let i = 0; i < response.data.data.length; i++) {
|
|
for (let i = 0; i < response.data.data.length; i++) {
|
|
|
|
+ this.$set(response.data.data[i],'status','question')
|
|
console.log(response.data.data[i].workflowHistoricTasks,i)
|
|
console.log(response.data.data[i].workflowHistoricTasks,i)
|
|
if(response.data.data[i].commonStaffs){
|
|
if(response.data.data[i].commonStaffs){
|
|
|
|
+ response.data.data[i].showflow=false
|
|
response.data.data[i].operatorTitle=response.data.data[i].desc[0]
|
|
response.data.data[i].operatorTitle=response.data.data[i].desc[0]
|
|
response.data.data[i].operatorName=response.data.data[i].desc
|
|
response.data.data[i].operatorName=response.data.data[i].desc
|
|
response.data.data[i].staffscontent='共'+response.data.data[i].commonStaffs.length+'人,当前审核'+response.data.data[i].workflowHistoricTasks.length+'人'
|
|
response.data.data[i].staffscontent='共'+response.data.data[i].commonStaffs.length+'人,当前审核'+response.data.data[i].workflowHistoricTasks.length+'人'
|
|
- if(response.data.data[i].workflowHistoricTasks){
|
|
|
|
|
|
+ if(response.data.data[i].workflowHistoricTasks&&response.data.data[i].workflowHistoricTasks.length>0){
|
|
if(response.data.data[i].workflowHistoricTasks.length!=response.data.data[i].commonStaffs.length){
|
|
if(response.data.data[i].workflowHistoricTasks.length!=response.data.data[i].commonStaffs.length){
|
|
// response.data.data[i].status='question'
|
|
// response.data.data[i].status='question'
|
|
this.$set(response.data.data[i],'status','question')
|
|
this.$set(response.data.data[i],'status','question')
|
|
@@ -342,7 +301,6 @@
|
|
var staffsdata=response.data.data[i].commonStaffs
|
|
var staffsdata=response.data.data[i].commonStaffs
|
|
for (let q = 0; q < staffsdata.length; q++) {
|
|
for (let q = 0; q < staffsdata.length; q++) {
|
|
staffsdata[q].status=false
|
|
staffsdata[q].status=false
|
|
- staffsdata[q].showflow=!staffsdata[q].showflow
|
|
|
|
staffsdata[q].staffTitle=staffsdata[q].staffName
|
|
staffsdata[q].staffTitle=staffsdata[q].staffName
|
|
for (let k = 0; k < workflowdata.length; k++) {
|
|
for (let k = 0; k < workflowdata.length; k++) {
|
|
if(staffsdata[q].staffId==workflowdata[k].operatorId){
|
|
if(staffsdata[q].staffId==workflowdata[k].operatorId){
|
|
@@ -353,10 +311,7 @@
|
|
}
|
|
}
|
|
response.data.data[i].commonStaffs1=response.data.data[i].commonStaffs
|
|
response.data.data[i].commonStaffs1=response.data.data[i].commonStaffs
|
|
}else{
|
|
}else{
|
|
- console.log(111111111)
|
|
|
|
- if(response.data.data[i].workflowHistoricTasks){
|
|
|
|
- console.log(222222)
|
|
|
|
- debugger
|
|
|
|
|
|
+ if(response.data.data[i].workflowHistoricTasks&&response.data.data[i].workflowHistoricTasks.length>0){
|
|
this.$set(response.data.data[i],'status','success')
|
|
this.$set(response.data.data[i],'status','success')
|
|
response.data.data[i].operatorTitle=response.data.data[i].workflowHistoricTasks[0].operatorName[0]
|
|
response.data.data[i].operatorTitle=response.data.data[i].workflowHistoricTasks[0].operatorName[0]
|
|
response.data.data[i].operatorName=response.data.data[i].workflowHistoricTasks[0].operatorName
|
|
response.data.data[i].operatorName=response.data.data[i].workflowHistoricTasks[0].operatorName
|