Commit 671afa6c by chenwq

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

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