Commit 5903a2ba by 张立顺

Merge branch 'dev_v4.5.0' of http://192.168.3.233:8090/glsx-business/dj-car-life…

…-system into dev_v4.5.0
2 parents 2a5b96ba e4652083
......@@ -19,6 +19,8 @@
:disabled="item.isDisabled"
:clearable="item.isClear || false"
:type="item.inputType || 'text'"
:maxlength="item.maxlength||''"
@input="e => maxLengthInput(e, item)"
@keydown.native="e => handleInputDown(e, item)"></el-input>
<!-- 选择-输入框 -->
<el-input v-else-if="item.type === 'selectInput'"
......@@ -163,6 +165,11 @@ export default {
if (e.keyCode === 13 && item.hasOwnProperty('keyFn')) {
item.keyFn()
}
},
maxLengthInput(value, item) {
if (item.inputType && (value.length > item.maxlength)) {
this.searchForm[item.name] = value.slice(0, item.maxlength)
}
}
}
}
......@@ -206,4 +213,7 @@ export default {
.d2-search .input-with-select .el-input-group__prepend {
background-color: #fff;
}
.el-input__inner {
line-height: 1px !important;
}
</style>
......@@ -333,11 +333,12 @@ export default {
showPayType: [2, 3],
type: 'image'
}, {
label: {
'O': '结算银行卡开户行',
'C': '结算银行卡开户行',
'B': '开户账户开户行'
},
// label: {
// 'O': '结算银行卡开户行',
// 'C': '结算银行卡开户行',
// 'B': '开户账户开户行'
// },
label: '开户账户开户行',
prop: 'bankName'
}, {
label: '开户支行',
......@@ -362,11 +363,12 @@ export default {
label: '账户号',
prop: 'bankAccountNo'
}, {
label: {
'O': '结算银行卡用户名',
'C': '结算银行卡用户名',
'B': '账户名称'
},
// label: {
// 'O': '结算银行卡用户名',
// 'C': '结算银行卡用户名',
// 'B': '账户名称'
// },
label: '账户名称',
prop: 'bankAccountName'
}, {
label: '银行预留手机号',
......
......@@ -144,6 +144,7 @@ export default {
name: 'merchantId',
type: 'input',
inputType: 'number',
maxlength: '9',
isClear: true,
placeholder: '请输入4S店/服务商商务号',
keyFn: this.keyDowmGetList
......
......@@ -637,7 +637,7 @@ export default {
// 'display': 'inline-block',
// 'width': '25%'
// },
rules: [{ required: true, message: '请选择省市', trigger: 'change' }]
rules: [{ required: true, message: '请选择省市区', trigger: 'change' }]
}, {
label: '',
name: 'companyAddr',
......@@ -1107,7 +1107,6 @@ export default {
this.custType = res.yseMerchantInfo.custType
this.markCustType = res.yseMerchantInfo.custType
this.editForm = this[this.typeToForm[this.custType]]
this.editForm.provincesAndCities = [res.yseMerchantInfo.provinceCode, res.yseMerchantInfo.cityCode, res.yseMerchantInfo.countyCode]
// 需要写入editForm的属性
var needAttrList = ['bankName', 'openAccBankName']
......@@ -1147,6 +1146,8 @@ export default {
this.editForm[item] = resObj[item] == 0 ? resObj[item] : ''
}
})
// 企业地址省市区
this.editForm.provincesAndCities = [res.yseMerchantInfo.provinceCode, res.yseMerchantInfo.cityCode, res.yseMerchantInfo.countyCode]
// 身份证有效期
if (res.yseMerchantInfo.legalCertStartDate) {
const startDate = res.yseMerchantInfo.legalCertStartDate
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!