rev:控制逻辑
This commit is contained in:
@@ -5,6 +5,7 @@ export default {
|
||||
'instruction_type': 'Instruction Type',
|
||||
'task_code': 'Task Code',
|
||||
'vehicle_code': 'Vehicle Code',
|
||||
'priority': 'priority',
|
||||
'instruction_status': 'Instruction Status',
|
||||
'send_status': 'Send Status',
|
||||
'start_point_code': 'Start Device Code',
|
||||
|
||||
@@ -5,6 +5,7 @@ export default {
|
||||
'instruction_type': 'Jenis Instruksi',
|
||||
'task_code': 'Nomor Tugas',
|
||||
'vehicle_code': 'Nomor Kendaraan',
|
||||
'priority': 'Prioritas',
|
||||
'instruction_status': 'Status Perintah',
|
||||
'send_status': 'Status Pengiriman',
|
||||
'start_point_code': 'Titik Penjemputan',
|
||||
|
||||
@@ -5,10 +5,11 @@ export default {
|
||||
'instruction_type': '指令类型',
|
||||
'task_code': '任务号',
|
||||
'vehicle_code': '载具号',
|
||||
'priority': '优先级',
|
||||
'instruction_status': '指令状态',
|
||||
'send_status': '下发状态',
|
||||
'start_point_code': '取货点',
|
||||
'next_point_code': '放货点',
|
||||
'start_point_code': '指令起点',
|
||||
'next_point_code': '指令终点',
|
||||
'start_point_code2': '取货点2',
|
||||
'next_point_code2': '放货点2',
|
||||
'put_point_code': '倒料点',
|
||||
|
||||
@@ -35,8 +35,8 @@ export default {
|
||||
'Ready': '就绪',
|
||||
'In_progress': '执行中',
|
||||
'Completed': '完成',
|
||||
'Pickup_point': '取货点',
|
||||
'Delivery_point': '放货点',
|
||||
'Pickup_point': '任务起点',
|
||||
'Delivery_point': '任务终点',
|
||||
'Remark': '备注',
|
||||
'Creator': '创建者',
|
||||
'Create_time': '创建时间',
|
||||
|
||||
@@ -32,27 +32,27 @@
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('Inst.table.material')">
|
||||
<el-select
|
||||
v-model="query.material_type"
|
||||
clearable
|
||||
filterable
|
||||
size="small"
|
||||
:placeholder="$t('Inst.table.material')"
|
||||
class="filter-item"
|
||||
style="width: 200px"
|
||||
@change="crud.toQuery"
|
||||
>
|
||||
<el-option v-for="item in materialList" :key="item.id" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('Inst.table.task_status')">
|
||||
<!-- <el-form-item :label="$t('Inst.table.material')">-->
|
||||
<!-- <el-select-->
|
||||
<!-- v-model="query.material_type"-->
|
||||
<!-- clearable-->
|
||||
<!-- filterable-->
|
||||
<!-- size="small"-->
|
||||
<!-- :placeholder="$t('Inst.table.material')"-->
|
||||
<!-- class="filter-item"-->
|
||||
<!-- style="width: 200px"-->
|
||||
<!-- @change="crud.toQuery"-->
|
||||
<!-- >-->
|
||||
<!-- <el-option v-for="item in materialList" :key="item.id" :label="item.label" :value="item.value" />-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item :label="$t('Inst.table.instruction_status')">
|
||||
<el-select
|
||||
v-model="query.status"
|
||||
clearable
|
||||
filterable
|
||||
size="small"
|
||||
:placeholder="$t('Inst.table.task_status')"
|
||||
:placeholder="$t('Inst.table.instruction_status')"
|
||||
class="filter-item"
|
||||
style="width: 200px"
|
||||
@change="crud.toQuery"
|
||||
@@ -141,16 +141,16 @@
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column v-if="false" prop="instruction_id" label="指令标识" />
|
||||
<el-table-column prop="instruction_code" :label="$t('Inst.table.instruction_code')" :min-width="flexWidth('instruction_code',crud.data,$t('Inst.table.instruction_code'))" />
|
||||
<el-table-column prop="instruction_type" :label="$t('Inst.table.instruction_type')" :min-width="flexWidth('instruction_type',crud.data,$t('Inst.table.instruction_type'))">
|
||||
<el-table-column prop="instruction_type" :label="$t('Inst.table.instruction_type')" show-overflow-tooltip :min-width="flexWidth('instruction_type',crud.data,$t('Inst.table.instruction_type'))">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.instruction_type[scope.row.instruction_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="put_point_code" :label="$t('Inst.table.put_point_code')" :min-width="flexWidth('put_point_code',crud.data,$t('Inst.table.put_point_code'))" />
|
||||
<el-table-column prop="priority" :label="$t('Inst.table.priority')" :min-width="flexWidth('priority',crud.data,$t('Inst.table.priority'))" />
|
||||
<el-table-column prop="execute_device_code" :label="$t('Inst.table.execute_device_code')" :min-width="flexWidth('execute_device_code',crud.data,$t('Inst.table.execute_device_code'))" />
|
||||
<!-- <el-table-column prop="link_num" label="关联编号" />-->
|
||||
<el-table-column prop="task_code" :label="$t('Inst.table.task_code')" :min-width="flexWidth('task_code',crud.data,$t('Inst.table.task_code'))" />
|
||||
<el-table-column prop="vehicle_code" :label="$t('Inst.table.vehicle_code')" :min-width="flexWidth('vehicle_code',crud.data,$t('Inst.table.vehicle_code'))" />
|
||||
<el-table-column prop="vehicle_code" show-overflow-tooltip :label="$t('Inst.table.vehicle_code')" :min-width="flexWidth('vehicle_code',crud.data,$t('Inst.table.vehicle_code'))" />
|
||||
<el-table-column prop="instruction_status" :label="$t('Inst.table.instruction_status')" :min-width="flexWidth('instruction_status',crud.data,$t('Inst.table.instruction_status'))">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.instruction_status=='0' ">{{ $t('Inst.table.ready') }}</span>
|
||||
@@ -167,9 +167,9 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="start_point_code" :label="$t('Inst.table.start_point_code')" :min-width="flexWidth('start_point_code',crud.data,$t('Inst.table.start_point_code'))" />
|
||||
<el-table-column prop="next_point_code" :label="$t('Inst.table.next_point_code')" :min-width="flexWidth('next_point_code',crud.data,$t('Inst.table.next_point_code'))" />
|
||||
<el-table-column prop="start_point_code2" :label="$t('Inst.table.start_point_code2')" :min-width="flexWidth('start_point_code2',crud.data,$t('Inst.table.start_point_code2'))" />
|
||||
<el-table-column prop="next_point_code2" :label="$t('Inst.table.next_point_code2')" :min-width="flexWidth('next_point_code2',crud.data,$t('Inst.table.next_point_code2'))" />
|
||||
<el-table-column prop="put_point_code" :label="$t('Inst.table.put_point_code')" :min-width="flexWidth('put_point_code',crud.data,$t('Inst.table.put_point_code'))" />
|
||||
<!-- <el-table-column prop="start_point_code2" :label="$t('Inst.table.start_point_code2')" :min-width="flexWidth('start_point_code2',crud.data,$t('Inst.table.start_point_code2'))" />-->
|
||||
<!-- <el-table-column prop="next_point_code2" :label="$t('Inst.table.next_point_code2')" :min-width="flexWidth('next_point_code2',crud.data,$t('Inst.table.next_point_code2'))" />-->
|
||||
<!-- <el-table-column prop="put_point_code" :label="$t('Inst.table.put_point_code')" :min-width="flexWidth('put_point_code',crud.data,$t('Inst.table.put_point_code'))" />-->
|
||||
<el-table-column prop="execute_device_code" :label="$t('Inst.table.execute_device_code')" :min-width="flexWidth('execute_device_code',crud.data,$t('Inst.table.execute_device_code'))" />
|
||||
<el-table-column prop="carno" :label="$t('Inst.table.carno')" :min-width="flexWidth('carno',crud.data,$t('Inst.table.carno'))" />
|
||||
<el-table-column prop="remark" :label="$t('Inst.table.remark')" :min-width="flexWidth('remark',crud.data,$t('Inst.table.remark'))" />
|
||||
@@ -273,7 +273,7 @@ export default {
|
||||
crudMethod: { ...crudInstruction },
|
||||
optShow: {
|
||||
add: false,
|
||||
edit: true,
|
||||
edit: false,
|
||||
del: true
|
||||
}
|
||||
})
|
||||
|
||||
@@ -46,20 +46,20 @@
|
||||
@keyup.enter.native="crud.toQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('task.txt_box.Material_type')">
|
||||
<el-select
|
||||
v-model="query.material_type"
|
||||
clearable
|
||||
filterable
|
||||
size="small"
|
||||
:placeholder="$t('task.txt_box.Material_type')"
|
||||
class="filter-item"
|
||||
style="width: 200px"
|
||||
@change="crud.toQuery"
|
||||
>
|
||||
<el-option v-for="item in materialList" :key="item.id" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item :label="$t('task.txt_box.Material_type')">-->
|
||||
<!-- <el-select-->
|
||||
<!-- v-model="query.material_type"-->
|
||||
<!-- clearable-->
|
||||
<!-- filterable-->
|
||||
<!-- size="small"-->
|
||||
<!-- :placeholder="$t('task.txt_box.Material_type')"-->
|
||||
<!-- class="filter-item"-->
|
||||
<!-- style="width: 200px"-->
|
||||
<!-- @change="crud.toQuery"-->
|
||||
<!-- >-->
|
||||
<!-- <el-option v-for="item in materialList" :key="item.id" :label="item.label" :value="item.value" />-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </el-form-item>-->
|
||||
<el-form-item :label="$t('task.txt_box.Task_type')">
|
||||
<el-select
|
||||
v-model="query.task_type"
|
||||
@@ -424,7 +424,7 @@
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
<!-- <el-input v-model="form.vehicle_type" style="width: 370px;" @change="isDisabled=false" />-->
|
||||
<!-- <el-input v-model="form.vehicle_type" style="width: 370px;" @change="isDisabled=false" />-->
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('task.txt_box.extension_field')">
|
||||
<div>
|
||||
@@ -496,13 +496,14 @@
|
||||
<el-table-column type="selection" width="50" />
|
||||
<el-table-column v-if="false" prop="task_id" label="任务标识" />
|
||||
<el-table-column prop="task_code" :label="$t('task.txt_box.Task_code')" :min-width="flexWidth('task_code',crud.data,$t('task.txt_box.Task_code'))" />
|
||||
<el-table-column prop="task_type" :label="$t('task.txt_box.Task_type')" :min-width="flexWidth('task_type',crud.data,$t('task.txt_box.Task_type'))">
|
||||
<el-table-column prop="task_type" show-overflow-tooltip :label="$t('task.txt_box.Task_type')" :min-width="flexWidth('task_type',crud.data,$t('task.txt_box.Task_type'))">
|
||||
<template slot-scope="scope">
|
||||
{{ dict.label.task_type[scope.row.task_type] }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="priority" :label="$t('task.txt_box.Priority')" :min-width="flexWidth('priority',crud.data,$t('task.txt_box.Priority'))" />
|
||||
<!-- <el-table-column prop="link_num" label="关联编号" />-->
|
||||
<el-table-column prop="vehicle_code" :label="$t('task.txt_box.Vehicle_number')" :min-width="flexWidth('vehicle_code',crud.data,$t('task.txt_box.Vehicle_number'))" />
|
||||
<el-table-column prop="vehicle_code" show-overflow-tooltip :label="$t('task.txt_box.Vehicle_number')" :min-width="flexWidth('vehicle_code',crud.data,$t('task.txt_box.Vehicle_number'))" />
|
||||
<el-table-column prop="task_status" :label="$t('task.txt_box.Task_status')" width="150px">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.task_status==='0' ">{{ $t('task.select.Ready') }}</span>
|
||||
@@ -510,12 +511,11 @@
|
||||
<span v-if="scope.row.task_status==='2' ">{{ $t('task.select.Completed') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="priority" :label="$t('task.txt_box.Priority')" :min-width="flexWidth('priority',crud.data,$t('task.txt_box.Priority'))" />
|
||||
<el-table-column prop="start_point_code" :label="$t('task.select.Pickup_point')" :min-width="flexWidth('start_point_code',crud.data,$t('task.select.Pickup_point'))" />
|
||||
<!-- <el-table-column prop="put_point_code" label="倒料点" width="100" />-->
|
||||
<el-table-column prop="next_point_code" :label="$t('task.select.Delivery_point')" :min-width="flexWidth('next_point_code',crud.data,$t('task.select.Delivery_point'))" />
|
||||
<el-table-column prop="start_point_code2" :label="$t('task.select.Start_point2')" :min-width="flexWidth('start_point_code2',crud.data,$t('task.select.Start_point2'))" />
|
||||
<el-table-column prop="next_point_code2" :label="$t('task.select.Destination2')" :min-width="flexWidth('next_point_code2',crud.data,$t('task.select.Destination2'))" />
|
||||
<!-- <el-table-column prop="start_point_code2" :label="$t('task.select.Start_point2')" :min-width="flexWidth('start_point_code2',crud.data,$t('task.select.Start_point2'))" />-->
|
||||
<!-- <el-table-column prop="next_point_code2" :label="$t('task.select.Destination2')" :min-width="flexWidth('next_point_code2',crud.data,$t('task.select.Destination2'))" />-->
|
||||
<!-- <el-table-column prop="compound_task" label="复合任务">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span v-if="scope.row.compound_task==='0' ">否</span>-->
|
||||
|
||||
Reference in New Issue
Block a user