addsendgoods.vue 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  1. <template>
  2. <view class="center">
  3. <view class="transaction">
  4. <view class="c-row b-b margin-top">
  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 b-b">
  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 b-b">
  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 b-b">
  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 b-b">
  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 b-b">
  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 b-b">
  41. <view class="title">运费承担方</view>
  42. <view class="con-list">
  43. <picker @change="packingChange" :value="packingIndex" :range="packingType">
  44. <view class="picker">
  45. {{packingIndex>-1?packingType[packingIndex]:'请选择'}}
  46. </view>
  47. </picker>
  48. </view>
  49. </view>
  50. <view class="c-row b-b">
  51. <view class="title">收货地址</view>
  52. <view class="con-list">
  53. <input v-model='purchaseOrder.transactionsNumber' placeholder="请输入收货地址" placeholder-style="font-size: 12px;" name="input"></input>
  54. </view>
  55. </view>
  56. <view class="c-row">
  57. <view class="title">收货人账号</view>
  58. <view class="con-list">
  59. <input v-model='purchaseOrder.transactionsNumber' placeholder="请输入收货人账号" placeholder-style="font-size: 12px;" name="input"></input>
  60. </view>
  61. </view>
  62. </view>
  63. <view class='footer'>
  64. <button class="btn" @click="commit()">提交</button>
  65. </view>
  66. </view>
  67. </template>
  68. <script>
  69. export default {
  70. name: "business",
  71. data() {
  72. return {
  73. purchaseOrder:{}
  74. }
  75. },
  76. onShow() {
  77. },
  78. onLoad(options) {
  79. },
  80. onPageScroll(e) {
  81. },
  82. //下拉刷新
  83. onPullDownRefresh() {
  84. },
  85. onReachBottom() { //上拉触底函数
  86. },
  87. methods: {
  88. }
  89. }
  90. </script>
  91. <style lang='scss'>
  92. page,
  93. .content {
  94. background: #F5F6FA;
  95. }
  96. .c-row {
  97. display: -webkit-box;
  98. display: -webkit-flex;
  99. display: flex;
  100. -webkit-box-align: center;
  101. -webkit-align-items: center;
  102. align-items: center;
  103. padding: 20rpx 30rpx;
  104. position: relative;
  105. }
  106. .con-list {
  107. -webkit-box-flex: 1;
  108. -webkit-flex: 1;
  109. flex: 1;
  110. display: -webkit-box;
  111. display: -webkit-flex;
  112. display: flex;
  113. -webkit-box-orient: vertical;
  114. -webkit-box-direction: normal;
  115. -webkit-flex-direction: column;
  116. flex-direction: column;
  117. color: #303133;
  118. line-height: 40rpx;
  119. text-align: right;
  120. padding-right: 20rpx;
  121. }
  122. .transaction{
  123. background-color: #FFFFFF;
  124. margin: 10px;
  125. padding-bottom: 10px;
  126. border-radius: 20px;
  127. }
  128. .line {
  129. display: inline-block;
  130. padding: 5px;
  131. position: relative;
  132. font-size: 17px;
  133. }
  134. .line.active {
  135. font-size: 19px;
  136. font-weight: 900;
  137. }
  138. .line.active:after {
  139. content: '';
  140. display: block;
  141. position: absolute;
  142. width: 38px;
  143. left: 50%;
  144. transform: translateX(-50%);
  145. bottom: 0;
  146. border-bottom: 1px solid #22C572;
  147. }
  148. .cu-tag.badge {
  149. right: 26rpx;
  150. }
  151. .cu-item {
  152. height: 80rpx;
  153. display: inline-block;
  154. line-height: 80rpx;
  155. }
  156. .search-form {
  157. background: #F5F6F9;
  158. padding-left: 20rpx;
  159. }
  160. .title-tip {
  161. color: #E63113;
  162. text-align: right;
  163. }
  164. .tag1 {
  165. background: #F5F6F9;
  166. padding: 5px;
  167. color: #333333;
  168. display: inline-flex;
  169. font-size: 22rpx;
  170. border-radius: 3px;
  171. margin: 3px;
  172. }
  173. .tag {
  174. background: #F5F6F9;
  175. padding: 7px 12px;
  176. color: #333333;
  177. display: inline-flex;
  178. font-size: 22rpx;
  179. border-radius: 15px;
  180. margin: 3px;
  181. }
  182. .tag-bule {
  183. background: #EBEEFA;
  184. color: #5C76DF;
  185. }
  186. .tag-green {
  187. background: #C6F7BC;
  188. color: #065112;
  189. }
  190. .tag-yellow {
  191. background: #F9F2EA;
  192. color: #BE9C69;
  193. }
  194. .tag-red {
  195. background: #FEECE6;
  196. color: #FE6430;
  197. }
  198. .text-white {
  199. color: #fff;
  200. }
  201. .text-white text {
  202. position: relative;
  203. z-index: 2;
  204. background: linear-gradient(45deg, #3DC146, #B2D612);
  205. padding: 5px 10px;
  206. border-radius: 38rpx;
  207. }
  208. .guess-section {
  209. padding-bottom: 100upx;
  210. display: flex;
  211. flex-wrap: wrap;
  212. padding:30upx;
  213. background: #fff;
  214. margin:10px;
  215. border-radius:6px;
  216. .type{
  217. border-radius:10px;
  218. padding:5px;
  219. wdith:22px;height:22px;
  220. line-height:14px;
  221. font-size:12px;
  222. }
  223. .type.send{
  224. background:#22C572;
  225. color:#fff;
  226. }
  227. .type.put{
  228. background:#FD714F;
  229. color:#fff;
  230. }
  231. .businessnumber{
  232. font-size:16px;
  233. font-weight:600;
  234. }
  235. .consigner{
  236. font-size:12px;
  237. }
  238. .time{
  239. color:#878C9C;
  240. }
  241. .goods{
  242. font-size:12px;
  243. }
  244. .goodsstatus{
  245. background:#F9F9FA;
  246. color:#9698A2;
  247. padding:10px 0;
  248. padding-left:47px;
  249. margin:10px 0;
  250. }
  251. .del{
  252. width:60px;
  253. height: 33px;
  254. line-height:33px;
  255. font-size:14px;
  256. background: #fff;
  257. border:1px solid #CDCDCD;
  258. border-radius:30px;
  259. text-align:center;
  260. }
  261. }
  262. .navbar {
  263. position: fixed;
  264. left: 0;
  265. top: var(--window-top);
  266. display: flex;
  267. width: 100%;
  268. height: 80upx;
  269. background: #fff;
  270. box-shadow: 0 2upx 10upx rgba(0, 0, 0, .06);
  271. z-index: 10;
  272. .nav-item {
  273. flex: 1;
  274. display: flex;
  275. justify-content: center;
  276. align-items: center;
  277. height: 100%;
  278. font-size: 30upx;
  279. color: $font-color-dark;
  280. position: relative;
  281. &.current {
  282. color: $base-color;
  283. &:after {
  284. content: '';
  285. position: absolute;
  286. left: 50%;
  287. bottom: 0;
  288. transform: translateX(-50%);
  289. width: 120upx;
  290. height: 0;
  291. border-bottom: 4upx solid $base-color;
  292. }
  293. }
  294. }
  295. .p-box {
  296. display: flex;
  297. flex-direction: column;
  298. .yticon {
  299. display: flex;
  300. align-items: center;
  301. justify-content: center;
  302. width: 30upx;
  303. height: 14upx;
  304. line-height: 1;
  305. margin-left: 4upx;
  306. font-size: 26upx;
  307. color: #888;
  308. &.active {
  309. color: $base-color;
  310. }
  311. }
  312. .xia {
  313. transform: scaleY(-1);
  314. }
  315. }
  316. .cate-item {
  317. display: flex;
  318. justify-content: center;
  319. align-items: center;
  320. height: 100%;
  321. width: 80upx;
  322. position: relative;
  323. font-size: 44upx;
  324. &:after {
  325. content: '';
  326. position: absolute;
  327. left: 0;
  328. top: 50%;
  329. transform: translateY(-50%);
  330. border-left: 1px solid #ddd;
  331. width: 0;
  332. height: 36upx;
  333. }
  334. }
  335. }
  336. /* 分类 */
  337. .cate-mask {
  338. position: fixed;
  339. left: 0;
  340. top: var(--window-top);
  341. bottom: 0;
  342. width: 100%;
  343. background: rgba(0, 0, 0, 0);
  344. z-index: 95;
  345. transition: .3s;
  346. .cate-content {
  347. width: 630upx;
  348. height: 100%;
  349. background: #fff;
  350. float: right;
  351. transform: translateX(100%);
  352. transition: .3s;
  353. }
  354. &.none {
  355. display: none;
  356. }
  357. &.show {
  358. background: rgba(0, 0, 0, .4);
  359. .cate-content {
  360. transform: translateX(0);
  361. }
  362. }
  363. }
  364. .cate-list {
  365. display: flex;
  366. flex-direction: column;
  367. height: 100%;
  368. .cate-item {
  369. display: flex;
  370. align-items: center;
  371. height: 90upx;
  372. padding-left: 30upx;
  373. font-size: 28upx;
  374. color: #555;
  375. position: relative;
  376. }
  377. .two {
  378. height: 64upx;
  379. color: #303133;
  380. font-size: 30upx;
  381. background: #f8f8f8;
  382. }
  383. .active {
  384. color: $base-color;
  385. }
  386. }
  387. .introduce-section .title {
  388. font-size: 17px;
  389. font-weight: bold;
  390. height: 40px;
  391. line-height: 40px;
  392. flex: 2.5;
  393. border-bottom: 1px solid #EEEEEE;
  394. }
  395. .introduce-section .address {
  396. color: #878C9C;
  397. font-size: 12px;
  398. padding: 10px 0 10px;
  399. }
  400. .introduce-section .price {
  401. padding: 10px 0 10px;
  402. color: #FD714F;
  403. font-size: 19px;
  404. font-weight: 700;
  405. }
  406. .introduce-section .guess-item {
  407. border-radius: 10px;
  408. background: #fff;
  409. padding: 0upx 30upx 20upx;
  410. margin: 8px;
  411. border-bottom: 1px solid #ccc;
  412. }
  413. /* 销售信息 */
  414. .introduce-section {
  415. .title-tip {
  416. flex: 1;
  417. }
  418. .price-box {
  419. display: flex;
  420. align-items: baseline;
  421. font-size: 26upx;
  422. }
  423. .price {
  424. font-size: $font-lg + 2upx;
  425. }
  426. .m-price {
  427. margin: 0 12upx;
  428. color: $font-color-light;
  429. text-decoration: line-through;
  430. }
  431. .coupon-tip {
  432. align-items: center;
  433. padding: 4upx 10upx;
  434. background: $uni-color-primary;
  435. font-size: $font-sm;
  436. color: #fff;
  437. border-radius: 6upx;
  438. line-height: 1;
  439. transform: translateY(-4upx);
  440. }
  441. .bot-row {
  442. display: flex;
  443. align-items: center;
  444. height: 50upx;
  445. font-size: $font-sm;
  446. color: $font-color-light;
  447. view {
  448. flex: 1;
  449. }
  450. }
  451. }
  452. .footer{
  453. position:fixed;
  454. bottom:0;
  455. width: 100%;
  456. padding:20px 0;
  457. }
  458. .btn{
  459. width:90%;
  460. background:#22C572;
  461. color:#fff;
  462. border-radius:30px;
  463. }
  464. .btn:after{
  465. border:none;
  466. }
  467. </style>