reject-pop.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <template>
  2. <u-popup
  3. :show="show"
  4. mode="center"
  5. @close="close"
  6. @open="open"
  7. :round="10"
  8. :closeOnClickOverlay="false"
  9. :safeAreaInsetBottom="false"
  10. width="580rpx"
  11. >
  12. <view class="location-edit-popup">
  13. <view class="popup-header">
  14. <text class="popup-title">驳回复核任务</text>
  15. <u-icon name="close" size="20" @click="close"></u-icon>
  16. </view>
  17. <u-form
  18. :model="formData"
  19. labelPosition="top"
  20. labelWidth="100%"
  21. :borderBottom="false"
  22. >
  23. <u-form-item label="请输入驳回原因" prop="reason" :borderBottom="false">
  24. <u--textarea
  25. v-model="formData.reason"
  26. placeholder="请输入"
  27. :maxlength="100"
  28. count
  29. ></u--textarea>
  30. </u-form-item>
  31. </u-form>
  32. <view class="btn-group">
  33. <u-button
  34. class="btn cancel-btn"
  35. :plain="true"
  36. shape="square"
  37. @click="onCancel"
  38. >取消</u-button
  39. >
  40. <u-button
  41. class="btn confirm-btn"
  42. type="primary"
  43. shape="square"
  44. @click="onConfirm"
  45. >确认</u-button
  46. >
  47. </view>
  48. </view>
  49. </u-popup>
  50. </template>
  51. <script>
  52. export default {
  53. name: "RejectPopup",
  54. props: {
  55. show: {
  56. type: Boolean,
  57. default: false,
  58. },
  59. },
  60. data() {
  61. return {
  62. formData: {
  63. reason: "",
  64. },
  65. rules: {
  66. reason: {
  67. type: "string",
  68. required: true,
  69. message: "请输入驳回原因",
  70. trigger: ["blur", "change"],
  71. },
  72. },
  73. };
  74. },
  75. watch: {},
  76. methods: {
  77. close() {
  78. this.$emit("update:show", false);
  79. },
  80. onCancel() {
  81. this.close();
  82. this.$emit("cancel");
  83. },
  84. onConfirm() {},
  85. },
  86. };
  87. </script>
  88. <style lang="scss" scoped>
  89. .location-edit-popup {
  90. padding: 30rpx;
  91. width: 580rpx;
  92. .popup-header {
  93. display: flex;
  94. justify-content: space-between;
  95. align-items: center;
  96. margin-bottom: 30rpx;
  97. .popup-title {
  98. font-size: 36rpx;
  99. font-weight: 500;
  100. color: #333333;
  101. }
  102. }
  103. .mt-20 {
  104. margin-top: 20rpx;
  105. }
  106. .btn-group {
  107. display: flex;
  108. justify-content: space-between;
  109. margin-top: 40rpx;
  110. .btn {
  111. flex: 1;
  112. height: 88rpx;
  113. display: flex;
  114. align-items: center;
  115. justify-content: center;
  116. font-size: 32rpx;
  117. &.cancel-btn {
  118. margin-right: 20rpx;
  119. color: #666666;
  120. border-color: #dddddd;
  121. }
  122. &.confirm-btn {
  123. background-color: #2979ff;
  124. }
  125. }
  126. }
  127. }
  128. </style>