diff --git a/src/views/mall/product/spu/form/index.vue b/src/views/mall/product/spu/form/index.vue
index 1b5654cf..0ba7a6d8 100644
--- a/src/views/mall/product/spu/form/index.vue
+++ b/src/views/mall/product/spu/form/index.vue
@@ -142,17 +142,6 @@ const submitForm = async () => {
await unref(otherSettingsRef)?.validate()
// 深拷贝一份, 这样最终 server 端不满足,不需要恢复,
const deepCopyFormData = cloneDeep(unref(formData.value)) as ProductSpuApi.Spu
- // 兜底处理 sku 空数据 TODO 后续没得问题就移除
- // formData.value.skus!.forEach((sku) => {
- // // 因为是空数据这里判断一下商品条码是否为空就行
- // if (sku.barCode === '') {
- // const index = deepCopyFormData.skus!.findIndex(
- // (item) => JSON.stringify(item.properties) === JSON.stringify(sku.properties)
- // )
- // // 删除这条 sku
- // deepCopyFormData.skus!.splice(index, 1)
- // }
- // })
deepCopyFormData.skus!.forEach((item) => {
// 给sku name赋值
item.name = deepCopyFormData.name
diff --git a/src/views/mall/trade/afterSale/detail/index.vue b/src/views/mall/trade/afterSale/detail/index.vue
index 2fa6e01c..190a4b33 100644
--- a/src/views/mall/trade/afterSale/detail/index.vue
+++ b/src/views/mall/trade/afterSale/detail/index.vue
@@ -166,7 +166,7 @@ import UpdateAuditReasonForm from '@/views/mall/trade/afterSale/form/AfterSaleDi
import { createImageViewer } from '@/components/ImageViewer'
import { isArray } from '@/utils/is'
-defineOptions({ name: 'TradeOrderDetailForm' })
+defineOptions({ name: 'TradeAfterSaleDetail' })
const { t } = useI18n() // 国际化
const message = useMessage() // 消息弹窗
diff --git a/src/views/mall/trade/order/detail/index.vue b/src/views/mall/trade/order/detail/index.vue
index e2f790f1..a823fef5 100644
--- a/src/views/mall/trade/order/detail/index.vue
+++ b/src/views/mall/trade/order/detail/index.vue
@@ -23,7 +23,7 @@
-
+
{{ formData.receiverAreaName }} {{ formData.receiverDetailAddress }}
+
调整价格
备注
@@ -179,15 +180,16 @@ import OrderUpdateAddressForm from '@/views/mall/trade/order/form/OrderUpdateAdd
import OrderUpdatePriceForm from '@/views/mall/trade/order/form/OrderUpdatePriceForm.vue'
import * as DeliveryExpressApi from '@/api/mall/trade/delivery/express'
-defineOptions({ name: 'TradeOrderDetailForm' })
+defineOptions({ name: 'TradeOrderDetail' })
const message = useMessage() // 消息弹窗
-const { params } = useRoute() // 查询参数
+
// 订单详情
const formData = ref({
- orderLog: []
+ orderLog: [] // TODO @puhui999:orderLogs
})
+// TODO @puhui999:这个最好也拆掉哈
const deliveryFormRef = ref() // 发货表单 Ref
const updateRemarkForm = ref() // 订单备注表单 Ref
const updateAddressFormRef = ref() // 收货地址表单 Ref
@@ -210,6 +212,7 @@ const openForm = (type: string) => {
}
/** 获得详情 */
+const { params } = useRoute() // 查询参数
const getDetail = async () => {
const id = params.orderId as unknown as number
if (id) {
@@ -217,6 +220,13 @@ const getDetail = async () => {
formData.value = res
}
}
+
+/** 复制 */
+const clipboardSuccess = () => {
+ message.success('复制成功')
+}
+
+/** 初始化 **/
const deliveryExpressList = ref([]) // 物流公司
const expressTrackList = ref([]) // 物流详情
onMounted(async () => {
@@ -224,10 +234,6 @@ onMounted(async () => {
deliveryExpressList.value = await DeliveryExpressApi.getSimpleDeliveryExpressList()
expressTrackList.value = await TradeOrderApi.getExpressTrackList(formData.value.id!)
})
-
-const clipboardSuccess = () => {
- message.success('复制成功')
-}