名称规则更改

20240205
luoJunYong.123 3 years ago
parent 559390cf25
commit ee187bba78
  1. 9
      src/pages/manage/list/acceptanceDraft/invoice.vue
  2. 3
      src/pages/manage/list/business/deposit.vue
  3. 2
      src/pages/manage/list/business/transfer.vue
  4. 4
      src/pages/manage/list/business/withdrawal.vue
  5. 7
      src/pages/manage/list/personal/callDeposits/accountClosed.vue
  6. 7
      src/pages/manage/list/personal/callDeposits/openAccount.vue
  7. 5
      src/pages/manage/list/personal/currentAccount/openAccount.vue
  8. 8
      src/pages/manage/list/personal/currentAccount/settle.vue
  9. 7
      src/pages/manage/list/personal/timeDeposit/deposit.vue
  10. 7
      src/pages/manage/list/personal/timeDeposit/openAccount.vue
  11. 7
      src/pages/manage/list/personal/timeDeposit/withdrawal.vue
  12. 7
      src/pages/manage/list/personal/usefulPhrases/accountClosed.vue
  13. 7
      src/pages/manage/list/personal/usefulPhrases/continueDeposit.vue
  14. 7
      src/pages/manage/list/personal/usefulPhrases/openAccount.vue
  15. 7
      src/pages/manage/list/servicesAccount/passwordChange.vue
  16. 7
      src/pages/manage/list/servicesAccount/passwordLost.vue
  17. 7
      src/pages/manage/list/servicesAccount/relieveLost.vue
  18. 8
      src/utils/utilFunction.js
  19. 8
      src/utils/verify.js

@ -14,13 +14,13 @@
<el-input :value="form.accountNumber" @input="val => checkHanzi(val, form, 'accountNumber')" ref="accountNumber"></el-input> <el-input :value="form.accountNumber" @input="val => checkHanzi(val, form, 'accountNumber')" ref="accountNumber"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="出票人名称" prop="accountName"> <el-form-item label="出票人名称" prop="accountName">
<el-input :value="form.accountName" @input="val => checkHanzi(val, form, 'accountName')" ref="accountName"></el-input> <el-input :value="form.accountName" @input="val => checkName(val, form, 'accountName')" ref="accountName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="收款人账号" prop="collectionNumber"> <el-form-item label="收款人账号" prop="collectionNumber">
<el-input :value="form.collectionNumber" @input="val => checkHanzi(val, form, 'collectionNumber')" ref="collectionNumber"></el-input> <el-input :value="form.collectionNumber" @input="val => checkHanzi(val, form, 'collectionNumber')" ref="collectionNumber"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="收款人名称" prop="collectionName"> <el-form-item label="收款人名称" prop="collectionName">
<el-input :value="form.collectionName" @input="val => checkHanzi(val, form, 'collectionName')" ref="collectionName"></el-input> <el-input :value="form.collectionName" @input="val => checkName(val, form, 'collectionName')" ref="collectionName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currencyType"> <el-form-item label="币种" prop="currencyType">
<el-input disabled v-model="form.currencyType" ref="currencyType"></el-input> <el-input disabled v-model="form.currencyType" ref="currencyType"></el-input>
@ -118,7 +118,7 @@
<script> <script>
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi, ismoney } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName, ismoney } from '@/utils/utilFunction.js'
export default { export default {
name: 'index', name: 'index',
@ -199,7 +199,8 @@ export default {
}, this.$refs)); }, this.$refs));
}, },
ismoney: ismoney, ismoney: ismoney,
checkHanzi: checkHanzi checkHanzi: checkHanzi,
checkName: checkName
} }
} }
</script> </script>

@ -140,7 +140,8 @@ export default {
ismoney: ismoney, ismoney: ismoney,
rateListen: rateListen, rateListen: rateListen,
checkName: checkName, checkName: checkName,
checkHanzi: checkHanzi checkHanzi: checkHanzi,
checkName: checkName
} }
}; };
</script> </script>

@ -41,7 +41,7 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input :value="form.customerName" @input="(val) => checkHanzi(val, form, 'customerName')" ref="customerName"></el-input> <el-input :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')" ref="customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="凭证类型" prop="certificateType"> <el-form-item label="凭证类型" prop="certificateType">
<el-select v-model="form.certificateType" placeholder="请选择" ref="certificateType"> <el-select v-model="form.certificateType" placeholder="请选择" ref="certificateType">

