diff --git a/src/api/shop.js b/src/api/shop.js index 6e99bf6..e452c19 100644 --- a/src/api/shop.js +++ b/src/api/shop.js @@ -736,11 +736,11 @@ export function queryShopUserFlow(params) { } // 商品列表 V2 -export function tbProductListV2(params) { +export function tbProductListV2(data) { return request({ url: `/api/tbProduct/list/v2`, - method: "get", - params + method: "post", + data }); } @@ -770,3 +770,12 @@ export function tbProductStockDetailStock(data) { data }); } + +// 商品库存记录列表 +export function stockWarnLine(data) { + return request({ + url: `/api/stock/warnLine`, + method: "PUT", + data + }); +} diff --git a/src/settings.js b/src/settings.js index 71195ba..94719f3 100644 --- a/src/settings.js +++ b/src/settings.js @@ -2,7 +2,7 @@ module.exports = { /** * @description 网站标题 */ - title: '管理后台', + title: "管理后台", /** * @description 是否显示 tagsView */ @@ -22,7 +22,7 @@ module.exports = { /** * @description token key */ - TokenKey: 'ELADMIN-TOEKN', + TokenKey: "ELADMIN-TOEKN", /** * @description 请求超时时间,毫秒(默认2分钟) */ @@ -38,36 +38,37 @@ module.exports = { /** * 底部文字,支持html语法 */ - footerTxt: '© 2018-2024 超掌柜科技 Apache License 2.0', + footerTxt: + '© 2018-2024 超掌柜科技 Apache License 2.0', /** * 备案号 */ - caseNumber: '陕ICP备2022008069号', + caseNumber: "陕ICP备2022008069号", typeEnum: [ { - label: '计量商品', - intro: '单价购买', - typeEnum: 'normal' + label: "单规格", + intro: "单价购买", + typeEnum: "normal" }, { - label: '多规格', - intro: '多种不同规格', - typeEnum: 'sku' - }, - { - label: '套餐商品', - intro: '选职多种组合', - typeEnum: 'group' - }, - { - label: '称重商品', - intro: '按重量售卖', - typeEnum: 'weight' - }, - { - label: '时价商品', - intro: '收银端可更改价格', - typeEnum: 'currentPrice' + label: "多规格", + intro: "多种不同规格", + typeEnum: "sku" } + // { + // label: '套餐商品', + // intro: '选职多种组合', + // typeEnum: 'group' + // }, + // { + // label: '称重商品', + // intro: '按重量售卖', + // typeEnum: 'weight' + // }, + // { + // label: '时价商品', + // intro: '收银端可更改价格', + // typeEnum: 'currentPrice' + // } ] -} +}; diff --git a/src/views/order_manage/components/orderDetail.vue b/src/views/order_manage/components/orderDetail.vue index 94cc1c2..19c573c 100644 --- a/src/views/order_manage/components/orderDetail.vue +++ b/src/views/order_manage/components/orderDetail.vue @@ -1,7 +1,18 @@ @@ -294,7 +358,7 @@ export default { padding-top: 20px; div { - width: 33.333%; + width: 25%; } } } diff --git a/src/views/product/add_shop.vue b/src/views/product/add_shop.vue index 72d9d6e..8c460c2 100644 --- a/src/views/product/add_shop.vue +++ b/src/views/product/add_shop.vue @@ -750,7 +750,8 @@ export default { console.log(this.form.skuList) const hasUndefined = this.form.skuList.some(obj => { for (const key in obj) { - if (obj[key] === undefined) { + console.log(key, obj) + if (obj['salePrice'] === undefined || obj['memberPrice'] === undefined || obj['costPrice'] === undefined || obj['originPrice'] === undefined) { return true; // 如果找到undefined,立即停止搜索并返回true } } diff --git a/src/views/product/components/addGroup.vue b/src/views/product/components/addGroup.vue index faceeee..e4906eb 100644 --- a/src/views/product/components/addGroup.vue +++ b/src/views/product/components/addGroup.vue @@ -27,7 +27,7 @@ 禁用 - + 启用 禁用 @@ -51,7 +51,7 @@ - + diff --git a/src/views/product/components/stockHistory.vue b/src/views/product/components/stockHistory.vue index 1bd95c8..a07f500 100644 --- a/src/views/product/components/stockHistory.vue +++ b/src/views/product/components/stockHistory.vue @@ -42,6 +42,12 @@ import dayjs from 'dayjs' import { tbProductStockDetailStock } from '@/api/shop.js' export default { + props: { + query: { + type: Object, + default: {} + } + }, data() { return { dayjs, @@ -77,7 +83,12 @@ export default { page: this.tableData.page, size: this.tableData.size, shopId: localStorage.getItem('shopId'), - column: this.key + column: this.key, + productName: this.query.name, + categoryId: this.query.categoryId, + type: this.query.typeEnum, + startTime: this.query.createdAt[0] || '', + endTime: this.query.createdAt[1] || '', }) this.tableData.loading = false this.tableData.data = res.content diff --git a/src/views/product/index.vue b/src/views/product/index.vue index e126c53..e8eeb76 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -1,26 +1,22 @@