chenhj
8 天以前 cb12d30d03e1940b1447395af46bfaba37b214eb
src/views/plan/manufacturingorder/productorder-form.vue
@@ -286,6 +286,13 @@
                              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>
@@ -1270,7 +1277,7 @@
      currentRow: [],
      currentRouting: {}, // 当前选择的工艺
      operations: [], // 当前选择工艺对应的工序
      operationIndex: 0,
      operationIndex: 10,
      currentBom: {}, // 当前选择的产品结构
      components: [], // 当前选择产品结构对应的结构组件
      factoryOptions: [],
@@ -2261,6 +2268,16 @@
        }
      }
    },
    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('是否确认删除?', '提示', {