Commit cd7aaa13 by liangjianmin

feat(putaway): 添加拆货标识及库存类型展示

- 在拆货页面新增拆货标识,提升信息展示的完整性
- 更新样式以支持拆货标识的视觉展示
- 增加库存类型信息展示,增强用户对库存状态的理解
parent 8664e992
...@@ -89,6 +89,24 @@ ...@@ -89,6 +89,24 @@
display: block; display: block;
} }
.apart-tag {
position: absolute;
right: 10rpx;
top: 210rpx;
border: 2rpx solid #ff3b3b;
border-radius: 50rpx;
color: #ff3b3b;
font-size: 20rpx;
font-weight: bold;
padding: 8rpx 16rpx;
line-height: 1.3;
text {
display: block;
text-align: center;
}
}
&.curr { &.curr {
border: 1px solid #1969f9; border: 1px solid #1969f9;
...@@ -142,6 +160,7 @@ ...@@ -142,6 +160,7 @@
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
line-clamp: 2;
} }
.btn-box { .btn-box {
......
...@@ -59,6 +59,10 @@ ...@@ -59,6 +59,10 @@
<text class="label">货品名称:</text> <text class="label">货品名称:</text>
<text class="tt">{{ item.goods_name }}</text> <text class="tt">{{ item.goods_name }}</text>
</view> </view>
<view class="apart-tag col rowCenter verCenter" v-if="item.is_apart == 1 && item.purpose_type == 2">
<text></text>
<text>仓库留存</text>
</view>
<view class="text-item row verCenter"> <view class="text-item row verCenter">
<text class="label">标准品牌:</text> <text class="label">标准品牌:</text>
<text class="tt">{{ item.brand_name }}</text> <text class="tt">{{ item.brand_name }}</text>
...@@ -96,6 +100,10 @@ ...@@ -96,6 +100,10 @@
<text class="desc">{{ item.customer_name }}</text> <text class="desc">{{ item.customer_name }}</text>
</view> </view>
<view class="text-item row"> <view class="text-item row">
<text class="label">库存类型:</text>
<text class="tt" :style="{ color: item.stock_type === 3 ? '#f00' : '' }">{{ item.stock_type_val }}</text>
</view>
<view class="text-item row">
<text class="label">明细备注:</text> <text class="label">明细备注:</text>
<text class="desc" style="color: #f00;">{{ item.remark }}</text> <text class="desc" style="color: #f00;">{{ item.remark }}</text>
</view> </view>
......
...@@ -963,6 +963,20 @@ ...@@ -963,6 +963,20 @@
return false; return false;
} }
//若选择的用途是"销售用",则理货数量需≤销售需拆货数量
if (this.formParams.purpose_type == 1) {
var apart_todo_qty = Number(this.detail.apart_todo_qty) || 0;
var tally_qty = Number(this.formParams.tally_qty);
if (tally_qty > apart_todo_qty) {
uni.showModal({
title: '提示',
content: '理货数量不能大于销售需拆货数量,请核对',
showCancel: false
});
return false;
}
}
//【理货】、【一键理货】操作时,D/C 必填并且必须为四位数字 //【理货】、【一键理货】操作时,D/C 必填并且必须为四位数字
if (this.warehouse_id == 9) { if (this.warehouse_id == 9) {
const dcRegex = /^\d{4}$/; // 匹配四位数字 const dcRegex = /^\d{4}$/; // 匹配四位数字
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment