diff --git a/src/api/user.ts b/src/api/user.ts index a24161f85..b827767df 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -45,4 +45,9 @@ export function apiUserDelete(params: any) { // 用户表详情 export function apiUserDetail(params: any) { return request.get({ url: '/user/user/detail', params }) +} + +// 用户采购款明细、余额明细、礼品券明细、返还金明细 type 1,2,3,4(用户采购款明细、余额明细、礼品券明细、返还金明细) +export function apiUserFoundList(params: any) { + return request.get({ url: '/user/user/fundList', params }) } \ No newline at end of file diff --git a/src/views/statistics/transaction/index.vue b/src/views/statistics/transaction/index.vue index 0229f47f6..03705a0b0 100644 --- a/src/views/statistics/transaction/index.vue +++ b/src/views/statistics/transaction/index.vue @@ -309,12 +309,13 @@ const getData = () => { // 清空echarts 数据 visitorOption.xAxis.data = [] visitorOption.series = [] - - visitorOption.legend.data = res.series.map((item: any) => item.name); + console.log(res); + + visitorOption.legend.data = Object.values(res.series).map((item: any) => item.name); // 写入从后台拿来的数据 - visitorOption.xAxis.data = res.xAxis; - visitorOption.series = res.series.map((item: any) => { + visitorOption.xAxis.data = res.x; + visitorOption.series = Object.values(res.series).map((item: any) => { return { type: 'line', smooth: true, diff --git a/src/views/store/statistics/index.vue b/src/views/store/statistics/index.vue index fe8d0fa79..b5bcb4f99 100644 --- a/src/views/store/statistics/index.vue +++ b/src/views/store/statistics/index.vue @@ -56,7 +56,7 @@ - + @@ -301,11 +301,11 @@ const getData = () => { circleOption.series[0].data = res.bing_data; orderList.value = res.order_list; }) - apiSystemStoreStatisticsStore({ - date: date - }).then(res => { - storeList.value = res; - }) + // apiSystemStoreStatisticsStore({ + // date: date + // }).then(res => { + // storeList.value = res; + // }) } diff --git a/src/views/system_store/edit.vue b/src/views/system_store/edit.vue index ac5968ecc..4bdf4f0dd 100644 --- a/src/views/system_store/edit.vue +++ b/src/views/system_store/edit.vue @@ -27,13 +27,17 @@ 不修改请留空 - - + + + + + - + @@ -117,6 +121,8 @@ const formData = reactive({ staff_name: "", is_store: 1, is_send: 0, + security_deposit: "", + paid_deposit: "", bank: "", bank_code: "", bank_address: "", @@ -138,6 +144,8 @@ const formDataInfo = reactive({ coord: '', startEndTime: [], selectedValues: [], + security_deposit: "", + paid_deposit: "", bank: "", bank_code: "", bank_address: "", @@ -172,6 +180,11 @@ const formRules = reactive({ message: '请输入详细地址', trigger: ['blur'] }], + security_deposit: [{ + required: true, + message: '请输入保证金', + trigger: ['blur', 'change'] + }], image: [{ required: true, message: '请输入门店logo', @@ -244,6 +257,7 @@ const handleSubmit = async () => { data.city_code = formDataInfo.selectedValues[1] data.area_code = formDataInfo.selectedValues[2] data.street_code = formDataInfo.selectedValues[3] + delete data.paid_deposit; mode.value == 'edit' ? await apiSystemStoreEdit(data) : await apiSystemStoreAdd(data) diff --git a/src/views/system_store/index.vue b/src/views/system_store/index.vue index 896ff75e9..fe41cceaa 100644 --- a/src/views/system_store/index.vue +++ b/src/views/system_store/index.vue @@ -41,8 +41,8 @@ - 应缴纳: 1000.00 - 已缴纳: 1000.00 + 应缴纳: {{row.security_deposit||'-'}} + 已缴纳: {{ row.paid_deposit || '-' }} diff --git a/src/views/user/components/balance.vue b/src/views/user/components/balance.vue new file mode 100644 index 000000000..058771421 --- /dev/null +++ b/src/views/user/components/balance.vue @@ -0,0 +1,49 @@ + + + + + + + + + + + + + diff --git a/src/views/user/components/merchandise.vue b/src/views/user/components/merchandise.vue new file mode 100644 index 000000000..cf9536e47 --- /dev/null +++ b/src/views/user/components/merchandise.vue @@ -0,0 +1,49 @@ + + + + + + + + + + + + + diff --git a/src/views/user/components/purchase.vue b/src/views/user/components/purchase.vue new file mode 100644 index 000000000..c7e725525 --- /dev/null +++ b/src/views/user/components/purchase.vue @@ -0,0 +1,49 @@ + + + + + + + + + + + + + diff --git a/src/views/user/components/returnMoney.vue b/src/views/user/components/returnMoney.vue new file mode 100644 index 000000000..f5f0fc7e8 --- /dev/null +++ b/src/views/user/components/returnMoney.vue @@ -0,0 +1,49 @@ + + + + + + + + + + + + + diff --git a/src/views/user/details.vue b/src/views/user/details.vue index 48460d03e..b0219169b 100644 --- a/src/views/user/details.vue +++ b/src/views/user/details.vue @@ -1,26 +1,76 @@ - - - - - + + + + + 昵称: {{ formData.nickname }} + 电话: {{ formData.mobile }} + + + 账号: {{ formData.account }} + ID: {{ formData.id }} + + + + + + + {{ formData.label_name }} + + + + + + {{formData.channel}} + + + {{ formData.vip_name }} + + {{ formData.label_name }} + {{ formData.integral }} + {{ formData.return_money }} + {{ formData.purchase_funds }} + {{ formData.user_address }} + {{ formData.create_time }} + + + + + + + + + + + + + + + + + -