|
@@ -44,7 +44,9 @@
|
|
|
<!-- 操作列 -->
|
|
<!-- 操作列 -->
|
|
|
<template v-slot:action="{ row }">
|
|
<template v-slot:action="{ row }">
|
|
|
<el-link
|
|
<el-link
|
|
|
- v-if="row.cycleType == 0 || row.planStatus == 4"
|
|
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ row.planStatus == 4 || row.planStatus == 0 || row.planStatus == 5
|
|
|
|
|
+ "
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
@@ -53,16 +55,17 @@
|
|
|
编辑
|
|
编辑
|
|
|
</el-link>
|
|
</el-link>
|
|
|
<el-link
|
|
<el-link
|
|
|
- v-if="row.cycleType == 0 || row.planStatus == 4"
|
|
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ row.planStatus == 4 || row.planStatus == 0 || row.planStatus == 5
|
|
|
|
|
+ "
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
- icon="el-icon-edit"
|
|
|
|
|
@click="openAdd('派单', row)"
|
|
@click="openAdd('派单', row)"
|
|
|
>
|
|
>
|
|
|
派单
|
|
派单
|
|
|
</el-link>
|
|
</el-link>
|
|
|
<el-link
|
|
<el-link
|
|
|
- v-if="row.planStatus != 2 && row.planStatus != 3 && row.planStatus != 4"
|
|
|
|
|
|
|
+ v-if="row.planStatus == 1 || row.planStatus == 2"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
icon="el-icon-edit"
|
|
icon="el-icon-edit"
|
|
@@ -146,14 +149,24 @@
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
minWidth: 110
|
|
minWidth: 110
|
|
|
},
|
|
},
|
|
|
|
|
+ // {
|
|
|
|
|
+ // prop: 'cycleType',
|
|
|
|
|
+ // label: '计划性质',
|
|
|
|
|
+ // align: 'center',
|
|
|
|
|
+ // showOverflowTooltip: true,
|
|
|
|
|
+ // minWidth: 110,
|
|
|
|
|
+ // formatter(item) {
|
|
|
|
|
+ // return { 1: '自动', 0: '手动' }[item.cycleType];
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
{
|
|
{
|
|
|
- prop: 'cycleType',
|
|
|
|
|
- label: '计划性质',
|
|
|
|
|
|
|
+ prop: 'autoOrder',
|
|
|
|
|
+ label: '自动派单',
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
showOverflowTooltip: true,
|
|
showOverflowTooltip: true,
|
|
|
minWidth: 110,
|
|
minWidth: 110,
|
|
|
formatter(item) {
|
|
formatter(item) {
|
|
|
- return { 1: '自动', 0: '手动' }[item.cycleType];
|
|
|
|
|
|
|
+ return { 1: '自动', 0: '手动' }[item.autoOrder];
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|