zouyu
2023-11-14 e2c3d91242be8953c5d73ddddc04839b22a9f1e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<template>
  <el-dialog
    width="40%"
    top="5vh"
    title="工艺路线"
    :visible.sync="innerVisible"
    append-to-body
    @close="$emit('update:currshowlist', false)"
    :show="currshowlist"
    class="technology-routing-dialog"
  >
    <div class="app-container">
      <div class="avue-crud">
        <el-table
          ref="multipleTable"
          :data="technologyRoutingList"
          tooltip-effect="dark"
          style="width: 100%"
          @selection-change="handleSelectionChange"
        >
          <el-table-column type="selection" width="55"> </el-table-column>
          <el-table-column prop="routingNo" label="工艺路线编号" width="120">
          </el-table-column>
          <el-table-column prop="partNo" label="零件编号" width="120">
          </el-table-column>
          <el-table-column
            prop="partName"
            label="零件名称"
            show-overflow-tooltip
          >
          </el-table-column>
          <el-table-column prop="createTime" label="创建时间">
          </el-table-column>
        </el-table>
      </div>
    </div>
    <div slot="footer" class="dialog-footer">
      <el-button @click="innerVisible = false">取 消</el-button>
      <el-button
        type="primary"
        :disabled="isSubmit"
        v-thinclick="`selectRouting`"
        >确 定</el-button
      >
    </div>
  </el-dialog>
</template>
<script>
export default {
  props: {
    currshowlist: {
      type: Boolean,
      default: false
    },
    technologyRoutingList: {
      type: Array,
      default: () => {
        return []
      }
    }
  },
  data() {
    return {
      innerVisible: false,
      isSubmit: false,
      multipleSelection: []
    }
  },
  created() {},
  methods: {
    handleSelectionChange(val) {
      this.multipleSelection = val
    },
    selectRouting() {
      this.isSubmit = true
      this.innerVisible = false
      this.$emit('handleSelectionChange', this.multipleSelection)
      this.isSubmit = false
    }
  },
  watch: {
    currshowlist() {
      this.innerVisible = this.currshowlist
      if (this.currshowlist) {
        this.$nextTick(() => {
          //
        })
      }
    }
  },
  mounted() {}
}
</script>
<style scoped>
.technology-routing-dialog >>> .el-dialog__body {
  padding: 10px 20px 10px 20px;
}
</style>