tipsDialog.vue 1.85 KB
<!-- 财务分账测试 -->
<template>
  <!--   btn-ok-label="全部下载" -->
  <d2-dialog title="提示"
             :is-visible="verificationCodeVisible"
             class="verificationCode"
             width="750px"
             btn-ok-label="申请虚拟对公账户"
             @closeDialog="handleClose"
             @confirmDialog="handleConfirm">
    <!-- <div>55</div> -->
    <p>分账对象未开通虚拟对公账户,请继续前往申请开通:</p>
    <div class="container">
      <p v-for="(item,index) in accountValidMerchants"
         :key="index">
        <span class="label">名称: {{ item.merchantName }} </span>
      </p>
    </div>

  </d2-dialog>
</template>

<script>
// import { sendSms, getAdminInfo } from '@api/merchant'
import { mapActions } from 'vuex'
export default {
  name: 'TipsDialog',
  props: {
    visible: {
      // 弹窗是否展示
      type: Boolean,
      default: false
    },
    accountValidMerchants: {
      type: Array,
      default: () => []
    }
  },
  computed: {
    verificationCodeVisible: {
      // return this.
      get() {
        return this.visible
      },
      set(val) {
        this.$emit('update:visible', false)
      }
    }
  },
  data() {
    return {

    }
  },
  mounted() {

  },
  methods: {
    ...mapActions({
      close: 'd2admin/page/close'
    }),
    handleClose() {
      // this.$emit('dialogClose')
      // this.$update
      this.verificationCodeVisible = false
    },
    // handleApply() {

    //   },
    // 跳转虚拟对公账号
    handleConfirm() {
      this.$router.push({ name: 'accountList_new' })
      this.close({ tagName: '/merchantDetail' })
    }
  }
}
</script>

<style scoped lang="scss">
.container {
  padding: 16px 44px;
  color: #333333;
  background: #f6f8fa;
}
</style>