payrecord.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. <template>
  2. <view class="center">
  3. <view class="transaction">
  4. <view style='padding-top:10px;' class="c-row">
  5. <view class="title">业务编号</view>
  6. <view class="con-list">
  7. <input v-model='purchaseOrder.transactionsNumber' placeholder="请输入业务编号" placeholder-style="font-size: 12px;" name="input"></input>
  8. </view>
  9. </view>
  10. <view class="c-row">
  11. <view class="title">货名</view>
  12. <view class="con-list">
  13. <input v-model='purchaseOrder.transactionsNumber' placeholder="请输入货名,如玉米" placeholder-style="font-size: 12px;" name="input"></input>
  14. </view>
  15. </view>
  16. <view class="c-row">
  17. <view class="title">收货方</view>
  18. <view class="con-list">
  19. <input v-model='purchaseOrder.transactionsNumber' placeholder="请输入收货方名称" placeholder-style="font-size: 12px;" name="input"></input>
  20. </view>
  21. </view>
  22. <view class="c-row">
  23. <view class="title">货物单价(元/吨)</view>
  24. <view class="con-list">
  25. <input v-model='purchaseOrder.transactionsNumber' placeholder="请输入货物单价" placeholder-style="font-size: 12px;" name="input"></input>
  26. </view>
  27. </view>
  28. <view class="c-row">
  29. <view class="title">运费单价(元/吨)</view>
  30. <view class="con-list">
  31. <input v-model='purchaseOrder.transactionsNumber' placeholder="请输入运费单价" placeholder-style="font-size: 12px;" name="input"></input>
  32. </view>
  33. </view>
  34. <view class="c-row">
  35. <view class="title">累计收发</view>
  36. <view class="con-list">
  37. <input v-model='purchaseOrder.transactionsNumber' placeholder="请输入收货地址" placeholder-style="font-size: 12px;" name="input"></input>
  38. </view>
  39. </view>
  40. <view class="c-row">
  41. <view class="title">收货地址</view>
  42. <view class="con-list">
  43. <input v-model='purchaseOrder.transactionsNumber' placeholder="请输入收货人账号" placeholder-style="font-size: 12px;" name="input"></input>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="transaction">
  48. <view style='padding-top:10px;' class="c-row b-b justify-between">
  49. <view class="title">辽H12345(C003)</view>
  50. <view style='align-items: center;' class="flex">
  51. <text style='color:#878C9C;'>2021-07-05</text>
  52. <text class='type send'>发</text>
  53. </view>
  54. </view>
  55. <view class="c-row justify-between">
  56. <view style='flex:1;' class="title-black">净重</view>
  57. <view style='align-items: center;flex:2;' class="flex">
  58. <view style='flex:1;text-align:right;'>
  59. <text>33</text>
  60. <text class='type send'>发</text>
  61. <view class='weightnotes'>查看磅单</view>
  62. </view>
  63. <view style='flex:1;text-align:right;'>
  64. <text>30</text>
  65. <text class='type send'>发</text>
  66. <view class='weightnotes'>查看磅单</view>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="c-row">
  71. <view class="title-black">贷款</view>
  72. <view class="con-list">
  73. ¥10000.00
  74. </view>
  75. </view>
  76. <view class="c-row">
  77. <view class="title">已付贷款</view>
  78. <view style='color:#22C572;' class="con-list">
  79. ¥10000.00
  80. </view>
  81. </view>
  82. <view class="c-row">
  83. <view class="title">贷款扣款</view>
  84. <view class="con-list">
  85. ¥10000.00
  86. </view>
  87. </view>
  88. <view class="c-row">
  89. <view class="title-black">运费</view>
  90. <view class="con-list">
  91. ¥10000.00
  92. </view>
  93. </view>
  94. <view class="c-row">
  95. <view class="title">已付运费</view>
  96. <view style='color:#22C572;' class="con-list">
  97. ¥10000.00
  98. </view>
  99. </view>
  100. <view class="c-row">
  101. <view class="title">运费扣款</view>
  102. <view class="con-list">
  103. ¥10000.00
  104. </view>
  105. </view>
  106. <view class="c-row flex justify-end">
  107. <view style='flex:1;' class='deductfreight'>扣运费</view>
  108. <view style='flex:1;' class='payfreight'>付运费</view>
  109. <view style='flex:1;' class='deductfreight'>扣货款</view>
  110. <view style='flex:1;' class='payfreight'>付货款</view>
  111. <view @click='confirmpaygoods' style='flex:2;' class='payfreight'>确认收货</view>
  112. </view>
  113. </view>
  114. <view class='footer'>
  115. <button class="btn" @click="commit()">添加收货人</button>
  116. </view>
  117. </view>
  118. </template>
  119. <script>
  120. export default {
  121. name: "business",
  122. data() {
  123. return {
  124. purchaseOrder:{}
  125. }
  126. },
  127. onShow() {
  128. },
  129. onLoad(options) {
  130. },
  131. onPageScroll(e) {
  132. },
  133. //下拉刷新
  134. onPullDownRefresh() {
  135. },
  136. onReachBottom() { //上拉触底函数
  137. },
  138. methods: {
  139. confirmpaygoods(){
  140. uni.navigateTo({
  141. url:'/pageA/freightTransport/confirmpaygoods'
  142. })
  143. },
  144. commit(){
  145. console.log(1111)
  146. uni.navigateTo({
  147. url:'/pageA/freightTransport/addpaygoods'
  148. })
  149. }
  150. }
  151. }
  152. </script>
  153. <style lang='scss'>
  154. page,
  155. .content {
  156. background: #F5F6FA;
  157. }
  158. .c-row {
  159. display: -webkit-box;
  160. display: -webkit-flex;
  161. display: flex;
  162. -webkit-box-align: center;
  163. -webkit-align-items: center;
  164. align-items: center;
  165. padding: 10rpx 30rpx;
  166. position: relative;
  167. .title{
  168. color:#9698A2;
  169. }
  170. .title-black{
  171. color:#333;
  172. }
  173. }
  174. .con-list {
  175. -webkit-box-flex: 1;
  176. -webkit-flex: 1;
  177. flex: 1;
  178. display: -webkit-box;
  179. display: -webkit-flex;
  180. display: flex;
  181. -webkit-box-orient: vertical;
  182. -webkit-box-direction: normal;
  183. -webkit-flex-direction: column;
  184. flex-direction: column;
  185. color: #303133;
  186. line-height: 40rpx;
  187. text-align: right;
  188. padding-right: 20rpx;
  189. font-size:12px;
  190. }
  191. .transaction{
  192. background-color: #FFFFFF;
  193. margin: 10px;
  194. padding-bottom: 10px;
  195. border-radius: 20px;
  196. .type{
  197. display:inline-block;
  198. font-size:10px;
  199. padding:1px 3px;
  200. border-radius:50%;
  201. width:19px;height:19px;
  202. line-height:19px;
  203. }
  204. .type.send{
  205. color:#22C572;
  206. background:#E9F8F0;
  207. }
  208. .type.put{
  209. color:#22C572;
  210. background:#E9F8F0;
  211. }
  212. .weightnotes{
  213. display:inline-block;
  214. border:1px solid #CDCDCD;
  215. padding:5px;
  216. font-size:10px;
  217. margin-left:3px;
  218. }
  219. .deductfreight,.payfreight{
  220. width:75px;
  221. height: 33px;
  222. line-height:33px;
  223. font-size:14px;
  224. background: #fff;
  225. border:1px solid #CDCDCD;
  226. border-radius:30px;
  227. text-align:center;
  228. margin:0 5px;
  229. }
  230. .payfreight{
  231. margin-right:0;
  232. }
  233. }
  234. .line {
  235. display: inline-block;
  236. padding: 5px;
  237. position: relative;
  238. font-size: 17px;
  239. }
  240. .line.active {
  241. font-size: 19px;
  242. font-weight: 900;
  243. }
  244. .line.active:after {
  245. content: '';
  246. display: block;
  247. position: absolute;
  248. width: 38px;
  249. left: 50%;
  250. transform: translateX(-50%);
  251. bottom: 0;
  252. border-bottom: 1px solid #22C572;
  253. }
  254. .cu-tag.badge {
  255. right: 26rpx;
  256. }
  257. .cu-item {
  258. height: 80rpx;
  259. display: inline-block;
  260. line-height: 80rpx;
  261. }
  262. .search-form {
  263. background: #F5F6F9;
  264. padding-left: 20rpx;
  265. }
  266. .title-tip {
  267. color: #E63113;
  268. text-align: right;
  269. }
  270. .tag1 {
  271. background: #F5F6F9;
  272. padding: 5px;
  273. color: #333333;
  274. display: inline-flex;
  275. font-size: 22rpx;
  276. border-radius: 3px;
  277. margin: 3px;
  278. }
  279. .tag {
  280. background: #F5F6F9;
  281. padding: 7px 12px;
  282. color: #333333;
  283. display: inline-flex;
  284. font-size: 22rpx;
  285. border-radius: 15px;
  286. margin: 3px;
  287. }
  288. .tag-bule {
  289. background: #EBEEFA;
  290. color: #5C76DF;
  291. }
  292. .tag-green {
  293. background: #C6F7BC;
  294. color: #065112;
  295. }
  296. .tag-yellow {
  297. background: #F9F2EA;
  298. color: #BE9C69;
  299. }
  300. .tag-red {
  301. background: #FEECE6;
  302. color: #FE6430;
  303. }
  304. .text-white {
  305. color: #fff;
  306. }
  307. .text-white text {
  308. position: relative;
  309. z-index: 2;
  310. background: linear-gradient(45deg, #3DC146, #B2D612);
  311. padding: 5px 10px;
  312. border-radius: 38rpx;
  313. }
  314. .center{
  315. margin-bottom:100px;
  316. }
  317. .guess-section {
  318. padding-bottom: 100upx;
  319. display: flex;
  320. flex-wrap: wrap;
  321. padding:30upx;
  322. background: #fff;
  323. margin:10px;
  324. border-radius:6px;
  325. .type{
  326. border-radius:10px;
  327. padding:5px;
  328. wdith:22px;height:22px;
  329. line-height:14px;
  330. font-size:12px;
  331. }
  332. .type.send{
  333. background:#22C572;
  334. color:#fff;
  335. }
  336. .type.put{
  337. background:#FD714F;
  338. color:#fff;
  339. }
  340. .businessnumber{
  341. font-size:16px;
  342. font-weight:600;
  343. }
  344. .consigner{
  345. font-size:12px;
  346. }
  347. .time{
  348. color:#878C9C;
  349. }
  350. .goods{
  351. font-size:12px;
  352. }
  353. .goodsstatus{
  354. background:#F9F9FA;
  355. color:#9698A2;
  356. padding:10px 0;
  357. padding-left:47px;
  358. margin:10px 0;
  359. }
  360. .del{
  361. width:60px;
  362. height: 33px;
  363. line-height:33px;
  364. font-size:14px;
  365. background: #fff;
  366. border:1px solid #CDCDCD;
  367. border-radius:30px;
  368. text-align:center;
  369. }
  370. }
  371. .navbar {
  372. position: fixed;
  373. left: 0;
  374. top: var(--window-top);
  375. display: flex;
  376. width: 100%;
  377. height: 80upx;
  378. background: #fff;
  379. box-shadow: 0 2upx 10upx rgba(0, 0, 0, .06);
  380. z-index: 10;
  381. .nav-item {
  382. flex: 1;
  383. display: flex;
  384. justify-content: center;
  385. align-items: center;
  386. height: 100%;
  387. font-size: 30upx;
  388. color: $font-color-dark;
  389. position: relative;
  390. &.current {
  391. color: $base-color;
  392. &:after {
  393. content: '';
  394. position: absolute;
  395. left: 50%;
  396. bottom: 0;
  397. transform: translateX(-50%);
  398. width: 120upx;
  399. height: 0;
  400. border-bottom: 4upx solid $base-color;
  401. }
  402. }
  403. }
  404. .p-box {
  405. display: flex;
  406. flex-direction: column;
  407. .yticon {
  408. display: flex;
  409. align-items: center;
  410. justify-content: center;
  411. width: 30upx;
  412. height: 14upx;
  413. line-height: 1;
  414. margin-left: 4upx;
  415. font-size: 26upx;
  416. color: #888;
  417. &.active {
  418. color: $base-color;
  419. }
  420. }
  421. .xia {
  422. transform: scaleY(-1);
  423. }
  424. }
  425. .cate-item {
  426. display: flex;
  427. justify-content: center;
  428. align-items: center;
  429. height: 100%;
  430. width: 80upx;
  431. position: relative;
  432. font-size: 44upx;
  433. &:after {
  434. content: '';
  435. position: absolute;
  436. left: 0;
  437. top: 50%;
  438. transform: translateY(-50%);
  439. border-left: 1px solid #ddd;
  440. width: 0;
  441. height: 36upx;
  442. }
  443. }
  444. }
  445. /* 分类 */
  446. .cate-mask {
  447. position: fixed;
  448. left: 0;
  449. top: var(--window-top);
  450. bottom: 0;
  451. width: 100%;
  452. background: rgba(0, 0, 0, 0);
  453. z-index: 95;
  454. transition: .3s;
  455. .cate-content {
  456. width: 630upx;
  457. height: 100%;
  458. background: #fff;
  459. float: right;
  460. transform: translateX(100%);
  461. transition: .3s;
  462. }
  463. &.none {
  464. display: none;
  465. }
  466. &.show {
  467. background: rgba(0, 0, 0, .4);
  468. .cate-content {
  469. transform: translateX(0);
  470. }
  471. }
  472. }
  473. .cate-list {
  474. display: flex;
  475. flex-direction: column;
  476. height: 100%;
  477. .cate-item {
  478. display: flex;
  479. align-items: center;
  480. height: 90upx;
  481. padding-left: 30upx;
  482. font-size: 28upx;
  483. color: #555;
  484. position: relative;
  485. }
  486. .two {
  487. height: 64upx;
  488. color: #303133;
  489. font-size: 30upx;
  490. background: #f8f8f8;
  491. }
  492. .active {
  493. color: $base-color;
  494. }
  495. }
  496. .introduce-section .title {
  497. font-size: 17px;
  498. font-weight: bold;
  499. height: 40px;
  500. line-height: 40px;
  501. flex: 2.5;
  502. border-bottom: 1px solid #EEEEEE;
  503. }
  504. .introduce-section .address {
  505. color: #878C9C;
  506. font-size: 12px;
  507. padding: 10px 0 10px;
  508. }
  509. .introduce-section .price {
  510. padding: 10px 0 10px;
  511. color: #FD714F;
  512. font-size: 19px;
  513. font-weight: 700;
  514. }
  515. .introduce-section .guess-item {
  516. border-radius: 10px;
  517. background: #fff;
  518. padding: 0upx 30upx 20upx;
  519. margin: 8px;
  520. border-bottom: 1px solid #ccc;
  521. }
  522. /* 销售信息 */
  523. .introduce-section {
  524. .title-tip {
  525. flex: 1;
  526. }
  527. .price-box {
  528. display: flex;
  529. align-items: baseline;
  530. font-size: 26upx;
  531. }
  532. .price {
  533. font-size: $font-lg + 2upx;
  534. }
  535. .m-price {
  536. margin: 0 12upx;
  537. color: $font-color-light;
  538. text-decoration: line-through;
  539. }
  540. .coupon-tip {
  541. align-items: center;
  542. padding: 4upx 10upx;
  543. background: $uni-color-primary;
  544. font-size: $font-sm;
  545. color: #fff;
  546. border-radius: 6upx;
  547. line-height: 1;
  548. transform: translateY(-4upx);
  549. }
  550. .bot-row {
  551. display: flex;
  552. align-items: center;
  553. height: 50upx;
  554. font-size: $font-sm;
  555. color: $font-color-light;
  556. view {
  557. flex: 1;
  558. }
  559. }
  560. }
  561. .footer{
  562. position:fixed;
  563. bottom:0;
  564. width: 100%;
  565. padding:20px 0;
  566. }
  567. .btn{
  568. width:90%;
  569. background:#22C572;
  570. color:#fff;
  571. border-radius:30px;
  572. }
  573. .btn:after{
  574. border:none;
  575. }
  576. </style>