|
|
|
@ -342,7 +342,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { getInventoryStockList, createHandlingUnits, batchCreateHandlingUnits, printLabel, updatePrintQty } from '@/api/warehouse/ifsInventoryInit' |
|
|
|
import { getInventoryStockList, createHandlingUnits, batchCreateHandlingUnits, printLabel, updatePrintQty,getPartAttributeInfo } from '@/api/warehouse/ifsInventoryInit' |
|
|
|
import IfsInventoryUploadExcel from './ifsInventory_upload_excel.vue' |
|
|
|
|
|
|
|
export default { |
|
|
|
@ -520,8 +520,19 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
// 创建HU |
|
|
|
createHuHandle (row) { |
|
|
|
async createHuHandle (row) { |
|
|
|
this.createHuVisible = true |
|
|
|
let site = row.site; |
|
|
|
let partNo = row.partNo; |
|
|
|
let height = ''; |
|
|
|
try { |
|
|
|
const { data } = await getPartAttributeInfo({ site, partNo }); |
|
|
|
if (data.code === 0) { |
|
|
|
height = data.data.height; |
|
|
|
} |
|
|
|
} catch (error) { |
|
|
|
console.error('获取物料高度失败:', error); |
|
|
|
} |
|
|
|
this.createHuForm = { |
|
|
|
site: row.site, |
|
|
|
warehouseId: row.warehouseId, |
|
|
|
@ -536,7 +547,7 @@ export default { |
|
|
|
perPackageQty: '', |
|
|
|
packageCount: '', |
|
|
|
lastPackageQty: 0, |
|
|
|
height: '', |
|
|
|
height: height, |
|
|
|
autoCalculate: false // 默认自动计算 |
|
|
|
} |
|
|
|
this.$nextTick(() => { |
|
|
|
|