自主项目,食堂系统,前端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.

231 lines
5.6 KiB

  1. <template>
  2. <view>
  3. <view class="head">
  4. <view class="lf-row-between lf-color-gray list">
  5. <view>采购单 492461046128742764</view>
  6. </view>
  7. <view class="lf-row-between list">
  8. <image src="../../../static/logo.png" class="image"></image>
  9. <view class="info">
  10. <view class="lf-font-32 lf-color-black lf-font-bold">广西美味生活有限公司</view>
  11. <view class="lf-font-24 lf-color-555">广西南宁青秀区民族大道118号可爱大厦A座0930室</view>
  12. </view>
  13. </view>
  14. </view>
  15. <self-line></self-line>
  16. <view class="lf-p-l-32 lf-p-r-32 lf-border-box lf-bg-white">
  17. <lf-ysteps :stepList="stepList" color="#11D189"></lf-ysteps>
  18. </view>
  19. <self-line></self-line>
  20. <view class="head">
  21. <view class="lf-row-between list">
  22. <view>车辆</view>
  23. <view class="lf-font-bold">桂AX2738</view>
  24. </view>
  25. <view class="lf-row-between list">
  26. <view>司机</view>
  27. <view class="lf-font-bold">李师傅</view>
  28. </view>
  29. <view class="lf-row-between list">
  30. <view>联系电话</view>
  31. <view class="lf-font-bold">13200000000</view>
  32. </view>
  33. <view class="list">
  34. <view>证明材料</view>
  35. <view class="lf-flex-wrap lf-m-t-10">
  36. <image src="../../../static/logo.png" class="ms-img" v-for="(item, index) in 4" :key="index"></image>
  37. </view>
  38. </view>
  39. </view>
  40. <self-line></self-line>
  41. <view class="lf-m-t-30 lf-m-l-32">
  42. <view class="lf-font-32 lf-color-black lf-font-bold lf-m-b-20">物资明细</view>
  43. <wyb-table :first-line-fixed="true" contentBgColor="#ecfaf5" :headers="headers" :contents="contents" @onButtonClick="onButtonClick" width="100%" height="350rpx"></wyb-table>
  44. </view>
  45. <view style="height: 100rpx;"></view>
  46. <!-- 操作按钮 -->
  47. <view class="fixed-bottom">
  48. <button class="btn btn1">退单</button>
  49. <button class="btn btn2" @click="$url('/pages/canteen/purchase/receipt')">确认收货</button>
  50. </view>
  51. </view>
  52. </template>
  53. <script>
  54. import lfYsteps from '@/components/lf-ysteps/lf-ysteps';
  55. import wybTable from '@/components/wyb-table/wyb-table';
  56. export default {
  57. components: { lfYsteps, wybTable },
  58. data(){
  59. return {
  60. stepList: [
  61. {
  62. time: '2021-07-23 13:23:52', // 左侧时间 -- 必选
  63. info: '订单创建', // 右侧内容 -- 可选
  64. isFinished: false, // 是否已完成(完成 index 为 √)-- 可选
  65. isActive: true, // 是否为当前节点 Active(当前节点 即使完成 index 也不会显示 √)-- 可选
  66. isShowSlot: false // 右侧是否有 Slot(显示在 右侧内容下方)-- 可选
  67. },
  68. {
  69. time: '2021-07-23 13:23:52',
  70. info: '采购订单发起,等待供应商接单',
  71. isFinished: false,
  72. isActive: true,
  73. isShowSlot: true
  74. },
  75. {
  76. time: '2021-07-23 13:23:52',
  77. info: '供应商已接单,正在装车运输中',
  78. isFinished: false,
  79. isActive: true,
  80. isShowSlot: true
  81. },
  82. {
  83. time: '2021-07-23 13:23:52',
  84. info: '您的包裹已到,已被本人签收',
  85. isFinished: true,
  86. isActive: false,
  87. isShowSlot: true
  88. }
  89. ],
  90. headers: [{
  91. key: 'name',
  92. label: '姓名'
  93. },{
  94. key: 'age',
  95. label: '年龄'
  96. },{
  97. key: 'sex',
  98. label: '性别'
  99. },{
  100. key: 'height',
  101. label: '身高'
  102. },{
  103. key: 'info',
  104. label: '描述'
  105. },{
  106. key: 'operation',
  107. label: '操作'
  108. }],
  109. contents: [{
  110. name: '张三',
  111. age: '18',
  112. sex: '男',
  113. height: '192cm',
  114. info: '无敌叫是',
  115. operation: {button: true, key: 'delete', value: '删除'}
  116. }, {
  117. name: '李四',
  118. age: '18',
  119. sex: '男',
  120. height: '192cm',
  121. info: '无敌叫是'
  122. }, {
  123. name: '赵五',
  124. age: '18',
  125. sex: '男',
  126. height: '192cm',
  127. info: '无敌叫是'
  128. },{
  129. name: '王六',
  130. age: '18',
  131. sex: '男',
  132. height: '192cm',
  133. info: '无敌叫是'
  134. }]
  135. }
  136. },
  137. onLoad(){
  138. },
  139. methods: {
  140. onButtonClick(event){
  141. uni.showModal({
  142. title: '温馨提示',
  143. content: '您确定移除该项吗?',
  144. success: result => {
  145. if(result.confirm){
  146. console.log("移除某一项", event);
  147. let { contentIndex } = event;
  148. this.contents.splice(contentIndex, 1);
  149. }
  150. }
  151. })
  152. }
  153. }
  154. }
  155. </script>
  156. <style lang="scss" scoped="scoped">
  157. .head{
  158. padding: 0 32rpx;
  159. width: 750rpx;
  160. box-sizing: border-box;
  161. height: auto;
  162. .list{
  163. padding: 30rpx 0;
  164. border-bottom: 1rpx solid #e5e5e5;
  165. font-size: 28rpx;
  166. color: #555555;
  167. &:last-child{
  168. border-bottom: none;
  169. }
  170. .image{
  171. width: 140rpx;
  172. height: 140rpx;
  173. border-radius: 10rpx;
  174. }
  175. .info{
  176. display: flex;
  177. flex-direction: column;
  178. justify-content: space-around;
  179. width: 530rpx;
  180. height: 140rpx;
  181. }
  182. }
  183. }
  184. .fixed-bottom{
  185. position: fixed;
  186. bottom: 0rpx;
  187. left: 0rpx;
  188. z-index: 99;
  189. width: 750rpx;
  190. height: 98rpx;
  191. display: flex;
  192. justify-content: flex-end;
  193. align-items: center;
  194. border-top: 1rpx solid #E5E5E5;
  195. background-color: #FFFFFF;
  196. box-sizing: border-box;
  197. padding: 0 32rpx;
  198. .btn{
  199. width: 212rpx;
  200. height: 82rpx;
  201. border-radius: 41rpx;
  202. margin: 0;
  203. padding: 0;
  204. font-size: 32rpx;
  205. display: flex;
  206. justify-content: center;
  207. align-items: center;
  208. }
  209. .btn1{
  210. border: 2rpx solid #555555;
  211. opacity: .5;
  212. }
  213. .btn2{
  214. background: #11D189;
  215. color: #FFFFFF;
  216. margin-left: 20rpx;
  217. }
  218. }
  219. .ms-img{
  220. width: 160rpx;
  221. height: 160rpx;
  222. margin-right: 15rpx;
  223. margin-top: 15rpx;
  224. &:nth-of-type(4n){
  225. margin-right: 0rpx;
  226. }
  227. }
  228. </style>