diff --git a/i8n.js b/i8n.js index b33651b..fd50653 100644 --- a/i8n.js +++ b/i8n.js @@ -53,7 +53,7 @@ module.exports = { CK_KS_121: '订单开票', CK_KS_122: '伞下新增安置业绩', CK_KS_123: '订单日期', - CK_KS_124: '出货明细汇总统计', + CK_KS_124: '产品销售统计', CK_KS_125: '报单汇总', CK_KS_126: '累计金额', CK_KS_127: '出库单', diff --git a/src/api/logistics.js b/src/api/logistics.js index e459b71..a2eed7b 100644 --- a/src/api/logistics.js +++ b/src/api/logistics.js @@ -2,76 +2,73 @@ import request from '@/utils/request' // 商品订单列表接口 export function getOrderLists(params) { - return request({ - url: '/sale/manage/order/order-invoicing-list', - method: 'get', - params - }) + return request({ + url: '/sale/manage/order/order-invoicing-list', + method: 'get', + params + }) } export function getOrderList(params) { - return request({ - url: '/sale/manage/order/query-order-list', - method: 'get', - params - }) + return request({ + url: '/sale/manage/order/query-order-list', + method: 'get', + params + }) } // 查看商品订单列表接口 export function getFindOrderList(params) { - return request({ - url: '/sale/manage/order/get-order-list', - method: 'get', - params - }) + return request({ + url: '/sale/manage/order/get-order-list', + method: 'get', + params + }) } -//订单类型枚举 +// 订单类型枚举 export function getOrderType(params) { - return request({ - url: '/system/pub/enums/order-type', - method: 'get', - params - }) + return request({ + url: '/system/pub/enums/order-type', + method: 'get', + params + }) } -//撤单类型枚举 +// 撤单类型枚举 export function getCancleType(params) { - return request({ - url: 'system/pub/enums/cancel-the-order', - method: 'get', - params - }) + return request({ + url: 'system/pub/enums/cancel-the-order', + method: 'get', + params + }) } -//出货明细汇总统计订单类型下拉选 +// 产品销售统计订单类型下拉选 export function getOrderTypeRepurchaseAll(params) { - return request({ - url: '/system/pub/enums/order-shipment', - method: 'get', - params - }) + return request({ + url: '/system/pub/enums/order-shipment', + method: 'get', + params + }) } - - -//伞下直推新增业绩-订单类型下拉选 +// 伞下直推新增业绩-订单类型下拉选 export function getUnderAddOrderType(params) { - return request({ - url: '/system/pub/enums/order-business', - method: 'get', - params - }) + return request({ + url: '/system/pub/enums/order-business', + method: 'get', + params + }) } -//伞下直推新增业绩(新)订单类型下拉选 +// 伞下直推新增业绩(新)订单类型下拉选 export function getUnderAddOrderTypeNew(params) { - return request({ - url: '/system/pub/enums/orderUp-business', - method: 'get', - params - }) + return request({ + url: '/system/pub/enums/orderUp-business', + method: 'get', + params + }) } - -//收益类型 +// 收益类型 export function getYieldType(params) { return request({ url: '/system/manage/bd-bonus-items/list', @@ -79,7 +76,7 @@ export function getYieldType(params) { params }) } -//收益状态 +// 收益状态 export function getYieldStatus(params) { return request({ url: '/system/pub/enums/bonus-income-status', @@ -88,87 +85,83 @@ export function getYieldStatus(params) { }) } -//发货方式 +// 发货方式 export function getDeliveryList(params) { - return request({ - url: '/system/pub/enums/delivery-list', - method: 'get', - params - }) + return request({ + url: '/system/pub/enums/delivery-list', + method: 'get', + params + }) } - - -//支付方式 +// 支付方式 export function getOrderPayType(params) { - return request({ - url: '/system/pub/enums/order-pay-type', - method: 'get', - params - }) + return request({ + url: '/system/pub/enums/order-pay-type', + method: 'get', + params + }) } -//查询自提清单 +// 查询自提清单 export function getOrderSelfList(data) { - return request({ - url: '/sale/manage/order-business/self-list?pageNum=' + data.pageNum + '&pageSize=' + data.pageSize, - method: 'post', - data - }) + return request({ + url: '/sale/manage/order-business/self-list?pageNum=' + data.pageNum + '&pageSize=' + data.pageSize, + method: 'post', + data + }) } -//自提清单-同意1/驳回3 +// 自提清单-同意1/驳回3 export function selfApprove(data) { - return request({ - url: '/sale/manage/order-business/self-approve', - method: 'post', - data - }) + return request({ + url: '/sale/manage/order-business/self-approve', + method: 'post', + data + }) } - -//查询修改地址列表 +// 查询修改地址列表 export function getModifyAddress(params) { - return request({ - url: '/member/manage/self-modify-address/list', - method: 'get', - params - }) + return request({ + url: '/member/manage/self-modify-address/list', + method: 'get', + params + }) } -//自提清单-申请自提 +// 自提清单-申请自提 export function saveSelfOrder(data) { - return request({ - url: '/sale/manage/order-business/self-order', - method: 'post', - data - }) + return request({ + url: '/sale/manage/order-business/self-order', + method: 'post', + data + }) } -//修改地址查询详情 +// 修改地址查询详情 export function queryPass(data) { - return request({ - url: '/member/manage/self-modify-address/queryPass', - method: 'post', - data - }) + return request({ + url: '/member/manage/self-modify-address/queryPass', + method: 'post', + data + }) } -//修改地址驳回 +// 修改地址驳回 export function rejectAddress(data) { - return request({ - url: '/member/manage/self-modify-address/reject', - method: 'post', - data - }) + return request({ + url: '/member/manage/self-modify-address/reject', + method: 'post', + data + }) } -//订单添加开票备注 +// 订单添加开票备注 export function updateOrderRemarks(data) { - return request({ - url: '/sale/manage/order/update-order-remarks', - method: 'post', - data - }) + return request({ + url: '/sale/manage/order/update-order-remarks', + method: 'post', + data + }) } - diff --git a/src/api/statistics.js b/src/api/statistics.js index 3e7a050..5636375 100644 --- a/src/api/statistics.js +++ b/src/api/statistics.js @@ -125,19 +125,19 @@ export function getResettleAchieveNew(params) { }) } -// 出货明细汇总统计列表 +// 产品销售统计列表 export function getShippingSummary(params) { return request({ - url: '/report/manager/member-report/product-shipping-details-list', + url: '/report/manager/member-report/product-shipping', method: 'get', params }) } -// 出货明细汇总统计详情列表 +// 产品销售统计详情列表 export function getShippingSummaryDetail(params) { return request({ - url: '/report/manager/member-report/product-shipping-details-info-list', + url: '/report/manager/member-report/product-shipping-details', method: 'get', params }) diff --git a/src/assets/languages/zhCn.js b/src/assets/languages/zhCn.js index 281f0b2..9a9fa3d 100644 --- a/src/assets/languages/zhCn.js +++ b/src/assets/languages/zhCn.js @@ -1443,7 +1443,7 @@ const zhCn = { PleaseEnterTheDetailedAddress: "请输入详细地址", PrefectureAndCity: "地市", districtAndCounty: "区县", - ShipmentDetailsSummaryStatistics: "出货明细汇总统计", + ShipmentDetailsSummaryStatistics: "产品销售统计", ConsumptionType: "消费类型", quantity: "数量", NewResettlementPerformanceUnderTheUmbrella: "伞下新增安置业绩", diff --git a/src/router/index.js b/src/router/index.js index 1b7fe34..5701616 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -2252,16 +2252,16 @@ export const constantRoutes = [ meta: { title: '伞下直推' } }, { - path: 'shippingSummary', - name: 'ShippingSummary', - component: () => import('@/views/statistics/shippingSummary'), - meta: { title: '出货明细汇总统计' } + path: 'productSaleStatistics', + name: 'ProductSaleStatistics', + component: () => import('@/views/statistics/productSaleStatistics'), + meta: { title: '产品销售统计' } }, { - path: 'shippingSummaryDetail', - name: 'ShippingSummaryDetail', - component: () => import('@/views/statistics/shippingSummaryDetail'), - meta: { title: '出货明细汇总统计' }, + path: 'productSaleStatisticsDetail', + name: 'ProductSaleStatisticsDetail', + component: () => import('@/views/statistics/productSaleStatisticsDetail'), + meta: { title: '产品销售统计详情' }, hidden: true }, { diff --git a/src/utils/date.js b/src/utils/date.js index fc15ef7..a89836b 100644 --- a/src/utils/date.js +++ b/src/utils/date.js @@ -4,3 +4,12 @@ export function getBeforeDays(n = 1) { return dayjs().subtract(n, 'day').format('YYYY-MM-DD') } +// 获取本月第一天 +export function getMonthFirstDay() { + return dayjs().startOf('month').format('YYYY-MM-DD') +} + +// 获取本月最后一天 +export function getMonthLastDay() { + return dayjs().endOf('month').format('YYYY-MM-DD') +} diff --git a/src/views/goodsManage/productList/index.vue b/src/views/goodsManage/productList/index.vue index d374ba4..5c7c800 100644 --- a/src/views/goodsManage/productList/index.vue +++ b/src/views/goodsManage/productList/index.vue @@ -21,6 +21,11 @@ + + + + + @@ -271,6 +276,12 @@ width="120" :label="'产品编号'" /> + - - + + + + + + + + + + + + - - - - - - - - - - - - + + + @@ -58,7 +50,7 @@ " > {{ '搜索' }} - + {{ '重置' }} @@ -82,58 +74,40 @@ @selection-change="handleSelectionChange" > + - - - - {{ scope.row.price | numFilter }} - - - - - - {{ (scope.row.awardsPrice | numFilter) || "0.00" }} - - - - {{ scope.row.priceTotal | numFilter }} + + 查看详情 + @@ -152,11 +126,16 @@ - diff --git a/src/views/statistics/shippingSummary.vue b/src/views/statistics/shippingSummary.vue deleted file mode 100644 index 390d8c7..0000000 --- a/src/views/statistics/shippingSummary.vue +++ /dev/null @@ -1,354 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - { - getSearch(); - getCzNum(); - } - " - > - {{ '搜索' }} - - {{ '重置' }} - - - - - - - - - - {{ '导出' }} - - - - - - - - - - - - - - - - - - - - - - - - {{ scope.row.productTotalPrice | numFilter }} - - - - - - {{ '查看详情' }} - - - - - - - - - - - - - - \ No newline at end of file