orderReport.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <template>
  2. <view>
  3. <u-navbar title="订餐上报"></u-navbar>
  4. <view class="head">
  5. <view class="department">
  6. 订餐部门:机务段
  7. </view>
  8. <view class="date" @click="changeDateShow">
  9. 2023年4月<u-icon name="arrow-down" size="24"></u-icon>
  10. <view class="date-box" v-if="dateShow">
  11. <view class="options-item">
  12. 选项1
  13. </view>
  14. <view class="options-item">
  15. 选项2
  16. </view>
  17. <view class="options-item">
  18. 选项3
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. <!-- 上报记录 -->
  24. <view class="records">
  25. <view class="record-item">
  26. <view class="date">
  27. 4月10日 星期一
  28. </view>
  29. <view class="number report" @click="maskShow">
  30. {{report}} <u-icon name="arrow-right" size="20"></u-icon>
  31. </view>
  32. </view>
  33. <view class="record-item" v-for="item in 8">
  34. <view class="date">
  35. 4月10日 星期一
  36. </view>
  37. <view class="number">
  38. 订餐9人
  39. </view>
  40. </view>
  41. </view>
  42. <!-- 遮罩层 -->
  43. <u-mask :show="show1" @click="show1 = false" :zoom='false'>
  44. <view class="warp">
  45. <view class="rect" @tap.stop>
  46. <view class="title">
  47. <u-icon name="close" color="#777777" @click="close"></u-icon>
  48. 订餐人数
  49. </view>
  50. <!-- <textarea placeholder="请填写订餐人数" name="" id="" cols="30" rows="10" v-model="name1" >
  51. </textarea> -->
  52. <u-input v-model="name1" :clearable="false" type="number" placeholder="请填写订餐人数"> </u-input>
  53. <view class="unit">
  54. </view>
  55. <u-button class="btn" @click="submit" >保存</u-button>
  56. </view>
  57. </view>
  58. </u-mask>
  59. </view>
  60. </template>
  61. <script>
  62. export default {
  63. data() {
  64. return {
  65. dateShow:false,
  66. show1: false,
  67. report:'点击上报',
  68. name1:''
  69. }
  70. },
  71. methods: {
  72. changeDateShow() {
  73. this.dateShow = !this.dateShow
  74. },
  75. maskShow() {
  76. this.show1 = true;
  77. },
  78. close(){
  79. this.show1 =false ;
  80. },
  81. submit() {
  82. this.report ="订餐"+ this.name1+"人";
  83. this.show1 = false;
  84. },
  85. }
  86. }
  87. </script>
  88. <style lang="scss" scoped>
  89. .head{
  90. background: linear-gradient(89.02deg, rgba(18,114,238,1) 1.34%,rgba(102,169,255,1) 99.5%);
  91. padding: 40rpx 32rpx;
  92. display: flex;
  93. justify-content: space-between;
  94. align-items: center;
  95. color: rgba(255, 255, 255, 1);
  96. .department{
  97. font-size: 36rpx;
  98. font-family: 'Medium';
  99. }
  100. .date{
  101. width: 218rpx;
  102. height: 72rpx;
  103. line-height: 72rpx;
  104. text-align: center;
  105. border-radius: 8px;
  106. border: 1px solid rgba(255, 255, 255, 1);
  107. position: relative;
  108. /deep/.uicon-arrow-down{
  109. margin-left: 8rpx;
  110. }
  111. .date-box{
  112. background-color: #fff;
  113. z-index: 999;
  114. width: 180rpx;
  115. box-shadow: 0px 0px 2px #999999;
  116. position: absolute;
  117. top: 70rpx;
  118. left: 0px;
  119. .options-item {
  120. line-height: 60rpx;
  121. padding-left: 16rpx;
  122. background-color: #fff;
  123. color: #101010;
  124. text-align: left;
  125. }
  126. }
  127. }
  128. }
  129. // 上报记录
  130. .records{
  131. background-color: #fff;
  132. .record-item{
  133. font-family: 'PingFang Regular';
  134. padding: 0 24rpx;
  135. line-height: 88rpx;
  136. display: flex;
  137. justify-content: space-between;
  138. align-items: center;
  139. color: rgba(16, 16, 16, 1);
  140. border-bottom: 1px solid rgba(232, 232, 232, 1);
  141. }
  142. .report{
  143. color: rgba(18, 114, 238, 1);
  144. /deep/.uicon-arrow-right{
  145. margin-left: 8rpx;
  146. }
  147. }
  148. }
  149. .warp {
  150. position: fixed;
  151. left: 0;
  152. bottom: 0;
  153. width: 100%;
  154. /deep/.uicon-close{
  155. position: absolute;
  156. left: 32rpx;
  157. top: 6rpx !important;
  158. };
  159. .title {
  160. color: rgba(16, 16, 16, 100);
  161. line-height: 48rpx;
  162. color: rgba(16, 16, 16, 1);
  163. font-size: 36rpx;
  164. text-align: center;
  165. position: relative;
  166. font-weight:bold
  167. }
  168. }
  169. .rect {
  170. width: 100%;
  171. height: 100%;
  172. background-color: #fff;
  173. padding: 32rpx 0;
  174. /deep/.u-input {
  175. width: 87.2%;
  176. border-radius: 8px;
  177. background-color: rgba(229, 231, 234, 100);
  178. margin: 40rpx auto 0;
  179. height: 96rpx;
  180. line-height: 96rpx !important;
  181. padding: 0 16rpx;
  182. position: relative;
  183. }
  184. /deep/.u-input__input{
  185. height: 96rpx !important;
  186. line-height: 96rpx !important;
  187. text-indent: 24rpx;
  188. }
  189. .unit{
  190. width: 20px;
  191. height: 20px;
  192. position: absolute;
  193. top: 140rpx;
  194. right: 60rpx;
  195. color: rgba(16, 16, 16, 1);
  196. font-size: 36rpx;
  197. }
  198. .u-btn {
  199. width: 89.2%;
  200. color: rgba(255, 255, 255, 100);
  201. font-size: 36rpx;
  202. border-radius: 8px;
  203. margin-top: 48rpx;
  204. z-index: 99999;
  205. background-color: rgba(31, 74, 153, 1);
  206. }
  207. }
  208. </style>