更新
This commit is contained in:
@@ -189,9 +189,12 @@ public class InstructionServiceImpl implements InstructionService, ApplicationAu
|
||||
JSONObject ins = new JSONObject();
|
||||
ins.put("task_id", jo.get("instruction_id"));
|
||||
ins.put("task_code", jo.get("instruction_code"));
|
||||
ins.put("task_type", jo.get("instruction_type"));
|
||||
ins.put("task_status", jo.get("instruction_status"));
|
||||
ins.put("start_point_code", jo.get("start_point_code"));
|
||||
ins.put("start_point_code2", jo.get("start_point_code2"));
|
||||
ins.put("next_point_code", jo.get("next_point_code"));
|
||||
ins.put("next_point_code2", jo.get("next_point_code2"));
|
||||
ins.put("matarial", jo.get("matarial"));
|
||||
ins.put("remark", jo.get("remark"));
|
||||
ins.put("create_by", jo.get("create_by"));
|
||||
|
||||
@@ -81,6 +81,10 @@
|
||||
inst.start_point_code LIKE CONCAT ( '%', 输入.point_code, '%' )
|
||||
OR
|
||||
inst.next_point_code LIKE CONCAT ( '%', 输入.point_code, '%' )
|
||||
OR
|
||||
inst.start_point_code2 LIKE CONCAT ( '%', 输入.point_code, '%' )
|
||||
OR
|
||||
inst.next_point_code2 LIKE CONCAT ( '%', 输入.point_code, '%' )
|
||||
)
|
||||
ENDOPTION
|
||||
OPTION 输入.instruction_type <> ""
|
||||
|
||||
@@ -105,6 +105,10 @@ IF 输入.flag = "2"
|
||||
task.start_point_code LIKE CONCAT ( '%', 输入.point_code, '%' )
|
||||
OR
|
||||
task.next_point_code LIKE CONCAT ( '%', 输入.point_code, '%')
|
||||
OR
|
||||
task.start_point_code2 LIKE CONCAT ( '%', 输入.point_code, '%' )
|
||||
OR
|
||||
task.next_point_code2 LIKE CONCAT ( '%', 输入.point_code, '%')
|
||||
)
|
||||
ENDOPTION
|
||||
OPTION 输入.create_time <> ""
|
||||
|
||||
@@ -99,16 +99,20 @@
|
||||
<el-table-column prop="instruction_code" label="指令编号" />
|
||||
<el-table-column prop="task_code" label="任务号" />
|
||||
<el-table-column prop="vehicle_code" label="载具号" />
|
||||
<el-table-column prop="instruction_type" label="指令类型" width="120">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.task_type[scope.row.instruction_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="instruction_status" label="指令状态">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.instruction_status=='0' ">就绪</span>
|
||||
<span v-if="scope.row.instruction_status=='1' ">执行中</span>
|
||||
<span v-if="scope.row.instruction_status=='2' ">完成</span>
|
||||
<span v-if="scope.row.instruction_status=='3' ">取消</span>
|
||||
{{ dict.label.task_status[scope.row.instruction_status] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="start_point_code" label="起点" />
|
||||
<el-table-column prop="next_point_code" label="终点" />
|
||||
<el-table-column prop="start_point_code2" label="起点2" />
|
||||
<el-table-column prop="next_point_code2" label="终点2" />
|
||||
<el-table-column prop="matarial" label="物料" />
|
||||
<el-table-column prop="quantity" label="数量" />
|
||||
<el-table-column prop="remark" label="描述" />
|
||||
@@ -167,7 +171,7 @@ const defaultForm = {
|
||||
update_time: null
|
||||
}
|
||||
export default {
|
||||
dicts: ['task_status'],
|
||||
dicts: ['task_status', 'task_type'],
|
||||
name: 'Instruction',
|
||||
components: { pagination, crudOperation, Search },
|
||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||
|
||||
@@ -232,17 +232,21 @@
|
||||
<el-table-column v-if="false" prop="task_id" label="任务标识" />
|
||||
<el-table-column prop="task_code" label="任务号" />
|
||||
<el-table-column prop="vehicle_code" label="载具号" />
|
||||
<el-table-column prop="task_type" label="任务类型" width="120">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.task_type[scope.row.task_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="task_status" label="任务状态">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.task_status=='0' ">就绪</span>
|
||||
<span v-if="scope.row.task_status=='1' ">执行中</span>
|
||||
<span v-if="scope.row.task_status=='2' ">完成</span>
|
||||
<span v-if="scope.row.task_status=='3' ">取消</span>
|
||||
{{ dict.label.task_status[scope.row.task_status] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="priority" label="任务优先级" />
|
||||
<el-table-column prop="start_point_code" label="起点" />
|
||||
<el-table-column prop="next_point_code" label="终点" />
|
||||
<el-table-column prop="start_point_code2" label="起点2" />
|
||||
<el-table-column prop="start_point_code2" label="终点2" />
|
||||
<el-table-column prop="matarial" label="物料" />
|
||||
<el-table-column prop="quantity" label="数量" />
|
||||
<el-table-column prop="remark" label="备注" />
|
||||
@@ -288,7 +292,7 @@ const defaultForm = {
|
||||
export default {
|
||||
name: 'Task',
|
||||
components: { pagination, crudOperation, Search },
|
||||
dicts: ['task_status'],
|
||||
dicts: ['task_status', 'task_type'],
|
||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||
cruds() {
|
||||
return CRUD({
|
||||
|
||||
@@ -89,11 +89,14 @@
|
||||
<el-table-column v-if="false" prop="task_id" label="任务标识" />
|
||||
<el-table-column prop="task_code" label="任务号(指令编号)" />
|
||||
<el-table-column prop="vehicle_code" label="载具号" />
|
||||
<el-table-column prop="task_type" label="任务类型" width="120">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.task_type[scope.row.task_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="task_status" label="状态">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.task_status=='0' ">就绪</span>
|
||||
<span v-if="scope.row.task_status=='1' ">执行中</span>
|
||||
<span v-if="scope.row.task_status=='2' ">完成</span>
|
||||
{{ dict.label.task_status[scope.row.task_status] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="priority" label="任务优先级" />
|
||||
@@ -138,7 +141,7 @@ const defaultForm = {
|
||||
export default {
|
||||
name: 'Task',
|
||||
components: { pagination, crudOperation, Search },
|
||||
dicts: ['task_status'],
|
||||
dicts: ['task_status', 'task_type'],
|
||||
mixins: [presenter(), header(), form(defaultForm), crud()],
|
||||
cruds() {
|
||||
return CRUD({ title: '任务', url: 'api/task/getAll', idField: 'task_id', sort: 'task_id,desc', crudMethod: { ...crudTask }, optShow: {
|
||||
|
||||
Reference in New Issue
Block a user