@ -36,11 +36,11 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input v-model="form.customerName" ref="customerName"></el-input> <el-input :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')" ref="customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="签发日期" prop="issueDate"> <el-form-item label="签发日期" prop="issueDate">
<el-date-picker <el-date-picker
v-model="issueDate" v-model="form.issueDate"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
ref="issueDate"> ref="issueDate">

@ -42,7 +42,7 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="客户姓名" prop="clientName"> <el-form-item label="客户姓名" prop="clientName">
<el-input :value="form.clientName" @input="(val) => checkHanzi(val, form, 'clientName')" ref="clientName"></el-input> <el-input :value="form.clientName" @input="(val) => checkName(val, form, 'clientName')" ref="clientName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="currencyMark"> <el-form-item label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark"> <el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
@ -84,7 +84,7 @@
</template> </template>
<script> <script>
import { ratePattern, vercustomer } from '@/utils/verify.js' import { ratePattern, vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi, ismoney } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName, ismoney } from '@/utils/utilFunction.js'
export default{ export default{
name:'', name:'',
props:{}, props:{},
@ -147,7 +147,8 @@ export default{
}, this.$refs)); }, this.$refs));
}, },
ismoney: ismoney, ismoney: ismoney,
checkHanzi: checkHanzi checkHanzi: checkHanzi,
checkName: checkName
} }
} }
</script> </script>

@ -38,7 +38,7 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input :value="form.customerName" @input="(val) => checkHanzi(val, form, 'customerName')" ref="customerName"></el-input> <el-input :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')" ref="customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="currencyMark"> <el-form-item label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark"> <el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
@ -69,7 +69,7 @@
</template> </template>
<script> <script>
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi, ismoney } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName, ismoney } from '@/utils/utilFunction.js'
export default{ export default{
name:'', name:'',
props:{}, props:{},
@ -154,7 +154,8 @@ export default{
}, this.$refs)); }, this.$refs));
}, },
ismoney: ismoney, ismoney: ismoney,
checkHanzi: checkHanzi checkHanzi: checkHanzi,
checkName: checkName
} }
} }
</script> </script>

@ -15,7 +15,7 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户姓名" prop="userName"> <el-form-item label="客户姓名" prop="userName">
<el-input :value="form.userName" @input="(val) => checkHanzi(val, form, 'userName')" ref="userName"></el-input> <el-input :value="form.userName" @input="(val) => checkName(val, form, 'userName')" ref="userName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="goldLogo"> <el-form-item label="钞汇标识" prop="goldLogo">
<el-select v-model="form.goldLogo" @focus="getSubjectInfoData('9')" placeholder="请选择" ref="goldLogo"> <el-select v-model="form.goldLogo" @focus="getSubjectInfoData('9')" placeholder="请选择" ref="goldLogo">
@ -176,7 +176,7 @@
import {getSubjectInfo,addOperation,getOperation} from "@/api/http.js"; import {getSubjectInfo,addOperation,getOperation} from "@/api/http.js";
import { mapMutations } from 'vuex' import { mapMutations } from 'vuex'
import { vercustomer } from '@/utils/verify.js' import { vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi } from '@/utils/utilFunction.js' import { myValidate, checkName, checkHanzi } from '@/utils/utilFunction.js'
export default { export default {
data(){ data(){
return{ return{
@ -528,6 +528,7 @@ export default {
popUpsThree(){ popUpsThree(){
this.$store.commit('system/changePop',{show:true,text:'密码器',id:'62,3'}) this.$store.commit('system/changePop',{show:true,text:'密码器',id:'62,3'})
}, },
checkName: checkName,
checkHanzi: checkHanzi checkHanzi: checkHanzi
} }
}; };

@ -28,7 +28,7 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户姓名" prop="userName" :rules="rules.userName"> <el-form-item label="客户姓名" prop="userName" :rules="rules.userName">
<el-input v-model="form.userName" ref="userName"></el-input> <el-input :value="form.userName" @input="(val) => checkName(val, form, 'userName')" ref="userName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识"> <el-form-item label="钞汇标识">
<el-select v-model="form.goldLogo" placeholder="请选择"> <el-select v-model="form.goldLogo" placeholder="请选择">
@ -56,7 +56,7 @@
</template> </template>
<script> <script>
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi, ismoney } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName, ismoney } from '@/utils/utilFunction.js'
export default{ export default{
name:'', name:'',
props:{}, props:{},
@ -137,7 +137,9 @@ export default{
popUp(text) { popUp(text) {
this.$store.commit('system/changePop',{show:true,text}) this.$store.commit('system/changePop',{show:true,text})
}, },
ismoney: ismoney ismoney: ismoney,
checkHanzi: checkHanzi,
checkName: checkName
}, },
} }
</script> </script>

