| | |
| | | </div> |
| | | <el-table ref="multipleTableRef0" :data="tableData" border style="width: 100%" class="multipleTableRef" @selection-change="HandleSelectionChange" @row-click="rowClick"> |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column prop="index" label="工序顺序"></el-table-column> |
| | | <el-table-column prop="code" label="工序编号"></el-table-column> |
| | | <el-table-column prop="name" label="工序名称"></el-table-column> |
| | | <el-table-column prop="index" label="工序顺序"> |
| | | <template #default="scope"> |
| | | <span>{{scope.row.index}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="processCode" label="工序编号"></el-table-column> |
| | | <el-table-column prop="processName" label="工序名称"></el-table-column> |
| | | <el-table-column fixed="right" label="操作" width="200px"> |
| | | <template #default="scope"> |
| | | <el-button text type="primary" size="small" @click="table_edit(scope.row, scope.$index)">删除</el-button> |
| | | <el-button text type="primary" size="small" @click="table_edit(scope.row, scope.$index)">编辑</el-button> |
| | | <el-button text type="primary" size="small" @click="table_del(scope.row, scope.$index)">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | export default { |
| | | name: 'workmanship', |
| | | components: {saveDialog,addWorkmanship}, |
| | | props: ["isCustomization"], |
| | | props: ["isCustomization","craftId"], |
| | | data() { |
| | | return { |
| | | drawer: false, |
| | |
| | | } |
| | | }, |
| | | mounted(){ |
| | | |
| | | }, |
| | | watch: { |
| | | craftId(val) { |
| | | if(val) { |
| | | this.getcraftlList(); |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | getcraftlList() { |
| | | this.$HTTP.get(`/api/blade-cps/production-craft-version/detail/${this.craftId}`).then(res=> { |
| | | if(res.code == 200) { |
| | | res.data.processList.forEach((item,index)=> { |
| | | item.index = index + 1; |
| | | }); |
| | | this.tableData = res.data.processList; |
| | | } |
| | | }) |
| | | }, |
| | | handleClose() { |
| | | |
| | | }, |
| | |
| | | // this.getPage1(); |
| | | }, |
| | | table_edit(row,index) { |
| | | |
| | | }, |
| | | table_del(row,index) { |
| | | this.$confirm(`确认要删除此工序吗?`, '', { |
| | | type: 'warning' |
| | | }).then(() => { |
| | |
| | | cursor: pointer; |
| | | } |
| | | .addworkmanship { |
| | | padding: 0 20px; |
| | | padding: 0 40px; |
| | | } |
| | | </style> |