config.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <template>
  2. <el-drawer
  3. title="设置支付方式"
  4. size="600px"
  5. :append-to-body="false"
  6. :destroy-on-close="true"
  7. :visible="true"
  8. :modal-append-to-body="false"
  9. :before-close="handleClose"
  10. :wrapperClosable="false"
  11. ref="drawer_close">
  12. <el-form label-width="100px" style="padding: 20px" v-loading="loading" class="qs-form-add">
  13. <el-form-item label="支付方式">
  14. <el-radio-group v-model="ruleForm.type">
  15. <el-radio label="alipay">支付宝</el-radio>
  16. <el-radio label="bank">银行卡</el-radio>
  17. </el-radio-group>
  18. </el-form-item>
  19. <el-form-item label="市场审核人">
  20. <el-input v-model="ruleForm.sc_uid"></el-input>
  21. </el-form-item>
  22. <el-form-item label="财务审核人">
  23. <el-input v-model="ruleForm.cw_uid"></el-input>
  24. </el-form-item>
  25. <el-form-item label="老板审核">
  26. <el-input v-model="ruleForm.boss_uid"></el-input>
  27. </el-form-item>
  28. <el-form-item>
  29. <el-button size="small" type="primary" @click="add()">确定</el-button>
  30. </el-form-item>
  31. </el-form>
  32. </el-drawer>
  33. </template>
  34. <script>
  35. export default {
  36. props: {
  37. action: {
  38. },
  39. pro: {
  40. },
  41. back:{
  42. type:Object
  43. },
  44. },
  45. data() {
  46. return {
  47. search: {
  48. pagesize: 15,
  49. page:0,
  50. total:0,
  51. },
  52. user_invoice_fileList:[],
  53. loading:false,
  54. ruleForm: {
  55. type:"alipay",
  56. is_income:2,
  57. }
  58. };
  59. },
  60. computed: {},
  61. watch: {},
  62. created() {},
  63. async mounted() {
  64. this.getInfo();
  65. },
  66. methods: {
  67. handleClose:function()
  68. {
  69. this.back.drawer_obj.config=false;
  70. this.back.drawer_obj.id="";
  71. },
  72. async getInfo() {
  73. this.loading = true;
  74. let res = await this.$post("/uapi/pub/info/admin/config/get_lingxinbao_tx_config",{});
  75. this.loading = false;
  76. if (res.status == 1) {
  77. this.ruleForm=res.data;
  78. }
  79. },
  80. async add() {
  81. this.loading = true;
  82. let data=this.ruleForm;
  83. let res = await this.$post("/uapi/pub/info/admin/config/set_lingxinbao_tx_config",data);
  84. this.loading = false;
  85. if (res.status == 1) {
  86. this.$message.success(`设置成功`);
  87. this.back.drawer_obj.config=false;
  88. this.back.drawer_obj.id="";
  89. this.back.get_config();
  90. }
  91. }
  92. }
  93. };
  94. </script>
  95. <style scoped>
  96. .el-tag {
  97. cursor: pointer;
  98. }
  99. </style>