| | |
| | | --> |
| | | <template> |
| | | <basic-container> |
| | | <div class="tool" v-show="['programmingTask','cureProgramTask'].includes(row.taskDefinitionKey)"> |
| | | <div class="tool" v-show="['programmingTask','cureProgramTask','repalceProgrammingTask'].includes(row.taskDefinitionKey)"> |
| | | <avue-form :option="attOption" |
| | | v-model="attForm" |
| | | :upload-after="uploadAfter" class="att-box"></avue-form> |
| | |
| | | <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"> |
| | | <template #default="scope" > |
| | | <el-button v-show="['programmingTask','cureProgramTask'].includes(row.taskDefinitionKey)" type="text" size="small" @click.stop="del(scope.$index,scope.row)">删除</el-button> |
| | | <el-button v-show="['programmingTask','cureProgramTask','repalceProgrammingTask'].includes(row.taskDefinitionKey)" type="text" size="small" @click.stop="del(scope.$index,scope.row)">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | :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"> |
| | |
| | | }, |
| | | replaceDataId: {type: String}, |
| | | drawingNo: {type: String}, |
| | | processNo: {type: String} |
| | | processNo: {type: String}, |
| | | processEdition: {type: String} |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | data: { |
| | | processInstanceId: this.replaceDataId, |
| | | drawingNo: this.drawingNo, //图号 |
| | | processNo: this.processNo //工序号 |
| | | processNo: this.processNo, //工序号 |
| | | processEdition: this.processEdition //工序版次 |
| | | }, |
| | | } |
| | | ] |
| | |
| | | <el-drawer title="替换" append-to-body v-model="todolistModel" size="100%" class="code-box"> |
| | | <div class="approve-box"> |
| | | <div class="left"> |
| | | <TodolistLeft :row="row" :replaceDataId="replaceDataId" :drawingNo="drawingNo" :processNo="processNo" @selection-change="todoSelectionChange" /> |
| | | <TodolistLeft :row="row" :replaceDataId="replaceDataId" :drawingNo="drawingNo" :processNo="processNo" :processEdition="processEdition" @selection-change="todoSelectionChange" /> |
| | | </div> |
| | | <div class="right"> |
| | | <TodolistRightTop :row="row" :name="name" /> |
| | |
| | | return { |
| | | drawingNo: '', |
| | | processNo: '', |
| | | processEdition: '', |
| | | replaceDataId: "", |
| | | formApprove: { |
| | | title: '', |
| | |
| | | title: this.formApprove.title, |
| | | nodeId: this.id, |
| | | tempInstanceId: this.replaceDataId, |
| | | comment: this.formApprove.comment, |
| | | assignee: this.formApprove.assignee |
| | | } |
| | | axios({ |
| | |
| | | this.row = row; |
| | | this.replaceDataId = resp.data.data.processInstanceId; |
| | | this.processNo = resp.data.data.processNo; |
| | | this.drawingNo = resp.data.data.drawingNo; |
| | | this.processEdition = resp.data.data.processEdition; |
| | | this.drawingNo = resp.data.data.drawingNo; |
| | | this.formApprove.title = resp.data.data.name + "替换"; |
| | | this.todolistModel = true; |
| | | }); |