diff --git a/src/views/storeBill/detail.vue b/src/views/storeBill/detail.vue index 3b54303..a202d88 100644 --- a/src/views/storeBill/detail.vue +++ b/src/views/storeBill/detail.vue @@ -6,13 +6,21 @@ - + + + + + + + + 查询 - 重置 + 重置 @@ -41,6 +49,8 @@ import Popup from '@/components/popup/index.vue' import { usePaging } from '@/hooks/usePaging' import { apiStoreBillDetail } from '@/api/store_finance_flow.ts' +import { apiStaffLists } from '@/api/goodsList.ts' +import { reactive } from 'vue'; const emit = defineEmits(['success', 'close']) @@ -52,21 +62,26 @@ const popupTitle = computed(() => { return '账单详情' }) -let queryParams = { +let queryParams = reactive({ id: "", keyword: "", date_type: "", date: "", staff_id: "", -} +}) const { pager, getLists, resetParams, resetPage } = usePaging({ fetchFun: apiStoreBillDetail, params: queryParams }) +const handResetParams = () => { + queryParams.keyword = '' + queryParams.staff_id = '' + getLists() +} // 提交按钮 @@ -82,9 +97,6 @@ const open = (data: any) => { data.year + '-W' + data.week : data.time - - console.log(queryParams) - // queryParams.id = id popupRef.value?.open() getLists() } @@ -98,4 +110,11 @@ const handleClose = () => { defineExpose({ open, }) + +const staffList = ref([]) +const getStaffList = async () => { + let res = await apiStaffLists({ page_no: 1, page_size: 100 }) + staffList.value = res.lists +} +getStaffList() \ No newline at end of file diff --git a/src/views/storeBill/index.vue b/src/views/storeBill/index.vue index fdeb073..6b99e69 100644 --- a/src/views/storeBill/index.vue +++ b/src/views/storeBill/index.vue @@ -51,7 +51,7 @@ 详情 - 下载 + @@ -114,16 +114,12 @@ const handleDetail = async (row) => { } -const handleDownlon = (row) => { +const handleDownlon = async (row) => { + let res = await apiStoreBillDownload({ id: row.id }) const a = document.createElement('a') a.href = 'https://multi-store.crmeb.net/store/bill/index' a.click() - } - - - - getLists() \ No newline at end of file diff --git a/src/views/store_product_unit/components/myTable.vue b/src/views/store_product_unit/components/myTable.vue deleted file mode 100644 index f6bf4cc..0000000 --- a/src/views/store_product_unit/components/myTable.vue +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/src/views/store_product_unit/detail.vue b/src/views/store_product_unit/detail.vue deleted file mode 100644 index baf0e02..0000000 --- a/src/views/store_product_unit/detail.vue +++ /dev/null @@ -1,71 +0,0 @@ - - - - - - 你干嘛 - 收银订单:¥200.00 - 核销订单:¥200.00 - 配送订单:¥200.00 - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/views/store_product_unit/edit.vue b/src/views/store_product_unit/edit.vue deleted file mode 100644 index 4428fa1..0000000 --- a/src/views/store_product_unit/edit.vue +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/store_product_unit/index1.vue b/src/views/store_product_unit/index1.vue deleted file mode 100644 index 18ab91f..0000000 --- a/src/views/store_product_unit/index1.vue +++ /dev/null @@ -1,151 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - 查询 - 重置 - - - - - - - - - - - 新增 - - - - - - - - - - - - - - - - - - - - - 编辑 - - - 详情 - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/views/store_product_unit/index.vue b/src/views/workbench/delivery/index.vue similarity index 99% rename from src/views/store_product_unit/index.vue rename to src/views/workbench/delivery/index.vue index 63212fb..e4c20ac 100644 --- a/src/views/store_product_unit/index.vue +++ b/src/views/workbench/delivery/index.vue @@ -154,7 +154,7 @@ const pieOption = reactive( }, series: [ { - name: 'Access From', + name: '', type: 'pie', radius: '50%', data: [ diff --git a/src/views/workbench/index.vue b/src/views/workbench/index.vue index aebbb94..b050343 100644 --- a/src/views/workbench/index.vue +++ b/src/views/workbench/index.vue @@ -1,142 +1,128 @@ - - - - 商品概况 - - 时间筛选: - - 查询 - - - - - - - - - - - {{ item.name }} - {{ item.num }} - 环比增长: {{ - item.percent }}% - - - - - - - - - - 商品排行 - - 时间筛选: - - 查询 - - - - - - - - - - - - - - - - - - - - {{ row.profit }}% - - + + + + + + + + + + + + + + + + + + + + 营业趋势 + + + + + + + + 交易数据 + + + + + + + + 交易类型 + + + + + + + + 配送订单统计 + + + - - - - + + + 配送订单统计 + + + - - + \ No newline at end of file diff --git a/src/views/workbench/index1.vue b/src/views/workbench/index1.vue deleted file mode 100644 index b050343..0000000 --- a/src/views/workbench/index1.vue +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - 营业趋势 - - - - - - - - 交易数据 - - - - - - - - 交易类型 - - - - - - - - 配送订单统计 - - - - - - - 配送订单统计 - - - - - - \ No newline at end of file diff --git a/src/views/workbench/product/index.vue b/src/views/workbench/product/index.vue new file mode 100644 index 0000000..aebbb94 --- /dev/null +++ b/src/views/workbench/product/index.vue @@ -0,0 +1,290 @@ + + + + + 商品概况 + + 时间筛选: + + 查询 + + + + + + + + + + + {{ item.name }} + {{ item.num }} + 环比增长: {{ + item.percent }}% + + + + + + + + + + 商品排行 + + 时间筛选: + + 查询 + + + + + + + + + + + + + + + + + + + + {{ row.profit }}% + + + + + + + + + + + +