<template>
  <div class="center-class">
    <dialog-edit :visible.sync="dialogVisible" :title="$t('common.tip')" width="450px" :top="top"
                 :form="form" :footerBtnShow="false" :api="dialogApi" :editModel="editModel">
      <div class="content-class">
        <div v-if="!UtilJs.isEmpty(form.failCount) && form.failCount > 0">
          <span>接口调用失败：{{form.failCount}}笔</span>
          <el-row v-for="(item, index) in form.failDetailList" :key="index">
            <div>
              <span>{{item.assetCode}}</span>
              <span :title="item.message">...</span>
            </div>
          </el-row>
        </div>
        <div class="content-top" v-if="!UtilJs.isEmpty(form.autoAuditHasClaimCount) && form.autoAuditHasClaimCount > 0">
          <span v-if="form.backFlag">线上审核已领取无法撤回：{{form.autoAuditHasClaimCount}}笔</span>
          <span v-else>线上审核已领取无法推送：{{form.autoAuditHasClaimCount}}笔</span>
          <el-row v-for="(item, index) in form.autoAuditHasClaimDetailList" :key="index">
            <div>
              <span>{{item.assetCode}}</span>
            </div>
          </el-row>
        </div>
      </div>
      <template v-slot:footer>
        <auth-button type="primary" :label="$t('common.confirm')" size="medium" @click="dialogVisible = false"></auth-button>
      </template>
    </dialog-edit>
  </div>
</template>

<script>
import BaseEdit from '@/pages/baseEditPage.js'
import { DialogEdit, authButton } from 'newepoch-components'
export default {
  extends: new BaseEdit(),
  name: 'resultEdit',
  components: {
    DialogEdit,
    authButton
  },
  data () {
    return {
      top: '50vh'
    }
  },
  computed: {
    dialogApi () {
      return {}
    }
  }
}
</script>

<style scoped lang="scss" src="@/styles/renwufenpei/orderAllocation.scss">
</style>
