orderList.js 34 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033
  1. import { mockIp, mockReqId } from '../../utils/mock';
  2. export function genOrders(params) {
  3. const resp = {
  4. data: {
  5. pageNum: 1,
  6. pageSize: 10,
  7. totalCount: 7,
  8. orders: [
  9. {
  10. saasId: '88888888',
  11. storeId: '1000',
  12. storeName: '云Mall深圳旗舰店',
  13. uid: '88888888205468',
  14. parentOrderNo: '354021731671873099',
  15. orderId: '354021735982432279',
  16. orderNo: '354021731671873099',
  17. orderType: 0,
  18. orderSubType: 0,
  19. orderStatus: 5,
  20. orderSubStatus: null,
  21. totalAmount: '10010',
  22. goodsAmount: '10000',
  23. goodsAmountApp: '10000',
  24. paymentAmount: '20',
  25. freightFee: '10',
  26. packageFee: '0',
  27. discountAmount: '9990',
  28. channelType: 0,
  29. channelSource: '',
  30. channelIdentity: '',
  31. remark: '',
  32. cancelType: null,
  33. cancelReasonType: null,
  34. cancelReason: null,
  35. rightsType: null,
  36. createTime: '1600350829291',
  37. orderItemVOs: [
  38. {
  39. id: '354021736133427225',
  40. orderNo: null,
  41. spuId: '3',
  42. skuId: '135696670',
  43. roomId: null,
  44. goodsMainType: 0,
  45. goodsViceType: 0,
  46. goodsName: '腾讯极光盒子4智能网络电视机顶盒6K千兆网络机顶盒4K高分辨率',
  47. specifications: [
  48. { specTitle: '颜色', specValue: '贵族青' },
  49. { specTitle: '类型', specValue: '尊享礼盒装' },
  50. ],
  51. goodsPictureUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-3b.png',
  52. originPrice: '0',
  53. actualPrice: '9999',
  54. buyQuantity: 1,
  55. itemTotalAmount: '9999',
  56. itemDiscountAmount: '9990',
  57. itemPaymentAmount: '10',
  58. goodsPaymentPrice: '10',
  59. tagPrice: null,
  60. tagText: null,
  61. outCode: null,
  62. labelVOs: null,
  63. buttonVOs: null,
  64. },
  65. ],
  66. logisticsVO: {
  67. logisticsType: 1,
  68. logisticsNo: '',
  69. logisticsStatus: null,
  70. logisticsCompanyCode: '',
  71. logisticsCompanyName: '',
  72. receiverAddressId: '14',
  73. provinceCode: '440000',
  74. cityCode: '440300',
  75. countryCode: '440306',
  76. receiverProvince: '广东省',
  77. receiverCity: '深圳市',
  78. receiverCountry: '宝安区',
  79. receiverArea: '',
  80. receiverAddress: '沙井中心路28号丽沙花都xx栋xx号',
  81. receiverAddress: '沙井中心路28号丽沙花都xx栋xx号',
  82. receiverPostCode: '',
  83. receiverLongitude: '113.829127',
  84. receiverLatitude: '22.713649',
  85. receiverIdentity: '88888888205468',
  86. receiverPhone: '17612345678',
  87. receiverName: '测试用户',
  88. receiverPhone: '17612345678',
  89. receiverName: '测试用户',
  90. expectArrivalTime: null,
  91. senderName: '',
  92. senderPhone: '',
  93. senderAddress: '',
  94. sendTime: null,
  95. arrivalTime: null,
  96. },
  97. paymentVO: {
  98. payStatus: 1,
  99. amount: '20',
  100. currency: null,
  101. payType: null,
  102. payWay: null,
  103. payWayName: null,
  104. interactId: null,
  105. traceNo: null,
  106. channelTrxNo: null,
  107. period: null,
  108. payTime: null,
  109. paySuccessTime: null,
  110. },
  111. buttonVOs: [
  112. { primary: false, type: 2, name: '取消订单' },
  113. { primary: true, type: 1, name: '付款' },
  114. ],
  115. labelVOs: null,
  116. invoiceVO: null,
  117. couponAmount: null,
  118. autoCancelTime: '1600352629291',
  119. orderStatusName: '待付款',
  120. orderStatusRemark: '需支付¥0.20',
  121. logisticsLogVO: null,
  122. invoiceStatus: null,
  123. invoiceDesc: null,
  124. invoiceUrl: null,
  125. },
  126. {
  127. saasId: '88888888',
  128. storeId: '1000',
  129. storeName: '云Mall深圳旗舰店',
  130. uid: '88888888205468',
  131. parentOrderNo: '132381532610540875',
  132. orderId: '132381537256650240',
  133. orderNo: '132381532610540875',
  134. orderType: 0,
  135. orderSubType: 0,
  136. orderStatus: 10,
  137. orderSubStatus: null,
  138. totalAmount: '76600',
  139. goodsAmount: '76600',
  140. goodsAmountApp: '76600',
  141. paymentAmount: '36800',
  142. freightFee: '0',
  143. packageFee: '0',
  144. discountAmount: '39800',
  145. channelType: 0,
  146. channelSource: '',
  147. channelIdentity: '',
  148. remark: '',
  149. cancelType: null,
  150. cancelReasonType: null,
  151. cancelReason: null,
  152. rightsType: null,
  153. createTime: '1587140043980',
  154. orderItemVOs: [
  155. {
  156. id: '132381537407645696',
  157. orderNo: null,
  158. spuId: '0',
  159. skuId: '135676631',
  160. roomId: null,
  161. goodsMainType: 0,
  162. goodsViceType: 0,
  163. goodsName: '白色短袖连衣裙荷叶边裙摆宽松韩版休闲纯白清爽优雅连衣裙',
  164. goodsPictureUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09a.png',
  165. originPrice: '40000',
  166. actualPrice: '29800',
  167. specifications: [
  168. { specTitle: '颜色', specValue: '米色荷叶边' },
  169. { specTitle: '尺码', specValue: 'S' },
  170. ],
  171. buyQuantity: 1,
  172. itemTotalAmount: '29800',
  173. itemDiscountAmount: '19813',
  174. itemPaymentAmount: '9987',
  175. goodsPaymentPrice: '9987',
  176. tagPrice: null,
  177. tagText: null,
  178. outCode: null,
  179. labelVOs: null,
  180. buttonVOs: null,
  181. },
  182. {
  183. id: '132381537407645952',
  184. orderNo: null,
  185. spuId: '7',
  186. skuId: '135691633',
  187. roomId: null,
  188. goodsMainType: 0,
  189. goodsViceType: 0,
  190. goodsName: '不锈钢刀叉勺套装家用西餐餐具ins简约耐用不锈钢金色银色可选',
  191. goodsPictureUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-2b.png',
  192. originPrice: '29900',
  193. actualPrice: '19900',
  194. specifications: [
  195. { specTitle: '颜色', specValue: '奶黄色' },
  196. { specTitle: '类型', specValue: '三件套' },
  197. ],
  198. buyQuantity: 1,
  199. itemTotalAmount: '19900',
  200. itemDiscountAmount: '13230',
  201. itemPaymentAmount: '6670',
  202. goodsPaymentPrice: '6670',
  203. tagPrice: null,
  204. tagText: null,
  205. outCode: null,
  206. labelVOs: null,
  207. buttonVOs: null,
  208. },
  209. {
  210. id: '132381537407646208',
  211. orderNo: null,
  212. spuId: '1',
  213. skuId: '135691631',
  214. roomId: null,
  215. goodsMainType: 0,
  216. goodsViceType: 0,
  217. goodsName: '纯色纯棉休闲圆领短袖T恤纯白亲肤厚柔软细腻面料纯白短袖套头T恤',
  218. goodsPictureUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08a.png',
  219. originPrice: '31900',
  220. actualPrice: '26900',
  221. specifications: [
  222. { specTitle: '颜色', specValue: '白色' },
  223. { specTitle: '尺码', specValue: 'S' },
  224. ],
  225. buyQuantity: 1,
  226. itemTotalAmount: '26900',
  227. itemDiscountAmount: '6757',
  228. itemPaymentAmount: '20143',
  229. goodsPaymentPrice: '20143',
  230. tagPrice: null,
  231. tagText: null,
  232. outCode: null,
  233. labelVOs: null,
  234. buttonVOs: null,
  235. },
  236. ],
  237. logisticsVO: {
  238. logisticsType: 1,
  239. logisticsNo: '',
  240. logisticsStatus: null,
  241. logisticsCompanyCode: '',
  242. logisticsCompanyName: '',
  243. receiverAddressId: '2',
  244. provinceCode: '440000',
  245. cityCode: '440300',
  246. countryCode: '440306',
  247. receiverProvince: '广东省',
  248. receiverCity: '深圳市',
  249. receiverCountry: '南山区',
  250. receiverArea: '',
  251. receiverAddress: '前海路333号阳光玫瑰园',
  252. receiverPostCode: '',
  253. receiverLongitude: '113.829127',
  254. receiverLatitude: '22.713649',
  255. receiverIdentity: '88888888205468',
  256. receiverPhone: '17612345678',
  257. receiverPhone: '17612345678',
  258. receiverName: '平均线',
  259. expectArrivalTime: null,
  260. senderName: '',
  261. senderPhone: '',
  262. senderAddress: '',
  263. sendTime: null,
  264. arrivalTime: null,
  265. },
  266. paymentVO: {
  267. payStatus: 1,
  268. amount: '36800',
  269. currency: null,
  270. payType: null,
  271. payWay: null,
  272. payWayName: null,
  273. interactId: null,
  274. traceNo: null,
  275. channelTrxNo: null,
  276. period: null,
  277. payTime: null,
  278. paySuccessTime: null,
  279. },
  280. buttonVOs: [
  281. {
  282. primary: false,
  283. type: 2,
  284. name: '取消订单',
  285. },
  286. {
  287. primary: true,
  288. type: 9,
  289. name: '再次购买',
  290. },
  291. ],
  292. labelVOs: null,
  293. invoiceVO: null,
  294. couponAmount: null,
  295. autoCancelTime: null,
  296. orderStatusName: '待发货',
  297. orderStatusRemark: null,
  298. logisticsLogVO: null,
  299. invoiceStatus: null,
  300. invoiceDesc: null,
  301. invoiceUrl: null,
  302. },
  303. {
  304. saasId: '88888888',
  305. storeId: '1000',
  306. storeName: '云Mall深圳旗舰店',
  307. uid: '88888888205468',
  308. parentOrderNo: '132222623132329291',
  309. orderId: '132222629674264064',
  310. orderNo: '132222623132329291',
  311. orderType: 0,
  312. orderSubType: 0,
  313. orderStatus: 40,
  314. orderSubStatus: null,
  315. totalAmount: '500400',
  316. goodsAmount: '500400',
  317. goodsAmountApp: '500400',
  318. paymentAmount: '458600',
  319. freightFee: '0',
  320. packageFee: '0',
  321. discountAmount: '41800',
  322. channelType: 0,
  323. channelSource: '',
  324. channelIdentity: '',
  325. remark: '',
  326. cancelType: null,
  327. cancelReasonType: null,
  328. cancelReason: null,
  329. rightsType: null,
  330. createTime: '1587130572349',
  331. orderItemVOs: [
  332. {
  333. id: '132222629825259776',
  334. orderNo: null,
  335. spuId: '5',
  336. skuId: '135691625',
  337. roomId: null,
  338. goodsMainType: 0,
  339. goodsViceType: 0,
  340. goodsName: '迷你便携高颜值蓝牙无线耳机立体声只能触控式操作简约立体声耳机',
  341. goodsPictureUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-2a.png',
  342. originPrice: '15900',
  343. actualPrice: '8900',
  344. specifications: [
  345. { specTitle: '颜色', specValue: '黑色' },
  346. { specTitle: '尺码', specValue: '简约' },
  347. ],
  348. buyQuantity: 1,
  349. itemTotalAmount: '8900',
  350. itemDiscountAmount: '2134',
  351. itemPaymentAmount: '6766',
  352. goodsPaymentPrice: '6766',
  353. tagPrice: null,
  354. tagText: null,
  355. outCode: null,
  356. labelVOs: null,
  357. buttonVOs: null,
  358. },
  359. {
  360. id: '132222629825260032',
  361. orderNo: null,
  362. spuId: '0',
  363. skuId: '135676631',
  364. roomId: null,
  365. goodsMainType: 0,
  366. goodsViceType: 0,
  367. goodsName: '白色短袖连衣裙荷叶边裙摆宽松韩版休闲纯白清爽优雅连衣裙',
  368. goodsPictureUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09a.png',
  369. originPrice: '40000',
  370. actualPrice: '29800',
  371. specifications: [
  372. { specTitle: '颜色', specValue: '米色荷叶边' },
  373. { specTitle: '尺码', specValue: 'S' },
  374. ],
  375. buyQuantity: 1,
  376. itemTotalAmount: '29800',
  377. itemDiscountAmount: '4026',
  378. itemPaymentAmount: '25774',
  379. goodsPaymentPrice: '25774',
  380. tagPrice: null,
  381. tagText: null,
  382. outCode: null,
  383. labelVOs: null,
  384. buttonVOs: null,
  385. },
  386. {
  387. id: '132222629825260288',
  388. orderNo: null,
  389. spuId: '3',
  390. skuId: '135691622',
  391. roomId: null,
  392. goodsMainType: 0,
  393. goodsViceType: 0,
  394. goodsName: '腾讯极光盒子4智能网络电视机顶盒6K千兆网络机顶盒4K高分辨率',
  395. goodsPictureUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/dz-3a.png',
  396. originPrice: '16900',
  397. actualPrice: '9900',
  398. specifications: [
  399. { specTitle: '颜色', specValue: '经典白' },
  400. { specTitle: '类型', specValue: '经典套装' },
  401. ],
  402. buyQuantity: 1,
  403. itemTotalAmount: '9900',
  404. itemDiscountAmount: '1337',
  405. itemPaymentAmount: '8563',
  406. goodsPaymentPrice: '8563',
  407. tagPrice: null,
  408. tagText: null,
  409. outCode: null,
  410. labelVOs: null,
  411. buttonVOs: null,
  412. },
  413. {
  414. id: '132222629825260544',
  415. orderNo: null,
  416. spuId: '135681628',
  417. skuId: '135676629',
  418. roomId: null,
  419. goodsMainType: 0,
  420. goodsViceType: 0,
  421. goodsName: '带帽午休毯虎年款多功能加厚加大加绒简约多功能午休毯连帽披肩',
  422. goodsPictureUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/muy-3a.png',
  423. originPrice: '39900',
  424. actualPrice: '29900',
  425. specifications: [
  426. { specTitle: '颜色', specValue: '浅灰色' },
  427. { specTitle: '尺码', specValue: 'S' },
  428. ],
  429. buyQuantity: 4,
  430. itemTotalAmount: '119600',
  431. itemDiscountAmount: '4040',
  432. itemPaymentAmount: '115560',
  433. goodsPaymentPrice: '28890',
  434. tagPrice: null,
  435. tagText: null,
  436. outCode: null,
  437. labelVOs: null,
  438. buttonVOs: null,
  439. },
  440. {
  441. id: '132222629825260800',
  442. orderNo: null,
  443. spuId: '2',
  444. skuId: '135686631',
  445. roomId: null,
  446. goodsMainType: 0,
  447. goodsViceType: 0,
  448. goodsName: '运动连帽拉链卫衣休闲开衫长袖多色运动细绒面料运动上衣',
  449. goodsPictureUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-17a.png',
  450. originPrice: '39900',
  451. actualPrice: '25900',
  452. specifications: [
  453. { specTitle: '颜色', specValue: '军绿色' },
  454. { specTitle: '尺码', specValue: 'XS' },
  455. ],
  456. buyQuantity: 1,
  457. itemTotalAmount: '25900',
  458. itemDiscountAmount: '392',
  459. itemPaymentAmount: '25508',
  460. goodsPaymentPrice: '25508',
  461. tagPrice: null,
  462. tagText: null,
  463. outCode: null,
  464. labelVOs: null,
  465. buttonVOs: null,
  466. },
  467. ],
  468. logisticsVO: {
  469. logisticsType: 1,
  470. logisticsNo: '',
  471. logisticsStatus: null,
  472. logisticsCompanyCode: '',
  473. logisticsCompanyName: '',
  474. receiverAddressId: '2',
  475. provinceCode: '440000',
  476. cityCode: '440300',
  477. countryCode: '440306',
  478. receiverProvince: '广东省',
  479. receiverCity: '深圳市',
  480. receiverCountry: '南山区',
  481. receiverArea: '',
  482. receiverAddress: '前海路333号阳光玫瑰园',
  483. receiverPostCode: '',
  484. receiverLongitude: '113.829127',
  485. receiverLatitude: '22.713649',
  486. receiverIdentity: '88888888205468',
  487. receiverPhone: '17612345678',
  488. receiverPhone: '17612345678',
  489. receiverName: '平均线',
  490. expectArrivalTime: null,
  491. senderName: '',
  492. senderPhone: '',
  493. senderAddress: '',
  494. sendTime: null,
  495. arrivalTime: null,
  496. },
  497. paymentVO: {
  498. payStatus: 1,
  499. amount: '458600',
  500. currency: null,
  501. payType: null,
  502. payWay: null,
  503. payWayName: null,
  504. interactId: null,
  505. traceNo: null,
  506. channelTrxNo: null,
  507. period: null,
  508. payTime: null,
  509. paySuccessTime: null,
  510. },
  511. buttonVOs: [
  512. {
  513. primary: true,
  514. type: 3,
  515. name: '确认收货',
  516. },
  517. ],
  518. labelVOs: null,
  519. invoiceVO: null,
  520. couponAmount: null,
  521. autoCancelTime: null,
  522. orderStatusName: '待收货',
  523. orderStatusRemark: null,
  524. logisticsLogVO: null,
  525. invoiceStatus: null,
  526. invoiceDesc: null,
  527. invoiceUrl: null,
  528. },
  529. {
  530. saasId: '88888888',
  531. storeId: '1000',
  532. storeName: '云Mall深圳旗舰店',
  533. uid: '88888888205468',
  534. parentOrderNo: '130862219672031307',
  535. orderId: '130862224737571072',
  536. orderNo: '130862219672031307',
  537. orderType: 0,
  538. orderSubType: 0,
  539. orderStatus: 80,
  540. orderSubStatus: null,
  541. totalAmount: '298000',
  542. goodsAmount: '298000',
  543. goodsAmountApp: '298000',
  544. paymentAmount: '263200',
  545. freightFee: '0',
  546. packageFee: '0',
  547. discountAmount: '34800',
  548. channelType: 0,
  549. channelSource: '',
  550. channelIdentity: '',
  551. remark: '',
  552. cancelType: null,
  553. cancelReasonType: null,
  554. cancelReason: null,
  555. rightsType: null,
  556. createTime: '1587049485899',
  557. orderItemVOs: [
  558. {
  559. id: '130862224922120960',
  560. orderNo: null,
  561. spuId: '0',
  562. skuId: '135676631',
  563. roomId: null,
  564. goodsMainType: 0,
  565. goodsViceType: 0,
  566. goodsName: '白色短袖连衣裙荷叶边裙摆宽松韩版休闲纯白清爽优雅连衣裙',
  567. goodsPictureUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09a.png',
  568. originPrice: '40000',
  569. actualPrice: '29800',
  570. specifications: [
  571. { specTitle: '颜色', specValue: '米色荷叶边' },
  572. { specTitle: '尺码', specValue: 'S' },
  573. ],
  574. buyQuantity: 10,
  575. itemTotalAmount: '298000',
  576. itemDiscountAmount: '29800',
  577. itemPaymentAmount: '268200',
  578. goodsPaymentPrice: '26820',
  579. tagPrice: null,
  580. tagText: null,
  581. outCode: null,
  582. labelVOs: null,
  583. buttonVOs: null,
  584. },
  585. ],
  586. logisticsVO: {
  587. logisticsType: 1,
  588. logisticsNo: '',
  589. logisticsStatus: null,
  590. logisticsCompanyCode: '',
  591. logisticsCompanyName: '',
  592. receiverAddressId: '2',
  593. provinceCode: '440000',
  594. cityCode: '440300',
  595. countryCode: '440306',
  596. receiverProvince: '广东省',
  597. receiverCity: '深圳市',
  598. receiverCountry: '南山区',
  599. receiverArea: '',
  600. receiverAddress: '前海路333号阳光玫瑰园',
  601. receiverPostCode: '',
  602. receiverLongitude: '113.829127',
  603. receiverLatitude: '22.713649',
  604. receiverIdentity: '88888888205468',
  605. receiverPhone: '17612345678',
  606. receiverPhone: '17612345678',
  607. receiverName: '平均线',
  608. expectArrivalTime: null,
  609. senderName: '',
  610. senderPhone: '',
  611. senderAddress: '',
  612. sendTime: null,
  613. arrivalTime: null,
  614. },
  615. paymentVO: {
  616. payStatus: 1,
  617. amount: '263200',
  618. currency: null,
  619. payType: null,
  620. payWay: null,
  621. payWayName: null,
  622. interactId: null,
  623. traceNo: null,
  624. channelTrxNo: null,
  625. period: null,
  626. payTime: null,
  627. paySuccessTime: null,
  628. },
  629. buttonVOs: null,
  630. labelVOs: null,
  631. invoiceVO: null,
  632. couponAmount: null,
  633. autoCancelTime: null,
  634. orderStatusName: '已取消',
  635. orderStatusRemark: null,
  636. logisticsLogVO: null,
  637. invoiceStatus: null,
  638. invoiceDesc: null,
  639. invoiceUrl: null,
  640. },
  641. {
  642. saasId: '88888888',
  643. storeId: '1000',
  644. storeName: '云Mall深圳旗舰店',
  645. uid: '88888888205468',
  646. parentOrderNo: '130494472895208267',
  647. orderId: '130494482155052032',
  648. orderNo: '130494472895208267',
  649. orderType: 0,
  650. orderSubType: 0,
  651. orderStatus: 80,
  652. orderSubStatus: null,
  653. totalAmount: '59700',
  654. goodsAmount: '59700',
  655. goodsAmountApp: '59700',
  656. paymentAmount: '24900',
  657. freightFee: '0',
  658. packageFee: '0',
  659. discountAmount: '34800',
  660. channelType: 0,
  661. channelSource: '',
  662. channelIdentity: '',
  663. remark: '',
  664. cancelType: null,
  665. cancelReasonType: null,
  666. cancelReason: null,
  667. rightsType: null,
  668. createTime: '1587027566730',
  669. orderItemVOs: [
  670. {
  671. id: '130494482322824704',
  672. orderNo: null,
  673. spuId: '7',
  674. skuId: '135691633',
  675. roomId: null,
  676. goodsMainType: 0,
  677. goodsViceType: 0,
  678. goodsName: '不锈钢刀叉勺套装家用西餐餐具ins简约耐用不锈钢金色银色可选',
  679. goodsPictureUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/gh-2b.png',
  680. originPrice: '29900',
  681. actualPrice: '19900',
  682. specifications: [
  683. { specTitle: '颜色', specValue: '奶黄色' },
  684. { specTitle: '类型', specValue: '三件套' },
  685. ],
  686. buyQuantity: 3,
  687. itemTotalAmount: '59700',
  688. itemDiscountAmount: '29800',
  689. itemPaymentAmount: '29900',
  690. goodsPaymentPrice: '9966',
  691. tagPrice: null,
  692. tagText: null,
  693. outCode: null,
  694. labelVOs: null,
  695. buttonVOs: null,
  696. },
  697. ],
  698. logisticsVO: {
  699. logisticsType: 1,
  700. logisticsNo: '',
  701. logisticsStatus: null,
  702. logisticsCompanyCode: '',
  703. logisticsCompanyName: '',
  704. receiverAddressId: '2',
  705. provinceCode: '440000',
  706. cityCode: '440300',
  707. countryCode: '440306',
  708. receiverProvince: '广东省',
  709. receiverCity: '深圳市',
  710. receiverCountry: '南山区',
  711. receiverArea: '',
  712. receiverAddress: '前海路333号阳光玫瑰园',
  713. receiverPostCode: '',
  714. receiverLongitude: '113.829127',
  715. receiverLatitude: '22.713649',
  716. receiverIdentity: '88888888205468',
  717. receiverPhone: '17612345678',
  718. receiverPhone: '17612345678',
  719. receiverName: '平均线',
  720. expectArrivalTime: null,
  721. senderName: '',
  722. senderPhone: '',
  723. senderAddress: '',
  724. sendTime: null,
  725. arrivalTime: null,
  726. },
  727. paymentVO: {
  728. payStatus: 1,
  729. amount: '24900',
  730. currency: null,
  731. payType: null,
  732. payWay: null,
  733. payWayName: null,
  734. interactId: null,
  735. traceNo: null,
  736. channelTrxNo: null,
  737. period: null,
  738. payTime: null,
  739. paySuccessTime: null,
  740. },
  741. buttonVOs: null,
  742. labelVOs: null,
  743. invoiceVO: null,
  744. couponAmount: null,
  745. autoCancelTime: null,
  746. orderStatusName: '已取消',
  747. orderStatusRemark: null,
  748. logisticsLogVO: null,
  749. invoiceStatus: null,
  750. invoiceDesc: null,
  751. invoiceUrl: null,
  752. },
  753. {
  754. saasId: '88888888',
  755. storeId: '1000',
  756. storeName: '云Mall深圳旗舰店',
  757. uid: '88888888205468',
  758. parentOrderNo: '130169571554503755',
  759. orderId: '130169572291521792',
  760. orderNo: '130169571554503755',
  761. orderType: 0,
  762. orderSubType: 0,
  763. orderStatus: 50,
  764. orderSubStatus: null,
  765. totalAmount: '538000',
  766. goodsAmount: '538000',
  767. goodsAmountApp: '538000',
  768. paymentAmount: '508200',
  769. freightFee: '0',
  770. packageFee: '0',
  771. discountAmount: '29800',
  772. channelType: 0,
  773. channelSource: '',
  774. channelIdentity: '',
  775. remark: '',
  776. cancelType: null,
  777. cancelReasonType: null,
  778. cancelReason: null,
  779. rightsType: null,
  780. createTime: '1587008200590',
  781. orderItemVOs: [
  782. {
  783. id: '130169572425740032',
  784. orderNo: null,
  785. spuId: '1',
  786. skuId: '135691631',
  787. roomId: null,
  788. goodsMainType: 0,
  789. goodsViceType: 0,
  790. goodsName: '纯色纯棉休闲圆领短袖T恤纯白亲肤厚柔软细腻面料纯白短袖套头T恤',
  791. goodsPictureUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-08b.png',
  792. originPrice: '31900',
  793. actualPrice: '26900',
  794. specifications: [
  795. { specTitle: '颜色', specValue: '橙色' },
  796. { specTitle: '尺码', specValue: 'M' },
  797. ],
  798. buyQuantity: 20,
  799. itemTotalAmount: '538000',
  800. itemDiscountAmount: '29800',
  801. itemPaymentAmount: '508200',
  802. goodsPaymentPrice: '25410',
  803. tagPrice: null,
  804. tagText: null,
  805. outCode: null,
  806. labelVOs: null,
  807. buttonVOs: [
  808. {
  809. primary: true,
  810. type: 4,
  811. name: '',
  812. },
  813. ],
  814. },
  815. ],
  816. logisticsVO: {
  817. logisticsType: 1,
  818. logisticsNo: '123',
  819. logisticsStatus: null,
  820. logisticsCompanyCode: 'zhongtong',
  821. logisticsCompanyName: '中通速递',
  822. receiverAddressId: '2',
  823. provinceCode: '440000',
  824. cityCode: '440300',
  825. countryCode: '440306',
  826. receiverProvince: '广东省',
  827. receiverCity: '深圳市',
  828. receiverCountry: '南山区',
  829. receiverArea: '',
  830. receiverAddress: '前海路333号阳光玫瑰园',
  831. receiverPostCode: '',
  832. receiverLongitude: '113.829127',
  833. receiverLatitude: '22.713649',
  834. receiverIdentity: '88888888205468',
  835. receiverPhone: '17612345678',
  836. receiverPhone: '17612345678',
  837. receiverName: '平均线',
  838. expectArrivalTime: null,
  839. senderName: '',
  840. senderPhone: '',
  841. senderAddress: '',
  842. sendTime: '1587008529453',
  843. arrivalTime: '1587008623995',
  844. },
  845. paymentVO: {
  846. payStatus: 1,
  847. amount: '508200',
  848. currency: null,
  849. payType: null,
  850. payWay: null,
  851. payWayName: null,
  852. interactId: null,
  853. traceNo: null,
  854. channelTrxNo: null,
  855. period: null,
  856. payTime: null,
  857. paySuccessTime: null,
  858. },
  859. buttonVOs: [
  860. { primary: false, type: 4, name: '申请售后' },
  861. { primary: true, type: 6, name: '评价' },
  862. ],
  863. labelVOs: null,
  864. invoiceVO: {
  865. buyerName: '腾讯计算机有限公司', //个人或公司名称
  866. buyerTaxNo: '9144 9808 0909 0293 XG', //税号
  867. buyerPhone: '18600008888', //手机
  868. email: '73900484@qq.com', //邮箱
  869. titleType: 2, //发票抬头 1-个人 2-公司
  870. ontentType: 1, //发票内容 1-明细 2类别
  871. invoiceType: 5, //是否开票 0-不开 5-电子发票
  872. money: '1.54',
  873. },
  874. couponAmount: null,
  875. autoCancelTime: null,
  876. orderStatusName: '交易完成',
  877. orderStatusRemark: null,
  878. logisticsLogVO: null,
  879. invoiceStatus: null,
  880. invoiceDesc: null,
  881. invoiceUrl: null,
  882. },
  883. {
  884. saasId: '88888888',
  885. storeId: '1000',
  886. storeName: '云Mall深圳旗舰店',
  887. uid: '88888888205468',
  888. parentOrderNo: '130150835531421259',
  889. orderId: '130150836385879808',
  890. orderNo: '130150835531421259',
  891. orderType: 0,
  892. orderSubType: 0,
  893. orderStatus: 50,
  894. orderSubStatus: null,
  895. totalAmount: '29800',
  896. goodsAmount: '29800',
  897. goodsAmountApp: '29800',
  898. paymentAmount: '4000',
  899. freightFee: '0',
  900. packageFee: '0',
  901. discountAmount: '25800',
  902. channelType: 0,
  903. channelSource: '',
  904. channelIdentity: '',
  905. remark: '',
  906. cancelType: null,
  907. cancelReasonType: null,
  908. cancelReason: null,
  909. rightsType: null,
  910. createTime: '1587007083842',
  911. orderItemVOs: [
  912. {
  913. id: '130150836520098048',
  914. orderNo: null,
  915. spuId: '0',
  916. skuId: '135681631',
  917. roomId: null,
  918. goodsMainType: 0,
  919. goodsViceType: 0,
  920. goodsName: '白色短袖连衣裙荷叶边裙摆宽松韩版休闲纯白清爽优雅连衣裙',
  921. goodsPictureUrl: 'https://tdesign.gtimg.com/miniprogram/template/retail/goods/nz-09a.png',
  922. originPrice: '40000',
  923. actualPrice: '29800',
  924. specifications: [
  925. { specTitle: '颜色', specValue: '米色荷叶边' },
  926. { specTitle: '尺码', specValue: 'M' },
  927. ],
  928. buyQuantity: 1,
  929. itemTotalAmount: '29800',
  930. itemDiscountAmount: '25800',
  931. itemPaymentAmount: '4000',
  932. goodsPaymentPrice: '4000',
  933. tagPrice: null,
  934. tagText: null,
  935. outCode: null,
  936. labelVOs: null,
  937. buttonVOs: null,
  938. },
  939. ],
  940. logisticsVO: {
  941. logisticsType: 1,
  942. logisticsNo: '123',
  943. logisticsStatus: null,
  944. logisticsCompanyCode: 'yuantong',
  945. logisticsCompanyName: '圆通速递',
  946. receiverAddressId: '2',
  947. provinceCode: '440000',
  948. cityCode: '440300',
  949. countryCode: '440306',
  950. receiverProvince: '广东省',
  951. receiverCity: '深圳市',
  952. receiverCountry: '南山区',
  953. receiverArea: '',
  954. receiverAddress: '前海路333号阳光玫瑰园',
  955. receiverPostCode: '',
  956. receiverLongitude: '113.829127',
  957. receiverLatitude: '22.713649',
  958. receiverIdentity: '88888888205468',
  959. receiverPhone: '17612345678',
  960. receiverPhone: '17612345678',
  961. receiverName: '平均线',
  962. expectArrivalTime: null,
  963. senderName: '',
  964. senderPhone: '',
  965. senderAddress: '',
  966. sendTime: '1587008539953',
  967. arrivalTime: '1588291200508',
  968. },
  969. paymentVO: {
  970. payStatus: 1,
  971. amount: '4000',
  972. currency: null,
  973. payType: null,
  974. payWay: null,
  975. payWayName: null,
  976. interactId: null,
  977. traceNo: null,
  978. channelTrxNo: null,
  979. period: null,
  980. payTime: null,
  981. paySuccessTime: null,
  982. },
  983. buttonVOs: [{ primary: true, type: 6, name: '评价' }],
  984. labelVOs: null,
  985. invoiceVO: null,
  986. couponAmount: null,
  987. autoCancelTime: null,
  988. orderStatusName: '交易完成',
  989. orderStatusRemark: null,
  990. logisticsLogVO: null,
  991. invoiceStatus: null,
  992. invoiceDesc: null,
  993. invoiceUrl: null,
  994. },
  995. ],
  996. },
  997. code: 'Success',
  998. msg: null,
  999. requestId: mockReqId(),
  1000. clientIp: mockIp(),
  1001. rt: 113,
  1002. success: true,
  1003. };
  1004. const { pageNum, pageSize, orderStatus } = params.parameter;
  1005. // 实现筛选
  1006. if (orderStatus > -1) {
  1007. resp.data.orders = resp.data.orders.filter((order) => order.orderStatus === orderStatus);
  1008. }
  1009. // 实现分页
  1010. resp.data.pageNum = pageNum;
  1011. resp.data.pageSize = pageSize;
  1012. resp.data.orders = resp.data.orders.slice((pageNum - 1) * pageSize, pageNum * pageSize);
  1013. return resp;
  1014. }
  1015. export function genOrdersCount() {
  1016. const resp = {
  1017. data: [
  1018. { tabType: 5, orderNum: 1 },
  1019. { tabType: 10, orderNum: 1 },
  1020. { tabType: 40, orderNum: 1 },
  1021. { tabType: 50, orderNum: 2 },
  1022. ],
  1023. code: 'Success',
  1024. msg: null,
  1025. requestId: mockReqId(),
  1026. clientIp: mockIp(),
  1027. rt: 41,
  1028. success: true,
  1029. };
  1030. return resp;
  1031. }