Commit 3d57c311 by chenwq

fix: 修正膜类商品数量单位显示并优化调拨订单入库逻辑

- 将膜类商品的发货数量和入库数量单位从“卷”改为“米”,以符合业务实际计量方式
- 针对调拨订单(orderType == 1)优化入库流程:自动填充入库信息、隐藏操作按钮并显示只读数据
- 重构保存逻辑,根据订单类型区分处理采购订单和调拨订单的入库操作
- 调整界面显示条件,确保调拨订单不显示“添加入库记录”按钮
1 parent f7f5ccfc
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</div> </div>
<div> <div>
发货数量: 发货数量:
<span>{{ membraneTypeList.includes(detailInfo.goodsType) ? `${detailInfo.purchaseNumber}卷` : <span>{{ membraneTypeList.includes(detailInfo.goodsType) ? `${detailInfo.purchaseNumber}米` :
`${detailInfo.purchaseNumber}件` }}</span> `${detailInfo.purchaseNumber}件` }}</span>
<span class="lookNumber" @click="lookNumber(detailInfo.deliveryCardList)" v-if="detailInfo.deliveryCardList && detailInfo.deliveryCardList.length > 0">查看卡号</span> <span class="lookNumber" @click="lookNumber(detailInfo.deliveryCardList)" v-if="detailInfo.deliveryCardList && detailInfo.deliveryCardList.length > 0">查看卡号</span>
</div> </div>
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<span>{{ scope.scope.increaseStockNum || scope.scope.increaseStockNum == 0 ? <span>{{ scope.scope.increaseStockNum || scope.scope.increaseStockNum == 0 ?
(membraneTypeList.includes(scope.scope.goodsType) ? parseFloat(scope.scope.increaseStockNum / (membraneTypeList.includes(scope.scope.goodsType) ? parseFloat(scope.scope.increaseStockNum /
scope.scope.alternateUnits).toFixed(2) : parseFloat(scope.scope.increaseStockNum).toFixed(2)) + scope.scope.alternateUnits).toFixed(2) : parseFloat(scope.scope.increaseStockNum).toFixed(2)) +
(membraneTypeList.includes(scope.scope.goodsType) ? '卷' : '件') : '-' }}</span> (membraneTypeList.includes(scope.scope.goodsType) ? '米' : '件') : '-' }}</span>
</template> </template>
<template slot="film" slot-scope="scope"> <template slot="film" slot-scope="scope">
<div v-if="manageMode && membraneTypeList.includes(scope.scope.goodsType)"> <div v-if="manageMode && membraneTypeList.includes(scope.scope.goodsType)">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!