名称规则更改

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-form-item>
<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 label="收款人账号" prop="collectionNumber">
<el-input :value="form.collectionNumber" @input="val => checkHanzi(val, form, 'collectionNumber')" ref="collectionNumber"></el-input>
</el-form-item>
<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 label="币种" prop="currencyType">
<el-input disabled v-model="form.currencyType" ref="currencyType"></el-input>
@ -118,7 +118,7 @@
<script>
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 {
name: 'index',
@ -199,7 +199,8 @@ export default {
}, this.$refs));
},
ismoney: ismoney,
checkHanzi: checkHanzi
checkHanzi: checkHanzi,
checkName: checkName
}
}
</script>

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

@ -41,7 +41,7 @@
</el-col>
<el-col :span="10" :offset="1">
<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 label="凭证类型" prop="certificateType">
<el-select v-model="form.certificateType" placeholder="请选择" ref="certificateType">

@ -36,11 +36,11 @@
</el-col>
<el-col :span="10" :offset="1">
<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 label="签发日期" prop="issueDate">
<el-date-picker
v-model="issueDate"
v-model="form.issueDate"
type="date"
placeholder="选择日期"
ref="issueDate">

@ -42,7 +42,7 @@
</div>
</el-form-item>
<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 label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
@ -84,7 +84,7 @@
</template>
<script>
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{
name:'',
props:{},
@ -147,7 +147,8 @@ export default{
}, this.$refs));
},
ismoney: ismoney,
checkHanzi: checkHanzi
checkHanzi: checkHanzi,
checkName: checkName
}
}
</script>

@ -38,7 +38,7 @@
</div>
</el-form-item>
<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 label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
@ -69,7 +69,7 @@
</template>
<script>
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{
name:'',
props:{},
@ -154,7 +154,8 @@ export default{
}, this.$refs));
},
ismoney: ismoney,
checkHanzi: checkHanzi
checkHanzi: checkHanzi,
checkName: checkName
}
}
</script>

@ -15,7 +15,7 @@
</el-col>
<el-col :span="10" :offset="1">
<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 label="钞汇标识" prop="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 { mapMutations } from 'vuex'
import { vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi } from '@/utils/utilFunction.js'
import { myValidate, checkName, checkHanzi } from '@/utils/utilFunction.js'
export default {
data(){
return{
@ -528,6 +528,7 @@ export default {
popUpsThree(){
this.$store.commit('system/changePop',{show:true,text:'密码器',id:'62,3'})
},
checkName: checkName,
checkHanzi: checkHanzi
}
};

@ -28,7 +28,7 @@
</el-col>
<el-col :span="10" :offset="1">
<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 label="钞汇标识">
<el-select v-model="form.goldLogo" placeholder="请选择">
@ -56,7 +56,7 @@
</template>
<script>
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{
name:'',
props:{},
@ -137,7 +137,9 @@ export default{
popUp(text) {
this.$store.commit('system/changePop',{show:true,text})
},
ismoney: ismoney
ismoney: ismoney,
checkHanzi: checkHanzi,
checkName: checkName
},
}
</script>

@ -33,7 +33,7 @@
</el-col>
<el-col :span="10" :offset="1">
<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 label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
@ -76,7 +76,7 @@
</div>
</template>
<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'
export default{
name:'',
@ -172,7 +172,8 @@ export default{
},
ismoney: ismoney,
checkHanzi: checkHanzi
checkHanzi: checkHanzi,
checkName: checkName
}
}
</script>

@ -35,7 +35,7 @@
</div>
</el-form-item>
<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 label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
@ -58,7 +58,7 @@
</div>
</template>
<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'
export default{
name:'',
@ -125,7 +125,8 @@ export default{
});
}, this.$refs));
},
checkHanzi: checkHanzi
checkHanzi: checkHanzi,
checkName: checkName
},
mounted() {
this.$refs.clientNumber.focus()

@ -31,7 +31,7 @@
</el-col>
<el-col :span="10" :offset="1">
<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 label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
@ -60,7 +60,7 @@
</div>
</template>
<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'
export default{
name:'',
@ -113,7 +113,8 @@ export default{
}, this.$refs));
},
ismoney: ismoney,
checkHanzi: checkHanzi
checkHanzi: checkHanzi,
checkName: checkName
}
}
</script>

@ -42,7 +42,7 @@
</div>
</el-form-item>
<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 label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
@ -84,7 +84,7 @@
</template>
<script>
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{
name:'',
props:{},
@ -147,7 +147,8 @@ export default{
}, this.$refs));
},
ismoney: ismoney,
checkHanzi: checkHanzi
checkHanzi: checkHanzi,
checkName: checkName
}
}
</script>

@ -23,7 +23,7 @@
</el-col>
<el-col :span="10" :offset="1">
<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 label="币种" prop="currency">
<el-select disabled v-model="form.currency" placeholder="请选择" ref="currency">
@ -50,7 +50,7 @@
</template>
<script>
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{
name:'',
props:{},
@ -104,7 +104,8 @@ export default{
}, this.$refs));
},
ismoney: ismoney,
checkHanzi: checkHanzi
checkHanzi: checkHanzi,
checkName: checkName
}
}
</script>

@ -42,7 +42,7 @@
</div>
</el-form-item>
<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 label="钞汇标识" prop="currencyMark">
<el-select disabled v-model="form.currencyMark" placeholder="请选择" ref="currencyMark">
@ -73,7 +73,7 @@
</div>
</template>
<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'
export default{
name:'',
@ -161,7 +161,8 @@ export default{
}, this.$refs));
},
ismoney: ismoney,
checkHanzi: checkHanzi
checkHanzi: checkHanzi,
checkName: checkName
}
}
</script>

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

@ -22,7 +22,7 @@
</el-col>
<el-col :span="10" :offset="1">
<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 label="身份证" required>
<div class="idCard" @click="popUp('身份证扫描器')">
@ -64,7 +64,7 @@
</template>
<script>
import { vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi } from '@/utils/utilFunction.js'
import { myValidate, checkHanzi, checkName } from '@/utils/utilFunction.js'
export default{
name:'',
props:{},
@ -100,7 +100,8 @@ export default{
});
}, this.$refs));
},
checkHanzi: checkHanzi
checkHanzi: checkHanzi,
checkName: checkName
}
}
</script>

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

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

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

Loading…
Cancel
Save