@ -33,7 +33,7 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户姓名" required prop="customerName"> <el-form-item label="客户姓名" required prop="customerName">
<el-input ref="customerName" :value="form.customerName" @input="(val) => checkHanzi(val, form, 'customerName')"></el-input> <el-input ref="customerName" :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="currencyMark"> <el-form-item label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark"> <el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
@ -76,7 +76,7 @@
</div> </div>
</template> </template>
<script> <script>
import { myValidate, checkHanzi, ismoney } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName, ismoney } from '@/utils/utilFunction.js'
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
export default{ export default{
name:'', name:'',
@ -172,7 +172,8 @@ export default{
}, },
ismoney: ismoney, ismoney: ismoney,
checkHanzi: checkHanzi checkHanzi: checkHanzi,
checkName: checkName
} }
} }
</script> </script>

@ -35,7 +35,7 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input ref="customerName" :value="form.customerName" @input="(val) => checkHanzi(val, form, 'customerName')"></el-input> <el-input ref="customerName" :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="currencyMark"> <el-form-item label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark"> <el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
@ -58,7 +58,7 @@
</div> </div>
</template> </template>
<script> <script>
import { myValidate, checkHanzi } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName } from '@/utils/utilFunction.js'
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
export default{ export default{
name:'', name:'',
@ -125,7 +125,8 @@ export default{
}); });
}, this.$refs)); }, this.$refs));
}, },
checkHanzi: checkHanzi checkHanzi: checkHanzi,
checkName: checkName
}, },
mounted() { mounted() {
this.$refs.clientNumber.focus() this.$refs.clientNumber.focus()

@ -31,7 +31,7 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input :value="form.customerName" @input="(val) => checkHanzi(val, form, 'customerName')" disabled ref="customerName"></el-input> <el-input :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')" disabled ref="customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="currencyMark"> <el-form-item label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark"> <el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
@ -60,7 +60,7 @@
</div> </div>
</template> </template>
<script> <script>
import { myValidate, checkHanzi, ismoney } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName, ismoney } from '@/utils/utilFunction.js'
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
export default{ export default{
name:'', name:'',
@ -113,7 +113,8 @@ export default{
}, this.$refs)); }, this.$refs));
}, },
ismoney: ismoney, ismoney: ismoney,
checkHanzi: checkHanzi checkHanzi: checkHanzi,
checkName: checkName
} }
} }
</script> </script>

@ -42,7 +42,7 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input ref="customerName" :value="form.customerName" @input="(val) => checkHanzi(val, form, 'customerName')"></el-input> <el-input ref="customerName" :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="currencyMark"> <el-form-item label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark"> <el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
@ -84,7 +84,7 @@
</template> </template>
<script> <script>
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi, ismoney } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName, ismoney } from '@/utils/utilFunction.js'
export default{ export default{
name:'', name:'',
props:{}, props:{},
@ -147,7 +147,8 @@ export default{
}, this.$refs)); }, this.$refs));
}, },
ismoney: ismoney, ismoney: ismoney,
checkHanzi: checkHanzi checkHanzi: checkHanzi,
checkName: checkName
} }
} }
</script> </script>

@ -23,7 +23,7 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input ref="customerName" :value="form.customerName" @input="(val) => checkHanzi(val, form, 'customerName')"></el-input> <el-input ref="customerName" :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="币种" prop="currency">
<el-select disabled v-model="form.currency" placeholder="请选择" ref="currency"> <el-select disabled v-model="form.currency" placeholder="请选择" ref="currency">
@ -50,7 +50,7 @@
</template> </template>
<script> <script>
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi, ismoney } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName, ismoney } from '@/utils/utilFunction.js'
export default{ export default{
name:'', name:'',
props:{}, props:{},
@ -104,7 +104,8 @@ export default{
}, this.$refs)); }, this.$refs));
}, },
ismoney: ismoney, ismoney: ismoney,
checkHanzi: checkHanzi checkHanzi: checkHanzi,
checkName: checkName
} }
} }
</script> </script>

