Commit fb2055e6 by chenwq

fix: 移除快递单号验证并调整规格值输入限制

移除goodsOrder模块中快递单号的复杂验证逻辑,仅保留必填验证
调整pointProducts模块中规格名和规格值的输入长度限制为20字符,并将规格值最大数量从10个减少到8个
1 parent f891d994
...@@ -245,17 +245,7 @@ export default { ...@@ -245,17 +245,7 @@ export default {
batchForm: {}, batchForm: {},
batchEditRules: { batchEditRules: {
expressName: [{ required: true, message: '请输入快递公司', trigger: 'change' }], expressName: [{ required: true, message: '请输入快递公司', trigger: 'change' }],
expressNo: [ expressNo: [{ required: true, message: '请输入快递单号', trigger: 'change' }]
{ required: true, message: '请输入快递单号', trigger: 'change' },
{
validator: (rule, value, callback) => {
if (util.validationInput(value)) {
callback(new Error('请输入正确的快递单号'))
return false
}
callback()
}, trigger: 'change'
}]
}, },
batchEditForm: [ batchEditForm: [
{ {
......
...@@ -189,12 +189,12 @@ ...@@ -189,12 +189,12 @@
<GLDialog title="规格" mode="mid" :visible.sync="isSpescVisible" @onOk="handleSpescConfirm" @onCancel="handleSpescClose"> <GLDialog title="规格" mode="mid" :visible.sync="isSpescVisible" @onOk="handleSpescConfirm" @onCancel="handleSpescClose">
<el-form label-width="120px" :model="spescEditForm" :rules="spescRules" ref="spescRef"> <el-form label-width="120px" :model="spescEditForm" :rules="spescRules" ref="spescRef">
<el-form-item label="规格名:" prop="specificationName"> <el-form-item label="规格名:" prop="specificationName">
<el-input class="w-320" :size="size" maxlength="30" v-model="spescEditForm.specificationName" placeholder="请输入规格名"></el-input> <el-input class="w-320" :size="size" maxlength="20" v-model="spescEditForm.specificationName" placeholder="请输入规格名"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="规格值:" prop="platformSpecificationValueList"> <el-form-item label="规格值:" prop="platformSpecificationValueList">
<el-tag style="margin-right: 10px;" v-for="(tag, i) in spescEditForm.platformSpecificationValueList" :key="i" closable :type="tag.type" @close="handleSpescDelete(tag)">{{ tag.specificationValue }}</el-tag> <el-tag style="margin-right: 10px;" v-for="(tag, i) in spescEditForm.platformSpecificationValueList" :key="i" closable :type="tag.type" @close="handleSpescDelete(tag)">{{ tag.specificationValue }}</el-tag>
<el-input class="input-new-tag" v-if="specsInputVisible" v-model="spescInputVal" ref="saveSpescInput" maxlength="30" :size="size" @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm"></el-input> <el-input class="input-new-tag" v-if="specsInputVisible" v-model="spescInputVal" ref="saveSpescInput" maxlength="20" :size="size" @keyup.enter.native="handleInputConfirm" @blur="handleInputConfirm"></el-input>
<el-button v-else class="button-new-tag" size="small" @click="showInput">+ 规格值</el-button> <el-button v-else-if="!specsInputVisible && spescEditForm.platformSpecificationValueList && spescEditForm.platformSpecificationValueList.length < 8" class="button-new-tag" size="small" @click="showInput">+ 规格值</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</GLDialog> </GLDialog>
...@@ -726,9 +726,9 @@ export default { ...@@ -726,9 +726,9 @@ export default {
handleInputConfirm() { handleInputConfirm() {
let spescInputVal = this.spescInputVal let spescInputVal = this.spescInputVal
if (this.spescEditForm.platformSpecificationValueList.length == 10) { if (this.spescEditForm.platformSpecificationValueList.length == 8) {
this.$message({ this.$message({
message: '规格值最多不能超过10个', message: '规格值最多不能超过8个',
type: 'error', type: 'error',
customClass: 'message-Z-zinde' customClass: 'message-Z-zinde'
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!