<!-- 反馈履历 -->
<template>
  <div>
    <dialog-edit :visible.sync="dialogVisible" :editModel="editModel" :form="form" :title="$t('effectDealFeedBackMain.feedbackHis')" :saveFlag="saveFlag">
      <dym-form :componentList="componentList" :formValue="form"></dym-form>
      <div v-for="item in form.data" :key="item.feedbackTimes">
        <externalTransition :isCollapse="true" :title="$t('enterpriseInfoManage.supplierInfoManage.rank') + item.feedbackTimes + $t('effectDealFeedBackMain.cFeedback')" :isfileDown="isfileDown" :fileID="item.fileOssids" :downloadButtonMsg="$t('effectDealFeedBackMain.fileDown')" :bottom="true">
          <template slot="transition">
            <feedBackTimeSub :form="item"></feedBackTimeSub>
          </template>
        </externalTransition>
      </div>
    </dialog-edit>
  </div>
</template>

<script>
import externalTransition from '@/components/element/assetoutfeedback/externalTransition'
import suppleDocHisForm from '@/components/element/assetoutfeedback/suppleDocHisForm'
import feedBackTimeSub from '@/pages/assetoutfeedback/effectDealFeedBack/feedBackTimeSub'
import { DialogEdit, dymForm } from 'newepoch-components'
import BasePage from '@/pages/baseEditPage'
export default {
  extends: new BasePage(),
  components: { DialogEdit, dymForm, externalTransition, suppleDocHisForm, feedBackTimeSub },
  props: {
    form: {
      type: Object,
      default () {
        return {}
      }
    },
    editModel: {
      type: String,
      default () {
        return ''
      }
    }
  },
  data () {
    return {
      saveFlag: false,
      isfileDown: true,
      componentList: [
        {
          // 付款确认书编号
          value: 'assetCode',
          componentName: suppleDocHisForm,
          label: this.$i18n.messages[this.$i18n.locale].effectDealFeedBackMain.assetCode + '：',
          labelWidth: '125px',
          name: 'assetCode',
          attrs: { form: this.form },
          cols: [10, 10, 10, 10],
          prop: 'assetCode'
        }
      ]
    }
  },
  methods: {
  }
}
</script>
