Procházet zdrojové kódy

申请开票(增加备注)

gcz před 2 dny
rodič
revize
52326097b6
2 změnil soubory, kde provedl 21 přidání a 1 odebrání
  1. 15 1
      center/invoice.vue
  2. 6 0
      center/invoicedetails.vue

+ 15 - 1
center/invoice.vue

@@ -48,6 +48,12 @@
 					</view>
 					<u--input placeholder="请输入电子邮箱" border="surround" v-model="formData.email" ></u--input>
 				</view>
+				<view class="form-item remake">
+					<view class="til">
+						发票备注  
+					</view>
+					<u--input placeholder="此内容会回显至电子发票的备注中,请谨慎填写" border="surround" v-model="formData.remark" ></u--input>
+				</view>
 			</view>
 		</view>
 		<view class="page-bottom">
@@ -77,7 +83,8 @@
 				formData:{
 					name:'',
 					creditCode :'',
-					email:''
+					email:'',
+					remark:''
 				},
 				invoiceLine:'',
 				showInvoiceLine:false,
@@ -141,6 +148,7 @@
 						this.formData.creditCode = handlerType2.creditCode||null;
 						this.formData.email = handlerType2.email||null;
 						this.formData.invoiceLine = this.invoiceLine||null;
+						this.formData.remark = handlerType2.invoiceRemark||null;
 						if(this.formData.invoiceLine=='bs'){
 							this.invoiceLineName = '数电专票'
 						}else if(this.formData.invoiceLine=='pc'){
@@ -149,6 +157,7 @@
 					}else{
 						this.formData.name = handlerType1.name||null;
 						this.formData.email = handlerType1.email||null;
+						this.formData.remark = handlerType1.invoiceRemark||null;
 					}
 				}
 			},
@@ -166,6 +175,7 @@
 				let params = {
 					orderId:this.orderId,
 					invoiceAmount:this.invoiceInfo.invoiceAmount,
+					remark:this.formData.remark,
 					invoiceHandler:{
 						handlerType:this.tabsCurrent===0?2:1,
 						name:this.formData.name,
@@ -215,6 +225,10 @@
 				color: #EF0E0E;
 			}
 		}
+		::v-deep .input-placeholder{
+			color: #EF0E0E!important;
+			font-size: 24rpx;
+		}
 	}
 	&.amount{
 		padding: 26rpx 32rpx;

+ 6 - 0
center/invoicedetails.vue

@@ -27,6 +27,12 @@
 						<text v-if="details.invoiceLine=='bs'">数电专票</text>
 					</view>
 				</view>
+				<view class="item u-flex">
+					<view class="left">发票备注</view>
+					<view class="con">
+						{{details.remark||'-'}}
+					</view>
+				</view>
 				<view class="item u-flex" v-if="details.errReason&&details.status==3">
 					<view class="left">开票失败原因</view>
 					<view class="con">