update docs_0822

This commit is contained in:
lb
2023-08-23 16:30:59 +08:00
parent a28544b671
commit d4a427ec5e
4 changed files with 76 additions and 22 deletions

View File

@@ -8,12 +8,15 @@ export default function () {
const tableProps = [
{ width: 120, prop: "orderCode", label: "订单号", fixed: "left" },
{ width: 60, prop: "orderCate", label: "子号" },
{ width: 60, prop: "qty", label: "生产数量" },
{ width: 128, prop: "goodqty", label: "合格数量" },
{ width: 128, prop: "badqty", label: "报废数量" },
{ width: 128, prop: "badratio", label: "报废率" },
{ width: 100, prop: "productCode", label: "物料" },
{ width: 100, prop: "shapeCode", label: "砖型" },
{ width: 160, prop: "brand", label: "牌号" },
{ width: 100, prop: "bomCode", label: "配方编码" },
// { width: 60, prop: "ai", label: "版本" },
{ width: 60, prop: "prodqty", label: "数量" },
{ width: 80, prop: "blenderCode", label: "混料机号" },
{ width: 80, prop: "pressCode", label: "压机号" },
{ width: 80, prop: "kilnCode", label: "隧道窑号" },
@@ -34,16 +37,21 @@ export default function () {
{ width: 120, prop: "prodqty", label: "要求生产数量" },
{ width: 128, prop: "paperboard", label: "是否贴纸板", filter: (val) => ["否", "是"][val] },
{ width: 128, prop: "palletType", label: "托盘类型", filter: dictFilter("pallet_type") },
{ width: 128, prop: "goodqty", label: "合格数量" },
{ width: 128, prop: "badqty", label: "报废数量" },
{ width: 120, prop: "remark", label: "备注" },
{ width: 120, prop: "createTime", label: "添加时间", filter: timeFilter },
{ width: 120, prop: "createTime", label: "报工时间", filter: timeFilter },
{ width: 120, prop: "creatorName", label: "报工人" },
{
width: 128,
prop: "team",
label: "班次",
filter: (val) => (val != null ? ["早班", "中班", "晚班"][val] : "-"),
},
{
width: 120,
prop: "externalCode",
label: "工序",
filter: (val) => (val != null ? ["压机", "检测线", "包装"][val] : "-"),
},
{
prop: "operations",
name: "操作",
@@ -130,6 +138,16 @@ export default function () {
plain: true,
},
},
{
button: {
type: "warning",
name: "导出",
permission: "pms:workReport:export",
},
bind: {
plain: true,
},
},
];
/**
@@ -158,9 +176,9 @@ export default function () {
label: "工序",
prop: "externalCode",
options: [
{ label: "压机", value: '0' },
{ label: "检测线", value: '1' },
{ label: "包装", value: '2' },
{ label: "压机", value: "0" },
{ label: "检测线", value: "1" },
{ label: "包装", value: "2" },
],
elparams: { placeholder: "请选择工序" },
},
@@ -171,9 +189,9 @@ export default function () {
label: "班次",
prop: "team",
options: [
{ label: "早班", value: '0' },
{ label: "中班", value: '1' },
{ label: "晚班", value: '2' },
{ label: "早班", value: "0" },
{ label: "中班", value: "1" },
{ label: "晚班", value: "2" },
],
elparams: { placeholder: "请选择班次" },
},
@@ -268,6 +286,7 @@ export default function () {
base: "/pms/workReport",
page: "/pms/workReport/pageView",
pageIsPostApi: true,
export: '/pms/workReport/export',
},
};
}