出库单据

This commit is contained in:
张怡蓉
2025-09-29 09:53:17 +08:00
parent a1e3180f77
commit 45019e66df
4 changed files with 35 additions and 45 deletions

View File

@@ -253,8 +253,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
d.price, d.remark, d.warehouse_id, d.out_id, d.bukechai_quantity, d.kechai_quantity, d.entryid, d.flat_quantity, d.fid, d.price, d.remark, d.warehouse_id, d.out_id, d.bukechai_quantity, d.kechai_quantity, d.entryid, d.flat_quantity, d.fid,
d.erp_stockout_id, d.unit, d.spec, d.supplier_id, d.cargo_no, d.create_time, d.print_date, d.erp_stockout_id, d.unit, d.spec, d.supplier_id, d.cargo_no, d.create_time, d.print_date,
d.voltage, d.power, d.phase, d.net_weight, d.gross_weight, d.distribution, d.model, d.order_id, d.voltage, d.power, d.phase, d.net_weight, d.gross_weight, d.distribution, d.model, d.order_id,
d.product_name p.product_name
from out_stockout_detail_finish d from out_stockout_detail_finish d left join bas_product p on d.product_id = p.product_id
where stockout_guid = #{stockoutGuid} where stockout_guid = #{stockoutGuid}
</select> </select>
</mapper> </mapper>

View File

@@ -257,8 +257,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
d.price, d.remark, d.warehouse_id, d.out_id, d.bukechai_quantity, d.kechai_quantity, d.entryid, d.flat_quantity, d.fid, d.price, d.remark, d.warehouse_id, d.out_id, d.bukechai_quantity, d.kechai_quantity, d.entryid, d.flat_quantity, d.fid,
d.erp_stockout_id, d.unit, d.spec, d.supplier_id, d.cargo_no, d.create_time, d.print_date, d.erp_stockout_id, d.unit, d.spec, d.supplier_id, d.cargo_no, d.create_time, d.print_date,
d.voltage, d.power, d.phase, d.net_weight, d.gross_weight, d.distribution, d.model, d.order_id, d.voltage, d.power, d.phase, d.net_weight, d.gross_weight, d.distribution, d.model, d.order_id,
d.product_name p.product_name
from out_stockout_detail d from out_stockout_detail d left join bas_product p on d.product_id = p.product_id
where d.stockout_guid = #{stockoutGuid} where d.stockout_guid = #{stockoutGuid}
</select> </select>
</mapper> </mapper>

View File

