|
|
|
|
@@ -161,9 +161,17 @@
|
|
|
|
|
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
|
|
|
|
|
<el-table-column type="selection" width="55" />
|
|
|
|
|
<el-table-column prop="task_code" label="任务编码" :min-width="flexWidth('task_code',crud.data,'任务编码')" />
|
|
|
|
|
<el-table-column prop="vehicle_code" label="载具编码1" :min-width="flexWidth('vehicle_code',crud.data,'载具编码1')" />
|
|
|
|
|
<el-table-column prop="vehicle_code2" label="载具编码2" :min-width="flexWidth('vehicle_code2',crud.data,'载具编码2')" />
|
|
|
|
|
<el-table-column prop="task_class_id" label="任务分类" :min-width="flexWidth('task_class_id',crud.data,'任务分类')" />
|
|
|
|
|
<el-table-column prop="vehicle_code" label="载具编码1" :min-width="flexWidth('vehicle_code',crud.data,'载具编码1')">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.vehicle_code ? scope.row.vehicle_code : '-' }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="vehicle_code2" label="载具编码2" :min-width="flexWidth('vehicle_code2',crud.data,'载具编码2')">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.vehicle_code2 ? scope.row.vehicle_code2 : '-' }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<!-- <el-table-column prop="task_class_id" label="任务分类" :min-width="flexWidth('task_class_id',crud.data,'任务分类')" />-->
|
|
|
|
|
<el-table-column prop="task_status" label="任务状态" :min-width="flexWidth('task_status',crud.data,'任务状态')">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ getStatusName(scope.row.task_status) }}
|
|
|
|
|
@@ -181,13 +189,17 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="vehicle_qty" label="载具数量" :min-width="flexWidth('vehicle_qty',crud.data,'载具数量')" />
|
|
|
|
|
<el-table-column prop="priority" label="优先级" :min-width="flexWidth('priority',crud.data,'优先级')" />
|
|
|
|
|
<el-table-column v-if="false" prop="priority" label="优先级" :min-width="flexWidth('priority',crud.data,'优先级')" />
|
|
|
|
|
<el-table-column v-if="false" prop="handle_class" label="处理类" :min-width="flexWidth('handle_class',crud.data,'处理类')" />
|
|
|
|
|
<el-table-column prop="handle_status" label="处理状态" :min-width="flexWidth('handle_status',crud.data,'处理状态')" />
|
|
|
|
|
<el-table-column v-if="false" prop="handle_status" label="处理状态" :min-width="flexWidth('handle_status',crud.data,'处理状态')" />
|
|
|
|
|
<el-table-column prop="car_no" label="车号" :min-width="flexWidth('car_no',crud.data,'车号')" />
|
|
|
|
|
<el-table-column prop="task_group_id" label="任务组标识" :min-width="flexWidth('task_group_id',crud.data,'任务组标识')" />
|
|
|
|
|
<el-table-column prop="task_group_seq" label="任务组顺序号" :min-width="flexWidth('task_group_seq',crud.data,'任务组顺序号')" />
|
|
|
|
|
<el-table-column prop="finished_type" label="任务完成类型" :min-width="flexWidth('finished_type',crud.data,'任务完成类型')" />
|
|
|
|
|
<el-table-column prop="finished_type" label="任务完成类型" :min-width="flexWidth('finished_type',crud.data,'任务完成类型')">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ dict.label.finished_type[scope.row.finished_type]?dict.label.finished_type[scope.row.finished_type]:'未完成' }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column prop="create_mode" label="生成方式" :min-width="flexWidth('create_mode',crud.data,'生成方式')" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ dict.label.create_mode[scope.row.create_mode] }}
|
|
|
|
|
@@ -213,11 +225,13 @@
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-success"
|
|
|
|
|
@click="doOperate(scope.row, 'a')"
|
|
|
|
|
:disabled="scope.row.task_status==='5' || scope.row.task_status==='6'"
|
|
|
|
|
>完成</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-error"
|
|
|
|
|
@click="doOperate(scope.row, 'b')"
|
|
|
|
|
:disabled="scope.row.task_status==='5' || scope.row.task_status==='6'"
|
|
|
|
|
>取消</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
@@ -268,7 +282,7 @@ const defaultForm = {
|
|
|
|
|
}
|
|
|
|
|
export default {
|
|
|
|
|
name: 'Task',
|
|
|
|
|
dicts: ['vehicle_type', 'create_mode'],
|
|
|
|
|
dicts: ['vehicle_type', 'create_mode', 'finished_type'],
|
|
|
|
|
components: { pagination, crudOperation, rrOperation, udOperation },
|
|
|
|
|
mixins: [presenter(), header(), form(defaultForm), crud()],
|
|
|
|
|
cruds() {
|
|
|
|
|
|