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
99
100
101
102
103
104
105
106
107
108
109
110
<template>
  <j-modal
    title="铭牌"
    :width="750"
    :visible="visible"
    @ok="handleOk"
    @cancel="visible=false"
    :maskClosable="false"
  >
    <table id="nameplateTable" border="1" cellpadding="12" cellspacing="0" align="center" width="80%">
      <thead>
      <tr>
        <th colspan="3">设备管理牌</th>
      </tr>
      </thead>
 
      <tbody>
      <tr>
        <td rowspan="3">
 
        </td>
        <td>设备编号</td>
        <td>{{ model.equipmentCode }}</td>
      </tr>
 
      <tr>
        <td>设备名称</td>
        <td>{{ model.equipmentName }}</td>
      </tr>
 
      <tr>
        <td>设备型号</td>
        <td>{{ model.equipmentModel }}</td>
      </tr>
 
      <tr>
        <td>设备管理</td>
        <td>使用部门</td>
        <td>{{ model.orgId_dictText }}</td>
      </tr>
 
      <tr>
        <td rowspan="3">123123123123</td>
        <td>出厂编号</td>
        <td>{{ model.factoryNumber }}</td>
      </tr>
 
      <tr>
        <td>设备管理员</td>
        <td>{{ model.equipmentManager_dictText }}</td>
      </tr>
 
      <tr>
        <td>安装位置</td>
        <td>{{ model.installationPosition }}</td>
      </tr>
 
      <tr>
        <td>MES</td>
        <td colspan="2" style="color: #f00;font-weight: bold;letter-spacing: 1px">非管理员勿动此铭牌</td>
      </tr>
      </tbody>
    </table>
 
    <template slot="footer">
      <a-button>关闭</a-button>
      <a-button type="primary" v-print="'#nameplateTable'">打印</a-button>
    </template>
  </j-modal>
</template>
 
<script>
export default {
  name: 'NameplateModal',
  components: {  },
  data() {
    return {
      title: '铭牌',
      visible: false,
      disableSubmit: false,
      model: {},
      url: {}
    }
  },
  methods: {
    handleOk() {
 
    }
  }
}
</script>
 
<style lang="less" scoped>
table {
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  color: #000;
  text-align: center;
 
  th {
    font-size: 28px;
    letter-spacing: 3px;
    padding: 20px;
  }
 
  td {
    font-size: 18px;
    width: 33%;
  }
}
</style>