| | |
| | | <el-button type="primary" plain @click="addApp">添加文件 |
| | | </el-button> |
| | | </div> |
| | | <el-text type="danger" v-if="row.variables.curedLocked === 'Y'">固化程序已加锁,请谨慎使用</el-text> |
| | | <el-text type="danger" v-if="row.variables.hasCuredProgram==='Y' && row.variables.isProcessEditionSame=='N' && row.variables.cureProgramUseable==undefined">已固化程序工序版次不一致,派工版次:{{row.variables.processEdition}},已固化版次:{{row.variables.curedProcessEdition}}</el-text> |
| | | <el-text type="danger" v-if="row.variables.curedLocked === 'Y'">固化程序已锁定,请谨慎使用。锁定原因:{{ remark }}</el-text> |
| | | <el-text type="danger" v-if="row.processDefinitionKey === 'program-unlock'">程序已锁定,锁定原因:{{ remark }}</el-text> |
| | | <el-text type="danger" v-if="row.variables.hasCuredProgram==='Y' && row.variables.isProcessEditionSame=='N' && row.variables.cureProgramUseable==undefined">已固化程序工序版次不一致,派工版次:{{row.variables.processEdition}},已固化版次:{{row.variables.curedProcessEdition}}</el-text> |
| | | <el-table :data="tableData" border @row-click="showContent" max-height="200" highlight-current-row> |
| | | <!-- <el-table-column prop="machineCode" label="加工机床"> |
| | | </el-table-column> --> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getAppList,getFileData, getSelectedAppList, getContent, removeAtt } from '@/api/flow/todolist'; |
| | | import { getAppList,getFileData, getSelectedAppList, getContent, removeAtt,queryLockRemark } from '@/api/flow/todolist'; |
| | | import { exportBlob } from '@/api/common'; |
| | | import { getToken } from '@/utils/auth'; |
| | | import NProgress from 'nprogress'; |
| | |
| | | // }, |
| | | ], |
| | | }, |
| | | |
| | | remark:'',//锁定原因 |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.getAttList(); |
| | | this.getFileData(); |
| | | this.getLockRemark();//获取锁定原因 |
| | | this.onLoad(this.page); |
| | | |
| | | }, |
| | |
| | | } |
| | | }) |
| | | }, |
| | | getLockRemark () { |
| | | //获取锁定原因 |
| | | let nodeId = this.row.variables.nodeId; |
| | | if(!nodeId){ |
| | | nodeId = this.row.variables.curedNodeId; |
| | | } |
| | | queryLockRemark(nodeId).then(res => { |
| | | if (res.data.code == 200) { |
| | | this.remark = res.data.data || ''; |
| | | } else { |
| | | this.remark = ''; |
| | | } |
| | | }) |
| | | }, |
| | | diffFile(index, row) { |
| | | console.log(row) |
| | | axios({ |