代码更新
This commit is contained in:
@@ -128,14 +128,14 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
|||||||
String now = DateUtil.now();
|
String now = DateUtil.now();
|
||||||
WQLObject wo = WQLObject.getWQLObject("MPS_BD_ProduceShiftOrder");
|
WQLObject wo = WQLObject.getWQLObject("MPS_BD_ProduceShiftOrder");
|
||||||
JSONObject map = new JSONObject();
|
JSONObject map = new JSONObject();
|
||||||
map.put("produceorder_id", ext_order_id);
|
map.put("workorder_id", ext_order_id);
|
||||||
map.put("order_status", "04");
|
map.put("order_status", "04");
|
||||||
map.put("update_optid", 1111111111);
|
map.put("update_optid", 1111111111);
|
||||||
map.put("device_id", "");
|
map.put("device_id", "");
|
||||||
map.put("update_optname", "acs");
|
map.put("update_optname", "acs");
|
||||||
map.put("update_time", now);
|
map.put("update_time", now);
|
||||||
map.put("realproduceend_date", now);
|
map.put("realproduceend_date", now);
|
||||||
wo.update(map, "produceorder_id = '" + ext_order_id + "'");
|
wo.update(map, "workorder_id = '" + ext_order_id + "'");
|
||||||
JSONObject result = new JSONObject();
|
JSONObject result = new JSONObject();
|
||||||
result.put("status", HttpStatus.OK.value());
|
result.put("status", HttpStatus.OK.value());
|
||||||
result.put("message", "任务状态反馈成功!");
|
result.put("message", "任务状态反馈成功!");
|
||||||
|
|||||||
@@ -32,10 +32,10 @@ public interface ProduceshiftorderService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据ID查询
|
* 根据ID查询
|
||||||
* @param produceorder_id ID
|
* @param workorder_id ID
|
||||||
* @return Produceshiftorder
|
* @return Produceshiftorder
|
||||||
*/
|
*/
|
||||||
ProduceshiftorderDto findById(Long produceorder_id);
|
ProduceshiftorderDto findById(Long workorder_id);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据编码查询
|
* 根据编码查询
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ public class ProduceshiftorderDto implements Serializable {
|
|||||||
* 防止精度丢失
|
* 防止精度丢失
|
||||||
*/
|
*/
|
||||||
@JsonSerialize(using = ToStringSerializer.class)
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
private Long produceorder_id;
|
private Long workorder_id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生产班次工单编号
|
* 生产班次工单编号
|
||||||
|
|||||||
@@ -90,9 +90,9 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ProduceshiftorderDto findById(Long produceorder_id) {
|
public ProduceshiftorderDto findById(Long workorder_id) {
|
||||||
WQLObject wo = WQLObject.getWQLObject("mps_bd_produceshiftorder");
|
WQLObject wo = WQLObject.getWQLObject("mps_bd_produceshiftorder");
|
||||||
JSONObject json = wo.query("produceorder_id = '" + produceorder_id + "'").uniqueResult(0);
|
JSONObject json = wo.query("workorder_id = '" + workorder_id + "'").uniqueResult(0);
|
||||||
if (ObjectUtil.isNotEmpty(json)) {
|
if (ObjectUtil.isNotEmpty(json)) {
|
||||||
return json.toJavaObject(ProduceshiftorderDto.class);
|
return json.toJavaObject(ProduceshiftorderDto.class);
|
||||||
}
|
}
|
||||||
@@ -162,9 +162,9 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
String now = DateUtil.now();
|
String now = DateUtil.now();
|
||||||
|
|
||||||
WQLObject wo = WQLObject.getWQLObject("mps_bd_produceshiftorder");
|
WQLObject wo = WQLObject.getWQLObject("mps_bd_produceshiftorder");
|
||||||
for (Long produceorder_id : ids) {
|
for (Long workorder_id : ids) {
|
||||||
JSONObject param = new JSONObject();
|
JSONObject param = new JSONObject();
|
||||||
param.put("produceorder_id", String.valueOf(produceorder_id));
|
param.put("workorder_id", String.valueOf(workorder_id));
|
||||||
param.put("is_delete", "1");
|
param.put("is_delete", "1");
|
||||||
param.put("update_optid", currentUserId);
|
param.put("update_optid", currentUserId);
|
||||||
param.put("update_optname", nickName);
|
param.put("update_optname", nickName);
|
||||||
@@ -181,7 +181,7 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
String now = DateUtil.now();
|
String now = DateUtil.now();
|
||||||
|
|
||||||
WQLObject wo = WQLObject.getWQLObject("mps_bd_produceshiftorder");
|
WQLObject wo = WQLObject.getWQLObject("mps_bd_produceshiftorder");
|
||||||
JSONObject json = wo.query("produceorder_id = '" + param.getString("produceorder_id") + "'").uniqueResult(0);
|
JSONObject json = wo.query("workorder_id = '" + param.getString("workorder_id") + "'").uniqueResult(0);
|
||||||
if (ObjectUtil.isEmpty(json.getString("device_id"))) throw new BadRequestException("请先绑定设备");
|
if (ObjectUtil.isEmpty(json.getString("device_id"))) throw new BadRequestException("请先绑定设备");
|
||||||
|
|
||||||
JSONArray orderArr = wo.query("device_id = '" + param.getString("device_id") + "' and order_status = '02'").getResultJSONArray(0);
|
JSONArray orderArr = wo.query("device_id = '" + param.getString("device_id") + "' and order_status = '02'").getResultJSONArray(0);
|
||||||
@@ -250,7 +250,7 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
JSONObject device = wo_device.query("device_id = '" + device_id + "'").uniqueResult(0);
|
JSONObject device = wo_device.query("device_id = '" + device_id + "'").uniqueResult(0);
|
||||||
String device_code = device.getString("device_code");
|
String device_code = device.getString("device_code");
|
||||||
JSONObject row = param.getJSONObject("row");
|
JSONObject row = param.getJSONObject("row");
|
||||||
String produceorder_id = row.getString("produceorder_id");
|
String workorder_id = row.getString("workorder_id");
|
||||||
String workprocedure_id = row.getString("workprocedure_id");
|
String workprocedure_id = row.getString("workprocedure_id");
|
||||||
String produceorder_code = row.getString("produceorder_code");
|
String produceorder_code = row.getString("produceorder_code");
|
||||||
String material_id = row.getString("material_id");
|
String material_id = row.getString("material_id");
|
||||||
@@ -262,9 +262,9 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
String order_status = row.getString("order_status");
|
String order_status = row.getString("order_status");
|
||||||
//开工时修改生产班次工单表 生产设备、以及工单状态
|
//开工时修改生产班次工单表 生产设备、以及工单状态
|
||||||
WQLObject wo = WQLObject.getWQLObject("MPS_BD_ProduceShiftOrder");
|
WQLObject wo = WQLObject.getWQLObject("MPS_BD_ProduceShiftOrder");
|
||||||
JSONObject jsonObject1 = wo.query("produceorder_id = '" + produceorder_id + "'").uniqueResult(0);
|
JSONObject jsonObject1 = wo.query("workorder_id = '" + workorder_id + "'").uniqueResult(0);
|
||||||
JSONObject produceorderMap = new JSONObject();
|
JSONObject produceorderMap = new JSONObject();
|
||||||
produceorderMap.put("produceorder_id", produceorder_id);
|
produceorderMap.put("workorder_id", workorder_id);
|
||||||
produceorderMap.put("device_id", device_id);
|
produceorderMap.put("device_id", device_id);
|
||||||
produceorderMap.put("order_status", "02");
|
produceorderMap.put("order_status", "02");
|
||||||
produceorderMap.put("update_optid", currentUserId);
|
produceorderMap.put("update_optid", currentUserId);
|
||||||
@@ -280,11 +280,11 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
recordMap.put("macoperate_id", IdUtil.getSnowflake(1, 1).nextId());
|
recordMap.put("macoperate_id", IdUtil.getSnowflake(1, 1).nextId());
|
||||||
recordMap.put("device_id", device_id);
|
recordMap.put("device_id", device_id);
|
||||||
recordMap.put("workprocedure_id", workprocedure_id);
|
recordMap.put("workprocedure_id", workprocedure_id);
|
||||||
recordMap.put("produceorder_id", produceorder_id);
|
recordMap.put("workorder_id", workorder_id);
|
||||||
recordMap.put("produceorder_code", produceorder_code);
|
recordMap.put("produceorder_code", produceorder_code);
|
||||||
recordMap.put("init_qty", jsonObject1.getString("real_qty"));
|
recordMap.put("init_qty", jsonObject1.getString("real_qty"));
|
||||||
//填写生产记录表中的生产数量时,先判断是否已经生产过了,如果没有生产过,就将工单记录表中的计划数量付给记录表中的生产数量
|
//填写生产记录表中的生产数量时,先判断是否已经生产过了,如果没有生产过,就将工单记录表中的计划数量付给记录表中的生产数量
|
||||||
final JSONArray alreadyPro = wo_record.query("produceorder_id = '" + produceorder_id + "'").getResultJSONArray(0);
|
final JSONArray alreadyPro = wo_record.query("workorder_id = '" + workorder_id + "'").getResultJSONArray(0);
|
||||||
if (ObjectUtil.isEmpty(alreadyPro)) {
|
if (ObjectUtil.isEmpty(alreadyPro)) {
|
||||||
recordMap.put("produce_qty", plan_qty);
|
recordMap.put("produce_qty", plan_qty);
|
||||||
//同时向acs系统下发工单 问题是现在一个工单分多次执行,现在是每开工一次,向acs发送一次工单
|
//同时向acs系统下发工单 问题是现在一个工单分多次执行,现在是每开工一次,向acs发送一次工单
|
||||||
@@ -293,7 +293,7 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
// TODO
|
// TODO
|
||||||
JSONArray array = new JSONArray();
|
JSONArray array = new JSONArray();
|
||||||
JSONObject acsObj = new JSONObject();
|
JSONObject acsObj = new JSONObject();
|
||||||
acsObj.put("ext_order_id",produceorder_id);
|
acsObj.put("ext_order_id",workorder_id);
|
||||||
acsObj.put("is_needmove",is_needmove);
|
acsObj.put("is_needmove",is_needmove);
|
||||||
acsObj.put("order_code",produceorder_code);
|
acsObj.put("order_code",produceorder_code);
|
||||||
acsObj.put("qty",plan_qty);
|
acsObj.put("qty",plan_qty);
|
||||||
@@ -319,7 +319,7 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
// TODO
|
// TODO
|
||||||
JSONArray array = new JSONArray();
|
JSONArray array = new JSONArray();
|
||||||
JSONObject map = new JSONObject();
|
JSONObject map = new JSONObject();
|
||||||
map.put("ext_order_id",produceorder_id);
|
map.put("ext_order_id",workorder_id);
|
||||||
map.put("type","2");
|
map.put("type","2");
|
||||||
array.add(map);
|
array.add(map);
|
||||||
wmsToAcsService.orderStatusUpdate(array);
|
wmsToAcsService.orderStatusUpdate(array);
|
||||||
@@ -337,12 +337,12 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
String now = DateUtil.now();
|
String now = DateUtil.now();
|
||||||
final String report_qty = param.getString("report_qty");
|
final String report_qty = param.getString("report_qty");
|
||||||
final JSONObject row = param.getJSONObject("row");
|
final JSONObject row = param.getJSONObject("row");
|
||||||
final String produceorder_id = row.getString("produceorder_id");
|
final String workorder_id = row.getString("workorder_id");
|
||||||
//报工时工单的工单状态为暂停,报工数量为这条工单上次加这次报工数量的和,也就是这条工单每次记录的和
|
//报工时工单的工单状态为暂停,报工数量为这条工单上次加这次报工数量的和,也就是这条工单每次记录的和
|
||||||
WQLObject wo = WQLObject.getWQLObject("MPS_BD_ProduceShiftOrder");
|
WQLObject wo = WQLObject.getWQLObject("MPS_BD_ProduceShiftOrder");
|
||||||
JSONObject jsonObject = wo.query("produceorder_id = '" + produceorder_id + "'").uniqueResult(0);
|
JSONObject jsonObject = wo.query("workorder_id = '" + workorder_id + "'").uniqueResult(0);
|
||||||
JSONObject produceorderMap = new JSONObject();
|
JSONObject produceorderMap = new JSONObject();
|
||||||
produceorderMap.put("produceorder_id",produceorder_id);
|
produceorderMap.put("workorder_id",workorder_id);
|
||||||
if (row.getString("report_qty").equals("0") || StrUtil.isEmpty(row.getString("report_qty"))){
|
if (row.getString("report_qty").equals("0") || StrUtil.isEmpty(row.getString("report_qty"))){
|
||||||
produceorderMap.put("report_qty",report_qty);
|
produceorderMap.put("report_qty",report_qty);
|
||||||
}else {
|
}else {
|
||||||
@@ -357,7 +357,7 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
//同时修改这条工单对应的记录表中最新的一条数据的报工数量
|
//同时修改这条工单对应的记录表中最新的一条数据的报工数量
|
||||||
WQLObject wo_record = WQLObject.getWQLObject("MPS_BD_MacOperateRecord");
|
WQLObject wo_record = WQLObject.getWQLObject("MPS_BD_MacOperateRecord");
|
||||||
//获取最新的工单的对应记录信息
|
//获取最新的工单的对应记录信息
|
||||||
JSONObject newRecord = wo_record.query("produceorder_id = '"+produceorder_id+"' and (operatetime_end is null or operatetime_end = '')").uniqueResult(0);
|
JSONObject newRecord = wo_record.query("workorder_id = '"+workorder_id+"' and (operatetime_end is null or operatetime_end = '')").uniqueResult(0);
|
||||||
newRecord.put("report_qty",report_qty);
|
newRecord.put("report_qty",report_qty);
|
||||||
newRecord.put("finish_qty",jsonObject.getString("real_qty"));
|
newRecord.put("finish_qty",jsonObject.getString("real_qty"));
|
||||||
Integer finishproduct_qty = Integer.parseInt(jsonObject.getString("real_qty")) - Integer.parseInt(newRecord.getString("init_qty"));
|
Integer finishproduct_qty = Integer.parseInt(jsonObject.getString("real_qty")) - Integer.parseInt(newRecord.getString("init_qty"));
|
||||||
@@ -369,7 +369,7 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
// TODO
|
// TODO
|
||||||
JSONArray array = new JSONArray();
|
JSONArray array = new JSONArray();
|
||||||
JSONObject map = new JSONObject();
|
JSONObject map = new JSONObject();
|
||||||
map.put("ext_order_id",produceorder_id);
|
map.put("ext_order_id",workorder_id);
|
||||||
map.put("type","1");
|
map.put("type","1");
|
||||||
array.add(map);
|
array.add(map);
|
||||||
wmsToAcsService.orderStatusUpdate(array);
|
wmsToAcsService.orderStatusUpdate(array);
|
||||||
@@ -382,10 +382,10 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
String nickName = SecurityUtils.getCurrentNickName();
|
String nickName = SecurityUtils.getCurrentNickName();
|
||||||
String now = DateUtil.now();
|
String now = DateUtil.now();
|
||||||
JSONObject row = param.getJSONObject("row");
|
JSONObject row = param.getJSONObject("row");
|
||||||
String produceorder_id = row.getString("produceorder_id");
|
String workorder_id = row.getString("workorder_id");
|
||||||
WQLObject wo = WQLObject.getWQLObject("MPS_BD_ProduceShiftOrder");
|
WQLObject wo = WQLObject.getWQLObject("MPS_BD_ProduceShiftOrder");
|
||||||
JSONObject produceorderMap = new JSONObject();
|
JSONObject produceorderMap = new JSONObject();
|
||||||
produceorderMap.put("produceorder_id",produceorder_id);
|
produceorderMap.put("workorder_id",workorder_id);
|
||||||
produceorderMap.put("order_status","04");
|
produceorderMap.put("order_status","04");
|
||||||
produceorderMap.put("update_optid", currentUserId);
|
produceorderMap.put("update_optid", currentUserId);
|
||||||
produceorderMap.put("device_id", null);
|
produceorderMap.put("device_id", null);
|
||||||
@@ -397,7 +397,7 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
// TODO
|
// TODO
|
||||||
JSONArray array = new JSONArray();
|
JSONArray array = new JSONArray();
|
||||||
JSONObject map = new JSONObject();
|
JSONObject map = new JSONObject();
|
||||||
map.put("ext_order_id",produceorder_id);
|
map.put("ext_order_id",workorder_id);
|
||||||
map.put("type","3");
|
map.put("type","3");
|
||||||
array.add(map);
|
array.add(map);
|
||||||
wmsToAcsService.orderStatusUpdate(array);
|
wmsToAcsService.orderStatusUpdate(array);
|
||||||
@@ -405,12 +405,12 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JSONObject getReportWork(JSONObject param) {
|
public JSONObject getReportWork(JSONObject param) {
|
||||||
String produceorder_id = param.getString("produceorder_id");
|
String workorder_id = param.getString("workorder_id");
|
||||||
WQLObject wo = WQLObject.getWQLObject("MPS_BD_ProduceShiftOrder");
|
WQLObject wo = WQLObject.getWQLObject("MPS_BD_ProduceShiftOrder");
|
||||||
JSONObject jsonProduceShiftOrder = wo.query("produceorder_id = '" + produceorder_id + "'").uniqueResult(0);
|
JSONObject jsonProduceShiftOrder = wo.query("workorder_id = '" + workorder_id + "'").uniqueResult(0);
|
||||||
WQLObject wo_record = WQLObject.getWQLObject("MPS_BD_MacOperateRecord");
|
WQLObject wo_record = WQLObject.getWQLObject("MPS_BD_MacOperateRecord");
|
||||||
//获取最新的工单的对应记录信息
|
//获取最新的工单的对应记录信息
|
||||||
JSONObject jsonObject = wo_record.query("produceorder_id = '"+produceorder_id+"' and (operatetime_end is null or operatetime_end = '')").uniqueResult(0);
|
JSONObject jsonObject = wo_record.query("workorder_id = '"+workorder_id+"' and (operatetime_end is null or operatetime_end = '')").uniqueResult(0);
|
||||||
String finish_qty = jsonProduceShiftOrder.getString("real_qty");
|
String finish_qty = jsonProduceShiftOrder.getString("real_qty");
|
||||||
jsonObject.put("finish_qty",finish_qty);
|
jsonObject.put("finish_qty",finish_qty);
|
||||||
Integer finishproduct_qty = Integer.parseInt(finish_qty) - Integer.parseInt(jsonObject.getString("init_qty"));
|
Integer finishproduct_qty = Integer.parseInt(finish_qty) - Integer.parseInt(jsonObject.getString("init_qty"));
|
||||||
@@ -426,10 +426,10 @@ public class ProduceshiftorderServiceImpl implements ProduceshiftorderService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JSONArray getDtl(JSONObject param) {
|
public JSONArray getDtl(JSONObject param) {
|
||||||
final String produceorder_id = param.getString("produceorder_id");
|
final String workorder_id = param.getString("workorder_id");
|
||||||
JSONObject map = new JSONObject();
|
JSONObject map = new JSONObject();
|
||||||
map.put("flag","5");
|
map.put("flag","5");
|
||||||
map.put("produceorder_id",produceorder_id);
|
map.put("workorder_id",workorder_id);
|
||||||
JSONArray resultJSONArray = WQL.getWO("MPS_PRODUCEDURE001").addParamMap(map).process().getResultJSONArray(0);
|
JSONArray resultJSONArray = WQL.getWO("MPS_PRODUCEDURE001").addParamMap(map).process().getResultJSONArray(0);
|
||||||
return resultJSONArray;
|
return resultJSONArray;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
#################################################
|
#################################################
|
||||||
输入.flag TYPEAS s_string
|
输入.flag TYPEAS s_string
|
||||||
输入.jockey_id TYPEAS s_string
|
输入.jockey_id TYPEAS s_string
|
||||||
输入.produceorder_id TYPEAS s_string
|
输入.workorder_id TYPEAS s_string
|
||||||
输入.workprocedure_id TYPEAS s_string
|
输入.workprocedure_id TYPEAS s_string
|
||||||
输入.order_type_scode TYPEAS s_string
|
输入.order_type_scode TYPEAS s_string
|
||||||
输入.order_status TYPEAS s_string
|
输入.order_status TYPEAS s_string
|
||||||
@@ -165,7 +165,7 @@
|
|||||||
LEFT JOIN PDM_BI_Device device ON record.device_id = device.device_id
|
LEFT JOIN PDM_BI_Device device ON record.device_id = device.device_id
|
||||||
LEFT JOIN sys_user user ON user.user_id = record.jockey_id
|
LEFT JOIN sys_user user ON user.user_id = record.jockey_id
|
||||||
WHERE
|
WHERE
|
||||||
record.produceorder_id = 输入.produceorder_id
|
record.workorder_id = 输入.workorder_id
|
||||||
order by
|
order by
|
||||||
record.operatetime_start
|
record.operatetime_start
|
||||||
ENDSELECT
|
ENDSELECT
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -211,7 +211,7 @@ export default {
|
|||||||
classes3: [],
|
classes3: [],
|
||||||
form: {
|
form: {
|
||||||
sale_id: null,
|
sale_id: null,
|
||||||
produceorder_id: null,
|
workorder_id: null,
|
||||||
produceorder_code: null,
|
produceorder_code: null,
|
||||||
producedeviceorder_code: null,
|
producedeviceorder_code: null,
|
||||||
shift_type_scode: null,
|
shift_type_scode: null,
|
||||||
@@ -262,7 +262,7 @@ export default {
|
|||||||
this.getworkprocedure()
|
this.getworkprocedure()
|
||||||
this.initClass3()
|
this.initClass3()
|
||||||
this.is_null()
|
this.is_null()
|
||||||
crudProduceshiftorder.getDtl({ produceorder_id: this.form.produceorder_id }).then(res => {
|
crudProduceshiftorder.getDtl({ workorder_id: this.form.workorder_id }).then(res => {
|
||||||
this.tableData = res
|
this.tableData = res
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -238,7 +238,7 @@
|
|||||||
@selection-change="crud.selectionChangeHandler"
|
@selection-change="crud.selectionChangeHandler"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" />
|
<el-table-column type="selection" width="55" />
|
||||||
<el-table-column v-if="false" prop="produceorder_id" label="生产班次工单标识" />
|
<el-table-column v-if="false" prop="workorder_id" label="生产班次工单标识" />
|
||||||
<el-table-column prop="produceorder_code" label="工单编号" width="140px">
|
<el-table-column prop="produceorder_code" label="工单编号" width="140px">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-link type="warning" @click="toView(scope.row)">{{ scope.row.produceorder_code }}</el-link>
|
<el-link type="warning" @click="toView(scope.row)">{{ scope.row.produceorder_code }}</el-link>
|
||||||
@@ -314,7 +314,7 @@ import ViewDialog from '@/views/wms/pdm/produce/ViewDialog'
|
|||||||
import DeviceDialog from '@/views/wms/pub/DeviceDialog'
|
import DeviceDialog from '@/views/wms/pub/DeviceDialog'
|
||||||
|
|
||||||
const defaultForm = {
|
const defaultForm = {
|
||||||
produceorder_id: null,
|
workorder_id: null,
|
||||||
produceorder_code: null,
|
produceorder_code: null,
|
||||||
producedeviceorder_code: null,
|
producedeviceorder_code: null,
|
||||||
shift_type_scode: '01',
|
shift_type_scode: '01',
|
||||||
@@ -357,7 +357,7 @@ export default {
|
|||||||
dicts: ['PDM_BI_SHIFTTYPE', 'MPS_BD_ORDERSTATUS', 'is_used', 'PDM_BI_ORDERTYPE', 'IS_OR_NOT', 'storagevehicle_type'],
|
dicts: ['PDM_BI_SHIFTTYPE', 'MPS_BD_ORDERSTATUS', 'is_used', 'PDM_BI_ORDERTYPE', 'IS_OR_NOT', 'storagevehicle_type'],
|
||||||
cruds() {
|
cruds() {
|
||||||
return CRUD({
|
return CRUD({
|
||||||
title: '工单', url: 'api/produceshiftorder', idField: 'produceorder_id', sort: 'produceorder_id,desc',
|
title: '工单', url: 'api/produceshiftorder', idField: 'workorder_id', sort: 'workorder_id,desc',
|
||||||
optShow: {
|
optShow: {
|
||||||
add: true,
|
add: true,
|
||||||
edit: false,
|
edit: false,
|
||||||
@@ -471,7 +471,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 下发
|
// 下发
|
||||||
submits(row) {
|
submits(row) {
|
||||||
crudProduceshiftorder.submits({ produceorder_id: row.produceorder_id }).then(res => {
|
crudProduceshiftorder.submits({ workorder_id: row.workorder_id }).then(res => {
|
||||||
this.crud.notify('下发成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
this.crud.notify('下发成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
|
||||||
this.crud.toQuery()
|
this.crud.toQuery()
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user