| | |
| | | style="padding: 3px 0;margin-right:10px;" |
| | | type="text" |
| | | size="medium" |
| | | @click="refresh" |
| | | >刷新 |
| | | </el-button> |
| | | <el-button |
| | | style="padding: 3px 0;margin-right:10px;" |
| | | type="text" |
| | | size="medium" |
| | | @click="addOrderOperation" |
| | | >添加 |
| | | </el-button> |
| | |
| | | </el-col> |
| | | </el-row> --> |
| | | <el-table |
| | | v-if="operationIndex" |
| | | id="operationTable" |
| | | ref="operationTable" |
| | | class="basic-template-table" |
| | |
| | | currentRow: [], |
| | | currentRouting: {}, // 当前选择的工艺 |
| | | operations: [], // 当前选择工艺对应的工序 |
| | | operationIndex: 10, |
| | | currentBom: {}, // 当前选择的产品结构 |
| | | components: [], // 当前选择产品结构对应的结构组件 |
| | | factoryOptions: [], |
| | |
| | | } |
| | | } |
| | | }, |
| | | refresh() { |
| | | getMoRoutingOption(this.dataForm.id).then((response) => { |
| | | if (response.data.code === 0) { |
| | | this.operations = response.data.data |
| | | this.operationIndex += 1 |
| | | } else { |
| | | this.operations = [] |
| | | } |
| | | }) |
| | | }, |
| | | // 删除当前工序 |
| | | deleteOrderOperation(row) { |
| | | this.$confirm('是否确认删除?', '提示', { |
| | |
| | | getMoRoutingOption(this.dataForm.id).then((response) => { |
| | | if (response.data.code === 0) { |
| | | this.operations = response.data.data |
| | | this.operationIndex += 1 |
| | | } else { |
| | | this.operations = [] |
| | | } |
| | |
| | | getMoRoutingOption(this.dataForm.id).then((response) => { |
| | | if (response.data.code === 0) { |
| | | this.operations = response.data.data |
| | | this.operationIndex += 1 |
| | | } else { |
| | | this.operations = [] |
| | | } |