
<template>
    <div>
      <el-dialog title="加工工序" :visible.sync="goodsFormVisible" :before-close="handleProcessclose">
         <el-table
            :data="tableData3"
            tooltip-effect="dark"
            style="width: 100%">
            <el-table-column
              type="selection"
              width="55">
            </el-table-column>
            <el-table-column
              label="工序行号">
              <template slot-scope="scope">{{ scope.row.stepLineNo }}</template>
            </el-table-column>
            <el-table-column
              prop="step"
              label="工序描述">
            </el-table-column>
            <el-table-column
              prop="uomDescv"
              label="包装单位">
            </el-table-column>
            <el-table-column
              prop="qtyKit"
              label="加工数">
            </el-table-column>
            <el-table-column
              prop="qtyOpEa"
              label="加工数EA">
            </el-table-column>
            <el-table-column
              prop="kitOp">
            </el-table-column>
            <el-table-column
              prop="kitTime"
              label="加工时间">
            </el-table-column>
          </el-table>
          <el-button type="primary" style="margin-top: 10px" @click="handleAffirm">确认</el-button>
      </el-dialog>
    </div>
</template>
<script>
export default {
  data () {
    return {
      tableData3: []
    }
  },
  props: {
    goodsFormVisible: Boolean,
  },
  mounted () {

  },
  methods: {
    handleAffirm () {
      const url = this.$API.maintain.KitBomKitConfirmList.saveKit
      const param = { kitSteps: [] }
      this.$https.post(url, param).then(res => {
        this.$emit('handleProcessclose')
      })
    },
    getMessage (data) {
      this.tableData3 = data
    },
    handleProcessclose () {
      this.$emit('handleProcessclose')
    },
  }
}
</script>
