任务管理界面

master
Mr.sun 2 years ago
parent f2ebb20315
commit 01c8409dc1
  1. 50
      src/views/taskManagement/index.vue

@ -117,14 +117,7 @@
>重置</el-button> >重置</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="opt-box">
<div class="opt-box-right">
<el-button
type="primary"
@click="handleAdd"
>新增</el-button>
</div>
</div>
<div class="layout-full"> <div class="layout-full">
<heavy-table <heavy-table
class="heavy-table tablem" class="heavy-table tablem"
@ -199,8 +192,6 @@
:value="item.id" :value="item.id"
/> />
<!-- <el-option v-model="form.pointName">
</el-option> -->
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
@ -276,7 +267,7 @@ import moment from 'moment'
export default { export default {
name: 'Configuration', name: 'Configuration',
dicts: ['is_use', 'task_type', 'task_status'], dicts: ['is_use', 'task_type', 'task_status', 'order_type_dict'],
data() { data() {
const _that = this const _that = this
@ -332,7 +323,7 @@ export default {
}, },
{ {
label: '任务终点', label: '任务终点',
prop: 'toSide', prop: 'taskPath',
istrue: true istrue: true
}, },
{ {
@ -346,8 +337,16 @@ export default {
istrue: true istrue: true
}, },
{ {
label: 'AGV目标码头', label: '订单类型',
prop: 'agvNo', prop: 'dpsNoOne',
istrue: true,
filter(row, value) {
return getDictLabel(value, _that.dict.order_type_dict)
}
},
{
label: '业务单号',
prop: 'transId',
istrue: true istrue: true
}, },
{ {
@ -362,30 +361,23 @@ export default {
prop: 'operating', prop: 'operating',
istrue: true, istrue: true,
type: 'button', type: 'button',
width: 180, width: 240,
fixed: 'right', fixed: 'right',
align: 'center',
buttons: [ buttons: [
// {
// name: '',
// event: 'handleDelete',
// disable(row, prop) {}
// },
{ {
name: '重新下发', name: '重新下发',
event: 'handleUpdate' event: 'handleUpdate'
// disable(row, prop) {
// if (row.taskStatus == '2') {
// return true
// }
// }
}, },
{ {
name: '取消任务', name: '取消任务',
event: 'handleDelete', event: 'handleDelete',
disable(row, prop) { disable(row, prop) {}
// if (row.taskStatus == '2') {
// return true
// } else if (row.taskStatus == '0') {
// return true
// } else if (row.taskStatus == '3') {
// return true
// }
}
} }
] ]
} }

Loading…
Cancel
Save