<template>
  <j-modal
    :title="title"
    :width="width"
    :visible="visible"
    switchFullscreen
    :okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
    cancelText="关闭"
    @cancel="handleCancel">
    <!-- 合同 -->
    <!-- <contract-detail-list v-if="columnValue === 'contractfpe'" :taskno="taskno"></contract-detail-list> -->
    <cost-model-xmxq-cl-list v-if="dialogType === 'clf'" :id="id" :type="columnType"></cost-model-xmxq-cl-list>
    <cost-model-xmxq-wx-list ref="wxf" v-if="dialogType === 'wxf'" :id="id" :type="columnType"></cost-model-xmxq-wx-list>

    <template slot="footer">
      <a-button @click="handleCancel">关闭</a-button>
    </template>
  </j-modal>
</template>

<script>
import CostModelXmxqClList from './CostModelXmxqClList.vue';
import CostModelXmxqWxList from './CostModelXmxqWxList.vue';

  export default {
    name: 'ProjectCostModal',
    components: {
      CostModelXmxqClList,
      CostModelXmxqWxList
    },
    data () {
      return {
        dialogType: null,
        id: null,
        columnType: '',
        title: '',
        title:'',
        width: '60%',
        visible: false,
        disableSubmit: false
      }
    },
    methods: {
      show() {
        this.visible = true
        // this.$refs.wxf.getList(this.id, this.columnType)
      },
      close () {
        this.$emit('close');
        this.visible = false;
      },
      handleCancel () {
        this.close()
      },
    }
  }
</script>