| | |
| | | title="铭牌" |
| | | :width="750" |
| | | :visible="visible" |
| | | @ok="handleOk" |
| | | @cancel="visible=false" |
| | | @cancel="handleCancel" |
| | | :maskClosable="false" |
| | | > |
| | | <table id="nameplateTable" border="1" cellpadding="12" cellspacing="0" align="center" width="80%"> |
| | |
| | | <tbody> |
| | | <tr> |
| | | <td rowspan="3"> |
| | | |
| | | <QrcodeVue :value="httpUrl"/> |
| | | </td> |
| | | <td>设备编号</td> |
| | | <td>{{ model.equipmentCode }}</td> |
| | |
| | | </tr> |
| | | |
| | | <tr> |
| | | <td rowspan="3">123123123123</td> |
| | | <td rowspan="3"> |
| | | <QrcodeVue :value="model.equipmentCode"/> |
| | | </td> |
| | | <td>出厂编号</td> |
| | | <td>{{ model.factoryNumber }}</td> |
| | | </tr> |
| | |
| | | </table> |
| | | |
| | | <template slot="footer"> |
| | | <a-button>关闭</a-button> |
| | | <a-button @click="handleCancel">关闭</a-button> |
| | | <a-button type="primary" v-print="'#nameplateTable'">打印</a-button> |
| | | </template> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import QrcodeVue from 'qrcode.vue' |
| | | |
| | | export default { |
| | | name: 'NameplateModal', |
| | | components: { }, |
| | | components: { QrcodeVue }, |
| | | data() { |
| | | return { |
| | | title: '铭牌', |
| | | visible: false, |
| | | disableSubmit: false, |
| | | model: {}, |
| | | url: {} |
| | | httpUrl: '' |
| | | } |
| | | }, |
| | | methods: { |
| | | handleOk() { |
| | | |
| | | handleCancel() { |
| | | this.visible = false |
| | | } |
| | | } |
| | | } |