index.vue 51 KB

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