From d00963f86e4740675a779f4a375f2b84ce0dcc6b Mon Sep 17 00:00:00 2001 From: "luoJunYong.123" Date: Sun, 24 Apr 2022 18:03:43 +0800 Subject: [PATCH] update --- src/assets/js/myConfig.js | 1 + src/components/checkPhoto/index.vue | 15 +++ src/components/dialogTwo/index.vue | 3 + src/components/needBefore/index.vue | 3 + src/components/sealName/index.vue | 1 + src/components/selectBusiness/index.vue | 1 + src/mixins/tipsBefore/index.js | 3 +- src/pages/counter/list/index.vue | 34 ++++--- .../manage/list/acceptanceDraft/invoice.vue | 48 +--------- src/pages/manage/list/business/deposit.vue | 2 +- src/pages/manage/list/business/transfer.vue | 2 +- src/pages/manage/list/business/withdrawal.vue | 2 +- .../list/personal/currentAccount/settle.vue | 23 ++++- .../currentAccount/transferAccounts.vue | 2 +- .../personal/currentAccount/withdrawal.vue | 2 +- src/store/modules/system.js | 95 ++++++++----------- src/utils/utilFunction.js | 13 +++ src/utils/verify.js | 3 + 18 files changed, 130 insertions(+), 123 deletions(-) diff --git a/src/assets/js/myConfig.js b/src/assets/js/myConfig.js index 2b02ed9..ffe26be 100644 --- a/src/assets/js/myConfig.js +++ b/src/assets/js/myConfig.js @@ -4,6 +4,7 @@ const headerCellStyle = { 'font-weight': '700' } +// 动态控制表单斑马格颜色 主要是怕需求变更又得改很多。 const tableRowClassName = function({row, rowIndex}) { if (rowIndex % 2 === 1) { return 'warning-row'; diff --git a/src/components/checkPhoto/index.vue b/src/components/checkPhoto/index.vue index 12eae47..bd0987f 100644 --- a/src/components/checkPhoto/index.vue +++ b/src/components/checkPhoto/index.vue @@ -212,6 +212,21 @@ export default { methods: { closeIt() { this.$emit('update:showImg', false) + }, + test() { + const str = '2018年结束了,2019年开始了,2020年就也不远了' + const rex = /\d+/g // 这里是定义匹配规则,匹配字符串里的1到多个数字 + const str1 = str.replace(rex, '****') + console.log(str1) // 输出:"****年结束了,****年开始了,****年也不远了" + const str2 = str.replace(rex, function(item){ + console.log(arguments) // 看下面的图片 + const arr = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'] + let newStr = '' + item.split('').map(function(i){ + newStr += arr[i] + }) + return newStr + }) } }, diff --git a/src/components/dialogTwo/index.vue b/src/components/dialogTwo/index.vue index 4fa4c3c..9fcac69 100644 --- a/src/components/dialogTwo/index.vue +++ b/src/components/dialogTwo/index.vue @@ -60,6 +60,9 @@