<!--导入结果-->
<template>
  <div>
    <dialog-edit :api="api" :visible.sync="dialogVisible" :editModel="editModel" :form="form" :width="width"
                 :title="$t('ladingManageList.importResult')" :footerBtnShow="footerVisible" :appendToBody="appendToBody">
      <el-card class="box-card" v-if="form.resultList">
        <div slot="header" class="clearfix">
          <span>{{$t('guideSheetManage.importException')}}</span>
        </div>
        <div v-for="(item, index)  in form.resultList" :key="index" class="text item clearfix">
          {{$t('guideSheetManage.exceptionMsg') + item.msg }}
        </div>
      </el-card>
      <el-card class="box-card" v-if="form.notListEnterprise">
        <div slot="header" class="clearfix">
          <span>{{$t('guideSheetManage.qingdanweizengjia')}}{{form.notListEnterprise.length}}{{$t('guideSheetManage.home')}}</span>
        </div>
        <div v-for="(item, index) in form.notListEnterprise" :key="index" class="text item clearfix">
          <div v-if="form.notListEnterprise.length > 0">
            {{(index + 1) + '.' + item.notListEnterpriseName }}
          </div>
        </div>
      </el-card>
      <el-card class="box-card" v-if="form.newNameUnaccredited">
        <div slot="header" class="clearfix">
          <span>{{$t('guideSheetManage.cengyongmin')}}{{form.newNameUnaccredited.length}}{{$t('guideSheetManage.home')}}</span>
        </div>
        <div v-for="(item, index) in form.newNameUnaccredited" :key="index" class="text item clearfix">
          <div v-if="form.newNameUnaccredited.length > 0">
            <p>{{$t('guideSheetManage.newName')}}{{item.newName}}</p>
            <p>{{$t('guideSheetManage.oldName')}}{{item.oldName}}</p>
          </div>
        </div>
      </el-card>
      <el-card class="box-card" v-if="form.unDataDtos">
        <div slot="header" class="clearfix">
          <span>{{$t('guideSheetManage.noRkData')}} </span>
        </div>
        <div v-for="(item, index) in form.unDataDtos" :key="index" class="text item clearfix">
          <p v-if="item.repeatMsg.length > 0">{{item.factoringApplyTime}}{{item.factoringName}}{{item.unauthorizedCompanyNum + $t('guideSheetManage.homeProjectCom') + '(' + item.repeatMsg[0] + ')'}}</p>
          <p v-else>{{item.factoringApplyTime}}{{item.factoringName}}{{item.unauthorizedCompanyNum + $t('guideSheetManage.homeProjectCom')}}</p>
          <p>{{$t('guideSheetManage.seJiBook')}}{{item.involvePayConfirm + $t('guideSheetManage.pen')}}</p>
          <p>{{$t('guideSheetManage.hejiRmbEn')}}{{item.accountsReceivable}}</p>
        </div>
      </el-card>
      <el-card class="box-card" v-if="form.accountsReceivableCount">
        <div class="text item">
          {{$t('guideSheetManage.hejiRmbCn') + form.accountsReceivableCount }}
        </div>
      </el-card>
    </dialog-edit>
  </div>
</template>

<script>
import { DialogEdit, btnDownload, authButton } from 'newepoch-components'
import BaseEdit from '@/pages/baseEditPage.js'
export default {
  extends: new BaseEdit(),
  name: 'importResultEdit',
  components: {
    DialogEdit,
    btnDownload,
    authButton
  },
  data () {
    return {
      width: '600px',
      classType: true,
      appendToBody: true,
      footerVisible: true
    }
  },
  computed: {
    api () {
      return {}
    }
  },
  methods: {
  }
}
</script>

<style scoped lang="scss" src="@/styles/shouji/ladingManage/importResultEdit.scss">
</style>
