| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | <template> | 
					
						
							|  |  |  |  | 	<view class="content"> | 
					
						
							|  |  |  |  | 		<view class="theform"> | 
					
						
							|  |  |  |  | 			<u--form labelPosition="left" :model="dataForm" :rules="rules" ref="uForm"> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 				<u-form-item borderBottom label-width="200rpx" :label="'转出账户'" prop="pkAccountName" | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 					@click="showAmount = true; " ref="item1"> | 
					
						
							|  |  |  |  | 					<u--input v-model="dataForm.pkAccountName" disabled disabledColor="#ffffff" | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 						:placeholder="'请选择'" border="none"></u--input> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 					<u-icon slot="right" name="arrow-right"></u-icon> | 
					
						
							|  |  |  |  | 				</u-form-item> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 				<u-form-item label-width="200rpx" :label="'转出编号'" prop="memberCode" ref="item1"> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 					<u--input v-model="dataForm.memberCode" disabled disabledColor="#F5F5F5;" border="none"></u--input> | 
					
						
							|  |  |  |  | 				</u-form-item> | 
					
						
							|  |  |  |  | 				<u-form-item label-width="200rpx" label="" borderBottom ref="item1"> | 
					
						
							|  |  |  |  | 					<view class="contentye"> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 						<text style="color: rgba(153, 153, 153, 1);">{{'当前余额'}}:</text> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 						<text style="color: rgba(251, 48, 36, 1);">{{kzye}}</text> | 
					
						
							|  |  |  |  | 					</view> | 
					
						
							|  |  |  |  | 				</u-form-item> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 				<u-form-item label-width="200rpx" :label="'转出姓名'" prop="memberName" borderBottom ref="item1"> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 					<u--input v-model="dataForm.memberName" disabled disabledColor="#F5F5F5;" border="none"></u--input> | 
					
						
							|  |  |  |  | 				</u-form-item> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 				<u-form-item label-width="200rpx" :label="'接收编号'" prop="toMemberCode" borderBottom ref="item1"> | 
					
						
							|  |  |  |  | 					<u--input @blur='checkName' :placeholder="'请输入'" v-model="dataForm.toMemberCode" | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 						border="none"></u--input> | 
					
						
							|  |  |  |  | 				</u-form-item> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 				<u-form-item label-width="200rpx" :label="'接收姓名'" prop="toMemberName" borderBottom ref="item1"> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 					<u--input v-model="dataForm.toMemberName" disabled disabledColor="#F5F5F5;" | 
					
						
							|  |  |  |  | 						border="none"></u--input> | 
					
						
							|  |  |  |  | 				</u-form-item> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 				<u-form-item label-width="200rpx" :label="`${'转账金额'}(¥)`" prop="transferMoney" borderBottom | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 					ref="item1"> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 					<u--input v-model="dataForm.transferMoney" :placeholder="'请输入'" border="none"></u--input> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 				</u-form-item> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 				<u-form-item label-width="200rpx" :label="'二级密码'" prop="payPwd" borderBottom ref="item1"> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 					<template v-if="!ifeye"> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 						<u--input type='password' v-model="dataForm.payPwd" :placeholder="'请输入'" | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 							border="none"></u--input> | 
					
						
							|  |  |  |  | 						<image @click="ifeye=!ifeye" slot="right" style="width: 38rpx; | 
					
						
							|  |  |  |  | 								height: 25rpx;" src="../../../static/images/my_eye.png" mode=""></image> | 
					
						
							|  |  |  |  | 					</template> | 
					
						
							|  |  |  |  | 					<template v-if="ifeye"> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 						<u--input v-model="dataForm.payPwd" :placeholder="'请输入'" border="none"></u--input> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 						<image @click="ifeye=!ifeye" slot="right" style="width: 38rpx; | 
					
						
							|  |  |  |  | 								height: 30rpx;" src="../../../static/images/my_eye2.png" mode=""></image> | 
					
						
							|  |  |  |  | 					</template> | 
					
						
							|  |  |  |  | 				</u-form-item> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 				<u-form-item label-width="200rpx" :label="'备注'" prop="remarks" ref="item1"> | 
					
						
							|  |  |  |  | 					<u--input v-model="dataForm.remarks" :placeholder="'请输入'" border="none"></u--input> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 				</u-form-item> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 				<u-picker @cancel='showAmount=false' :show="showAmount" ref="uPicker" :columns="accountList" | 
					
						
							|  |  |  |  | 					@confirm="confirm" keyName='pkTransactionKeyVal'></u-picker> | 
					
						
							|  |  |  |  | 			</u--form> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 		</view> | 
					
						
							|  |  |  |  | 		<view class="btnbox"> | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 			<u-button class="subbtn" @click="submit">{{'确定'}}</u-button> | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 		</view> | 
					
						
							|  |  |  |  | 		<u-toast ref="uToast"></u-toast> | 
					
						
							|  |  |  |  | 	</view> | 
					
						
							|  |  |  |  | </template> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | <script> | 
					
						
							|  |  |  |  | 	import * as bal from "@/config/balance.js" | 
					
						
							|  |  |  |  | 	export default { | 
					
						
							|  |  |  |  | 		data() { | 
					
						
							|  |  |  |  | 			return { | 
					
						
							|  |  |  |  | 				showAmount: false, | 
					
						
							|  |  |  |  | 				dataForm: { | 
					
						
							|  |  |  |  | 					transferMoney: "", | 
					
						
							|  |  |  |  | 					payPwd: "", | 
					
						
							|  |  |  |  | 					remarks: "", | 
					
						
							|  |  |  |  | 					pkAccountName: "", | 
					
						
							|  |  |  |  | 					pkAccount: "", | 
					
						
							|  |  |  |  | 				}, | 
					
						
							|  |  |  |  | 				accountList: [], | 
					
						
							|  |  |  |  | 				rules: { | 
					
						
							|  |  |  |  | 					toMemberCode: [{ | 
					
						
							|  |  |  |  | 						type: 'string', | 
					
						
							|  |  |  |  | 						required: true, | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 						message: '请输入', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 						trigger: ['blur', 'change'] | 
					
						
							|  |  |  |  | 					}], | 
					
						
							|  |  |  |  | 					transferMoney: [{ | 
					
						
							|  |  |  |  | 						type: 'string', | 
					
						
							|  |  |  |  | 						required: true, | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 						message: '请输入', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 						trigger: ['blur', 'change'] | 
					
						
							|  |  |  |  | 					}], | 
					
						
							|  |  |  |  | 					payPwd: [{ | 
					
						
							|  |  |  |  | 						type: 'string', | 
					
						
							|  |  |  |  | 						required: true, | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 						message: '请输入', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 						trigger: ['blur', 'change'] | 
					
						
							|  |  |  |  | 					}], | 
					
						
							|  |  |  |  | 					pkAccountName: [{ | 
					
						
							|  |  |  |  | 						required: true, | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 						message: '请选择', | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 						trigger: ['change'] | 
					
						
							|  |  |  |  | 					}], | 
					
						
							|  |  |  |  | 				}, | 
					
						
							|  |  |  |  | 				widthDrwaData: {}, | 
					
						
							|  |  |  |  | 				ifeye: false, | 
					
						
							|  |  |  |  | 				userInfo: {}, | 
					
						
							|  |  |  |  | 				kzye: "0.00", | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 			} | 
					
						
							|  |  |  |  | 		}, | 
					
						
							|  |  |  |  | 		onLoad() { | 
					
						
							|  |  |  |  | 			this.getList() | 
					
						
							|  |  |  |  | 			this.userInfo = uni.getStorageSync('User') | 
					
						
							|  |  |  |  | 			this.zzMethods() | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 		}, | 
					
						
							|  |  |  |  | 		methods: { | 
					
						
							|  |  |  |  | 			zzMethods() { | 
					
						
							|  |  |  |  | 				if (this.userInfo.serviceCode) { | 
					
						
							|  |  |  |  | 					this.dataForm.memberCode = this.userInfo.serviceCode | 
					
						
							|  |  |  |  | 				} else { | 
					
						
							|  |  |  |  | 					this.dataForm.memberCode = this.userInfo.memberCode | 
					
						
							|  |  |  |  | 				} | 
					
						
							|  |  |  |  | 				bal.getTransferChineseName({ | 
					
						
							|  |  |  |  | 					memberCode: this.dataForm.memberCode | 
					
						
							|  |  |  |  | 				}).then( | 
					
						
							|  |  |  |  | 					(res) => { | 
					
						
							|  |  |  |  | 						if (res.code == 200) { | 
					
						
							|  |  |  |  | 							this.$set(this.dataForm, "memberName", res.memberName) | 
					
						
							|  |  |  |  | 						} | 
					
						
							|  |  |  |  | 					} | 
					
						
							|  |  |  |  | 				); | 
					
						
							|  |  |  |  | 			}, | 
					
						
							|  |  |  |  | 			getList() { | 
					
						
							|  |  |  |  | 				bal.getTransferAccount().then(res => { | 
					
						
							|  |  |  |  | 					this.accountList = [res.data] | 
					
						
							|  |  |  |  | 				}) | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 			}, | 
					
						
							|  |  |  |  | 			submit() { | 
					
						
							|  |  |  |  | 				this.$refs.uForm.validate().then(res => { | 
					
						
							|  |  |  |  | 					bal.addTransfer(this.dataForm).then(res => { | 
					
						
							|  |  |  |  | 						if (res.code == 200) { | 
					
						
							|  |  |  |  | 							this.$refs.uToast.show({ | 
					
						
							|  |  |  |  | 								message: res.msg, | 
					
						
							|  |  |  |  | 								type: 'success' | 
					
						
							|  |  |  |  | 							}) | 
					
						
							|  |  |  |  | 							setTimeout(() => { | 
					
						
							|  |  |  |  | 								uni.navigateBack() | 
					
						
							|  |  |  |  | 							}, 1000); | 
					
						
							|  |  |  |  | 						} | 
					
						
							|  |  |  |  | 					}) | 
					
						
							|  |  |  |  | 				}).catch(errors => { | 
					
						
							| 
									
										
										
										
											2025-04-01 21:35:18 +08:00
										 |  |  |  | 					uni.$u.toast('校验失败') | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 				}) | 
					
						
							|  |  |  |  | 			}, | 
					
						
							|  |  |  |  | 			confirm(e) { | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 				this.dataForm.pkAccountName = e.value[0].pkTransactionKeyVal | 
					
						
							|  |  |  |  | 				this.dataForm.pkAccount = e.value[0].pkId | 
					
						
							|  |  |  |  | 				this.showAmount = false | 
					
						
							|  |  |  |  | 				bal.getTransferMember({ | 
					
						
							|  |  |  |  | 					pkAccount: this.dataForm.pkAccount | 
					
						
							|  |  |  |  | 				}).then(res => { | 
					
						
							|  |  |  |  | 					this.kzye = res.data | 
					
						
							|  |  |  |  | 				}) | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 			}, | 
					
						
							|  |  |  |  | 			checkName() { | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 				bal.getTransferChineseName({ | 
					
						
							|  |  |  |  | 					memberCode: this.dataForm.toMemberCode | 
					
						
							|  |  |  |  | 				}).then( | 
					
						
							|  |  |  |  | 					(res) => { | 
					
						
							|  |  |  |  | 						if (res.code == 200) { | 
					
						
							|  |  |  |  | 							this.$set(this.dataForm, "toMemberName", res.memberName) | 
					
						
							|  |  |  |  | 						} | 
					
						
							|  |  |  |  | 					} | 
					
						
							|  |  |  |  | 				); | 
					
						
							|  |  |  |  | 			} | 
					
						
							|  |  |  |  | 		} | 
					
						
							|  |  |  |  | 	} | 
					
						
							|  |  |  |  | </script> | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | <style lang="scss" scoped> | 
					
						
							|  |  |  |  | 	.content { | 
					
						
							|  |  |  |  | 		background: #F2F2F2; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 		.theform { | 
					
						
							|  |  |  |  | 			margin-top: 6rpx; | 
					
						
							|  |  |  |  | 			background: #FFFFFF; | 
					
						
							|  |  |  |  | 			padding: 20rpx 23rpx 48rpx 23rpx; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 			.contentye { | 
					
						
							|  |  |  |  | 				font-size: 28rpx; | 
					
						
							|  |  |  |  | 				margin-left: 200rpx; | 
					
						
							|  |  |  |  | 				font-family: Source Han Sans CN; | 
					
						
							|  |  |  |  | 				font-weight: 400; | 
					
						
							|  |  |  |  | 			} | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 		} | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 		.btnbox { | 
					
						
							|  |  |  |  | 			margin-top: 38rpx; | 
					
						
							|  |  |  |  | 			padding: 0 20rpx; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 			.subbtn { | 
					
						
							| 
									
										
										
										
											2025-04-22 17:47:02 +08:00
										 |  |  |  | 				background: #005BAC; | 
					
						
							| 
									
										
										
										
											2025-03-23 09:29:40 +08:00
										 |  |  |  | 				border-radius: 46rpx; | 
					
						
							|  |  |  |  | 				font-size: 30rpx; | 
					
						
							|  |  |  |  | 				font-family: Source Han Sans CN; | 
					
						
							|  |  |  |  | 				font-weight: 400; | 
					
						
							|  |  |  |  | 				color: #FFFFFF; | 
					
						
							|  |  |  |  | 			} | 
					
						
							|  |  |  |  | 		} | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 	} | 
					
						
							|  |  |  |  | </style> |