修改生产订单表格显示

This commit is contained in:
shaoleiliu-netizen123 2026-07-09 09:38:54 +08:00
parent 826d22e358
commit b965314304

View File

@ -68,8 +68,6 @@
-->
<!--flex-height-->
<n-data-table
ref="tableRef"
id="my-table"
size="small"
remote
striped
@ -78,10 +76,6 @@
:columns="columns"
:data="tableData"
:loading="loading"
virtual-scroll
:virtual-scroll-x="true"
:scroll-x="scrollX"
:max-height="580"
/>
<div class="pagination-container" style="display: flex; justify-content: flex-end; margin-top: 12px">
<n-pagination
@ -479,140 +473,132 @@ const formRules = {
//
const columns = [
// {
// type: 'selection'
// },
{
type: 'selection'
},
{
align:'center',
minWidth: 260,
title: '产品名称',
key: 'projectName',
ellipsis: {
tooltip: true
}
// ellipsis: {
// tooltip: true
// }
minWidth: 150,
},
{
align:'center',
minWidth: 200,
title: '物料名称',
key: 'name'
key: 'name',
minWidth: 150,
},
{
align:'center',
minWidth: 150,
title: '物料编码',
key: 'code'
key: 'code',
width:"120"
},
{
align:'center',
minWidth: 150,
title: '订单编号',
key: 'orderCode',
width:"120"
},
{
align:'center',
minWidth: 150,
title: '工艺路线编码',
key: 'routeCode',
width:"120"
},
{
align:'center',
minWidth: 150,
title: '生产车间',
key: 'proWorkshop',
width:"120"
},
{
align:'center',
minWidth: 150,
title: '产品序列',
key: 'sort'
key: 'sort',
width:"120"
},
{
align:'center',
minWidth: 150,
title: '生产数量',
key: 'quantity'
key: 'quantity',
width:"120"
},
{
align:'center',
minWidth: 150,
title: '是否半成品',
key: 'sfProduct'
key: 'sfProduct',
width:"120"
},
{
align:'center',
minWidth: 150,
title: '是否采购',
key: 'procurement'
key: 'procurement',
width:"120"
},
{
align:'center',
minWidth: 180,
title: '开始时间',
key: 'beginTime'
key: 'beginTime',
width:"120"
},
{
align:'center',
minWidth: 180,
title: '结束时间',
key: 'endTime'
key: 'endTime',
width:"120"
},
{
align:'center',
minWidth: 180,
title: '实际开始时间',
key: 'actualStartTime'
key: 'actualStartTime',
width:"120"
},
{
align:'center',
minWidth: 180,
title: '实际结束时间',
key: 'actualEndTime'
key: 'actualEndTime',
width:"120"
},
{
align:'center',
minWidth: 150,
title: '派工操作人',
key: 'assingWorkOperationName'
key: 'assingWorkOperationName',
width:"120"
},
// {
// align:'center',
// minWidth: 150,
// title: '',
// key: 'assingWorkOperationTime'
// },
{
align:'center',
minWidth: 150,
title: '派工接收人',
key: 'assingWorkName'
key: 'assingWorkName',
width:"200"
},
{
align:'center',
minWidth: 180,
title: '派工时间',
key: 'assingWorkTime'
key: 'assingWorkTime',
width:"120"
},
{
align:'center',
minWidth: 150,
title: '是否开工',
key: 'starter'
key: 'starter',
width:"120"
},
{
align:'center',
title: '备注',
key: 'remark',
minWidth:200
minWidth: 100,
},
// { title: '', key: 'createTime', width: 100 },
// { title: '', key: 'createBy' },
{
align:'center',
title: '操作',
key: 'actions',
width: 190,
fixed: 'right',
fixed:"right",
render(row:any) {
const buttons:any = []