From 1c7b86f984498eab66968c8d9e9ece42634b96bb Mon Sep 17 00:00:00 2001 From: 819527061@qq.com <123456> Date: 星期二, 28 十一月 2023 14:10:48 +0800 Subject: [PATCH] 收款明细页面及对接接口、详情页面 测试bug调整 --- pages/payment-form-data/payment-form-data.vue | 41 ++++++++++++++++++++++++++++++++++++++--- 1 files changed, 38 insertions(+), 3 deletions(-) diff --git a/pages/payment-form-data/payment-form-data.vue b/pages/payment-form-data/payment-form-data.vue index 07d7420..501c440 100644 --- a/pages/payment-form-data/payment-form-data.vue +++ b/pages/payment-form-data/payment-form-data.vue @@ -33,6 +33,7 @@ v-model="dataForm.ledgerName" placeholder="璇烽�夋嫨璐﹀" border="none" + readonly ></u--input> </u-form-item> <u-form-item @@ -409,6 +410,13 @@ checkboxDM:false, ledgerList:[], rules: { + ledgerName: [ + { + required: true, + message: '璇烽�夋嫨璐﹀', + trigger: ['blur', 'change'] + } + ], inputDate: [ { required: true, @@ -462,6 +470,8 @@ }, init() { this.payType() //鏀舵绫诲瀷 + this.getCustomer() + this.fetchCompTree() //璐﹀閫夋嫨 let compId = uni.getStorageSync('userInfo').compId; this.$reqGet('getLedgerList',{compId:compId}).then(res => { @@ -539,11 +549,10 @@ this.selCustomerType = t this.selectLevelShow = false; this.selectCustomerCompShow = false; - uni.showLoading({ - title: '鍔犺浇涓�...' - }); this.selectCustomerShow = true; this.selectCustomerData.current = 1; + }, + getCustomer() { //鑾峰彇瀹㈡埛淇℃伅 this.$reqGet('customer', this.selectCustomerData).then(res => { uni.hideLoading(); if (res.code == 0) { @@ -589,6 +598,23 @@ this.searchCustomerForm.compName = ''; this.searchCustomerForm.levelText = ''; this.selectCustomer(); + }, + // 閫夋嫨瀹㈡埛 + selectCustomer() { + this.selectLevelShow = false; + this.selectCustomerCompShow = false; + uni.showLoading({ + title: '鍔犺浇涓�...' + }); + this.selectCustomerShow = true; + this.selectCustomerData.current = 1; + this.$reqGet('customer', this.selectCustomerData).then(res => { + uni.hideLoading(); + if (res.code == 0) { + this.customerData = res.data.records; + this.customerDataAllNum = res.data.total; + } + }); }, selectCustomerOpen() { @@ -654,6 +680,15 @@ width: 100%; padding: 0 vww(10); box-sizing: border-box; + ::v-deep{ + .u-checkbox__icon-wrap{ + width: vww(16)!important; + height: vww(16)!important; + } + .u-checkbox{ + margin-bottom: 0!important; + } + } // 閫夋嫨瀹㈡埛寮规 .selectCustomerPopup { -- Gitblit v1.9.1