|
@@ -43,8 +43,8 @@
|
|
图片
|
|
图片
|
|
</view>
|
|
</view>
|
|
<view style="width: 100%;overflow-x: scroll;white-space: nowrap">
|
|
<view style="width: 100%;overflow-x: scroll;white-space: nowrap">
|
|
- <u-upload v-if="data.pageType >= 1 && data.pageType <= 2" :fileList="imgList"
|
|
|
|
- multiple width="120" height="120" useBeforeRead="true" disabled="true" uploadIcon="clock">
|
|
|
|
|
|
+ <u-upload v-if="data.pageType >= 1 && data.pageType <= 2" :fileList="imgList" multiple width="120"
|
|
|
|
+ height="120" useBeforeRead="true" disabled="true" uploadIcon="clock">
|
|
</u-upload>
|
|
</u-upload>
|
|
<u-upload v-if="data.pageType >= 3" :fileList="data.formData.img_list" multiple width="120"
|
|
<u-upload v-if="data.pageType >= 3" :fileList="data.formData.img_list" multiple width="120"
|
|
height="120" useBeforeRead="true" disabled="true" uploadIcon="clock">
|
|
height="120" useBeforeRead="true" disabled="true" uploadIcon="clock">
|
|
@@ -206,8 +206,8 @@
|
|
type: 'center',
|
|
type: 'center',
|
|
zindeButtion: 1,
|
|
zindeButtion: 1,
|
|
rejectHistoryData: [],
|
|
rejectHistoryData: [],
|
|
- fileList:[],
|
|
|
|
- imgList:[]
|
|
|
|
|
|
+ fileList: [],
|
|
|
|
+ imgList: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -341,7 +341,8 @@
|
|
const {
|
|
const {
|
|
data: res
|
|
data: res
|
|
} = await this.$httpRequest({
|
|
} = await this.$httpRequest({
|
|
- url: '/app/pL?taskId='+ this.data.id +'&groupId=' + this.data.baseGroupId + '&baseId=' + this.data.baseId,
|
|
|
|
|
|
+ url: '/app/pL?taskId=' + this.data.id + '&groupId=' + this.data.baseGroupId + '&baseId=' +
|
|
|
|
+ this.data.baseId,
|
|
method: 'get'
|
|
method: 'get'
|
|
});
|
|
});
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
@@ -364,7 +365,8 @@
|
|
this.list1
|
|
this.list1
|
|
if (0 != this.historyData.length) {
|
|
if (0 != this.historyData.length) {
|
|
for (var i = 0; i < this.historyData.length; i++) {
|
|
for (var i = 0; i < this.historyData.length; i++) {
|
|
- if (this.historyData[i].comment && this.historyData[i].comment === "自动结束") {
|
|
|
|
|
|
+ if (this.historyData[i].comment && this.historyData[i].comment === "自动结束" ||
|
|
|
|
+ this.historyData[i].comment === "流程结束") {
|
|
this.list1.push({
|
|
this.list1.push({
|
|
title: this.historyData[i].comment,
|
|
title: this.historyData[i].comment,
|
|
desc: this.historyData[i].createTime
|
|
desc: this.historyData[i].createTime
|
|
@@ -383,7 +385,8 @@
|
|
}
|
|
}
|
|
if (this.historyData[this.historyData.length - 1]) {
|
|
if (this.historyData[this.historyData.length - 1]) {
|
|
if (!(this.historyData[this.historyData.length - 1].comment === "同意并结束") &&
|
|
if (!(this.historyData[this.historyData.length - 1].comment === "同意并结束") &&
|
|
- !(this.historyData[this.historyData.length - 1].comment === "自动结束")) {
|
|
|
|
|
|
+ !(this.historyData[this.historyData.length - 1].comment === "自动结束") &&
|
|
|
|
+ !(this.historyData[this.historyData.length - 1].comment === "流程结束")) {
|
|
this.list1.push({
|
|
this.list1.push({
|
|
title: "待审批"
|
|
title: "待审批"
|
|
})
|
|
})
|
|
@@ -420,6 +423,7 @@
|
|
this.$refs.popup.open(type)
|
|
this.$refs.popup.open(type)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ this.getHouXuanZu()
|
|
this.nextTitle = '下一步审批人'
|
|
this.nextTitle = '下一步审批人'
|
|
this.type = type
|
|
this.type = type
|
|
// open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
|
|
// open 方法传入参数 等同在 uni-popup 组件上绑定 type属性
|
|
@@ -456,7 +460,9 @@
|
|
const {
|
|
const {
|
|
data: res
|
|
data: res
|
|
} = await this.$httpRequest({
|
|
} = await this.$httpRequest({
|
|
- url: '/app/currentPL?taskId='+ this.data.id +'&groupId=' + this.data.baseGroupId + '&baseId=' + this.data.baseId,
|
|
|
|
|
|
+ url: '/app/currentPL?taskId=' + this.data.id + '&groupId=' + this.data
|
|
|
|
+ .baseGroupId +
|
|
|
|
+ '&baseId=' + this.data.baseId,
|
|
method: 'get'
|
|
method: 'get'
|
|
});
|
|
});
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
@@ -469,7 +475,8 @@
|
|
mask: true,
|
|
mask: true,
|
|
title: '正在提交'
|
|
title: '正在提交'
|
|
})
|
|
})
|
|
- if (this.form.result !== 'RESULT_FALSE' && this.data.isCandidate == "0" && 2.0 < parseFloat(this.data
|
|
|
|
|
|
+ if (this.form.result !== 'RESULT_FALSE' && this.data.isCandidate == "0" && 2.0 <
|
|
|
|
+ parseFloat(this.data
|
|
.formData.total_time)) {
|
|
.formData.total_time)) {
|
|
if (!this.nextApproval) {
|
|
if (!this.nextApproval) {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
@@ -523,7 +530,8 @@
|
|
let date = new Date(time);
|
|
let date = new Date(time);
|
|
let year = date.getFullYear();
|
|
let year = date.getFullYear();
|
|
// 在日期格式中,月份是从0开始的,因此要加0,使用三元表达式在小于10的前面加0,以达到格式统一 如 09:11:05
|
|
// 在日期格式中,月份是从0开始的,因此要加0,使用三元表达式在小于10的前面加0,以达到格式统一 如 09:11:05
|
|
- let month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
|
|
|
|
|
|
+ let month = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date
|
|
|
|
+ .getMonth() + 1;
|
|
let day = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
|
|
let day = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
|
|
let hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
|
|
let hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
|
|
let minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
|
|
let minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
|
|
@@ -596,4 +604,4 @@
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|