| | |
| | | v-model="dataForm.ledgerName" |
| | | placeholder="请选择账套" |
| | | border="none" |
| | | readonly |
| | | ></u--input> |
| | | </u-form-item> |
| | | <u-form-item |
| | |
| | | @click="handleCustomerNameOpen(2)" |
| | | > |
| | | <u--input |
| | | readonly |
| | | v-model="dataForm.customerAddressName" |
| | | border="none" |
| | | placeholder="请选择用煤客户" |
| | |
| | | checkboxDM:false, |
| | | ledgerList:[], |
| | | rules: { |
| | | ledgerName: [ |
| | | { |
| | | required: true, |
| | | message: '请选择账套', |
| | | trigger: ['blur', 'change'] |
| | | } |
| | | ], |
| | | inputDate: [ |
| | | { |
| | | required: true, |
| | |
| | | }, |
| | | init() { |
| | | this.payType() //收款类型 |
| | | this.getCustomer() |
| | | this.fetchCompTree() |
| | | //账套选择 |
| | | let compId = uni.getStorageSync('userInfo').compId; |
| | | this.$reqGet('getLedgerList',{compId:compId}).then(res => { |
| | |
| | | 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) { |
| | |
| | | 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() { |
| | | |
| | |
| | | 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 { |