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

76 lines
1.5 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
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. }).catch(errors => {
  45. uni.showToast({
  46. icon: 'none',
  47. title: '请填写驳回原因'
  48. })
  49. })
  50. this.$api('editSchoolOrderError', this.form, res => {
  51. if (res.code == 200) {
  52. console.log(res);
  53. }
  54. })
  55. },
  56. //返回
  57. leftClick() {
  58. uni.switchTab({
  59. url: '/pages/repairList/repairList'
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style scoped>
  66. .reject {
  67. width: 96%;
  68. margin: 0rpx auto;
  69. }
  70. </style>