819527061@qq.com
2023-12-01 c56e67c77e2a36c894346830c1ab1e6df36fe935
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
@@ -72,6 +73,7 @@
            @click="handleCustomerNameOpen(2)"
            >
               <u--input
            readonly
                  v-model="dataForm.customerAddressName"
                  border="none"
            placeholder="请选择用煤客户"
@@ -409,6 +411,13 @@
        checkboxDM:false,
            ledgerList:[],
            rules: {
          ledgerName: [
            {
              required: true,
              message: '请选择账套',
              trigger: ['blur', 'change']
            }
          ],
               inputDate: [
                  {
                     required: true,
@@ -462,6 +471,8 @@
      },
         init() {
        this.payType()  //收款类型
        this.getCustomer()
        this.fetchCompTree()
            //账套选择
            let compId = uni.getStorageSync('userInfo').compId;
            this.$reqGet('getLedgerList',{compId:compId}).then(res => {
@@ -539,11 +550,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 +599,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 +681,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 {