<template>
    <div class="relatedTasks pl-4 pr-4 pt-3 pb-3 h-full flex flex-col">
        <div class="flex justify-between">
            <div class="title">相关销售订单</div>
            <div>
                <el-button type="primary">新建销售订单</el-button>
            </div>
        </div>
        <div class="flex-1 overflow-auto pt-3">
            <el-table :data="relatedTaskstable" border style="width: 100%;height: 300px;">
                <el-table-column prop="priority" label="订单编号" width="130" />
                <el-table-column prop="taskName" label="订单名称">
                    <template #default="scope">
                        <el-button link type="primary" size="large">{{
                            scope.row.taskName
                        }}</el-button>
                    </template>
                </el-table-column>
                <el-table-column prop="priority" label="客户名称" width="130" />
                <el-table-column prop="status" label="订单金额" width="130" />
                <el-table-column prop="executor" label="已回款" width="130" />
                <el-table-column prop="startTime" label="未回款" width="130" />
                <el-table-column prop="endTime" label="订单类型" width="130" />
                <el-table-column prop="endTime" label="下单时间" width="130" />
                <el-table-column prop="endTime" label="负责人" width="130" />
                <el-table-column prop="endTime" label="创建人" width="130" />
                <el-table-column prop="endTime" label="创建时间" width="130" />
            </el-table>
        </div>
    </div>
</template>
<script lang="ts" setup>
import { ref, reactive, onMounted, onUnmounted, defineExpose, inject } from 'vue'

const relatedTaskstable = ref([{
    taskName: '任务名称20240316-tempalsbls',
    priority: '中',
    status: '进行中',
    executor: '张三',
    startTime: '2024-04-01',
    endTime: '2024-04-01',
}, {
    taskName: '任务名称20240316-tempalsbls',
    priority: '中',
    status: '进行中',
    executor: '张三',
    startTime: '2024-04-01',
    endTime: '2024-04-01',
}, {
    taskName: '任务名称20240316-tempalsbls',
    priority: '中',
    status: '进行中',
    executor: '张三',
    startTime: '2024-04-01',
    endTime: '2024-04-01',
}, {
    taskName: '任务名称20240316-tempalsbls',
    priority: '中',
    status: '进行中',
    executor: '张三',
    startTime: '2024-04-01',
    endTime: '2024-04-01',
}, {
    taskName: '任务名称20240316-tempalsbls',
    priority: '中',
    status: '进行中',
    executor: '张三',
    startTime: '2024-04-01',
    endTime: '2024-04-01',
}, {
    taskName: '任务名称20240316-tempalsbls',
    priority: '中',
    status: '进行中',
    executor: '张三',
    startTime: '2024-04-01',
    endTime: '2024-04-01',
}])
// 生命周期钩子
onMounted(() => {
});
</script>
<style scoped lang="scss">
.relatedTasks {
    .title {
        font-size: 18px;
        color: #000
    }
}
</style>