|
|
@@ -64,10 +64,10 @@
|
|
|
审批备注
|
|
|
</div>
|
|
|
<textarea v-model="remark" class="remark" placeholder="请填写审批备注"></textarea>
|
|
|
- <div class="page-title">
|
|
|
+ <div class="page-title" v-if="process.level !== 5">
|
|
|
报送
|
|
|
</div>
|
|
|
- <div class="approver" @click="showActionSheet = true">
|
|
|
+ <div class="approver" @click="showActionSheet = true" v-if="process.level !== 5">
|
|
|
<div class="label">审批人</div>
|
|
|
<div class="value">{{ nextApprovers ? nextApprovers.name : '请选择' }}</div>
|
|
|
<img src="../assets/icon_into.png" class="into" />
|
|
|
@@ -179,7 +179,7 @@ export default {
|
|
|
Filesystem.writeFile({
|
|
|
path: item.name,
|
|
|
data: reader.result,
|
|
|
- directory: FilesystemDirectory.Documents,
|
|
|
+ directory: FilesystemDirectory.Data,
|
|
|
recursive: true
|
|
|
}).then(res => {
|
|
|
console.log(res);
|
|
|
@@ -207,7 +207,7 @@ export default {
|
|
|
this.$toast('请填写审批意见');
|
|
|
return;
|
|
|
}
|
|
|
- if (!this.nextApprovers) {
|
|
|
+ if (this.process.level !== 5 && !this.nextApprovers) {
|
|
|
this.$toast('请选择报送人员');
|
|
|
return;
|
|
|
}
|
|
|
@@ -217,7 +217,7 @@ export default {
|
|
|
id: this.process.id,
|
|
|
pass: this.pass,
|
|
|
remark: this.remark,
|
|
|
- nextApprovers: this.nextApprovers.userId
|
|
|
+ nextApprovers: this.process.level === 5 ? '' : this.nextApprovers.userId
|
|
|
})
|
|
|
.then(res => {
|
|
|
this.$toast.success('提交成功');
|
|
|
@@ -240,7 +240,8 @@ export default {
|
|
|
.post('/approvalProcess/next', {
|
|
|
id: this.process.id,
|
|
|
pass: this.pass,
|
|
|
- remark: this.remark
|
|
|
+ remark: this.remark,
|
|
|
+ nextApprovers: ''
|
|
|
})
|
|
|
.then(res => {
|
|
|
this.$toast.success('提交成功');
|