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

77 lines
1.6 KiB

10 months ago
10 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 months ago
9 months ago
10 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="returnValue">
  7. <uv-textarea v-model="form.returnValue" :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. returnValue: ''
  26. },
  27. rules: {
  28. 'returnValue': {
  29. type: 'string',
  30. required: true,
  31. message: '请填写驳回原因',
  32. trigger: ['blur', 'change']
  33. }
  34. },
  35. }
  36. },
  37. onLoad: function(options) {
  38. this.form.id = options.orderId || ''
  39. },
  40. methods: {
  41. //驳回
  42. submit() {
  43. this.$refs.form.validate().then(res => {
  44. this.$api('editSchoolOrderError', this.form, res => {
  45. if (res.code == 200) {
  46. uni.redirectTo({
  47. url: '/pages/order/order'
  48. })
  49. }
  50. })
  51. }).catch(errors => {
  52. uni.showToast({
  53. icon: 'none',
  54. title: '请填写驳回原因'
  55. })
  56. })
  57. },
  58. //返回
  59. leftClick() {
  60. uni.switchTab({
  61. url: '/pages/repairList/repairList'
  62. })
  63. }
  64. }
  65. }
  66. </script>
  67. <style scoped>
  68. .reject {
  69. width: 96%;
  70. margin: 0rpx auto;
  71. }
  72. </style>