@ -42,7 +42,7 @@
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input ref="customerName" :value="form.customerName" @input="(val) => checkHanzi(val, form, 'customerName')"></el-input> <el-input ref="customerName" :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="currencyMark"> <el-form-item label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark"> <el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
@ -73,7 +73,7 @@
</div> </div>
</template> </template>
<script> <script>
import { myValidate, checkHanzi, ismoney } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName, ismoney } from '@/utils/utilFunction.js'
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
export default{ export default{
name:'', name:'',
@ -161,7 +161,8 @@ export default{
}, this.$refs)); }, this.$refs));
}, },
ismoney: ismoney, ismoney: ismoney,
checkHanzi: checkHanzi checkHanzi: checkHanzi,
checkName: checkName
} }
} }
</script> </script>

@ -15,7 +15,7 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input ref="customerName" :value="form.customerName" @input="(val) => checkHanzi(val, form, 'customerName')"></el-input> <el-input ref="customerName" :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="原支付密码" prop="payPassword"> <el-form-item label="原支付密码" prop="payPassword">
<el-input type="password" v-model="form.payPassword" placeholder="请输入密码" ref="payPassword"></el-input> <el-input type="password" v-model="form.payPassword" placeholder="请输入密码" ref="payPassword"></el-input>
@ -70,7 +70,7 @@
</template> </template>
<script> <script>
import { vercustomer } from '@/utils/verify.js' import { vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName } from '@/utils/utilFunction.js'
export default{ export default{
name:'', name:'',
props:{}, props:{},
@ -116,7 +116,8 @@ export default{
}); });
}, this.$refs)); }, this.$refs));
}, },
checkHanzi: checkHanzi checkHanzi: checkHanzi,
checkName: checkName
} }
} }
</script> </script>

@ -22,7 +22,7 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input v-model="form.customerName" ref="customerName"></el-input> <el-input :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')" ref="customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="身份证" required> <el-form-item label="身份证" required>
<div class="idCard" @click="popUp('身份证扫描器')"> <div class="idCard" @click="popUp('身份证扫描器')">
@ -64,7 +64,7 @@
</template> </template>
<script> <script>
import { vercustomer } from '@/utils/verify.js' import { vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName } from '@/utils/utilFunction.js'
export default{ export default{
name:'', name:'',
props:{}, props:{},
@ -100,7 +100,8 @@ export default{
}); });
}, this.$refs)); }, this.$refs));
}, },
checkHanzi: checkHanzi checkHanzi: checkHanzi,
checkName: checkName
} }
} }
</script> </script>

@ -27,7 +27,7 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input :value="form.customerName" @input="(val) => checkHanzi(val, form, 'customerName')" ref="customerName"></el-input> <el-input :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')" ref="customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="身份证" required> <el-form-item label="身份证" required>
<div class="idCard" @click="popUp('身份证扫描器')"> <div class="idCard" @click="popUp('身份证扫描器')">
@ -67,7 +67,7 @@
</template> </template>
<script> <script>
import { vercustomer } from '@/utils/verify.js' import { vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi } from '@/utils/utilFunction.js' import { myValidate, checkHanzi, checkName } from '@/utils/utilFunction.js'
export default{ export default{
name:'', name:'',
props:{}, props:{},
@ -100,7 +100,8 @@ export default{
}); });
}, this.$refs)); }, this.$refs));
}, },
checkHanzi: checkHanzi checkHanzi: checkHanzi,
checkName: checkName
}, },
mounted() { mounted() {
this.$refs.customerName.focus() this.$refs.customerName.focus()

@ -24,11 +24,11 @@ const checkHanzi = function(val, form, prop) {
} }
const checkName = function(val, form, prop) { const checkName = function(val, form, prop) {
// 检查符号 // // 检查符号
const charReg = /[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/im; const charReg = /[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/im;
// 检查空格 // // 检查空格
const tmpCheck = val.substr(val.length-1, 1); // const tmpCheck = val.substr(val.length-1, 1);
if(charReg.test(val) || /[\u4E00-\u9FA5]/i.test(val)) { if(charReg.test(val)) {
return; return;
} }
form[prop] = val; form[prop] = val;

@ -12,11 +12,11 @@ const vercustomer = [
required: true, required: true,
message: '请输入客户姓名', message: '请输入客户姓名',
trigger: 'blur' trigger: 'blur'
},
{
pattern: namePattern,
message: '客户姓名格式有误'
} }
// {
// pattern: namePattern,
// message: '客户姓名格式有误'
// }
] ]
const vermob = [ const vermob = [

Loading…
Cancel
Save