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) {
@@ -231,7 +238,7 @@
  isInWeChat: toRef(props, 'isInWeChat'),
  isH5: toRef(props, 'isH5'),
  appId: toRef(props, 'appId'),
  getOpenId: props.getOpenId,
  getOpenId: toRef(props, 'getOpenId'),
});
const currentOrderNo = ref('');
@@ -249,6 +256,7 @@
        province: form.province,
        city: form.city,
        sixID: form.sixID,
        name: form.name,
      },
    };
    let res = await blLifeRecharge.services.createLifePayElectricOrder(params);