feat: 更新版本号至1.3.23并新增真实库区选择器组件
refactor(warehouse-picker): 重构逻辑库区选择器组件 feat(actual-warehouse-picker): 新增真实库区选择器组件 fix(easycode.vue): 调整钢卷质量状态校验逻辑 style(search.vue): 优化表单样式和字段显示
This commit is contained in:
@@ -500,73 +500,11 @@
|
||||
this.$refs.shipPopup.open('bottom');
|
||||
this.currentAction = 'ship';
|
||||
this.coilDetail = coilRes.data
|
||||
|
||||
// uni.showModal({
|
||||
// cancelText: '取消',
|
||||
// confirmText: '确认',
|
||||
// title: '确定要将钢卷号为:' + coilRes.data.currentCoilNo + '发货吗?',
|
||||
// showCancel: true,
|
||||
// success: async (res) => {
|
||||
// console.log(res)
|
||||
// if (res.cancel) {
|
||||
// uni.showToast({
|
||||
// title: '已取消发货',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// return;
|
||||
// }
|
||||
// try {
|
||||
// // 判断钢卷的质量状态,必须是A+, A,A-, B+其中之一
|
||||
// if (!['A+', 'A', 'A-', 'B+'].includes(coilRes.data.qualityStatus)) {
|
||||
// uni.showToast({
|
||||
// title: '只能发货B+以上品质的钢卷',
|
||||
// icon: 'none'
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
// // 1. 更新钢卷状态为已发货
|
||||
// await exportCoil(coilRes.data.coilId);
|
||||
|
||||
// // 2. 插入一条已完成的待操作记录
|
||||
// await addPendingAction({
|
||||
// coilId: coilRes.data.coilId,
|
||||
// currentCoilNo: coilRes.data.currentCoilNo,
|
||||
// actionType: 402, // 402=发货
|
||||
// actionStatus: 2, // 直接标记为完成状态
|
||||
// scanTime: new Date(),
|
||||
// scanDevice: this.getDeviceInfo(),
|
||||
// priority: 0, // 0=普通
|
||||
// sourceType: 'scan',
|
||||
// warehouseId: coilRes.data.warehouseId,
|
||||
// processTime: new Date(),
|
||||
// completeTime: new Date()
|
||||
// });
|
||||
|
||||
// uni.showToast({
|
||||
// title: '发货成功',
|
||||
// icon: 'none'
|
||||
// });
|
||||
// } catch (error) {
|
||||
// console.error('发货失败:', error);
|
||||
// uni.showToast({
|
||||
// title: error?.message || '发货失败',
|
||||
// icon: 'none'
|
||||
// });
|
||||
// }
|
||||
// },
|
||||
// fail() {
|
||||
// uni.showToast({
|
||||
// title: '已取消发货',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// }
|
||||
// });
|
||||
// uni.hideLoading();
|
||||
},
|
||||
|
||||
async handleShipSubmit() {
|
||||
try {
|
||||
// 判断钢卷的质量状态,必须是A+, A,A-, B+其中之一
|
||||
// 判断钢卷的质量状态,必须是A+, A,A-, B+,B,B-其中之一
|
||||
if (!['A+', 'A', 'A-', 'B+', 'B', 'B-'].includes(this.coilDetail.qualityStatus)
|
||||
&& !(this.coilDetail.qualityStatus == null
|
||||
|| this.coilDetail.qualityStatus == undefined
|
||||
|
||||
Reference in New Issue
Block a user