<!--进度跟踪-基础资产反馈进度-->
<template>
  <div class="sampleTrackScheduleSub">
    <el-card body-style="height:200px" shadow="never" class="card-header">
        <div slot="header" class="card-btn">
            <span class="iconfont iconcompanylist header-icon-color header-icon-font"/>
            <span class="header-title">{{$t('coordManageMain.sampleTrackSchedule')}}</span>
            <auth-button size="medium" type="primary" :label="$t('coordManageMain.trackSchedule')" class="header-btn1 iconfont icongenzongbiao" v-if="trackParam.coordType==='1'||userType==='2'" @click="showTracking()"></auth-button>
        </div>
        <div>
          <ul class="body-ul">
            <li>
                <span>{{$t('coordManageMain.yjcybs')+numFormat(form.planSampleCount)+$t('coordManageMain.count')}},{{$t('coordManageMain.swfk')+numFormat(form.noFeedbackCount)+$t('coordManageMain.count')}}</span>
            </li>
            <li class="body-li-margin">
                <span>{{$t('coordManageMain.yfk')+numFormat(form.feedbackCount)+$t('coordManageMain.count')+numFormat(form.feedbackQuestionCount)+$t('coordManageMain.question')}}</span>
            </li>
            <li class="body-li-margin">
                <span>{{$t('coordManageMain.ytg')+numFormat(form.passCount)+$t('coordManageMain.count')}},
                  {{$t('coordManageMain.rejected')+numFormat(form.returnAssetTotal)+$t('coordManageMain.count')}},
                  {{$t('coordManageMain.auditing')+numFormat(form.reviewCount)+$t('coordManageMain.count')}},
                  {{$t('coordManageMain.solving')+numFormat(form.dealCount)+$t('coordManageMain.count')+numFormat(form.dealQuestionCount)+$t('coordManageMain.question')}}</span>
            </li>
            <div class="divide-div"></div>
            <li class="body-li-margin" style="margin-top:10px">
                <span>{{$t('coordManageMain.ynzczg')+numFormat(form.difficultTotal)+$t('coordManageMain.count')+numFormat(form.difficultQuestionTotal)+$t('coordManageMain.question')}}</span>
            </li>
            <li class="body-li-margin">
                <span>{{$t('coordManageMain.shz')+numFormat(form.difficultReviewCount)+$t('coordManageMain.count')}}</span>
            </li>
            <li class="body-li-margin">
                <span>{{$t('coordManageMain.jjz')+numFormat(form.difficultDealCount)+$t('coordManageMain.count')+numFormat(form.difficultDealQuestionCount)+$t('coordManageMain.question')}}</span>
            </li>
          </ul>
        </div>
    </el-card>
    <tracking-table-summary v-if="visible" :visible.sync="visible" :form="params" :userType="userType" :fileAll="fileAll"></tracking-table-summary>
  </div>
</template>
<script>
import { authButton } from 'newepoch-components'
import trackingTableSummary from '@/pages/assetoutfeedback/coordManage/trackingTableSummary'
export default {
  name: 'sampleTrackScheduleSub',
  components: {
    authButton,
    trackingTableSummary
  },
  props: {
    form: {
      type: [Object],
      default: function () {
        return {}
      }
    },
    trackParam: {
      type: [Object],
      default: function () {
        return {}
      }
    },
    userType: {
      type: String,
      default () {
        return '1'
      }
    },
    fileAll: {
      type: Array,
      default () {
        return []
      }
    }
  },
  data () {
    return {
      visible: false,
      params: {}
    }
  },
  methods: {
    showTracking () {
      Object.assign(this.params, this.trackParam)
      this.visible = true
    },
    numFormat (data) {
      if (!data) {
        return '0'
      } else {
        return data
      }
    }
  },
  filters: {
    numFormat (data) {
      if (!data) {
        return '0'
      } else {
        return data
      }
    }
  }

}
</script>
<style lang="scss" scoped>
@import '~@/styles/assetoutfeedback/common.scss'
</style>
