billdetail.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <template>
  2. <view>
  3. <view class="boxcon">
  4. <text class="titlename">汇票{{index+1}}</text>
  5. <view class="container">
  6. <view class="titleall">
  7. <text class="pl">汇票名称</text>
  8. <text class="pr">{{msg.name}}</text>
  9. </view>
  10. <view class="titleall">
  11. <text class="pl">汇票号码</text>
  12. <text class="pr">{{msg.draftNo}}</text>
  13. </view>
  14. <view class="titleall">
  15. <text class="pl">承兑人</text>
  16. <text class="pr">{{msg.acceptorName}}</text>
  17. </view>
  18. <view class="titleall">
  19. <text class="pl">出票人</text>
  20. <text class="pr">{{msg.drawersName}}</text>
  21. </view>
  22. <view class="titleall">
  23. <text class="pl">金额</text>
  24. <text class="pr">{{msg.money}}</text>
  25. </view>
  26. <view class="titleall">
  27. <text class="pl">承兑日期</text>
  28. <text class="pr">{{msg.acceptDate}}</text>
  29. </view>
  30. <view class="titleall">
  31. <text class="pl">出票日期</text>
  32. <text class="pr">{{msg.issueDate}}</text>
  33. </view>
  34. <view class="titleall">
  35. <text class="pl">汇票到期日</text>
  36. <text class="pr">{{msg.expireDate}}</text>
  37. </view>
  38. <view class="titleall">
  39. <text class="pl">预计贴现日</text>
  40. <text class="pr">{{msg.expectDiscountDate}}</text>
  41. </view>
  42. <view class="titleall bod">
  43. <text class="pl">服务费率</text>
  44. <text class="pr">{{msg.serviceRate?msg.serviceRate:''}}%</text>
  45. </view>
  46. <view class="titleall" style="padding-top: 30rpx !important; ">
  47. <text class="pl">服务费</text>
  48. <text class="pr">{{msg.serviceMoney}}</text>
  49. </view>
  50. <view class="titleall ">
  51. <text class="pl">利率</text>
  52. <text class="pr">{{msg.interestRate?msg.interestRate:''}}%</text>
  53. </view>
  54. <view class="titleall ">
  55. <text class="pl">利息</text>
  56. <text class="pr">{{msg.interest?msg.interest:''}}</text>
  57. </view>
  58. <view class="titleall bod">
  59. <text class="pl">发票附件</text>
  60. <view class="uppic">
  61. <view class="picbox" v-for="item in msg.picList">
  62. <image :src="item" mode="aspectFill"></image>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="titleall ptin">
  67. <text class="pl">合同状态</text>
  68. <text class="pr cls">{{msg.statusText}}</text>
  69. </view>
  70. <view class="titleall " v-if="msg.statusText=='待审核'" style="display: flex;flex-direction: column;">
  71. <text class="pl">审核反馈</text>
  72. <textarea placeholder="请输入审核反馈" style="background-color: #F6F6F6;width: 675rpx;height: 200rpx;border-radius: 20rpx;padding: 20rpx;box-sizing: border-box;margin:20rpx 0;margin-bottom: 30rpx;"></textarea>
  73. </view>
  74. <view class="titleall " v-else>
  75. <text class="pl">审核反馈</text>
  76. <text class="pr plas cls">汇票金额与实际不符,请修改后重新提交</text>
  77. </view>
  78. <view class="titleall " style="justify-content: flex-start;">
  79. <text class="pl psa ">反馈截图</text>
  80. <view class="fanuppic">
  81. <view class="picbox">
  82. <u-upload :fileList="fileList4" @afterRead="afterRead" @delete="deletePic" name="4" multiple
  83. :maxCount="6" ></u-upload>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <view style="width: 100%;height: 140rpx;"></view>
  90. <view class="newbill flex1" v-if="msg.statusText=='待审核'&&state==0">
  91. <view class="choosebtn">
  92. <view class="delbtn flex1">审核失败</view>
  93. <view class="succbtn flex1">审核成功</view>
  94. </view>
  95. </view>
  96. <view class="newbill flex1" @click="tryAgain" v-if="msg.statusText=='失败'&&state==1">
  97. <view class="newbillbtn">
  98. <text>重新提交</text>
  99. </view>
  100. </view>
  101. </view>
  102. </template>
  103. <script>
  104. export default {
  105. data() {
  106. return {
  107. id:'',
  108. msg:'',
  109. index:'',
  110. state:0
  111. }
  112. },
  113. onLoad(o) {
  114. this.state = this.$store.state.admin
  115. if(o.obj){
  116. let obj=JSON.parse(o.obj)
  117. this.id=obj.id
  118. this.index=obj.index
  119. }
  120. this.init()
  121. },
  122. methods: {
  123. init(){
  124. let id=this.id
  125. uni.showLoading()
  126. uni.$u.http.get(`/api/Contract/contractDraft/${id}`,
  127. {
  128. custom: {
  129. auth: true
  130. }
  131. }).then((res) => {
  132. uni.hideLoading()
  133. this.msg=res
  134. }).catch((err) => {
  135. uni.hideLoading()
  136. this.$toast(err.msg)
  137. })
  138. },
  139. tryAgain(){
  140. uni.navigateTo({
  141. url:"/pages/alldeatil/addbill"
  142. })
  143. }
  144. }
  145. }
  146. </script>
  147. <style lang="scss">
  148. page {
  149. background-color: #F6F6F6 !important;
  150. }
  151. .boxcon {
  152. margin: 20rpx 20rpx;
  153. padding: 50rpx 20rpx;
  154. border-radius: 20rpx;
  155. background: #fff;
  156. .titlename {
  157. font-size: 36rpx;
  158. font-weight: 600;
  159. padding-bottom: 30rpx;
  160. display: block;
  161. margin-bottom: 30rpx;
  162. border-bottom: 1rpx solid #E8E8E8;
  163. }
  164. .container {
  165. .bod {
  166. border-bottom: 1rpx solid #E8E8E8;
  167. box-sizing: border-box;
  168. }
  169. .ptin {
  170. padding-top: 50rpx;
  171. }
  172. .plas {
  173. padding-left: 65rpx;
  174. word-wrap: wrap;
  175. box-sizing: border-box;
  176. }
  177. .ds {
  178. padding-top: 30rpx;
  179. }
  180. .psa{
  181. padding-right: 30rpx;
  182. }
  183. .cls{
  184. color: #68625B;
  185. }
  186. .titleall {
  187. display: flex;
  188. justify-content: space-between;
  189. font-size: 28rpx;
  190. padding-bottom: 30rpx;
  191. .pl {
  192. // width: 180rpx;
  193. color: #BEBDBB;
  194. flex-shrink: 0;
  195. // margin-right: 30rpx;
  196. }
  197. .pr {
  198. word-wrap: wrap;
  199. display: block;
  200. display: -webkit-box;
  201. }
  202. .uppic {
  203. display: flex;
  204. flex-wrap: wrap;
  205. justify-content: flex-end;
  206. }
  207. .picbox {
  208. width: 150rpx;
  209. height: 150rpx;
  210. margin-left: 20rpx;
  211. border-radius: 20rpx;
  212. overflow: hidden;
  213. image {
  214. width: 100%;
  215. height: 100%;
  216. }
  217. }
  218. .fanuppic{
  219. display: flex;
  220. flex-wrap: wrap;
  221. }
  222. }
  223. }
  224. }
  225. </style>