819527061@qq.com
2023-11-28 1c7b86f984498eab66968c8d9e9ece42634b96bb
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 {