Commit 88bf94a8 authored by 季圣华's avatar 季圣华
Browse files

优化商品条码校验

parent 1458c721
......@@ -189,7 +189,9 @@
columns: [
{
title: '条码', key: 'barCode', width: '30%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}',
validateRules: [{ required: true, message: '${title}不能为空' }]
validateRules: [{ required: true, message: '${title}不能为空' },
{ pattern: /^[1-9]\d*$/, message: '请输入零以上的正整数' },
{ pattern: /^\d{4,13}$/, message: '4到13位数字' }]
},
{
title: '单位', key: 'commodityUnit', width: '12%', type: FormTypes.input, defaultValue: '', placeholder: '请输入${title}',
......
......@@ -36,15 +36,15 @@
</a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="仓库权限">
<a-switch checked-children="启用" un-checked-children="关闭" v-model="depotFlagSwitch" @change="onDepotChange"></a-switch>
(如果启用则需要到用户列表配置
(如果启用则需要到<b>用户管理</b>进行<b>分配仓库</b>
</a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="客户权限">
<a-switch checked-children="启用" un-checked-children="关闭" v-model="customerFlagSwitch" @change="onCustomerChange"></a-switch>
(如果启用则需要到用户列表配置
(如果启用则需要到<b>用户管理</b>进行<b>分配客户</b>
</a-form-item>
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="负库存">
<a-switch checked-children="启用" un-checked-children="关闭" v-model="minusStockFlagSwitch" @change="onMinusStockChange"></a-switch>
(如果启用则支持负库存,批次商品除外)
(如果启用则单据支持负库存,批次商品除外)
</a-form-item>
</a-form>
</a-spin>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment