Skip to content

Commit 79fc473

Browse files
committed
Merge branch 'feature/1.8.0-uniapp' of https://gitee.com/zhijiantianya/ruoyi-vue-pro into feature/1.8.0-uniapp
� Conflicts: � yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/mysql/sku/ProductSkuMapper.java � yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/service/sku/ProductSkuServiceImpl.java
2 parents f1eb6af + e60b412 commit 79fc473

File tree

4 files changed

+89
-133
lines changed

4 files changed

+89
-133
lines changed

src/utils/constants.js

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -185,37 +185,54 @@ export const PayOrderRefundStatusEnum = {
185185
* 支付退款订单状态枚举
186186
*/
187187
export const PayRefundStatusEnum = {
188-
CREATE:{
189-
status:0,
188+
CREATE: {
189+
status: 0,
190190
name: '退款订单生成'
191191
},
192-
SUCCESS:{
193-
status:1,
192+
SUCCESS: {
193+
status: 1,
194194
name: '退款成功'
195195
},
196-
FAILURE:{
197-
status:2,
196+
FAILURE: {
197+
status: 2,
198198
name: '退款失败'
199199
},
200-
PROCESSING_NOTIFY:{
201-
status:3,
200+
PROCESSING_NOTIFY: {
201+
status: 3,
202202
name: '退款中,渠道通知结果'
203203
},
204-
PROCESSING_QUERY:{
205-
status:4,
204+
PROCESSING_QUERY: {
205+
status: 4,
206206
name: '退款中,系统查询结果'
207207
},
208-
UNKNOWN_RETRY:{
209-
status:5,
208+
UNKNOWN_RETRY: {
209+
status: 5,
210210
name: '状态未知,请重试'
211211
},
212-
UNKNOWN_QUERY:{
213-
status:6,
212+
UNKNOWN_QUERY: {
213+
status: 6,
214214
name: '状态未知,系统查询结果'
215215
},
216-
CLOSE:{
217-
status:99,
216+
CLOSE: {
217+
status: 99,
218218
name: '退款关闭'
219219
}
220220
}
221221

222+
/**
223+
* 商品 SPU 状态
224+
*/
225+
export const ProductSpuStatusEnum = {
226+
RECYCLE: {
227+
status: -1,
228+
name: '回收站'
229+
},
230+
DISABLE: {
231+
status: 0,
232+
name: '下架'
233+
},
234+
ENABLE: {
235+
status: 1,
236+
name: '上架'
237+
},
238+
}

src/utils/dict.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ export const DICT_TYPE = {
5656
PAY_ORDER_REFUND_STATUS: 'pay_order_refund_status', // 商户支付订单退款状态
5757
PAY_REFUND_ORDER_STATUS: 'pay_refund_order_status', // 退款订单状态
5858
PAY_REFUND_ORDER_TYPE: 'pay_refund_order_type', // 退款订单类别
59+
60+
// ========== MALL - PRODUCT 模块 ==========
61+
PRODUCT_SPU_STATUS: 'product_spu_status', // 商品 SPU 状态
5962
}
6063

6164
/**
@@ -114,6 +117,3 @@ export function getDictDataLabel(dictType, value) {
114117
const dict = getDictData(dictType, value);
115118
return dict ? dict.label : '';
116119
}
117-
118-
export class getDictDataL {
119-
}

0 commit comments

Comments
 (0)