diff --git a/.env.development b/.env.development index b295f10..6b724c6 100644 --- a/.env.development +++ b/.env.development @@ -8,5 +8,5 @@ VUE_APP_BASE_API = '/api' # VUE_APP_URL = "http://jianguan.yyundong.com/shgfapi" -VUE_APP_URL = "http://192.168.0.103:7201" +VUE_APP_URL = "http://192.168.2.109:7201" ##VUE_APP_URL = "http://8.130.39.13:8112" diff --git a/src/api/commodity/commodity.js b/src/api/commodity/commodity.js index e69de29..09a1be0 100644 --- a/src/api/commodity/commodity.js +++ b/src/api/commodity/commodity.js @@ -0,0 +1,41 @@ +import request from '@/utils/request' + +export default { + + // 获取商品列表 + goodsListPage: function(data) { + return request({ + url: '/lpkgoods/goodsListPage', + method: 'post', + data: data + }); + }, + + // 新增、保存商品 + saveGoods: function(data) { + return request({ + url: '/lpkgoods/saveGoods', + method: 'post', + data: data + }); + }, + + // 初始化商品 + goodsInit: function(data) { + return request({ + url: '/lpkgoods/goodsInit/'+data, + method: 'get' + }); + }, + + // 删除商品 + deleteGoods: function(data) { + return request({ + url: '/lpkgoods/deleteGoods/'+data, + method: 'delete' + }); + }, + + +} + diff --git a/src/api/marketingCard/marketingCard.js b/src/api/marketingCard/marketingCard.js new file mode 100644 index 0000000..b9dafb1 --- /dev/null +++ b/src/api/marketingCard/marketingCard.js @@ -0,0 +1,58 @@ +import request from '@/utils/request' + +export default { + + // 礼包设置 + + // 获取礼包列表 + giftBagListPage: function(data) { + return request({ + url: '/lpkgiftbag/giftBagListPage', + method: 'post', + data: data + }); + }, + + // 礼包选择商品时,返回的商品列表 + getGoods: function(data) { + return request({ + url: '/lpkgoods/getGoods', + method: 'post', + data: data + }); + }, + + + // 新增、保存礼包 + saveGiftBag: function(data) { + return request({ + url: '/lpkgiftbag/saveGiftBag', + method: 'post', + data: data + }); + }, + + // 初始化礼包 + giftBagInit: function(data) { + return request({ + url: '/lpkgiftbag/giftBagInit/'+data, + method: 'get' + }); + }, + + + + + // 提货卡设置 + + // 获取提货卡页面 礼包列表 + giftBagList: function(data) { + return request({ + url: '/lpkgiftbag/giftBagList', + method: 'get', + data: data + }); + }, + +} + diff --git a/src/api/pickupPoint/pickupPoint.js b/src/api/pickupPoint/pickupPoint.js new file mode 100644 index 0000000..6d6fbd1 --- /dev/null +++ b/src/api/pickupPoint/pickupPoint.js @@ -0,0 +1,41 @@ +import request from '@/utils/request' + +export default { + + // 获取提货点列表 + storeListPage: function(data) { + return request({ + url: '/lpkstore/storeListPage', + method: 'post', + data: data + }); + }, + + // 新增、保存提货点 + saveStore: function(data) { + return request({ + url: '/lpkstore/saveStore', + method: 'post', + data: data + }); + }, + + // 初始化提货点 + storeInit: function(data) { + return request({ + url: '/lpkstore/storeInit/'+data, + method: 'get' + }); + }, + + // 删除提货点 + deleteStore: function(data) { + return request({ + url: '/lpkstore/deleteStore/'+data, + method: 'delete' + }); + }, + + +} + diff --git a/src/api/portal/Upload.js b/src/api/portal/Upload.js index 76bd232..4d83396 100644 --- a/src/api/portal/Upload.js +++ b/src/api/portal/Upload.js @@ -4,7 +4,7 @@ import qs from 'qs' const base = process.env.VUE_APP_URL // 文件上传接口 -export const uploadFile = '/api/file/upload' +export const uploadFile = process.env.VUE_APP_BASE_API + '/file/upload' // export const uploadFile = process.env.VUE_APP_BASE_API + '/customer/file/upload' diff --git a/src/components/uploadFile/upload_yanchejianchaTuBiao.vue b/src/components/uploadFile/upload_yanchejianchaTuBiao.vue index a3b9a45..6ff9c71 100644 --- a/src/components/uploadFile/upload_yanchejianchaTuBiao.vue +++ b/src/components/uploadFile/upload_yanchejianchaTuBiao.vue @@ -1,6 +1,6 @@ - - - + + + + + + + @@ -137,7 +154,7 @@ }, loadList() { this.tableLoading = true - req.brandListPage(this.queryParams).then((resp) => { + req.goodsListPage(this.queryParams).then((resp) => { this.tableLoading = false if (resp.success) { const data = resp.data @@ -185,7 +202,7 @@ }, toRelevancyInfo(row) { - const tip = '请确认是否删除所选记录?' + const tip = '请确认是否删除所选商品?' this.$confirm(tip, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -197,7 +214,7 @@ spinner: 'el-icon-loading', background: 'rgba(0, 0, 0, 0.7)' }) - req.brandDelBySids(row.id).then((resp) => { + req.deleteGoods(row.sid).then((resp) => { loading.close() if (resp.success) { this.$message({ diff --git a/src/views/marketingCard/index.vue b/src/views/marketingCard/index.vue index 02409e3..42c6db8 100644 --- a/src/views/marketingCard/index.vue +++ b/src/views/marketingCard/index.vue @@ -1,8 +1,250 @@ + import req from '@/api/marketingCard/marketingCard.js' + import ButtonBar from '@/components/ButtonBar' + import Pagination from '@/components/pagination' + import pageye from '@/components/pagination/pageye' + import divAdd from './indexAdd.vue' + import divInfo from './indexInfo.vue' + export default { + name: 'SupplierBankInfoIndex', + components: { + ButtonBar, + Pagination, + pageye, + divAdd, + divInfo + }, + data() { + return { + btndisabled: false, + viewState: 1, // 1、列表 2、添加 3、修改 4、查看 + isSearchShow: false, + searchxianshitit: '显示查询条件', + tableLoading: false, + dataList: [], + btnList: [{ + type: 'primary', + size: 'small', + icon: 'plus', + btnKey: 'toAdd', + btnLabel: '新增' + }, + { + type: 'info', + size: 'small', + icon: 'cross', + btnKey: 'doClose', + btnLabel: '关闭' + } + ], + queryParams: { + current: 1, + size: 10, + total: 0, + params: { + name: '' + } + }, + sids: [] + } + }, + mounted() { + this.$refs['btnbar'].setButtonList(this.btnList) + }, + created() { + this.loadList() + }, + methods: { + // 搜索条件效果 + clicksearchShow() { + this.isSearchShow = !this.isSearchShow + if (this.isSearchShow) { + this.searchxianshitit = '隐藏查询条件' + } else { + this.searchxianshitit = '显示查询条件' + } + }, + btnHandle(btnKey) { + switch (btnKey) { + case 'toAdd': + this.toAdd() + break + case 'doClose': + this.doClose() + break + default: + break + } + }, + loadList() { + this.tableLoading = true + req.giftBagListPage(this.queryParams).then((resp) => { + this.tableLoading = false + if (resp.success) { + const data = resp.data + this.queryParams.total = data.total + this.dataList = data.records + } else { + // 根据resp.code进行异常情况处理 + this.dataList = [] + this.queryParams.total = 0 + } + }).catch(() => { + this.tableLoading = false + }) + }, - \ No newline at end of file diff --git a/src/views/marketingCard/indexAdd.vue b/src/views/marketingCard/indexAdd.vue new file mode 100644 index 0000000..8288881 --- /dev/null +++ b/src/views/marketingCard/indexAdd.vue @@ -0,0 +1,427 @@ + + + + \ No newline at end of file diff --git a/src/views/marketingCard/indexInfo.vue b/src/views/marketingCard/indexInfo.vue new file mode 100644 index 0000000..0fca57d --- /dev/null +++ b/src/views/marketingCard/indexInfo.vue @@ -0,0 +1,242 @@ + + + + \ No newline at end of file diff --git a/src/views/marketingCard/pickupCardSet.vue b/src/views/marketingCard/pickupCardSet.vue index 02409e3..c35e409 100644 --- a/src/views/marketingCard/pickupCardSet.vue +++ b/src/views/marketingCard/pickupCardSet.vue @@ -1,8 +1,190 @@ + \ No newline at end of file diff --git a/src/views/pickupPoint/index.vue b/src/views/pickupPoint/index.vue index 02409e3..0680c12 100644 --- a/src/views/pickupPoint/index.vue +++ b/src/views/pickupPoint/index.vue @@ -1,8 +1,230 @@ + import req from '@/api/pickupPoint/pickupPoint.js' + import ButtonBar from '@/components/ButtonBar' + import Pagination from '@/components/pagination' + import pageye from '@/components/pagination/pageye' + import divAdd from './indexAdd.vue' + export default { + name: 'SupplierBankInfoIndex', + components: { + ButtonBar, + Pagination, + pageye, + divAdd + }, + data() { + return { + btndisabled: false, + viewState: 1, // 1、列表 2、添加 3、修改 4、查看 + isSearchShow: false, + searchxianshitit: '显示查询条件', + tableLoading: false, + dataList: [], + btnList: [ + { + type: 'primary', + size: 'small', + icon: 'plus', + btnKey: 'toAdd', + btnLabel: '新增' + }, + { + type: 'info', + size: 'small', + icon: 'cross', + btnKey: 'doClose', + btnLabel: '关闭' + } + ], + queryParams: { + current: 1, + size: 10, + total: 0, + params: { + realName: '', + mobile: '', + + } + }, + sids: [] + } + }, + mounted() { + this.$refs['btnbar'].setButtonList(this.btnList) + }, + created() { + this.loadList() + }, + methods: { + // 搜索条件效果 + clicksearchShow() { + this.isSearchShow = !this.isSearchShow + if (this.isSearchShow) { + this.searchxianshitit = '隐藏查询条件' + } else { + this.searchxianshitit = '显示查询条件' + } + }, + btnHandle(btnKey) { + switch (btnKey) { + case 'toAdd': + this.toAdd() + break + case 'doClose': + this.doClose() + break + default: + break + } + }, + loadList() { + this.tableLoading = true + req.storeListPage(this.queryParams).then((resp) => { + this.tableLoading = false + if (resp.success) { + const data = resp.data + this.queryParams.total = data.total + this.dataList = data.records + } else { + // 根据resp.code进行异常情况处理 + this.dataList = [] + this.queryParams.total = 0 + } + }).catch(() => { + this.tableLoading = false + }) + }, + + // 序号 + indexMethod(index) { + var pagestart = (this.queryParams.current - 1) * this.queryParams.size + var pageindex = index + 1 + pagestart + return pageindex + }, + dosearch() { + this.queryParams.current = 1 + this.loadList() + }, + resetQuery() { + this.queryParams = { + current: 1, + size: 10, + total: 0, + params: { + name: '', + } + } + this.loadList() + }, + toAdd() { + this.viewState = 2 + this.$refs['divadd'].showAdd() + }, + doClose() { + this.$store.dispatch('tagsView/delView', this.$route) + this.$router.go(-1) + }, + toRelevancy(row) { + this.viewState = 3 + this.$refs['divadd'].showEdit(row) + }, + toRelevancyInfo(row) { - \ No newline at end of file diff --git a/src/views/pickupPoint/indexAdd.vue b/src/views/pickupPoint/indexAdd.vue new file mode 100644 index 0000000..b1559f8 --- /dev/null +++ b/src/views/pickupPoint/indexAdd.vue @@ -0,0 +1,172 @@ + + + + \ No newline at end of file diff --git a/src/views/userInfo/index.vue b/src/views/userInfo/index.vue index bb57576..e68af20 100644 --- a/src/views/userInfo/index.vue +++ b/src/views/userInfo/index.vue @@ -33,7 +33,7 @@
- +