自主项目,食堂系统,前端uniapp
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
2.5 KiB

  1. <template>
  2. <view>
  3. <view class="head">
  4. <view class="lf-row-between list">
  5. <view>订单编号</view>
  6. <view class="lf-color-black">{{ order.q_sn }}</view>
  7. </view>
  8. <view class="lf-row-between list">
  9. <view>订单状态</view>
  10. <view class="quoted-price">{{ order.state }}</view>
  11. </view>
  12. <view class="lf-row-between list">
  13. <view>报价商</view>
  14. <view class="lf-color-black">{{ order.contact_name }}</view>
  15. </view>
  16. </view>
  17. <self-line></self-line>
  18. <view class="lf-m-t-30 lf-m-l-32">
  19. <view class="lf-font-32 lf-color-black lf-font-bold lf-m-b-20">报价明细</view>
  20. <!-- TODO 表格对接 -->
  21. <wyb-table :first-line-fixed="true" contentBgColor="#eef6fe" width="100%" height="350rpx"></wyb-table>
  22. </view>
  23. <view style="height: 100rpx;"></view>
  24. <!-- 操作按钮 -->
  25. <view class="fixed-bottom">
  26. <button class="btn btn1">编辑</button>
  27. <button class="btn btn2">发起报价</button>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. import wybTable from '@/components/wyb-table/wyb-table';
  33. export default {
  34. components: { wybTable },
  35. data(){
  36. return {
  37. order: {}
  38. }
  39. },
  40. onLoad(options){
  41. this.getDetail(options.q_sn)
  42. },
  43. methods: {
  44. getDetail(q_sn){
  45. this.$http(this.API.API_SUPPLIER_QUOTATIONDETAIL, {
  46. q_sn: q_sn
  47. }).then(res => {
  48. console.log("getDetail", res);
  49. this.order = res.data.order || {};
  50. })
  51. }
  52. }
  53. }
  54. </script>
  55. <style lang="scss" scoped="scoped">
  56. .head{
  57. padding: 0 32rpx;
  58. width: 750rpx;
  59. box-sizing: border-box;
  60. height: auto;
  61. .list{
  62. padding: 30rpx 0;
  63. border-bottom: 1rpx solid #e5e5e5;
  64. font-size: 28rpx;
  65. color: #555555;
  66. &:last-child{
  67. border-bottom: none;
  68. }
  69. }
  70. }
  71. .fixed-bottom{
  72. position: fixed;
  73. bottom: 0rpx;
  74. left: 0rpx;
  75. z-index: 99;
  76. width: 750rpx;
  77. height: 98rpx;
  78. display: flex;
  79. justify-content: flex-end;
  80. align-items: center;
  81. border-top: 1rpx solid #E5E5E5;
  82. background-color: #FFFFFF;
  83. box-sizing: border-box;
  84. padding: 0 32rpx;
  85. .btn{
  86. width: 212rpx;
  87. height: 82rpx;
  88. border-radius: 41rpx;
  89. margin: 0;
  90. padding: 0;
  91. font-size: 32rpx;
  92. display: flex;
  93. justify-content: center;
  94. align-items: center;
  95. }
  96. .btn1{
  97. border: 2rpx solid #555555;
  98. opacity: .5;
  99. }
  100. .btn2{
  101. background: #1833F2;
  102. color: #FFFFFF;
  103. margin-left: 20rpx;
  104. }
  105. }
  106. // 已报价,等待审核
  107. .quoted-price{
  108. color: #777777;
  109. }
  110. // 等待报价
  111. .wait{
  112. color: #1833F2;
  113. }
  114. // 已通过审核
  115. .passed{
  116. color: #0BCE5F;
  117. }
  118. // 报价被拒绝
  119. .refuse{
  120. color: #FF0000;
  121. }
  122. </style>