wupengfei
昨天 2500843dbffc841eeab2e0a91d735c56cb6ea357
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import type { InjectionKey, UnwrapNestedRefs, Ref } from 'vue';
import { inject } from 'vue';
import { UseStepperReturn } from 'senin-mini/hooks';
import { LifeRechargeConstants } from '@life-payment/core-vue';
 
type GasBillRechargeSteps = 'step1' | 'step2' | 'step3';
 
export interface GasBillRechargeContext
  extends UseStepperReturn<GasBillRechargeSteps, GasBillRechargeSteps[], GasBillRechargeSteps> {
  preSetForm: GasUserAccountExtraProperties;
}
 
export const GasBillRechargeContextKey: InjectionKey<GasBillRechargeContext> = Symbol(
  'GasBillRechargeContextKey'
);
 
export function useGasBillRechargeContext() {
  return inject(GasBillRechargeContextKey);
}
 
export type GasUserAccountExtraProperties = {
  // gasOrgType: LifeRechargeConstants.GasOrgCodeEnum;
  gasOrgType: string;
  // province: string;
  // city: string;
  gasAccount: string;
  remark: string;
  areaList: string[];
  name: string;
};