|
|
@@ -97,6 +97,15 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+ <div class="basic-details-title">
|
|
|
+ <span class="border-span">条码样例</span>
|
|
|
+ </div>
|
|
|
+ <div class="vue-qr">
|
|
|
+ <vue-qr
|
|
|
+ :text="config.value ? config.value : ''"
|
|
|
+ class="vueQrSize"
|
|
|
+ ></vue-qr>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-form>
|
|
|
@@ -119,8 +128,9 @@
|
|
|
import selectUpload from '@/components/selectUpload';
|
|
|
import print from '@/components/print';
|
|
|
import addComponent from './add.vue';
|
|
|
+ import VueQr from 'vue-qr';
|
|
|
export default {
|
|
|
- components: { selectUpload, print, addComponent },
|
|
|
+ components: { selectUpload, print, addComponent, VueQr },
|
|
|
data() {
|
|
|
return {
|
|
|
num: 1,
|
|
|
@@ -320,6 +330,14 @@
|
|
|
.page {
|
|
|
padding: 10px;
|
|
|
}
|
|
|
+ .vue-qr {
|
|
|
+ width: 200px;
|
|
|
+ height: 200px;
|
|
|
+ .vueQrSize {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ }
|
|
|
.page-title {
|
|
|
background: #fff;
|
|
|
font-size: 18px;
|