修改生产订单表格显示

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