提交
This commit is contained in:
1 parent
c90f72fd34
commit
6b6c80f182
100 files changed
+18631
-6278
No files matched your search
@@ -176,8 +176,16 @@
|
||||
<el-button v-if="plan.archiveStatus !== 'archived'" type="primary" @click="handleEdit">
|
||||
<el-icon><Edit /></el-icon>编辑
|
||||
</el-button>
|
||||
<el-button v-if="plan.transportStatus === 'pending'" type="warning" @click="handleArrange">
|
||||
<el-icon><Van /></el-icon>安排运输
|
||||
<el-button
|
||||
v-if="
|
||||
(plan.transportStatus === 'pending' || plan.transportStatus === 'arranged') &&
|
||||
plan.archiveStatus !== 'archived' &&
|
||||
plan.followStatus !== 'cancelled'
|
||||
"
|
||||
type="warning"
|
||||
@click="handleArrange"
|
||||
>
|
||||
<el-icon><Van /></el-icon>{{ plan.transportStatus === 'arranged' ? '调整运输' : '安排运输' }}
|
||||
</el-button>
|
||||
<el-button v-if="plan.archiveStatus !== 'archived'" type="info" @click="handleArchive">
|
||||
<el-icon><FolderChecked /></el-icon>归档
|
||||
|
||||
@@ -194,7 +194,7 @@
|
||||
v-if="canArrangeTransport(row)"
|
||||
@click="handleArrange(row)"
|
||||
>
|
||||
<el-icon><Van /></el-icon>安排运输
|
||||
<el-icon><Van /></el-icon>{{ arrangeTransportLabel(row) }}
|
||||
</el-button>
|
||||
<el-button
|
||||
link
|
||||
@@ -414,12 +414,16 @@ function handleEdit(row: Plan) {
|
||||
|
||||
function canArrangeTransport(row: Plan) {
|
||||
return (
|
||||
row.transportStatus === 'pending' &&
|
||||
(row.transportStatus === 'pending' || row.transportStatus === 'arranged') &&
|
||||
row.archiveStatus !== 'archived' &&
|
||||
row.followStatus !== 'cancelled'
|
||||
)
|
||||
}
|
||||
|
||||
function arrangeTransportLabel(row: Plan) {
|
||||
return row.transportStatus === 'arranged' ? '调整运输' : '安排运输'
|
||||
}
|
||||
|
||||
function canVoidPlan(row: Plan) {
|
||||
return row.archiveStatus !== 'archived' && row.followStatus !== 'cancelled'
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user