rev:组盘表字段移到点位表
This commit is contained in:
@@ -2,7 +2,7 @@ spring:
|
|||||||
freemarker:
|
freemarker:
|
||||||
check-template-location: false
|
check-template-location: false
|
||||||
profiles:
|
profiles:
|
||||||
active: prod
|
active: dev
|
||||||
jackson:
|
jackson:
|
||||||
time-zone: GMT+8
|
time-zone: GMT+8
|
||||||
data:
|
data:
|
||||||
@@ -88,6 +88,10 @@ mybatis-plus:
|
|||||||
global-config:
|
global-config:
|
||||||
db-config:
|
db-config:
|
||||||
id-type: INPUT
|
id-type: INPUT
|
||||||
|
banner: false
|
||||||
lucene:
|
lucene:
|
||||||
index:
|
index:
|
||||||
path: D:\lucene\index
|
path: D:\lucene\index
|
||||||
|
tlog:
|
||||||
|
enable-invoke-time-print: true
|
||||||
|
pattern: "[$preApp][$preIp][$spanId][$traceId]"
|
||||||
@@ -152,6 +152,19 @@ public class SchBasePoint implements Serializable {
|
|||||||
@ApiModelProperty(value = "放货等待点")
|
@ApiModelProperty(value = "放货等待点")
|
||||||
private String next_wait_point;
|
private String next_wait_point;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "回温时间(小时)")
|
||||||
|
private Integer standing_time;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "物料重量")
|
||||||
|
private BigDecimal material_weight;
|
||||||
|
@ApiModelProperty(value = "批次")
|
||||||
|
private String pcsn;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "入库时间")
|
||||||
|
private String instorage_time;
|
||||||
|
|
||||||
|
|
||||||
// @ApiModelProperty(value = "物料名称")
|
// @ApiModelProperty(value = "物料名称")
|
||||||
// private String product_description;
|
// private String product_description;
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -216,6 +216,9 @@ public class YCLCKTask extends AbstractTask {
|
|||||||
endPointObj.setVehicle_code2(taskObj.getVehicle_code2());
|
endPointObj.setVehicle_code2(taskObj.getVehicle_code2());
|
||||||
endPointObj.setVehicle_qty(1);
|
endPointObj.setVehicle_qty(1);
|
||||||
endPointObj.setUpdate_time(DateUtil.now());
|
endPointObj.setUpdate_time(DateUtil.now());
|
||||||
|
endPointObj.setStanding_time(Integer.valueOf(extGroupData.getString("time")));
|
||||||
|
endPointObj.setPcsn(extGroupData.getString("batch"));
|
||||||
|
endPointObj.setInstorage_time(DateUtil.now());
|
||||||
pointService.update(endPointObj);
|
pointService.update(endPointObj);
|
||||||
// 起点清空
|
// 起点清空
|
||||||
startPointObj.setVehicle_code("");
|
startPointObj.setVehicle_code("");
|
||||||
|
|||||||
@@ -200,6 +200,8 @@ public class YCLRKTask extends AbstractTask {
|
|||||||
endPointObj.setVehicle_code2(taskObj.getVehicle_code2());
|
endPointObj.setVehicle_code2(taskObj.getVehicle_code2());
|
||||||
endPointObj.setUpdate_time(DateUtil.now());
|
endPointObj.setUpdate_time(DateUtil.now());
|
||||||
endPointObj.setVehicle_qty(1);
|
endPointObj.setVehicle_qty(1);
|
||||||
|
endPointObj.setMaterial_weight(extGroupData.getBigDecimal("weight"));
|
||||||
|
endPointObj.setInstorage_time(DateUtil.now());
|
||||||
pointService.update(endPointObj);
|
pointService.update(endPointObj);
|
||||||
// 要把数据存到组盘表 -> 改造公共方法,返回id
|
// 要把数据存到组盘表 -> 改造公共方法,返回id
|
||||||
//组盘表需要关联外部mes晶棒数据,一对多
|
//组盘表需要关联外部mes晶棒数据,一对多
|
||||||
|
|||||||
@@ -41,10 +41,16 @@
|
|||||||
</update>
|
</update>
|
||||||
|
|
||||||
<select id="queryByMes" resultType="org.nl.wms.mes.domain.QPMES118ResponseBody">
|
<select id="queryByMes" resultType="org.nl.wms.mes.domain.QPMES118ResponseBody">
|
||||||
select p.region_code as WhaCode,p.point_code as WhlCode,p.vehicle_code as ParentPalletSN,p.vehicle_code2 as PalletSN,v.material_id as ProductName,v.material_weight as Qty,DATE_FORMAT(v.update_time, '%Y-%m-%d') as WorkDate,v.remark as CustomerName
|
SELECT
|
||||||
from sch_base_point p
|
p.region_code AS WhaCode,
|
||||||
LEFT JOIN sch_base_vehiclematerialgroup v
|
p.point_code AS WhlCode,
|
||||||
on p.vehicle_code2=v.vehicle_code
|
p.vehicle_code AS ParentPalletSN,
|
||||||
where p.region_code in('YL','YLHC','HW','HWK');
|
p.vehicle_code2 AS PalletSN,
|
||||||
|
p.material_weight AS Qty,
|
||||||
|
DATE_FORMAT( p.update_time, '%Y-%m-%d' ) AS WorkDate
|
||||||
|
FROM
|
||||||
|
sch_base_point p
|
||||||
|
WHERE
|
||||||
|
p.region_code IN ( 'YL', 'YLHC', 'HW', 'HWK' );
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@@ -64,7 +64,8 @@
|
|||||||
</span> -->
|
</span> -->
|
||||||
<el-button
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="submitSelectedRows">
|
@click="submitSelectedRows"
|
||||||
|
>
|
||||||
原材料出库
|
原材料出库
|
||||||
</el-button>
|
</el-button>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@@ -98,7 +99,7 @@ import { mount } from 'sortablejs'
|
|||||||
productname: {
|
productname: {
|
||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
},workorder_code: {
|
}, workorderCode: {
|
||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: ''
|
||||||
}
|
}
|
||||||
@@ -118,13 +119,13 @@ import { mount } from 'sortablejs'
|
|||||||
},
|
},
|
||||||
productname(newVal) {
|
productname(newVal) {
|
||||||
// 监听传递的值变化,并在变化时执行赋值操作
|
// 监听传递的值变化,并在变化时执行赋值操作
|
||||||
this.query.productname = newVal;
|
this.query.productname = newVal
|
||||||
this.executeQuery();
|
this.executeQuery()
|
||||||
},
|
},
|
||||||
workorder_code(newVal) {
|
workorder_code(newVal) {
|
||||||
// 监听传递的值变化,并在变化时执行赋值操作
|
// 监听传递的值变化,并在变化时执行赋值操作
|
||||||
this.query.workorder_code = newVal
|
this.query.workorder_code = newVal
|
||||||
this.workorder_code = newVal;
|
this.workorder_code = newVal
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -165,16 +166,16 @@ import { mount } from 'sortablejs'
|
|||||||
this.$emit('update:dialogShow', false)
|
this.$emit('update:dialogShow', false)
|
||||||
this.$emit('tableChanged', this.rows)
|
this.$emit('tableChanged', this.rows)
|
||||||
}, executeQuery() {
|
}, executeQuery() {
|
||||||
this.crud.toQuery();
|
this.crud.toQuery()
|
||||||
}, submitSelectedRows() {
|
}, submitSelectedRows() {
|
||||||
const selectedRows = this.$refs.table.selection;
|
const selectedRows = this.$refs.table.selection
|
||||||
if (selectedRows.length === 0) {
|
if (selectedRows.length === 0) {
|
||||||
this.$message.error('请至少选择一行数据');
|
this.$message.error('请至少选择一行数据')
|
||||||
return;
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取选中行的 point_code
|
// 获取选中行的 point_code
|
||||||
const pointCodes = selectedRows.map(row => row.point_code);
|
const pointCodes = selectedRows.map(row => row.point_code)
|
||||||
|
|
||||||
// 弹出输入回温时间和回温模式的对话框
|
// 弹出输入回温时间和回温模式的对话框
|
||||||
this.$prompt('请输入回温时间', '提示', {
|
this.$prompt('请输入回温时间', '提示', {
|
||||||
@@ -195,27 +196,27 @@ import { mount } from 'sortablejs'
|
|||||||
workorder_code: this.workorder_code // 使用workorder_code属性
|
workorder_code: this.workorder_code // 使用workorder_code属性
|
||||||
}).then(response => {
|
}).then(response => {
|
||||||
// 提交成功处理
|
// 提交成功处理
|
||||||
this.$message.success('提交成功!');
|
this.$message.success('提交成功!')
|
||||||
// 关闭当前对话框
|
// 关闭当前对话框
|
||||||
this.dialogVisible = false;
|
this.dialogVisible = false
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
// 提交失败处理
|
// 提交失败处理
|
||||||
this.$message.error('提交失败,请重试');
|
this.$message.error('提交失败,请重试')
|
||||||
});
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
// 用户点击了取消按钮
|
// 用户点击了取消按钮
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'info',
|
type: 'info',
|
||||||
message: '已取消提交操作'
|
message: '已取消提交操作'
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
// 用户点击了取消按钮
|
// 用户点击了取消按钮
|
||||||
this.$message({
|
this.$message({
|
||||||
type: 'info',
|
type: 'info',
|
||||||
message: '已取消提交操作'
|
message: '已取消提交操作'
|
||||||
});
|
})
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -227,4 +228,3 @@ import { mount } from 'sortablejs'
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user