更新工作台页面,优化交易数据展示,修复核销订单金额等数据展示错误,并调整相关API接口路径

This commit is contained in:
zmj 2024-06-21 14:43:18 +08:00
parent 5e2708a289
commit 57b6505bf4
2 changed files with 18 additions and 16 deletions

View File

@ -1,8 +1,8 @@
NODE_ENV = 'development'
# Base API
# VITE_NOW_TYPE='dist/store'
# VITE_APP_BASE_URL='https://test-multi-store.lihaink.cn'
Base API
VITE_NOW_TYPE='dist/store'
VITE_APP_BASE_URL='https://test-multi-store.lihaink.cn'
VITE_NOW_TYPE='build/store'
VITE_APP_BASE_URL='https://multi-store.lihaink.cn'
# VITE_NOW_TYPE='build/store'
# VITE_APP_BASE_URL='https://multi-store.lihaink.cn'

View File

@ -43,11 +43,13 @@
</template>
</el-table-column>
<el-table-column label="商品名称" prop="store_name" show-overflow-tooltip />
<el-table-column label="商品售价" prop="price" show-overflow-tooltip />
<el-table-column label="商品批发价" prop="wholesale_price" show-overflow-tooltip />
<el-table-column label="供货价" prop="purchase" show-overflow-tooltip />
<el-table-column label="商户价" prop="cost" show-overflow-tooltip />
<el-table-column label="会员价" prop="vip_price" show-overflow-tooltip />
<el-table-column label="终端零售价" prop="price" show-overflow-tooltip />
<el-table-column label="销量" prop="sales" show-overflow-tooltip />
<el-table-column label="库存" prop="stock" show-overflow-tooltip />
<el-table-column label="状态" prop="engineering_status_text" show-overflow-tooltip>
<!-- <el-table-column label="状态" prop="engineering_status_text" show-overflow-tooltip>
<template #default="{ row }">
<el-switch v-model="row.status" :active-value="1" :inactive-value="0"
@change="changeStatus(row)"></el-switch>
@ -59,7 +61,7 @@
库存管理
</el-button>
</template>
</el-table-column>
</el-table-column> -->
</el-table>
</div>
<div class="flex mt-4 justify-end">
@ -107,13 +109,13 @@ const { pager, getLists, resetParams, resetPage } = usePaging({
})
// &
const changeStatus = (data: any) => {
apiStatus({
id: data.id,
}).finally(() => {
getLists()
})
}
// const changeStatus = (data: any) => {
// apiStatus({
// id: data.id,
// }).finally(() => {
// getLists()
// })
// }
let store_id = useUserStore().userInfo.store_id