sureOrder.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <view>
  3. <view class="box">
  4. <view class="item">
  5. <view class="l">业务费用:</view>
  6. <view class="r">
  7. {{form.itemPrice}}元
  8. </view>
  9. </view>
  10. <view class="item">
  11. <view class="l">停车费用:</view>
  12. <view class="r">
  13. <text v-if="form.partMoney">{{form.partMoney}}</text>
  14. <text v-else>-</text>
  15. </view>
  16. </view>
  17. <view class="item">
  18. <view class="l">合计费用:</view>
  19. <view class="r">
  20. {{form.totalMoney}}元
  21. </view>
  22. </view>
  23. </view>
  24. <u-button type="primary" @click="confirmFn">确认</u-button>
  25. </view>
  26. </template>
  27. <script>
  28. import request from '../../utils/request.js'
  29. export default {
  30. data() {
  31. return {
  32. id: '',
  33. form: {
  34. partMoney: 0
  35. },
  36. imgList: [],
  37. uploadImageUrl: request.server + '/upload/image',
  38. }
  39. },
  40. onLoad(options) {
  41. this.id = options.id;
  42. },
  43. onShow() {
  44. this.getBusinessById();
  45. },
  46. methods: {
  47. getBusinessById() {
  48. this.$api.getBusinessById({
  49. id: this.id
  50. }).then(resp => {
  51. this.form = resp.data;
  52. })
  53. },
  54. confirmFn(){
  55. this.$api.confirmBusiness({ids:this.form.id}).then(Resp=>{
  56. this.$common.toast('已确认');
  57. setTimeout(()=>{
  58. this.$common.back()
  59. },500)
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style lang="scss">
  66. page {
  67. background-color: #fff;
  68. }
  69. @import '@/common/common.scss'
  70. </style>