yangys
2025-09-02 d762a77d9238eef17c66c35b06955fca20160043
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>
@@ -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 || '');
@@ -350,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) {
@@ -371,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') : '',
@@ -384,7 +388,7 @@
            }
            this.query = data
            this.onLoad(this.page, data);
            done();
            //done();
        },
        searchReset () {
            this.loading = true;
@@ -393,7 +397,7 @@
        },
        sizeChange() {
            this.loading = true;
        this.getList();
            this.getList();
        },
        refreshChange() {
            this.onLoad(this.page, this.query);