Merge branch 'master' of https://git.njzscloud.com/lzq/njzscloud-dispose-web
commit
1bcbc1c4cb
|
|
@ -6,176 +6,29 @@ import {
|
||||||
import Strings from '@/common/utils/strings.ts'
|
import Strings from '@/common/utils/strings.ts'
|
||||||
import Evt from '@/common/utils/evt.ts'
|
import Evt from '@/common/utils/evt.ts'
|
||||||
|
|
||||||
interface IdentityInfo {
|
|
||||||
identityCategory: string
|
|
||||||
|
|
||||||
customerId: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 组织信息 Id;cst_org.id
|
|
||||||
*/
|
|
||||||
orgId: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 客户姓名
|
|
||||||
*/
|
|
||||||
customerName: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 客户联系电话
|
|
||||||
*/
|
|
||||||
phone: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 结算方式,YueJie-->月结、YuE-->余额、XianFu-->现付
|
|
||||||
*/
|
|
||||||
settlementWay: string
|
|
||||||
|
|
||||||
settlementWayTxt: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 是否管理员;是否为当前的组织管理员,0-->否、1-->是
|
|
||||||
*/
|
|
||||||
manager: boolean
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 主体类型,GeTiHu-->个体户、QiYe-->企业
|
|
||||||
*/
|
|
||||||
orgCategory: string
|
|
||||||
orgCategoryTxt: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 统一社会信用代码
|
|
||||||
*/
|
|
||||||
uscc: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 组织名称
|
|
||||||
*/
|
|
||||||
orgName: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 营业执照
|
|
||||||
*/
|
|
||||||
businessLicense: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 营业执照有效期
|
|
||||||
*/
|
|
||||||
licenseStartTime: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 营业执照有效期
|
|
||||||
*/
|
|
||||||
licenseEndTime: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 法人名称
|
|
||||||
*/
|
|
||||||
legalRepresentative: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 法人身份证号
|
|
||||||
*/
|
|
||||||
idcard: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 法人身份证有效期
|
|
||||||
*/
|
|
||||||
idcardStartTime: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 法人身份证有效期
|
|
||||||
*/
|
|
||||||
idcardEndTime: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 法人身份证正面
|
|
||||||
*/
|
|
||||||
idcardFront: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 法人身份证反面
|
|
||||||
*/
|
|
||||||
idcardBack: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 省;代码
|
|
||||||
*/
|
|
||||||
province: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 市;代码
|
|
||||||
*/
|
|
||||||
city: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 区县;代码
|
|
||||||
*/
|
|
||||||
area: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 乡镇街道;代码
|
|
||||||
*/
|
|
||||||
town: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 省;名称
|
|
||||||
*/
|
|
||||||
provinceName: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 市;名称
|
|
||||||
*/
|
|
||||||
cityName: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 区县;名称
|
|
||||||
*/
|
|
||||||
areaName: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 乡镇街道;名称
|
|
||||||
*/
|
|
||||||
townName: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 详细地址
|
|
||||||
*/
|
|
||||||
address: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 经度
|
|
||||||
*/
|
|
||||||
lng: string
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 纬度
|
|
||||||
*/
|
|
||||||
lat: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export const useAppUserStore = defineStore('AppUser', () => {
|
export const useAppUserStore = defineStore('AppUser', () => {
|
||||||
const userId = ref<string | null>(null)
|
const userId = ref<string | null>(null)
|
||||||
const roles = ref<string[]>([])
|
const roles = ref<string[]>([])
|
||||||
const bizObj = ref<string | null>(null)
|
|
||||||
const nickname = ref<string | null>(null)
|
const nickname = ref<string | null>(null)
|
||||||
const avatar = ref<string | null>(null)
|
const avatar = ref<string | null>(null)
|
||||||
const token = ref<string | null>(null)
|
const token = ref<string | null>(null)
|
||||||
const tenantId = ref<string | null>(null)
|
const tenantId = ref<string | null>(null)
|
||||||
const tenantName = ref<string | null>(null)
|
const tenantName = ref<string | null>(null)
|
||||||
const currentIdentity = ref<IdentityInfo | null>(null)
|
const currentCustomerId = ref<string | null>(null)
|
||||||
const identities = ref<IdentityInfo[]>([])
|
const identities = ref<LoginTypes.IdentityInfo[]>([])
|
||||||
|
const currentIdentity = ref<LoginTypes.IdentityInfo | null>(null)
|
||||||
const isAuthenticated = computed(() => !Strings.isEmpty(token.value))
|
const isAuthenticated = computed(() => !Strings.isEmpty(token.value))
|
||||||
|
const hasCaiGou = ref<boolean>(false)
|
||||||
const isXiaoNa = computed(() => {
|
const isCaiGou = ref<boolean>(false)
|
||||||
return roles.value.includes('ROLE_XiaoNa')
|
const hasChanFei = ref<boolean>(false)
|
||||||
})
|
const isChanFei = ref<boolean>(false)
|
||||||
|
const hasSiJi = ref<boolean>(false)
|
||||||
const isAdmin = computed(() => {
|
const isSiJi = ref<boolean>(false)
|
||||||
return roles.value.includes('ROLE_ADMIN')
|
const hasXiaoNa = ref<boolean>(false)
|
||||||
})
|
const isXiaoNa = ref<boolean>(false)
|
||||||
|
const hasYunShu = ref<boolean>(false)
|
||||||
|
const isYunShu = ref<boolean>(false)
|
||||||
|
const isAdmin = ref<boolean>(false)
|
||||||
|
|
||||||
function $reset() {
|
function $reset() {
|
||||||
userId.value = null
|
userId.value = null
|
||||||
|
|
@ -184,8 +37,23 @@ export const useAppUserStore = defineStore('AppUser', () => {
|
||||||
token.value = null
|
token.value = null
|
||||||
tenantId.value = null
|
tenantId.value = null
|
||||||
tenantName.value = null
|
tenantName.value = null
|
||||||
bizObj.value = null
|
|
||||||
roles.value = []
|
roles.value = []
|
||||||
|
currentCustomerId.value = null
|
||||||
|
currentIdentity.value = null
|
||||||
|
identities.value = []
|
||||||
|
tenantId.value = null
|
||||||
|
tenantName.value = null
|
||||||
|
hasCaiGou.value = false
|
||||||
|
isCaiGou.value = false
|
||||||
|
hasChanFei.value = false
|
||||||
|
isChanFei.value = false
|
||||||
|
hasSiJi.value = false
|
||||||
|
isSiJi.value = false
|
||||||
|
hasXiaoNa.value = false
|
||||||
|
isXiaoNa.value = false
|
||||||
|
hasYunShu.value = false
|
||||||
|
isYunShu.value = false
|
||||||
|
isAdmin.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
Evt.on('logout', $reset)
|
Evt.on('logout', $reset)
|
||||||
|
|
@ -197,18 +65,27 @@ export const useAppUserStore = defineStore('AppUser', () => {
|
||||||
token,
|
token,
|
||||||
tenantId,
|
tenantId,
|
||||||
tenantName,
|
tenantName,
|
||||||
bizObj,
|
|
||||||
isAuthenticated,
|
isAuthenticated,
|
||||||
roles,
|
roles,
|
||||||
|
hasCaiGou,
|
||||||
|
isCaiGou,
|
||||||
|
hasChanFei,
|
||||||
|
isChanFei,
|
||||||
|
hasSiJi,
|
||||||
|
isSiJi,
|
||||||
|
hasXiaoNa,
|
||||||
isXiaoNa,
|
isXiaoNa,
|
||||||
|
hasYunShu,
|
||||||
|
isYunShu,
|
||||||
isAdmin,
|
isAdmin,
|
||||||
identities,
|
identities,
|
||||||
currentIdentity,
|
currentIdentity,
|
||||||
|
currentCustomerId,
|
||||||
$reset,
|
$reset,
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
persist: {
|
persist: {
|
||||||
pick: [ 'userId', 'avatar', 'nickname', 'token', 'tenantId', 'tenantName', 'bizObj' ],
|
pick: [ 'userId', 'avatar', 'nickname', 'token', 'tenantId', 'tenantName' ],
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,8 +45,21 @@ export function reloadUserInfo() {
|
||||||
avatar: data.avatar,
|
avatar: data.avatar,
|
||||||
tenantId: data.tenantId,
|
tenantId: data.tenantId,
|
||||||
tenantName: data.tenantName,
|
tenantName: data.tenantName,
|
||||||
bizObj: data.bizObj,
|
|
||||||
roles: data.roles,
|
roles: data.roles,
|
||||||
|
currentCustomerId: data.currentCustomerId,
|
||||||
|
identities: data.identities,
|
||||||
|
currentIdentity: data.currentIdentity,
|
||||||
|
hasCaiGou: data.hasCaiGou,
|
||||||
|
isCaiGou: data.isCaiGou,
|
||||||
|
hasChanFei: data.hasChanFei,
|
||||||
|
isChanFei: data.isChanFei,
|
||||||
|
hasSiJi: data.hasSiJi,
|
||||||
|
isSiJi: data.isSiJi,
|
||||||
|
hasXiaoNa: data.hasXiaoNa,
|
||||||
|
isXiaoNa: data.isXiaoNa,
|
||||||
|
hasYunShu: data.hasYunShu,
|
||||||
|
isYunShu: data.isYunShu,
|
||||||
|
isAdmin: data.isAdmin,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
@ -59,9 +72,7 @@ export function hasPermission(resSn?: string) {
|
||||||
|
|
||||||
export function changeIdentity(id: string) {
|
export function changeIdentity(id: string) {
|
||||||
return AppApi.changeIdentity(id)
|
return AppApi.changeIdentity(id)
|
||||||
.then(() => {
|
.then(reloadUserInfo)
|
||||||
return reloadUserInfo()
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function saveFile(r: Promise<R<{ content: Blob, filename: string }>>, defaultName: string = '下载的文件') {
|
export function saveFile(r: Promise<R<{ content: Blob, filename: string }>>, defaultName: string = '下载的文件') {
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,22 @@ import AIcon from '@/components/a-icon/AIcon.vue'
|
||||||
import { useAppPageStore } from '@/common/app/app-page-store.ts'
|
import { useAppPageStore } from '@/common/app/app-page-store.ts'
|
||||||
import { elIcons } from '@/common/element/element.ts'
|
import { elIcons } from '@/common/element/element.ts'
|
||||||
import ATabbar from '@/pages/a-frame/ATabbar.vue'
|
import ATabbar from '@/pages/a-frame/ATabbar.vue'
|
||||||
|
import { useAppUserStore } from '@/common/app/app-user-store.ts'
|
||||||
|
import { changeIdentity } from '@/common/app'
|
||||||
|
import Colls from '@/common/utils/colls.ts'
|
||||||
|
|
||||||
const appPageStore = useAppPageStore()
|
const appPageStore = useAppPageStore()
|
||||||
const isCollapse = ref(false)
|
const isCollapse = ref(false)
|
||||||
|
const changingIdentity = ref(false)
|
||||||
|
const appUserStore = useAppUserStore()
|
||||||
|
|
||||||
|
function changeIdentityHandle(val: string) {
|
||||||
|
changingIdentity.value = true
|
||||||
|
changeIdentity(val)
|
||||||
|
.finally(() => {
|
||||||
|
changingIdentity.value = false
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
Evt.emit('connect_ws')
|
Evt.emit('connect_ws')
|
||||||
|
|
@ -42,6 +54,19 @@ onUnmounted(() => {
|
||||||
<ElButton text>
|
<ElButton text>
|
||||||
<AIcon name="settings"/>
|
<AIcon name="settings"/>
|
||||||
</ElButton>
|
</ElButton>
|
||||||
|
<ElSelect
|
||||||
|
v-if="!Colls.isEmpty(appUserStore.identities)"
|
||||||
|
:class="{'change-identity-changing':changingIdentity}"
|
||||||
|
:disabled="changingIdentity"
|
||||||
|
:model-value="appUserStore.currentCustomerId"
|
||||||
|
:show-arrow="changingIdentity"
|
||||||
|
:suffix-icon="changingIdentity?elIcons.Loading:elIcons.ArrowDown"
|
||||||
|
class="change-identity" @change="changeIdentityHandle">
|
||||||
|
<ElOption v-for="item in appUserStore.identities"
|
||||||
|
:key="item.identityCategory"
|
||||||
|
:label="item.identityCategoryTxt"
|
||||||
|
:value="item.customerId"/>
|
||||||
|
</ElSelect>
|
||||||
</div>
|
</div>
|
||||||
<AAvatar/>
|
<AAvatar/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -62,6 +87,15 @@ onUnmounted(() => {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
|
@keyframes el-select__icon-rotate {
|
||||||
|
0% {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.a-frame {
|
.a-frame {
|
||||||
height 100%
|
height 100%
|
||||||
width 100%;
|
width 100%;
|
||||||
|
|
@ -81,13 +115,35 @@ onUnmounted(() => {
|
||||||
|
|
||||||
& > section {
|
& > section {
|
||||||
height 100%
|
height 100%
|
||||||
//padding-right 20px
|
|
||||||
|
|
||||||
.a-frame-header {
|
.a-frame-header {
|
||||||
height 110px
|
height 110px
|
||||||
padding 0 10px 0 0
|
padding 0 10px 0 0
|
||||||
background-color: #FAFBFC;
|
background-color: #FAFBFC;
|
||||||
|
|
||||||
|
.change-identity {
|
||||||
|
width: 120px
|
||||||
|
|
||||||
|
:deep(.el-select__wrapper) {
|
||||||
|
box-shadow: unset !important
|
||||||
|
}
|
||||||
|
|
||||||
|
:deep(.el-select__wrapper.is-disabled) {
|
||||||
|
background-color unset !important
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
:deep(.el-select__icon) {
|
||||||
|
color var(--el-color-primary)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.change-identity-changing {
|
||||||
|
:deep(.el-select__icon) {
|
||||||
|
animation: el-select__icon-rotate 1s linear infinite;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
& > div:nth-child(1) {
|
& > div:nth-child(1) {
|
||||||
height 60px
|
height 60px
|
||||||
width 100%
|
width 100%
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import {
|
import {
|
||||||
get,
|
get,
|
||||||
post
|
post,
|
||||||
} from '@/common/utils/http-util.ts'
|
} from '@/common/utils/http-util.ts'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -19,4 +19,7 @@ export default {
|
||||||
del(ids: string[]) {
|
del(ids: string[]) {
|
||||||
return post('/station/del', ids)
|
return post('/station/del', ids)
|
||||||
},
|
},
|
||||||
|
listAll() {
|
||||||
|
return get<StationTypes.SearchStationResult[]>('/station/list_all')
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,17 @@
|
||||||
<ElFormItem v-else label="项目名称" prop="expenseItemName">
|
<ElFormItem v-else label="项目名称" prop="expenseItemName">
|
||||||
<ElInput v-model="formData.expenseItemName" placeholder="项目名称"/>
|
<ElInput v-model="formData.expenseItemName" placeholder="项目名称"/>
|
||||||
</ElFormItem>
|
</ElFormItem>
|
||||||
|
|
||||||
|
<ElFormItem v-if="appUserStore.isXiaoNa" label="站点" prop="stationId">
|
||||||
|
<ElSelect v-model="formData.stationId" clearable>
|
||||||
|
<ElOption
|
||||||
|
v-for="item in stations"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.stationName"
|
||||||
|
:value="item.id!"/>
|
||||||
|
</ElSelect>
|
||||||
|
</ElFormItem>
|
||||||
|
|
||||||
<ElFormItem label="计费策略" prop="expenseStrategy">
|
<ElFormItem label="计费策略" prop="expenseStrategy">
|
||||||
<ElRadioGroup v-model="formData.expenseStrategy">
|
<ElRadioGroup v-model="formData.expenseStrategy">
|
||||||
<ElRadio v-for="it in expenseStrategy" :key="'expenseStrategy'+it.val" :value="it.val" border>{{ it.txt }}</ElRadio>
|
<ElRadio v-for="it in expenseStrategy" :key="'expenseStrategy'+it.val" :value="it.val" border>{{ it.txt }}</ElRadio>
|
||||||
|
|
@ -86,6 +97,8 @@ import {
|
||||||
} from '@/pages/gds/goods/constants.ts'
|
} from '@/pages/gds/goods/constants.ts'
|
||||||
import { expenseItemCategory } from '@/pages/fin/expense-item/constants.ts'
|
import { expenseItemCategory } from '@/pages/fin/expense-item/constants.ts'
|
||||||
import GoodsDropTable from '@/pages/gds/goods/GoodsDropTable.vue'
|
import GoodsDropTable from '@/pages/gds/goods/GoodsDropTable.vue'
|
||||||
|
import { useAppUserStore } from '@/common/app/app-user-store.ts'
|
||||||
|
import StationApi from '@/pages/cst/station/station-api.ts'
|
||||||
|
|
||||||
const props = withDefaults(defineProps<{
|
const props = withDefaults(defineProps<{
|
||||||
research?: () => void
|
research?: () => void
|
||||||
|
|
@ -93,6 +106,7 @@ const props = withDefaults(defineProps<{
|
||||||
research: () => {
|
research: () => {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
const appUserStore = useAppUserStore()
|
||||||
const formPanelIns = useTemplateRef<AFormPanelInstance>('formPanel')
|
const formPanelIns = useTemplateRef<AFormPanelInstance>('formPanel')
|
||||||
const status = ref<'add' | 'modify'>('add')
|
const status = ref<'add' | 'modify'>('add')
|
||||||
const formPanelProps = buildFormPanelProps<ExpenseItemTypes.SearchExpenseItemResult>({
|
const formPanelProps = buildFormPanelProps<ExpenseItemTypes.SearchExpenseItemResult>({
|
||||||
|
|
@ -115,11 +129,11 @@ const formPanelProps = buildFormPanelProps<ExpenseItemTypes.SearchExpenseItemRes
|
||||||
doSubmit(data) {
|
doSubmit(data) {
|
||||||
if (status.value === 'add') {
|
if (status.value === 'add') {
|
||||||
return ExpenseItemApi
|
return ExpenseItemApi
|
||||||
.add(data)
|
.add({...data, stationId: appUserStore.isXiaoNa ? data.stationId : undefined})
|
||||||
.then(props.research)
|
.then(props.research)
|
||||||
} else {
|
} else {
|
||||||
return ExpenseItemApi
|
return ExpenseItemApi
|
||||||
.modify(data)
|
.modify({...data, stationId: appUserStore.isXiaoNa ? data.stationId : undefined})
|
||||||
.then(props.research)
|
.then(props.research)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -144,8 +158,18 @@ const formPanelProps = buildFormPanelProps<ExpenseItemTypes.SearchExpenseItemRes
|
||||||
watchEffect(() => {
|
watchEffect(() => {
|
||||||
formPanelProps.title = status.value === 'add' ? '新建收费项目' : '修改收费项目信息'
|
formPanelProps.title = status.value === 'add' ? '新建收费项目' : '修改收费项目信息'
|
||||||
})
|
})
|
||||||
|
const stations = ref<StationTypes.SearchStationResult[]>([])
|
||||||
defineExpose({
|
defineExpose({
|
||||||
open(data?: ExpenseItemTypes.SearchExpenseItemResult) {
|
open(data?: ExpenseItemTypes.SearchExpenseItemResult) {
|
||||||
|
if (appUserStore.isXiaoNa) {
|
||||||
|
StationApi.listAll()
|
||||||
|
.then(res => {
|
||||||
|
stations.value = res.data
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
stations.value = []
|
||||||
|
}
|
||||||
|
|
||||||
formPanelIns.value?.open(data?.id)
|
formPanelIns.value?.open(data?.id)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ declare global {
|
||||||
interface SearchExpenseItemParam extends G.PageParam {
|
interface SearchExpenseItemParam extends G.PageParam {
|
||||||
// Id
|
// Id
|
||||||
id?: string
|
id?: string
|
||||||
|
stationId?: string
|
||||||
// 归属用户 Id
|
// 归属用户 Id
|
||||||
userId?: string
|
userId?: string
|
||||||
// 归属客户 Id
|
// 归属客户 Id
|
||||||
|
|
@ -52,6 +53,7 @@ declare global {
|
||||||
id?: string
|
id?: string
|
||||||
// 归属用户 Id
|
// 归属用户 Id
|
||||||
userId?: string
|
userId?: string
|
||||||
|
stationId?: string
|
||||||
// 归属客户 Id
|
// 归属客户 Id
|
||||||
customerId?: string
|
customerId?: string
|
||||||
// 归属组织 Id
|
// 归属组织 Id
|
||||||
|
|
@ -97,6 +99,7 @@ declare global {
|
||||||
id?: string
|
id?: string
|
||||||
// 归属用户 Id
|
// 归属用户 Id
|
||||||
userId?: string
|
userId?: string
|
||||||
|
stationId?: string
|
||||||
// 归属客户 Id
|
// 归属客户 Id
|
||||||
customerId?: string
|
customerId?: string
|
||||||
// 归属组织 Id
|
// 归属组织 Id
|
||||||
|
|
@ -140,6 +143,7 @@ declare global {
|
||||||
interface ModifyExpenseItemParam {
|
interface ModifyExpenseItemParam {
|
||||||
// Id
|
// Id
|
||||||
id?: string
|
id?: string
|
||||||
|
stationId?: string
|
||||||
// 归属用户 Id
|
// 归属用户 Id
|
||||||
userId?: string
|
userId?: string
|
||||||
// 归属客户 Id
|
// 归属客户 Id
|
||||||
|
|
|
||||||
|
|
@ -14,10 +14,160 @@ declare global {
|
||||||
logo: string | null
|
logo: string | null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
interface IdentityInfo {
|
||||||
|
identityCategory: string
|
||||||
|
identityCategoryTxt: string
|
||||||
|
|
||||||
|
customerId: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组织信息 Id;cst_org.id
|
||||||
|
*/
|
||||||
|
orgId: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户姓名
|
||||||
|
*/
|
||||||
|
customerName: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户联系电话
|
||||||
|
*/
|
||||||
|
phone: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算方式,YueJie-->月结、YuE-->余额、XianFu-->现付
|
||||||
|
*/
|
||||||
|
settlementWay: string
|
||||||
|
|
||||||
|
settlementWayTxt: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 是否管理员;是否为当前的组织管理员,0-->否、1-->是
|
||||||
|
*/
|
||||||
|
manager: boolean
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主体类型,GeTiHu-->个体户、QiYe-->企业
|
||||||
|
*/
|
||||||
|
orgCategory: string
|
||||||
|
orgCategoryTxt: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 统一社会信用代码
|
||||||
|
*/
|
||||||
|
uscc: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 组织名称
|
||||||
|
*/
|
||||||
|
orgName: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 营业执照
|
||||||
|
*/
|
||||||
|
businessLicense: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 营业执照有效期
|
||||||
|
*/
|
||||||
|
licenseStartTime: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 营业执照有效期
|
||||||
|
*/
|
||||||
|
licenseEndTime: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 法人名称
|
||||||
|
*/
|
||||||
|
legalRepresentative: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 法人身份证号
|
||||||
|
*/
|
||||||
|
idcard: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 法人身份证有效期
|
||||||
|
*/
|
||||||
|
idcardStartTime: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 法人身份证有效期
|
||||||
|
*/
|
||||||
|
idcardEndTime: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 法人身份证正面
|
||||||
|
*/
|
||||||
|
idcardFront: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 法人身份证反面
|
||||||
|
*/
|
||||||
|
idcardBack: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 省;代码
|
||||||
|
*/
|
||||||
|
province: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 市;代码
|
||||||
|
*/
|
||||||
|
city: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 区县;代码
|
||||||
|
*/
|
||||||
|
area: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 乡镇街道;代码
|
||||||
|
*/
|
||||||
|
town: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 省;名称
|
||||||
|
*/
|
||||||
|
provinceName: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 市;名称
|
||||||
|
*/
|
||||||
|
cityName: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 区县;名称
|
||||||
|
*/
|
||||||
|
areaName: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 乡镇街道;名称
|
||||||
|
*/
|
||||||
|
townName: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 详细地址
|
||||||
|
*/
|
||||||
|
address: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 经度
|
||||||
|
*/
|
||||||
|
lng: string
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 纬度
|
||||||
|
*/
|
||||||
|
lat: string
|
||||||
|
}
|
||||||
|
|
||||||
interface UserDetail {
|
interface UserDetail {
|
||||||
id: string
|
id: string
|
||||||
nickname: string
|
nickname: string
|
||||||
bizObj?: string
|
|
||||||
avatar?: string
|
avatar?: string
|
||||||
tenantId?: string
|
tenantId?: string
|
||||||
tenantName?: string
|
tenantName?: string
|
||||||
|
|
@ -27,6 +177,19 @@ declare global {
|
||||||
setting: UserSetting
|
setting: UserSetting
|
||||||
currentCustomerId: string
|
currentCustomerId: string
|
||||||
currentOrgId: string
|
currentOrgId: string
|
||||||
|
hasCaiGou: boolean
|
||||||
|
isCaiGou: boolean
|
||||||
|
hasChanFei: boolean
|
||||||
|
isChanFei: boolean
|
||||||
|
hasSiJi: boolean
|
||||||
|
isSiJi: boolean
|
||||||
|
hasXiaoNa: boolean
|
||||||
|
isXiaoNa: boolean
|
||||||
|
hasYunShu: boolean
|
||||||
|
isYunShu: boolean
|
||||||
|
isAdmin: boolean
|
||||||
|
identities: IdentityInfo[]
|
||||||
|
currentIdentity: IdentityInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue