艺易修小程序24.08.21
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.

69 lines
1.3 KiB

9 months ago
  1. <!-- 驳回 -->
  2. <template>
  3. <view class="reject">
  4. <navbar title="驳回" :leftClick="leftClick"></navbar>
  5. <uv-form labelPosition="left" :model="form" :rules="rules" errorType="toast" ref="form" labelWidth="0">
  6. <uv-form-item label="" prop="reason">
  7. <uv-textarea v-model="form.reason" :maxlength="200" :height="120" count
  8. placeholder="请输入驳回原因"></uv-textarea>
  9. </uv-form-item>
  10. <uv-button type="primary" text="驳回" shape="circle" customStyle="margin-top: 10px"
  11. @click="submit"></uv-button>
  12. </uv-form>
  13. </view>
  14. </template>
  15. <script>
  16. import navbar from '../../components/base/navbar.vue'
  17. export default {
  18. name: 'Reject',
  19. components: {
  20. navbar
  21. },
  22. data() {
  23. return {
  24. form: {
  25. reason: ''
  26. },
  27. rules: {
  28. 'reason': {
  29. type: 'string',
  30. required: true,
  31. message: '请填写姓名',
  32. trigger: ['blur', 'change']
  33. }
  34. },
  35. }
  36. },
  37. methods: {
  38. //驳回
  39. submit() {
  40. this.$refs.form.validate().then(res => {
  41. }).catch(errors => {
  42. uni.showToast({
  43. icon: 'none',
  44. title: '请填写驳回原因'
  45. })
  46. })
  47. },
  48. //返回
  49. leftClick() {
  50. uni.switchTab({
  51. url: '/pages/repairList/repairList'
  52. })
  53. }
  54. }
  55. }
  56. </script>
  57. <style scoped>
  58. .reject {
  59. width: 96%;
  60. margin: 0rpx auto;
  61. }
  62. </style>