| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <template>
- <el-drawer
- title="设置支付方式"
- size="600px"
- :append-to-body="false"
- :destroy-on-close="true"
- :visible="true"
- :modal-append-to-body="false"
- :before-close="handleClose"
- :wrapperClosable="false"
- ref="drawer_close">
- <el-form label-width="100px" style="padding: 20px" v-loading="loading" class="qs-form-add">
- <el-form-item label="支付方式">
- <el-radio-group v-model="ruleForm.type">
- <el-radio label="alipay">支付宝</el-radio>
- <el-radio label="bank">银行卡</el-radio>
- </el-radio-group>
- </el-form-item>
- <el-form-item label="市场审核人">
- <el-input v-model="ruleForm.sc_uid"></el-input>
- </el-form-item>
- <el-form-item label="财务审核人">
- <el-input v-model="ruleForm.cw_uid"></el-input>
- </el-form-item>
- <el-form-item label="老板审核">
- <el-input v-model="ruleForm.boss_uid"></el-input>
- </el-form-item>
- <el-form-item>
- <el-button size="small" type="primary" @click="add()">确定</el-button>
- </el-form-item>
- </el-form>
- </el-drawer>
- </template>
- <script>
- export default {
- props: {
- action: {
- },
- pro: {
- },
- back:{
- type:Object
- },
- },
- data() {
- return {
- search: {
- pagesize: 15,
- page:0,
- total:0,
- },
- user_invoice_fileList:[],
- loading:false,
- ruleForm: {
- type:"alipay",
- is_income:2,
- }
- };
- },
- computed: {},
- watch: {},
- created() {},
- async mounted() {
- this.getInfo();
- },
- methods: {
- handleClose:function()
- {
- this.back.drawer_obj.config=false;
- this.back.drawer_obj.id="";
- },
- async getInfo() {
- this.loading = true;
- let res = await this.$post("/uapi/pub/info/admin/config/get_lingxinbao_tx_config",{});
- this.loading = false;
- if (res.status == 1) {
- this.ruleForm=res.data;
- }
- },
- async add() {
- this.loading = true;
- let data=this.ruleForm;
- let res = await this.$post("/uapi/pub/info/admin/config/set_lingxinbao_tx_config",data);
- this.loading = false;
- if (res.status == 1) {
- this.$message.success(`设置成功`);
- this.back.drawer_obj.config=false;
- this.back.drawer_obj.id="";
- this.back.get_config();
- }
- }
- }
- };
- </script>
- <style scoped>
- .el-tag {
- cursor: pointer;
- }
- </style>
|