yangys
2025-08-11 55c9cc6f424168a00ebd91a1a74a5a929ce0bdb4
src/views/wel/components/TodolistLeft.vue
@@ -1,7 +1,7 @@
<!--
 * @Date: 2025-07-01 20:45:15
 * @LastEditors: gaoshp
 * @LastEditTime: 2025-08-06 20:40:36
 * @LastEditors: 李喆(开发组) lzhe@yxqiche.com
 * @LastEditTime: 2025-08-11 10:35:59
 * @FilePath: /mdmweb/src/views/flow/components/TodolistLeft.vue
-->
<template>
@@ -12,8 +12,7 @@
             :upload-after="uploadAfter" class="att-box"></avue-form>
        </div>
        <el-table :data="tableData" border @row-click="showContent" max-height="200">
            <!-- <el-table-column prop="machineCode" label="加工机床">
            </el-table-column> -->
            <el-table-column type="index" label="#" width="40" align="center"/>
            <el-table-column prop="name" label="程序名称">
            </el-table-column>
            <el-table-column fixed="right" label="操作" width="60" align="center">
@@ -46,7 +45,11 @@
    props: {
        row: {
            type: Object,
        }
        },
        replaceDataId: {type: String},
        drawingNo: {type: String},
        processNo: {type: String},
      processEdition: {type: String}
    },
    data() {
        return {
@@ -64,10 +67,13 @@
                        prop: 'att',
                        type: 'upload',
                        multiple: true,
                        action: '/api/blade-mdm/flow/mgr/ncupload',
                        action: '/api/blade-mdm/flow/replace/upload',
                        span: 24,
                        data: {
                            processInstanceId: this.row.processInstanceId
                            processInstanceId: this.replaceDataId,
                            drawingNo: this.drawingNo,   //图号
                            processNo: this.processNo,  //工序号
                     processEdition: this.processEdition  //工序版次
                        },
                    }
                ]
@@ -129,13 +135,13 @@
                this.attForm.att = '';
                return done();
            } else {
                console.log(res)
                this.$message.warning(res.msg || '上传失败');
                done()
            }
        },
        getAttList () {
            getSelectedAppList(this.row.processInstanceId).then(res => {
            //console.log(this.row.processInstanceId)
            getSelectedAppList(this.replaceDataId).then(res => {
                if (res.data.code !== 200) {
                    this.$message.error('获取已选程序失败');
                    return;