index.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <z-paging ref="paging" v-model="list" :fixed-bottom="false" safe-area-inset-bottom>
  3. <template #top>
  4. <ut-navbar title="销售登记" :fixed="false"></ut-navbar>
  5. </template>
  6. <!-- 成功图标和标题 -->
  7. <view class="d-flex flex-cln a-c j-c pt-120 pb-40">
  8. <image src="https://yujin-szyy.oss-cn-chengdu.aliyuncs.com/szyy/images-plt/plant/sales/salessuccess.png" mode="widthFix" class="w-400 h-400 mb-40" />
  9. <text class="f-s-42 f-w-5 c-primary">销售登记成功!</text>
  10. </view>
  11. <!-- 按钮区域 -->
  12. <view class="pd-24">
  13. <!-- 两个并排按钮 -->
  14. <view class="d-flex gap-24 mb-24">
  15. <up-button text="继续销售登记" type="primary" class="flex1" :custom-style="{ backgroundColor: '#14c4c4', borderColor: '#14c4c4' }" @click="continueRegistration"></up-button>
  16. <up-button text="查看销售清单" type="success" class="flex1" :custom-style="{ backgroundColor: '#41c06d', borderColor: '#41c06d' }" @click="viewSalesList"></up-button>
  17. </view>
  18. <!-- 返回列表按钮 -->
  19. <up-button text="返回列表" type="text" :custom-style="{ backgroundColor: '#ffffff', borderColor: '#41c06d', color: '#41c06d', width: '100%' }" @click="backToList"></up-button>
  20. </view>
  21. </z-paging>
  22. </template>
  23. <script setup lang="ts">
  24. const list = ref([]);
  25. const paging = ref();
  26. // 继续销售登记
  27. const continueRegistration = () => {
  28. uni.navigateBack({
  29. delta: 1,
  30. });
  31. };
  32. // 查看销售清单
  33. const viewSalesList = () => {
  34. uni.reLaunch({
  35. url: '/plant/storage/finished-product/list/index',
  36. });
  37. };
  38. // 返回列表
  39. const backToList = () => {
  40. uni.reLaunch({
  41. url: '/plant/storage/finished-product/list/index',
  42. });
  43. };
  44. </script>
  45. <style lang="scss" scoped>
  46. // 页面容器
  47. page {
  48. background-color: #f5f5f5;
  49. }
  50. </style>