发票中心-合开发票的多条总金额计算
新增发票:发票内容的布局调整下划线间距调整
This commit is contained in:
		
							parent
							
								
									790a4d0ffd
								
							
						
					
					
						commit
						03b96c374b
					
				@ -29,7 +29,7 @@
 | 
			
		||||
						</view>
 | 
			
		||||
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;"></view>
 | 
			
		||||
					
 | 
			
		||||
					<u-form-item label="发票内容" prop="">
 | 
			
		||||
						<view class="typeBOx" style="width: 305px;justify-content: space-between;">
 | 
			
		||||
@ -49,7 +49,7 @@
 | 
			
		||||
						<!-- <image style="width: 38rpx;height: 38rpx;" src="/static/tips.png" mode=""></image> -->
 | 
			
		||||
						<!-- <u-input inputAlign="right" v-model="form.password"  placeholder="请输入密码" border="none"/> -->
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;"></view>
 | 
			
		||||
 | 
			
		||||
					<u-form-item label="抬头类型" prop="head_type">
 | 
			
		||||
						<view class="typeBOx" style="width: 219px;justify-content: flex-end;">
 | 
			
		||||
@ -75,41 +75,41 @@
 | 
			
		||||
						</view>
 | 
			
		||||
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;"></view>
 | 
			
		||||
 | 
			
		||||
					<u-form-item label="抬头名称" prop="invoice_header">
 | 
			
		||||
						<u-input inputAlign="right" v-model="form.invoice_header" placeholder="请输入抬头名称"
 | 
			
		||||
							border="none" />
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;" v-if="form.head_type == 'corporate' || form.head_type == ''"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;" v-if="form.head_type == 'corporate' || form.head_type == ''"></view>
 | 
			
		||||
					
 | 
			
		||||
					<u-form-item label="单位税号" prop="tax_id"
 | 
			
		||||
						v-if="form.head_type == 'corporate' || form.head_type == ''">
 | 
			
		||||
						<u-input inputAlign="right" v-model="form.tax_id" placeholder="请输入单位税号"
 | 
			
		||||
							border="none" />
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;" v-if="form.head_type == 'corporate' || form.head_type == ''"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;" v-if="form.head_type == 'corporate' || form.head_type == ''"></view>
 | 
			
		||||
					
 | 
			
		||||
					<u-form-item label="注册地址" prop="enterprise_address"
 | 
			
		||||
						v-if="form.head_type == 'corporate' || form.head_type == ''">
 | 
			
		||||
						<u-input inputAlign="right" v-model="form.enterprise_address" placeholder="必填"
 | 
			
		||||
							border="none" />
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;" v-if="form.head_type == 'corporate' || form.head_type == ''"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;" v-if="form.head_type == 'corporate' || form.head_type == ''"></view>
 | 
			
		||||
					
 | 
			
		||||
					<u-form-item label="注册电话" prop="enterprise_phone"
 | 
			
		||||
						v-if="form.head_type == 'corporate' || form.head_type == ''">
 | 
			
		||||
						<u-input inputAlign="right" v-model="form.enterprise_phone" type="number" placeholder="必填"
 | 
			
		||||
							border="none" />
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;" v-if="form.head_type == 'corporate' || form.head_type == ''"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;" v-if="form.head_type == 'corporate' || form.head_type == ''"></view>
 | 
			
		||||
					
 | 
			
		||||
					<u-form-item label="开户银行" prop="bank_deposit"
 | 
			
		||||
						v-if="form.head_type == 'corporate' || form.head_type == ''">
 | 
			
		||||
						<u-input inputAlign="right" v-model="form.bank_deposit" placeholder="必填"
 | 
			
		||||
							border="none" />
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;" v-if="form.head_type == 'corporate' || form.head_type == ''"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;" v-if="form.head_type == 'corporate' || form.head_type == ''"></view>
 | 
			
		||||
					
 | 
			
		||||
					<u-form-item label="银行账号" prop="bank_number"
 | 
			
		||||
						v-if="form.head_type == 'corporate' || form.head_type == ''">
 | 
			
		||||
@ -124,7 +124,8 @@
 | 
			
		||||
						<u-input inputAlign="right" v-model="form.invoice_reservation_phone" type="number"
 | 
			
		||||
							placeholder="请输入发票预留手机号" border="none" />
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;"></view>
 | 
			
		||||
					
 | 
			
		||||
					<u-form-item label="邮箱地址" prop="invoice_reservation_email">
 | 
			
		||||
						<u-input inputAlign="right" v-model="form.invoice_reservation_email"
 | 
			
		||||
							placeholder="请输入发票预留邮箱" border="none" />
 | 
			
		||||
 | 
			
		||||
@ -49,12 +49,12 @@
 | 
			
		||||
						</view>
 | 
			
		||||
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;"></view>
 | 
			
		||||
 | 
			
		||||
					<u-form-item label="发票内容" prop="">
 | 
			
		||||
						<view class="typeBOx" style="width: 296px;justify-content: space-between;">
 | 
			
		||||
						<view class="typeBOx" style="width: 219px;justify-content: space-between;">
 | 
			
		||||
							<view class="typeImgs" @click="explainShow = true">
 | 
			
		||||
								<image style="width: 44rpx;height: 44rpx;"
 | 
			
		||||
								<image style="width: 38rpx;height: 38rpx;"
 | 
			
		||||
									src="https://naweigetetest2.hschool.com.cn/miniapp/invoice/conRecord.png" mode="">
 | 
			
		||||
								</image>
 | 
			
		||||
							</view>
 | 
			
		||||
