16 lines
451 B
TypeScript
16 lines
451 B
TypeScript
import { useZxFwPricingStore, type ZxFwPricingField } from '@/pinia/zxFwPricing'
|
|
|
|
export type { ZxFwPricingField } from '@/pinia/zxFwPricing'
|
|
|
|
export const ZXFW_RELOAD_SERVICE_KEY = 'zxfw-main'
|
|
|
|
export const syncPricingTotalToZxFw = async (params: {
|
|
contractId: string
|
|
serviceId: string | number
|
|
field: ZxFwPricingField
|
|
value: number | null | undefined
|
|
}) => {
|
|
const store = useZxFwPricingStore()
|
|
return store.updatePricingField(params)
|
|
}
|