index.vue 51 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741
  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 class="download-btn" @click="preview(invoiceDetail)"
  635. >预览电子发票</view
  636. >
  637. <view
  638. class="download-btn"
  639. @click="download(invoiceDetail)"
  640. >下载电子发票</view
  641. >
  642. </u-cell-item>
  643. <u-cell-item
  644. :border-bottom="false"
  645. hover-class="none"
  646. :arrow="false"
  647. v-if="
  648. invoiceDetail.periodStatus == 3 &&
  649. (invoiceDetail.invoiceStatus == 2 ||
  650. invoiceDetail.invoiceStatus == -1) &&
  651. invoiceDetail.type == 2 &&
  652. invoiceDetail.subject == 2
  653. "
  654. >
  655. <view slot="title">机构发票邮寄状态:</view>
  656. <text class="text" v-if="invoiceDetail.sendInvoice == 1"
  657. >是</text
  658. >
  659. <text class="text" v-else>否</text>
  660. </u-cell-item>
  661. <u-cell-item
  662. v-if="
  663. invoiceDetail.periodStatus == 3 &&
  664. (invoiceDetail.invoiceStatus == 2 ||
  665. invoiceDetail.invoiceStatus == -1) &&
  666. invoiceDetail.sendInvoice == 1 &&
  667. invoiceDetail.type == 2 &&
  668. invoiceDetail.subject == 2
  669. "
  670. @click.stop="copy(invoiceDetail.trackingNum)"
  671. :border-bottom="false"
  672. hover-class="none"
  673. :arrow="false"
  674. >
  675. <view slot="title">发票邮寄快递单号:(点击可复制)</view>
  676. <text class="text">{{
  677. invoiceDetail.trackingNum || ""
  678. }}</text>
  679. </u-cell-item>
  680. </view>
  681. </view>
  682. </view>
  683. </view>
  684. </scroll-view>
  685. </view>
  686. <view class="order-detail__btns" v-if="invoiceDetail.periodStatus == 1">
  687. <view class="btn" @click="orderDetailModal = false">知道了</view>
  688. <view class="btn warm" @click="orderCancelModal = true"
  689. >撤销申请</view
  690. >
  691. </view>
  692. <view class="order-detail__btns" v-else>
  693. <view class="btn ok" @click="orderDetailModal = false">知道了</view>
  694. </view>
  695. </view>
  696. </u-popup>
  697. <u-popup
  698. class="modal"
  699. v-model="orderCancelModal"
  700. mode="center"
  701. border-radius="24"
  702. >
  703. <view class="order-cancel">
  704. <view class="header"> 温馨提示 </view>
  705. <view class="body">
  706. <view>撤销申请后,</view>
  707. <view>本次的发票申请内容将不存在。</view>
  708. <view>请慎重考虑。 </view>
  709. <view>您确定要取消本次发票申请吗?</view>
  710. </view>
  711. <view class="footer">
  712. <view class="btn cancel" @click="orderCancelModal = false">取消</view>
  713. <view class="btn ok" @click="orderCancel()">确定</view>
  714. </view>
  715. </view>
  716. </u-popup>
  717. </view>
  718. </template>
  719. <script>
  720. import { mapGetters } from "vuex";
  721. import { download, preview } from "../../common/util";
  722. export default {
  723. components: {},
  724. data() {
  725. return {
  726. checkOrderList: [],
  727. recordList: [],
  728. list: [
  729. {
  730. name: "发票申请",
  731. },
  732. {
  733. name: "发票记录",
  734. },
  735. ],
  736. invoiceDetail: {
  737. amount: 0,
  738. },
  739. form: {
  740. type: "1",
  741. subject: "1",
  742. invoiceTitle: "",
  743. orderGoodsIds: "",
  744. taxRegistryNumber: "",
  745. companyAddress: "",
  746. email: "",
  747. invoiceRemark: "",
  748. phone: "",
  749. bankName: "",
  750. bankAccount: "",
  751. receivingAddress: "",
  752. receivingName: "",
  753. receivingTel: "",
  754. },
  755. rules: {
  756. receivingTel: [
  757. {
  758. required: true,
  759. message: "请输入收件手机",
  760. // 可以单个或者同时写两个触发验证方式
  761. trigger: ["change"],
  762. },
  763. {
  764. validator: (rule, value, callback) => {
  765. // 上面有说,返回true表示校验通过,返回false表示不通过
  766. // this.$u.test.mobile()就是返回true或者false的
  767. return this.$u.test.mobile(value);
  768. },
  769. message: "手机号码格式不正确",
  770. // 触发器可以同时用blur和change
  771. trigger: ["change"],
  772. },
  773. ],
  774. type: [
  775. {
  776. required: true,
  777. message: "请选择发票类型",
  778. // 可以单个或者同时写两个触发验证方式
  779. trigger: ["change"],
  780. },
  781. ],
  782. subject: [
  783. {
  784. required: true,
  785. message: "请选择申请主体",
  786. // 可以单个或者同时写两个触发验证方式
  787. trigger: ["change"],
  788. },
  789. ],
  790. invoiceTitle: [
  791. {
  792. required: true,
  793. message: "请输入发票抬头",
  794. // 可以单个或者同时写两个触发验证方式
  795. trigger: ["change"],
  796. },
  797. ],
  798. taxRegistryNumber: [
  799. {
  800. required: true,
  801. message: "请输入纳税登记号",
  802. // 可以单个或者同时写两个触发验证方式
  803. trigger: ["change"],
  804. },
  805. {
  806. validator: (rule, value, callback) => {
  807. // 上面有说,返回true表示校验通过,返回false表示不通过
  808. var reg = /(^[0-9A-Z]{15,20}$)/;
  809. return reg.test(value);
  810. },
  811. message: "纳税登记号格式不正确",
  812. // 触发器可以同时用blur和change
  813. trigger: ["change"],
  814. },
  815. ],
  816. email: [
  817. {
  818. required: true,
  819. message: "请输入邮箱",
  820. // 可以单个或者同时写两个触发验证方式
  821. trigger: ["change"],
  822. },
  823. {
  824. validator: (rule, value, callback) => {
  825. // 上面有说,返回true表示校验通过,返回false表示不通过
  826. var reg =
  827. /^([a-zA-Z\d][\w-]{2,})@(\w{2,})\.([a-z]{2,})(\.[a-z]{2,})?$/;
  828. return reg.test(value);
  829. },
  830. message: "邮箱格式不正确",
  831. // 触发器可以同时用blur和change
  832. trigger: ["change"],
  833. },
  834. ],
  835. companyAddress: [
  836. {
  837. required: true,
  838. message: "请输入单位地址",
  839. // 可以单个或者同时写两个触发验证方式
  840. trigger: ["change"],
  841. },
  842. ],
  843. phone: [
  844. {
  845. required: true,
  846. message: "请输入电话号码",
  847. // 可以单个或者同时写两个触发验证方式
  848. trigger: ["change"],
  849. },
  850. {
  851. validator: (rule, value, callback) => {
  852. var vartest = /^([0-9]{3,4}-)?[0-9]{7,8}$/;
  853. var vartest1 = /^([0-9]{3,4})?[0-9]{7,8}$/;
  854. if (
  855. this.$u.test.mobile(value) ||
  856. vartest.test(value) ||
  857. vartest1.test(value)
  858. ) {
  859. return true;
  860. } else {
  861. return false;
  862. }
  863. },
  864. message: "电话号码不正确",
  865. trigger: ["change", "blur"],
  866. },
  867. ],
  868. bankName: [
  869. {
  870. required: true,
  871. message: "请输入开户银行",
  872. // 可以单个或者同时写两个触发验证方式
  873. trigger: ["change"],
  874. },
  875. {
  876. validator: (rule, value, callback) => {
  877. var reg = /[\u4E00-\u9FA5]+/;
  878. return reg.test(value);
  879. },
  880. message: "开户银行名称不正确",
  881. trigger: ["change", "blur"],
  882. },
  883. ],
  884. bankAccount: [
  885. {
  886. required: true,
  887. message: "请输入银行账号",
  888. // 可以单个或者同时写两个触发验证方式
  889. trigger: ["change"],
  890. },
  891. {
  892. validator: (rule, value, callback) => {
  893. // 上面有说,返回true表示校验通过,返回false表示不通过
  894. var reg = /^[1-9]{1}(\d{15}|\d{18})$/;
  895. return reg.test(value);
  896. },
  897. message: "银行卡号格式不正确",
  898. // 触发器可以同时用blur和change
  899. trigger: ["change"],
  900. },
  901. ],
  902. receivingAddress: [
  903. {
  904. required: true,
  905. message: "请输入收件地址",
  906. // 可以单个或者同时写两个触发验证方式
  907. trigger: ["change"],
  908. },
  909. ],
  910. receivingName: [
  911. {
  912. required: true,
  913. message: "请输入收件人",
  914. // 可以单个或者同时写两个触发验证方式
  915. trigger: ["change"],
  916. },
  917. ],
  918. orderGoodsIds: [
  919. {
  920. required: true,
  921. message: "请选择订单",
  922. // 可以单个或者同时写两个触发验证方式
  923. trigger: ["change"],
  924. },
  925. ],
  926. },
  927. orderValue: "",
  928. orderList: [],
  929. selectOrderModal: false,
  930. orderDetailModal: false,
  931. orderCancelModal: false,
  932. current: 0,
  933. invoicePirce: 0,
  934. order: [],
  935. typeList: [
  936. {
  937. name: "普通发票",
  938. value: "1",
  939. },
  940. {
  941. name: "增值税专用发票",
  942. value: "2",
  943. },
  944. ],
  945. mainList: [
  946. {
  947. name: "个人",
  948. value: "1",
  949. },
  950. {
  951. name: "企业",
  952. value: "2",
  953. },
  954. ],
  955. };
  956. },
  957. // onPullDownRefresh() {},
  958. onLoad(option) {
  959. this.orderInvoiceCanInvoiceList();
  960. },
  961. onReady() {
  962. this.$refs.uForm.setRules(this.rules);
  963. },
  964. methods: {
  965. orderCancel() {
  966. let invoiceDetail = JSON.parse(JSON.stringify(this.invoiceDetail));
  967. invoiceDetail.status = -1;
  968. this.$api.orderInvoiceCancel(invoiceDetail).then((res) => {
  969. if (res.data.code == 200) {
  970. this.orderInvoiceList();
  971. this.orderInvoiceCanInvoiceList();
  972. this.orderDetailModal = false;
  973. this.orderCancelModal = false;
  974. uni.showToast({
  975. title: "撤销成功",
  976. icon: "none",
  977. });
  978. } else {
  979. }
  980. });
  981. },
  982. showDetailModal(item) {
  983. this.orderDetailModal = true;
  984. this.invoiceDetail = item;
  985. },
  986. toFixed(number) {
  987. return number.toFixed(2);
  988. },
  989. /**
  990. * 获取可开发票的订单,/order/invoice/canInvoiceList
  991. */
  992. orderInvoiceCanInvoiceList() {
  993. this.$api.orderInvoiceCanInvoiceList().then((res) => {
  994. if (res.data.code == 200) {
  995. res.data.rows.forEach((item) => {
  996. item.checked = false;
  997. });
  998. this.orderList = res.data.rows;
  999. }
  1000. });
  1001. },
  1002. /**
  1003. * @param {Object} checkedState 显示状态
  1004. * @param {Object} index 索引值
  1005. * 修改开票订单列表显示状态
  1006. */
  1007. showOrder(showState, index) {
  1008. this.$set(this.recordList[index], "checked", !showState);
  1009. },
  1010. /**
  1011. * 发票申请提交
  1012. */
  1013. formSubmit() {
  1014. this.$refs.uForm.validate((valid) => {
  1015. if (valid) {
  1016. if (this.invoicePirce > 10000) {
  1017. uni.showModal({
  1018. title: "提示",
  1019. content:
  1020. "您所选的订单总开票金额,大于10000元,超出单张发票的开票额度,请修改开票订单",
  1021. showCancel: false,
  1022. });
  1023. return;
  1024. }
  1025. let data = JSON.parse(JSON.stringify(this.form));
  1026. data.orderGoodsIds = data.orderGoodsIds.split(",");
  1027. data.amount = this.invoicePirce;
  1028. if (data.subject == "1") {
  1029. data.taxRegistryNumber = "";
  1030. data.companyAddress = "";
  1031. data.phone = "";
  1032. data.bankName = "";
  1033. data.bankAccount = "";
  1034. data.receivingAddress = "";
  1035. data.receivingName = "";
  1036. data.receivingTel = "";
  1037. }
  1038. this.$api.orderInvoice(data).then((res) => {
  1039. if (res.data.code == 200) {
  1040. this.orderInvoiceCanInvoiceList();
  1041. this.form = {
  1042. type: "1",
  1043. subject: "1",
  1044. invoiceTitle: "",
  1045. orderGoodsIds: "",
  1046. taxRegistryNumber: "",
  1047. companyAddress: "",
  1048. phone: "",
  1049. bankName: "",
  1050. bankAccount: "",
  1051. receivingAddress: "",
  1052. receivingName: "",
  1053. receivingTel: "",
  1054. };
  1055. this.invoicePirce = 0;
  1056. uni.showModal({
  1057. title: "操作提示",
  1058. content: `您本次的发票申请已经提交成功!\n请稍后留意邮箱。`,
  1059. showCancel: false,
  1060. confirmText: "知道了",
  1061. });
  1062. } else {
  1063. uni.showToast({
  1064. icon: "none",
  1065. title: res.data.msg,
  1066. });
  1067. }
  1068. });
  1069. }
  1070. });
  1071. },
  1072. /**
  1073. * @param {Object} e value
  1074. * 发票类型修改
  1075. */
  1076. formTypeChange(e) {
  1077. if (e == "2") {
  1078. this.$set(this.form, "subject", "2");
  1079. } else {
  1080. }
  1081. },
  1082. /**
  1083. * @param {Object} e
  1084. * tabs 切换
  1085. */
  1086. change(e) {
  1087. this.current = e;
  1088. if (this.current == 1) {
  1089. this.orderInvoiceList();
  1090. } else {
  1091. this.$nextTick(() => {
  1092. this.$refs.uForm.setRules(this.rules);
  1093. });
  1094. }
  1095. },
  1096. orderInvoiceList() {
  1097. this.$api.orderInvoiceList().then((res) => {
  1098. if (res.data.code == 200) {
  1099. this.recordList = res.data.rows;
  1100. } else {
  1101. uni.showToast({
  1102. icon: "none",
  1103. title: res.data.msg,
  1104. });
  1105. }
  1106. });
  1107. },
  1108. radioGroupChange(e) {
  1109. console.log(e);
  1110. },
  1111. copy(str) {
  1112. if (!str) {
  1113. uni.showToast({
  1114. icon: "none",
  1115. title: "暂时没有可以复制的快递号",
  1116. });
  1117. return;
  1118. }
  1119. let newStr = String(str);
  1120. uni.setClipboardData({
  1121. data: newStr,
  1122. success: function () {
  1123. console.log("success");
  1124. },
  1125. });
  1126. },
  1127. okPopup() {
  1128. this.selectOrderModal = false;
  1129. let strArr = [];
  1130. this.invoicePirce = 0;
  1131. this.orderList.forEach((item, index) => {
  1132. if (item.checked) {
  1133. this.$set(this.orderList[index], "disabled", true);
  1134. strArr.push(item.orderGoodsId);
  1135. this.invoicePirce += item.goodsPrice;
  1136. }
  1137. });
  1138. this.form.orderGoodsIds = strArr.join(",");
  1139. this.$nextTick(() => {
  1140. this.$refs.orderGoodsIds.onFieldChange();
  1141. });
  1142. },
  1143. deleteOrder(index) {
  1144. this.$set(this.orderList[index], "disabled", false);
  1145. this.$set(this.orderList[index], "checked", false);
  1146. let strArr = [];
  1147. this.invoicePirce = 0;
  1148. this.orderList.forEach((item, index) => {
  1149. if (item.checked) {
  1150. strArr.push(item.orderGoodsId);
  1151. this.invoicePirce += item.goodsPrice;
  1152. }
  1153. });
  1154. this.form.orderGoodsIds = strArr.join(",");
  1155. this.$nextTick(() => {
  1156. this.$refs.orderGoodsIds.onFieldChange();
  1157. });
  1158. },
  1159. previewImg(item) {
  1160. // 预览图片
  1161. uni.previewImage({
  1162. urls: [this.$method.splitImgHost(item.invoiceImg, true, 1000)],
  1163. longPressActions: {
  1164. itemList: ["发送给朋友", "保存图片", "收藏"],
  1165. success: function (data) {},
  1166. fail: function (err) {
  1167. console.log(err.errMsg);
  1168. },
  1169. },
  1170. });
  1171. },
  1172. download(item) {
  1173. download(item.invoiceImg);
  1174. },
  1175. preview(item) {
  1176. preview(item.invoiceImg);
  1177. },
  1178. },
  1179. computed: {
  1180. ...mapGetters(["userInfo"]),
  1181. filterOrderList() {
  1182. return this.orderList.filter((i) => i.disabled) || [];
  1183. },
  1184. },
  1185. };
  1186. </script>
  1187. <style>
  1188. page {
  1189. background: #eaeef1;
  1190. }
  1191. </style>
  1192. <style scoped lang="scss">
  1193. .invoice {
  1194. &__tabs {
  1195. width: 100%;
  1196. text-align: center;
  1197. position: fixed;
  1198. height: 96rpx;
  1199. z-index: 999;
  1200. }
  1201. &__content {
  1202. padding-top: 96rpx;
  1203. .open {
  1204. padding-bottom: 150rpx;
  1205. margin: 8rpx 24rpx 0;
  1206. .form {
  1207. padding: 24rpx;
  1208. width: 702rpx;
  1209. background: #ffffff;
  1210. border-radius: 24rpx;
  1211. // /deep/ .u-input__input {
  1212. // text-align: right;
  1213. // }
  1214. .form-item {
  1215. height: 78rpx;
  1216. display: flex;
  1217. align-items: center;
  1218. .text {
  1219. font-size: 28rpx;
  1220. width: 120rpx;
  1221. // color: #999999;
  1222. }
  1223. .content {
  1224. flex: 1;
  1225. text-align: left;
  1226. color: #bbb;
  1227. }
  1228. }
  1229. .check-order {
  1230. margin-top: 20rpx;
  1231. width: 654rpx;
  1232. height: 168rpx;
  1233. background: #f5f5f5;
  1234. border: 2px solid #f5f5f5;
  1235. padding: 20rpx;
  1236. position: relative;
  1237. .close {
  1238. position: absolute;
  1239. right: 0;
  1240. top: 0;
  1241. }
  1242. .title,
  1243. .number,
  1244. .price {
  1245. color: #333333;
  1246. margin-top: 10rpx;
  1247. line-height: 30rpx;
  1248. font-size: 30rpx;
  1249. }
  1250. .number {
  1251. color: #999;
  1252. }
  1253. }
  1254. }
  1255. .order-text {
  1256. margin-top: 16rpx;
  1257. padding: 0 30rpx;
  1258. width: 702rpx;
  1259. height: 80rpx;
  1260. background: #ffffff;
  1261. border-radius: 24rpx;
  1262. display: flex;
  1263. align-items: center;
  1264. &__label {
  1265. font-size: 24rpx;
  1266. }
  1267. &__price {
  1268. font-size: 30rpx;
  1269. margin-left: 20rpx;
  1270. color: #ff2d55;
  1271. }
  1272. }
  1273. .submit {
  1274. text-align: center;
  1275. line-height: 80rpx;
  1276. color: #fff;
  1277. font-size: 30rpx;
  1278. width: 526rpx;
  1279. height: 80rpx;
  1280. background: #007aff;
  1281. box-shadow: 0rpx 8rpx 7rpx 1rpx rgba(0, 122, 255, 0.1);
  1282. border-radius: 40rpx;
  1283. position: fixed;
  1284. left: 50%;
  1285. bottom: 40rpx;
  1286. z-index: 999;
  1287. transform: translateX(-50%);
  1288. }
  1289. }
  1290. .record {
  1291. .nodata {
  1292. padding-top: 160rpx;
  1293. font-size: 32rpx;
  1294. text-align: center;
  1295. color: #999999;
  1296. }
  1297. &__list {
  1298. .record-item {
  1299. margin: 0 8rpx 10rpx;
  1300. .item__time {
  1301. padding: 20rpx 0;
  1302. text-align: center;
  1303. font-size: 24rpx;
  1304. color: #999999;
  1305. }
  1306. .item__content {
  1307. background: #fff;
  1308. border-radius: 16rpx;
  1309. .top {
  1310. padding: 12rpx 0;
  1311. border-bottom: 1px solid #eeeeee;
  1312. .state {
  1313. position: relative;
  1314. text-align: center;
  1315. color: #fff;
  1316. font-size: 30rpx;
  1317. margin: 0 auto;
  1318. width: 240rpx;
  1319. height: 56rpx;
  1320. line-height: 56rpx;
  1321. background: #007aff;
  1322. border-radius: 28rpx;
  1323. &.wait {
  1324. background: #007aff;
  1325. }
  1326. &.refuse {
  1327. background: #ff3b30;
  1328. }
  1329. &.agree {
  1330. background: #34c759;
  1331. }
  1332. .arrow {
  1333. position: absolute;
  1334. top: 50%;
  1335. transform: translateY(-50%);
  1336. right: 18rpx;
  1337. }
  1338. }
  1339. }
  1340. .bottom {
  1341. padding: 0 32rpx;
  1342. .flex {
  1343. height: 80rpx;
  1344. display: flex;
  1345. align-items: center;
  1346. border-bottom: 1px solid #eeeeee;
  1347. &.noborder {
  1348. border: 0;
  1349. }
  1350. .text {
  1351. font-size: 24rpx;
  1352. color: #666666;
  1353. }
  1354. &__auto {
  1355. text-align: right;
  1356. flex: 1;
  1357. font-size: 30rpx;
  1358. font-weight: bold;
  1359. color: #666666;
  1360. .red {
  1361. color: #ff3b30;
  1362. }
  1363. .green {
  1364. color: #34c759;
  1365. }
  1366. }
  1367. }
  1368. .order-list {
  1369. padding-bottom: 30rpx;
  1370. .order-item {
  1371. border-radius: 16rpx;
  1372. padding: 14rpx;
  1373. background: #f5f5f5;
  1374. font-size: 30rpx;
  1375. color: #333;
  1376. margin-top: 16rpx;
  1377. }
  1378. }
  1379. }
  1380. }
  1381. }
  1382. }
  1383. }
  1384. }
  1385. .modal {
  1386. .select-order {
  1387. .line {
  1388. width: 80rpx;
  1389. height: 8rpx;
  1390. background: #999999;
  1391. border-radius: 4rpx;
  1392. margin: 8rpx auto 0;
  1393. }
  1394. .title {
  1395. margin: 20rpx 0 15rpx;
  1396. text-align: center;
  1397. font-size: 24rpx;
  1398. color: #999999;
  1399. }
  1400. .order-item {
  1401. display: flex;
  1402. align-items: center;
  1403. padding: 20rpx;
  1404. &__bg {
  1405. width: 654rpx;
  1406. height: 168rpx;
  1407. background: #f5f5f5;
  1408. border: 2px solid #f5f5f5;
  1409. border-radius: 16rpx;
  1410. padding: 20rpx;
  1411. &.active {
  1412. background: #ebf5ff;
  1413. border: 2px solid #007aff;
  1414. }
  1415. .order-title,
  1416. .order-number,
  1417. .order-price {
  1418. color: #333333;
  1419. margin-top: 10rpx;
  1420. line-height: 30rpx;
  1421. font-size: 30rpx;
  1422. }
  1423. .order-number {
  1424. color: #999;
  1425. }
  1426. }
  1427. }
  1428. .confrim-btn {
  1429. width: 750rpx;
  1430. height: 98rpx;
  1431. background: rgba(255, 255, 255, 0.98);
  1432. display: flex;
  1433. align-items: center;
  1434. justify-content: center;
  1435. .okBtn {
  1436. text-align: center;
  1437. line-height: 64rpx;
  1438. color: #fff;
  1439. font-size: 30rpx;
  1440. width: 200rpx;
  1441. height: 64rpx;
  1442. background: linear-gradient(0deg, #015eea, #00c0fa);
  1443. border-radius: 32rpx;
  1444. }
  1445. }
  1446. .no_data {
  1447. text-align: center;
  1448. margin-top: 40rpx;
  1449. }
  1450. }
  1451. .order-detail {
  1452. width: 640rpx;
  1453. height: 1000rpx;
  1454. background: #ffffff;
  1455. display: flex;
  1456. flex-direction: column;
  1457. &__content {
  1458. flex: 1;
  1459. .content {
  1460. padding: 24rpx 24rpx 0;
  1461. /deep/ .u-cell {
  1462. padding: 10rpx;
  1463. &_title {
  1464. color: #999;
  1465. }
  1466. &__value {
  1467. color: #333;
  1468. text-align: left;
  1469. }
  1470. .text {
  1471. &.wait {
  1472. color: #007aff;
  1473. }
  1474. &.agree {
  1475. color: #34c759;
  1476. }
  1477. &.refuse {
  1478. color: #ff3b30;
  1479. }
  1480. }
  1481. .preview {
  1482. width: 240rpx;
  1483. height: 160rpx;
  1484. }
  1485. .download-btn {
  1486. margin: 10rpx 0 20rpx;
  1487. text-align: center;
  1488. line-height: 56rpx;
  1489. color: #fff;
  1490. font-size: 30rpx;
  1491. width: 224rpx;
  1492. height: 56rpx;
  1493. background: #007aff;
  1494. border-radius: 16rpx;
  1495. }
  1496. }
  1497. .header {
  1498. font-size: 30rpx;
  1499. font-weight: bold;
  1500. color: #333333;
  1501. line-height: 48rpx;
  1502. }
  1503. .body {
  1504. &__item {
  1505. border-bottom: 1px solid #eeeeee;
  1506. padding-bottom: 30rpx;
  1507. &:last-child {
  1508. border: 0;
  1509. }
  1510. .title {
  1511. margin-top: 30rpx;
  1512. font-size: 24rpx;
  1513. color: #007aff;
  1514. line-height: 48rpx;
  1515. &::before {
  1516. content: "";
  1517. width: 4rpx;
  1518. height: 24rpx;
  1519. background: #007aff;
  1520. border-radius: 2rpx;
  1521. display: inline-block;
  1522. margin-right: 10rpx;
  1523. }
  1524. }
  1525. .order-list {
  1526. .order-item {
  1527. overflow: hidden;
  1528. border-radius: 16rpx;
  1529. padding: 0 14rpx 14rpx;
  1530. background: #f5f5f5;
  1531. font-size: 30rpx;
  1532. color: #333;
  1533. margin-top: 16rpx;
  1534. .order-title,
  1535. .order-number,
  1536. .order-price {
  1537. color: #333333;
  1538. margin-top: 20rpx;
  1539. line-height: 26rpx;
  1540. font-size: 26rpx;
  1541. }
  1542. .order-number {
  1543. color: #999;
  1544. }
  1545. }
  1546. }
  1547. .order-text {
  1548. margin-top: 16rpx;
  1549. padding: 0 30rpx;
  1550. height: 80rpx;
  1551. background: #f5f5f5;
  1552. border-radius: 16rpx;
  1553. display: flex;
  1554. align-items: center;
  1555. &__label {
  1556. font-size: 24rpx;
  1557. color: #999999;
  1558. }
  1559. &__price {
  1560. font-size: 30rpx;
  1561. margin-left: 20rpx;
  1562. color: #ff2d55;
  1563. }
  1564. }
  1565. }
  1566. }
  1567. }
  1568. }
  1569. &__btns {
  1570. border-top: 1px solid #eeeeee;
  1571. padding: 0 24rpx;
  1572. width: 100%;
  1573. height: 140rpx;
  1574. background: #ffffff;
  1575. display: flex;
  1576. justify-content: center;
  1577. align-items: center;
  1578. .btn {
  1579. text-align: center;
  1580. width: 200rpx;
  1581. height: 80rpx;
  1582. line-height: 80rpx;
  1583. background: #f5f5f5;
  1584. border-radius: 40rpx;
  1585. color: #007aff;
  1586. font-size: 30rpx;
  1587. margin: 0 10rpx;
  1588. &.warm {
  1589. background: #ff3b30;
  1590. color: #fff;
  1591. }
  1592. &.ok {
  1593. color: #fff;
  1594. width: 526rpx;
  1595. height: 80rpx;
  1596. background: #007aff;
  1597. border-radius: 40rpx;
  1598. }
  1599. }
  1600. }
  1601. }
  1602. .order-cancel {
  1603. width: 640rpx;
  1604. height: 439rpx;
  1605. background: #ffffff;
  1606. padding: 40rpx;
  1607. .header {
  1608. text-align: center;
  1609. font-size: 30rpx;
  1610. font-weight: bold;
  1611. color: #333333;
  1612. line-height: 48rpx;
  1613. }
  1614. .body {
  1615. margin-top: 40rpx;
  1616. view {
  1617. font-size: 30rpx;
  1618. color: #666666;
  1619. line-height: 48rpx;
  1620. }
  1621. }
  1622. .footer {
  1623. margin-top: 40rpx;
  1624. display: flex;
  1625. align-items: center;
  1626. justify-content: center;
  1627. .btn {
  1628. text-align: center;
  1629. line-height: 80rpx;
  1630. font-size: 30rpx;
  1631. color: #007aff;
  1632. width: 200rpx;
  1633. height: 80rpx;
  1634. background: #f5f5f5;
  1635. border-radius: 40rpx;
  1636. margin: 0 10rpx;
  1637. &.ok {
  1638. color: #fff;
  1639. background: #007aff;
  1640. }
  1641. }
  1642. }
  1643. }
  1644. }
  1645. }
  1646. </style>