sendrecord.vue 11 KB

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