fix 0801
This commit is contained in:
@@ -7,11 +7,11 @@ export default function () {
|
||||
const tableProps = [
|
||||
{ type: "index", label: "序号" },
|
||||
{ prop: "batchNo", label: "批次编码" },
|
||||
{ prop: "batchSize", label: "批次重量 [kg]" },
|
||||
{ width: 108, prop: "batchSize", label: "批次重量 [kg]" },
|
||||
{ prop: "status", label: "状态" },
|
||||
// { prop: "startTime", label: "开始时间" },
|
||||
{ prop: "endTime", label: "结束时间" },
|
||||
{ prop: "task", label: "任务分类" },
|
||||
{ prop: "endTime", label: "结束时间", filter: timeFilter },
|
||||
{ width: 108, prop: "task", label: "任务分类" },
|
||||
{ prop: "blenderCode", label: "混料机" },
|
||||
// { width: 120, prop: "orderCate", label: "主订单子号" },
|
||||
// { width: 160, prop: "code", label: "压制订单号" },
|
||||
@@ -22,10 +22,11 @@ export default function () {
|
||||
// { prop: "goodqty", label: "合格数量" },
|
||||
// { width: 120, prop: "badqty", label: "不合格数量" },
|
||||
// { prop: "remark", label: "备注" },
|
||||
// { prop: 'version', label: '配方号' },
|
||||
// { prop: 'status', label: '状态', subcomponent: StatusComponent }, // subcomponent
|
||||
{ prop: "description", label: "详情", subcomponent: TableTextComponent, actionName: 'view-blender-batch-details' },
|
||||
{ width: 160, prop: "createTime", label: "添加时间", filter: timeFilter },
|
||||
{ prop: "description", label: "详情", subcomponent: TableTextComponent, actionName: "view-blender-batch-details" },
|
||||
{ prop: 'bomName', label: '牌号' },
|
||||
{ prop: 'bomVersion', label: '版本号' },
|
||||
// { width: 160, prop: "createTime", label: "添加时间", filter: timeFilter },
|
||||
{
|
||||
prop: "operations",
|
||||
name: "操作",
|
||||
@@ -36,17 +37,32 @@ export default function () {
|
||||
// 只有 injectRow.task 为手动时,才允许编辑
|
||||
// { name:"edit", label: "编辑", icon: "edit-outline", enable: injectRow => { return 'task' in injectRow && injectRow.task === 'Manual' } },
|
||||
// { name: 'delete', icon: 'delete', enable: injectRow => { return 'task' in injectRow && injectRow.task === 'Manual' } },
|
||||
|
||||
|
||||
// 只有 injectRow.status 为 waiting 时,才允许编辑
|
||||
{ name:"edit", label: "编辑", icon: "edit-outline", enable: injectRow => { return 'status' in injectRow && injectRow.status === 'Waiting' } },
|
||||
{ name: 'delete', icon: 'delete', emitFull: true, promptField: 'batchNo', enable: injectRow => { return 'status' in injectRow && injectRow.status === 'Waiting' } },
|
||||
]
|
||||
{
|
||||
name: "edit",
|
||||
label: "编辑",
|
||||
icon: "edit-outline",
|
||||
enable: (injectRow) => {
|
||||
return "status" in injectRow && injectRow.status === "Waiting";
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "delete",
|
||||
icon: "delete",
|
||||
emitFull: true,
|
||||
promptField: "batchNo",
|
||||
enable: (injectRow) => {
|
||||
return "status" in injectRow && injectRow.status === "Waiting";
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
const headFormFields = [
|
||||
{
|
||||
label: '订单批次'
|
||||
label: "订单批次",
|
||||
},
|
||||
{
|
||||
button: {
|
||||
|
||||
Reference in New Issue
Block a user