Commit 6cecd129 by 王志慧

Merge branch 'SAAS+V4.44-0902' of http://192.168.3.233:8090/saas_plus/dj-car-lif…

…e-system into SAAS+V4.44-0902
2 parents 5299a756 5b23325a
......@@ -41,7 +41,7 @@
</el-form-item>
</div>
<el-form-item label="银行账号:">
{{ detailInfo.bankAccountNo ? detailInfo.bankAccountNo : "-" }}
{{ detailInfo.bankAccountNo ? detailInfo.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ") : "-" }}
</el-form-item>
</el-form>
<el-form class="edit-sub-block-two" label-width="150px" :inline="true">
......
......@@ -321,10 +321,15 @@ export default {
isClear: true,
maxlength: 30,
inputFn: (event) => {
if (!(/^\d|\s+$/.test(event.slice(event.length - 1)))) {
this.infoForm.bankAccountNo = event.slice(0, event.length - 1)
if (!(/^\d|\s+$/.test(event.slice(event.length)))) {
this.infoForm.bankAccountNo = event.replace(/\D/g, '')
}
this.infoForm.bankAccountNo = this.infoForm.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ")
let arr = this.infoForm.bankAccountNo.split('')
if(arr[arr.length - 1] == ' ') {
arr.splice(arr.length - 1, 1)
this.infoForm.bankAccountNo = arr.join('')
}
}
},
{
......@@ -631,7 +636,7 @@ export default {
"application/vnd.ms-excel": "excel",
"application/msword": "doc",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document":
"docx",
"doc",
"image/png": "image",
"image/jpeg": "image"
}
......
......@@ -127,10 +127,15 @@ export default {
isClear: true,
maxlength: 30,
inputFn: (event) => {
if (!(/^\d|\s+$/.test(event.slice(event.length - 1)))) {
this.infoForm.bankAccountNo = event.slice(0, event.length - 1)
if (!(/^\d|\s+$/.test(event.slice(event.length)))) {
this.infoForm.bankAccountNo = event.replace(/\D/g, '')
}
this.infoForm.bankAccountNo = this.infoForm.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ")
let arr = this.infoForm.bankAccountNo.split('')
if(arr[arr.length - 1] == ' ') {
arr.splice(arr.length - 1, 1)
this.infoForm.bankAccountNo = arr.join('')
}
}
}, {
label: "结算凭证",
......@@ -184,6 +189,9 @@ export default {
this.infoForm = deepClone(this.detailInfo)
this.getPlatformMerchant()
this.dealAttachment()
if(this.infoForm.bankAccountNo) {
this.infoForm.bankAccountNo = this.infoForm.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ")
}
console.log(this.infoForm, 'infoForm--------')
},
......
......@@ -208,7 +208,10 @@ export default {
}, {
label: '银行账号',
prop: 'bankAccountNo',
width: '160px'
width: '160px',
formatter: (cellValue) => {
return cellValue.bankAccountNo ? cellValue.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ") : '--'
}
}, {
label: '关联业务单号',
prop: 'bizOrderCode',
......
......@@ -382,7 +382,7 @@ export default {
custodian,
custodianPhone,
supervision,
brandId: Number(brandId),
brandId: brandId ? Number(brandId) : null,
directSalesFlag: directSalesFlag === null ? null : directSalesFlag.toString()
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!