dialog-end-work.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <dialog-base ref="baseDialog" title="结束报工">
  3. <view class="list-container">
  4. <view class="list-title"><text class="label">合格量</text></view>
  5. <view class="table-item">
  6. <input class="input" placeholder="请输入合格量" />
  7. </view>
  8. <view class="list-title">
  9. <text class="label">废品量</text>
  10. </view>
  11. <view class="table-item"><input class="input" placeholder="请输入废品量" /></view>
  12. <view class="list-title">
  13. <text class="label">废品原因</text>
  14. </view>
  15. <view class="table-item"><input class="input" placeholder="请输入废品原因" /></view>
  16. </view>
  17. <view class="add-btn-container uni-row">
  18. <button type="default" class="btn">结束报工</button>
  19. </view>
  20. </dialog-base>
  21. </template>
  22. <script setup>
  23. import {
  24. ref,
  25. getCurrentInstance
  26. } from 'vue'
  27. const baseDialog = ref(null)
  28. const open = (data) => {
  29. // console.log(dialog.value)
  30. baseDialog.value.open()
  31. }
  32. defineExpose({
  33. open
  34. })
  35. </script>
  36. <style lang="scss">
  37. .dialog-body {
  38. .list-container {
  39. width: 100%;
  40. display: flex;
  41. align-items: flex-start;
  42. padding: 0 4rpx;
  43. .list-title {
  44. margin-top: 24rpx;
  45. .label {
  46. font-size: 32rpx;
  47. }
  48. }
  49. .table-item {
  50. margin-top: 24rpx;
  51. .input {
  52. height: 60rpx;
  53. border: 1px solid #808080;
  54. }
  55. }
  56. }
  57. .add-btn-container {
  58. margin-top: 32rpx;
  59. .btn {
  60. flex: 1;
  61. background-color: rgb(255, 121, 1);
  62. color: #FFFFFF;
  63. }
  64. }
  65. }
  66. </style>