|
@@ -1,9 +1,10 @@
|
|
|
import { shallowRef, reactive, computed } from 'vue'
|
|
import { shallowRef, reactive, computed } from 'vue'
|
|
|
import { useDataTable } from '@/hooks/datatable'
|
|
import { useDataTable } from '@/hooks/datatable'
|
|
|
-import { useLoginStore } from '@/stores'
|
|
|
|
|
|
|
+import { useLoginStore, useUserStore } from '@/stores'
|
|
|
import { queryUserReceiveInfo, userReceiveInfo, delUserReceiveInfo, userReceiveIsDefault } from '@/services/api/user'
|
|
import { queryUserReceiveInfo, userReceiveInfo, delUserReceiveInfo, userReceiveIsDefault } from '@/services/api/user'
|
|
|
import { getCertificateTypeList, getSCertificateTypeList } from '@/constants/certificate'
|
|
import { getCertificateTypeList, getSCertificateTypeList } from '@/constants/certificate'
|
|
|
|
|
|
|
|
|
|
+const { getSystemParamValue } = useUserStore()
|
|
|
const loginStore = useLoginStore()
|
|
const loginStore = useLoginStore()
|
|
|
|
|
|
|
|
export function useAddress() {
|
|
export function useAddress() {
|
|
@@ -35,6 +36,7 @@ export function useAddressForm(selectedRow?: Model.UserReceiveInfoRsp) {
|
|
|
const loading = shallowRef(false)
|
|
const loading = shallowRef(false)
|
|
|
const certificateTypeList = getCertificateTypeList()
|
|
const certificateTypeList = getCertificateTypeList()
|
|
|
const scertificateTypeList = getSCertificateTypeList()
|
|
const scertificateTypeList = getSCertificateTypeList()
|
|
|
|
|
+ const system_1010 = shallowRef(getSystemParamValue('1010') ?? '1')
|
|
|
|
|
|
|
|
const formData = reactive<Proto.UserReceiveInfoReq>({
|
|
const formData = reactive<Proto.UserReceiveInfoReq>({
|
|
|
ReceiveInfoId: 0,
|
|
ReceiveInfoId: 0,
|
|
@@ -118,5 +120,6 @@ export function useAddressForm(selectedRow?: Model.UserReceiveInfoRsp) {
|
|
|
addOrUpdate,
|
|
addOrUpdate,
|
|
|
deleteAddress,
|
|
deleteAddress,
|
|
|
updateAddressIsDefault,
|
|
updateAddressIsDefault,
|
|
|
|
|
+ system_1010
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|