From 2fa8e30d497803c4af428f7b65b77fa26b0ca924 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期五, 05 九月 2025 23:19:41 +0800
Subject: [PATCH] 增加审批表打印
---
src/views/flow/donelist.vue | 30 +++++++++++++++++++++---------
1 files changed, 21 insertions(+), 9 deletions(-)
diff --git a/src/views/flow/donelist.vue b/src/views/flow/donelist.vue
index 991fe68..7eb8aa7 100644
--- a/src/views/flow/donelist.vue
+++ b/src/views/flow/donelist.vue
@@ -11,7 +11,7 @@
@size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" >
<template #menu="scope">
<el-button type="primary" text size="default" @click.stop="handleView(scope.row, scope.index)">鏌ョ湅</el-button>
- <el-button type="primary" text size="default" @click.stop="handleWithdraw(scope.row, scope.index)">鎾ゅ洖</el-button>
+ <el-button type="primary" :disabled="scope.row.processIsFinished==='true' || scope.row.flag.toLowerCase().indexOf('program')>-1" v-if="permission.withdraw_button" text size="default" @click.stop="handleWithdraw(scope.row, scope.index)">鎾ゅ洖</el-button>
</template>
</avue-crud>
@@ -28,7 +28,7 @@
</basic-container>
</template>
<script>
-import { getDoneList} from '@/api/flow/todolist';
+import { getDoneList,todoChangeNotify} from '@/api/flow/todolist';
import { mapGetters } from 'vuex';
export default {
data() {
@@ -71,7 +71,7 @@
}
},
{
- label: '宸ヨ壓鐗堟',
+ label: '鎵规鍙�',
prop: 'variables.craftEdition',
render: ({ row }) => {
return h('p',{'class': 'margin0'}, row?.variables?.craftEdition || '');
@@ -292,6 +292,7 @@
type: 'datetime',
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ sortable:true,
search: false,
searchRange: true,
searchSpan: 8,
@@ -333,7 +334,7 @@
this.dialogVisible = true;
},
handleWithdraw(row) {
- console.log(row,row.processInstanceId)
+ //console.log(row,row.processInstanceId)
this.$confirm('纭瑕佹挙鍥炲悧锛�', '', {
confirmButtonText: this.$t('submitText'),
cancelButtonText: this.$t('cancelText'),
@@ -349,15 +350,19 @@
return;
}
this.$message.success('鎿嶄綔鎴愬姛');
+
+ todoChangeNotify();
+
+ this.refreshChange();
}).catch(err => {
console.error(err);
- done()
+ //done()
});
}).catch(() => {
console.log('>>>>>>')
// this.$message.info('宸插彇娑堟搷浣�');
- done();
+ //done();
});
},
currentChange(currentPage) {
@@ -370,7 +375,7 @@
console.log('searchChange', params);
params.createTimeBegin = params?.processCreateTime?.[0] || '';
params.createTimeEnd = params?.processCreateTime?.[1] || '';
- console.log(params);
+ //console.log(params);
// data = {
// createTimeBegin: dayjs(params.createTimeBegin).isValid() ? dayjs(params.createTimeBegin).format('YYYY-MM-DD') : '',
// createTimeEnd: dayjs(params.createTimeEnd).isValid() ? dayjs(params.createTimeEnd).format('YYYY-MM-DD') : '',
@@ -383,7 +388,7 @@
}
this.query = data
this.onLoad(this.page, data);
- done();
+ //done();
},
searchReset () {
this.loading = true;
@@ -392,7 +397,7 @@
},
sizeChange() {
this.loading = true;
- this.getList();
+ this.getList();
},
refreshChange() {
this.onLoad(this.page, this.query);
@@ -416,7 +421,14 @@
this.loading = false;
});
},
+ at1(){
+ console.log('computed')
+ }
+ },
+ computed: {
+
+ ...mapGetters(['userInfo', 'permission']),
}
}
</script>
--
Gitblit v1.9.3