|
|
@@ -21,8 +21,8 @@
|
|
|
</h2>
|
|
|
<h3 style="text-align: center">{{ $t("服务确认单") }}</h3>
|
|
|
<div class="flex">
|
|
|
- <p>{{ $t("日期") }}:{{ detail.createdate }}</p>
|
|
|
- <p>{{ $t("编号") }}:{{ detail.confirmationno }}</p>
|
|
|
+ <p>{{ $t("日期") }}:{{ detail.createdate || "--" }}</p>
|
|
|
+ <p>{{ $t("编号") }}:{{ detail.confirmationno || "--"}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<table
|
|
|
@@ -224,8 +224,8 @@
|
|
|
{{ $t("BZ/Q(EO)P38-02系统《E服务确认单》") }}
|
|
|
</h3>
|
|
|
<div class="flex">
|
|
|
- <p>{{ $t("日期") }}:{{ detail.createdate }}</p>
|
|
|
- <p>{{ $t("编号") }}:{{ detail.confirmationno }}</p>
|
|
|
+ <p>{{ $t("日期") }}:{{ detail.createdate || "--"}}</p>
|
|
|
+ <p>{{ $t("编号") }}:{{ detail.confirmationno || "--"}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<table
|
|
|
@@ -399,8 +399,8 @@
|
|
|
{{ $t("售后服务确认单") }}
|
|
|
</h3>
|
|
|
<div class="flex">
|
|
|
- <p>{{ $t("日期") }}:{{ detail.createdate }}</p>
|
|
|
- <p>{{ $t("编号") }}:{{ detail.confirmationno }}</p>
|
|
|
+ <p>{{ $t("日期") }}:{{ detail.createdate || "--"}}</p>
|
|
|
+ <p>{{ $t("编号") }}:{{ detail.confirmationno || "--"}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<table
|
|
|
@@ -489,8 +489,8 @@
|
|
|
<td colspan="5">
|
|
|
{{
|
|
|
detail.confirmationcontent[8]
|
|
|
- ? detail.confirmationcontent[8].treatment.confirm_value
|
|
|
- : ""
|
|
|
+ ? detail.confirmationcontent[8].treatment ? detail.confirmationcontent[8].treatment.confirm_value
|
|
|
+ : "" : ""
|
|
|
}}
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -499,9 +499,9 @@
|
|
|
<td colspan="5">
|
|
|
{{
|
|
|
detail.confirmationcontent[7]
|
|
|
- ? detail.confirmationcontent[7].nextTreatmentTime
|
|
|
+ ? detail.confirmationcontent[7].nextTreatmentTime ? detail.confirmationcontent[7].nextTreatmentTime
|
|
|
.confirm_value
|
|
|
- : ""
|
|
|
+ : "" : ""
|
|
|
}}
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -510,8 +510,8 @@
|
|
|
<td colspan="5">
|
|
|
{{
|
|
|
detail.confirmationcontent[9]
|
|
|
- ? detail.confirmationcontent[9].explain.confirm_value
|
|
|
- : ""
|
|
|
+ ? detail.confirmationcontent[9].explain ? detail.confirmationcontent[9].explain.confirm_value
|
|
|
+ : "" : ""
|
|
|
}}
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -559,8 +559,8 @@
|
|
|
{{ $t("BZ/Q(EO)P38-02系统《E服务确认单》") }}
|
|
|
</h3>
|
|
|
<div class="flex">
|
|
|
- <p>{{ $t("日期") }}:{{ detail.createdate }}</p>
|
|
|
- <p>{{ $t("编号") }}:{{ detail.confirmationno }}</p>
|
|
|
+ <p>{{ $t("日期") }}:{{ detail.createdate || "--"}}</p>
|
|
|
+ <p>{{ $t("编号") }}:{{ detail.confirmationno || "--"}}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<table
|
|
|
@@ -785,6 +785,7 @@ export default {
|
|
|
},
|
|
|
};
|
|
|
let res = await this.$api.requested(param);
|
|
|
+ console.log(res.data,'输出单据信息')
|
|
|
if (res.data.workorder.type == "安装测试") {
|
|
|
res.data.confirmationcontent.forEach((e) => {
|
|
|
Object.keys(e).map((key, index) => {
|
|
|
@@ -818,6 +819,7 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
} else {
|
|
|
+
|
|
|
res.data.confirmationcontent.forEach((e) => {
|
|
|
Object.keys(e).map((key, index) => {
|
|
|
this.text.descriptions4 += e[key].amount;
|