|
|
@ -10,12 +10,12 @@ |
|
|
|
<!-- 开户 --> |
|
|
|
<!-- 开户 --> |
|
|
|
<div class="body"> |
|
|
|
<div class="body"> |
|
|
|
<el-row :gutter="20" style="margin: 0"> |
|
|
|
<el-row :gutter="20" style="margin: 0"> |
|
|
|
<el-form ref="form" :model="form" label-width="120px"> |
|
|
|
<el-form ref="form" :model="form" label-width="120px" :rules="rules"> |
|
|
|
<el-col :span="10" :offset="2"> |
|
|
|
<el-col :span="10" :offset="2"> |
|
|
|
<el-form-item label="客户号"> |
|
|
|
<el-form-item label="客户号" prop="customerNumber"> |
|
|
|
<el-input v-model="form.customerNumber" ref="customerNumber"></el-input> |
|
|
|
<el-input :value="form.customerNumber" @input="(val) => checkHanzi(val, form, 'customerNumber')" ref="customerNumber"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="账户类型" required> |
|
|
|
<el-form-item label="账户类型" prop="accountType"> |
|
|
|
<el-select v-model="form.accountType" placeholder="请选择" ref="accountType"> |
|
|
|
<el-select v-model="form.accountType" placeholder="请选择" ref="accountType"> |
|
|
|
<el-option label="结算户" value="结算户"> </el-option> |
|
|
|
<el-option label="结算户" value="结算户"> </el-option> |
|
|
|
<el-option label="活期保障金户" value="活期保障金户"> </el-option> |
|
|
|
<el-option label="活期保障金户" value="活期保障金户"> </el-option> |
|
|
@ -23,7 +23,7 @@ |
|
|
|
<el-option label="资本临时户" value="资本临时户"> </el-option> |
|
|
|
<el-option label="资本临时户" value="资本临时户"> </el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="账户科目" required> |
|
|
|
<el-form-item label="账户科目" prop="accountManagement"> |
|
|
|
<el-select v-model="form.accountManagement" placeholder="请选择" ref="accountManagement"> |
|
|
|
<el-select v-model="form.accountManagement" placeholder="请选择" ref="accountManagement"> |
|
|
|
<el-option label="工业存款" value="工业存款"> </el-option> |
|
|
|
<el-option label="工业存款" value="工业存款"> </el-option> |
|
|
|
<el-option label="商业存款" value="商业存款"> </el-option> |
|
|
|
<el-option label="商业存款" value="商业存款"> </el-option> |
|
|
@ -31,30 +31,30 @@ |
|
|
|
<el-option label="其他" value="其他"> </el-option> |
|
|
|
<el-option label="其他" value="其他"> </el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="钞汇标识" required> |
|
|
|
<el-form-item label="钞汇标识" prop="currencyMark"> |
|
|
|
<el-select v-model="form.currencyMark" placeholder="请选择" ref="currencyMark"> |
|
|
|
<el-select v-model="form.currencyMark" placeholder="请选择" ref="currencyMark"> |
|
|
|
<el-option label="钞户" value="钞户"> </el-option> |
|
|
|
<el-option label="钞户" value="钞户"> </el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="出账页标志" required> |
|
|
|
<el-form-item label="出账页标志" prop="outAccountWay"> |
|
|
|
<el-select v-model="form.outAccountWay" placeholder="请选择" ref="outAccountWay"> |
|
|
|
<el-select v-model="form.outAccountWay" placeholder="请选择" ref="outAccountWay"> |
|
|
|
<el-option label="按月" value="按月"> </el-option> |
|
|
|
<el-option label="按月" value="按月"> </el-option> |
|
|
|
<el-option label="满页" value="满页"> </el-option> |
|
|
|
<el-option label="满页" value="满页"> </el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="统计代码"> |
|
|
|
<el-form-item label="统计代码" prop="clientNumber"> |
|
|
|
<el-input v-model="form.clientNumber"></el-input> |
|
|
|
<el-input :value="form.clientNumber" @input="(val) => checkHanzi(val, form, 'clientNumber')" ref="clientNumber"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="外汇证号"> |
|
|
|
<el-form-item label="外汇证号" prop="foreignCurrencyCertificate"> |
|
|
|
<el-input v-model="form.foreignCurrencyCertificate"></el-input> |
|
|
|
<el-input :value="form.foreignCurrencyCertificate" @input="(val) => checkHanzi(val, form, 'foreignCurrencyCertificate')" ref="foreignCurrencyCertificate"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
<el-form-item label="客户姓名" required prop="customerName" :rules="rules.customerName"> |
|
|
|
<el-form-item label="客户姓名" prop="customerName"> |
|
|
|
<el-input v-model="form.customerName" ref="customerName"></el-input> |
|
|
|
<el-input :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')" ref="customerName"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="账户性质" required> |
|
|
|
<el-form-item label="账户性质" prop="accountNature"> |
|
|
|
<el-select v-model="form.accountNature" placeholder="请选择" ref="accountNature"> |
|
|
|
<el-select v-model="form.accountNature" placeholder="请选择" ref="accountNature"> |
|
|
|
<el-option label="基本户" value="基本户"> </el-option> |
|
|
|
<el-option label="基本户" value="基本户"> </el-option> |
|
|
|
<el-option label="一般户" value="一般户"> </el-option> |
|
|
|
<el-option label="一般户" value="一般户"> </el-option> |
|
|
@ -62,25 +62,25 @@ |
|
|
|
<el-option label="临时户" value="临时户"> </el-option> |
|
|
|
<el-option label="临时户" value="临时户"> </el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="币种" required> |
|
|
|
<el-form-item label="币种" prop="currencyType"> |
|
|
|
<el-select disabled v-model="form.currencyType" placeholder="请选择" ref="currencyType"> |
|
|
|
<el-select v-model="form.currencyType" placeholder="请选择" ref="currencyType"> |
|
|
|
<el-option label="CYN人民币" value="CYN人民币"> </el-option> |
|
|
|
<el-option label="CYN人民币" value="CYN人民币"> </el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="计息方式" required> |
|
|
|
<el-form-item label="计息方式" prop="calculateWay"> |
|
|
|
<el-select v-model="form.calculateWay" placeholder="请选择" ref="calculateWay"> |
|
|
|
<el-select v-model="form.calculateWay" placeholder="请选择" ref="calculateWay"> |
|
|
|
<el-option label="季度" value="季度"> </el-option> |
|
|
|
<el-option label="季度" value="季度"> </el-option> |
|
|
|
<el-option label="半年" value="半年"> </el-option> |
|
|
|
<el-option label="半年" value="半年"> </el-option> |
|
|
|
<el-option label="一年" value="一年"> </el-option> |
|
|
|
<el-option label="一年" value="一年"> </el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="支取方式" required> |
|
|
|
<el-form-item label="支取方式" prop="withdrawingWay"> |
|
|
|
<el-select v-model="form.withdrawingWay" placeholder="请选择" ref="withdrawingWay"> |
|
|
|
<el-select v-model="form.withdrawingWay" placeholder="请选择" ref="withdrawingWay"> |
|
|
|
<el-option label="印签" value="印签"> </el-option> |
|
|
|
<el-option label="印签" value="印签"> </el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="外汇核准号"> |
|
|
|
<el-form-item label="外汇核准号" prop="foreignCurrencyBumber"> |
|
|
|
<el-input v-model="form.foreignCurrencyBumber"></el-input> |
|
|
|
<el-input :value="form.foreignCurrencyBumber" @input="(val) => checkName(val, form, 'foreignCurrencyBumber')" ref="foreignCurrencyBumber"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
@ -113,8 +113,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { mapState } from 'vuex' |
|
|
|
import { mapState } from 'vuex' |
|
|
|
import { checkRequired, ismoney } from '@/utils/utilFunction.js' |
|
|
|
import { myValidate, ismoney, checkName, checkHanzi } from '@/utils/utilFunction.js' |
|
|
|
import { vername, verrate } from '@/utils/verify.js' |
|
|
|
import { vercustomer, verrate } from '@/utils/verify.js' |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'index', |
|
|
|
name: 'index', |
|
|
|
components:{}, |
|
|
|
components:{}, |
|
|
@ -139,7 +139,63 @@ export default { |
|
|
|
foreignCurrencyCertificate: '' // 外汇证号 |
|
|
|
foreignCurrencyCertificate: '' // 外汇证号 |
|
|
|
}, |
|
|
|
}, |
|
|
|
rules: { |
|
|
|
rules: { |
|
|
|
customerName: vername |
|
|
|
customerName: vercustomer, |
|
|
|
|
|
|
|
accountNature: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
message: '请选择账户性质', |
|
|
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
accountType: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
message: '请选择账户类型', |
|
|
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
accountManagement: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
message: '请选择账户科目', |
|
|
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
currencyType: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
message: '请选择币种', |
|
|
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
currencyMark: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
message: '请选择钞汇标识', |
|
|
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
calculateWay: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
message: '请选择计息方式', |
|
|
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
outAccountWay: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
message: '请选择出账页标志', |
|
|
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
withdrawingWay: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
required: true, |
|
|
|
|
|
|
|
message: '请选择支取方式', |
|
|
|
|
|
|
|
trigger: 'blur' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
second:[// 二级卡数组 |
|
|
|
second:[// 二级卡数组 |
|
|
|
|
|
|
|
|
|
|
@ -160,25 +216,16 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
submitForm() { |
|
|
|
submitForm() { |
|
|
|
const requiredField = { |
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
customerName: '客户姓名', // |
|
|
|
// 验证通过逻辑写在这 |
|
|
|
accountNature: '账户性质', // |
|
|
|
this.$message({ |
|
|
|
accountType: '账户类型', // |
|
|
|
message: '验证成功', |
|
|
|
accountManagement: '账户科目', // |
|
|
|
center: true |
|
|
|
currencyType: '币种', // |
|
|
|
}); |
|
|
|
currencyMark: '钞汇标识', // |
|
|
|
}, this.$refs)); |
|
|
|
calculateWay: '计息方式', // |
|
|
|
}, |
|
|
|
outAccountWay: '出账页标志', // |
|
|
|
checkHanzi: checkHanzi, |
|
|
|
withdrawingWay: '支取方式', // |
|
|
|
checkName: checkName |
|
|
|
} |
|
|
|
|
|
|
|
const judgeRef = checkRequired(this.form, requiredField) |
|
|
|
|
|
|
|
if(judgeRef === '') { |
|
|
|
|
|
|
|
console.log('submit success') |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.$refs[judgeRef].focus(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|