diff --git a/admin/src/api/cmshelf.js b/admin/src/api/cmshelf.js
new file mode 100644
index 0000000..8aa5cc7
--- /dev/null
+++ b/admin/src/api/cmshelf.js
@@ -0,0 +1,63 @@
+
+import request from '@/utils/request'
+
+/**
+ * 新增cmshelf
+ * @param pram
+ */
+export function cmshelfCreateApi(data) {
+ return request({
+ url: `autogencode/cmshelf/save`,
+ method: 'POST',
+ data
+ })
+}
+
+/**
+ * cmshelf更新
+ * @param pram
+ */
+export function cmshelfUpdateApi(data) {
+ return request({
+ url: `autogencode/cmshelf/update`,
+ method: 'POST',
+ data
+ })
+}
+
+/**
+ * cmshelf详情
+ * @param pram
+ */
+export function cmshelfDetailApi(id) {
+ return request({
+ url: `autogencode/cmshelf/info/${id}`,
+ method: 'GET'
+ })
+}
+
+/**
+ * cmshelf批量删除
+ * @param ids
+ */
+export function cmshelfDeleteApi(ids) {
+ return request({
+ url: `autogencode/cmshelf/delete`,
+ method: 'POST',
+ data: ids
+ })
+}
+
+
+/**
+ * cmshelf列表
+ * @param pram
+ */
+export function cmshelfListApi(params) {
+ return request({
+ url: `autogencode/cmshelf/list`,
+ method: 'GET',
+ params
+ })
+}
+
diff --git a/admin/src/api/cmstoragelocation.js b/admin/src/api/cmstoragelocation.js
new file mode 100644
index 0000000..9d765a7
--- /dev/null
+++ b/admin/src/api/cmstoragelocation.js
@@ -0,0 +1,63 @@
+
+import request from '@/utils/request'
+
+/**
+ * 新增cmstoragelocation
+ * @param pram
+ */
+export function cmstoragelocationCreateApi(data) {
+ return request({
+ url: `autogencode/cmstoragelocation/save`,
+ method: 'POST',
+ data
+ })
+}
+
+/**
+ * cmstoragelocation更新
+ * @param pram
+ */
+export function cmstoragelocationUpdateApi(data) {
+ return request({
+ url: `autogencode/cmstoragelocation/update`,
+ method: 'POST',
+ data
+ })
+}
+
+/**
+ * cmstoragelocation详情
+ * @param pram
+ */
+export function cmstoragelocationDetailApi(id) {
+ return request({
+ url: `autogencode/cmstoragelocation/info/${id}`,
+ method: 'GET'
+ })
+}
+
+/**
+ * cmstoragelocation批量删除
+ * @param ids
+ */
+export function cmstoragelocationDeleteApi(ids) {
+ return request({
+ url: `autogencode/cmstoragelocation/delete`,
+ method: 'POST',
+ data: ids
+ })
+}
+
+
+/**
+ * cmstoragelocation列表
+ * @param pram
+ */
+export function cmstoragelocationListApi(params) {
+ return request({
+ url: `autogencode/cmstoragelocation/list`,
+ method: 'GET',
+ params
+ })
+}
+
diff --git a/admin/src/views/ck/ckwarehouse/index.vue b/admin/src/views/ck/ckwarehouse/index.vue
index 0d5d2aa..ea5920c 100644
--- a/admin/src/views/ck/ckwarehouse/index.vue
+++ b/admin/src/views/ck/ckwarehouse/index.vue
@@ -291,7 +291,10 @@ export default {
},
created() {
listWarehouse({}).then(response => {
- this.warehouses = response.data;
+ this.warehouses = response.data || [];
+ }).catch(error => {
+ console.error('获取仓库列表失败:', error);
+ this.warehouses = [];
});
},
methods: {
diff --git a/admin/src/views/cm/cust/qualify/index.vue b/admin/src/views/cm/cust/qualify/index.vue
index 4ee3799..a3d2d6f 100644
--- a/admin/src/views/cm/cust/qualify/index.vue
+++ b/admin/src/views/cm/cust/qualify/index.vue
@@ -34,7 +34,7 @@
查询
重置
- 新增数据
+ 新增资质设置
批量删除
diff --git a/admin/src/views/cm/shelf/cmshelf-add-and-update.vue b/admin/src/views/cm/shelf/cmshelf-add-and-update.vue
new file mode 100644
index 0000000..c91f10c
--- /dev/null
+++ b/admin/src/views/cm/shelf/cmshelf-add-and-update.vue
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/admin/src/views/cm/shelf/index.vue b/admin/src/views/cm/shelf/index.vue
new file mode 100644
index 0000000..428f667
--- /dev/null
+++ b/admin/src/views/cm/shelf/index.vue
@@ -0,0 +1,204 @@
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+ 新增数据
+ 批量删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ '修改' }}
+ 删除
+
+
+
+
+
+
+
+
+
+
+
diff --git a/admin/src/views/cm/storage/location/cmstoragelocation-add-and-update.vue b/admin/src/views/cm/storage/location/cmstoragelocation-add-and-update.vue
new file mode 100644
index 0000000..a2f1fde
--- /dev/null
+++ b/admin/src/views/cm/storage/location/cmstoragelocation-add-and-update.vue
@@ -0,0 +1,88 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/admin/src/views/cm/storage/location/index.vue b/admin/src/views/cm/storage/location/index.vue
new file mode 100644
index 0000000..62c00c2
--- /dev/null
+++ b/admin/src/views/cm/storage/location/index.vue
@@ -0,0 +1,204 @@
+
+
+
+
+
+
+
+
+
+
+ 查询
+ 重置
+ 新增数据
+ 批量删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ '修改' }}
+ 删除
+
+
+
+
+
+
+
+
+
+
+
diff --git a/admin/src/views/cm/warehouse/DispatchList.vue b/admin/src/views/cm/warehouse/DispatchList.vue
new file mode 100644
index 0000000..8f01d3a
--- /dev/null
+++ b/admin/src/views/cm/warehouse/DispatchList.vue
@@ -0,0 +1,359 @@
+
+
+
+ 新增货架
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ '修改' }}
+ {{ '查看货位' }}
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+ 新增货位
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ '修改' }}
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/admin/src/views/cm/warehouse/cmwarehouse-add-and-update.vue b/admin/src/views/cm/warehouse/cmwarehouse-add-and-update.vue
index 36aef5d..15093c4 100644
--- a/admin/src/views/cm/warehouse/cmwarehouse-add-and-update.vue
+++ b/admin/src/views/cm/warehouse/cmwarehouse-add-and-update.vue
@@ -3,9 +3,10 @@
-
+
@@ -13,13 +14,27 @@
-
+
-
+
-
+
@@ -28,6 +19,8 @@
border
v-loading="dataListLoading"
@selection-change="selectionChangeHandle"
+ @expand-change="handleExpandChange"
+ :expand-row-keys="expandedRowKeys"
style="width: 100%;">
+ align="center">
+
+
+
+
+ {{ scope.row.validityStart ? scope.row.validityStart.substring(0, 10) : '' }}
+
+
+ {{ scope.row.validityEnd ? scope.row.validityEnd.substring(0, 10) : '' }}
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ '修改' }}
+ 修改
删除
@@ -141,6 +101,7 @@
diff --git a/admin/src/views/eb/user/index-all.vue b/admin/src/views/eb/user/index-all.vue
index 9e0162d..9abb520 100644
--- a/admin/src/views/eb/user/index-all.vue
+++ b/admin/src/views/eb/user/index-all.vue
@@ -45,7 +45,7 @@
查询
重置
- 新增数据
+ 新增员工
批量删除
diff --git a/admin/src/views/eb/user/index.vue b/admin/src/views/eb/user/index.vue
index fb807b0..6ddf0f2 100644
--- a/admin/src/views/eb/user/index.vue
+++ b/admin/src/views/eb/user/index.vue
@@ -45,7 +45,7 @@
查询
重置
- 新增数据
+ 新增员工
批量删除
diff --git a/admin/src/views/fm/dunning/record/index.vue b/admin/src/views/fm/dunning/record/index.vue
index ac65246..e3340e1 100644
--- a/admin/src/views/fm/dunning/record/index.vue
+++ b/admin/src/views/fm/dunning/record/index.vue
@@ -41,12 +41,6 @@
align="center"
width="50">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -126,6 +140,10 @@
},
// 房屋列表数据
houseList: [],
+ // 房屋分页参数
+ housePageIndex: 1,
+ housePageSize: 10,
+ houseTotal: 0,
// 房屋新增/修改弹窗显示状态
houseVisible: false,
dataRule: {
@@ -216,9 +234,14 @@
loadHouseList (buildingId) {
if (!buildingId) return
- // 调用房屋API获取该楼栋下的房屋列表
- houseApi.pmhouseListApi({ buildingId: buildingId }).then(res => {
+ // 调用房屋API获取该楼栋下的房屋列表(支持分页)
+ houseApi.pmhouseListApi({
+ buildingId: buildingId,
+ page: this.housePageIndex,
+ limit: this.housePageSize
+ }).then(res => {
this.houseList = res.list || []
+ this.houseTotal = res.count || 0
}).catch(err => {
this.$message.error('加载房屋列表失败')
console.error(err)
@@ -274,6 +297,19 @@
this.$emit('refreshHouseList')
},
+ // 房屋列表分页大小变化
+ handleHouseSizeChange (size) {
+ this.housePageSize = size
+ this.housePageIndex = 1
+ this.loadHouseList(this.dataForm.id)
+ },
+
+ // 房屋列表当前页码变化
+ handleHouseCurrentChange (current) {
+ this.housePageIndex = current
+ this.loadHouseList(this.dataForm.id)
+ },
+
// 添加房屋到列表(用于楼栋未保存时的临时存储)
addHouseToList (houseData) {
// 深拷贝房屋数据,避免引用问题
@@ -300,10 +336,30 @@
return house.id === null
})
- // 无论是新增还是编辑,都将数据传递给父组件
- this.$emit('addBuildingToList', buildingData)
- this.$message.success(buildingData.id ? '修改成功' : '添加成功')
- this.$emit('close')
+ // 调用 API 保存楼栋数据
+ if (buildingData.id) {
+ // 编辑模式
+ api.pmbuildingUpdateApi(buildingData).then(() => {
+ this.$message.success('修改成功')
+ this.$emit('refreshDataList')
+ this.$emit('close')
+ }).catch(err => {
+ this.$message.error('修改失败')
+ this.$emit('refreshDataList')
+ console.error(err)
+ })
+ } else {
+ // 新增模式
+ api.pmbuildingCreateApi(buildingData).then(() => {
+ this.$message.success('添加成功')
+ this.$emit('refreshDataList')
+ this.$emit('close')
+ }).catch(err => {
+ this.$message.error('添加失败')
+ this.$emit('refreshDataList')
+ console.error(err)
+ })
+ }
}
})
}
diff --git a/admin/src/views/pm/complaint/suggestion/index.vue b/admin/src/views/pm/complaint/suggestion/index.vue
index dc51fd9..87c7261 100644
--- a/admin/src/views/pm/complaint/suggestion/index.vue
+++ b/admin/src/views/pm/complaint/suggestion/index.vue
@@ -34,7 +34,7 @@
查询
重置
- 新增数据
+ 新增投诉/建议
批量删除
diff --git a/admin/src/views/pm/houser/pmhouse-add-and-update.vue b/admin/src/views/pm/houser/pmhouse-add-and-update.vue
index 185771e..26b6adb 100644
--- a/admin/src/views/pm/houser/pmhouse-add-and-update.vue
+++ b/admin/src/views/pm/houser/pmhouse-add-and-update.vue
@@ -3,6 +3,7 @@
@@ -124,18 +125,15 @@
floorNo: [
{ required: true, message: '楼层号 为必填项', trigger: 'blur' }
],
- houseNo: [
- { required: true, message: '房号 为必填项', trigger: 'blur' }
- ],
+ // houseNo: [
+ // { required: true, message: '房号 为必填项', trigger: 'blur' }
+ // ],
propertyType: [
{ required: true, message: '产权类型 为必填项', trigger: 'blur' }
],
houseStatus: [
{ required: true, message: '房屋状态 为必填项', trigger: 'blur' }
],
- propertyCertNo: [
- { required: true, message: '房产证号 为必填项', trigger: 'blur' }
- ],
}
}
},
diff --git a/admin/src/views/pm/maintenance/order/index.vue b/admin/src/views/pm/maintenance/order/index.vue
index 558736c..fcfd1b1 100644
--- a/admin/src/views/pm/maintenance/order/index.vue
+++ b/admin/src/views/pm/maintenance/order/index.vue
@@ -13,7 +13,7 @@
查询
重置
- 新增数据
+ 新增报修
批量删除
diff --git a/admin/src/views/pm/project/DispatchList.vue b/admin/src/views/pm/project/DispatchList.vue
new file mode 100644
index 0000000..df8cac7
--- /dev/null
+++ b/admin/src/views/pm/project/DispatchList.vue
@@ -0,0 +1,415 @@
+
+
+
+ 新增楼栋
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.buildingType }}
+
+
+
+
+
+
+ {{ '修改' }}
+ {{ '查看房屋' }}
+ {{ '删除' }}
+
+
+
+
+
+
+
+
+
+ 新增房屋
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.propertyType }}
+
+
+
+
+
+ {{ scope.row.houseStatus }}
+
+
+
+
+
+
+
+
+ {{ '修改' }}
+ {{ '删除' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/admin/src/views/pm/project/index.vue b/admin/src/views/pm/project/index.vue
index a0d5ddf..0ee61ca 100644
--- a/admin/src/views/pm/project/index.vue
+++ b/admin/src/views/pm/project/index.vue
@@ -22,8 +22,8 @@
重置
新增项目
批量删除
- 导入
- 导出
+
+
+
+
+
+
+
{{ '修改' }}
- 删除
+ {{ '删除' }}
@@ -148,12 +162,23 @@
确 定
+
+