Kaynağa Gözat

申请开票(增加备注)

gcz 3 gün önce
ebeveyn
işleme
b8ef1a3d9e
2 değiştirilmiş dosya ile 20 ekleme ve 0 silme
  1. 14 0
      center/invoice.vue
  2. 6 0
      center/invoicedetails.vue

+ 14 - 0
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">
@@ -79,6 +85,7 @@
 					creditCode :'',
 					email:'',
 					invoiceLine:'',
+					remark:''
 				},
 				invoiceLine:'',
 				showInvoiceLine:false,
@@ -138,6 +145,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'){
@@ -146,6 +154,7 @@
 					}else{
 						this.formData.name = handlerType1.name||null;
 						this.formData.email = handlerType1.email||null;
+						this.formData.remark = handlerType1.invoiceRemark||null;
 					}
 				}
 			},
@@ -153,6 +162,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,
@@ -212,6 +222,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">