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