diff --git a/src/api/basic/resident/index.js b/src/api/basic/resident/index.js index a414d2f..b73598b 100644 --- a/src/api/basic/resident/index.js +++ b/src/api/basic/resident/index.js @@ -62,6 +62,14 @@ export function findTenantByEstateId(params) { params: params, }) } +// 根据房屋查业主 +export function findOwnerByEstateId(params) { + return httpService({ + url: `/user/resident/findOwnerByEstateId`, + method: 'get', + params: params, + }) +} // 住户详情 export function residentDetail(params) { return httpService({ diff --git a/src/api/operation/commission/index.js b/src/api/operation/commission/index.js new file mode 100644 index 0000000..9dfe181 --- /dev/null +++ b/src/api/operation/commission/index.js @@ -0,0 +1,84 @@ +import httpService from "@/request" + +///类型 +// 查询所有业委会类型信息 +export function getComList(params) { + return httpService({ + url: `/user/industryCommitteeType/list`, + method: 'get', + params: params, + }) +} + +// 添加业委会类型 +export function addComType(params) { + return httpService({ + url: `/user/industryCommitteeType/insert`, + method: 'post', + data: params, + }) +} + +// 修改业委会类型 +export function updateComType(params) { + return httpService({ + url: `/user/industryCommitteeType/update`, + method: 'post', + data: params, + }) +} + +// 删除业委会类型 +export function delComType(params) { + return httpService({ + url: `/user/industryCommitteeType/delete`, + method: 'get', + params: params, + }) +} + +///信息 +// 查询所有业委会信息 +export function getIndustryCommitteeList(params) { + return httpService({ + url: `/user/industryCommittee/list`, + method: 'get', + params: params, + }) +} + +// 添加业委会信息 +export function addIndustryCom(params) { + return httpService({ + url: `/user/industryCommittee/insert`, + method: 'post', + data: params, + }) +} + +// 删除业委会信息 +export function delIndustryCom(params) { + return httpService({ + url: `/user/industryCommittee/delete`, + method: 'post', + data: params, + }) +} + +// 根据业委会主键id查询业委会信息 +export function findIndustryCom(params) { + return httpService({ + url: `/user/industryCommittee/findById`, + method: 'get', + params: params, + }) +} + +// 根据业委会主键id查询业委会信息 +export function updateIndustryCom(params) { + return httpService({ + url: `/user/industryCommittee/update`, + method: 'post', + data: params, + }) +} \ No newline at end of file diff --git a/src/api/shop/goods/index.js b/src/api/shop/goods/index.js index 5dfed4b..671055d 100644 --- a/src/api/shop/goods/index.js +++ b/src/api/shop/goods/index.js @@ -90,4 +90,31 @@ export function brandSelect(params) { method: 'get', params: params, }) +} + +//开启/关闭积分兑换 +export function isEnableRedeem(params) { + return httpService({ + url: `/user/pointsGoods/isEnableRedeem`, + method: 'get', + params: params, + }) +} + +//查询所有积分商品 +export function getPointList(params) { + return httpService({ + url: `/user/pointsGoods/list`, + method: 'get', + params: params, + }) +} + +//设置积分 +export function settingPoints(params) { + return httpService({ + url: `/user/pointsGoods/settingPoints`, + method: 'post', + data: params, + }) } \ No newline at end of file diff --git a/src/router/operation.js b/src/router/operation.js index 60b2879..13d2916 100644 --- a/src/router/operation.js +++ b/src/router/operation.js @@ -244,4 +244,13 @@ export default [ } ] }, + { + path: '/Commission', + name: "Commission", + title: "业委会", + icon: 'cluster', + hide: false, + component: resolve => require(['@/views/Operation/Commission'], resolve), + meta: {title: '业委会'}, + }, ] \ No newline at end of file diff --git a/src/router/shop.js b/src/router/shop.js index cd25dde..26e6511 100644 --- a/src/router/shop.js +++ b/src/router/shop.js @@ -25,6 +25,14 @@ export default [ component: resolve => require(['@/views/Shop/GoodsManage/_goodsList'], resolve), meta: {title: '商品列表'}, }, + { + path: '/GoodsManage/PointGoods', + name: "PointGoods", + title: "兑换商品设置", + hide: false, + component: resolve => require(['@/views/Shop/GoodsManage/_pointGoods'], resolve), + meta: {title: '兑换商品设置'}, + }, { path: '/GoodsManage/JcookList', name: "JcookList", diff --git a/src/views/Basic/WorkOrder/addWorkOrder.vue b/src/views/Basic/WorkOrder/addWorkOrder.vue index 2dba6a9..8be4588 100644 --- a/src/views/Basic/WorkOrder/addWorkOrder.vue +++ b/src/views/Basic/WorkOrder/addWorkOrder.vue @@ -242,6 +242,11 @@ export default { let v = val; let index = val.length this.form.estateId = v[index-1] + this.form.applicantId = undefined; + findTenantByEstateId({estateId: v[index-1]}).then(res => { + let data = res.data; + this.applicantIds = data; + }) } }, watch: { diff --git a/src/views/Operation/Commission/depend/addType.vue b/src/views/Operation/Commission/depend/addType.vue new file mode 100644 index 0000000..961975e --- /dev/null +++ b/src/views/Operation/Commission/depend/addType.vue @@ -0,0 +1,161 @@ + + + + + \ No newline at end of file diff --git a/src/views/Operation/Commission/depend/config.js b/src/views/Operation/Commission/depend/config.js new file mode 100644 index 0000000..b586a1c --- /dev/null +++ b/src/views/Operation/Commission/depend/config.js @@ -0,0 +1,36 @@ +export const columns = [ + { + title: "成员姓名", + width: "15%", + dataIndex: "name", + }, + { + title: "职位", + width: "15%", + dataIndex: "industryCommitteeTypeName", + }, + { + title: "关联房屋", + width: "25%", + dataIndex: "buildingName", + scopedSlots: { customRender: "house" }, + }, + { + title: "创建时间", + width: "20%", + dataIndex: "createDate", + }, + { + title: "操作", + dataIndex: "action", + key: "action", + width: "180", + fixed: "right", + scopedSlots: { customRender: "action" }, + }, +] + +export const rules = { + appUserId: [{ required: true, message: "请选择住户", trigger: "change" }], + industryCommitteeTypeId: [{ required: true, message: "请选择职位", trigger: "change" }], +} \ No newline at end of file diff --git a/src/views/Operation/Commission/index.vue b/src/views/Operation/Commission/index.vue new file mode 100644 index 0000000..57800cd --- /dev/null +++ b/src/views/Operation/Commission/index.vue @@ -0,0 +1,379 @@ + + + + + \ No newline at end of file diff --git a/src/views/Operation/CommunityIntro/depend/config.js b/src/views/Operation/CommunityIntro/depend/config.js index 2fe4bb9..6863081 100644 --- a/src/views/Operation/CommunityIntro/depend/config.js +++ b/src/views/Operation/CommunityIntro/depend/config.js @@ -22,7 +22,7 @@ export const columns = [ }, { title: "内容", - width: "15%", + width: "22%", dataIndex: "content", scopedSlots: { customRender: "content" }, }, diff --git a/src/views/Shop/GoodsManage/_goodsList/depend/config.js b/src/views/Shop/GoodsManage/_goodsList/depend/config.js index 2b2380b..1a3f853 100644 --- a/src/views/Shop/GoodsManage/_goodsList/depend/config.js +++ b/src/views/Shop/GoodsManage/_goodsList/depend/config.js @@ -25,9 +25,15 @@ export const columns = [ dataIndex: "mainPhoto", scopedSlots: { customRender: "mainPhoto"} }, + { + title: "积分兑换", + width: "5%", + dataIndex: "isPointsGoods", + scopedSlots: { customRender: "point"} + }, { title: "sku编码", - width: "8%", + width: "10%", dataIndex: "skuId", }, { diff --git a/src/views/Shop/GoodsManage/_goodsList/index.vue b/src/views/Shop/GoodsManage/_goodsList/index.vue index 841cd1e..73c6bf3 100644 --- a/src/views/Shop/GoodsManage/_goodsList/index.vue +++ b/src/views/Shop/GoodsManage/_goodsList/index.vue @@ -20,6 +20,14 @@ } " > + 上架 @@ -56,7 +64,7 @@ + + diff --git a/web.zip b/web.zip index 3578670..7df55b3 100644 Binary files a/web.zip and b/web.zip differ