review.vue 2.8 KB

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