orderDetail.js 34 KB

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