matchBillDetail.js 12.3 KB
"use strict";
const common_vendor = require("../../common/vendor.js");
const common_match = require("../../common/match.js");
require("../../common/request.js");
require("../../config.js");
require("../../common/login.js");
require("../../common/api.js");
if (!Array) {
  const _easycom_uni_list_item2 = common_vendor.resolveComponent("uni-list-item");
  const _easycom_uni_list2 = common_vendor.resolveComponent("uni-list");
  const _easycom_uni_collapse_item2 = common_vendor.resolveComponent("uni-collapse-item");
  const _easycom_uni_collapse2 = common_vendor.resolveComponent("uni-collapse");
  (_easycom_uni_list_item2 + _easycom_uni_list2 + _easycom_uni_collapse_item2 + _easycom_uni_collapse2)();
}
const _easycom_uni_list_item = () => "../../uni_modules/uni-list/components/uni-list-item/uni-list-item.js";
const _easycom_uni_list = () => "../../uni_modules/uni-list/components/uni-list/uni-list.js";
const _easycom_uni_collapse_item = () => "../../uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.js";
const _easycom_uni_collapse = () => "../../uni_modules/uni-collapse/components/uni-collapse/uni-collapse.js";
if (!Math) {
  (_easycom_uni_list_item + _easycom_uni_list + _easycom_uni_collapse_item + _easycom_uni_collapse)();
}
const _sfc_main = {
  __name: "matchBillDetail",
  setup(__props) {
    const data = common_vendor.reactive({
      billData: {},
      cpt: {},
      order: {},
      totalFee: {},
      billId: "",
      teamFee: {},
      otherFee: {},
      cptInsuranceFee: {},
      cptDepositFee: {},
      cptCompatibleFee: {},
      cptRegistrationFee: {}
    });
    const { billData, cpt, order, totalFee, billId, teamFee, otherFee, cptRegistrationFee, cptInsuranceFee, cptDepositFee, cptCompatibleFee } = common_vendor.toRefs(data);
    common_vendor.onLoad((option) => {
      console.log(option);
      if (option.id) {
        billId.value = option.id;
        getData(billId.value);
      }
    });
    function getData(n) {
      common_match.getMyOrderDetail(n).then((res) => {
        billData.value = res.data;
        cpt.value = res.data.cpt;
        order.value = res.data.order;
        totalFee.value = res.data.totalFee;
        teamFee.value = res.data.totalFee.teamFee;
        otherFee.value = res.data.totalFee.otherFee;
        cptInsuranceFee.value = res.data.totalFee.cptInsuranceFee;
        cptRegistrationFee.value = res.data.totalFee.cptRegistrationFee;
        cptDepositFee.value = res.data.totalFee.cptDepositFee;
        cptCompatibleFee.value = res.data.totalFee.cptCompatibleFee;
      });
    }
    return (_ctx, _cache) => {
      return common_vendor.e({
        a: common_vendor.t(common_vendor.unref(cpt).name),
        b: common_vendor.t(common_vendor.unref(order).id),
        c: common_vendor.t(common_vendor.unref(order).commitTime),
        d: common_vendor.unref(order).groupName
      }, common_vendor.unref(order).groupName ? {
        e: common_vendor.t(common_vendor.unref(order).groupName)
      } : {}, {
        f: common_vendor.unref(order).needPay != "0"
      }, common_vendor.unref(order).needPay != "0" ? common_vendor.e({
        g: common_vendor.unref(order).payType == "0"
      }, common_vendor.unref(order).payType == "0" ? {} : {}, {
        h: common_vendor.unref(order).payType == "1"
      }, common_vendor.unref(order).payType == "1" ? {} : {}, {
        i: common_vendor.unref(order).payType == "2"
      }, common_vendor.unref(order).payType == "2" ? {} : {}) : {}, {
        j: common_vendor.unref(order).needPay != "0"
      }, common_vendor.unref(order).needPay != "0" ? common_vendor.e({
        k: common_vendor.unref(order).payStatus == "0"
      }, common_vendor.unref(order).payStatus == "0" ? {} : {}, {
        l: common_vendor.unref(order).payStatus == "1"
      }, common_vendor.unref(order).payStatus == "1" ? {} : {}, {
        m: common_vendor.unref(order).payStatus == "2"
      }, common_vendor.unref(order).payStatus == "2" ? {} : {}, {
        n: common_vendor.unref(order).payStatus == "3"
      }, common_vendor.unref(order).payStatus == "3" ? {} : {}, {
        o: common_vendor.unref(order).payStatus == "4"
      }, common_vendor.unref(order).payStatus == "4" ? {} : {}, {
        p: common_vendor.unref(order).payStatus == "5"
      }, common_vendor.unref(order).payStatus == "5" ? {} : {}, {
        q: common_vendor.unref(order).payStatus == "6"
      }, common_vendor.unref(order).payStatus == "6" ? {} : {}) : {}, {
        r: common_vendor.unref(order).payTime
      }, common_vendor.unref(order).payTime ? {
        s: common_vendor.t(common_vendor.unref(order).payTime)
      } : {}, {
        t: common_vendor.unref(order).needPay == "0"
      }, common_vendor.unref(order).needPay == "0" ? {} : {}, {
        v: common_vendor.unref(order).needPay != "0"
      }, common_vendor.unref(order).needPay != "0" ? {
        w: common_vendor.t(common_vendor.unref(order).totalAmount)
      } : {}, {
        x: common_vendor.unref(order).totalPayAmount
      }, common_vendor.unref(order).totalPayAmount ? {
        y: common_vendor.t(common_vendor.unref(order).totalPayAmount)
      } : {}, {
        z: common_vendor.unref(order).payType == "2"
      }, common_vendor.unref(order).payType == "2" ? {} : {}, {
        A: common_vendor.unref(order).payType == "2"
      }, common_vendor.unref(order).payType == "2" ? {
        B: common_vendor.t(common_vendor.unref(billData).orgBankAccount),
        C: common_vendor.t(common_vendor.unref(billData).orgBankName),
        D: common_vendor.t(common_vendor.unref(billData).orgBankAccountNum)
      } : {}, {
        E: common_vendor.unref(order).needPay != "0"
      }, common_vendor.unref(order).needPay != "0" ? common_vendor.e({
        F: common_vendor.t(common_vendor.unref(cptRegistrationFee).name),
        G: common_vendor.unref(cptRegistrationFee).count
      }, common_vendor.unref(cptRegistrationFee).count ? {
        H: common_vendor.t(common_vendor.unref(cptRegistrationFee).count)
      } : {}, {
        I: common_vendor.t(common_vendor.unref(cptRegistrationFee).totalFee),
        J: common_vendor.f(common_vendor.unref(cptRegistrationFee).info, (m, index, i0) => {
          return {
            a: index,
            b: "84e98f5c-3-" + i0 + ",84e98f5c-2",
            c: common_vendor.p({
              border: false,
              thumb: m.personInfo.picUrl,
              ["thumb-size"]: "lg",
              title: m.personInfo.realName,
              ["right-text"]: "¥" + m.registrationFee
            })
          };
        }),
        K: common_vendor.p({
          border: false
        }),
        L: common_vendor.p({
          border: false,
          ["title-border"]: "none"
        }),
        M: common_vendor.unref(cptCompatibleFee).totalFee > "0"
      }, common_vendor.unref(cptCompatibleFee).totalFee > "0" ? common_vendor.e({
        N: common_vendor.t(common_vendor.unref(cptCompatibleFee).name),
        O: common_vendor.unref(cptCompatibleFee).count
      }, common_vendor.unref(cptCompatibleFee).count ? {
        P: common_vendor.t(common_vendor.unref(cptCompatibleFee).count)
      } : {}, {
        Q: common_vendor.t(common_vendor.unref(cptCompatibleFee).totalFee),
        R: common_vendor.f(common_vendor.unref(cptCompatibleFee).info, (m, index, i0) => {
          var _a, _b;
          return {
            a: index,
            b: "84e98f5c-7-" + i0 + ",84e98f5c-6",
            c: common_vendor.p({
              border: false,
              thumb: (_a = m.personInfo) == null ? void 0 : _a.picUrl,
              title: (_b = m.personInfo) == null ? void 0 : _b.realName,
              ["thumb-size"]: "lg",
              ["right-text"]: "¥" + m.compatibleFee
            })
          };
        }),
        S: common_vendor.p({
          border: false
        }),
        T: common_vendor.p({
          border: false,
          ["title-border"]: "none"
        })
      }) : {}, {
        U: common_vendor.unref(cptInsuranceFee).totalFee > "0"
      }, common_vendor.unref(cptInsuranceFee).totalFee > "0" ? common_vendor.e({
        V: common_vendor.t(common_vendor.unref(cptInsuranceFee).name),
        W: common_vendor.unref(cptInsuranceFee).count
      }, common_vendor.unref(cptInsuranceFee).count ? {
        X: common_vendor.t(common_vendor.unref(cptInsuranceFee).count)
      } : {}, {
        Y: common_vendor.t(common_vendor.unref(cptInsuranceFee).totalFee),
        Z: common_vendor.f(common_vendor.unref(cptInsuranceFee).info, (m, index, i0) => {
          return {
            a: m.buyFlag == "1",
            b: index,
            c: "84e98f5c-11-" + i0 + ",84e98f5c-10",
            d: common_vendor.p({
              border: false,
              ["right-text"]: "¥" + m.insuranceFee,
              title: m.personInfo.realName,
              note: m.personInfo.idcCode,
              thumb: m.personInfo.picUrl,
              ["thumb-size"]: "lg"
            })
          };
        }),
        aa: common_vendor.p({
          border: false
        }),
        ab: common_vendor.p({
          border: false,
          ["title-border"]: "none"
        })
      }) : {}, {
        ac: common_vendor.unref(otherFee).totalFee > "0"
      }, common_vendor.unref(otherFee).totalFee > "0" ? common_vendor.e({
        ad: common_vendor.t(common_vendor.unref(otherFee).name),
        ae: common_vendor.unref(otherFee).count
      }, common_vendor.unref(otherFee).count ? {
        af: common_vendor.t(common_vendor.unref(otherFee).count)
      } : {}, {
        ag: common_vendor.t(common_vendor.unref(otherFee).totalFee),
        ah: common_vendor.f(common_vendor.unref(otherFee).info, (m, index, i0) => {
          return {
            a: index,
            b: "84e98f5c-15-" + i0 + ",84e98f5c-14",
            c: common_vendor.p({
              border: false,
              thumb: m.personInfo.picUrl,
              ["thumb-size"]: "lg",
              title: m.personInfo.realName,
              ["right-text"]: "¥" + m.otherFee
            })
          };
        }),
        ai: common_vendor.p({
          border: false
        }),
        aj: common_vendor.p({
          border: false,
          ["title-border"]: "none"
        })
      }) : {}) : {}, {
        ak: common_vendor.unref(order).needPay != "0"
      }, common_vendor.unref(order).needPay != "0" ? common_vendor.e({
        al: common_vendor.unref(cptRegistrationFee).totalFee > 0
      }, common_vendor.unref(cptRegistrationFee).totalFee > 0 ? {
        am: common_vendor.t(common_vendor.unref(cptRegistrationFee).name),
        an: common_vendor.t(common_vendor.unref(cptRegistrationFee).totalFee)
      } : {}, {
        ao: common_vendor.unref(cptCompatibleFee).totalFee > 0
      }, common_vendor.unref(cptCompatibleFee).totalFee > 0 ? {
        ap: common_vendor.t(common_vendor.unref(cptCompatibleFee).name),
        aq: common_vendor.t(common_vendor.unref(cptCompatibleFee).totalFee)
      } : {}, {
        ar: common_vendor.unref(cptInsuranceFee).totalFee > 0
      }, common_vendor.unref(cptInsuranceFee).totalFee > 0 ? {
        as: common_vendor.t(common_vendor.unref(cptInsuranceFee).name),
        at: common_vendor.t(common_vendor.unref(cptInsuranceFee).totalFee)
      } : {}, {
        av: common_vendor.unref(otherFee).totalFee > 0
      }, common_vendor.unref(otherFee).totalFee > 0 ? {
        aw: common_vendor.t(common_vendor.unref(otherFee).name),
        ax: common_vendor.t(common_vendor.unref(otherFee).totalFee)
      } : {}, {
        ay: common_vendor.unref(teamFee).totalFee > 0
      }, common_vendor.unref(teamFee).totalFee > 0 ? {
        az: common_vendor.t(common_vendor.unref(teamFee).name),
        aA: common_vendor.t(common_vendor.unref(teamFee).totalFee)
      } : {}, {
        aB: common_vendor.unref(cptDepositFee).totalFee > 0
      }, common_vendor.unref(cptDepositFee).totalFee > 0 ? {
        aC: common_vendor.t(common_vendor.unref(cptDepositFee).name),
        aD: common_vendor.t(common_vendor.unref(cptDepositFee).totalFee)
      } : {}, {
        aE: common_vendor.unref(order).totalPayAmount
      }, common_vendor.unref(order).totalPayAmount ? {
        aF: common_vendor.t(common_vendor.unref(order).totalPayAmount)
      } : {}, {
        aG: common_vendor.t(common_vendor.unref(order).totalAmount)
      }) : {});
    };
  }
};
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-84e98f5c"], ["__file", "/Users/yangyang/project/j-mini/Venue/pages/usercenter/matchBillDetail.vue"]]);
wx.createPage(MiniProgramPage);