Commit da54d548 authored by Facius's avatar Facius

improve: 【前后台】流水号限制长度8位数字,输入框提示:请填写交易流水号后8位数字

parent fa1d7492
<!-- ******************* 输入框 ******************* -->
<template>
<view :style="{ width: fieldsWidth }">
<view :style="{ width: fieldsWidth }" class="input-view-class">
<view class="tip-span" v-if="showTip">({{placeholderText}})</view>
<u-input
:type="type"
class="input-item"
......@@ -16,6 +17,7 @@
:cursor-spacing="10"
:disabled="isDisabled"
hold-keyboard
@blur="showTip=dataValue.length < maxlength && isESerialNum"
/>
<view class="content" v-if="slotContent">
<text class="txt">{{ slotContent }}</text>
......@@ -52,6 +54,7 @@ export default {
data() {
return {
inputType: 'text',
showTip: false,
}
},
computed: {
......@@ -105,6 +108,8 @@ export default {
</script>
<style lang="scss" scoped>
.input-view-class {
position: relative;
.input-item {
background: #f4f5f7;
}
......@@ -116,4 +121,13 @@ export default {
color: #999;
}
}
.tip-span {
position: absolute;
font-size: 28rpx;
color: #FA5A49;
right: 140rpx;
top: -74rpx;
}
}
</style>
......@@ -826,11 +826,9 @@ export default {
if (ele.required) {
panelResult.required++
let value = this.form[ele.fieldsName]
if (value && !Array.isArray(value)) {
// 非付款流水号 || 8位付款流水号
if (ele.fieldsName != 'eSerialNum' || value.length == 8) {
// "ele.fieldsName != 'eSerialNum' || value.length == 8" 意思是: "非付款流水号 || 8位付款流水号"
if (value && !Array.isArray(value) && (ele.fieldsName != 'eSerialNum' || value.length == 8)) {
panelResult.submitted++
}
} else if (value && Array.isArray(value) && value.length > 0) {
if (ele.fieldsName === 'materialList') {
let hasMate = false
......
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 to comment