Commit d03db929 by LJM

bug

parent 012850c8
...@@ -767,7 +767,8 @@ export default { ...@@ -767,7 +767,8 @@ export default {
} }
//【理货】、【一键理货】操作时,D/C 必填并且必须为四位数字 //【理货】、【一键理货】操作时,D/C 必填并且必须为四位数字
if (this.warehouse_id == 9) { if (this.warehouse_id == 9) {
if (this.formParams.date_code.length != 4) { const dcRegex = /^\d{4}$/; // 匹配四位数字
if (!dcRegex.test(this.formParams.date_code)) {
uni.showModal({ uni.showModal({
itle: '提示', itle: '提示',
content: 'D/C必须为四位数字', content: 'D/C必须为四位数字',
......
...@@ -162,19 +162,19 @@ ...@@ -162,19 +162,19 @@
<!-- 区分深圳自营和非深圳自营 --> <!-- 区分深圳自营和非深圳自营 -->
<template v-if="curr == 0"> <template v-if="curr == 0">
<view class="field-item row"> <view class="field-item row">
<view class="item row verCenter" style="flex: 0 0 100%;"> <view class="item row verCenter">
<text class="label">货品编码:</text> <text class="label">货品编码:</text>
<text class="tt" style="max-width: 100%;">{{ detail.goods_sn }}</text> <text class="tt" style="max-width: 100%;">{{ detail.goods_sn }}</text>
</view> </view>
<view class="item row verCenter" style="flex: 0 0 100%;" v-if="detail.sku_id > 0"> <view class="item row verCenter" v-if="detail.sku_id > 0">
<text class="label">自营货品ID:</text> <text class="label">自营货品ID:</text>
<text class="tt" style="max-width: 100%;">{{ detail.sku_id }}</text> <text class="tt" style="max-width: 100%;">{{ detail.sku_id }}</text>
</view> </view>
<view class="item row verCenter" style="flex: 0 0 100%;"> <view class="item row verCenter">
<text class="label">货品名称:</text> <text class="label">货品名称:</text>
<text class="tt" style="max-width: 100%;">{{ detail.goods_name }}</text> <text class="tt" style="max-width: 100%;">{{ detail.goods_name }}</text>
</view> </view>
<view class="item row verCenter" style="flex: 0 0 100%;"> <view class="item row verCenter">
<text class="label">入库批次号:</text> <text class="label">入库批次号:</text>
<text class="tt" style="max-width: 100%;">{{ detail.stock_in_batch_sn }}</text> <text class="tt" style="max-width: 100%;">{{ detail.stock_in_batch_sn }}</text>
</view> </view>
...@@ -182,7 +182,7 @@ ...@@ -182,7 +182,7 @@
<text class="label">客户物料编码:</text> <text class="label">客户物料编码:</text>
<text class="tt" style="max-width: 100%;">{{ detail.customer_material_number }}</text> <text class="tt" style="max-width: 100%;">{{ detail.customer_material_number }}</text>
</view> </view>
<view class="item row verCenter" style="flex: 0 0 100%;"> <view class="item row verCenter">
<text class="label">标准品牌:</text> <text class="label">标准品牌:</text>
<text class="tt" style="max-width: 100%;">{{ detail.brand_name }}</text> <text class="tt" style="max-width: 100%;">{{ detail.brand_name }}</text>
</view> </view>
...@@ -194,18 +194,26 @@ ...@@ -194,18 +194,26 @@
<text class="label">产 地:</text> <text class="label">产 地:</text>
<text class="tt">{{ detail.coo }}</text> <text class="tt">{{ detail.coo }}</text>
</view> </view>
<view class="item row verCenter" style="flex: 0 0 100%;"> <view class="item row verCenter">
<text class="label">货品品质:</text> <text class="label">货品品质:</text>
<text class="tt">{{ detail.quality_cn }}</text> <text class="tt">{{ detail.quality_cn }}</text>
</view> </view>
<view class="item row verCenter" style="flex: 0 0 100%;"> <view class="item row verCenter">
<text class="label">其他批次属性:</text> <text class="label">其他批次属性:</text>
<text class="tt">{{ detail.other_batch_attr }}</text> <text class="tt">{{ detail.other_batch_attr }}</text>
</view> </view>
<view class="item row verCenter" style="flex: 0 0 100%;"> <view class="item row verCenter">
<text class="label">客户:</text> <text class="label">客户:</text>
<text class="tt" style="max-width: 454rpx;">{{ detail.customer_name }}</text> <text class="tt" style="max-width: 454rpx;">{{ detail.customer_name }}</text>
</view> </view>
<view class="item row verCenter">
<text class="label">销售员:</text>
<text class="tt">{{ detail.sale_user }}</text>
</view>
<view class="item row verCenter">
<text class="label">采购员:</text>
<text class="tt">{{ detail.purchase_user }}</text>
</view>
<view class="item row verCenter" style="flex: 0 0 100%;"> <view class="item row verCenter" style="flex: 0 0 100%;">
<text class="label">供应商:</text> <text class="label">供应商:</text>
<text class="tt" style="max-width: 454rpx;">{{ detail.supplier_name }}</text> <text class="tt" style="max-width: 454rpx;">{{ detail.supplier_name }}</text>
......
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