rev:新增报工时间字段,下料机优先级,缓存线写0(三层缓存线跑)下一道工序设备来料仓排序
This commit is contained in:
@@ -48,7 +48,7 @@ public class WmsToAcsServiceImpl implements WmsToAcsService{
|
|||||||
, "quantity", task.getString("material_qty")
|
, "quantity", task.getString("material_qty")
|
||||||
, "barcodeArr", task.getString("barcodeArr")
|
, "barcodeArr", task.getString("barcodeArr")
|
||||||
, "qtyArr", task.getString("qtyArr")
|
, "qtyArr", task.getString("qtyArr")
|
||||||
, "proprity_floor", "2"
|
, "priority_floor", "0"
|
||||||
, "in_pcsn", task.getString("task_code")
|
, "in_pcsn", task.getString("task_code")
|
||||||
, "agv_system_type", task.getString("agv_system_type")
|
, "agv_system_type", task.getString("agv_system_type")
|
||||||
));
|
));
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
</if>
|
</if>
|
||||||
GROUP BY pdm_bi_device.device_code
|
GROUP BY pdm_bi_device.device_code
|
||||||
HAVING currentQty > #{qty}
|
HAVING currentQty > #{qty}
|
||||||
|
order by currentQty desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="workproceduceDevicesWeight" resultType="java.util.Map">
|
<select id="workproceduceDevicesWeight" resultType="java.util.Map">
|
||||||
|
|||||||
@@ -234,6 +234,11 @@ public class PdmProduceWorkorder implements Serializable{
|
|||||||
*/
|
*/
|
||||||
private Date update_time;
|
private Date update_time;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 报工时间
|
||||||
|
*/
|
||||||
|
private String stop_time;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* aps工作顺序号
|
* aps工作顺序号
|
||||||
|
|||||||
@@ -298,6 +298,7 @@ public class IPdmProduceWorkorderServiceImpl extends ServiceImpl<PdmProduceWorko
|
|||||||
workorder.setUpdate_time(new Date());
|
workorder.setUpdate_time(new Date());
|
||||||
workorder.setUpdate_id(SecurityUtils.getCurrentUserId());
|
workorder.setUpdate_id(SecurityUtils.getCurrentUserId());
|
||||||
workorder.setUpdate_name(SecurityUtils.getCurrentNickName());
|
workorder.setUpdate_name(SecurityUtils.getCurrentNickName());
|
||||||
|
workorder.setStop_time(DateUtil.now());
|
||||||
workorder.setReal_qty(null);
|
workorder.setReal_qty(null);
|
||||||
this.updateById(workorder);
|
this.updateById(workorder);
|
||||||
reportRecordService.update(new UpdateWrapper<PdmProduceWorkorderrecord>().set("report_qty", param.getBigDecimal("report_qty")).set("report_status", ReportEnum.REPORT_STATUS.code("报工")).set("operatetime_end", DateUtil.now()).set("needproduct_qty", Math.max(0, workorder.getPlan_qty().intValue() - workorder.getReport_qty().intValue())).eq("macoperate_id", one.getMacoperate_id()));
|
reportRecordService.update(new UpdateWrapper<PdmProduceWorkorderrecord>().set("report_qty", param.getBigDecimal("report_qty")).set("report_status", ReportEnum.REPORT_STATUS.code("报工")).set("operatetime_end", DateUtil.now()).set("needproduct_qty", Math.max(0, workorder.getPlan_qty().intValue() - workorder.getReport_qty().intValue())).eq("macoperate_id", one.getMacoperate_id()));
|
||||||
|
|||||||
@@ -148,7 +148,11 @@ public class SpeFullTask extends AbstractAcsTask {
|
|||||||
task.put("create_time", DateUtil.now());
|
task.put("create_time", DateUtil.now());
|
||||||
task.put("update_time", DateUtil.now());
|
task.put("update_time", DateUtil.now());
|
||||||
task.put("agv_system_type", AcsTaskEnum.AGV_SYSTEM_NB.getCode());
|
task.put("agv_system_type", AcsTaskEnum.AGV_SYSTEM_NB.getCode());
|
||||||
task.put("priority", "1");}
|
task.put("priority", "1");
|
||||||
|
if (task.getString("point_code1").contains("WXXL")&&form.getString("type").equals(AcsTaskEnum.TASK_PRODUCT_MAC.getCode())){
|
||||||
|
task.put("priority", "5");
|
||||||
|
}
|
||||||
|
}
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -249,7 +249,7 @@
|
|||||||
type="success"
|
type="success"
|
||||||
@click="suspend(crud.selections)"
|
@click="suspend(crud.selections)"
|
||||||
>
|
>
|
||||||
暂停
|
报工
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
slot="right"
|
slot="right"
|
||||||
@@ -713,6 +713,11 @@
|
|||||||
label="实际结束时间"
|
label="实际结束时间"
|
||||||
prop="realproduceend_date"
|
prop="realproduceend_date"
|
||||||
/>
|
/>
|
||||||
|
<el-table-column
|
||||||
|
width="160"
|
||||||
|
label="报工时间"
|
||||||
|
prop="stop_time"
|
||||||
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
width="160"
|
width="160"
|
||||||
:formatter="dateformat"
|
:formatter="dateformat"
|
||||||
@@ -840,6 +845,7 @@ const defaultForm = {
|
|||||||
update_id: null,
|
update_id: null,
|
||||||
update_name: null,
|
update_name: null,
|
||||||
update_time: null,
|
update_time: null,
|
||||||
|
stop_time: null,
|
||||||
is_delete: null
|
is_delete: null
|
||||||
}
|
}
|
||||||
export default {
|
export default {
|
||||||
@@ -966,7 +972,7 @@ export default {
|
|||||||
suspendreq(rows) {
|
suspendreq(rows) {
|
||||||
rows[0].report_qty = this.reportForm.report_qty
|
rows[0].report_qty = this.reportForm.report_qty
|
||||||
crudProduceshiftorder.report(rows[0]).then(res => {
|
crudProduceshiftorder.report(rows[0]).then(res => {
|
||||||
this.crud.notify('暂停成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
this.crud.notify('报工成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -189,6 +189,7 @@
|
|||||||
<span>{{ parseTime(scope.row.update_time) }}</span>
|
<span>{{ parseTime(scope.row.update_time) }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column prop="priority" label="任务优先级" min-width="100" show-overflow-tooltip />
|
||||||
<el-table-column prop="task_step" label="任务执行步骤" min-width="100" show-overflow-tooltip />
|
<el-table-column prop="task_step" label="任务执行步骤" min-width="100" show-overflow-tooltip />
|
||||||
<el-table-column
|
<el-table-column
|
||||||
v-permission="['admin','instruction:edit','instruction:del']"
|
v-permission="['admin','instruction:edit','instruction:del']"
|
||||||
|
|||||||
Reference in New Issue
Block a user