diff --git a/src/api/mall/product/product.ts b/src/api/mall/product/product.ts index 6ba7168..80b606f 100644 --- a/src/api/mall/product/product.ts +++ b/src/api/mall/product/product.ts @@ -45,6 +45,11 @@ export const getStoreProductPage = async (params: StoreProductPageReqVO) => { return await request.get({ url: `/product/store-product/page`, params }) } +// 查询已选商品列表 +export const getSelectProductPage = async (data) => { + return await request.post({ url: `/product/store-product/coupon/page`, data }) +} + // 查询商品详情 export const getStoreProduct = async (id: number) => { return await request.get({ url: `/product/store-product/get?id=` + id }) diff --git a/src/api/mall/product/shippingTemplates/index.ts b/src/api/mall/product/shippingTemplates/index.ts index 2be978c..6d65130 100644 --- a/src/api/mall/product/shippingTemplates/index.ts +++ b/src/api/mall/product/shippingTemplates/index.ts @@ -1,6 +1,6 @@ import request from '@/config/axios' -export interface DiscountCouponVO { +export interface ShippingTemplatesVO { id: number name: string type: boolean @@ -11,31 +11,31 @@ export interface DiscountCouponVO { } // 查询运费模板列表 -export const getDiscountCouponPage = async (params: DiscountCouponPageReqVO) => { +export const getShippingTemplatesPage = async (params: ShippingTemplatesPageReqVO) => { return await request.get({ url: `/product/shipping-templates/page`, params }) } // 查询运费模板详情 -export const getDiscountCoupon = async (id: number) => { +export const getShippingTemplates = async (id: number) => { return await request.get({ url: `/product/shipping-templates/get?id=` + id }) } // 新增运费模板 -export const createDiscountCoupon = async (data,id) => { +export const createShippingTemplates = async (data,id) => { return await request.post({ url: `/product/shipping-templates/create/`+ id, data }) } // 修改运费模板 -export const updateDiscountCoupon = async (data: DiscountCouponVO) => { +export const updateShippingTemplates = async (data: ShippingTemplatesVO) => { return await request.put({ url: `/product/shipping-templates/update`, data }) } // 删除运费模板 -export const deleteDiscountCoupon = async (id: number) => { +export const deleteShippingTemplates = async (id: number) => { return await request.delete({ url: `/product/shipping-templates/delete?id=` + id }) } // 导出运费模板 Excel -export const exportDiscountCoupon = async (params) => { +export const exportShippingTemplates = async (params) => { return await request.download({ url: `/product/shipping-templates/export-excel`, params }) } diff --git a/src/api/system/storeBackupRecord/index.js b/src/api/system/storeBackupRecord/index.js new file mode 100644 index 0000000..d8a24cb --- /dev/null +++ b/src/api/system/storeBackupRecord/index.js @@ -0,0 +1,27 @@ +import request from '@/config/axios' + +// 获得备份记录分页 +export function getStoreBackupRecordPage(query) { + return request.get({ + url: '/system/backup/page', + params: query + }) +} + +// 创建备份记录 +export function createStoreBackupRecord() { + return request.post({ + url: '/system/backup/backup', + }) +} + + +// 还原备份记录 +export function rollbackBackupRecord() { + return request.post({ + url: '/system/backup/revertBackup', + }) +} + + + diff --git a/src/hooks/web/useCache.ts b/src/hooks/web/useCache.ts index 6d2a931..4f1d45f 100644 --- a/src/hooks/web/useCache.ts +++ b/src/hooks/web/useCache.ts @@ -13,7 +13,9 @@ export const CACHE_KEY = { THEME: 'theme', LAYOUT: 'layout', ROLE_ROUTERS: 'roleRouters', - DICT_CACHE: 'dictCache' + DICT_CACHE: 'dictCache', + BACK_UP:'back_up', // 备份 + RESTORE:'restore', // 还原 } export const useCache = (type: CacheType = 'localStorage') => { diff --git a/src/views/mall/order/storeAfterSales/OrderDetail.vue b/src/views/mall/order/storeAfterSales/OrderDetail.vue index e478d92..6807d0b 100644 --- a/src/views/mall/order/storeAfterSales/OrderDetail.vue +++ b/src/views/mall/order/storeAfterSales/OrderDetail.vue @@ -12,15 +12,6 @@ 已审核 用户已发货 退款成功 -<<<<<<< HEAD - - - 正常 - 用户取消 - 商家拒绝 - - {{ DetailData.refundAmount }} -======= 用户取消 商家拒绝 @@ -29,13 +20,12 @@ - {{ DetailData.refundAmount.toFixed(2) }} ->>>>>>> master + {{ DetailData.refundAmount}} {{ DetailData.reasons }} {{ DetailData.explains }} - + {{ formatDate(DetailData.createTime)}} @@ -45,16 +35,27 @@ {{ DetailData.phoneNumber }} {{ DetailData.address }} - + {{ DetailData.deliveryName }} {{ DetailData.deliverySn }} 物流追踪 + {{ DetailData.returnPolicy }} - - {{item.actionName}} - {{item.acceptStation}} - {{item.acceptTime}} - - + + + + + + + + + + {{ item.acceptStation }} + + ->>>>>>> master diff --git a/src/views/mall/product/discountCoupon/DiscountCouponForm.vue b/src/views/mall/product/discountCoupon/DiscountCouponForm.vue index bcbbbd1..b775cca 100644 --- a/src/views/mall/product/discountCoupon/DiscountCouponForm.vue +++ b/src/views/mall/product/discountCoupon/DiscountCouponForm.vue @@ -327,7 +327,10 @@ const queryParams = reactive({ isPostage: null, isShow: 1, stock: 1, - cateId: 0 + cateId: 0, + ids: [], + couponScope: null + }) const multipleSelection = ref([]) const initCouponForm = () => { @@ -540,14 +543,21 @@ const close = () => { const getProductList = async () => { loading.value = true try { - const listData = await StoreProductApi.getStoreProductPage(queryParams) - productList.value = listData.list - productTotal.value = listData.total - // 点击编辑时回显表格勾选 - for (let i = 0; i < productList.value.length; i++) { - if (idList.value.includes(productList.value[i].id)) { - console.log(productList.value[i].id, 'testslkdfjlkds') - multipleTableRef.value.toggleRowSelection(productList.value[i]) + if (visitDetail.value) { + queryParams.couponScope = formData.value.couponScope + queryParams.ids = JSON.parse(formData.value.scopeValues); + const listData = await StoreProductApi.getSelectProductPage(queryParams) + productList.value = listData.list + productTotal.value = listData.total + } else { + const listData = await StoreProductApi.getStoreProductPage(queryParams) + productList.value = listData.list + productTotal.value = listData.total + // 点击编辑时回显表格勾选 + for (let i = 0; i < productList.value.length; i++) { + if (idList.value.includes(productList.value[i].id)) { + multipleTableRef.value.toggleRowSelection(productList.value[i]) + } } } } finally { diff --git a/src/views/system/storeBackupRecord/index.vue b/src/views/system/storeBackupRecord/index.vue new file mode 100644 index 0000000..a97f162 --- /dev/null +++ b/src/views/system/storeBackupRecord/index.vue @@ -0,0 +1,210 @@ + + + + + 备份 + + 还原备份 + + 清除选择 + + + + + + + + + + + + + + + + + + + +
{{item.acceptStation}}
{{item.acceptTime}}