|
@@ -462,134 +462,133 @@
|
|
that.imglist[i].type = that.imglist[i].appendixName.substring(index+1)
|
|
that.imglist[i].type = that.imglist[i].appendixName.substring(index+1)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- })
|
|
|
|
- this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
|
|
|
|
- businessCode: 'SALE-CONTRACT-APPROVE',
|
|
|
|
- tmpCompId: uni.getStorageSync('pcUserInfo').compId
|
|
|
|
- }).then(res1 => {
|
|
|
|
- this.$api.doRequest('get', '/commonUser/getHis', {
|
|
|
|
- workflowId: res1.data.data[0].id,
|
|
|
|
- businessKey: this.id
|
|
|
|
- }).then(response => {
|
|
|
|
- uni.hideLoading()
|
|
|
|
- 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)
|
|
|
|
- if (response.data.data[i].commonStaffs) {
|
|
|
|
- response.data.data[i].showflow = false
|
|
|
|
- response.data.data[i].operatorTitle = response.data.data[i]
|
|
|
|
- .desc.substring(0, 2)
|
|
|
|
- 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 + '人'
|
|
|
|
- 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) {
|
|
|
|
- // response.data.data[i].status='question'
|
|
|
|
- this.$set(response.data.data[i], 'status',
|
|
|
|
- 'question')
|
|
|
|
- } else {
|
|
|
|
- this.$set(response.data.data[i], 'status',
|
|
|
|
- 'success')
|
|
|
|
- // response.data.data[i].status='success'
|
|
|
|
- }
|
|
|
|
- response.data.data[i].workflowlen = response.data.data[
|
|
|
|
- i].workflowHistoricTasks.length
|
|
|
|
- var workflowdata = response.data.data[i]
|
|
|
|
- .workflowHistoricTasks
|
|
|
|
- var staffsdata = response.data.data[i].commonStaffs
|
|
|
|
- for (let q = 0; q < staffsdata.length; q++) {
|
|
|
|
- staffsdata[q].status = false
|
|
|
|
- staffsdata[q].staffTitle = staffsdata[q].staffName
|
|
|
|
- for (let k = 0; k < workflowdata.length; k++) {
|
|
|
|
- if (staffsdata[q].staffId == workflowdata[k]
|
|
|
|
- .operatorId) {
|
|
|
|
- staffsdata[q].status = true
|
|
|
|
|
|
+ // 审核流程
|
|
|
|
+ this.$api.doRequest('get', '/workflow/query/workflowDefinitions', {
|
|
|
|
+ businessCode: 'SALE-CONTRACT-APPROVE',
|
|
|
|
+ tmpCompId: uni.getStorageSync('pcUserInfo').compId
|
|
|
|
+ }).then(res1 => {
|
|
|
|
+ this.$api.doRequest('get', '/commonUser/getHis', {
|
|
|
|
+ workflowId: res1.data.data[0].id,
|
|
|
|
+ businessKey: this.id
|
|
|
|
+ }).then(response => {
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ 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)
|
|
|
|
+ if (response.data.data[i].commonStaffs) {
|
|
|
|
+ response.data.data[i].showflow = false
|
|
|
|
+ response.data.data[i].operatorTitle = response.data.data[i]
|
|
|
|
+ .desc.substring(0, 2)
|
|
|
|
+ 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 + '人'
|
|
|
|
+ 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) {
|
|
|
|
+ // response.data.data[i].status='question'
|
|
|
|
+ this.$set(response.data.data[i], 'status',
|
|
|
|
+ 'question')
|
|
|
|
+ } else {
|
|
|
|
+ this.$set(response.data.data[i], 'status',
|
|
|
|
+ 'success')
|
|
|
|
+ // response.data.data[i].status='success'
|
|
|
|
+ }
|
|
|
|
+ response.data.data[i].workflowlen = response.data.data[
|
|
|
|
+ i].workflowHistoricTasks.length
|
|
|
|
+ var workflowdata = response.data.data[i]
|
|
|
|
+ .workflowHistoricTasks
|
|
|
|
+ var staffsdata = response.data.data[i].commonStaffs
|
|
|
|
+ for (let q = 0; q < staffsdata.length; q++) {
|
|
|
|
+ staffsdata[q].status = false
|
|
|
|
+ staffsdata[q].staffTitle = staffsdata[q].staffName
|
|
|
|
+ for (let k = 0; k < workflowdata.length; k++) {
|
|
|
|
+ if (staffsdata[q].staffId == workflowdata[k]
|
|
|
|
+ .operatorId) {
|
|
|
|
+ staffsdata[q].status = true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }
|
|
|
|
- response.data.data[i].commonStaffs1 = response.data.data[i]
|
|
|
|
- .commonStaffs
|
|
|
|
- } else {
|
|
|
|
- if (response.data.data[i].workflowHistoricTasks && response
|
|
|
|
- .data.data[i].workflowHistoricTasks.length > 0) {
|
|
|
|
- var len = response.data.data[i].workflowHistoricTasks
|
|
|
|
- .length - 1
|
|
|
|
- if (response.data.data[i].workflowHistoricTasks[len]
|
|
|
|
- .approved) {
|
|
|
|
- this.$set(response.data.data[i], 'status',
|
|
|
|
- 'success')
|
|
|
|
- } else {
|
|
|
|
- this.$set(response.data.data[i], 'status', 'error')
|
|
|
|
- }
|
|
|
|
- response.data.data[i].operatorTitle = response.data
|
|
|
|
- .data[i].workflowHistoricTasks[len].operatorName
|
|
|
|
- .substring(response.data.data[i]
|
|
|
|
- .workflowHistoricTasks[0].operatorName.length -
|
|
|
|
- 2)
|
|
|
|
- response.data.data[i].operatorName = response.data
|
|
|
|
- .data[i].workflowHistoricTasks[len].operatorName
|
|
|
|
- var time = new Date(response.data.data[i]
|
|
|
|
- .workflowHistoricTasks[len].claimTime)
|
|
|
|
- .getTime()
|
|
|
|
- response.data.data[i].updateDate = this.$u.timeFormat(
|
|
|
|
- time, 'mm.dd hh:MM')
|
|
|
|
- response.data.data[i].auditMind = response.data.data[i]
|
|
|
|
- .workflowHistoricTasks[len].auditMind
|
|
|
|
|
|
+ response.data.data[i].commonStaffs1 = response.data.data[i]
|
|
|
|
+ .commonStaffs
|
|
} else {
|
|
} else {
|
|
- this.$set(response.data.data[i], 'status', 'question')
|
|
|
|
- // response.data.data[i].status='question'
|
|
|
|
- if (response.data.data[i].desc == '总经理助理审核') {
|
|
|
|
- response.data.data[i].operatorTitle = '总助'
|
|
|
|
- } else if (response.data.data[i].desc == '杜大光审核') {
|
|
|
|
- response.data.data[i].operatorTitle = '大光'
|
|
|
|
- } else {
|
|
|
|
|
|
+ if (response.data.data[i].workflowHistoricTasks && response
|
|
|
|
+ .data.data[i].workflowHistoricTasks.length > 0) {
|
|
|
|
+ var len = response.data.data[i].workflowHistoricTasks
|
|
|
|
+ .length - 1
|
|
|
|
+ if (response.data.data[i].workflowHistoricTasks[len]
|
|
|
|
+ .approved) {
|
|
|
|
+ this.$set(response.data.data[i], 'status',
|
|
|
|
+ 'success')
|
|
|
|
+ } else {
|
|
|
|
+ this.$set(response.data.data[i], 'status', 'error')
|
|
|
|
+ }
|
|
response.data.data[i].operatorTitle = response.data
|
|
response.data.data[i].operatorTitle = response.data
|
|
- .data[i].desc.substring(0, 2)
|
|
|
|
|
|
+ .data[i].workflowHistoricTasks[len].operatorName
|
|
|
|
+ .substring(response.data.data[i]
|
|
|
|
+ .workflowHistoricTasks[0].operatorName.length -
|
|
|
|
+ 2)
|
|
|
|
+ response.data.data[i].operatorName = response.data
|
|
|
|
+ .data[i].workflowHistoricTasks[len].operatorName
|
|
|
|
+ var time = new Date(response.data.data[i]
|
|
|
|
+ .workflowHistoricTasks[len].claimTime)
|
|
|
|
+ .getTime()
|
|
|
|
+ response.data.data[i].updateDate = this.$u.timeFormat(
|
|
|
|
+ time, 'mm.dd hh:MM')
|
|
|
|
+ response.data.data[i].auditMind = response.data.data[i]
|
|
|
|
+ .workflowHistoricTasks[len].auditMind
|
|
|
|
+ } else {
|
|
|
|
+ this.$set(response.data.data[i], 'status', 'question')
|
|
|
|
+ // response.data.data[i].status='question'
|
|
|
|
+ if (response.data.data[i].desc == '总经理助理审核') {
|
|
|
|
+ response.data.data[i].operatorTitle = '总助'
|
|
|
|
+ } else if (response.data.data[i].desc == '杜大光审核') {
|
|
|
|
+ response.data.data[i].operatorTitle = '大光'
|
|
|
|
+ } else {
|
|
|
|
+ response.data.data[i].operatorTitle = response.data
|
|
|
|
+ .data[i].desc.substring(0, 2)
|
|
|
|
+ }
|
|
|
|
+ response.data.data[i].operatorName = response.data
|
|
|
|
+ .data[i].desc
|
|
|
|
+ var time1 = new Date(response.data.data[i].updateDate)
|
|
|
|
+ .getTime()
|
|
|
|
+ response.data.data[i].updateDate = this.$u.timeFormat(
|
|
|
|
+ time1, 'mm.dd hh:MM')
|
|
|
|
+ response.data.data[i].auditMind = ''
|
|
}
|
|
}
|
|
-
|
|
|
|
- response.data.data[i].operatorName = response.data
|
|
|
|
- .data[i].desc
|
|
|
|
- var time1 = new Date(response.data.data[i].updateDate)
|
|
|
|
- .getTime()
|
|
|
|
- response.data.data[i].updateDate = this.$u.timeFormat(
|
|
|
|
- time1, 'mm.dd hh:MM')
|
|
|
|
- response.data.data[i].auditMind = ''
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- }
|
|
|
|
- console.log(response.data.data)
|
|
|
|
- for(let i = 0 ;i<response.data.data.length;i++){
|
|
|
|
- if(response.data.data[i].status == "error"){
|
|
|
|
- this.auditCheck = "error"
|
|
|
|
- break;
|
|
|
|
- }else if(response.data.data[i].status == "question"){
|
|
|
|
- this.auditCheck = "question"
|
|
|
|
- break;
|
|
|
|
- }else{
|
|
|
|
- this.auditCheck = "success"
|
|
|
|
|
|
+ console.log(response.data.data)
|
|
|
|
+ for(let i = 0 ;i<response.data.data.length;i++){
|
|
|
|
+ if(response.data.data[i].status == "error"){
|
|
|
|
+ this.auditCheck = "error"
|
|
|
|
+ break;
|
|
|
|
+ }else if(response.data.data[i].status == "question"){
|
|
|
|
+ this.auditCheck = "question"
|
|
|
|
+ break;
|
|
|
|
+ }else{
|
|
|
|
+ this.auditCheck = "success"
|
|
|
|
+ }
|
|
}
|
|
}
|
|
- }
|
|
|
|
- this.auditList = response.data.data
|
|
|
|
- var time2 = new Date(this.list.createDate).getTime()
|
|
|
|
- var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
|
|
|
|
- this.auditList.unshift({
|
|
|
|
- operatorTitle: this.list.creater.substring(0, 2),
|
|
|
|
- operatorName: this.list.creater,
|
|
|
|
- updateDate: time3,
|
|
|
|
- auditMind: '',
|
|
|
|
- desc: '发起申请',
|
|
|
|
- showflow: false,
|
|
|
|
- commonStaffs1: null,
|
|
|
|
- commonStaffs: null,
|
|
|
|
- workflowHistoricTasks: [],
|
|
|
|
- status: 'success'
|
|
|
|
|
|
+ this.auditList = response.data.data
|
|
|
|
+ var time2 = new Date(this.list.createDate).getTime()
|
|
|
|
+ var time3 = this.$u.timeFormat(time2, 'mm.dd hh:MM')
|
|
|
|
+ this.auditList.unshift({
|
|
|
|
+ operatorTitle: this.list.creater.substring(0, 2),
|
|
|
|
+ operatorName: this.list.creater,
|
|
|
|
+ updateDate: time3,
|
|
|
|
+ auditMind: '',
|
|
|
|
+ desc: '发起申请',
|
|
|
|
+ showflow: false,
|
|
|
|
+ commonStaffs1: null,
|
|
|
|
+ commonStaffs: null,
|
|
|
|
+ workflowHistoricTasks: [],
|
|
|
|
+ status: 'success'
|
|
|
|
+ })
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
@@ -630,7 +629,7 @@
|
|
title: '加载中',
|
|
title: '加载中',
|
|
mask: true
|
|
mask: true
|
|
});
|
|
});
|
|
- that.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
|
|
|
+ that.$api.doRequest('post', '/newWorkflow/api/handle', {
|
|
taskId: that.list.taskId,
|
|
taskId: that.list.taskId,
|
|
approved: false,
|
|
approved: false,
|
|
auditMind: this.auditMind,
|
|
auditMind: this.auditMind,
|
|
@@ -667,7 +666,7 @@
|
|
title: '加载中',
|
|
title: '加载中',
|
|
mask: true
|
|
mask: true
|
|
});
|
|
});
|
|
- that.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
|
|
|
+ that.$api.doRequest('post', '/newWorkflow/api/handle', {
|
|
taskId: that.list.taskId,
|
|
taskId: that.list.taskId,
|
|
approved: true,
|
|
approved: true,
|
|
auditMind: this.auditMind,
|
|
auditMind: this.auditMind,
|
|
@@ -692,7 +691,7 @@
|
|
//审核方法
|
|
//审核方法
|
|
audit(item, index, status, status2, reason) {
|
|
audit(item, index, status, status2, reason) {
|
|
if (index < this.list.length) {
|
|
if (index < this.list.length) {
|
|
- this.$api.doRequest('post', '/workflow/api/handle', {
|
|
|
|
|
|
+ this.$api.doRequest('post', '/newWorkflow/api/handle', {
|
|
taskId: item.taskId,
|
|
taskId: item.taskId,
|
|
approved: status,
|
|
approved: status,
|
|
auditMind: reason != undefined ? '已驳回' : '34',
|
|
auditMind: reason != undefined ? '已驳回' : '34',
|
|
@@ -960,17 +959,17 @@
|
|
margin: 20rpx 0;
|
|
margin: 20rpx 0;
|
|
border-radius: 20rpx;
|
|
border-radius: 20rpx;
|
|
padding: 20rpx;
|
|
padding: 20rpx;
|
|
-
|
|
|
|
|
|
+
|
|
.row {
|
|
.row {
|
|
display: flex;
|
|
display: flex;
|
|
-
|
|
|
|
|
|
+
|
|
.left {
|
|
.left {
|
|
display: flex;
|
|
display: flex;
|
|
align-items: center;
|
|
align-items: center;
|
|
-
|
|
|
|
|
|
+
|
|
.item1 {
|
|
.item1 {
|
|
position: relative;
|
|
position: relative;
|
|
-
|
|
|
|
|
|
+
|
|
.item-content {
|
|
.item-content {
|
|
background: #617AE0;
|
|
background: #617AE0;
|
|
width: 44px;
|
|
width: 44px;
|
|
@@ -981,7 +980,7 @@
|
|
font-size: 15px;
|
|
font-size: 15px;
|
|
color: #fff;
|
|
color: #fff;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.status {
|
|
.status {
|
|
position: absolute;
|
|
position: absolute;
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
@@ -990,27 +989,27 @@
|
|
bottom: -3px;
|
|
bottom: -3px;
|
|
background: #fff;
|
|
background: #fff;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.status.success {
|
|
.status.success {
|
|
border: 1px solid rgb(60, 156, 255);
|
|
border: 1px solid rgb(60, 156, 255);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.status.error {
|
|
.status.error {
|
|
border: 1px solid rgb(245, 108, 108);
|
|
border: 1px solid rgb(245, 108, 108);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.status.question {
|
|
.status.question {
|
|
border: 1px solid #f9ae3d;
|
|
border: 1px solid #f9ae3d;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.right {
|
|
.right {
|
|
width: 80%;
|
|
width: 80%;
|
|
// color: #B0B1B5;
|
|
// color: #B0B1B5;
|
|
margin-top: 10px;
|
|
margin-top: 10px;
|
|
-
|
|
|
|
|
|
+
|
|
.right-content {
|
|
.right-content {
|
|
background: #F2F3F7;
|
|
background: #F2F3F7;
|
|
margin-left: 10px;
|
|
margin-left: 10px;
|
|
@@ -1019,33 +1018,33 @@
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
color: #B0B1B5;
|
|
color: #B0B1B5;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.right-item {
|
|
.right-item {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
-
|
|
|
|
|
|
+
|
|
.time {
|
|
.time {
|
|
color: #999;
|
|
color: #999;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.item2 {
|
|
.item2 {
|
|
margin-left: 20rpx;
|
|
margin-left: 20rpx;
|
|
margin-top: -7px;
|
|
margin-top: -7px;
|
|
-
|
|
|
|
|
|
+
|
|
.name {
|
|
.name {
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
font-weight: 800;
|
|
font-weight: 800;
|
|
margin-bottom: 4px;
|
|
margin-bottom: 4px;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.status.success {
|
|
.status.success {
|
|
color: #6CC48C;
|
|
color: #6CC48C;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.status.error {
|
|
.status.error {
|
|
color: rgb(245, 108, 108);
|
|
color: rgb(245, 108, 108);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.status.question {
|
|
.status.question {
|
|
color: #f9ae3d;
|
|
color: #f9ae3d;
|
|
}
|
|
}
|
|
@@ -1053,10 +1052,10 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.row2 {
|
|
.row2 {
|
|
display: flex;
|
|
display: flex;
|
|
-
|
|
|
|
|
|
+
|
|
.item-content {
|
|
.item-content {
|
|
background: #22C572;
|
|
background: #22C572;
|
|
width: 30px;
|
|
width: 30px;
|
|
@@ -1069,22 +1068,22 @@
|
|
padding: 0 2px;
|
|
padding: 0 2px;
|
|
margin: 0 auto;
|
|
margin: 0 auto;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.status {
|
|
.status {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 0;
|
|
top: 0;
|
|
right: 0;
|
|
right: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.row-line {
|
|
.row-line {
|
|
width: 1px;
|
|
width: 1px;
|
|
height: 30px;
|
|
height: 30px;
|
|
background: #F2F2F2;
|
|
background: #F2F2F2;
|
|
margin: 10rpx 50rpx;
|
|
margin: 10rpx 50rpx;
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
.audit {
|
|
.audit {
|
|
margin-top: 20rpx;
|
|
margin-top: 20rpx;
|
|
}
|
|
}
|