|
@@ -21,6 +21,7 @@
|
|
|
:columns="columns"
|
|
:columns="columns"
|
|
|
:datasource="datasource"
|
|
:datasource="datasource"
|
|
|
:cache-key="`${activeName}ProductionPlanTable`"
|
|
:cache-key="`${activeName}ProductionPlanTable`"
|
|
|
|
|
+ @sort-change="onSortChange"
|
|
|
>
|
|
>
|
|
|
<template v-slot:code="{ row }">
|
|
<template v-slot:code="{ row }">
|
|
|
<el-link type="primary" :underline="false" @click="goDetail(row)">
|
|
<el-link type="primary" :underline="false" @click="goDetail(row)">
|
|
@@ -221,7 +222,7 @@
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
prop: 'productCode',
|
|
prop: 'productCode',
|
|
|
- label: '物料编号',
|
|
|
|
|
|
|
+ label: '产品编码',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
minWidth: 140
|
|
minWidth: 140
|
|
@@ -233,18 +234,19 @@
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'model',
|
|
|
|
|
- label: '型号',
|
|
|
|
|
|
|
+ prop: 'batchNo',
|
|
|
|
|
+ label: '批号',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
|
|
+ minWidth: 100,
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- prop: 'batchNo',
|
|
|
|
|
- label: '批号',
|
|
|
|
|
|
|
+ prop: 'model',
|
|
|
|
|
+ label: '型号',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
- minWidth: 100,
|
|
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
prop: 'priority',
|
|
prop: 'priority',
|
|
@@ -252,7 +254,7 @@
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
minWidth: 120,
|
|
minWidth: 120,
|
|
|
slot: 'priority',
|
|
slot: 'priority',
|
|
|
- sortable: true
|
|
|
|
|
|
|
+ sortable: 'custom'
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
@@ -345,7 +347,7 @@
|
|
|
{
|
|
{
|
|
|
columnKey: 'action',
|
|
columnKey: 'action',
|
|
|
label: '操作',
|
|
label: '操作',
|
|
|
- width: 350,
|
|
|
|
|
|
|
+ width: 250,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
resizable: false,
|
|
resizable: false,
|
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
@@ -370,7 +372,8 @@
|
|
|
return getList({
|
|
return getList({
|
|
|
pageNum: page,
|
|
pageNum: page,
|
|
|
size: limit,
|
|
size: limit,
|
|
|
- ...where
|
|
|
|
|
|
|
+ ...where,
|
|
|
|
|
+ ...this.sort
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
// 发布工单
|
|
// 发布工单
|
|
@@ -450,6 +453,17 @@
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+ onSortChange(e) {
|
|
|
|
|
+ let sort = {
|
|
|
|
|
+ orderBy: e.order,
|
|
|
|
|
+ sortName: e.prop,
|
|
|
|
|
+ }
|
|
|
|
|
+ this.sort = sort
|
|
|
|
|
+ this.reload()
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
sortTop(row) {
|
|
sortTop(row) {
|
|
|
row.priority = Number(row.priority) + 1;
|
|
row.priority = Number(row.priority) + 1;
|
|
|
this.priorityChange(row);
|
|
this.priorityChange(row);
|