review.vue 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <div>
  3. <div class="defbb p-spac required">审核结果</div>
  4. <div class="defbb p-spac">
  5. <el-radio v-model="formData.audit" :label="2" class="green-color">审核通过</el-radio>
  6. <el-radio v-model="formData.audit" :label="3" class="p-dcolor">审核驳回</el-radio>
  7. </div>
  8. <div class="flex p-spac" v-if="formData.audit === 3">
  9. <span class="required nowrap">驳回理由:</span>
  10. <el-input type="textarea" :rows="6" placeholder="请输入驳回理由" v-model="formData.reason" class="ml-spac">
  11. </el-input>
  12. </div>
  13. <template v-else>
  14. <div class="defbb p-spac">初始化设置</div>
  15. <div class="ml-spac">
  16. <div class="pt-spac pl-spac">
  17. 物流充值交易模式:
  18. <el-radio v-model="formData.tradeType" :label="1" class="ml-spac">大象直销</el-radio>
  19. <el-radio v-model="formData.tradeType" :label="2">大象经销</el-radio>
  20. </div>
  21. <div class="pt-spac pl-spacm3">
  22. 物流充值工具 :<el-checkbox :value="true" disabled class="ml-spac">联通支付</el-checkbox>
  23. </div>
  24. <div class="defbb defbt mt-spac p-spac">
  25. 其他付款启用状态:<el-radio v-model="formData.otherPay" :label="1" class="ml-spac">启用</el-radio>
  26. <el-radio v-model="formData.otherPay" :label="0">停用</el-radio>
  27. </div>
  28. </div>
  29. </template>
  30. <div class="p-spac">
  31. <el-button type="primary" @click="submit" :disabled="!canSubmit" :loading="$reqState($interfaces.user.road_transport_audit).ing">确定</el-button>
  32. <el-button @click="cancel">取消</el-button>
  33. </div>
  34. </div>
  35. </template>
  36. <script>
  37. export default {
  38. name: 'order',
  39. data() {
  40. return {
  41. formData: {
  42. /** 审核结果:2 审核通过,3 审核驳回 */
  43. audit: -1,
  44. /** 其他付款启用状态(挂靠车):0 关闭,1 开启 */
  45. otherPay: 0,
  46. /** 审核驳回理由 */
  47. reason: '',
  48. /** 交易模式:1 经销,2 直销 */
  49. tradeType: 1
  50. }
  51. }
  52. },
  53. props: {
  54. orgId: {
  55. type: String,
  56. default: ''
  57. }
  58. },
  59. computed: {
  60. canSubmit() {
  61. return this.formData.audit === 2 || (this.formData.audit === 3 && this.formData.reason)
  62. }
  63. },
  64. methods: {
  65. submit() {
  66. this.$http(this.$interfaces.user.road_transport_audit, { orgId: this.$props.orgId, ...this.formData }).then(res => {
  67. this.$emit('feedback', this.formData.audit)
  68. })
  69. },
  70. cancel() {
  71. this.$emit('feedback', 0)
  72. }
  73. }
  74. }
  75. </script>
  76. <style lang="scss" scoped>
  77. .green-color,
  78. .p-dcolor {
  79. ::v-deep .el-radio__input.is-checked+.el-radio__label {
  80. color: inherit;
  81. }
  82. }
  83. </style>