customer-judge.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. </label>
  26. <label class="radio" style="margin-left: 20rpx;">
  27. <radio value="3" />不通过
  28. </label>
  29. </radio-group>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="common-btn" @click="confirm">确认</view>
  34. </view>
  35. </template>
  36. <script>
  37. import request from '../../utils/request.js'
  38. export default {
  39. data() {
  40. return {
  41. form: {
  42. id:'',
  43. name:'',
  44. judgeContent: '',
  45. judgeStatus: '2'
  46. },
  47. }
  48. },
  49. onLoad(options) {
  50. this.form=options;
  51. this.form.judgeStatus=2;
  52. },
  53. methods: {
  54. statusChange(val){
  55. this.form.judgeStatus=val.detail.value;
  56. },
  57. confirm(){
  58. if(!this.form.judgeContent&&this.form.judgeStatus=='3'){
  59. this.$common.toast('请输入审核意见')
  60. }
  61. this.$api.judgeCustomer(this.form).then(resp=>{
  62. this.$common.back();
  63. })
  64. },
  65. }
  66. }
  67. </script>
  68. <style lang="scss">
  69. page {
  70. background-color: #fff;
  71. }
  72. @import '@/common/common.scss'
  73. </style>