<template>
    <myTable :baseData="baseData"></myTable>
</template>

<script setup>

import { ref, reactive, defineProps } from "vue"
import myTable from "./myTable.vue"
import { apiProcurementContractLists } from '@/api/procurement_contract'

const props = defineProps({
    project_id: Number
})


const baseData = reactive({
    fetchFun: apiProcurementContractLists,
    tit: "采购合同",
    queryParams: { project_id: props.project_id },

    columnList: [
        { label: '合同编号', prop: 'contract_no' },
        { label: '供应商名称', prop: 'contract_name' },
        { label: '合同类型', prop: 'contract_type' },
        { label: '签订日期', prop: 'signing_date' },
        { label: '合同金额', prop: 'contract_amount' },
        { label: '已付款金额', prop: 'has_pay_amount' },
        { label: '未付款金额', prop: 'not_pay_amount' },
        { label: '已开票金额', prop: 'invoice_amount' },
        { label: '未开票金额', prop: 'not_invoice_amount' },
        { label: '已入库数量', prop: 'has_storage_num' },
        { label: '未入库数量', prop: 'not_storage_num' },
        { label: '数量', prop: 'num' },
    ]
})


</script>
<style ></style>