更新代码
This commit is contained in:
@@ -327,9 +327,6 @@ export default {
|
||||
hand(value) {
|
||||
this.crud.toQuery()
|
||||
},
|
||||
taskdtl_typeFormat(row) {
|
||||
return this.dict.label.SCH_TASK_TYPE_DTL[row.taskdtl_type]
|
||||
},
|
||||
invtypeFormat(row) {
|
||||
for (const item of this.invtypelist) {
|
||||
if (item.code === row.inv_type) {
|
||||
|
||||
@@ -113,10 +113,10 @@
|
||||
@selection-change="crud.selectionChangeHandler"
|
||||
>
|
||||
<el-table-column type="selection" width="50" />
|
||||
<el-table-column v-if="false" prop="taskdtl_id" label="任务标识" />
|
||||
<el-table-column v-if="false" prop="task_id" label="任务标识" />
|
||||
<el-table-column prop="task_code" label="任务编码" />
|
||||
<el-table-column v-if="false" prop="task_type" label="任务类型" />
|
||||
<el-table-column prop="task_type_name" label="任务类型" min-width="120" show-overflow-tooltip/>
|
||||
<el-table-column prop="task_type_name" label="任务类型" min-width="120" show-overflow-tooltip />
|
||||
<el-table-column v-if="false" prop="task_status" label="任务状态" />
|
||||
<el-table-column prop="task_status_name" label="任务状态" width="95px" :formatter="formatTaskStatusName" />
|
||||
<el-table-column prop="vehicle_code" label="载具编码" />
|
||||
@@ -161,7 +161,7 @@
|
||||
<!-- 组件-->
|
||||
<component
|
||||
:is="currentComponent"
|
||||
:task-uuid="taskdtl_id"
|
||||
:task-uuid="task_id"
|
||||
:dialog-visible="viewDialogVisible"
|
||||
/>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
@@ -194,11 +194,11 @@ export default {
|
||||
return CRUD({
|
||||
title: '任务',
|
||||
url: 'api/task',
|
||||
idField: 'taskdtl_id',
|
||||
sort: 'taskdtl_id,desc',
|
||||
idField: 'task_id',
|
||||
sort: 'task_id,desc',
|
||||
crudMethod: { ...crudTask },
|
||||
query: {
|
||||
task_code: '', vehicle_code: '', start_point_code: '', next_point_code: '', task_type: '', taskdtl_type: '', finished_type: '', task_status: ''
|
||||
task_code: '', vehicle_code: '', start_point_code: '', next_point_code: '', task_type: '', finished_type: '', task_status: ''
|
||||
},
|
||||
optShow: {
|
||||
add: false,
|
||||
@@ -213,7 +213,6 @@ export default {
|
||||
return {
|
||||
viewDialogVisible: false,
|
||||
fullscreen: false,
|
||||
taskdtl_id: '',
|
||||
currentComponent: '',
|
||||
openParam: {},
|
||||
create_time: [],
|
||||
@@ -376,7 +375,7 @@ export default {
|
||||
})
|
||||
},
|
||||
view(row) {
|
||||
this.taskdtl_id = row.taskdtl_id
|
||||
this.task_id = row.task_id
|
||||
switch (row.task_type) {
|
||||
case '01':// 入库
|
||||
this.fullscreen = true
|
||||
|
||||
Reference in New Issue
Block a user