Fale01Dialog.vue 1.45 KB
Newer Older
fukai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
<template>
	<el-dialog v-dialogDrag title="E01报送" :visible.sync="visiable" center destroy-on-close width="70%" v-if="visiable" @close="handleClose">
		<c-col :span="24">
      <el-table
				:data="fale01List"
				:columns="columns"
				:showButtonFlg="true"
			>
				<el-table-column
					v-for="(item, key) in columns"
					:key="key"
					:label="item.label"
          :width="item.width"
				>
          <template slot-scope="scope">
            <span>{{ ['e0103'].includes(item.prop) ? moneyFormat(scope.row[item.prop], scope.row.e0101cur) : scope.row[item.prop] }}</span>
          </template>
        </el-table-column>
      </el-table>
    </c-col>
	</el-dialog>
</template>
<script>
export default {
	name: 'fale01Dialog',
	props: ['model', 'codes', 'fale01List'],
	data () {
		return {
      visiable: false,
      columns: [
        {
          label: '申报主体代码',
          prop: 'objcode'
        },
        {
          label: '交易代码',
          prop: 'e0101',
        },
        {
          label:'交易对方国家/地区',
          prop:'e0102'
        },
        {
          label: '科目号',
          prop: 'trmcod',
        },
        {
          label: '部门标签',
          prop: 'deptyp',
        },
        {
          label: '币种',
          prop: 'e0101cur',
        },
        {
          label:'金额',
          prop:'e0103'
        },
      ]
		}
	},
	methods: {
		handleClose () {
			this.visiable = false
		}
	}
}
</script>