diff --git a/src/modules/warehouse-resources/locations/pages/LocationsView.test.ts b/src/modules/warehouse-resources/locations/pages/LocationsView.test.ts index 18f6435c..689e35df 100644 --- a/src/modules/warehouse-resources/locations/pages/LocationsView.test.ts +++ b/src/modules/warehouse-resources/locations/pages/LocationsView.test.ts @@ -324,6 +324,7 @@ describe('LocationsView', () => { expect(document.body.textContent).not.toContain('所属企业') expect(document.body.textContent).not.toContain('企业 ID') expect(document.body.querySelector('.el-drawer')).toBeNull() + expect(document.body.querySelector('.location-editor-dialog .el-form-item:first-child input')?.hasAttribute('disabled')).toBe(true) }) it('does not provide a detail or edit entry for occupied locations', async () => { diff --git a/src/modules/warehouse-resources/locations/pages/LocationsView.vue b/src/modules/warehouse-resources/locations/pages/LocationsView.vue index f10e22bc..c0828964 100644 --- a/src/modules/warehouse-resources/locations/pages/LocationsView.vue +++ b/src/modules/warehouse-resources/locations/pages/LocationsView.vue @@ -613,7 +613,7 @@ onMounted(() => {
- +