chenhj
6 天以前 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>
@@ -303,6 +310,7 @@
                            </el-col>
                          </el-row> -->
                          <el-table
                            v-if="operationIndex"
                            id="operationTable"
                            ref="operationTable"
                            class="basic-template-table"
@@ -1269,6 +1277,7 @@
      currentRow: [],
      currentRouting: {}, // 当前选择的工艺
      operations: [], // 当前选择工艺对应的工序
      operationIndex: 10,
      currentBom: {}, // 当前选择的产品结构
      components: [], // 当前选择产品结构对应的结构组件
      factoryOptions: [],
@@ -2259,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('是否确认删除?', '提示', {
@@ -2299,6 +2318,14 @@
                }
              }
              this.$message.success('订单工序删除成功')
              getMoRoutingOption(this.dataForm.id).then((response) => {
                if (response.data.code === 0) {
                  this.operations = response.data.data
                  this.operationIndex += 1
                } else {
                  this.operations = []
                }
              })
            } else {
              this.$message.error('订单工序删除失败')
            }
@@ -2350,6 +2377,7 @@
          getMoRoutingOption(this.dataForm.id).then((response) => {
            if (response.data.code === 0) {
              this.operations = response.data.data
              this.operationIndex += 1
            } else {
              this.operations = []
            }