|
@@ -52,24 +52,24 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="info-item">
|
|
<div class="info-item">
|
|
|
<span class="info-label">数量:</span>
|
|
<span class="info-label">数量:</span>
|
|
|
- <span class="info-value">{{ qualityInfo.total || '-' }}</span>
|
|
|
|
|
|
|
+ <span class="info-value">{{ qualityInfo.total || '-' }}{{ qualityInfo.unit || '-' }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="info-item">
|
|
|
|
|
|
|
+ <!-- <div class="info-item">
|
|
|
<span class="info-label">请验日期:</span>
|
|
<span class="info-label">请验日期:</span>
|
|
|
<span class="info-value">{{ qualityInfo.pleaseVerifyDate || '-' }}</span>
|
|
<span class="info-value">{{ qualityInfo.pleaseVerifyDate || '-' }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="info-item">
|
|
<div class="info-item">
|
|
|
<span class="info-label">请验部门:</span>
|
|
<span class="info-label">请验部门:</span>
|
|
|
<span class="info-value">{{ qualityInfo.pleaseVerifyDepartment || '-' }}</span>
|
|
<span class="info-value">{{ qualityInfo.pleaseVerifyDepartment || '-' }}</span>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div> -->
|
|
|
<div class="info-item">
|
|
<div class="info-item">
|
|
|
<span class="info-label">报告日期:</span>
|
|
<span class="info-label">报告日期:</span>
|
|
|
<span class="info-value">{{ qualityInfo.reportDate || '-' }}</span>
|
|
<span class="info-value">{{ qualityInfo.reportDate || '-' }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="info-item">
|
|
|
|
|
|
|
+ <!-- <div class="info-item">
|
|
|
<span class="info-label">有效期:</span>
|
|
<span class="info-label">有效期:</span>
|
|
|
<span class="info-value">{{ qualityInfo.expirationDate || '-' }}</span>
|
|
<span class="info-value">{{ qualityInfo.expirationDate || '-' }}</span>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div> -->
|
|
|
<div class="info-item">
|
|
<div class="info-item">
|
|
|
<span class="info-label">检验依据:</span>
|
|
<span class="info-label">检验依据:</span>
|
|
|
<span class="info-value">{{ qualityInfo.inspectionBasis || '-' }}</span>
|
|
<span class="info-value">{{ qualityInfo.inspectionBasis || '-' }}</span>
|
|
@@ -103,11 +103,15 @@
|
|
|
<div class="images-grid">
|
|
<div class="images-grid">
|
|
|
<!-- <img class="detail-image" :src="detailImageSrc" alt="质检报告单"> -->
|
|
<!-- <img class="detail-image" :src="detailImageSrc" alt="质检报告单"> -->
|
|
|
<div v-if="template">
|
|
<div v-if="template">
|
|
|
- <div v-html="template"> </div>
|
|
|
|
|
|
|
+ <div class="report-template-container">
|
|
|
|
|
+ <div style="width: 800px;" v-html="template"></div>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- <browse v-else :url="fileUrl"></browse> -->
|
|
<!-- <browse v-else :url="fileUrl"></browse> -->
|
|
|
<div v-else class="report-template-container">
|
|
<div v-else class="report-template-container">
|
|
|
- <reportTemplate :templateInfo="this.qualityInfo"></reportTemplate>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- <reportTemplate :templateInfo="this.qualityInfo"></reportTemplate> -->
|
|
|
|
|
+ <component :is="reportTemplateHtml" :templateInfo="this.qualityInfo"></component>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -128,11 +132,13 @@
|
|
|
// import { getJmPrintViewUrl } from '@/components/jimureport//api.js';
|
|
// import { getJmPrintViewUrl } from '@/components/jimureport//api.js';
|
|
|
// import { getToken } from '@/utils/token-util';
|
|
// import { getToken } from '@/utils/token-util';
|
|
|
import reportTemplate from '@/views/traceability/traceabilityCode/reportTemplate.vue';
|
|
import reportTemplate from '@/views/traceability/traceabilityCode/reportTemplate.vue';
|
|
|
|
|
+import reportTemplateHt from '@/views/traceability/traceabilityCode/reportTemplate-ht.vue';
|
|
|
export default {
|
|
export default {
|
|
|
name: 'QualityTraceabilityPage',
|
|
name: 'QualityTraceabilityPage',
|
|
|
components: {
|
|
components: {
|
|
|
// browse,
|
|
// browse,
|
|
|
reportTemplate,
|
|
reportTemplate,
|
|
|
|
|
+ reportTemplateHt
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
@@ -146,6 +152,14 @@ export default {
|
|
|
template: '',
|
|
template: '',
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ computed: {
|
|
|
|
|
+ clientEnvironmentId() {
|
|
|
|
|
+ return this.$route.query.clientEnvironmentId || '0';
|
|
|
|
|
+ },
|
|
|
|
|
+ reportTemplateHtml() {
|
|
|
|
|
+ return this.clientEnvironmentId === '8' ? reportTemplateHt : reportTemplate;
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
async mounted() {
|
|
async mounted() {
|
|
|
console.log('路由参数:');
|
|
console.log('路由参数:');
|
|
|
console.log('路由参数:', this.$route.query);
|
|
console.log('路由参数:', this.$route.query);
|