index.vue 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735
  1. <template>
  2. <view class="invoice">
  3. <nav-bar title="发票申请"></nav-bar>
  4. <view class="invoice__tabs">
  5. <u-tabs
  6. :list="list"
  7. sticky
  8. :current="current"
  9. @change="change"
  10. active-color="#007AFF"
  11. ></u-tabs>
  12. </view>
  13. <view class="invoice__content">
  14. <view class="open" v-if="current == 0">
  15. <view class="form">
  16. <u-form :model="form" ref="uForm">
  17. <u-form-item
  18. label="发票类型"
  19. label-width="150"
  20. required
  21. prop="type"
  22. >
  23. <u-radio-group v-model="form.type" @change="formTypeChange">
  24. <u-radio
  25. v-for="(item, index) in typeList"
  26. :key="index"
  27. :name="item.value"
  28. >
  29. {{ item.name }}
  30. </u-radio>
  31. </u-radio-group>
  32. </u-form-item>
  33. <!-- 增值税发票 -->
  34. <template v-if="form.type == 2">
  35. <u-form-item
  36. label="申请主体"
  37. label-width="150"
  38. required
  39. prop="subject"
  40. >
  41. <u-radio-group v-model="form.subject">
  42. <u-radio :key="index" name="2"> 企业 </u-radio>
  43. </u-radio-group>
  44. </u-form-item>
  45. <u-form-item
  46. label="发票抬头"
  47. label-width="150"
  48. required
  49. prop="invoiceTitle"
  50. >
  51. <u-input
  52. placeholder="请输入发票抬头"
  53. v-model="form.invoiceTitle"
  54. />
  55. </u-form-item>
  56. <u-form-item label="发票备注" label-width="150">
  57. <u-input
  58. placeholder="请输入发票备注"
  59. v-model="form.invoiceRemark"
  60. />
  61. </u-form-item>
  62. <u-form-item label="邮箱" label-width="150" required prop="email">
  63. <u-input placeholder="请输入邮箱" v-model="form.email" />
  64. </u-form-item>
  65. <u-form-item
  66. label="纳税登记号"
  67. label-width="150"
  68. required
  69. prop="taxRegistryNumber"
  70. >
  71. <u-input
  72. placeholder="请输入纳税登记号"
  73. v-model="form.taxRegistryNumber"
  74. />
  75. </u-form-item>
  76. <u-form-item
  77. label="单位地址"
  78. label-width="150"
  79. required
  80. prop="companyAddress"
  81. >
  82. <u-input
  83. placeholder="请输入单位地址"
  84. v-model="form.companyAddress"
  85. />
  86. </u-form-item>
  87. <u-form-item
  88. label="电话号码"
  89. label-width="150"
  90. required
  91. prop="phone"
  92. >
  93. <u-input
  94. placeholder="请输入电话号码"
  95. type="number"
  96. v-model="form.phone"
  97. />
  98. </u-form-item>
  99. <u-form-item
  100. label="开户银行"
  101. label-width="150"
  102. required
  103. prop="bankName"
  104. >
  105. <u-input placeholder="请输入开户银行" v-model="form.bankName" />
  106. </u-form-item>
  107. <u-form-item
  108. label="银行账号"
  109. label-width="150"
  110. required
  111. prop="bankAccount"
  112. >
  113. <u-input
  114. placeholder="请输入银行账号"
  115. type="number"
  116. v-model="form.bankAccount"
  117. />
  118. </u-form-item>
  119. <u-form-item
  120. label="收件地址"
  121. label-width="150"
  122. required
  123. prop="receivingAddress"
  124. >
  125. <u-input
  126. placeholder="请输入收件地址"
  127. v-model="form.receivingAddress"
  128. />
  129. </u-form-item>
  130. <u-form-item
  131. label="收件人"
  132. label-width="150"
  133. required
  134. prop="receivingName"
  135. >
  136. <u-input
  137. placeholder="请输入收件人"
  138. v-model="form.receivingName"
  139. />
  140. </u-form-item>
  141. <u-form-item
  142. label="收件手机"
  143. label-width="150"
  144. required
  145. prop="receivingTel"
  146. >
  147. <u-input
  148. placeholder="请输入收件手机"
  149. v-model="form.receivingTel"
  150. />
  151. </u-form-item>
  152. </template>
  153. <!-- 增值税发票 -->
  154. <!-- 普通发票 -->
  155. <template v-else>
  156. <u-form-item
  157. label="申请主体"
  158. label-width="150"
  159. required
  160. prop="subject"
  161. >
  162. <u-radio-group v-model="form.subject">
  163. <u-radio
  164. v-for="(item, index) in mainList"
  165. :key="index"
  166. :name="item.value"
  167. >
  168. {{ item.name }}
  169. </u-radio>
  170. </u-radio-group>
  171. </u-form-item>
  172. <u-form-item
  173. label="发票抬头"
  174. label-width="150"
  175. required
  176. prop="invoiceTitle"
  177. >
  178. <u-input
  179. placeholder="请输入发票抬头"
  180. v-model="form.invoiceTitle"
  181. />
  182. </u-form-item>
  183. <u-form-item label="发票备注" label-width="150">
  184. <u-input
  185. placeholder="请输入发票备注"
  186. v-model="form.invoiceRemark"
  187. />
  188. </u-form-item>
  189. <u-form-item label="邮箱" label-width="150" required prop="email">
  190. <u-input placeholder="请输入邮箱" v-model="form.email" />
  191. </u-form-item>
  192. <u-form-item
  193. v-if="form.subject == '2'"
  194. label="纳税登记号"
  195. label-width="150"
  196. required
  197. prop="taxRegistryNumber"
  198. >
  199. <u-input
  200. placeholder="请输入纳税登记号"
  201. v-model="form.taxRegistryNumber"
  202. />
  203. </u-form-item>
  204. </template>
  205. <!-- 普通发票 -->
  206. <u-form-item
  207. label="选择订单"
  208. label-width="150"
  209. required
  210. prop="orderGoodsIds"
  211. right-icon="arrow-right"
  212. ref="orderGoodsIds"
  213. >
  214. <view class="form-item" @click="selectOrderModal = true">
  215. <u-input
  216. placeholder="请点击选择订单"
  217. disabled
  218. @click="selectOrderModal = true"
  219. />
  220. </view>
  221. </u-form-item>
  222. <view>
  223. <view
  224. class="check-order"
  225. v-for="(item, index) in filterOrderList"
  226. :key="index"
  227. >
  228. <view class="close" @click="deleteOrder(index)">
  229. <u-icon
  230. name="close-circle-fill"
  231. color="#FF2D55"
  232. size="40"
  233. ></u-icon>
  234. </view>
  235. <view class="title">商品名称:{{ item.goodsName }}</view>
  236. <view class="number">订单编号:{{ item.orderSn }}</view>
  237. <view class="price">价格:¥ {{ item.goodsPrice }}</view>
  238. </view>
  239. </view>
  240. </u-form>
  241. </view>
  242. <view class="order-text">
  243. <view class="order-text__label">本次申请开票金额:</view>
  244. <view class="order-text__price">¥ {{ toFixed(invoicePirce) }}</view>
  245. </view>
  246. <view class="submit" @click="formSubmit"> 提交申请 </view>
  247. </view>
  248. <view class="record" v-if="current == 1">
  249. <view class="nodata" v-if="!recordList.length">
  250. 您暂无相关发票记录哦~
  251. </view>
  252. <view class="record__list">
  253. <view
  254. class="record-item"
  255. @click="showDetailModal(record)"
  256. v-for="(record, index) in recordList"
  257. :key="index"
  258. >
  259. <view class="item__time">{{
  260. $method.timestampToTime(record.applyTime, false, false)
  261. }}</view>
  262. <view class="item__content">
  263. <view class="top">
  264. <view
  265. class="state"
  266. :class="{
  267. wait: record.periodStatus == 1,
  268. refuse: record.periodStatus == 2,
  269. agree: record.periodStatus == 3,
  270. }"
  271. >
  272. <text v-if="record.periodStatus == 1">待审核</text>
  273. <text v-if="record.periodStatus == 2">驳回</text>
  274. <text v-if="record.periodStatus == 3">通过</text>
  275. <u-icon
  276. class="arrow"
  277. name="arrow-right"
  278. color="#ffffff"
  279. size="28"
  280. ></u-icon>
  281. </view>
  282. </view>
  283. <view class="bottom">
  284. <view class="flex">
  285. <view class="text">发票类型</view>
  286. <view class="flex__auto">
  287. <text v-if="record.type == 1">普通发票</text>
  288. <text v-if="record.type == 2">增值税专用发票</text>
  289. </view>
  290. </view>
  291. <view class="flex">
  292. <view class="text">申请主体</view>
  293. <view class="flex__auto">
  294. <text v-if="record.subject == 1">个人</text>
  295. <text v-if="record.subject == 2">企业</text>
  296. </view>
  297. </view>
  298. <view class="flex">
  299. <view class="text">发票状态</view>
  300. <view class="flex__auto">
  301. <text class="red" v-if="record.invoiceStatus == 1"
  302. >未开票</text
  303. >
  304. <text class="red" v-if="record.invoiceStatus == 3"
  305. >开票中</text
  306. >
  307. <text class="green" v-if="record.invoiceStatus == 2"
  308. >已开票</text
  309. >
  310. <text class="red" v-if="record.invoiceStatus == -1"
  311. >已退票</text
  312. >
  313. </view>
  314. </view>
  315. <view @click.stop="showOrder(record.checked, index)">
  316. <view class="flex noborder">
  317. <view class="text">开票订单</view>
  318. <view class="flex__auto">
  319. <text style="margin-right: 10rpx">{{
  320. record.orderList.length
  321. }}</text>
  322. <u-icon
  323. v-if="!record.checked"
  324. name="arrow-down"
  325. color="#ccc"
  326. size="28"
  327. ></u-icon>
  328. <u-icon
  329. v-if="record.checked"
  330. name="arrow-up"
  331. color="#ccc"
  332. size="28"
  333. ></u-icon>
  334. </view>
  335. </view>
  336. <view class="order-list" v-if="record.checked">
  337. <view
  338. class="order-item"
  339. :key="orderIndex"
  340. v-for="(orderItem, orderIndex) in record.orderList"
  341. >{{ orderIndex + 1 }}.{{ orderItem.goodsName }}</view
  342. >
  343. </view>
  344. </view>
  345. </view>
  346. </view>
  347. </view>
  348. </view>
  349. </view>
  350. </view>
  351. <u-popup
  352. class="modal"
  353. v-model="selectOrderModal"
  354. mode="bottom"
  355. border-radius="24"
  356. >
  357. <view class="select-order">
  358. <view class="line"></view>
  359. <view class="title">选择订单</view>
  360. <u-line color="#D6D6DB" />
  361. <view>
  362. <scroll-view scroll-y="true" style="height: 500rpx">
  363. <view v-if="orderList.length">
  364. <u-checkbox-group>
  365. <view v-for="(item, index) in orderList" :key="index">
  366. <view class="order-item">
  367. <view>
  368. <u-checkbox
  369. :disabled="item.disabled"
  370. shape="circle"
  371. :name="item.name"
  372. v-model="item.checked"
  373. >
  374. <view
  375. class="order-item__bg"
  376. :class="item.checked ? 'active' : ''"
  377. >
  378. <view>
  379. <view class="order-title">{{
  380. item.goodsName
  381. }}</view>
  382. <view class="order-number">{{ item.orderSn }}</view>
  383. <view class="order-price"
  384. >¥ {{ item.goodsPrice }}元</view
  385. >
  386. </view>
  387. </view>
  388. </u-checkbox>
  389. </view>
  390. </view>
  391. </view>
  392. </u-checkbox-group>
  393. </view>
  394. <view v-else class="no_data">
  395. <text>暂无可开发票的订单</text>
  396. </view>
  397. </scroll-view>
  398. </view>
  399. <view class="confrim-btn">
  400. <view class="okBtn" @click="okPopup()">确定</view>
  401. </view>
  402. </view>
  403. </u-popup>
  404. <u-popup
  405. class="modal"
  406. v-model="orderDetailModal"
  407. mode="center"
  408. border-radius="40"
  409. >
  410. <view class="order-detail">
  411. <view class="order-detail__content">
  412. <scroll-view scroll-y="true" style="height: 860rpx">
  413. <view class="content">
  414. <view class="header">{{
  415. $method.timestampToTime(invoiceDetail.applyTime, false, false)
  416. }}</view>
  417. <view class="body">
  418. <view class="body__item">
  419. <view class="title">发票申请信息</view>
  420. <view class="content">
  421. <u-cell-item
  422. :border-bottom="false"
  423. hover-class="none"
  424. :arrow="false"
  425. >
  426. <view slot="title">发票类型:</view>
  427. <text v-if="invoiceDetail.type == 1">普通发票</text>
  428. <text v-if="invoiceDetail.type == 2">增值税专用发票</text>
  429. </u-cell-item>
  430. <u-cell-item
  431. :border-bottom="false"
  432. hover-class="none"
  433. :arrow="false"
  434. >
  435. <view slot="title">申请主体:</view>
  436. <text v-if="invoiceDetail.subject == 1">个人</text>
  437. <text v-if="invoiceDetail.subject == 2">企业</text>
  438. </u-cell-item>
  439. <u-cell-item
  440. :border-bottom="false"
  441. hover-class="none"
  442. :arrow="false"
  443. >
  444. <view slot="title">发票抬头:</view>
  445. <text>{{ invoiceDetail.invoiceTitle }}</text>
  446. </u-cell-item>
  447. <template v-if="invoiceDetail.subject == 2">
  448. <u-cell-item
  449. :border-bottom="false"
  450. hover-class="none"
  451. :arrow="false"
  452. >
  453. <view slot="title">纳税登记号:</view>
  454. <text>{{ invoiceDetail.taxRegistryNumber || "" }}</text>
  455. </u-cell-item>
  456. </template>
  457. <template v-if="invoiceDetail.type == 2">
  458. <u-cell-item
  459. :border-bottom="false"
  460. hover-class="none"
  461. :arrow="false"
  462. >
  463. <view slot="title">单位地址:</view>
  464. <text>{{ invoiceDetail.companyAddress || "" }}</text>
  465. </u-cell-item>
  466. <u-cell-item
  467. :border-bottom="false"
  468. hover-class="none"
  469. :arrow="false"
  470. >
  471. <view slot="title">电话号码:</view>
  472. <text>{{ invoiceDetail.phone || "" }}</text>
  473. </u-cell-item>
  474. <u-cell-item
  475. :border-bottom="false"
  476. hover-class="none"
  477. :arrow="false"
  478. >
  479. <view slot="title">开户银行:</view>
  480. <text>{{ invoiceDetail.bankName || "" }}</text>
  481. </u-cell-item>
  482. <u-cell-item
  483. :border-bottom="false"
  484. hover-class="none"
  485. :arrow="false"
  486. >
  487. <view slot="title">银行账号:</view>
  488. <text>{{ invoiceDetail.bankAccount || "" }}</text>
  489. </u-cell-item>
  490. <u-cell-item
  491. :border-bottom="false"
  492. hover-class="none"
  493. :arrow="false"
  494. >
  495. <view slot="title">收件地址:</view>
  496. <text>{{ invoiceDetail.receivingAddress || "" }}</text>
  497. </u-cell-item>
  498. <u-cell-item
  499. :border-bottom="false"
  500. hover-class="none"
  501. :arrow="false"
  502. >
  503. <view slot="title">收件人:</view>
  504. <text>{{ invoiceDetail.receivingName || "" }}</text>
  505. </u-cell-item>
  506. <u-cell-item
  507. :border-bottom="false"
  508. hover-class="none"
  509. :arrow="false"
  510. >
  511. <view slot="title">收件手机:</view>
  512. <text>{{ invoiceDetail.receivingTel || "" }}</text>
  513. </u-cell-item>
  514. <u-cell-item
  515. :border-bottom="false"
  516. hover-class="none"
  517. :arrow="false"
  518. >
  519. <view slot="title">开票订单:</view>
  520. </u-cell-item>
  521. </template>
  522. <view class="order-list">
  523. <view
  524. class="order-item"
  525. :key="orderIndex"
  526. v-for="(
  527. orderItem, orderIndex
  528. ) in invoiceDetail.orderList"
  529. >
  530. <view class="order-title">{{
  531. orderItem.goodsName
  532. }}</view>
  533. <view class="order-number">{{
  534. orderItem.orderSn
  535. }}</view>
  536. <view class="order-price"
  537. >¥ {{ orderItem.goodsRealPrice }}元</view
  538. >
  539. </view>
  540. </view>
  541. <view class="order-text">
  542. <view class="order-text__label">本次申请开票金额:</view>
  543. <view class="order-text__price"
  544. >¥ {{ toFixed(invoiceDetail.amount) }}</view
  545. >
  546. </view>
  547. </view>
  548. </view>
  549. <view class="body__item">
  550. <view class="title">发票申请结果</view>
  551. <view class="content">
  552. <u-cell-item
  553. :border-bottom="false"
  554. hover-class="none"
  555. :arrow="false"
  556. >
  557. <view slot="title">审核结果:</view>
  558. <text
  559. class="text wait"
  560. v-if="invoiceDetail.periodStatus == 1"
  561. >待审核</text
  562. >
  563. <text
  564. class="text agree"
  565. v-if="invoiceDetail.periodStatus == 3"
  566. >通过</text
  567. >
  568. <text
  569. class="text refuse"
  570. v-if="invoiceDetail.periodStatus == 2"
  571. >驳回</text
  572. >
  573. </u-cell-item>
  574. <u-cell-item
  575. :border-bottom="false"
  576. hover-class="none"
  577. :arrow="false"
  578. v-if="invoiceDetail.periodReason"
  579. >
  580. <view slot="title">审核反馈:</view>
  581. <text class="text">{{
  582. invoiceDetail.periodReason || ""
  583. }}</text>
  584. </u-cell-item>
  585. <u-cell-item
  586. :border-bottom="false"
  587. hover-class="none"
  588. :arrow="false"
  589. >
  590. <view slot="title">发票状态:</view>
  591. <text
  592. class="text refuse"
  593. v-if="invoiceDetail.invoiceStatus == 1"
  594. >未开票</text
  595. >
  596. <text class="red" v-if="invoiceDetail.invoiceStatus == 3"
  597. >开票中</text
  598. >
  599. <text
  600. class="text agree"
  601. v-if="invoiceDetail.invoiceStatus == 2"
  602. >已开票</text
  603. >
  604. <text
  605. class="text refuse"
  606. v-if="invoiceDetail.invoiceStatus == -1"
  607. >已退票</text
  608. >
  609. </u-cell-item>
  610. <u-cell-item
  611. :border-bottom="false"
  612. hover-class="none"
  613. :arrow="false"
  614. v-if="
  615. invoiceDetail.periodStatus == 3 &&
  616. (invoiceDetail.invoiceStatus == 2 ||
  617. invoiceDetail.invoiceStatus == -1) &&
  618. invoiceDetail.invoiceImg
  619. "
  620. >
  621. <!-- <view slot="title">发票预览:</view>
  622. <view>
  623. <image
  624. class="preview"
  625. @click="previewImg(invoiceDetail)"
  626. :src="$method.splitImgHost(invoiceDetail.invoiceImg)"
  627. ></image>
  628. <view
  629. class="download-btn"
  630. @click="download(invoiceDetail)"
  631. >下载电子发票</view
  632. >
  633. </view> -->
  634. <view
  635. class="download-btn"
  636. @click="download(invoiceDetail)"
  637. >下载电子发票</view
  638. >
  639. </u-cell-item>
  640. <u-cell-item
  641. :border-bottom="false"
  642. hover-class="none"
  643. :arrow="false"
  644. v-if="
  645. invoiceDetail.periodStatus == 3 &&
  646. (invoiceDetail.invoiceStatus == 2 ||
  647. invoiceDetail.invoiceStatus == -1) &&
  648. invoiceDetail.type == 2 &&
  649. invoiceDetail.subject == 2
  650. "
  651. >
  652. <view slot="title">机构发票邮寄状态:</view>
  653. <text class="text" v-if="invoiceDetail.sendInvoice == 1"
  654. >是</text
  655. >
  656. <text class="text" v-else>否</text>
  657. </u-cell-item>
  658. <u-cell-item
  659. v-if="
  660. invoiceDetail.periodStatus == 3 &&
  661. (invoiceDetail.invoiceStatus == 2 ||
  662. invoiceDetail.invoiceStatus == -1) &&
  663. invoiceDetail.sendInvoice == 1 &&
  664. invoiceDetail.type == 2 &&
  665. invoiceDetail.subject == 2
  666. "
  667. @click.stop="copy(invoiceDetail.trackingNum)"
  668. :border-bottom="false"
  669. hover-class="none"
  670. :arrow="false"
  671. >
  672. <view slot="title">发票邮寄快递单号:(点击可复制)</view>
  673. <text class="text">{{
  674. invoiceDetail.trackingNum || ""
  675. }}</text>
  676. </u-cell-item>
  677. </view>
  678. </view>
  679. </view>
  680. </view>
  681. </scroll-view>
  682. </view>
  683. <view class="order-detail__btns" v-if="invoiceDetail.periodStatus == 1">
  684. <view class="btn" @click="orderDetailModal = false">知道了</view>
  685. <view class="btn warm" @click="orderCancelModal = true"
  686. >撤销申请</view
  687. >
  688. </view>
  689. <view class="order-detail__btns" v-else>
  690. <view class="btn ok" @click="orderDetailModal = false">知道了</view>
  691. </view>
  692. </view>
  693. </u-popup>
  694. <u-popup
  695. class="modal"
  696. v-model="orderCancelModal"
  697. mode="center"
  698. border-radius="24"
  699. >
  700. <view class="order-cancel">
  701. <view class="header"> 温馨提示 </view>
  702. <view class="body">
  703. <view>撤销申请后,</view>
  704. <view>本次的发票申请内容将不存在。</view>
  705. <view>请慎重考虑。 </view>
  706. <view>您确定要取消本次发票申请吗?</view>
  707. </view>
  708. <view class="footer">
  709. <view class="btn cancel" @click="orderCancelModal = false">取消</view>
  710. <view class="btn ok" @click="orderCancel()">确定</view>
  711. </view>
  712. </view>
  713. </u-popup>
  714. </view>
  715. </template>
  716. <script>
  717. import { mapGetters } from "vuex";
  718. import { download } from "../../common/util";
  719. export default {
  720. components: {},
  721. data() {
  722. return {
  723. checkOrderList: [],
  724. recordList: [],
  725. list: [
  726. {
  727. name: "发票申请",
  728. },
  729. {
  730. name: "发票记录",
  731. },
  732. ],
  733. invoiceDetail: {
  734. amount: 0,
  735. },
  736. form: {
  737. type: "1",
  738. subject: "1",
  739. invoiceTitle: "",
  740. orderGoodsIds: "",
  741. taxRegistryNumber: "",
  742. companyAddress: "",
  743. email: "",
  744. invoiceRemark: "",
  745. phone: "",
  746. bankName: "",
  747. bankAccount: "",
  748. receivingAddress: "",
  749. receivingName: "",
  750. receivingTel: "",
  751. },
  752. rules: {
  753. receivingTel: [
  754. {
  755. required: true,
  756. message: "请输入收件手机",
  757. // 可以单个或者同时写两个触发验证方式
  758. trigger: ["change"],
  759. },
  760. {
  761. validator: (rule, value, callback) => {
  762. // 上面有说,返回true表示校验通过,返回false表示不通过
  763. // this.$u.test.mobile()就是返回true或者false的
  764. return this.$u.test.mobile(value);
  765. },
  766. message: "手机号码格式不正确",
  767. // 触发器可以同时用blur和change
  768. trigger: ["change"],
  769. },
  770. ],
  771. type: [
  772. {
  773. required: true,
  774. message: "请选择发票类型",
  775. // 可以单个或者同时写两个触发验证方式
  776. trigger: ["change"],
  777. },
  778. ],
  779. subject: [
  780. {
  781. required: true,
  782. message: "请选择申请主体",
  783. // 可以单个或者同时写两个触发验证方式
  784. trigger: ["change"],
  785. },
  786. ],
  787. invoiceTitle: [
  788. {
  789. required: true,
  790. message: "请输入发票抬头",
  791. // 可以单个或者同时写两个触发验证方式
  792. trigger: ["change"],
  793. },
  794. ],
  795. taxRegistryNumber: [
  796. {
  797. required: true,
  798. message: "请输入纳税登记号",
  799. // 可以单个或者同时写两个触发验证方式
  800. trigger: ["change"],
  801. },
  802. {
  803. validator: (rule, value, callback) => {
  804. // 上面有说,返回true表示校验通过,返回false表示不通过
  805. var reg = /(^[0-9A-Z]{15,20}$)/;
  806. return reg.test(value);
  807. },
  808. message: "纳税登记号格式不正确",
  809. // 触发器可以同时用blur和change
  810. trigger: ["change"],
  811. },
  812. ],
  813. email: [
  814. {
  815. required: true,
  816. message: "请输入邮箱",
  817. // 可以单个或者同时写两个触发验证方式
  818. trigger: ["change"],
  819. },
  820. {
  821. validator: (rule, value, callback) => {
  822. // 上面有说,返回true表示校验通过,返回false表示不通过
  823. var reg =
  824. /^([a-zA-Z\d][\w-]{2,})@(\w{2,})\.([a-z]{2,})(\.[a-z]{2,})?$/;
  825. return reg.test(value);
  826. },
  827. message: "邮箱格式不正确",
  828. // 触发器可以同时用blur和change
  829. trigger: ["change"],
  830. },
  831. ],
  832. companyAddress: [
  833. {
  834. required: true,
  835. message: "请输入单位地址",
  836. // 可以单个或者同时写两个触发验证方式
  837. trigger: ["change"],
  838. },
  839. ],
  840. phone: [
  841. {
  842. required: true,
  843. message: "请输入电话号码",
  844. // 可以单个或者同时写两个触发验证方式
  845. trigger: ["change"],
  846. },
  847. {
  848. validator: (rule, value, callback) => {
  849. var vartest = /^([0-9]{3,4}-)?[0-9]{7,8}$/;
  850. var vartest1 = /^([0-9]{3,4})?[0-9]{7,8}$/;
  851. if (
  852. this.$u.test.mobile(value) ||
  853. vartest.test(value) ||
  854. vartest1.test(value)
  855. ) {
  856. return true;
  857. } else {
  858. return false;
  859. }
  860. },
  861. message: "电话号码不正确",
  862. trigger: ["change", "blur"],
  863. },
  864. ],
  865. bankName: [
  866. {
  867. required: true,
  868. message: "请输入开户银行",
  869. // 可以单个或者同时写两个触发验证方式
  870. trigger: ["change"],
  871. },
  872. {
  873. validator: (rule, value, callback) => {
  874. var reg = /[\u4E00-\u9FA5]+/;
  875. return reg.test(value);
  876. },
  877. message: "开户银行名称不正确",
  878. trigger: ["change", "blur"],
  879. },
  880. ],
  881. bankAccount: [
  882. {
  883. required: true,
  884. message: "请输入银行账号",
  885. // 可以单个或者同时写两个触发验证方式
  886. trigger: ["change"],
  887. },
  888. {
  889. validator: (rule, value, callback) => {
  890. // 上面有说,返回true表示校验通过,返回false表示不通过
  891. var reg = /^[1-9]{1}(\d{15}|\d{18})$/;
  892. return reg.test(value);
  893. },
  894. message: "银行卡号格式不正确",
  895. // 触发器可以同时用blur和change
  896. trigger: ["change"],
  897. },
  898. ],
  899. receivingAddress: [
  900. {
  901. required: true,
  902. message: "请输入收件地址",
  903. // 可以单个或者同时写两个触发验证方式
  904. trigger: ["change"],
  905. },
  906. ],
  907. receivingName: [
  908. {
  909. required: true,
  910. message: "请输入收件人",
  911. // 可以单个或者同时写两个触发验证方式
  912. trigger: ["change"],
  913. },
  914. ],
  915. orderGoodsIds: [
  916. {
  917. required: true,
  918. message: "请选择订单",
  919. // 可以单个或者同时写两个触发验证方式
  920. trigger: ["change"],
  921. },
  922. ],
  923. },
  924. orderValue: "",
  925. orderList: [],
  926. selectOrderModal: false,
  927. orderDetailModal: false,
  928. orderCancelModal: false,
  929. current: 0,
  930. invoicePirce: 0,
  931. order: [],
  932. typeList: [
  933. {
  934. name: "普通发票",
  935. value: "1",
  936. },
  937. {
  938. name: "增值税专用发票",
  939. value: "2",
  940. },
  941. ],
  942. mainList: [
  943. {
  944. name: "个人",
  945. value: "1",
  946. },
  947. {
  948. name: "企业",
  949. value: "2",
  950. },
  951. ],
  952. };
  953. },
  954. // onPullDownRefresh() {},
  955. onLoad(option) {
  956. this.orderInvoiceCanInvoiceList();
  957. },
  958. onReady() {
  959. this.$refs.uForm.setRules(this.rules);
  960. },
  961. methods: {
  962. orderCancel() {
  963. let invoiceDetail = JSON.parse(JSON.stringify(this.invoiceDetail));
  964. invoiceDetail.status = -1;
  965. this.$api.orderInvoiceCancel(invoiceDetail).then((res) => {
  966. if (res.data.code == 200) {
  967. this.orderInvoiceList();
  968. this.orderInvoiceCanInvoiceList();
  969. this.orderDetailModal = false;
  970. this.orderCancelModal = false;
  971. uni.showToast({
  972. title: "撤销成功",
  973. icon: "none",
  974. });
  975. } else {
  976. }
  977. });
  978. },
  979. showDetailModal(item) {
  980. this.orderDetailModal = true;
  981. this.invoiceDetail = item;
  982. },
  983. toFixed(number) {
  984. return number.toFixed(2);
  985. },
  986. /**
  987. * 获取可开发票的订单,/order/invoice/canInvoiceList
  988. */
  989. orderInvoiceCanInvoiceList() {
  990. this.$api.orderInvoiceCanInvoiceList().then((res) => {
  991. if (res.data.code == 200) {
  992. res.data.rows.forEach((item) => {
  993. item.checked = false;
  994. });
  995. this.orderList = res.data.rows;
  996. }
  997. });
  998. },
  999. /**
  1000. * @param {Object} checkedState 显示状态
  1001. * @param {Object} index 索引值
  1002. * 修改开票订单列表显示状态
  1003. */
  1004. showOrder(showState, index) {
  1005. this.$set(this.recordList[index], "checked", !showState);
  1006. },
  1007. /**
  1008. * 发票申请提交
  1009. */
  1010. formSubmit() {
  1011. this.$refs.uForm.validate((valid) => {
  1012. if (valid) {
  1013. if (this.invoicePirce > 10000) {
  1014. uni.showModal({
  1015. title: "提示",
  1016. content:
  1017. "您所选的订单总开票金额,大于10000元,超出单张发票的开票额度,请修改开票订单",
  1018. showCancel: false,
  1019. });
  1020. return;
  1021. }
  1022. let data = JSON.parse(JSON.stringify(this.form));
  1023. data.orderGoodsIds = data.orderGoodsIds.split(",");
  1024. data.amount = this.invoicePirce;
  1025. if (data.subject == "1") {
  1026. data.taxRegistryNumber = "";
  1027. data.companyAddress = "";
  1028. data.phone = "";
  1029. data.bankName = "";
  1030. data.bankAccount = "";
  1031. data.receivingAddress = "";
  1032. data.receivingName = "";
  1033. data.receivingTel = "";
  1034. }
  1035. this.$api.orderInvoice(data).then((res) => {
  1036. if (res.data.code == 200) {
  1037. this.orderInvoiceCanInvoiceList();
  1038. this.form = {
  1039. type: "1",
  1040. subject: "1",
  1041. invoiceTitle: "",
  1042. orderGoodsIds: "",
  1043. taxRegistryNumber: "",
  1044. companyAddress: "",
  1045. phone: "",
  1046. bankName: "",
  1047. bankAccount: "",
  1048. receivingAddress: "",
  1049. receivingName: "",
  1050. receivingTel: "",
  1051. };
  1052. this.invoicePirce = 0;
  1053. uni.showModal({
  1054. title: "操作提示",
  1055. content: `您本次的发票申请已经提交成功!\n请稍后留意邮箱。`,
  1056. showCancel: false,
  1057. confirmText: "知道了",
  1058. });
  1059. } else {
  1060. uni.showToast({
  1061. icon: "none",
  1062. title: res.data.msg,
  1063. });
  1064. }
  1065. });
  1066. }
  1067. });
  1068. },
  1069. /**
  1070. * @param {Object} e value
  1071. * 发票类型修改
  1072. */
  1073. formTypeChange(e) {
  1074. if (e == "2") {
  1075. this.$set(this.form, "subject", "2");
  1076. } else {
  1077. }
  1078. },
  1079. /**
  1080. * @param {Object} e
  1081. * tabs 切换
  1082. */
  1083. change(e) {
  1084. this.current = e;
  1085. if (this.current == 1) {
  1086. this.orderInvoiceList();
  1087. } else {
  1088. this.$nextTick(() => {
  1089. this.$refs.uForm.setRules(this.rules);
  1090. });
  1091. }
  1092. },
  1093. orderInvoiceList() {
  1094. this.$api.orderInvoiceList().then((res) => {
  1095. if (res.data.code == 200) {
  1096. this.recordList = res.data.rows;
  1097. } else {
  1098. uni.showToast({
  1099. icon: "none",
  1100. title: res.data.msg,
  1101. });
  1102. }
  1103. });
  1104. },
  1105. radioGroupChange(e) {
  1106. console.log(e);
  1107. },
  1108. copy(str) {
  1109. if (!str) {
  1110. uni.showToast({
  1111. icon: "none",
  1112. title: "暂时没有可以复制的快递号",
  1113. });
  1114. return;
  1115. }
  1116. let newStr = String(str);
  1117. uni.setClipboardData({
  1118. data: newStr,
  1119. success: function () {
  1120. console.log("success");
  1121. },
  1122. });
  1123. },
  1124. okPopup() {
  1125. this.selectOrderModal = false;
  1126. let strArr = [];
  1127. this.invoicePirce = 0;
  1128. this.orderList.forEach((item, index) => {
  1129. if (item.checked) {
  1130. this.$set(this.orderList[index], "disabled", true);
  1131. strArr.push(item.orderGoodsId);
  1132. this.invoicePirce += item.goodsPrice;
  1133. }
  1134. });
  1135. this.form.orderGoodsIds = strArr.join(",");
  1136. this.$nextTick(() => {
  1137. this.$refs.orderGoodsIds.onFieldChange();
  1138. });
  1139. },
  1140. deleteOrder(index) {
  1141. this.$set(this.orderList[index], "disabled", false);
  1142. this.$set(this.orderList[index], "checked", false);
  1143. let strArr = [];
  1144. this.invoicePirce = 0;
  1145. this.orderList.forEach((item, index) => {
  1146. if (item.checked) {
  1147. strArr.push(item.orderGoodsId);
  1148. this.invoicePirce += item.goodsPrice;
  1149. }
  1150. });
  1151. this.form.orderGoodsIds = strArr.join(",");
  1152. this.$nextTick(() => {
  1153. this.$refs.orderGoodsIds.onFieldChange();
  1154. });
  1155. },
  1156. previewImg(item) {
  1157. // 预览图片
  1158. uni.previewImage({
  1159. urls: [this.$method.splitImgHost(item.invoiceImg, true, 1000)],
  1160. longPressActions: {
  1161. itemList: ["发送给朋友", "保存图片", "收藏"],
  1162. success: function (data) {},
  1163. fail: function (err) {
  1164. console.log(err.errMsg);
  1165. },
  1166. },
  1167. });
  1168. },
  1169. download(item) {
  1170. download(this.$method.splitImgHost(item.invoiceImg));
  1171. },
  1172. },
  1173. computed: {
  1174. ...mapGetters(["userInfo"]),
  1175. filterOrderList() {
  1176. return this.orderList.filter((i) => i.disabled) || [];
  1177. },
  1178. },
  1179. };
  1180. </script>
  1181. <style>
  1182. page {
  1183. background: #eaeef1;
  1184. }
  1185. </style>
  1186. <style scoped lang="scss">
  1187. .invoice {
  1188. &__tabs {
  1189. width: 100%;
  1190. text-align: center;
  1191. position: fixed;
  1192. height: 96rpx;
  1193. z-index: 999;
  1194. }
  1195. &__content {
  1196. padding-top: 96rpx;
  1197. .open {
  1198. padding-bottom: 150rpx;
  1199. margin: 8rpx 24rpx 0;
  1200. .form {
  1201. padding: 24rpx;
  1202. width: 702rpx;
  1203. background: #ffffff;
  1204. border-radius: 24rpx;
  1205. // /deep/ .u-input__input {
  1206. // text-align: right;
  1207. // }
  1208. .form-item {
  1209. height: 78rpx;
  1210. display: flex;
  1211. align-items: center;
  1212. .text {
  1213. font-size: 28rpx;
  1214. width: 120rpx;
  1215. // color: #999999;
  1216. }
  1217. .content {
  1218. flex: 1;
  1219. text-align: left;
  1220. color: #bbb;
  1221. }
  1222. }
  1223. .check-order {
  1224. margin-top: 20rpx;
  1225. width: 654rpx;
  1226. height: 168rpx;
  1227. background: #f5f5f5;
  1228. border: 2px solid #f5f5f5;
  1229. padding: 20rpx;
  1230. position: relative;
  1231. .close {
  1232. position: absolute;
  1233. right: 0;
  1234. top: 0;
  1235. }
  1236. .title,
  1237. .number,
  1238. .price {
  1239. color: #333333;
  1240. margin-top: 10rpx;
  1241. line-height: 30rpx;
  1242. font-size: 30rpx;
  1243. }
  1244. .number {
  1245. color: #999;
  1246. }
  1247. }
  1248. }
  1249. .order-text {
  1250. margin-top: 16rpx;
  1251. padding: 0 30rpx;
  1252. width: 702rpx;
  1253. height: 80rpx;
  1254. background: #ffffff;
  1255. border-radius: 24rpx;
  1256. display: flex;
  1257. align-items: center;
  1258. &__label {
  1259. font-size: 24rpx;
  1260. }
  1261. &__price {
  1262. font-size: 30rpx;
  1263. margin-left: 20rpx;
  1264. color: #ff2d55;
  1265. }
  1266. }
  1267. .submit {
  1268. text-align: center;
  1269. line-height: 80rpx;
  1270. color: #fff;
  1271. font-size: 30rpx;
  1272. width: 526rpx;
  1273. height: 80rpx;
  1274. background: #007aff;
  1275. box-shadow: 0rpx 8rpx 7rpx 1rpx rgba(0, 122, 255, 0.1);
  1276. border-radius: 40rpx;
  1277. position: fixed;
  1278. left: 50%;
  1279. bottom: 40rpx;
  1280. z-index: 999;
  1281. transform: translateX(-50%);
  1282. }
  1283. }
  1284. .record {
  1285. .nodata {
  1286. padding-top: 160rpx;
  1287. font-size: 32rpx;
  1288. text-align: center;
  1289. color: #999999;
  1290. }
  1291. &__list {
  1292. .record-item {
  1293. margin: 0 8rpx 10rpx;
  1294. .item__time {
  1295. padding: 20rpx 0;
  1296. text-align: center;
  1297. font-size: 24rpx;
  1298. color: #999999;
  1299. }
  1300. .item__content {
  1301. background: #fff;
  1302. border-radius: 16rpx;
  1303. .top {
  1304. padding: 12rpx 0;
  1305. border-bottom: 1px solid #eeeeee;
  1306. .state {
  1307. position: relative;
  1308. text-align: center;
  1309. color: #fff;
  1310. font-size: 30rpx;
  1311. margin: 0 auto;
  1312. width: 240rpx;
  1313. height: 56rpx;
  1314. line-height: 56rpx;
  1315. background: #007aff;
  1316. border-radius: 28rpx;
  1317. &.wait {
  1318. background: #007aff;
  1319. }
  1320. &.refuse {
  1321. background: #ff3b30;
  1322. }
  1323. &.agree {
  1324. background: #34c759;
  1325. }
  1326. .arrow {
  1327. position: absolute;
  1328. top: 50%;
  1329. transform: translateY(-50%);
  1330. right: 18rpx;
  1331. }
  1332. }
  1333. }
  1334. .bottom {
  1335. padding: 0 32rpx;
  1336. .flex {
  1337. height: 80rpx;
  1338. display: flex;
  1339. align-items: center;
  1340. border-bottom: 1px solid #eeeeee;
  1341. &.noborder {
  1342. border: 0;
  1343. }
  1344. .text {
  1345. font-size: 24rpx;
  1346. color: #666666;
  1347. }
  1348. &__auto {
  1349. text-align: right;
  1350. flex: 1;
  1351. font-size: 30rpx;
  1352. font-weight: bold;
  1353. color: #666666;
  1354. .red {
  1355. color: #ff3b30;
  1356. }
  1357. .green {
  1358. color: #34c759;
  1359. }
  1360. }
  1361. }
  1362. .order-list {
  1363. padding-bottom: 30rpx;
  1364. .order-item {
  1365. border-radius: 16rpx;
  1366. padding: 14rpx;
  1367. background: #f5f5f5;
  1368. font-size: 30rpx;
  1369. color: #333;
  1370. margin-top: 16rpx;
  1371. }
  1372. }
  1373. }
  1374. }
  1375. }
  1376. }
  1377. }
  1378. }
  1379. .modal {
  1380. .select-order {
  1381. .line {
  1382. width: 80rpx;
  1383. height: 8rpx;
  1384. background: #999999;
  1385. border-radius: 4rpx;
  1386. margin: 8rpx auto 0;
  1387. }
  1388. .title {
  1389. margin: 20rpx 0 15rpx;
  1390. text-align: center;
  1391. font-size: 24rpx;
  1392. color: #999999;
  1393. }
  1394. .order-item {
  1395. display: flex;
  1396. align-items: center;
  1397. padding: 20rpx;
  1398. &__bg {
  1399. width: 654rpx;
  1400. height: 168rpx;
  1401. background: #f5f5f5;
  1402. border: 2px solid #f5f5f5;
  1403. border-radius: 16rpx;
  1404. padding: 20rpx;
  1405. &.active {
  1406. background: #ebf5ff;
  1407. border: 2px solid #007aff;
  1408. }
  1409. .order-title,
  1410. .order-number,
  1411. .order-price {
  1412. color: #333333;
  1413. margin-top: 10rpx;
  1414. line-height: 30rpx;
  1415. font-size: 30rpx;
  1416. }
  1417. .order-number {
  1418. color: #999;
  1419. }
  1420. }
  1421. }
  1422. .confrim-btn {
  1423. width: 750rpx;
  1424. height: 98rpx;
  1425. background: rgba(255, 255, 255, 0.98);
  1426. display: flex;
  1427. align-items: center;
  1428. justify-content: center;
  1429. .okBtn {
  1430. text-align: center;
  1431. line-height: 64rpx;
  1432. color: #fff;
  1433. font-size: 30rpx;
  1434. width: 200rpx;
  1435. height: 64rpx;
  1436. background: linear-gradient(0deg, #015eea, #00c0fa);
  1437. border-radius: 32rpx;
  1438. }
  1439. }
  1440. .no_data {
  1441. text-align: center;
  1442. margin-top: 40rpx;
  1443. }
  1444. }
  1445. .order-detail {
  1446. width: 640rpx;
  1447. height: 1000rpx;
  1448. background: #ffffff;
  1449. display: flex;
  1450. flex-direction: column;
  1451. &__content {
  1452. flex: 1;
  1453. .content {
  1454. padding: 24rpx 24rpx 0;
  1455. /deep/ .u-cell {
  1456. padding: 10rpx;
  1457. &_title {
  1458. color: #999;
  1459. }
  1460. &__value {
  1461. color: #333;
  1462. text-align: left;
  1463. }
  1464. .text {
  1465. &.wait {
  1466. color: #007aff;
  1467. }
  1468. &.agree {
  1469. color: #34c759;
  1470. }
  1471. &.refuse {
  1472. color: #ff3b30;
  1473. }
  1474. }
  1475. .preview {
  1476. width: 240rpx;
  1477. height: 160rpx;
  1478. }
  1479. .download-btn {
  1480. margin: 10rpx 0 0;
  1481. text-align: center;
  1482. line-height: 56rpx;
  1483. color: #fff;
  1484. font-size: 30rpx;
  1485. width: 224rpx;
  1486. height: 56rpx;
  1487. background: #007aff;
  1488. border-radius: 16rpx;
  1489. }
  1490. }
  1491. .header {
  1492. font-size: 30rpx;
  1493. font-weight: bold;
  1494. color: #333333;
  1495. line-height: 48rpx;
  1496. }
  1497. .body {
  1498. &__item {
  1499. border-bottom: 1px solid #eeeeee;
  1500. padding-bottom: 30rpx;
  1501. &:last-child {
  1502. border: 0;
  1503. }
  1504. .title {
  1505. margin-top: 30rpx;
  1506. font-size: 24rpx;
  1507. color: #007aff;
  1508. line-height: 48rpx;
  1509. &::before {
  1510. content: "";
  1511. width: 4rpx;
  1512. height: 24rpx;
  1513. background: #007aff;
  1514. border-radius: 2rpx;
  1515. display: inline-block;
  1516. margin-right: 10rpx;
  1517. }
  1518. }
  1519. .order-list {
  1520. .order-item {
  1521. overflow: hidden;
  1522. border-radius: 16rpx;
  1523. padding: 0 14rpx 14rpx;
  1524. background: #f5f5f5;
  1525. font-size: 30rpx;
  1526. color: #333;
  1527. margin-top: 16rpx;
  1528. .order-title,
  1529. .order-number,
  1530. .order-price {
  1531. color: #333333;
  1532. margin-top: 20rpx;
  1533. line-height: 26rpx;
  1534. font-size: 26rpx;
  1535. }
  1536. .order-number {
  1537. color: #999;
  1538. }
  1539. }
  1540. }
  1541. .order-text {
  1542. margin-top: 16rpx;
  1543. padding: 0 30rpx;
  1544. height: 80rpx;
  1545. background: #f5f5f5;
  1546. border-radius: 16rpx;
  1547. display: flex;
  1548. align-items: center;
  1549. &__label {
  1550. font-size: 24rpx;
  1551. color: #999999;
  1552. }
  1553. &__price {
  1554. font-size: 30rpx;
  1555. margin-left: 20rpx;
  1556. color: #ff2d55;
  1557. }
  1558. }
  1559. }
  1560. }
  1561. }
  1562. }
  1563. &__btns {
  1564. border-top: 1px solid #eeeeee;
  1565. padding: 0 24rpx;
  1566. width: 100%;
  1567. height: 140rpx;
  1568. background: #ffffff;
  1569. display: flex;
  1570. justify-content: center;
  1571. align-items: center;
  1572. .btn {
  1573. text-align: center;
  1574. width: 200rpx;
  1575. height: 80rpx;
  1576. line-height: 80rpx;
  1577. background: #f5f5f5;
  1578. border-radius: 40rpx;
  1579. color: #007aff;
  1580. font-size: 30rpx;
  1581. margin: 0 10rpx;
  1582. &.warm {
  1583. background: #ff3b30;
  1584. color: #fff;
  1585. }
  1586. &.ok {
  1587. color: #fff;
  1588. width: 526rpx;
  1589. height: 80rpx;
  1590. background: #007aff;
  1591. border-radius: 40rpx;
  1592. }
  1593. }
  1594. }
  1595. }
  1596. .order-cancel {
  1597. width: 640rpx;
  1598. height: 439rpx;
  1599. background: #ffffff;
  1600. padding: 40rpx;
  1601. .header {
  1602. text-align: center;
  1603. font-size: 30rpx;
  1604. font-weight: bold;
  1605. color: #333333;
  1606. line-height: 48rpx;
  1607. }
  1608. .body {
  1609. margin-top: 40rpx;
  1610. view {
  1611. font-size: 30rpx;
  1612. color: #666666;
  1613. line-height: 48rpx;
  1614. }
  1615. }
  1616. .footer {
  1617. margin-top: 40rpx;
  1618. display: flex;
  1619. align-items: center;
  1620. justify-content: center;
  1621. .btn {
  1622. text-align: center;
  1623. line-height: 80rpx;
  1624. font-size: 30rpx;
  1625. color: #007aff;
  1626. width: 200rpx;
  1627. height: 80rpx;
  1628. background: #f5f5f5;
  1629. border-radius: 40rpx;
  1630. margin: 0 10rpx;
  1631. &.ok {
  1632. color: #fff;
  1633. background: #007aff;
  1634. }
  1635. }
  1636. }
  1637. }
  1638. }
  1639. }
  1640. </style>