Bläddra i källkod

联合丽格V1.0.2

zhengjinyi 2 år sedan
förälder
incheckning
5812f2a283

+ 12 - 10
src/main/resources/templates/supplier-center/order/detail.html

@@ -99,16 +99,18 @@
                             <div class="title-name">
                                 <p>{{  orderInvoice | setInvoiceText }}</p>
                             </div>
-                            <div class="order-item">
-                                <p>发票抬头:<span class="none" v-if="orderInvoice.type > 0">{{ orderInvoice.invoiceTitle ? orderInvoice.invoiceTitle : '无' }}</span></p>
-                                <p>单位税号:<span class="none" v-if="orderInvoice.type === 2 || orderInvoice.headingType === 1">{{ orderInvoice.corporationTaxNum ? orderInvoice.corporationTaxNum : '无' }}</span> </p>
-                                <p>注册地址:<span class="none" v-if="orderInvoice.type === 2 || orderInvoice.headingType === 1">{{ orderInvoice.registeredAddress ? orderInvoice.registeredAddress : '无' }}</span> </p>
-                            </div>
-                            <div class="order-item" v-if="orderInvoice.type === 2 || orderInvoice.headingType === 1">
-                                <p>注册电话:<span class="none">{{ orderInvoice.registeredPhone ? orderInvoice.registeredPhone : '无' }}</span></p>
-                                <p>开户银行:<span class="none">{{ orderInvoice.openBank ? orderInvoice.openBank : '无' }}</span></p>
-                                <p>银行账号:<span class="none">{{ orderInvoice.bankAccountNo ? orderInvoice.bankAccountNo : '无' }}</span></p>
-                            </div>
+                            <template v-if="orderInvoice">
+                                <div class="order-item">
+                                    <p>发票抬头:<span class="none" v-if="orderInvoice.type > 0">{{ orderInvoice.invoiceTitle ? orderInvoice.invoiceTitle : '无' }}</span></p>
+                                    <p>单位税号:<span class="none" v-if="orderInvoice.type === 2 || orderInvoice.headingType === 1">{{ orderInvoice.corporationTaxNum ? orderInvoice.corporationTaxNum : '无' }}</span> </p>
+                                    <p>注册地址:<span class="none" v-if="orderInvoice.type === 2 || orderInvoice.headingType === 1">{{ orderInvoice.registeredAddress ? orderInvoice.registeredAddress : '无' }}</span> </p>
+                                </div>
+                                <div class="order-item" v-if="orderInvoice.type === 2 || orderInvoice.headingType === 1">
+                                    <p>注册电话:<span class="none">{{ orderInvoice.registeredPhone ? orderInvoice.registeredPhone : '无' }}</span></p>
+                                    <p>开户银行:<span class="none">{{ orderInvoice.openBank ? orderInvoice.openBank : '无' }}</span></p>
+                                    <p>银行账号:<span class="none">{{ orderInvoice.bankAccountNo ? orderInvoice.bankAccountNo : '无' }}</span></p>
+                                </div>
+                            </template>
                         </div>
                     </div>
                     <div class="order-info" v-if="voucher.length > 0">

+ 12 - 10
src/main/resources/templates/user-center/order/detail.html

@@ -157,16 +157,18 @@
                                 <div class="order-item">
                                     <p>{{  orderInvoice | setInvoiceText }}</p>
                                 </div>
-                                <div class="order-item">
-                                    <p>发票抬头:<span class="none" v-if="orderInvoice.type > 0">{{ orderInvoice.invoiceTitle ? orderInvoice.invoiceTitle : '无' }}</span></p>
-                                    <p>单位税号:<span class="none" v-if="orderInvoice.type === 2 || orderInvoice.headingType === 1">{{ orderInvoice.corporationTaxNum ? orderInvoice.corporationTaxNum : '无' }}</span> </p>
-                                    <p>注册地址:<span class="none" v-if="orderInvoice.type === 2 || orderInvoice.headingType === 1">{{ orderInvoice.registeredAddress ? orderInvoice.registeredAddress : '无' }}</span> </p>
-                                </div>
-                                <div class="order-item" v-if="orderInvoice.type === 2 || orderInvoice.headingType === 1">
-                                    <p>注册电话:<span class="none">{{ orderInvoice.registeredPhone ? orderInvoice.registeredPhone : '无' }}</span></p>
-                                    <p>开户银行:<span class="none">{{ orderInvoice.openBank ? orderInvoice.openBank : '无' }}</span></p>
-                                    <p>银行账号:<span class="none">{{ orderInvoice.bankAccountNo ? orderInvoice.bankAccountNo : '无' }}</span></p>
-                                </div>
+                                <template v-if="orderInvoice">
+                                    <div class="order-item">
+                                        <p>发票抬头:<span class="none" v-if="orderInvoice.type > 0">{{ orderInvoice.invoiceTitle ? orderInvoice.invoiceTitle : '无' }}</span></p>
+                                        <p>单位税号:<span class="none" v-if="orderInvoice.type === 2 || orderInvoice.headingType === 1">{{ orderInvoice.corporationTaxNum ? orderInvoice.corporationTaxNum : '无' }}</span> </p>
+                                        <p>注册地址:<span class="none" v-if="orderInvoice.type === 2 || orderInvoice.headingType === 1">{{ orderInvoice.registeredAddress ? orderInvoice.registeredAddress : '无' }}</span> </p>
+                                    </div>
+                                    <div class="order-item" v-if="orderInvoice.type === 2 || orderInvoice.headingType === 1">
+                                        <p>注册电话:<span class="none">{{ orderInvoice.registeredPhone ? orderInvoice.registeredPhone : '无' }}</span></p>
+                                        <p>开户银行:<span class="none">{{ orderInvoice.openBank ? orderInvoice.openBank : '无' }}</span></p>
+                                        <p>银行账号:<span class="none">{{ orderInvoice.bankAccountNo ? orderInvoice.bankAccountNo : '无' }}</span></p>
+                                    </div>
+                                </template>
                             </div>
                         </div>
                         <div class="section-showInfo" v-if="voucherList.length > 0">