|
|
@@ -60,12 +60,12 @@ |
|
|
|
<l-modal v-model="modal" @close="reviewer = ''" title="指派审核人"> |
|
|
|
<l-checkbox-picker @input="(e)=>{reviewer = e}" :value="reviewer" :readonly="false" :range="reviewerList" |
|
|
|
required title="审核人" /> |
|
|
|
<l-button @click="userAssign" color="blue" class="block" block>确定指派</l-button> |
|
|
|
<l-button @click="userAssign" :disabled="userAssignDisable" color="blue" class="block" block>确定指派</l-button> |
|
|
|
<l-button @click="()=>{modal = false;reviewer = ''}" line="blue" class="block margin-top-sm" block>取消</l-button> |
|
|
|
</l-modal> |
|
|
|
|
|
|
|
<view class="padding margin-top bg-white"> |
|
|
|
<l-button @click="submit" class="block" size="lg" color="green" block>提交流程{{ typeText }}</l-button> |
|
|
|
<l-button @click="submit" :disabled="submitDisable" class="block" size="lg" color="green" block>提交流程{{ typeText }}</l-button> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="pswd-uni-mask" v-if="passshow"> |
|
|
@@ -136,7 +136,10 @@ export default { |
|
|
|
canvasW:'', |
|
|
|
canvasH:'', |
|
|
|
signshow:false, |
|
|
|
ConfirmSign:'' |
|
|
|
ConfirmSign:'', |
|
|
|
|
|
|
|
submitDisable:false, |
|
|
|
userAssignDisable:false, |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@@ -266,8 +269,14 @@ export default { |
|
|
|
} |
|
|
|
// let formdata = new FormData() |
|
|
|
// formdata.append("data",this.taskParam.formreq) |
|
|
|
this.userAssignDisable = true |
|
|
|
uni.showLoading({ |
|
|
|
title: '提交中...' |
|
|
|
}); |
|
|
|
const res = await this.HTTP_POST('learun/adms/newwf/instance', this.taskParam.formreq, `指派审核人时发生错误`) |
|
|
|
if(!res){ |
|
|
|
this.userAssignDisable = false |
|
|
|
uni.hideLoading(); |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
@@ -281,9 +290,11 @@ export default { |
|
|
|
) |
|
|
|
|
|
|
|
if (!success) { |
|
|
|
this.userAssignDisable = false |
|
|
|
uni.hideLoading(); |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
uni.hideLoading(); |
|
|
|
this.EMIT('task-list-change') |
|
|
|
this.NAV_BACK(2) |
|
|
|
this.TOAST(`已成功提交${this.typeText}`, 'success') |
|
|
@@ -302,6 +313,11 @@ export default { |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
this.submitDisable = true |
|
|
|
uni.showLoading({ |
|
|
|
title: '提交中...' |
|
|
|
}); |
|
|
|
|
|
|
|
const postData = { |
|
|
|
operationCode: this.taskParam.code, |
|
|
|
operationName: this.taskParam.name, |
|
|
@@ -392,6 +408,8 @@ export default { |
|
|
|
) |
|
|
|
|
|
|
|
if (!success) { |
|
|
|
this.submitDisable = false |
|
|
|
uni.hideLoading(); |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
@@ -409,15 +427,13 @@ export default { |
|
|
|
}) |
|
|
|
this.submitPostData = postData |
|
|
|
if(this.reviewerList.length>1){ |
|
|
|
this.submitDisable = false |
|
|
|
uni.hideLoading(); |
|
|
|
this.modal = true |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
uni.showLoading({ |
|
|
|
title: '提交中...' |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -428,6 +444,7 @@ export default { |
|
|
|
) |
|
|
|
|
|
|
|
if (!success) { |
|
|
|
this.submitDisable = false |
|
|
|
uni.hideLoading(); |
|
|
|
return |
|
|
|
} |
|
|
|