|
@ -90,7 +90,9 @@ |
|
|
</el-button> |
|
|
</el-button> |
|
|
</crudOperation> |
|
|
</crudOperation> |
|
|
<!--表单组件--> |
|
|
<!--表单组件--> |
|
|
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" :title="crud.status.title" width="500px"> |
|
|
<el-dialog :close-on-click-modal="false" :before-close="crud.cancelCU" :visible.sync="crud.status.cu > 0" |
|
|
|
|
|
:title="crud.status.title" width="500px" |
|
|
|
|
|
> |
|
|
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px"> |
|
|
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px"> |
|
|
<el-form-item v-if="false" label="任务标识" prop="task_id"> |
|
|
<el-form-item v-if="false" label="任务标识" prop="task_id"> |
|
|
<el-input v-model="form.task_id" style="width: 370px;"/> |
|
|
<el-input v-model="form.task_id" style="width: 370px;"/> |
|
@ -249,7 +251,9 @@ |
|
|
</div> |
|
|
</div> |
|
|
</el-dialog> |
|
|
</el-dialog> |
|
|
<!--表格渲染--> |
|
|
<!--表格渲染--> |
|
|
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" @selection-change="crud.selectionChangeHandler"> |
|
|
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="small" style="width: 100%;" |
|
|
|
|
|
@selection-change="crud.selectionChangeHandler" |
|
|
|
|
|
> |
|
|
<el-table-column type="selection" width="25"/> |
|
|
<el-table-column type="selection" width="25"/> |
|
|
<el-table-column v-if="false" prop="task_id" label="任务标识"/> |
|
|
<el-table-column v-if="false" prop="task_id" label="任务标识"/> |
|
|
<el-table-column prop="task_code" label="任务号"/> |
|
|
<el-table-column prop="task_code" label="任务号"/> |
|
@ -260,6 +264,11 @@ |
|
|
<!-- </template>--> |
|
|
<!-- </template>--> |
|
|
<!-- </el-table-column>--> |
|
|
<!-- </el-table-column>--> |
|
|
<el-table-column prop="vehicle_code" label="载具号"/> |
|
|
<el-table-column prop="vehicle_code" label="载具号"/> |
|
|
|
|
|
<el-table-column prop="vehicle_type" label="托盘类型"> |
|
|
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
{{ dict.label.vehicle_type[scope.row.vehicle_type] }} |
|
|
|
|
|
</template> |
|
|
|
|
|
</el-table-column> |
|
|
<el-table-column prop="task_status" label="任务状态"> |
|
|
<el-table-column prop="task_status" label="任务状态"> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<span v-if="scope.row.task_status==='0' ">就绪</span> |
|
|
<span v-if="scope.row.task_status==='0' ">就绪</span> |
|
@ -285,7 +294,9 @@ |
|
|
<el-table-column prop="remark" label="备注"/> |
|
|
<el-table-column prop="remark" label="备注"/> |
|
|
<el-table-column prop="create_by" label="创建者"/> |
|
|
<el-table-column prop="create_by" label="创建者"/> |
|
|
<el-table-column prop="create_time" label="创建时间" width="135"/> |
|
|
<el-table-column prop="create_time" label="创建时间" width="135"/> |
|
|
<el-table-column v-permission="['admin','task:edit','task:del']" fixed="left" label="操作" width="150px" align="center"> |
|
|
<el-table-column v-permission="['admin','task:edit','task:del']" fixed="left" label="操作" width="150px" |
|
|
|
|
|
align="center" |
|
|
|
|
|
> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
<el-dropdown trigger="click" @command="handleCommand"> |
|
|
<el-dropdown trigger="click" @command="handleCommand"> |
|
|
<span class="el-dropdown-link"> |
|
|
<span class="el-dropdown-link"> |
|
@ -338,7 +349,7 @@ const defaultForm = { |
|
|
export default { |
|
|
export default { |
|
|
name: 'Task', |
|
|
name: 'Task', |
|
|
components: { pagination, crudOperation }, |
|
|
components: { pagination, crudOperation }, |
|
|
dicts: ['task_status', 'task_type'], |
|
|
dicts: ['task_status', 'task_type', 'vehicle_type'], |
|
|
mixins: [presenter(), header(), form(defaultForm), crud()], |
|
|
mixins: [presenter(), header(), form(defaultForm), crud()], |
|
|
cruds() { |
|
|
cruds() { |
|
|
return CRUD({ title: '任务', url: 'api/task', idField: 'task_id', sort: 'task_id,desc', crudMethod: { ...crudTask } }) |
|
|
return CRUD({ title: '任务', url: 'api/task', idField: 'task_id', sort: 'task_id,desc', crudMethod: { ...crudTask } }) |
|
@ -624,6 +635,7 @@ export default { |
|
|
cursor: pointer; |
|
|
cursor: pointer; |
|
|
color: #409EFF; |
|
|
color: #409EFF; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
.el-icon-arrow-down { |
|
|
.el-icon-arrow-down { |
|
|
font-size: 12px; |
|
|
font-size: 12px; |
|
|
} |
|
|
} |
|
|