diff --git a/src/api/shop/goods/index.js b/src/api/shop/goods/index.js index 34db36b..5dfed4b 100644 --- a/src/api/shop/goods/index.js +++ b/src/api/shop/goods/index.js @@ -70,7 +70,7 @@ export function cateSelect(params) { // 店铺 export function shopSelect(params) { return httpService({ - url: `/user/shop/?`, + url: `/user/shopShop/allList`, method: 'get', params: params, }) @@ -78,7 +78,7 @@ export function shopSelect(params) { // 供应商 export function vendorSelect(params) { return httpService({ - url: `/user/shop/?`, + url: `/user/shopVendor/allList`, method: 'get', params: params, }) @@ -86,7 +86,7 @@ export function vendorSelect(params) { // 品牌 export function brandSelect(params) { return httpService({ - url: `/user/shop/?`, + url: `/user/shopBrand/allList`, method: 'get', params: params, }) diff --git a/src/router/shop.js b/src/router/shop.js index 4390941..b19821f 100644 --- a/src/router/shop.js +++ b/src/router/shop.js @@ -77,4 +77,40 @@ export default [ component: resolve => require(['@/views/Shop/OrderManage/depend/detail'], resolve), meta: {title: '订单详情'} }, + // { + // path: '/SupplierManage', + // name: "SupplierManage", + // title: "供应商管理", + // hide: false, + // icon: 'contacts', + // component: resolve => require(['@/views/Shop/SupplierManage'], resolve), + // meta: {title: '供应商管理'} + // }, + // { + // path: '/StoreManage', + // name: "StoreManage", + // title: "店铺管理", + // hide: false, + // icon: 'shop', + // component: resolve => require(['@/views/Shop/StoreManage'], resolve), + // meta: {title: '店铺管理'} + // }, + // { + // path: '/SwiperManage', + // name: "SwiperManage", + // title: "商城轮播图管理", + // hide: false, + // icon: 'bars', + // component: resolve => require(['@/views/Shop/SwiperManage'], resolve), + // meta: {title: '商城轮播图管理'} + // }, + // { + // path: '/ScoreSetting', + // name: "ScoreSetting", + // title: "积分设置", + // hide: false, + // icon: 'crown', + // component: resolve => require(['@/views/Shop/ScoreSetting'], resolve), + // meta: {title: '积分设置'} + // }, ] \ No newline at end of file diff --git a/src/views/Shop/AccumulatePoints/index.vue b/src/views/Shop/AccumulatePoints/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/Shop/AfterSale/index.vue b/src/views/Shop/AfterSale/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/Shop/BusinessManage/index.vue b/src/views/Shop/BusinessManage/index.vue deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/Shop/GoodsManage/_goodsList/depend/form.js b/src/views/Shop/GoodsManage/_goodsList/depend/form.js index 8d52dc5..aba663e 100644 --- a/src/views/Shop/GoodsManage/_goodsList/depend/form.js +++ b/src/views/Shop/GoodsManage/_goodsList/depend/form.js @@ -17,7 +17,6 @@ export const rules = { status:[{required:true,message:'请选择',trigger:'change'}], vendorId:[{required:true,message:'请选择',trigger:'change'}], brandId: [{ required: true, message: '请选择', trigger: 'change' }], - cateValue: [{ required: true, message: '请选择', trigger: 'change',type: 'array'}], sellPrice:[{required:true,message:'请输入',trigger:'blur'}], discountPrice:[{required:true,message:'请输入',trigger:'blur'}], } @@ -25,5 +24,5 @@ export const options = { cate:[], shop: [], vendor: [], - brand:[], + brand: [], } diff --git a/src/views/Shop/GoodsManage/_goodsList/depend/form.vue b/src/views/Shop/GoodsManage/_goodsList/depend/form.vue index c5a946e..66f3fcc 100644 --- a/src/views/Shop/GoodsManage/_goodsList/depend/form.vue +++ b/src/views/Shop/GoodsManage/_goodsList/depend/form.vue @@ -17,82 +17,76 @@ layout="vertical" > - - - - - - - - - - - - {{item.name}} - - - - - - - - {{item.name}} - - - - - - - - {{item.name}} - - - - - - - - - - - - - - + + + + + + + + + + + + + {{item.name}} + + + + + + + {{item.name}} + + + + + + + {{item.name}} + + + + + + + + + + + + + + @@ -108,7 +102,14 @@ + + diff --git a/src/views/Shop/ScoreSetting/index.vue b/src/views/Shop/ScoreSetting/index.vue new file mode 100644 index 0000000..aeb3241 --- /dev/null +++ b/src/views/Shop/ScoreSetting/index.vue @@ -0,0 +1,163 @@ + + + + diff --git a/src/views/Shop/StoreManage/depend/config.js b/src/views/Shop/StoreManage/depend/config.js new file mode 100644 index 0000000..7b696e6 --- /dev/null +++ b/src/views/Shop/StoreManage/depend/config.js @@ -0,0 +1,114 @@ +export const formItem = [ + { + type: 'input', + label:'标题', + prop:'title', + placeholder:'请输入' + }, + { + type: 'select', + label:'推送对象', + prop:'object', + option:[{ id:1,name:'全部'},{ id:2,name:'住户'},{ id:3,name:'业主'},{ id:4,name:'租户'},{ id:5,name:'管家'}], + placeholder:'请选择' + }, + { + type: 'select', + label:'发布状态', + prop:'status', + option:[{ id:1,name:'未发布'},{ id:2,name:'已发布'}], + placeholder:'请选择' + }, + { + type: 'time', + label:'更新时间', + start: 'modifyStartTime', + end:'modifyEndTime' + }, +] +export const columns = [ + { + title: "标题", + dataIndex: "title", + width: "16%", + }, + { + title: "推送对象", + dataIndex: "object", + width: "10%", + customRender: function (object) { + switch (object) { + case 1: + return '全部' + break; + case 2: + return '住户' + break; + case 3: + return '业主' + break; + case 4: + return '租户' + break; + case 5: + return '管家' + break; + default: + break; + } + } + }, + { + title: "状态", + dataIndex: "status", + width: "10%", + customRender: function (status) { + switch (status) { + case 1: + return '未发布' + break; + case 2: + return '已发布' + break; + default: + break; + } + } + }, + { + title: "内容", + dataIndex: "content", + width: "13%", + }, + { + title: "阅读量", + dataIndex: "readingVolume", + width: "10%", + }, + { + title: "附件下载次数", + dataIndex: "downloadNum", + width: "10%", + }, + { + title: "更新时间", + dataIndex: "modifyDate", + width: "14%", + }, + { + title: "操作", + dataIndex: "action", + key: "action", + width: "180", + fixed: "right", + scopedSlots: { customRender: "action" }, + }, +] +export const pagination = { + current: 1, + total: 0, + pageSize: 10, + showTotal: (total) => `共 ${total} 条`, + showSizeChanger: true, + showQuickJumper: true, +} \ No newline at end of file diff --git a/src/views/Shop/StoreManage/depend/form.js b/src/views/Shop/StoreManage/depend/form.js new file mode 100644 index 0000000..542821d --- /dev/null +++ b/src/views/Shop/StoreManage/depend/form.js @@ -0,0 +1,28 @@ +export const form = { + id:undefined, + title:undefined, + object:undefined, + status:undefined, + content:undefined, + coverImgUrls:[], + annexUrls:[], +} +export const rules = { + title:[{required:true,message:'请输入标题',trigger:'blur'}], + object:[{required:true,message:'请选择',trigger:'change'}], + status:[{required:true,message:'请选择',trigger:'change'}], + content:[{required:true,message:'请输入标题',trigger:'blur'}], +} +export const options = { + status:[ + { id:1, name:'未发布' }, + { id:2, name:'已发布' }, + ], + object:[ + { id:1, name:'全部' }, + { id:2, name:'住户' }, + { id:3, name:'业主' }, + { id:4, name:'租户' }, + { id:5, name:'管家' }, + ], +} \ No newline at end of file diff --git a/src/views/Shop/StoreManage/depend/form.vue b/src/views/Shop/StoreManage/depend/form.vue new file mode 100644 index 0000000..96d6379 --- /dev/null +++ b/src/views/Shop/StoreManage/depend/form.vue @@ -0,0 +1,241 @@ + + + + + diff --git a/src/views/Shop/StoreManage/index.vue b/src/views/Shop/StoreManage/index.vue new file mode 100644 index 0000000..aeb3241 --- /dev/null +++ b/src/views/Shop/StoreManage/index.vue @@ -0,0 +1,163 @@ + + + + diff --git a/src/views/Shop/SupplierManage/depend/config.js b/src/views/Shop/SupplierManage/depend/config.js new file mode 100644 index 0000000..7b696e6 --- /dev/null +++ b/src/views/Shop/SupplierManage/depend/config.js @@ -0,0 +1,114 @@ +export const formItem = [ + { + type: 'input', + label:'标题', + prop:'title', + placeholder:'请输入' + }, + { + type: 'select', + label:'推送对象', + prop:'object', + option:[{ id:1,name:'全部'},{ id:2,name:'住户'},{ id:3,name:'业主'},{ id:4,name:'租户'},{ id:5,name:'管家'}], + placeholder:'请选择' + }, + { + type: 'select', + label:'发布状态', + prop:'status', + option:[{ id:1,name:'未发布'},{ id:2,name:'已发布'}], + placeholder:'请选择' + }, + { + type: 'time', + label:'更新时间', + start: 'modifyStartTime', + end:'modifyEndTime' + }, +] +export const columns = [ + { + title: "标题", + dataIndex: "title", + width: "16%", + }, + { + title: "推送对象", + dataIndex: "object", + width: "10%", + customRender: function (object) { + switch (object) { + case 1: + return '全部' + break; + case 2: + return '住户' + break; + case 3: + return '业主' + break; + case 4: + return '租户' + break; + case 5: + return '管家' + break; + default: + break; + } + } + }, + { + title: "状态", + dataIndex: "status", + width: "10%", + customRender: function (status) { + switch (status) { + case 1: + return '未发布' + break; + case 2: + return '已发布' + break; + default: + break; + } + } + }, + { + title: "内容", + dataIndex: "content", + width: "13%", + }, + { + title: "阅读量", + dataIndex: "readingVolume", + width: "10%", + }, + { + title: "附件下载次数", + dataIndex: "downloadNum", + width: "10%", + }, + { + title: "更新时间", + dataIndex: "modifyDate", + width: "14%", + }, + { + title: "操作", + dataIndex: "action", + key: "action", + width: "180", + fixed: "right", + scopedSlots: { customRender: "action" }, + }, +] +export const pagination = { + current: 1, + total: 0, + pageSize: 10, + showTotal: (total) => `共 ${total} 条`, + showSizeChanger: true, + showQuickJumper: true, +} \ No newline at end of file diff --git a/src/views/Shop/SupplierManage/depend/form.js b/src/views/Shop/SupplierManage/depend/form.js new file mode 100644 index 0000000..542821d --- /dev/null +++ b/src/views/Shop/SupplierManage/depend/form.js @@ -0,0 +1,28 @@ +export const form = { + id:undefined, + title:undefined, + object:undefined, + status:undefined, + content:undefined, + coverImgUrls:[], + annexUrls:[], +} +export const rules = { + title:[{required:true,message:'请输入标题',trigger:'blur'}], + object:[{required:true,message:'请选择',trigger:'change'}], + status:[{required:true,message:'请选择',trigger:'change'}], + content:[{required:true,message:'请输入标题',trigger:'blur'}], +} +export const options = { + status:[ + { id:1, name:'未发布' }, + { id:2, name:'已发布' }, + ], + object:[ + { id:1, name:'全部' }, + { id:2, name:'住户' }, + { id:3, name:'业主' }, + { id:4, name:'租户' }, + { id:5, name:'管家' }, + ], +} \ No newline at end of file diff --git a/src/views/Shop/SupplierManage/depend/form.vue b/src/views/Shop/SupplierManage/depend/form.vue new file mode 100644 index 0000000..96d6379 --- /dev/null +++ b/src/views/Shop/SupplierManage/depend/form.vue @@ -0,0 +1,241 @@ + + + + + diff --git a/src/views/Shop/SupplierManage/index.vue b/src/views/Shop/SupplierManage/index.vue new file mode 100644 index 0000000..aeb3241 --- /dev/null +++ b/src/views/Shop/SupplierManage/index.vue @@ -0,0 +1,163 @@ + + + + diff --git a/src/views/Shop/SwiperManage/depend/config.js b/src/views/Shop/SwiperManage/depend/config.js new file mode 100644 index 0000000..abda366 --- /dev/null +++ b/src/views/Shop/SwiperManage/depend/config.js @@ -0,0 +1,9 @@ +export const form = { + id: undefined, + type: undefined, + showWeights: 0, + customizeUrl: "", + isShow: false, + associationId: undefined, + imgUrls: [], +} \ No newline at end of file diff --git a/src/views/Shop/SwiperManage/depend/table.vue b/src/views/Shop/SwiperManage/depend/table.vue new file mode 100644 index 0000000..5a6bb53 --- /dev/null +++ b/src/views/Shop/SwiperManage/depend/table.vue @@ -0,0 +1,144 @@ + + + + + diff --git a/src/views/Shop/SwiperManage/depend/tableConfig.js b/src/views/Shop/SwiperManage/depend/tableConfig.js new file mode 100644 index 0000000..cbc879a --- /dev/null +++ b/src/views/Shop/SwiperManage/depend/tableConfig.js @@ -0,0 +1,268 @@ +export const columns = { + shop:[ + { + title: "商品名称", + width: "12%", + dataIndex: "skuName", + }, + { + title: "sku编码", + width: "12%", + dataIndex: "skuId", + }, + { + title: "商品类型", + width: "7%", + dataIndex: "mallType", + customRender: function (mallType) { + switch (mallType) { + case 1: + return 'Jcook' + break; + default: + break; + } + } + }, + { + title: "店铺名", + width: "8%", + dataIndex: "shopName", + }, + { + title: "品牌名", + width: "8%", + dataIndex: "brandName", + }, + { + title: "供应商名", + width: "8%", + dataIndex: "vendorName", + }, + { + title: "一级分类名称", + width: "8%", + dataIndex: "categoryFirstName", + }, + { + title: "二级分类名称", + width: "8%", + dataIndex: "categorySecondName", + }, + { + title: "三级分类名称", + width: "8%", + dataIndex: "categoryThirdName", + }, + { + title: "主图url", + width: "8%", + dataIndex: "mainPhoto", + }, + { + title: "售卖价", + width: "8%", + dataIndex: "sellPrice", + }, + { + title: "折扣价", + width: "8%", + dataIndex: "discountPrice", + }, + { + title: "浏览量", + width: "8%", + dataIndex: "viewsNum", + }, + ], + news: [ + { + title: "标题", + dataIndex: "title", + }, + { + title: "分类", + dataIndex: "categoryName", + }, + { + title: "发布状态", + dataIndex: "status", + customRender: function (status) { + switch (status) { + case 1: + return '未发布' + case 2: + return '已发布' + } + } + }, + { + title: "阅读量", + dataIndex: "viewsNum", + }, + { + title: "创建时间", + dataIndex: "createDate", + }, + ], + announcement: [ + { + title: "标题", + dataIndex: "title", + width: "16%", + }, + { + title: "推送对象", + dataIndex: "object", + width: "10%", + customRender: function (object) { + switch (object) { + case 1: + return '全部' + break; + case 2: + return '住户' + break; + case 3: + return '业主' + break; + case 4: + return '租户' + break; + case 5: + return '管家' + break; + default: + break; + } + } + }, + { + title: "状态", + dataIndex: "status", + width: "10%", + customRender: function (status) { + switch (status) { + case 1: + return '未发布' + break; + case 2: + return '已发布' + break; + default: + break; + } + } + }, + { + title: "内容", + dataIndex: "content", + width: "13%", + }, + { + title: "阅读量", + dataIndex: "readingVolume", + width: "10%", + }, + { + title: "附件下载次数", + dataIndex: "downloadNum", + width: "10%", + }, + { + title: "更新时间", + dataIndex: "modifyDate", + width: "14%", + } + ], + activity:[ + { + title: "发布时间", + dataIndex: "createDate", + width: "12%", + }, + { + title: "图片", + dataIndex: "imgpic", + width: "10%", + scopedSlots: { customRender: "imgpic"} + }, + { + title: "活动状态", + dataIndex: "status", + width: "6%", + customRender: function (status) { + switch (status) { + case 1: + return '报名未开始' + case 2: + return '报名进行中' + case 3: + return '活动未开始' + case 4: + return '活动进行中' + case 5: + return '活动已结束' + } + } + }, + { + title: "活动标题", + dataIndex: "title", + width: "8%", + }, + { + title: "活动地点", + dataIndex: "activityAddress", + width: "8%", + }, + { + title: "是否显示在app", + dataIndex: "isShow", + width: "5%", + customRender: function (isShow) { + switch (isShow) { + case true: + return '显示' + case false: + return '不显示' + } + } + }, + { + title: "主办方", + dataIndex: "organizerName", + width: "8%", + }, + { + title: "活动内容", + dataIndex: "content", + width: "8%", + }, + { + title: "报名人数", + dataIndex: "registrationNum", + width: "5%", + }, + { + title: "报名时间", + width: "12%", + customRender: function (data) { + return (data.registrationStartTime + '——' + data.registrationEndTime) + } + }, + { + title: "活动时间", + width: "12%", + customRender: function (data) { + return (data.activityStartTime + '——' + data.activityEndTime) + } + } + ] +} +export const pagination = { + current: 1, + total: 0, + pageSize: 5, + showTotal: (total) => `共 ${total} 条`, +} \ No newline at end of file diff --git a/src/views/Shop/SwiperManage/index.vue b/src/views/Shop/SwiperManage/index.vue new file mode 100644 index 0000000..8a49538 --- /dev/null +++ b/src/views/Shop/SwiperManage/index.vue @@ -0,0 +1,307 @@ + + + + +