Showing
4 changed files
with
41 additions
and
20 deletions
@@ -289,6 +289,12 @@ | @@ -289,6 +289,12 @@ | ||
289 | <div class="invoice-kind mes">服装</div> | 289 | <div class="invoice-kind mes">服装</div> |
290 | <button class="revise mes">修改 | 290 | <button class="revise mes">修改 |
291 | </div> | 291 | </div> |
292 | + <div class='invoice-upload hide'> | ||
293 | + <div class="invoice-upload-type"></div> | ||
294 | + <div class="invoice-upload-content"></div> | ||
295 | + <div class="invoice-upload-mobile"></div> | ||
296 | + <div class="invoice-upload-title"></div> | ||
297 | + </div> | ||
292 | </div> | 298 | </div> |
293 | </div> | 299 | </div> |
294 | 300 |
@@ -97,6 +97,25 @@ | @@ -97,6 +97,25 @@ | ||
97 | </div> | 97 | </div> |
98 | {{/ orderInfo}} | 98 | {{/ orderInfo}} |
99 | 99 | ||
100 | + <div class="pay-mode"> | ||
101 | + <p class="sub-title"> | ||
102 | + <span class="icon"></span> | ||
103 | + 发票信息 | ||
104 | + </p> | ||
105 | + <div class="content"> | ||
106 | + {{#if invoiceMode}} | ||
107 | + <div class="invoice-type"><p>发票类型:{{invoiceType}}</p> | ||
108 | + {{#if pdfUrl}}<a class="invoice-button" href="{{pdfUrl}}">电子发票下载</a> | ||
109 | + {{/if}} | ||
110 | + </div> | ||
111 | + <p>发票抬头:{{title}}</p> | ||
112 | + <p>发票内容:{{contentValue}}</p> | ||
113 | + {{^}} | ||
114 | + <p>暂不需要发票 | ||
115 | + {{/if}} | ||
116 | + </div> | ||
117 | + </div> | ||
118 | + | ||
100 | <div class="order-remark"> | 119 | <div class="order-remark"> |
101 | <p class="sub-title"> | 120 | <p class="sub-title"> |
102 | <span class="icon"></span> | 121 | <span class="icon"></span> |
@@ -123,25 +142,6 @@ | @@ -123,25 +142,6 @@ | ||
123 | </div> | 142 | </div> |
124 | {{/ noramlPayMode}} | 143 | {{/ noramlPayMode}} |
125 | 144 | ||
126 | - <div class="pay-mode"> | ||
127 | - <p class="sub-title"> | ||
128 | - <span class="icon"></span> | ||
129 | - 发票信息 | ||
130 | - </p> | ||
131 | - <div class="content"> | ||
132 | - {{#if invoiceMode}} | ||
133 | - <div class="invoice-type"><p>发票类型:{{invoiceType}}</p> | ||
134 | - {{#if pdfUrl}}<a class="invoice-button" href="{{pdfUrl}}">电子发票下载</a> | ||
135 | - {{/if}} | ||
136 | - </div> | ||
137 | - <p>发票抬头:{{title}}</p> | ||
138 | - <p>发票内容:{{contentValue}}</p> | ||
139 | - {{^}} | ||
140 | - <p>暂不需要发票 | ||
141 | - {{/if}} | ||
142 | - </div> | ||
143 | - </div> | ||
144 | - | ||
145 | {{# virtualPayMode}} | 145 | {{# virtualPayMode}} |
146 | <div class="pay-mode virtual-pay-mode"> | 146 | <div class="pay-mode virtual-pay-mode"> |
147 | <p class="sub-title"> | 147 | <p class="sub-title"> |
@@ -763,6 +763,10 @@ $('.to-play input.submit').click(function() { | @@ -763,6 +763,10 @@ $('.to-play input.submit').click(function() { | ||
763 | deliveryWayId = $('.select-express input[name="carriagegroup"]:checked').val(), | 763 | deliveryWayId = $('.select-express input[name="carriagegroup"]:checked').val(), |
764 | invoiceTitle = $('#piaodesc').val(), | 764 | invoiceTitle = $('#piaodesc').val(), |
765 | invoiceId = $('#piaotype').val(), | 765 | invoiceId = $('#piaotype').val(), |
766 | + invoiceType = $('.invoice-upload-type').html(), | ||
767 | + invoiceContent = $('.invoice-upload-content').html(), | ||
768 | + receiverMobile = $('.nvoice-upload-mobile').html(), | ||
769 | + invoiceTitle = $('.invoice-upload-title').html(), | ||
766 | paymentType = $('.pay-time-modify input[name="pay-type"]:checked').val(), | 770 | paymentType = $('.pay-time-modify input[name="pay-type"]:checked').val(), |
767 | paymentId = $('.pay-time-modify input[name="pay-type"]:checked').data('pay'), | 771 | paymentId = $('.pay-time-modify input[name="pay-type"]:checked').data('pay'), |
768 | remark = $('#notedesc').val(), | 772 | remark = $('#notedesc').val(), |
@@ -791,8 +795,10 @@ $('.to-play input.submit').click(function() { | @@ -791,8 +795,10 @@ $('.to-play input.submit').click(function() { | ||
791 | cartType: cartType, | 795 | cartType: cartType, |
792 | deliveryTimeId: deliveryTimeId, | 796 | deliveryTimeId: deliveryTimeId, |
793 | deliveryWayId: deliveryWayId, | 797 | deliveryWayId: deliveryWayId, |
798 | + invoiceType: invoiceType, | ||
799 | + invoiceContent: invoiceContent, | ||
800 | + receiverMobile: receiverMobile, | ||
794 | invoiceTitle: invoiceTitle, | 801 | invoiceTitle: invoiceTitle, |
795 | - invoiceId: invoiceId, | ||
796 | paymentId: paymentId, | 802 | paymentId: paymentId, |
797 | paymentType: paymentType, | 803 | paymentType: paymentType, |
798 | remark: remark, | 804 | remark: remark, |
@@ -880,16 +880,20 @@ function saveReceiptInfo() { | @@ -880,16 +880,20 @@ function saveReceiptInfo() { | ||
880 | var passInfoVerify = true, | 880 | var passInfoVerify = true, |
881 | receiptType, | 881 | receiptType, |
882 | receiptContent, | 882 | receiptContent, |
883 | + receiptContentId, | ||
883 | receiptMobile, | 884 | receiptMobile, |
884 | verifymobile, | 885 | verifymobile, |
885 | invoiceType, | 886 | invoiceType, |
886 | receiptTypeID; | 887 | receiptTypeID; |
888 | + invoiceTypeInt; | ||
887 | 889 | ||
888 | invoiceType = '个人'; | 890 | invoiceType = '个人'; |
889 | if ($eReceiptBtn.hasClass('receipt-type-selected')) { | 891 | if ($eReceiptBtn.hasClass('receipt-type-selected')) { |
890 | receiptType = "电子发票"; | 892 | receiptType = "电子发票"; |
893 | + invoiceTypeInt = '2'; | ||
891 | } else { | 894 | } else { |
892 | receiptType = "纸质发票"; | 895 | receiptType = "纸质发票"; |
896 | + invoiceTypeInt = '1'; | ||
893 | } | 897 | } |
894 | 898 | ||
895 | if (receiptTitle !== "个人") { | 899 | if (receiptTitle !== "个人") { |
@@ -920,6 +924,11 @@ function saveReceiptInfo() { | @@ -920,6 +924,11 @@ function saveReceiptInfo() { | ||
920 | $('.invoice-partment').html(invoiceType); | 924 | $('.invoice-partment').html(invoiceType); |
921 | $('.invoice-kind').html(receiptContent); | 925 | $('.invoice-kind').html(receiptContent); |
922 | 926 | ||
927 | + $('.invoice-upload-type').html(invoiceTypeInt); | ||
928 | + $('.invoice-upload-content').html(receiptContentId); | ||
929 | + $('.invoice-upload-mobile').html(receiptMobile); | ||
930 | + $('.invoice-upload-title').html(receiptTitle); | ||
931 | + | ||
923 | $receiptInfo.addClass('hide'); | 932 | $receiptInfo.addClass('hide'); |
924 | $('.invoice-content').removeClass('hide'); | 933 | $('.invoice-content').removeClass('hide'); |
925 | } | 934 | } |
-
Please register or login to post a comment