diff --git a/src/api/mall/promotion/bargain/bargainActivity.ts b/src/api/mall/promotion/bargain/bargainActivity.ts index 9e2dfba5..1e5d5f78 100644 --- a/src/api/mall/promotion/bargain/bargainActivity.ts +++ b/src/api/mall/promotion/bargain/bargainActivity.ts @@ -20,7 +20,7 @@ export interface BargainActivityVO { successCount?: number // 砍价成功数量 } -// 砍价活动所需属性。 选择的商品和属性的时候使用方便使用活动的通用封装 +// 砍价活动所需属性。选择的商品和属性的时候使用方便使用活动的通用封装 export interface BargainProductVO { spuId: number skuId: number diff --git a/src/utils/dict.ts b/src/utils/dict.ts index 08634da5..d8e2c887 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -90,6 +90,7 @@ export enum DICT_TYPE { USER_TYPE = 'user_type', COMMON_STATUS = 'common_status', SYSTEM_TENANT_PACKAGE_ID = 'system_tenant_package_id', + TERMINAL = 'terminal', // 终端 // ========== SYSTEM 模块 ========== SYSTEM_USER_SEX = 'system_user_sex', @@ -131,7 +132,7 @@ export enum DICT_TYPE { BPM_OA_LEAVE_TYPE = 'bpm_oa_leave_type', // ========== PAY 模块 ========== - PAY_CHANNEL_CODE_TYPE = 'pay_channel_code_type', // 支付渠道编码类型 + PAY_CHANNEL_CODE = 'pay_channel_code', // 支付渠道编码类型 PAY_ORDER_STATUS = 'pay_order_status', // 商户支付订单状态 PAY_REFUND_STATUS = 'pay_refund_status', // 退款订单状态 PAY_NOTIFY_STATUS = 'pay_notify_status', // 商户支付回调状态 @@ -156,7 +157,7 @@ export enum DICT_TYPE { TRADE_ORDER_TYPE = 'trade_order_type', // 订单 - 类型 TRADE_ORDER_STATUS = 'trade_order_status', // 订单 - 状态 TRADE_ORDER_ITEM_AFTER_SALE_STATUS = 'trade_order_item_after_sale_status', // 订单项 - 售后状态 - TERMINAL = 'terminal', // 终端 + TRADE_DELIVERY_TYPE = 'trade_delivery_type', // 配送方式 // ========== MALL - 营销模块 ========== PROMOTION_DISCOUNT_TYPE = 'promotion_discount_type', // 优惠类型 @@ -165,8 +166,5 @@ export enum DICT_TYPE { PROMOTION_COUPON_STATUS = 'promotion_coupon_status', // 优惠劵的状态 PROMOTION_COUPON_TAKE_TYPE = 'promotion_coupon_take_type', // 优惠劵的领取方式 PROMOTION_ACTIVITY_STATUS = 'promotion_activity_status', // 优惠活动的状态 - PROMOTION_CONDITION_TYPE = 'promotion_condition_type', // 营销的条件类型枚举 - - // ========== MALL - 物流模块 ========== - DELIVERY_TYPE = 'delivery_type' // 配送方式 + PROMOTION_CONDITION_TYPE = 'promotion_condition_type' // 营销的条件类型枚举 } diff --git a/src/views/mall/promotion/bargain/activity/BargainActivityForm.vue b/src/views/mall/promotion/bargain/activity/BargainActivityForm.vue index 3bef4956..bef1e994 100644 --- a/src/views/mall/promotion/bargain/activity/BargainActivityForm.vue +++ b/src/views/mall/promotion/bargain/activity/BargainActivityForm.vue @@ -83,17 +83,17 @@ const ruleConfig: RuleConfig[] = [ { name: 'productConfig.bargainFirstPrice', rule: (arg) => arg > 0, - message: '商品砍价起始价格不能小于0 !!!' + message: '商品砍价起始价格不能小于 0 !!!' }, { name: 'productConfig.bargainPrice', rule: (arg) => arg >= 0, - message: '商品砍价底价不能小于0 !!!' + message: '商品砍价底价不能小于 0 !!!' }, { name: 'productConfig.stock', rule: (arg) => arg >= 1, - message: '商品活动库存不能小于1 !!!' + message: '商品活动库存不能小于 1 !!!' } ] const selectSpu = (spuId: number, skuIds: number[]) => { diff --git a/src/views/mall/trade/order/components/DeliveryOrderForm.vue b/src/views/mall/trade/order/components/DeliveryOrderForm.vue index 5bb2ab84..b061341f 100644 --- a/src/views/mall/trade/order/components/DeliveryOrderForm.vue +++ b/src/views/mall/trade/order/components/DeliveryOrderForm.vue @@ -33,6 +33,7 @@ import * as DeliveryExpressApi from '@/api/mall/trade/delivery/express' import * as TradeOrderApi from '@/api/mall/trade/order' +// TODO @puhui999:是不是名字叫 OrderDeliveryForm 保持统一 defineOptions({ name: 'DeliveryOrderForm' }) const { t } = useI18n() // 国际化 @@ -40,7 +41,7 @@ const message = useMessage() // 消息弹窗 const dialogVisible = ref(false) // 弹窗的是否展示 const formLoading = ref(false) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用 -const radio = ref('1') +const radio = ref('1') // TODO @puhui999:尽量不用 radio 这种命名,无业务含义。这里的话,可以考虑用 expressType,如果值是 express,则是快递;none 则是无;未来做同城配送,就比较容易拓展啦; const formData = ref({ id: 0, // 订单编号 logisticsId: null, // 物流公司编号 @@ -48,6 +49,7 @@ const formData = ref({ }) const formRef = ref() // 表单 Ref +// TODO @puhui999:每次点击发货的时候,是不是可以把之前的信息带过来哈。 /** 打开弹窗 */ const open = async (orderId: number) => { resetForm() @@ -65,6 +67,7 @@ const submitForm = async () => { try { const data = unref(formData) if (radio.value === '2') { + // 无需发货的情况 data.logisticsId = 0 data.logisticsNo = '' } diff --git a/src/views/mall/trade/order/components/OrderAdjustAddressForm.vue b/src/views/mall/trade/order/components/OrderAdjustAddressForm.vue index c2bcff75..9e014bb0 100644 --- a/src/views/mall/trade/order/components/OrderAdjustAddressForm.vue +++ b/src/views/mall/trade/order/components/OrderAdjustAddressForm.vue @@ -7,6 +7,7 @@ + @@ -24,6 +25,7 @@ import * as TradeOrderApi from '@/api/mall/trade/order' import { copyValueToTarget } from '@/utils' +// TODO @puhui999:OrderAdjustAddressForm 改成 OrderUpdateAddressForm 更新哈,保持统一; defineOptions({ name: 'OrderAdjustAddressForm' }) const { t } = useI18n() // 国际化 diff --git a/src/views/mall/trade/order/components/OrderAdjustPriceForm.vue b/src/views/mall/trade/order/components/OrderAdjustPriceForm.vue index 3436cb63..ba7ac084 100644 --- a/src/views/mall/trade/order/components/OrderAdjustPriceForm.vue +++ b/src/views/mall/trade/order/components/OrderAdjustPriceForm.vue @@ -23,6 +23,7 @@ import * as TradeOrderApi from '@/api/mall/trade/order' import { convertToInteger, formatToFraction } from '@/utils' import { cloneDeep } from 'lodash-es' +// TODO @puhui999:OrderAdjustPriceForm 改成 OrderUpdatePriceForm 更新哈,保持统一; defineOptions({ name: 'OrderAdjustPriceForm' }) const { t } = useI18n() // 国际化 diff --git a/src/views/mall/trade/order/components/OrderDetailForm.vue b/src/views/mall/trade/order/components/OrderDetailForm.vue index d1a61b2d..27aee395 100644 --- a/src/views/mall/trade/order/components/OrderDetailForm.vue +++ b/src/views/mall/trade/order/components/OrderDetailForm.vue @@ -4,7 +4,7 @@ {{ orderInfo.no }} - + 秒杀活动 @@ -20,7 +20,7 @@ {{ orderInfo.remark }} {{ orderInfo.payOrderId }} - + @@ -41,14 +41,10 @@ - 调整价格 - 备注 - 发货 - - 修改地址 - - - 确认收货 + 调整价格 + 备注 + 发货 + 修改地址 @@ -201,6 +197,8 @@ + + @@ -215,10 +213,12 @@ import DeliveryOrderForm from '@/views/mall/trade/order/components/DeliveryOrder import OrderAdjustAddressForm from '@/views/mall/trade/order/components/OrderAdjustAddressForm.vue' import OrderAdjustPriceForm from '@/views/mall/trade/order/components/OrderAdjustPriceForm.vue' +// TODO @puhui999:TradeOrderDetailForm 可以挪到 order/detail/index.vue 中,它是一个 vue 界面哈。 defineOptions({ name: 'TradeOrderDetailForm' }) const message = useMessage() // 消息弹窗 const { params } = useRoute() // 查询参数 +// TODO @puhui999:orderInfo 应该不用把属性弄出来也; const orderInfo = ref({ no: '', createTime: null, @@ -263,6 +263,7 @@ const orderInfo = ref({ user: {} }) +// TODO @puhui999:这个改成直接读属性,不用按照这种写法; const detailGroups = ref([ { title: '物流信息', @@ -281,6 +282,7 @@ const detailGroups = ref([ } ]) +// TODO @puhui999:从后台读数据哈。 const detailInfo = ref({ // 物流信息 expressInfo: { diff --git a/src/views/mall/trade/order/components/OrderRemarksForm.vue b/src/views/mall/trade/order/components/OrderRemarksForm.vue index 181802ef..e596e5c8 100644 --- a/src/views/mall/trade/order/components/OrderRemarksForm.vue +++ b/src/views/mall/trade/order/components/OrderRemarksForm.vue @@ -14,6 +14,7 @@