Browse Source

opt:点位管理关联回温工单表,显示工单号和工单状态

master
zds 2 months ago
parent
commit
8bde5f6967
  1. 4
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/point/service/dao/mapper/SchBasePointMapper.xml
  2. 2
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/point/service/dto/SchBasePointDto.java
  3. 2
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/point/service/dto/SchBasePointQuery.java
  4. 40
      lms/nladmin-ui/src/views/wms/sch/point/index.vue

4
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/point/service/dao/mapper/SchBasePointMapper.xml

@ -27,6 +27,7 @@
two.status two.status
FROM FROM
pdm_bd_workorder_two two pdm_bd_workorder_two two
where two.status not in ('3','4')
GROUP BY GROUP BY
two.palletSN, two.palletSN,
two.moname, two.moname,
@ -58,6 +59,9 @@
<if test="query.lock_type == true"> <if test="query.lock_type == true">
and (p.ing_task_code IS NOT NULL and p.ing_task_code != '') and (p.ing_task_code IS NOT NULL and p.ing_task_code != '')
</if> </if>
<if test="query.status != null">
and workorder_two.status = #{query.status}
</if>
ORDER BY p.region_code ASC, p.point_code ASC ORDER BY p.region_code ASC, p.point_code ASC
</select> </select>
</mapper> </mapper>

2
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/point/service/dto/SchBasePointDto.java

@ -57,4 +57,6 @@ public class SchBasePointDto implements Serializable {
private BigDecimal material_weight; private BigDecimal material_weight;
private String instorage_time; private String instorage_time;
private String pcsn; private String pcsn;
private String moname;
private String status;
} }

2
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/point/service/dto/SchBasePointQuery.java

@ -24,4 +24,6 @@ public class SchBasePointQuery implements Serializable {
private Boolean is_used; private Boolean is_used;
private Boolean lock_type; private Boolean lock_type;
private Integer status;
} }

40
lms/nladmin-ui/src/views/wms/sch/point/index.vue

@ -78,6 +78,22 @@
@keyup.enter.native="crud.toQuery" @keyup.enter.native="crud.toQuery"
/> />
</el-form-item> </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-form-item label="锁定类型">
<el-switch <el-switch
v-model="query.lock_type" v-model="query.lock_type"
@ -211,7 +227,7 @@
</div> </div>
</el-dialog> </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 type="selection" width="55" />
<el-table-column prop="workshop_code" label="车间编码" :min-width="flexWidth('workshop_code',crud.data,'车间编码')" /> <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,'点位编码')" /> <el-table-column prop="point_code" label="点位编码" :min-width="flexWidth('point_code',crud.data,'点位编码')" />
@ -227,6 +243,8 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="ing_task_code" label="当前任务编码" :min-width="flexWidth('ing_task_code',crud.data,'当前任务编码')" /> <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="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="col_num" label="列" :min-width="flexWidth('col_num',crud.data,'列')" />
<el-table-column prop="layer_num" label="层" :min-width="flexWidth('layer_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>
<el-table-column prop="update_name" label="修改人" :min-width="flexWidth('update_name',crud.data,'修改人')" /> <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 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"> <template slot-scope="scope">
<udOperation <udOperation
style="display: inline" style="display: inline"
@ -316,7 +334,7 @@ const defaultForm = {
} }
export default { export default {
name: 'SchBasePoint', name: 'SchBasePoint',
dicts: ['vehicle_type', 'TrueOrFalse', 'reason'], dicts: ['vehicle_type', 'TrueOrFalse', 'reason', 'work_order_two_status'],
components: { PointDialog, ViewDialog, pagination, crudOperation, rrOperation, udOperation }, components: { PointDialog, ViewDialog, pagination, crudOperation, rrOperation, udOperation },
mixins: [presenter(), header(), form(defaultForm), crud()], mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() { cruds() {
@ -395,6 +413,22 @@ export default {
hand(value) { hand(value) {
this.crud.toQuery() 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() { // getWorkShopList() { //
crudMdBaseWorkShop.getWorkShopList().then(res => { crudMdBaseWorkShop.getWorkShopList().then(res => {
this.workShopList = res this.workShopList = res

Loading…
Cancel
Save