diff --git a/web-admin-app/src/app/components/apply-asset-flow/asset-employee-apply/asset-employee-apply.component.ts b/web-admin-app/src/app/components/apply-asset-flow/asset-employee-apply/asset-employee-apply.component.ts index 0f73d43..2a6dd04 100644 --- a/web-admin-app/src/app/components/apply-asset-flow/asset-employee-apply/asset-employee-apply.component.ts +++ b/web-admin-app/src/app/components/apply-asset-flow/asset-employee-apply/asset-employee-apply.component.ts @@ -84,7 +84,7 @@ export class AssetEmployeeApplyComponent { values = { ...v, - applyDepartmentId: Number(v.applyDepartmentId?.[0]), + applyDepartmentId: Number(v.applyDepartmentId), } } return values diff --git a/web-admin-app/src/app/components/asset-business-allot-form/asset-business-allot-form.component.ts b/web-admin-app/src/app/components/asset-business-allot-form/asset-business-allot-form.component.ts index 99fbe1c..55542be 100644 --- a/web-admin-app/src/app/components/asset-business-allot-form/asset-business-allot-form.component.ts +++ b/web-admin-app/src/app/components/asset-business-allot-form/asset-business-allot-form.component.ts @@ -94,9 +94,9 @@ export class AssetBusinessAllotFormComponent { useUserId: v.useUserId?.[0], manager: v.manager?.[0], categoryId: v.categoryId?.[0], - ownCompanyId: v.ownCompanyId?.[0], + ownCompanyId: v.ownCompanyId, positionId: Number(v.positionId?.[0]), - useOrganizationId: Number(v.useOrganizationId?.[0]), + useOrganizationId: Number(v.useOrganizationId), assetIdList: v.assetIdList, } } diff --git a/web-admin-app/src/app/components/asset-business-borrow-form/asset-business-borrow-form.component.ts b/web-admin-app/src/app/components/asset-business-borrow-form/asset-business-borrow-form.component.ts index 6471843..d5ab953 100644 --- a/web-admin-app/src/app/components/asset-business-borrow-form/asset-business-borrow-form.component.ts +++ b/web-admin-app/src/app/components/asset-business-borrow-form/asset-business-borrow-form.component.ts @@ -89,9 +89,9 @@ export class AssetBusinessBorrowFormComponent { useUserId: v.useUserId?.[0], manager: v.manager?.[0], categoryId: v.categoryId?.[0], - ownCompanyId: v.ownCompanyId?.[0], + // ownCompanyId: v.ownCompanyId?.[0], positionId: Number(v.positionId?.[0]), - useOrganizationId: Number(v.useOrganizationId?.[0]), + // useOrganizationId: Number(v.useOrganizationId?.[0]), assetIdList: v.assetIdList, } } diff --git a/web-admin-app/src/app/components/asset-business-collection/asset-business-collection.component.ts b/web-admin-app/src/app/components/asset-business-collection/asset-business-collection.component.ts index 2fe593d..8b4f874 100644 --- a/web-admin-app/src/app/components/asset-business-collection/asset-business-collection.component.ts +++ b/web-admin-app/src/app/components/asset-business-collection/asset-business-collection.component.ts @@ -101,7 +101,7 @@ export class AssetBusinessCollectionComponent { categoryId: v.categoryId?.[0], ownCompanyId: v.ownCompanyId?.[0], positionId: Number(v.positionId?.[0]), - useOrganizationId: Number(v.useOrganizationId?.[0]), + // useOrganizationId: Number(v.useOrganizationId?.[0]), assetIdList: v.assetIdList, // assetIdList: typeof v.assetIdList === 'string' ? v.assetIdList : JSON.stringify(v.assetIdList), } diff --git a/web-admin-app/src/app/components/asset-business-return-form/asset-business-return-form.component.ts b/web-admin-app/src/app/components/asset-business-return-form/asset-business-return-form.component.ts index 7cc4f5f..af682cc 100644 --- a/web-admin-app/src/app/components/asset-business-return-form/asset-business-return-form.component.ts +++ b/web-admin-app/src/app/components/asset-business-return-form/asset-business-return-form.component.ts @@ -101,7 +101,7 @@ export class AssetBusinessReturnFormComponent { categoryId: v.categoryId?.[0], ownCompanyId: v.ownCompanyId?.[0], positionId: Number(v.positionId?.[0]), - useOrganizationId: Number(v.useOrganizationId?.[0]), + useOrganizationId: Number(v.useOrganizationId), assetIdList: v.assetIdList, } } diff --git a/web-admin-app/src/app/components/asset-business-transfer-form/asset-business-transfer-form.component.ts b/web-admin-app/src/app/components/asset-business-transfer-form/asset-business-transfer-form.component.ts index d3e25a6..d3be921 100644 --- a/web-admin-app/src/app/components/asset-business-transfer-form/asset-business-transfer-form.component.ts +++ b/web-admin-app/src/app/components/asset-business-transfer-form/asset-business-transfer-form.component.ts @@ -72,7 +72,7 @@ export class AssetBusinessTransferFormComponent { if (data) { this.formGroup.patchValue({ ...data, - + managerId: data._manager?.userId ? [data._manager?.userId] : [], useUserId: data._useUser?.userId ? [data._useUser?.userId] : [], positionId: data._position?.positionId + '', useOrganizationId: data._useOrganization?.organizationId + '', @@ -98,8 +98,8 @@ export class AssetBusinessTransferFormComponent { categoryId: v.categoryId?.[0], ownCompanyId: v.ownCompanyId?.[0], positionId: Number(v.positionId?.[0]), - useOrganizationId: Number(v.useOrganizationId?.[0]), - inUseOrganizationId: Number(v.inUseOrganizationId?.[0]), + useOrganizationId: Number(v.useOrganizationId), + inUseOrganizationId: Number(v.inUseOrganizationId), outUseOrganizationId: Number(v.outUseOrganizationId?.[0]), assetIdList: v.assetIdList, } diff --git a/web-admin-app/src/app/components/asset-category-select/asset-category-select.component.ts b/web-admin-app/src/app/components/asset-category-select/asset-category-select.component.ts index f38e36c..ba97931 100644 --- a/web-admin-app/src/app/components/asset-category-select/asset-category-select.component.ts +++ b/web-admin-app/src/app/components/asset-category-select/asset-category-select.component.ts @@ -55,7 +55,7 @@ export class AssetCategorySelectComponent implements ControlValueAccessor, OnIni this.api.getBasicCategoryTree().subscribe((res) => { this.originTreeData = res.body this.assetCategoryTree = Utils.buildTree(this.originTreeData, 'categoryId', 'categoryName') - console.log('this.assetCategoryTree', this.originTreeData, this.assetCategoryTree) + // console.log('this.assetCategoryTree', this.originTreeData, this.assetCategoryTree) }) } diff --git a/web-admin-app/src/app/components/asset-form/asset-form.component.ts b/web-admin-app/src/app/components/asset-form/asset-form.component.ts index d2b57f0..a9c574d 100644 --- a/web-admin-app/src/app/components/asset-form/asset-form.component.ts +++ b/web-admin-app/src/app/components/asset-form/asset-form.component.ts @@ -119,6 +119,7 @@ export class AssetFormComponent implements OnInit { patchValues() { const { value: data, preview } = this.data if (data) { + console.log('data', data) this.formGroup.patchValue({ ...data, useUserId: data._useUser?.userId ? [data._useUser?.userId] : [], @@ -141,14 +142,15 @@ export class AssetFormComponent implements OnInit { let values = null if (FormValidators.validateFormGroup(this.formGroup)) { const v = this.formGroup.getRawValue() + values = { ...v, useUserId: v.useUserId?.[0], manager: v.manager?.[0], - categoryId: v.categoryId?.[0], - ownCompanyId: v.ownCompanyId?.[0], + categoryId: v.categoryId, + ownCompanyId: v.ownCompanyId, positionId: v.positionId?.[0], - useOrganizationId: v.useOrganizationId?.[0], + useOrganizationId: v.useOrganizationId, responsiblePerson: v.responsiblePerson?.[0], } } diff --git a/web-admin-app/src/app/components/component-basic-category-tree/component-basic-category-tree.component.ts b/web-admin-app/src/app/components/component-basic-category-tree/component-basic-category-tree.component.ts index 50385cc..be46009 100644 --- a/web-admin-app/src/app/components/component-basic-category-tree/component-basic-category-tree.component.ts +++ b/web-admin-app/src/app/components/component-basic-category-tree/component-basic-category-tree.component.ts @@ -129,7 +129,9 @@ export class ComponentBasicCategoryTreeComponent { categoryName: '新分类', }) .subscribe((res) => { + this.expandedKeys.push(String(parentId)) this.initTree() + this.msg.success(res.desc) }) } diff --git a/web-admin-app/src/app/components/component-org-tree/component-org-tree.component.ts b/web-admin-app/src/app/components/component-org-tree/component-org-tree.component.ts index 591b13a..731eca2 100644 --- a/web-admin-app/src/app/components/component-org-tree/component-org-tree.component.ts +++ b/web-admin-app/src/app/components/component-org-tree/component-org-tree.component.ts @@ -154,6 +154,7 @@ export class ComponentOrgTreeComponent implements OnInit { onConfirm() { if (FormValidators.validateFormGroup(this.form)) { const { value } = this.form + this.expandedKeys.push(String(this.parentId)) this.api .saveOrg({ ...value, diff --git a/web-admin-app/src/app/components/org-select/org-select.component.ts b/web-admin-app/src/app/components/org-select/org-select.component.ts index fc4a5fe..e64fa54 100644 --- a/web-admin-app/src/app/components/org-select/org-select.component.ts +++ b/web-admin-app/src/app/components/org-select/org-select.component.ts @@ -70,7 +70,9 @@ export class OrgSelectComponent implements ControlValueAccessor, OnInit { onTouched = () => {} - onChange(v: NzSafeAny[]) {} + onChange(v: NzSafeAny[]) { + console.log('v2', v) + } writeValue(v: NzSafeAny): void { this.value = v diff --git a/web-admin-app/src/app/pages/fixed-asset/alert/alert-borrow/alert-borrow.component.html b/web-admin-app/src/app/pages/fixed-asset/alert/alert-borrow/alert-borrow.component.html index aca9648..524bc28 100644 --- a/web-admin-app/src/app/pages/fixed-asset/alert/alert-borrow/alert-borrow.component.html +++ b/web-admin-app/src/app/pages/fixed-asset/alert/alert-borrow/alert-borrow.component.html @@ -3,15 +3,26 @@ @switch (key) { - @case ('status') { - @switch (data) { - @case ('0') { - - } - @case ('1') { - - } - } + @case ('_useUser') { + {{ data?.userName ?? '-' }} + } + @case ('_warehouse') { + {{ data?.name ?? '-' }} + } + @case ('_position') { + {{ data?.name ?? '-' }} + } + @case ('_head') { + {{ data?.userName ?? '-' }} + } + @case ('_ownCompany') { + {{ data?.organizationName ?? '-' }} + } + @case ('_useOrganization') { + {{ data?.organizationName ?? '-' }} + } + @case ('_category') { + {{ data?.categoryName ?? '-' }} } @default { {{ data }} diff --git a/web-admin-app/src/app/pages/fixed-asset/alert/alert-borrow/alert-borrow.component.ts b/web-admin-app/src/app/pages/fixed-asset/alert/alert-borrow/alert-borrow.component.ts index 331a9fa..9d9312f 100644 --- a/web-admin-app/src/app/pages/fixed-asset/alert/alert-borrow/alert-borrow.component.ts +++ b/web-admin-app/src/app/pages/fixed-asset/alert/alert-borrow/alert-borrow.component.ts @@ -42,15 +42,13 @@ export class AlertBorrowComponent { // rowKey: 'id', // }) .setColumn([ - { key: 'roleId', title: '主键', visible: false }, + { key: '_category', title: '资产分类', visible: true }, + { key: 'assetCode', title: '资产编号', visible: true }, + { key: 'name', title: '名称', visible: true }, + { key: 'model', title: '规格型号', visible: true }, - { key: 'roleName', title: '资产分类', visible: true }, - { key: 'roleSort', title: '资产编号', visible: true }, - { key: 'roleSort', title: '名称', visible: true }, - { key: 'roleSort', title: '规格型号', visible: true }, - - { key: 'status', title: '状态', visible: true }, - { key: 'remark', title: '备注', visible: true }, + { key: 'serialNumber', title: '序列号', visible: true }, + { key: 'notes', title: '备注', visible: true }, // { key: 'createTime', title: '创建时间', visible: true }, ]) } diff --git a/web-admin-app/src/app/pages/fixed-asset/stocktaking/stockaking-job/stockaking-job.component.ts b/web-admin-app/src/app/pages/fixed-asset/stocktaking/stockaking-job/stockaking-job.component.ts index e0be2c5..3641257 100644 --- a/web-admin-app/src/app/pages/fixed-asset/stocktaking/stockaking-job/stockaking-job.component.ts +++ b/web-admin-app/src/app/pages/fixed-asset/stocktaking/stockaking-job/stockaking-job.component.ts @@ -161,10 +161,12 @@ export class StockakingJobComponent { stocktakingUserId: data._stocktakingUser?.userId ? [data._stocktakingUser?.userId] : [], head: data._head?.userId ? [data._head?.userId] : [], useUserId: data._useUser?.userId ? [data._useUser?.userId] : [], - categoryId: data._category?.categoryId, - positionId: data._position?.positionId, - ownCompanyId: data._ownCompany?.organizationId, - useOrganizationId: data._useOrganization?.organizationId, + categoryId: data._category?.categoryId ? String(data._category?.categoryId) : null, + positionId: data._position?.positionId ? String(data._position?.positionId) : null, + ownCompanyId: data._ownCompany?.organizationId ? String(data._ownCompany?.organizationId) : null, + useOrganizationId: data._useOrganization?.organizationId + ? String(data._useOrganization?.organizationId) + : null, warehouseId: data._warehouse?.warehouseId, }) } diff --git a/web-admin-app/src/app/pages/fixed-asset/stocktaking/stockaking-plan/stockaking-plan.component.ts b/web-admin-app/src/app/pages/fixed-asset/stocktaking/stockaking-plan/stockaking-plan.component.ts index f585977..28698ab 100644 --- a/web-admin-app/src/app/pages/fixed-asset/stocktaking/stockaking-plan/stockaking-plan.component.ts +++ b/web-admin-app/src/app/pages/fixed-asset/stocktaking/stockaking-plan/stockaking-plan.component.ts @@ -158,12 +158,13 @@ export class StockakingPlanComponent { stocktakingUserId: data._stocktakingUser?.userId ? [data._stocktakingUser?.userId] : [], head: data._head?.userId ? [data._head?.userId] : [], useUserId: data._useUser?.userId ? [data._useUser?.userId] : [], - categoryId: data._category?.categoryId, - positionId: data._position?.positionId, - ownCompanyId: data._ownCompany?.organizationId, - useOrganizationId: data._useOrganization?.organizationId, + categoryId: data._category?.categoryId ? String(data._category?.categoryId) : null, + positionId: data._position?.positionId ? String(data._position?.positionId) : null, + ownCompanyId: data._ownCompany?.organizationId ? String(data._ownCompany?.organizationId) : null, + useOrganizationId: data._useOrganization?.organizationId + ? String(data._useOrganization?.organizationId) + : null, warehouseId: data._warehouse?.warehouseId, - status: data.status === 1, }) } this.drawerRef = this.drawer.create({ diff --git a/web-admin-app/src/app/pages/flow/flow-my-apply/flow-my-apply.component.html b/web-admin-app/src/app/pages/flow/flow-my-apply/flow-my-apply.component.html index 2faf545..7ec68ea 100644 --- a/web-admin-app/src/app/pages/flow/flow-my-apply/flow-my-apply.component.html +++ b/web-admin-app/src/app/pages/flow/flow-my-apply/flow-my-apply.component.html @@ -23,7 +23,7 @@ } @case ('urgency') { - {{ data === 2 ? '紧急' : '普通' }} + {{ row.procVars.urgency === 2 ? '紧急' : '普通' }} } @default { diff --git a/web-admin-app/src/app/pages/flow/flow-my-finished/flow-my-finished.component.html b/web-admin-app/src/app/pages/flow/flow-my-finished/flow-my-finished.component.html index 8c1627b..61c6df0 100644 --- a/web-admin-app/src/app/pages/flow/flow-my-finished/flow-my-finished.component.html +++ b/web-admin-app/src/app/pages/flow/flow-my-finished/flow-my-finished.component.html @@ -16,7 +16,7 @@ } @case ('urgency') { - {{ data === 2 ? '紧急' : '普通' }} + {{ row.procVars.urgency === 2 ? '紧急' : '普通' }} } @default { diff --git a/web-admin-app/src/app/pages/flow/flow-my-todo/flow-my-todo.component.html b/web-admin-app/src/app/pages/flow/flow-my-todo/flow-my-todo.component.html index 88f013f..10455db 100644 --- a/web-admin-app/src/app/pages/flow/flow-my-todo/flow-my-todo.component.html +++ b/web-admin-app/src/app/pages/flow/flow-my-todo/flow-my-todo.component.html @@ -23,7 +23,7 @@ } @case ('urgency') { - {{ data === 2 ? '紧急' : '普通' }} + {{ row.procVars.urgency === 2 ? '紧急' : '普通' }} } @default { diff --git a/web-admin-app/src/app/pages/org-setting/org-setting.component.ts b/web-admin-app/src/app/pages/org-setting/org-setting.component.ts index 9e4addc..c11b1b9 100644 --- a/web-admin-app/src/app/pages/org-setting/org-setting.component.ts +++ b/web-admin-app/src/app/pages/org-setting/org-setting.component.ts @@ -124,7 +124,7 @@ export class OrgSettingComponent implements OnInit { onCreate(data?: NzSafeAny) { if (data) { - this.createForm.patchValue({ ...data, roleId: data._umsRole.roleId }) + this.createForm.patchValue({ ...data, roleId: data._umsRole?.roleId }) } this.drawerRef = this.drawer.create({ nzTitle: data ? '编辑员工' : '新增员工', diff --git a/web-admin-app/src/app/shared/permission/permission.directive.ts b/web-admin-app/src/app/shared/permission/permission.directive.ts index 4ecddbf..24947cc 100644 --- a/web-admin-app/src/app/shared/permission/permission.directive.ts +++ b/web-admin-app/src/app/shared/permission/permission.directive.ts @@ -21,7 +21,7 @@ export class PermissionDirective { private checkPermission(): void { const hasPermission = this.permissionService.isRoot || this.permissionService.hasPermission(this.requiredPermission) - console.log('hasPermission', this.permissionService) + // console.log('hasPermission', this.permissionService) if (hasPermission) { this.viewContainerRef.createEmbeddedView(this.templateRef) } else { diff --git a/web-admin-app/src/app/shared/permission/permission.guard.ts b/web-admin-app/src/app/shared/permission/permission.guard.ts index 7d87f5f..32562f2 100644 --- a/web-admin-app/src/app/shared/permission/permission.guard.ts +++ b/web-admin-app/src/app/shared/permission/permission.guard.ts @@ -12,7 +12,7 @@ export const permissionGuard: CanActivateFn = (route, state) => { return true } const redirectTo = route.data?.['permission']?.redirectTo - console.log('redirectTo', redirectTo) + // console.log('redirectTo', redirectTo) if (redirectTo) { return router.createUrlTree([redirectTo]) }