|
@@ -5,83 +5,44 @@ import { Button } from '/@/components/Button';
|
|
|
// import { Time } from '/@/components/Time';
|
|
|
import { Badge } from 'ant-design-vue';
|
|
|
|
|
|
-export const refundData = {
|
|
|
- id: 731,
|
|
|
- orderSn: '20220210070337274124598',
|
|
|
- userId: 21,
|
|
|
- orderStatus: 300,
|
|
|
- shippingStatus: 1,
|
|
|
- payStatus: 2,
|
|
|
- consignee: '刘生',
|
|
|
- country: null,
|
|
|
- province: '浙江省',
|
|
|
- city: '杭州市',
|
|
|
- district: '萧山区',
|
|
|
- address: '桂语朝阳2-3001',
|
|
|
- mobile: '13967143520',
|
|
|
- postscript: null,
|
|
|
- shippingId: 91,
|
|
|
- shippingName: '亚马逊物流',
|
|
|
- shippingNo: '11111',
|
|
|
- payId: 'wx1007033753906933ad37fff63824bd0000',
|
|
|
- payName: null,
|
|
|
- shippingFee: 0.0,
|
|
|
- actualPrice: 0.01,
|
|
|
- integral: 0,
|
|
|
- integralMoney: 0.0,
|
|
|
- orderPrice: 0.01,
|
|
|
- goodsPrice: 0.01,
|
|
|
- addTime: 1644447817000,
|
|
|
- confirmTime: null,
|
|
|
- payTime: 1644447827000,
|
|
|
- freightPrice: 0,
|
|
|
- couponId: '',
|
|
|
- parentId: null,
|
|
|
- couponPrice: 0.0,
|
|
|
- callbackStatus: null,
|
|
|
- orderType: '4',
|
|
|
- userName: '微信用户lkp4qslsfsds',
|
|
|
- goodsList: [
|
|
|
- {
|
|
|
- id: 873,
|
|
|
- orderId: 731,
|
|
|
- goodsId: 77007479,
|
|
|
- goodsName: '特权证',
|
|
|
- goodsSn: '001',
|
|
|
- productId: 4182,
|
|
|
- number: 1,
|
|
|
- marketPrice: 0.02,
|
|
|
- retailPrice: 0.01,
|
|
|
- goodsSpecifitionNameValue: null,
|
|
|
- isReal: null,
|
|
|
- goodsSpecifitionIds: null,
|
|
|
- listPicUrl:
|
|
|
- 'https://4dkk.4dage.com/shop/huafa/20220107/11124928804fa0.jpg?x-oss-process=image/resize,m_fixed,w_400,h_400',
|
|
|
- },
|
|
|
- {
|
|
|
- id: 8753,
|
|
|
- orderId: 731,
|
|
|
- goodsId: 77007479,
|
|
|
- goodsName: '特权证',
|
|
|
- goodsSn: '001',
|
|
|
- productId: 4182,
|
|
|
- number: 1,
|
|
|
- marketPrice: 0.02,
|
|
|
- retailPrice: 0.01,
|
|
|
- goodsSpecifitionNameValue: null,
|
|
|
- isReal: null,
|
|
|
- goodsSpecifitionIds: null,
|
|
|
- listPicUrl:
|
|
|
- 'https://4dkk.4dage.com/shop/huafa/20220107/11124928804fa0.jpg?x-oss-process=image/resize,m_fixed,w_400,h_400',
|
|
|
- },
|
|
|
- ],
|
|
|
- brandName: '三江新村标清VR',
|
|
|
- nickName: '【指房宝】天门科技13967143520',
|
|
|
- brandId: 1046773,
|
|
|
- newId: null,
|
|
|
- logistics: { result: '快递单号错误' },
|
|
|
-};
|
|
|
+function renderOrderStatusLabel(type: number): string {
|
|
|
+ switch (type) {
|
|
|
+ case 0:
|
|
|
+ return '待付款';
|
|
|
+ case 101:
|
|
|
+ return '已取消';
|
|
|
+ case 201:
|
|
|
+ return '已付款';
|
|
|
+ case 1:
|
|
|
+ return '已发货';
|
|
|
+ case 2:
|
|
|
+ return '已收货';
|
|
|
+ case 501:
|
|
|
+ return '完成';
|
|
|
+ default:
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+}
|
|
|
|
|
|
+function formatDayTime(val) {
|
|
|
+ if (val) {
|
|
|
+ const date = new Date(val);
|
|
|
+ const Y = date.getFullYear();
|
|
|
+ let M = date.getMonth() + 1;
|
|
|
+ let D = date.getDate();
|
|
|
+
|
|
|
+ if (M < 10) {
|
|
|
+ M = '0' + M;
|
|
|
+ }
|
|
|
+ if (D < 10) {
|
|
|
+ D = '0' + D;
|
|
|
+ }
|
|
|
+
|
|
|
+ return Y + '-' + M + '-' + D;
|
|
|
+ } else {
|
|
|
+ return '';
|
|
|
+ }
|
|
|
+}
|
|
|
export const personData = {
|
|
|
b1: '付小小',
|
|
|
b2: '18100000000',
|
|
@@ -97,6 +58,9 @@ export const goodsSchema: DescItem[] = [
|
|
|
{
|
|
|
field: 'payStatus',
|
|
|
label: '付款状态',
|
|
|
+ render: (curVal, _) => {
|
|
|
+ return `${renderOrderStatusLabel(curVal) || ''}`;
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
field: 'nickName',
|
|
@@ -106,12 +70,19 @@ export const goodsSchema: DescItem[] = [
|
|
|
field: 'payTime',
|
|
|
label: '付款时间',
|
|
|
render: (curVal, _) => {
|
|
|
- return `${curVal}`;
|
|
|
+ return `${formatDayTime(curVal)}`;
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
+ field: 'brandName',
|
|
|
+ label: '产品型号',
|
|
|
+ },
|
|
|
+ {
|
|
|
field: 'addTime',
|
|
|
label: '下单时间',
|
|
|
+ render: (curVal, _) => {
|
|
|
+ return `${formatDayTime(curVal)}`;
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
field: 'goodsPrice',
|
|
@@ -137,6 +108,13 @@ export const refundSchema: DescItem[] = [
|
|
|
label: '支付单号',
|
|
|
},
|
|
|
{
|
|
|
+ field: 'payTime',
|
|
|
+ label: '支付时间',
|
|
|
+ render: (curVal, _) => {
|
|
|
+ return `${formatDayTime(curVal)}`;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
field: 'consignee',
|
|
|
label: '收货人',
|
|
|
},
|
|
@@ -163,24 +141,19 @@ export const refundSchema: DescItem[] = [
|
|
|
];
|
|
|
export const personSchema: DescItem[] = [
|
|
|
{
|
|
|
- field: 'b1',
|
|
|
+ field: 'userName',
|
|
|
label: '用户姓名',
|
|
|
},
|
|
|
{
|
|
|
- field: 'b2',
|
|
|
+ field: 'mobile',
|
|
|
label: '联系电话',
|
|
|
},
|
|
|
{
|
|
|
- field: 'b3',
|
|
|
- label: '常用快递',
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'b4',
|
|
|
+ field: 'city',
|
|
|
label: '取货地址',
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'b5',
|
|
|
- label: '备注',
|
|
|
+ render: (curVal, _) => {
|
|
|
+ return `${curVal} ${_.address}`;
|
|
|
+ },
|
|
|
},
|
|
|
];
|
|
|
|