|
|
@ -87,8 +87,11 @@ |
|
|
<el-col :span="12"><el-form-item label="WDR"> |
|
|
<el-col :span="12"><el-form-item label="WDR"> |
|
|
<el-input v-model="inboundItem.wdr" placeholder="请输入WDR" /> |
|
|
<el-input v-model="inboundItem.wdr" placeholder="请输入WDR" /> |
|
|
</el-form-item></el-col> |
|
|
</el-form-item></el-col> |
|
|
|
|
|
<el-col :span="12"><el-form-item label="高度(mm)"> |
|
|
|
|
|
<el-input v-model="inboundItem.height" type="number" placeholder="请输入高度" /> |
|
|
|
|
|
</el-form-item></el-col> |
|
|
<!-- 勾选框 --> |
|
|
<!-- 勾选框 --> |
|
|
<el-col :span="12" style="margin-top: 24px"> |
|
|
|
|
|
|
|
|
<el-col :span="12" style="margin-top: 0px"> |
|
|
<el-form-item> |
|
|
<el-form-item> |
|
|
<el-checkbox v-model="inboundItem.ifsAutoReport">Auto Report of Operation</el-checkbox> |
|
|
<el-checkbox v-model="inboundItem.ifsAutoReport">Auto Report of Operation</el-checkbox> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
@ -353,7 +356,8 @@ export default { |
|
|
wdr: '*', |
|
|
wdr: '*', |
|
|
engChgLevel: '1', |
|
|
engChgLevel: '1', |
|
|
ifsAutoReport: false, // Auto Report of Operation |
|
|
ifsAutoReport: false, // Auto Report of Operation |
|
|
ifsSimplifiedMaterial: true // Simplified Material Check默认选中 |
|
|
|
|
|
|
|
|
ifsSimplifiedMaterial: true, // Simplified Material Check默认选中 |
|
|
|
|
|
height: this.parseHeightFromPartNo(row.partNo) // 根据物料编码自动填充高度 |
|
|
}; |
|
|
}; |
|
|
this.processFlag = 2; |
|
|
this.processFlag = 2; |
|
|
} catch (error) { |
|
|
} catch (error) { |
|
|
@ -524,6 +528,7 @@ export default { |
|
|
uom: item.uom, |
|
|
uom: item.uom, |
|
|
lotSize: item.lotSize, |
|
|
lotSize: item.lotSize, |
|
|
qtyComplete: item.qtyComplete, |
|
|
qtyComplete: item.qtyComplete, |
|
|
|
|
|
height: item.height || null, // 高度(mm) |
|
|
// IFS参数 |
|
|
// IFS参数 |
|
|
ifsAutoReport: item.ifsAutoReport ? 'Yes' : 'No', |
|
|
ifsAutoReport: item.ifsAutoReport ? 'Yes' : 'No', |
|
|
ifsSimplifiedMaterial: item.ifsSimplifiedMaterial ? 'Yes' : 'No', |
|
|
ifsSimplifiedMaterial: item.ifsSimplifiedMaterial ? 'Yes' : 'No', |
|
|
@ -593,6 +598,26 @@ export default { |
|
|
this.$message.error(`打印失败: ${error.message || error}`) |
|
|
this.$message.error(`打印失败: ${error.message || error}`) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
/** |
|
|
|
|
|
* 从物料编码中解析高度 |
|
|
|
|
|
* 如果物料编码格式是 70004479-0030,则高度为30 |
|
|
|
|
|
* 如果物料编码格式是 70004479,则高度为空 |
|
|
|
|
|
*/ |
|
|
|
|
|
parseHeightFromPartNo(partNo) { |
|
|
|
|
|
if (!partNo) return ''; |
|
|
|
|
|
|
|
|
|
|
|
// 检查是否包含横杠 |
|
|
|
|
|
const parts = partNo.split('-'); |
|
|
|
|
|
if (parts.length >= 2) { |
|
|
|
|
|
// 取横杠后面的数字部分 |
|
|
|
|
|
const heightStr = parts[1]; |
|
|
|
|
|
// 转换为数字,去掉前导0 |
|
|
|
|
|
const height = parseInt(heightStr, 10); |
|
|
|
|
|
return isNaN(height) ? '' : height; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return ''; |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.$nextTick(() => this.$refs.scanCodeRef.focus()); |
|
|
this.$nextTick(() => this.$refs.scanCodeRef.focus()); |
|
|
|