Merge branch 'develop' of ssh://code.linyikj.com.cn:2222/pay/pay-company into develop
All checks were successful
Build and Push Docker Image / build (push) Successful in 4m32s
All checks were successful
Build and Push Docker Image / build (push) Successful in 4m32s
* 'develop' of ssh://code.linyikj.com.cn:2222/pay/pay-company: fix:客户导入、员工创建初始密码 # Conflicts: # src/gen/Enums.ts
This commit is contained in:
commit
a1de697f9d
@ -18,8 +18,8 @@ export default defineConfig({
|
|||||||
proxy: {
|
proxy: {
|
||||||
'/api/': {
|
'/api/': {
|
||||||
target: 'http://10.39.13.78:8001/',
|
target: 'http://10.39.13.78:8001/',
|
||||||
// target: 'https://test-admin.linyikj.com.cn/',
|
// target: 'https://test-company.linyikj.com.cn/',
|
||||||
// target: 'https://admin.linyikj.com.cn/',
|
// target: 'https://company.linyikj.com.cn/',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: { '^': '' },
|
pathRewrite: { '^': '' },
|
||||||
},
|
},
|
||||||
|
|||||||
5
src/gen/ApiTypes.d.ts
vendored
5
src/gen/ApiTypes.d.ts
vendored
@ -196,6 +196,9 @@ declare namespace ApiTypes {
|
|||||||
"id": number; // id
|
"id": number; // id
|
||||||
"is_contact": boolean; // 是否是常用联系人
|
"is_contact": boolean; // 是否是常用联系人
|
||||||
};
|
};
|
||||||
|
type Import = {
|
||||||
|
"upload_file"?: mimes:xlsx,xls; // 上传的时候必填文件
|
||||||
|
};
|
||||||
}
|
}
|
||||||
namespace HouseRegisters {
|
namespace HouseRegisters {
|
||||||
type List = {
|
type List = {
|
||||||
@ -1055,7 +1058,7 @@ declare namespace ApiTypes {
|
|||||||
}
|
}
|
||||||
namespace CompanyProjectReceiptAccounts {
|
namespace CompanyProjectReceiptAccounts {
|
||||||
type List = {
|
type List = {
|
||||||
"asset_projects_id"?: number; // 所属项目id,[ref:asset_projects]
|
"projects_id"?: number; // 所属项目id,[ref:asset_projects]
|
||||||
};
|
};
|
||||||
type Store = {
|
type Store = {
|
||||||
"projects_id": number; // 所属项目id,[ref:asset_projects]
|
"projects_id": number; // 所属项目id,[ref:asset_projects]
|
||||||
|
|||||||
@ -121,6 +121,12 @@ export const Apis = {
|
|||||||
ChangeIsContact(data: ApiTypes.Archive.HouseOccupants.ChangeIsContact): Promise<MyResponseType> {
|
ChangeIsContact(data: ApiTypes.Archive.HouseOccupants.ChangeIsContact): Promise<MyResponseType> {
|
||||||
return request('company/archive/house_occupants/change_is_contact', { data });
|
return request('company/archive/house_occupants/change_is_contact', { data });
|
||||||
},
|
},
|
||||||
|
Import(data?: ApiTypes.Archive.HouseOccupants.Import): Promise<MyResponseType> {
|
||||||
|
return request('company/archive/house_occupants/import', { data });
|
||||||
|
},
|
||||||
|
DownloadTemplate(): Promise<MyResponseType> {
|
||||||
|
return request('company/archive/house_occupants/download_template', {responseType: 'blob',});
|
||||||
|
},
|
||||||
},
|
},
|
||||||
HouseRegisters: {
|
HouseRegisters: {
|
||||||
List(data?: ApiTypes.Archive.HouseRegisters.List): Promise<MyResponseType> {
|
List(data?: ApiTypes.Archive.HouseRegisters.List): Promise<MyResponseType> {
|
||||||
|
|||||||
@ -282,7 +282,7 @@ export const BannersTypeEnum= {
|
|||||||
|
|
||||||
// 缓存类型
|
// 缓存类型
|
||||||
export const CacheTypeEnum= {
|
export const CacheTypeEnum= {
|
||||||
'MobilePhoneVerificationCode': {"text":"手机验证码","color":"#d249bd","value":"MobilePhoneVerificationCode"},
|
'MobilePhoneVerificationCode': {"text":"手机验证码","color":"#827a7d","value":"MobilePhoneVerificationCode"},
|
||||||
};
|
};
|
||||||
|
|
||||||
// CompaniesMerchantTypeEnum
|
// CompaniesMerchantTypeEnum
|
||||||
@ -729,6 +729,7 @@ export const HouseRegistersTypeEnum= {
|
|||||||
'UpdateInfo': {"text":"修改信息","color":"#722ed1","value":"UpdateInfo"},
|
'UpdateInfo': {"text":"修改信息","color":"#722ed1","value":"UpdateInfo"},
|
||||||
'UpdatePhone': {"text":"修改电话","color":"#13c2c2","value":"UpdatePhone"},
|
'UpdatePhone': {"text":"修改电话","color":"#13c2c2","value":"UpdatePhone"},
|
||||||
'GoodsRelease': {"text":"物品放行","color":"#a0d911","value":"GoodsRelease"},
|
'GoodsRelease': {"text":"物品放行","color":"#a0d911","value":"GoodsRelease"},
|
||||||
|
'VisitorApplies': {"text":"来访申请","color":"#a0d911","value":"VisitorApplies"},
|
||||||
};
|
};
|
||||||
|
|
||||||
// HouseRegistersUsagePlanEnum
|
// HouseRegistersUsagePlanEnum
|
||||||
|
|||||||
@ -44,11 +44,11 @@ export default function Index({ title = '员工管理' }) {
|
|||||||
title="重置"
|
title="重置"
|
||||||
type="default"
|
type="default"
|
||||||
isConfirm={true}
|
isConfirm={true}
|
||||||
description={`确定要重置用户「${item.name}」的密码为「12345678」吗?`}
|
description={`确定要重置用户「${item.name}」的密码为「ly#123」吗?`}
|
||||||
onConfirm={() =>
|
onConfirm={() =>
|
||||||
Apis.Company.CompanyEmployees.ResetPassword({
|
Apis.Company.CompanyEmployees.ResetPassword({
|
||||||
id: item.id,
|
id: item.id,
|
||||||
password: '12345678',
|
password: 'ly#123',
|
||||||
}).then(() => action?.reload())
|
}).then(() => action?.reload())
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -36,7 +36,7 @@ export default function Create(props: MyBetaModalFormProps) {
|
|||||||
...values,
|
...values,
|
||||||
companies_id: values?.companies_id || props?.item?.id,
|
companies_id: values?.companies_id || props?.item?.id,
|
||||||
// type: CompanyEmployeesTypeEnum.External.value,
|
// type: CompanyEmployeesTypeEnum.External.value,
|
||||||
password: '12345678',
|
password: 'ly#123',
|
||||||
organizations_id:
|
organizations_id:
|
||||||
values?.organizations_id?.[values.organizations_id.length - 1],
|
values?.organizations_id?.[values.organizations_id.length - 1],
|
||||||
})
|
})
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
MyButtons,
|
MyButtons,
|
||||||
MyColumns,
|
MyColumns,
|
||||||
|
MyImportModal,
|
||||||
MyPageContainer,
|
MyPageContainer,
|
||||||
MyProTableProps,
|
MyProTableProps,
|
||||||
} from '@/common';
|
} from '@/common';
|
||||||
@ -31,17 +32,17 @@ export default function Index({ title = '房屋档案' }) {
|
|||||||
request={async (params, sort) =>
|
request={async (params, sort) =>
|
||||||
MyProTableProps.request(params, sort, Apis.Asset.AssetHouses.List)
|
MyProTableProps.request(params, sort, Apis.Asset.AssetHouses.List)
|
||||||
}
|
}
|
||||||
// toolBarRender={(action) => [
|
toolBarRender={(action) => [
|
||||||
// <MyImportModal
|
<MyImportModal
|
||||||
// key="ImportHouse"
|
key="ImportHouse"
|
||||||
// title="批量导入"
|
title="批量导入"
|
||||||
// type="default"
|
type="default"
|
||||||
// size="middle"
|
size="middle"
|
||||||
// templateApi={Apis.Archive.HouseOccupants.DownloadTemplate}
|
templateApi={Apis.Archive.HouseOccupants.DownloadTemplate}
|
||||||
// importApi={Apis.Archive.HouseOccupants.Import}
|
importApi={Apis.Archive.HouseOccupants.Import}
|
||||||
// reload={action?.reload}
|
reload={action?.reload}
|
||||||
// />,
|
/>,
|
||||||
// ]}
|
]}
|
||||||
columns={[
|
columns={[
|
||||||
MyColumns.ID({ search: false }),
|
MyColumns.ID({ search: false }),
|
||||||
Selects?.AssetProjects({
|
Selects?.AssetProjects({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user