@ -69,7 +69,7 @@
 | 
			
		||||
						<!-- <image style="width: 38rpx;height: 38rpx;" src="/static/tips.png" mode=""></image> -->
 | 
			
		||||
						<!-- <u-input inputAlign="right" v-model="form.password"  placeholder="请输入密码" border="none"/> -->
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;"></view>
 | 
			
		||||
 | 
			
		||||
					<u-form-item label="抬头类型" prop="head_type">
 | 
			
		||||
						<view class="typeBOx" style="width: 219px;justify-content: flex-end;">
 | 
			
		||||
@ -95,7 +95,7 @@
 | 
			
		||||
						</view>
 | 
			
		||||
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;"></view>
 | 
			
		||||
 | 
			
		||||
					<u-form-item label="预设抬头" prop="">
 | 
			
		||||
						<view class="form_right" @click="openHeadShow()">
 | 
			
		||||
@ -112,30 +112,35 @@
 | 
			
		||||
							</view>
 | 
			
		||||
						</picker> -->
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;"></view>
 | 
			
		||||
 | 
			
		||||
					<u-form-item label="抬头名称" prop="invoice_header">
 | 
			
		||||
						<u-input inputAlign="right" v-model="form.invoice_header" placeholder="请输入抬头名称" border="none" />
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;" v-if="form.head_type == 'corporate'"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;" v-if="form.head_type == 'corporate'"></view>
 | 
			
		||||
					
 | 
			
		||||
					<u-form-item label="单位税号" prop="tax_id" v-if="form.head_type == 'corporate'">
 | 
			
		||||
						<u-input inputAlign="right" v-model="form.tax_id" placeholder="请输入单位税号" border="none" />
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;" v-if="form.head_type == 'corporate'"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;" v-if="form.head_type == 'corporate'"></view>
 | 
			
		||||
					
 | 
			
		||||
					<u-form-item label="注册地址" prop="enterprise_address" v-if="form.head_type == 'corporate'">
 | 
			
		||||
						<u-input inputAlign="right" style="width:400rpx" v-model="form.enterprise_address"
 | 
			
		||||
							placeholder="必填" border="none" />
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;" v-if="form.head_type == 'corporate'"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;" v-if="form.head_type == 'corporate'"></view>
 | 
			
		||||
					
 | 
			
		||||
					<u-form-item label="注册电话" prop="enterprise_phone" v-if="form.head_type == 'corporate'">
 | 
			
		||||
						<u-input inputAlign="right" v-model="form.enterprise_phone" type="number" placeholder="必填"
 | 
			
		||||
							border="none" />
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;" v-if="form.head_type == 'corporate'"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;" v-if="form.head_type == 'corporate'"></view>
 | 
			
		||||
					
 | 
			
		||||
					<u-form-item label="开户银行" prop="bank_deposit" v-if="form.head_type == 'corporate'">
 | 
			
		||||
						<u-input inputAlign="right" v-model="form.bank_deposit" placeholder="必填" border="none" />
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;" v-if="form.head_type == 'corporate'"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;" v-if="form.head_type == 'corporate'"></view>
 | 
			
		||||
					
 | 
			
		||||
					<u-form-item label="银行账号" prop="bank_number" v-if="form.head_type == 'corporate'">
 | 
			
		||||
						<u-input inputAlign="right" v-model="form.bank_number" type="number" placeholder="必填"
 | 
			
		||||
							border="none" />
 | 
			
		||||
@ -148,7 +153,8 @@
 | 
			
		||||
						<u-input inputAlign="right" v-model="form.invoice_reservation_phone" type="number"
 | 
			
		||||
							placeholder="请输入发票预留手机号" border="none" />
 | 
			
		||||
					</u-form-item>
 | 
			
		||||
					<view class="line-row" style="margin-top: 0;"></view>
 | 
			
		||||
					<view class="line-row" style="margin: 10rpx 0;"></view>
 | 
			
		||||
					
 | 
			
		||||
					<u-form-item label="邮箱地址" prop="invoice_reservation_email">
 | 
			
		||||
						<u-input inputAlign="right" v-model="form.invoice_reservation_email" placeholder="请输入发票预留邮箱"
 | 
			
		||||
							border="none" />
 | 
			
		||||
 | 
			
		||||
@ -401,7 +401,7 @@
 | 
			
		||||
				if (this.num > 1) {
 | 
			
		||||
					list1.forEach(e => {
 | 
			
		||||
						// if(e.payprice)
 | 
			
		||||
						this.totalPrice += e.payprice
 | 
			
		||||
						this.totalPrice = this.totalPrice + Number(e.payprice)
 | 
			
		||||
					})
 | 
			
		||||
				} else if (this.num > 1) {
 | 
			
		||||
					this.totalPrice = list1[0].payprice
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user