|
@@ -40,6 +40,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
+ import { parameterGetByCode } from '@/api/system/dictionary-data';
|
|
|
import QRCode from 'qrcode';
|
|
import QRCode from 'qrcode';
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
@@ -60,9 +61,22 @@
|
|
|
url: '',
|
|
url: '',
|
|
|
workOrderId: '',
|
|
workOrderId: '',
|
|
|
qrCodeUrl: '',
|
|
qrCodeUrl: '',
|
|
|
- QRvisible: false
|
|
|
|
|
|
|
+ QRvisible: false,
|
|
|
|
|
+ industryAttribute: ''
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ created() {
|
|
|
|
|
+ // 行业属性 0:通用行业;1:生物医药行业;2:电线电缆行业;
|
|
|
|
|
+ parameterGetByCode({
|
|
|
|
|
+ code: 'industry_attribute'
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ console.log(res.value, '77777');
|
|
|
|
|
+ if (res.value) {
|
|
|
|
|
+ console.log(res, '33333333');
|
|
|
|
|
+ this.industryAttribute = res.value
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
mounted() {},
|
|
mounted() {},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
@@ -71,7 +85,7 @@
|
|
|
this.workOrderId = workOrderId;
|
|
this.workOrderId = workOrderId;
|
|
|
|
|
|
|
|
this.qrCodeUrl =
|
|
this.qrCodeUrl =
|
|
|
- window.location.origin + `/traceability?id=${this.workOrderId}`;
|
|
|
|
|
|
|
+ window.location.origin + `/traceability?id=${this.workOrderId}&industry=${this.industryAttribute}`;
|
|
|
// this.qrCodeUrl = `http://192.168.1.22:9999/traceability?id=${this.workOrderId}`;
|
|
// this.qrCodeUrl = `http://192.168.1.22:9999/traceability?id=${this.workOrderId}`;
|
|
|
|
|
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|