| | |
| | | max-length="13" |
| | | /> |
| | | </NutFormItem> |
| | | <NutFormItem label="户主姓名" class="bole-form-item" prop="name" required> |
| | | <NutInput |
| | | v-model.trim="form.name" |
| | | class="bole-input-text" |
| | | placeholder="请填写户主姓名" |
| | | type="text" |
| | | /> |
| | | </NutFormItem> |
| | | <slot></slot> |
| | | </NutForm> |
| | | </template> |
| | |
| | | // city: string; |
| | | gasAccount: string; |
| | | areaList: string[]; |
| | | name: string; |
| | | }>('form'); |
| | | |
| | | const rules = reactive<FormRules>({ |
| | |
| | | areaList: [ |
| | | { required: true, message: '请选择所在城市', validator: FormValidator.validatorArray }, |
| | | ], |
| | | name: [{ required: true, message: '请填写户主姓名' }], |
| | | }); |
| | | |
| | | const formRef = ref<any>(null); |
| | |
| | | remark: '', |
| | | areaList: [] as string[], |
| | | lifePayType: initLifePayType(props.isInWeChat, props.isInAlipay), |
| | | name: '', |
| | | }); |
| | | |
| | | const { userAccountAllList, handleUserAccountChange } = useSetUserAccountBySelect({ |
| | |
| | | form.gasOrgType = currentUserAccount.operators; |
| | | |
| | | form.remark = currentUserAccount.remark; |
| | | form.name = currentUserAccountExtraProperties.name ?? ''; |
| | | const gasParValueItem = gasParValueList.value.find((x) => x.gasOrgCode === form.gasOrgType); |
| | | if (gasParValueItem && gasParValueItem.parValue.every((x) => Number(x) !== form.parValue)) { |
| | | form.parValue = 0; |
| | |
| | | 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) { |
| | |
| | | gasAccount: form.gasAccount, |
| | | province: form.areaList?.[0] ?? '', |
| | | city: form.areaList?.[1] ?? '', |
| | | name: form.name, |
| | | }, |
| | | }; |
| | | let res = await blLifeRecharge.services.createLifePayGasOrder(params); |
| | |
| | | gasAccount: string; |
| | | remark: string; |
| | | areaList: string[]; |
| | | name: string; |
| | | }; |
| | |
| | | <img :src="IconFreeDian" class="recharge-grid-item-icon" /> |
| | | <div class="discountTag">{{ lifePayElectricRate }}折</div> |
| | | </GridItem> |
| | | <!-- <GridItem class="recharge-grid-item" text="燃气" @click="emit('gasBillRecharge')"> |
| | | <GridItem class="recharge-grid-item" text="燃气" @click="emit('gasBillRecharge')"> |
| | | <img :src="IconFreeGas" class="recharge-grid-item-icon" /> |
| | | <div class="discountTag">{{ lifePayGasRate }}折</div> |
| | | </GridItem> --> |
| | | </GridItem> |
| | | </Grid> |
| | | </MainCell> |
| | | </template> |
| | |
| | | max-length="6" |
| | | /> |
| | | </NutFormItem> |
| | | <NutFormItem label="户主姓名" class="bole-form-item" prop="name" required> |
| | | <NutInput |
| | | v-model.trim="form.name" |
| | | class="bole-input-text" |
| | | placeholder="请填写户主姓名" |
| | | type="text" |
| | | /> |
| | | </NutFormItem> |
| | | <slot /> |
| | | </NutForm> |
| | | </template> |
| | |
| | | province: string; |
| | | city: string; |
| | | sixID: string; |
| | | name: string; |
| | | }>('form'); |
| | | |
| | | const { electricParValueList } = useGetElectricParValue(); |
| | |
| | | validator: FormValidator.validatorIDNumberSix, |
| | | }, |
| | | ], |
| | | name: [{ required: true, message: '请填写户主姓名' }], |
| | | }); |
| | | |
| | | const formRef = ref<any>(null); |
| | |
| | | currentUserAccountId: '', |
| | | remark: '', |
| | | lifePayType: initLifePayType(props.isInWeChat, props.isInAlipay), |
| | | name: '', |
| | | }); |
| | | |
| | | const { userAccountAllList, handleUserAccountChange } = useSetUserAccountBySelect({ |
| | |
| | | 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 |
| | | ); |
| | |
| | | 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) { |
| | |
| | | province: form.province, |
| | | city: form.city, |
| | | sixID: form.sixID, |
| | | name: form.name, |
| | | }, |
| | | }; |
| | | let res = await blLifeRecharge.services.createLifePayElectricOrder(params); |
| | |
| | | city: string; |
| | | sixID: string; |
| | | remark: string; |
| | | name: string; |
| | | }; |
| | |
| | | form.electricType = currentUserAccountExtraProperties.electricType; |
| | | form.electricAccountType = currentUserAccountExtraProperties.electricAccountType; |
| | | form.sixID = currentUserAccountExtraProperties.sixID; |
| | | form.name = currentUserAccountExtraProperties.name ?? ''; |
| | | form.remark = data.remark; |
| | | }, |
| | | enabled: computed(() => !!props.id), |
| | |
| | | city: '', |
| | | sixID: '', |
| | | remark: '', |
| | | name: '', |
| | | }); |
| | | |
| | | const formRef = ref<any>(null); |
| | |
| | | form.gasOrgType = data.operators as any; |
| | | |
| | | form.remark = data.remark; |
| | | form.name = currentUserAccountExtraProperties.name ?? ''; |
| | | }, |
| | | enabled: computed(() => !!props.id), |
| | | }); |
| | |
| | | gasAccount: '', |
| | | remark: '', |
| | | areaList: [] as string[], |
| | | name: '', |
| | | }); |
| | | |
| | | const formRef = ref<any>(null); |