zy-asrs-admin/src/views/out/flat/index.vue
@@ -1,8 +1,11 @@
<template>
    <a-table :columns="columns" :data-source="datasource" bordered>
        <template #bodyCell="{column, record}">
        <template #bodyCell="{column, record, index}">
            <template v-if="column.key === 'number'">
                {{index + 1}}
            </template>
            <template v-if="column.key === 'operate'">
                <a-button @click="viewDetail(record)" type="link">
                <a-button @click="viewDetail(column)" type="link">
                    {{ "查看明细" }}
                </a-button>
                <a-button @click="showDeleteConfirm(record)" danger type="link">{{"删除"}}</a-button>
@@ -16,7 +19,10 @@
    </a-table>
    <a-modal ref="sheetDetl" v-model:open="show" :width="'80%'" title="拣货单明细" @ok="handleOk">
        <a-table :columns="childNodes" :data-source="childList">
            <template #bodyCell="{column, record}">
            <template #bodyCell="{column, record, index}">
                <template v-if="column.key === 'number'">
                    {{index + 1}}
                </template>
                <template v-if="column.key === 'status'">
                    <a-tag :color="record.status === 1 ? 'green' : 'volcano'">
                        {{record.status === 1 ? "正常" : "禁用"}}
@@ -106,6 +112,7 @@
            },
            //查看明细
            viewDetail(record) {
                console.log(record)
                this.show = !this.show
                this.getSheetDetl(record)
            },