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