diff --git a/src/api/basic/Workorder/index.js b/src/api/basic/Workorder/index.js index b7add86..7c3e298 100644 --- a/src/api/basic/Workorder/index.js +++ b/src/api/basic/Workorder/index.js @@ -1,6 +1,7 @@ import httpService from "@/request" // 工单 +// list export function name(params) { return httpService({ url: ` `, diff --git a/src/api/basic/department/index.js b/src/api/basic/department/index.js index 756f94e..3ac96c9 100644 --- a/src/api/basic/department/index.js +++ b/src/api/basic/department/index.js @@ -1,5 +1,6 @@ import httpService from "@/request" +// 组织 // 所有的组织架构 export function departmentList(params) { return httpService({ diff --git a/src/api/basic/estate/index.js b/src/api/basic/estate/index.js index b2a96bf..58ad023 100644 --- a/src/api/basic/estate/index.js +++ b/src/api/basic/estate/index.js @@ -1,5 +1,6 @@ import httpService from "@/request" +// 房产 楼栋 // 楼栋列表 export function buildingList(params) { return httpService({ @@ -8,6 +9,15 @@ export function buildingList(params) { params: params, }) } +// 楼栋删除 +export function buildingDel(params) { + return httpService({ + url: `/user/building/deleteBuilding`, + method: 'post', + data: params, + }) +} + // 房屋列表 export function houseList(params) { return httpService({ @@ -16,3 +26,27 @@ export function houseList(params) { params: params, }) } +// 房屋列表 +export function houseInsert(params) { + return httpService({ + url: `/user/estate/insert`, + method: 'post', + data: params, + }) +} +// 房屋删除 +export function houseDel(params) { + return httpService({ + url: `/user/estate/delete`, + method: 'post', + data: params, + }) +} +// 房屋租聘切换 +export function isEnableLease(params) { + return httpService({ + url: `/user/estate/isEnableLease`, + method: 'get', + params: params, + }) +} diff --git a/src/api/shop/order/index.js b/src/api/shop/order/index.js new file mode 100644 index 0000000..385aeba --- /dev/null +++ b/src/api/shop/order/index.js @@ -0,0 +1,11 @@ +import httpService from "@/request" + +// 订单 +// list +export function orderList(params) { + return httpService({ + url: `/user/shopOrder/list`, + method: 'get', + params: params, + }) +} diff --git a/src/permission.js b/src/permission.js index c59cf80..a9ca5e2 100644 --- a/src/permission.js +++ b/src/permission.js @@ -12,6 +12,7 @@ router.beforeEach((to, from, next) => { next('/login'); } else { next(); + NProgress.done() } }) diff --git a/src/router/basic.js b/src/router/basic.js index 44c4a4f..9cb94ed 100644 --- a/src/router/basic.js +++ b/src/router/basic.js @@ -26,17 +26,17 @@ export default [ hide: false, component: resolve => require(['@/views/Basic/Authority'], resolve), meta: {title: '权限管理'}, - children: [ - { - path: '/Authority/_details', - name: "Authority_details", - title: "账单管理-详情", - icon: 'profile', - hide: true, - component: resolve => require(['@/views/Basic/Authority/_details'], resolve), - meta: {title: '账单管理-详情'}, - } - ] + // children: [ + // { + // path: '/Authority/_details', + // name: "Authority_details", + // title: "账单管理-详情", + // icon: 'profile', + // hide: true, + // component: resolve => require(['@/views/Basic/Authority/_details'], resolve), + // meta: {title: '账单管理-详情'}, + // } + // ] }, { path: '/EstateInfo', diff --git a/src/router/index.js b/src/router/index.js index 7f0cf8a..5e13ea3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -18,7 +18,7 @@ Vue.use(Router); import Layout from "@/views/Layout" import basic from "./basic" // 基础功能 // import payment from "./payment" // 缴费管理 -// import smartMall from "./smartMall" // 智慧商城 +import shop from "./shop" // 智慧商城 // import operation from "./operation" // 运营管理 import setting from "./setting" // 设置 @@ -45,6 +45,17 @@ const router = [ ...setting, ] }, + { + path: "/shop", + name: "shop", + title: "智慧商城", + component: Layout, + redirect: '/OrderManage', + meta: {title: '智慧商城'}, + children: [ + ...shop, + ] + }, { path: "/login", name: "Login", diff --git a/src/router/smartMall.js b/src/router/shop.js similarity index 57% rename from src/router/smartMall.js rename to src/router/shop.js index ba6146b..5aac4d8 100644 --- a/src/router/smartMall.js +++ b/src/router/shop.js @@ -6,4 +6,14 @@ * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @FilePath: /LittleBeeSaas/src/router/smartMall.js */ -export default [] \ No newline at end of file +export default [ + { + path: '/OrderManage', + name: "OrderManage", + title: "订单列表", + hide: false, + icon: 'container', + component: resolve => require(['@/views/Shop/OrderManage'], resolve), + meta: {title: '订单列表'} + }, +] \ No newline at end of file diff --git a/src/views/Basic/Authority/index.vue b/src/views/Basic/Authority/index.vue index b6ab32f..ac1d21a 100644 --- a/src/views/Basic/Authority/index.vue +++ b/src/views/Basic/Authority/index.vue @@ -67,17 +67,13 @@ export default { }, data() { return { + pagination, + columns, + searchForm, tableChoosed: [], roleList: [], - // 分页 - pagination: pagination, - // 列 - columns: columns, - searchForm:searchForm, - // 数据 - tableData: [], - ActionsList: [ - ], + tableData: [], // 数据 + ActionsList: [], }; }, mounted() { diff --git a/src/views/Basic/Employee/depend/config.js b/src/views/Basic/Employee/depend/config.js index b872818..05341b4 100644 --- a/src/views/Basic/Employee/depend/config.js +++ b/src/views/Basic/Employee/depend/config.js @@ -6,12 +6,12 @@ export const columns = [ { title: "真实名称", dataIndex: "actualName", - width: "16%", + width: "12%", }, { title: "手机号", dataIndex: "tel", - width: "16%", + width: "14%", }, { title: "所属部门", @@ -21,7 +21,22 @@ export const columns = [ { title: "岗位", dataIndex: "positionName", + width: "10%", + }, + { + title: "状态", + dataIndex: "status", width: "16%", + customRender: function (status) { + switch (status) { + case 1: + return '正常' + case 2: + return '停用' + default: + break; + } + } }, { title: "备注", diff --git a/src/views/Basic/Employee/index.vue b/src/views/Basic/Employee/index.vue index 6d4cd37..a561c22 100644 --- a/src/views/Basic/Employee/index.vue +++ b/src/views/Basic/Employee/index.vue @@ -90,6 +90,7 @@ 编辑 + 重置密码 @@ -209,7 +210,8 @@ import { departmentUpdate, departmentDel, findToUser, - rePassword + rePassword, + userEnable } from "@/api/basic/department"; export default { @@ -218,9 +220,9 @@ export default { }, data() { return { - columns: columns, - pagination: pagination, - searchForm: searchForm, + columns, + pagination, + searchForm, searchStr: "", searchValue: "", rules: { @@ -363,6 +365,15 @@ export default { }); } }, + async enableUser(id){ + const res = await userEnable({manageUserId:id}) + if(res.code === 200){ + this.$message.success(res.msg) + this.getData() + }else{ + this.$message.error(res.msg) + } + }, handleCancel() { this.show.addDepartment = false; this.$refs.ruleForm.resetFields(); diff --git a/src/views/Basic/EstateInfo/_buildingManage/index.vue b/src/views/Basic/EstateInfo/_buildingManage/index.vue index dd716ea..5a112fe 100644 --- a/src/views/Basic/EstateInfo/_buildingManage/index.vue +++ b/src/views/Basic/EstateInfo/_buildingManage/index.vue @@ -26,7 +26,7 @@ @@ -136,10 +136,13 @@ diff --git a/src/views/ShopMall/AccumulatePoints/index.vue b/src/views/Shop/AccumulatePoints/index.vue similarity index 100% rename from src/views/ShopMall/AccumulatePoints/index.vue rename to src/views/Shop/AccumulatePoints/index.vue diff --git a/src/views/ShopMall/AfterSale/index.vue b/src/views/Shop/AfterSale/index.vue similarity index 100% rename from src/views/ShopMall/AfterSale/index.vue rename to src/views/Shop/AfterSale/index.vue diff --git a/src/views/ShopMall/BusinessManage/index.vue b/src/views/Shop/BusinessManage/index.vue similarity index 100% rename from src/views/ShopMall/BusinessManage/index.vue rename to src/views/Shop/BusinessManage/index.vue diff --git a/src/views/ShopMall/GoodsManage/index.vue b/src/views/Shop/GoodsManage/index.vue similarity index 100% rename from src/views/ShopMall/GoodsManage/index.vue rename to src/views/Shop/GoodsManage/index.vue diff --git a/src/views/Shop/OrderManage/depend/config.js b/src/views/Shop/OrderManage/depend/config.js new file mode 100644 index 0000000..0780547 --- /dev/null +++ b/src/views/Shop/OrderManage/depend/config.js @@ -0,0 +1,154 @@ +/** + * 配置 + * 表格列 + */ +export const columns = [ + { + title: "订单号", + dataIndex: "code", + width: "15%", + }, + { + title: "创建时间", + dataIndex: "createDate", + width: "15%", + }, + { + title: "付款方式", + dataIndex: "payType", + width: "15%", + customRender: function (payType) { + switch (payType) { + case 1: + return '支付宝' + case 2: + return '微信' + case 3: + return '现金' + case 4: + return 'pos' + case 5: + return '预缴扣除' + case 6: + return '银行卡' + case 7: + return '支票' + case 8: + return '转账' + case 9: + return '开发商代付' + default: + break; + } + } + }, + // { + // title: "jcook订单号", + // dataIndex: "jcookCode", + // width: "15%", + // }, + // { + // title: "支付宝交易号", + // dataIndex: "tradeNo", + // width: "15%", + // }, + // { + // title: "交易状态", + // dataIndex: "tradeStatus", + // width: "15%", + // }, + // { + // title: "支付人名称", + // dataIndex: "payName", + // width: "15%", + // }, + // { + // title: "支付人联系方式", + // dataIndex: "payTel", + // width: "15%", + // }, + // { + // title: "付款方式", + // dataIndex: "payType", + // width: "15%", + // }, + // { + // title: "付款金额", + // dataIndex: "payPrice", + // width: "15%", + // }, + // { + // title: "运费", + // dataIndex: "freightFee", + // width: "15%", + // }, + // { + // title: "收货人", + // dataIndex: "receiverName", + // width: "15%", + // }, + // { + // title: "收货人联系方式", + // dataIndex: "receiverTel", + // width: "15%", + // }, + // { + // title: "所在地区名称", + // dataIndex: "locationName", + // width: "15%", + // }, + // { + // title: "详细地址", + // dataIndex: "addressDetail", + // width: "15%", + // }, + // { + // title: "运费", + // dataIndex: "freightFee", + // width: "15%", + // }, + // { + // title: "运费", + // dataIndex: "freightFee", + // width: "15%", + // }, + // { + // title: "房屋类型", + // dataIndex: "manageEstateTypeName", + // width: "15%", + // }, + { + title: "操作", + dataIndex: "action", + key: "action", + width: "180", + fixed: "right", + scopedSlots: { customRender: "action" }, + }, +] +// 搜索项 +export const searchForm = { + code: "", + jcookCode: '', + tradeStatus:null +} +// 分页 +export const pagination = { + current: 1, + total: 0, + pageSize: 10, + showTotal: (total) => `共 ${total} 条`, + showSizeChanger: true, + showQuickJumper: true, +} +export function del(data) { + this.$confirm({ + title: "是否删除", + // okText:'删除', + // cancelText:'取消', + icon: "", + onOk: function () { + console.log(data); + }, + }); +} \ No newline at end of file diff --git a/src/views/Shop/OrderManage/index.vue b/src/views/Shop/OrderManage/index.vue new file mode 100644 index 0000000..2cd4db7 --- /dev/null +++ b/src/views/Shop/OrderManage/index.vue @@ -0,0 +1,147 @@ + + + \ No newline at end of file diff --git a/src/views/ShopMall/OrderManage/index.vue b/src/views/ShopMall/OrderManage/index.vue deleted file mode 100644 index e69de29..0000000