From b0d0a643150edb5064e8c61d941d908bad805675 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期六, 30 八月 2025 20:53:40 +0800
Subject: [PATCH] 重构机床回传文件;撤回后禁用撤回按钮
---
src/views/flow/donelist.vue | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/views/flow/donelist.vue b/src/views/flow/donelist.vue
index 892e10e..efc3265 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" :disabled="scope.row.processIsFinished==='true'" v-if="permission.withdraw_button" 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>
@@ -350,15 +350,17 @@
return;
}
this.$message.success('鎿嶄綔鎴愬姛');
+
+ this.refreshChange();
}).catch(err => {
console.error(err);
- done()
+ //done()
});
}).catch(() => {
console.log('>>>>>>')
// this.$message.info('宸插彇娑堟搷浣�');
- done();
+ //done();
});
},
currentChange(currentPage) {
@@ -371,7 +373,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') : '',
@@ -384,7 +386,7 @@
}
this.query = data
this.onLoad(this.page, data);
- done();
+ //done();
},
searchReset () {
this.loading = true;
@@ -393,7 +395,7 @@
},
sizeChange() {
this.loading = true;
- this.getList();
+ this.getList();
},
refreshChange() {
this.onLoad(this.page, this.query);
--
Gitblit v1.9.3