index.vue 53 KB

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