|
@@ -10,7 +10,7 @@
|
|
|
title="二维码"
|
|
title="二维码"
|
|
|
>
|
|
>
|
|
|
<div class="qr-code-container">
|
|
<div class="qr-code-container">
|
|
|
- <ele-qr-code :value="text" :size="120" />
|
|
|
|
|
|
|
+ <ele-qr-code :value="text" :size="140" />
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<template v-slot:footer>
|
|
<template v-slot:footer>
|
|
@@ -44,33 +44,29 @@ export default {
|
|
|
},
|
|
},
|
|
|
watch: {},
|
|
watch: {},
|
|
|
methods: {
|
|
methods: {
|
|
|
- open(row, codes) {
|
|
|
|
|
|
|
+ open(row, type) {
|
|
|
this.codeVisible=true
|
|
this.codeVisible=true
|
|
|
// let addr =
|
|
// let addr =
|
|
|
// '' + row.addressName ? row.addressName.replaceAll(',', '') : '';
|
|
// '' + row.addressName ? row.addressName.replaceAll(',', '') : '';
|
|
|
// addr += row.address ? row.address : '';
|
|
// addr += row.address ? row.address : '';
|
|
|
- const paramsStr = this.obj_to_str({
|
|
|
|
|
- name: encodeURIComponent(row.name),
|
|
|
|
|
- areaType: encodeURIComponent(warehouseDefinition_areaType.find(item=>item.code==row.extInfo[0].areaType)?.label),
|
|
|
|
|
- attribute: encodeURIComponent(warehouseDefinition_areaAttribute.find(item=>item.code==row.extInfo[0].attribute)?.label),
|
|
|
|
|
- code: encodeURIComponent(row.code),
|
|
|
|
|
- codeList: encodeURIComponent(codes),
|
|
|
|
|
- address: encodeURIComponent(row.extInfo[0].address),
|
|
|
|
|
- areaLength: encodeURIComponent(row.extInfo[0].areaLength),
|
|
|
|
|
- areaWidth: encodeURIComponent(row.extInfo[0].areaWidth),
|
|
|
|
|
- areaHigh: encodeURIComponent(row.extInfo[0].areaHigh),
|
|
|
|
|
- subCount: encodeURIComponent(row.subCount),
|
|
|
|
|
- remark: encodeURIComponent(row.remark),
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ // const paramsStr = this.obj_to_str({
|
|
|
|
|
+ // name: encodeURIComponent(row.name),
|
|
|
|
|
+ // // areaType: encodeURIComponent(warehouseDefinition_areaType.find(item=>item.code==row.extInfo[0].areaType)?.label),
|
|
|
|
|
+ // // attribute: encodeURIComponent(warehouseDefinition_areaAttribute.find(item=>item.code==row.extInfo[0].attribute)?.label),
|
|
|
|
|
+ // code: encodeURIComponent(row.code),
|
|
|
|
|
+ // // codeList: encodeURIComponent(codes),
|
|
|
|
|
+ // // address: encodeURIComponent(row.extInfo[0].address),
|
|
|
|
|
+ // // areaLength: encodeURIComponent(row.extInfo[0].areaLength),
|
|
|
|
|
+ // // areaWidth: encodeURIComponent(row.extInfo[0].areaWidth),
|
|
|
|
|
+ // // areaHigh: encodeURIComponent(row.extInfo[0].areaHigh),
|
|
|
|
|
+ // // subCount: encodeURIComponent(row.subCount),
|
|
|
|
|
+ // // remark: encodeURIComponent(row.remark),
|
|
|
|
|
+ // });
|
|
|
|
|
|
|
|
- console.log('二维码参数~~~', paramsStr);
|
|
|
|
|
- this.text =
|
|
|
|
|
- window.location.origin +
|
|
|
|
|
- '/wms/fromQRCode/designDrawing.html' +
|
|
|
|
|
- '?' +
|
|
|
|
|
- paramsStr;
|
|
|
|
|
|
|
+ console.log('二维码参数~~~', row, type);
|
|
|
|
|
+ this.text = `/pages/warehouse/hwQrcode/index?type=${type}&code=${row.code}&id=${row.id}`;
|
|
|
|
|
|
|
|
- console.log('二维码~~~', window.location.origin, this.text);
|
|
|
|
|
|
|
+ console.log('二维码~~~', this.text);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
obj_to_str(obj) {
|
|
obj_to_str(obj) {
|