zhengyiming
2025-03-25 b11477657850db16d375f4789439a61e4cfa1a4a
packages/components/src/views/electricBillRecharge/ElectricBillRechargeStep2.vue
@@ -153,6 +153,7 @@
  currentUserAccountId: '',
  remark: '',
  lifePayType: initLifePayType(props.isInWeChat, props.isInAlipay),
  name: '',
});
const { userAccountAllList, handleUserAccountChange } = useSetUserAccountBySelect({
@@ -170,6 +171,7 @@
    form.electricAccountType = currentUserAccountExtraProperties.electricAccountType;
    form.sixID = currentUserAccountExtraProperties.sixID;
    form.remark = currentUserAccount.remark;
    form.name = currentUserAccountExtraProperties.name ?? '';
    const electricParValueItem = electricParValueList.value.find(
      (x) => x.cityName === form.province
    );
@@ -213,6 +215,11 @@
const formRef = ref<any>(null);
function handleSubmit() {
  if (!form.name) {
    state.show = true;
    state.msg = '请先完善所属户主姓名';
    return;
  }
  if (!formRef.value) return;
  formRef.value.validate().then(({ valid, errors }: any) => {
    if (valid) {
@@ -228,10 +235,10 @@
}
const { state, invokeAliPay, invokeWeixinPay } = useSelectPayType({
  openId: toRef(props, 'openId'),
  isInWeChat: toRef(props, 'isInWeChat'),
  isH5: toRef(props, 'isH5'),
  appId: toRef(props, 'appId'),
  getOpenId: toRef(props, 'getOpenId'),
});
const currentOrderNo = ref('');
@@ -242,13 +249,14 @@
      userId: blLifeRecharge.accountModel.userId,
      channelId: blLifeRecharge.accountModel.channlesNum,
      productData: {
        parValue: props.isDev ? 0.1 : form.parValue,
        parValue: form.parValue,
        electricType: form.electricType,
        electricAccountType: form.electricAccountType,
        electricAccount: form.electricAccount,
        province: form.province,
        city: form.city,
        sixID: form.sixID,
        name: form.name,
      },
    };
    let res = await blLifeRecharge.services.createLifePayElectricOrder(params);