Commit 671afa6c by chenwq

详情-发起退款弹窗,样式,银行卡号

1 parent 8ecd7eef
......@@ -11,7 +11,7 @@
<el-form-item v-if="!item.isHide"
:key="index"
:id="item.name"
:label-width="isEdit ? '154px' : labelWidth"
:label-width="isEdit ? (labelWidth || '154px') : labelWidth"
:class="[{ 'no-label': !item.label, isBlock: isBlock }, { 'textBox': item.type == 'textBox' }]"
:style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }"
:label="item.label"
......@@ -523,6 +523,9 @@ export default {
if (item.inputType && (value.length > item.maxlength)) {
this.formObj[item.name] = value.slice(0, item.maxlength)
}
if(item.hasOwnProperty('inputFn')) {
item.inputFn(value)
}
}
}
}
......
......@@ -22,7 +22,8 @@
class="edit-form-container"
ref="editFormRef"
label-width="150px"
default-width="400px"
default-width="370px"
isEdit=true
:form-ref="editChildRef"
:form-obj="infoForm"
:form-data="editFormData"
......@@ -45,7 +46,7 @@
<el-input
placeholder="请输入付款金额"
v-model="infoForm.payAmount"
style="width: 400px"
style="width: 370px"
clearable
@input="handleUpgradeNum"
>
......@@ -145,7 +146,7 @@ export default {
},
dialogConfig: {
title: "发起退款",
width: "860px"
width: "1080px"
},
editChildRef: "editChildRef",
formRules: {
......@@ -194,7 +195,8 @@ export default {
name: "title",
type: "input",
isClear: true,
maxlength: 100
maxlength: 100,
width: "890px"
},
{
label: "支付主体",
......@@ -226,7 +228,8 @@ export default {
maxlength: 200,
inputType: "textarea",
showLimit: true,
rows: 4
rows: 4,
width: "890px"
},
{
label: "收款人",
......@@ -246,9 +249,15 @@ export default {
label: "银行账号",
name: "bankAccountNo",
type: "input",
inputType: "number",
// inputType: "number",
isClear: true,
maxlength: 30
maxlength: 30,
inputFn: (event) => {
if (!(/^\d|\s+$/.test(event.slice(event.length - 1)))) {
this.infoForm.bankAccountNo = event.slice(0, event.length - 1)
}
this.infoForm.bankAccountNo = this.infoForm.bankAccountNo.replace(/\s/g, '').replace(/(.{4})/g, "$1 ")
}
},
{
label: "备注",
......@@ -257,7 +266,8 @@ export default {
maxlength: 200,
inputType: "textarea",
showLimit: true,
rows: 4
rows: 4,
width: "890px"
},
{
label: "附件",
......@@ -556,11 +566,12 @@ export default {
.title {
height: 50px;
line-height: 50px;
padding: 0 20px;
// padding: 0 20px;
border-bottom: 1px solid #e5e5e5;
font-size: 16px;
font-weight: 600;
color: #333333;
margin: 0 !important;
}
.edit-sub-block {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!