@@ -454,11 +454,14 @@ export default {
/** 数量变更 */ /** 数量变更 */
handleQuantityChange(row) { handleQuantityChange(row) {
// 如果没有初始数量,则设置初始数量 // 如果没有初始数量,则设置初始数量
console.log(row.quantityOrignal)
// 如果修改后的数量大于初始数量,给出提示并重置为当前值 // 如果修改后的数量大于初始数量,给出提示并重置为当前值
if (row.quantity > row.quantityOrignal) { if (row.quantity > row.quantityOrignal) {
this.$modal.msgError('修改后的数量不能大于初始数量'); this.$modal.msgError('修改后的数量不能大于初始数量');
row.quantity = row.quantityOrignal; // 使用 $nextTick 确保在下一个 DOM 更新周期中重置数量
this.$nextTick(() => {
this.$set(row, 'quantity', row.quantityOrignal);
});
} }
}, },
/** 保存单据 */ /** 保存单据 */

View File

@@ -127,45 +127,32 @@
<el-table v-loading="loading" :data="managementList" @selection-change="handleSelectionChange" max-height="650"> <el-table v-loading="loading" :data="managementList" @selection-change="handleSelectionChange" max-height="650">
<el-table-column type="selection" align="center" /> <el-table-column type="selection" align="center" />
<el-table-column width=120 label="库存ID" align="left" prop="stockId" /> <!-- 库存id --> <el-table-column label="库存编码" align="center" prop="stockId" />
<el-table-column width=120 label="货位ID" align="left" prop="cargoSpaceId" /> <!-- 货位id --> <el-table-column label="货位名称" align="center" prop="cargoSpaceName" />
<el-table-column width=120 label="货位名称" align="left" prop="cargoSpaceName" /> <!-- 货位id --> <el-table-column label="品号" align="center" prop="productId" />
<el-table-column width=120 label="库存状态" align="left" prop="stockStatus" ><!-- 库存状态 --> <el-table-column label="品名" align="center" prop="productName" />
<template slot-scope="scope"> <el-table-column label="批次号" align="center" prop="lotNo" />
<dict-tag :options="dict.type.stock_status" :value="scope.row.stockStatus"/> <el-table-column label="订单号" align="center" prop="orderId" />
</template> <el-table-column label="入库时间" align="center" prop="inDate" />
</el-table-column> <el-table-column label="数量" align="center" prop="quantity" />
<el-table-column width=120 label="货位状态" align="left" prop="cargoSpaceStockStatus"> <!-- 货位状态 --> <el-table-column label="作业编码" align="center" prop="jobId" />
<template slot-scope="scope"> <el-table-column label="出库数量" align="center" prop="outQuantity" />
<dict-tag :options="dict.type.cargo_space_status" :value="scope.row.cargoSpaceStockStatus"/> <el-table-column label="入库子单号" align="center" prop="stockinDetailId" />
</template> <el-table-column label="入库单号" align="center" prop="stockinId" />
</el-table-column> <el-table-column label="入库类型" align="center" prop="inType" />
<el-table-column width=120 label="是否锁定" align="left" prop="cargoSpaceStatus" ><!--是否锁定--> <el-table-column label="仓库编码" align="center" prop="warehouseId" />
<template slot-scope="scope"> <el-table-column label="规格" align="center" prop="spare1" />
<dict-tag :options="dict.type.cargo_space_lock_status" :value="scope.row.cargoSpaceStatus"/> <el-table-column label="单位" align="center" prop="spare3" />
</template> <el-table-column label="型号" align="center" prop="spare4" />
</el-table-column><!-- 货位状态 --> <el-table-column label="颜色" align="center" prop="spare5" />
<el-table-column width=120 label="物料状态" align="left" prop="productStatus"> <!-- 物料状态 --> <el-table-column label="序列号" align="center" prop="spare6" />
<template slot-scope="scope"> <el-table-column label="电压" align="center" prop="voltage" />
<dict-tag :options="dict.type.product_status" :value="scope.row.productStatus"/> <el-table-column label="功率" align="center" prop="power" />
</template> <el-table-column label="相位" align="center" prop="phase" />
</el-table-column> <el-table-column label="净重" align="center" prop="netWeight" />
<el-table-column width=120 label="物料ID" align="left" prop="extraField.productId" /> <!-- 物料Id --> <el-table-column label="毛重" align="center" prop="grossWeight" />
<el-table-column width=120 label="物料描述" align="left" prop="extraField.materialDesc" /> <!-- 物料描述 --> <el-table-column label="分销" align="center" prop="distribution" />
<el-table-column width=120 label="英文描述" align="left" prop="extraField.englishDesc" /> <!-- 物料英文描述 --> <el-table-column label="机型" align="center" prop="model" />
<el-table-column width=120 label="净重" align="right" prop="extraField.netWeight" /> <!-- 净重 -->
<el-table-column width=120 label="长" align="right" prop="extraField.length" /> <!-- 长 -->
<el-table-column width=120 label="宽" align="right" prop="extraField.width" /> <!-- 宽 -->
<el-table-column width=120 label="高" align="right" prop="extraField.height" /> <!-- 高 -->
<el-table-column width=120 label="体积" align="right" prop="extraField.volume" /> <!-- 体积 -->
<el-table-column width=120 label="库存数量" align="right" prop="quantity"/> <!-- 库存数量 -->
<el-table-column width=120 label="作业ID" align="left" prop="jobId" /> <!-- 作业ID -->
<el-table-column width=120 label="托盘条码" align="left" prop="trayCode" /> <!-- 托盘条码 -->
<el-table-column width=120 label="入库主单" align="left" prop="stockinId" /> <!-- 入库主单 -->
<el-table-column width=120 label="入库子单ID" align="left" prop="stockinDetailId" /> <!-- 入库子单id -->
<el-table-column width=120 label="入库类型" align="left" prop="inType" /> <!-- 入库类型 -->
<el-table-column width=120 label="仓库" align="left" prop="warehouseName" /> <!-- 仓库 -->
<el-table-column width=120 label="入库时间" align="left" prop="inDate" /> <!-- 入库时间 -->
<el-table-column width=120 label="操作" align="center" class-name="small-padding fixed-width"> <!-- 操作 --> <el-table-column width=120 label="操作" align="center" class-name="small-padding fixed-width"> <!-- 操作 -->
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button