|
|
@ -78,6 +78,22 @@ |
|
|
|
@keyup.enter.native="crud.toQuery" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="工单状态"> |
|
|
|
<el-select |
|
|
|
v-model="query.status" |
|
|
|
clearable |
|
|
|
size="mini" |
|
|
|
placeholder="全部" |
|
|
|
class="filter-item" |
|
|
|
@change="crud.toQuery" |
|
|
|
> |
|
|
|
<el-option |
|
|
|
v-for="item in dict.work_order_two_status" |
|
|
|
:label="item.label" |
|
|
|
:value="item.value" |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="锁定类型"> |
|
|
|
<el-switch |
|
|
|
v-model="query.lock_type" |
|
|
@ -211,7 +227,7 @@ |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
<!--表格渲染--> |
|
|
|
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler"> |
|
|
|
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" :cell-style="cellStyle" style="width: 100%;" @selection-change="crud.selectionChangeHandler"> |
|
|
|
<el-table-column type="selection" width="55" /> |
|
|
|
<el-table-column prop="workshop_code" label="车间编码" :min-width="flexWidth('workshop_code',crud.data,'车间编码')" /> |
|
|
|
<el-table-column prop="point_code" label="点位编码" :min-width="flexWidth('point_code',crud.data,'点位编码')" /> |
|
|
@ -227,6 +243,8 @@ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="ing_task_code" label="当前任务编码" :min-width="flexWidth('ing_task_code',crud.data,'当前任务编码')" /> |
|
|
|
<el-table-column prop="moname" label="工单编号" :min-width="flexWidth('moname',crud.data,'工单编号')" /> |
|
|
|
<el-table-column prop="status" label="工单状态" :formatter="format_work_order_two_status" :min-width="flexWidth('status',crud.data,'工单状态')" /> |
|
|
|
<el-table-column prop="row_num" label="排" :min-width="flexWidth('row_num',crud.data,'排')" /> |
|
|
|
<el-table-column prop="col_num" label="列" :min-width="flexWidth('col_num',crud.data,'列')" /> |
|
|
|
<el-table-column prop="layer_num" label="层" :min-width="flexWidth('layer_num',crud.data,'层')" /> |
|
|
@ -244,7 +262,7 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="update_name" label="修改人" :min-width="flexWidth('update_name',crud.data,'修改人')" /> |
|
|
|
<el-table-column prop="update_time" label="修改时间" :min-width="flexWidth('update_time',crud.data,'修改时间')" /> |
|
|
|
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right"> |
|
|
|
<el-table-column v-permission="[]" label="操作" width="185px" align="center" fixed="right"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<udOperation |
|
|
|
style="display: inline" |
|
|
@ -316,7 +334,7 @@ const defaultForm = { |
|
|
|
} |
|
|
|
export default { |
|
|
|
name: 'SchBasePoint', |
|
|
|
dicts: ['vehicle_type', 'TrueOrFalse', 'reason'], |
|
|
|
dicts: ['vehicle_type', 'TrueOrFalse', 'reason', 'work_order_two_status'], |
|
|
|
components: { PointDialog, ViewDialog, pagination, crudOperation, rrOperation, udOperation }, |
|
|
|
mixins: [presenter(), header(), form(defaultForm), crud()], |
|
|
|
cruds() { |
|
|
@ -395,6 +413,22 @@ export default { |
|
|
|
hand(value) { |
|
|
|
this.crud.toQuery() |
|
|
|
}, |
|
|
|
cellStyle({ row, column, rowIndex, columnIndex }) { |
|
|
|
const status = row.status |
|
|
|
|
|
|
|
if (column.property === 'status') { |
|
|
|
if (status == '0') { |
|
|
|
return 'background: #FFBA00' |
|
|
|
} else if (status == '1') { |
|
|
|
return 'background: #13ce66' |
|
|
|
}else if (status == '2') { |
|
|
|
return 'background: #13ce66' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
format_work_order_two_status(row, column) { |
|
|
|
return this.dict.label.work_order_two_status[row.status] |
|
|
|
}, |
|
|
|
getWorkShopList() { // 获取车间列表 |
|
|
|
crudMdBaseWorkShop.getWorkShopList().then(res => { |
|
|
|
this.workShopList = res |
|
|
|