customer-judge.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view>
  3. <view class="box">
  4. <view class="top">
  5. <text class="title">企业审核</text>
  6. </view>
  7. <view class="item">
  8. <view class="l">企业名称:</view>
  9. <view class="r">
  10. {{ form.name }}
  11. </view>
  12. </view>
  13. <view class="item">
  14. <view class="l">审核意见:</view>
  15. <view class="r">
  16. <u-input v-model="form.judgeContent" placeholder="输入审核意见"/>
  17. </view>
  18. </view>
  19. <view class="item">
  20. <view class="l">审核结果:</view>
  21. <view class="r">
  22. <radio-group @change="statusChange">
  23. <label class="radio">
  24. <radio value="2" checked/>
  25. 通过
  26. </label>
  27. <label class="radio" style="margin-left: 20rpx;">
  28. <radio value="3"/>
  29. 不通过
  30. </label>
  31. </radio-group>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="common-btn" @click="confirm">确认</view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {
  42. form: {
  43. id: '',
  44. name: '',
  45. judgeContent: '',
  46. judgeStatus: '2'
  47. },
  48. }
  49. },
  50. onLoad(options) {
  51. this.form = options;
  52. this.form.judgeStatus = 2;
  53. },
  54. methods: {
  55. statusChange(val) {
  56. this.form.judgeStatus = val.detail.value;
  57. },
  58. confirm() {
  59. if (!this.form.judgeContent && this.form.judgeStatus == '3') {
  60. this.$common.toast('请输入审核意见')
  61. }
  62. this.$api.judgeCustomer(this.form).then(resp => {
  63. this.$common.back();
  64. })
  65. },
  66. }
  67. }
  68. </script>
  69. <style lang="scss">
  70. page {
  71. background-color: #fff;
  72. }
  73. @import '@/common/common.scss'
  74. </style>