贷款业务

20240205
yujialong 5 months ago
parent ec9e3319a0
commit faccbdd5f7
  1. 8
      src/api/api.js
  2. 84
      src/api/http.js
  3. 29
      src/mixins/tipsBefore/index.js
  4. 78
      src/pages/manage/list/business/transfer.vue
  5. 51
      src/pages/manage/list/corporateLoans/application.vue
  6. 436
      src/pages/manage/list/corporateLoans/apply/creditEvaluation/basic.vue
  7. 78
      src/pages/manage/list/corporateLoans/apply/creditEvaluation/importReport.vue
  8. 4
      src/pages/manage/list/corporateLoans/apply/index.vue
  9. 3
      src/pages/manage/list/foreignExchange/puchasing.vue
  10. 575
      src/pages/manage/list/personalLoans/detail.vue
  11. 9
      src/store/modules/system.js
  12. 144
      src/utils/utilFunction.js

@ -10,14 +10,14 @@ if (dev) {
// 本地 // 本地
host = 'http://121.37.12.51/' // 中台测试服 host = 'http://121.37.12.51/' // 中台测试服
// host = 'https://www.occupationlab.com/' // 正式服 // host = 'https://www.occupationlab.com/' // 正式服
// host = 'http://192.168.31.151:9000/' // 榕 host = 'http://192.168.31.217:9000/'
// host = 'http://192.168.31.116:9000/' // 赓
} }
// 创建axios实例 // 创建axios实例
const service = axios.create({ const service = axios.create({
baseURL: host, // 测试 baseURL: host, // 测试
timeout: 30000 // 请求超时时间 timeout: 30000 // 请求超时时间
}) })
let logouted = 0;
// 添加request拦截器 // 添加request拦截器
service.interceptors.request.use(config => { service.interceptors.request.use(config => {
return config return config
@ -34,11 +34,13 @@ service.interceptors.response.use(
}, },
error => { error => {
if (error.response.status == 401) { if (error.response.status == 401) {
console.log("🚀 ~ error:", error.response.status, store.commit('user/logout')) if (!logouted) {
util.errorMsg('登录过期,请重新登录') util.errorMsg('登录过期,请重新登录')
setTimeout(() => { setTimeout(() => {
store.commit('user/logout') store.commit('user/logout')
}, 1500) }, 1500)
logouted = 1
}
} }
return Promise.reject(error.response) return Promise.reject(error.response)
} }

@ -1,44 +1,41 @@
// 引入封装好的axios import { get, post, deletes, put } from './api.js'
// ps:如果没有封装,正常引入axios即可
import {get, post,deletes,put} from './api.js'
// import axios from "./"; // import axios from "./";
// /api为配置跨域的路径变量 export const getProjectBySystemId = (params) => {
export const getProjectBySystemId= (params) => { return get('/occupationlab/occupationlab/projectManage/getProjectBySystemId', params)
return get( '/occupationlab/occupationlab/projectManage/getProjectBySystemId',params)
} }
export const getProjectDetail= (params) => { export const getProjectDetail = (params) => {
return get( '/occupationlab/occupationlab/projectManage/getProjectDetail',params) return get('/occupationlab/occupationlab/projectManage/getProjectDetail', params)
} }
export const submit= (params) => { export const submit = (params) => {
return post( '/bank/bank/submit',params) return post('/bank/bank/submit', params)
} }
export const getSubjectInfo= (params) => { export const getSubjectInfo = (params) => {
return get( '/judgment/judgment/lcSubject/getSubjectInfo',params) return get('/judgment/judgment/lcSubject/getSubjectInfo', params)
} }
export const getQueryCache= () => { export const getQueryCache = () => {
return get( '/bank/bank/queryCache') return get('/bank/bank/queryCache')
} }
export const addOperation= (params) => { export const addOperation = (params) => {
return post( '/bank/bank/addOperation',params) return post('/bank/bank/addOperation', params)
} }
export const getOperation= (params) => { export const getOperation = (params) => {
return get( '/bank/bank/getOperation',params) return get('/bank/bank/getOperation', params)
} }
export const deleteCache= () => { export const deleteCache = () => {
return get( '/bank/bank/deleteCache') return get('/bank/bank/deleteCache')
} }
export const exportBankExperimentReport= (params) => { export const exportBankExperimentReport = (params) => {
return post( '/occupationlab/occupationlab/achievement/exportBankExperimentReport',params) return post('/occupationlab/occupationlab/achievement/exportBankExperimentReport', params)
} }
export const updateReport= (params) => { export const updateReport = (params) => {
return post( '/occupationlab/occupationlab/achievement/updateReport',params) return post('/occupationlab/occupationlab/achievement/updateReport', params)
} }
// 学生查看考核状态 // 学生查看考核状态
export const checkTest= (params) => { export const checkTest = (params) => {
return get( '/occupationlab/occupationlab/assessment/getDetailById', {...params}) return get('/occupationlab/occupationlab/assessment/getDetailById', { ...params })
} }
export const checkTest2= (params) => { export const checkTest2 = (params) => {
return post( '/occupationlab/occupationlab/assessment/pageStuAssessment',{ return post('/occupationlab/occupationlab/assessment/pageStuAssessment', {
pageNum: 1, pageNum: 1,
pageSize: 10000, pageSize: 10000,
...params ...params
@ -46,7 +43,36 @@ export const checkTest2= (params) => {
} }
export const reportDetail = (reportId) => { export const reportDetail = (reportId) => {
return get( '/occupationlab/occupationlab/achievement/reportDetail',{ return get('/occupationlab/occupationlab/achievement/reportDetail', {
reportId reportId
}) })
} }
export const creditEvaluationInput = data => {
return post('/judgment/bankCreditEvaluation/creditEvaluationInput', data)
}
export const loanContractDel = data => {
return post('/judgment/bankLoanContractInfo/batchDeletion', data)
}
export const loanContractFind = id => {
return post('/judgment/bankLoanContractInfo/findById?id=' + id)
}
export const loanContractList = (data) => {
return post('/judgment/bankLoanContractInfo/pagingQuery', data)
}
export const loanContractSave = (data) => {
return post('/judgment/bankLoanContractInfo/saveOrUpdate', data)
}
export const personalBasicDel = data => {
return post('/judgment/bankPersonalBasicInfo/batchDeletion', data)
}
export const personalBasicFind = id => {
return post('/judgment/bankPersonalBasicInfo/findById?id=' + id)
}
export const personalBasicList = (data) => {
return post('/judgment/bankPersonalBasicInfo/pagingQuery', data)
}
export const personalBasicSave = (data) => {
return post('/judgment/bankPersonalBasicInfo/saveOrUpdate', data)
}

@ -23,7 +23,7 @@ const obj = {
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
data(){ data () {
return { return {
unNeed: false, unNeed: false,
isNeedBefore: false, isNeedBefore: false,
@ -31,22 +31,22 @@ export default {
tipsNefore: null tipsNefore: null
} }
}, },
created() { created () {
// 将上次保存的这个模块的数据写上页面,因为上次退出时保存了这个模块的数据(beforeDestroy) // 将上次保存的这个模块的数据写上页面,因为上次退出时保存了这个模块的数据(beforeDestroy)
if(sessionStorage.getItem(this.moduleName)) { if (sessionStorage.getItem(this.moduleName)) {
const getBeforeData = JSON.parse(sessionStorage.getItem(this.moduleName)) const getBeforeData = JSON.parse(sessionStorage.getItem(this.moduleName))
for(const key in getBeforeData) { for (const key in getBeforeData) {
this.form[key] = Number(getBeforeData[key])? Number(getBeforeData[key]): getBeforeData[key] this.form[key] = Number(getBeforeData[key]) ? Number(getBeforeData[key]) : getBeforeData[key]
} }
} }
// 如果所选业务需要(需求变更,不用管这个了) // 如果所选业务需要(需求变更,不用管这个了)
if(this.inMyWork(this.moduleName)) { if (this.inMyWork(this.moduleName)) {
if(this.needsModule(this.moduleName)) { if (this.needsModule(this.moduleName)) {
this.isNeedBefore = true this.isNeedBefore = true
this.needBefore = this.needsModule(this.moduleName) this.needBefore = this.needsModule(this.moduleName)
} }
}else { } else {
this.isNeedBefore = true this.isNeedBefore = true
this.unNeed = true this.unNeed = true
return; return;
@ -55,26 +55,21 @@ export default {
}, },
methods: { methods: {
// 暴露出外面的方法,可以提交后删除调存在sessionStorage中的的数据,因为有后端缓存了。 // 暴露出外面的方法,可以提交后删除调存在sessionStorage中的的数据,因为有后端缓存了。
clearSaveData() { clearSaveData () {
sessionStorage.removeItem(this.moduleName) sessionStorage.removeItem(this.moduleName)
} }
}, },
beforeDestroy() { beforeDestroy () {
// clearInterval(this.myTipBefore)
// this.myTipBefore = null
// 这个业务是我们需要的,所以我们存数据 // 这个业务是我们需要的,所以我们存数据
let tmpForm = {} let tmpForm = {}
for(const key in this.form) { for (const key in this.form) {
if(this.form[key] !== '') { if (this.form[key] !== '') {
tmpForm[key] = this.form[key] tmpForm[key] = this.form[key]
} }
} }
// 系统录入当前页面关闭或离开的时候,保存当前模块的数据。回来的时候这些数据还在(业务需求)。 // 系统录入当前页面关闭或离开的时候,保存当前模块的数据。回来的时候这些数据还在(业务需求)。
sessionStorage.setItem(this.moduleName, JSON.stringify(tmpForm)) sessionStorage.setItem(this.moduleName, JSON.stringify(tmpForm))
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({

@ -1,34 +1,33 @@
// //
<template> <template>
<div class="wrap wrap2"> <div class="wrap wrap2">
<MyTitle :titleArr="['公司业务', text]"/> <MyTitle :titleArr="['公司业务', text]" />
<!-- 开户 --> <!-- 开户 -->
<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" :rules="rules"> <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="转出账号" prop="transoutNum"> <el-form-item label="转出账号" prop="transoutNum">
<el-input :value="form.transoutNum" @blur="getBlurData" maxlength="20" @input="(val) => checkHanzi(val, form, 'transoutNum')" ref="transoutNum"></el-input> <el-input :value="form.transoutNum" @blur="getBlurData" maxlength="20"
@input="(val) => checkHanzi(val, form, 'transoutNum')" ref="transoutNum"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="凭证号码" prop="certificateNum"> <el-form-item label="凭证号码" prop="certificateNum">
<el-input :value="form.certificateNum" maxlength="20" @input="(val) => checkHanzi(val, form, 'certificateNum')" ref="certificateNum"></el-input> <el-input :value="form.certificateNum" maxlength="20"
@input="(val) => checkHanzi(val, form, 'certificateNum')" ref="certificateNum"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="签发日期" prop="signDate"> <el-form-item label="签发日期" prop="signDate">
<el-date-picker <el-date-picker v-model.trim="form.signDate" disabled type="date" placeholder="选择日期" ref="signDate">
v-model.trim="form.signDate"
disabled
type="date"
placeholder="选择日期"
ref="signDate">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="currencyMark"> <el-form-item label="钞汇标识" prop="currencyMark">
<el-select v-model.trim="form.currencyMark" disabled placeholder="请选择" ref="currencyMark"> <el-select v-model.trim="form.currencyMark" disabled placeholder="请选择" ref="currencyMark">
<el-option v-for="item in getSelectList.goldLogoSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> <el-option v-for="item in getSelectList.goldLogoSelectList" :label="item.options" :value="item.itemId"
:key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="转入账号" prop="transinNum"> <el-form-item label="转入账号" prop="transinNum">
<el-input :value="form.transinNum" maxlength="20" @input="(val) => checkHanzi(val, form, 'transinNum')" ref="transinNum"></el-input> <el-input :value="form.transinNum" maxlength="20" @input="(val) => checkHanzi(val, form, 'transinNum')"
ref="transinNum"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="金额" prop="money"> <el-form-item label="金额" prop="money">
<el-input :value="form.money" maxlength="15" @input="val => ismoney(val, form, 'money')"></el-input> <el-input :value="form.money" maxlength="15" @input="val => ismoney(val, form, 'money')"></el-input>
@ -37,7 +36,8 @@
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户姓名" prop="customerName"> <el-form-item label="客户姓名" prop="customerName">
<el-input :value="form.customerName" maxlength="20" @input="(val) => checkName(val, form, 'customerName')" ref="customerName"></el-input> <el-input :value="form.customerName" maxlength="20" @input="(val) => checkName(val, form, 'customerName')"
ref="customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="凭证类型" prop="certificateType"> <el-form-item label="凭证类型" prop="certificateType">
<el-select v-model.trim="form.certificateType" placeholder="请选择" ref="certificateType"> <el-select v-model.trim="form.certificateType" placeholder="请选择" ref="certificateType">
@ -47,7 +47,8 @@
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currencyType"> <el-form-item label="币种" prop="currencyType">
<el-select v-model.trim="form.currencyType" disabled placeholder="请选择" ref="currencyType"> <el-select v-model.trim="form.currencyType" disabled placeholder="请选择" ref="currencyType">
<el-option v-for="item in getSelectList.currencySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> <el-option v-for="item in getSelectList.currencySelectList" :label="item.options" :value="item.itemId"
:key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="支取方式" prop="payWay"> <el-form-item label="支取方式" prop="payWay">
@ -56,7 +57,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="转入户名" prop="transinName"> <el-form-item label="转入户名" prop="transinName">
<el-input :value="form.transinName" maxlength="40" @input="(val) => checkName(val, form, 'transinName')"></el-input> <el-input :value="form.transinName" maxlength="40"
@input="(val) => checkName(val, form, 'transinName')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="摘要" prop="abstract"> <el-form-item label="摘要" prop="abstract">
<el-input v-model.trim="form.abstract" maxlength="60"></el-input> <el-input v-model.trim="form.abstract" maxlength="60"></el-input>
@ -65,7 +67,8 @@
</el-form> </el-form>
</el-row> </el-row>
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button> <el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button>
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" :needAuth="needAuth" /> <my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName"
@submitIt="submitForm2" :needAuth="needAuth" />
</div> </div>
</div> </div>
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" class="wrap" /> --> <!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" class="wrap" /> -->
@ -84,18 +87,18 @@ import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialog' import MyDialog from '@/components/dialog'
export default { export default {
name: 'index', name: 'index',
components:{ components: {
MyTitle, MyTitle,
NeedBefore, NeedBefore,
MyDialog MyDialog
}, },
mixins: [ TipsBefore ], mixins: [TipsBefore],
data() { data () {
return { return {
moduleName: 'business/transfer', moduleName: 'business/transfer',
text:'转账',/* 顶部文字 */ text: '转账',/* 顶部文字 */
visible: false, visible: false,
form:{ form: {
// //
transoutNum: '', // transoutNum: '', //
certificateNum: '', // certificateNum: '', //
@ -111,7 +114,7 @@ export default {
payWay: '', // payWay: '', //
abstract: '', // abstract: '', //
}, },
formName:{ formName: {
// //
transoutNum: '转出账号', // transoutNum: '转出账号', //
certificateNum: '凭证号码', // certificateNum: '凭证号码', //
@ -166,12 +169,12 @@ export default {
], ],
}, },
second:[// second: [//
], ],
visible:false, visible: false,
options:[], options: [],
activeIndex:'1', activeIndex: '1',
myTable: { myTable: {
257: { 257: {
prop: 'transoutNum', prop: 'transoutNum',
@ -239,13 +242,13 @@ export default {
submited: 0 submited: 0
} }
}, },
created() { created () {
if(this.isNeedBefore) { if (this.isNeedBefore) {
return return
} }
this.getFormData() this.getFormData()
}, },
mounted() { mounted () {
}, },
methods: { methods: {
...mapMutations({ ...mapMutations({
@ -254,7 +257,7 @@ export default {
setNeedsModule: 'system/setNeedsModule', setNeedsModule: 'system/setNeedsModule',
setPopId: 'system/setPopId' setPopId: 'system/setPopId'
}), }),
getBlurData() { getBlurData () {
// transoutNum: '', // // transoutNum: '', //
// certificateNum: '', // // certificateNum: '', //
// customerName: '', // // customerName: '', //
@ -268,7 +271,7 @@ export default {
// signDate: '', // // signDate: '', //
// payWay: '', // // payWay: '', //
// abstract: '', // // abstract: '', //
if(this.form.transoutNum) { if (this.form.transoutNum) {
const { currency } = this.dataFlow const { currency } = this.dataFlow
this.form.currencyMark = 13 this.form.currencyMark = 13
this.form.signDate = '2021-01-05' this.form.signDate = '2021-01-05'
@ -277,17 +280,17 @@ export default {
this.form.payWay = 114 this.form.payWay = 114
} }
}, },
getFormData(){ getFormData () {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,27,227' const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,27,227'
autoPlay2(parentId, this.form, this.myTable2, this.myTable) autoPlay2(parentId, this.form, this.myTable2, this.myTable)
}, },
submitForm() { submitForm () {
if (this.submited) return this.$message.error('已提交!') if (this.submited) return this.$message.error('已提交!')
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
this.visible = true; this.visible = true;
}, this.$refs)); }, this.$refs));
}, },
submitForm2() { submitForm2 () {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,27,227' const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,27,227'
autoPlay(parentId, this.form, this.myTable2, this.myTable) autoPlay(parentId, this.form, this.myTable2, this.myTable)
console.log("🚀 ~ file: transfer.vue ~ line 291 ~ submitForm2 ~ parentId, this.form, this.myTable2, this.myTable", parentId, this.form, this.myTable2, this.myTable) console.log("🚀 ~ file: transfer.vue ~ line 291 ~ submitForm2 ~ parentId, this.form, this.myTable2, this.myTable", parentId, this.form, this.myTable2, this.myTable)
@ -306,7 +309,7 @@ export default {
inMyWork: 'system/inMyWork', inMyWork: 'system/inMyWork',
getSelectList: 'system/getSelectList' getSelectList: 'system/getSelectList'
}), }),
needAuth() { needAuth () {
return this.form.money >= 50000 return this.form.money >= 50000
} }
} }
@ -314,16 +317,17 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.wrap{ .wrap {
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: auto; overflow: auto;
padding: 24px 0 24px 24px; padding: 24px 0 24px 24px;
.body{
.body {
margin-top: 50px; margin-top: 50px;
overflow-y: auto; overflow-y: auto;
overflow-x: hidden; overflow-x: hidden;
} }
} }
</style> </style>

@ -4,60 +4,36 @@
<my-title :titleArr="['公司贷款', '贷款申请']" /> <my-title :titleArr="['公司贷款', '贷款申请']" />
<div style="width: 300px;margin-bottom: 20px;"> <div style="width: 300px;margin-bottom: 20px;">
<el-input v-model="keyword" <el-input v-model="keyword" placeholder="请输入客户姓名" clearable />
placeholder="请输入客户姓名"
clearable />
</div> </div>
<el-button style="margin-bottom: 20px;" <el-button style="margin-bottom: 20px;" type="primary"
type="primary"
@click="$router.push('/counter/list/manage/corporateLoans-apply')">新建贷款申请</el-button> @click="$router.push('/counter/list/manage/corporateLoans-apply')">新建贷款申请</el-button>
<el-table max-height="350" <el-table max-height="350" ref="filterTable" :data="tableData" :header-cell-style="headerCellStyle"
ref="filterTable"
:data="tableData"
:header-cell-style="headerCellStyle"
:row-class-name="tableRowClassName"> :row-class-name="tableRowClassName">
<el-table-column prop="currency" <el-table-column prop="currency" label="客户姓名" align="center">
label="客户姓名"
align="center">
</el-table-column> </el-table-column>
<el-table-column prop="currency" <el-table-column prop="currency" label="申请编号" align="center">
label="申请编号"
align="center">
</el-table-column> </el-table-column>
<el-table-column prop="currency" <el-table-column prop="currency" label="申请日期" align="center">
label="申请日期"
align="center">
</el-table-column> </el-table-column>
<el-table-column prop="currency" <el-table-column prop="currency" label="申请类型" align="center">
label="申请类型"
align="center">
</el-table-column> </el-table-column>
<el-table-column prop="currency" <el-table-column prop="currency" label="申请金额" align="center">
label="申请金额"
align="center">
</el-table-column> </el-table-column>
<el-table-column prop="currency" <el-table-column prop="currency" label="办理状态" align="center">
label="办理状态"
align="center">
</el-table-column> </el-table-column>
<el-table-column label="操作" <el-table-column label="操作" align="center" width="150">
align="center"
width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button @click="back(scope.row)" <el-button @click="back(scope.row)" size="small">详情</el-button>
size="small">详情</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<div class="pagination"> <div class="pagination">
<el-pagination background <el-pagination background layout="total, prev, pager, next" :current-page="page"
layout="total, prev, pager, next" @current-change="handleCurrentChange" :total="total"></el-pagination>
:current-page="page"
@current-change="handleCurrentChange"
:total="total"></el-pagination>
</div> </div>
</div> </div>
</template> </template>
@ -105,6 +81,7 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss'; @import '@/assets/css/tablebg.scss';
.body { .body {
width: 100%; width: 100%;
padding: 24px; padding: 24px;

@ -7,77 +7,78 @@
<h6 class="l-title">客户信息</h6> <h6 class="l-title">客户信息</h6>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="账号" prop="customerName"> <el-form-item label="账号" prop="applicationAccount">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.applicationAccount" @input="val => inputListen(val, form, 'applicationAccount')"
@blur="accountBlur" />
</el-form-item> </el-form-item>
<el-form-item label="证件类型" prop="certificateType"> <el-form-item label="证件类型" prop="identificationType">
<el-select v-model.trim="form.certificateType" placeholder="请选择" ref="certificateType"> <el-select v-model.trim="form.identificationType" placeholder="请选择" disabled>
<el-option label="身份证" :value="83"> </el-option> <el-option label="统一社会信用代码证" :value="82"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="联系电话" prop="customerName"> <el-form-item label="联系电话" prop="contactPhoneNumber">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.contactPhoneNumber" />
</el-form-item> </el-form-item>
<el-form-item label="法人姓名" prop="customerName"> <el-form-item label="法人姓名" prop="corporateName">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.corporateName" />
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="customerName"> <el-form-item label="币种" prop="currency">
<el-select v-model.trim="form.certificateType" placeholder="请选择"> <el-select v-model.trim="form.currency" placeholder="请选择" disabled>
<el-option label="身份证" :value="83"> </el-option> <el-option label='CNY人民币' :value="12"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="利率(%)" prop="customerName"> <el-form-item label="利率(%)" prop="interestRate">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.interestRate" disabled />
</el-form-item> </el-form-item>
<el-form-item label="支取方式" prop="customerName"> <el-form-item label="支取方式" prop="withdrawalMethod">
<el-select v-model.trim="form.certificateType" placeholder="请选择"> <el-select v-model.trim="form.withdrawalMethod" placeholder="请选择" disabled>
<el-option label="身份证" :value="83"> </el-option> <el-option label="印鉴" :value="114"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="成立年份" prop="customerName"> <el-form-item label="成立年份" prop="yearOfEstablishment">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.yearOfEstablishment" />
</el-form-item> </el-form-item>
<el-form-item label="主营范围" prop="customerName"> <el-form-item label="主营范围" prop="mainBusinessScope">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.mainBusinessScope" />
</el-form-item> </el-form-item>
<el-form-item label="财报提交方式" prop="customerName"> <el-form-item label="财报提交方式" prop="financialReportSubmissionMethod">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.financialReportSubmissionMethod" />
</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="客户名称" prop="customerName"> <el-form-item label="客户名称" prop="customerName">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.customerName" />
</el-form-item> </el-form-item>
<el-form-item label="证件号码" prop="customerName"> <el-form-item label="证件号码" prop="identificationNumber">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.identificationNumber" />
</el-form-item> </el-form-item>
<el-form-item label="注册地址" prop="customerName"> <el-form-item label="注册地址" prop="companyRegisteredAddress">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.companyRegisteredAddress" />
</el-form-item> </el-form-item>
<el-form-item label="法人证件号码" prop="customerName"> <el-form-item label="法人证件号码" prop="corporateIdNumber">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.corporateIdNumber" />
</el-form-item> </el-form-item>
<el-form-item label="账户类型" prop="customerName"> <el-form-item label="账户类型" prop="accountType">
<el-select v-model.trim="form.certificateType" placeholder="请选择"> <el-select v-model.trim="form.accountType" placeholder="请选择" disabled>
<el-option label="身份证" :value="83"> </el-option> <el-option label="结算户" :value="97"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="计息方式" prop="customerName"> <el-form-item label="计息方式" prop="interestCalculationMethod">
<el-select v-model.trim="form.certificateType" placeholder="请选择"> <el-select v-model.trim="form.interestCalculationMethod" placeholder="请选择" disabled>
<el-option label="身份证" :value="83"> </el-option> <el-option label="计息方式" :value="83"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="员工人数" prop="customerName"> <el-form-item label="员工人数" prop="numberOfEmployees">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.numberOfEmployees" />
</el-form-item> </el-form-item>
<el-form-item label="注册类型" prop="customerName"> <el-form-item label="注册类型" prop="registrationType">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.registrationType" />
</el-form-item> </el-form-item>
<el-form-item label="营业执照到期日" prop="customerName"> <el-form-item label="营业执照到期日" prop="expirationDateOfBusinessLicense">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.expirationDateOfBusinessLicense" />
</el-form-item> </el-form-item>
<el-form-item label="借款人性质" prop="customerName"> <el-form-item label="借款人性质" prop="natureOfBorrower">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.natureOfBorrower" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -89,305 +90,130 @@
<el-button @click="next" type="primary" class="submitBtn" v-throttle>下一步</el-button> <el-button @click="next" type="primary" class="submitBtn" v-throttle>下一步</el-button>
</div> </div>
</div> </div>
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> -->
</template> </template>
<script> <script>
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageIdCard, messageCard, messagePassword } from '@/utils/utilFunction.js'; import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageIdCard, messageCard, messagePassword } from '@/utils/utilFunction.js';
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { addOperation, creditEvaluationInput } from '@/api/http'
const moduleName = 'usefulPhrases/openAccount' const moduleName = 'creditEva/basic'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialog'
import TipsBefore from '@/mixins/tipsBefore' import TipsBefore from '@/mixins/tipsBefore'
import MyTitle from '@/components/myTitle'
export default { export default {
name: '',
props: {},
components: {
NeedBefore,
MyTitle,
MyDialog
},
mixins: [TipsBefore], mixins: [TipsBefore],
created () {
if (sessionStorage.getItem('nomUsefulPhrasesOpenPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword')
}
// if(sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) {
// this.idNumberJudge = true
// this.form.idNumber = this.dataFlow.idNumber || '441515199812064569'
// }
// if(sessionStorage.getItem('nomUsefulPhrasesOpenCard')) {
// this.cardNumberJudge = true
// this.form.voucherNumber = this.dataFlow.voucherNumber || '159753'
// }
if (sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) {
this.idNumberJudge = true
//
const { idNumber, userName, peopleNumber, currency, goldLogo } = this.dataFlow
this.form.clientNumber = peopleNumber
this.form.idNumber = idNumber
this.form.customerName = userName
this.form.currency = currency
this.form.goldLogo = goldLogo
this.form.voucherType = 127
}
if (sessionStorage.getItem('nomUsefulPhrasesOpenCard')) {
this.cardNumberJudge = true
const { voucherNumber } = this.dataFlow
this.form.voucherNumber = voucherNumber
}
this.getFormData()
},
data () { data () {
return { return {
moduleName: 'usefulPhrases/openAccount', moduleName,
visible: false,
cardNumberJudge: false,
idNumberJudge: false,
form: { form: {
// applicationAccount: '',
// identityCard: '', // customerName: '',
idNumber: '', identificationType: '',
customerName: '', // identificationNumber: '',
currency: '', // contactPhoneNumber: '',
goldLogo: '', // companyRegisteredAddress: '',
voucherType: '', // corporateName: '',
monthDeposit: '', // corporateIdNumber: '',
depositTerm: '', // contactPhoneNumber: '',
extendDepositTarget: '', // currency: 12,
voucherNumber: '', // accountType: 97,
drawPassword: '', // interestRate: 3.2,
// interestCalculationMethod: 83,
clientNumber: '', // withdrawalMethod: 114,
certificateType: 83, // numberOfEmployees: '',
yearOfEstablishment: '',
registrationType: '',
mainBusinessScope: '',
expirationDateOfBusinessLicense: '',
financialReportSubmissionMethod: '',
natureOfBorrower: '',
}, },
formName: { formName: {
// applicationAccount: '账号',
// identityCard: '', // customerName: '客户名称',
idNumber: '身份证', identificationType: '证件类型',
customerName: '客户姓名', // identificationNumber: '证件号码',
currency: '币种', // contactPhoneNumber: '联系电话',
goldLogo: '钞汇标识', // companyRegisteredAddress: '注册地址',
voucherType: '凭证类型', // corporateName: '法人姓名',
monthDeposit: '月存金额', // corporateIdNumber: '法人证件号码',
depositTerm: '存期', // currency: '币种',
extendDepositTarget: '续存标识', // accountType: '账户类型',
voucherNumber: '凭证号码', // interestRate: '利率',
drawPassword: '支付密码', // interestCalculationMethod: '计息方式',
// withdrawalMethod: '支取方式',
clientNumber: '客户号', // numberOfEmployees: '员工人数',
certificateType: '证件类型', // yearOfEstablishment: '成立年份',
registrationType: '注册类型',
mainBusinessScope: '主营范围',
expirationDateOfBusinessLicense: '营业执照到期日',
financialReportSubmissionMethod: '财报提交方式',
natureOfBorrower: '借款人性质',
}, },
rules: { rules: {
customerName: vercustomer, applicationAccount: [
currency: [
{
required: true,
message: '请选择币种',
trigger: 'blur'
}
],
goldLogo: [
{
required: true,
message: '请选择钞汇标识',
trigger: 'blur'
}
],
voucherType: [
{
required: true,
message: '请选择凭证类型',
trigger: 'blur'
}
],
monthDeposit: [
{
required: true,
message: '请输入月存金额',
trigger: 'blur'
}
],
depositTerm: [
{
required: true,
message: '请选择存期',
trigger: 'blur'
}
],
extendDepositTarget: [
{ {
required: true, required: true,
message: '请选择续存标识', message: '请输入账号',
trigger: 'blur' trigger: 'blur'
} }
], ],
}, },
myTable2: {
158: {
prop: 'certificateType',//
type: '1',
"subjectId": 19,
},
// 169: {
// prop: 'customerManage',//
// type: '3',
// "subjectId": 27,
// },
160: {
prop: 'clientNumber',//
type: '3',
"subjectId": 6,
}
},
myTable: {
159: {
prop: 'idNumber',//
type: '3',
},
161: {
prop: 'customerName',//
type: '3',
"subjectId": 7,
},
162: {
prop: 'currency',//
type: '1',
"subjectId": 8,
},
163: {
prop: 'goldLogo',//
type: '1',
"subjectId": 9,
},
164: {
prop: 'voucherType',//
type: '1',
"subjectId": 11,
},
166: {
prop: 'voucherNumber',//
type: '3',
"subjectId": 44,
},
167: {
prop: 'drawPassword',
type: '3',
"subjectId": 17,
},
168: {
prop: 'monthDeposit',//
type: '3',
"subjectId": 31,
},
170: {
prop: 'extendDepositTarget',//
type: '1',
"subjectId": 37,
},
},
submited: 0 submited: 0
} }
}, },
mounted () { mounted () {
// this.getFormData()
}, },
methods: { methods: {
// userName,
// peopleNumber,
// idNumber,
// currency:'CNY',
// goldLogo:'',
...mapMutations({ ...mapMutations({
changeShowGoods: 'system/changeShowGoods', changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow', setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule', setNeedsModule: 'system/setNeedsModule',
setPopId: 'system/setPopId', setPopId: 'system/setPopId',
setTipsOperate: 'system/setTipsOperate' setTipsOperate: 'system/setTipsOperate',
setCreditIds: 'system/setCreditIds',
}), }),
getDataBlur () { // blur
// console.log('???') accountBlur (val) {
}, this.form.customerName = '袋鼠互联网科技有限公司'
popUp1 (text) { this.form.identificationType = 82
this.setTipsOperate('请刷身份证'); this.form.identificationNumber = '913403005685450862'
this.setPopId('1399') this.form.contactPhoneNumber = '15890317718'
sessionStorage.setItem('computerPath', this.$route.fullPath) this.form.companyRegisteredAddress = '广东省深圳市南山区前海一号2020室'
this.$router.push('/counter/list/') this.form.corporateName = '丛小凤'
}, this.form.corporateIdNumber = '220602199202281229'
popUp2 (text) {
this.setTipsOperate('请刷银行卡'); this.form.numberOfEmployees = 50
this.setPopId('166') this.form.yearOfEstablishment = '2018-02-19'
sessionStorage.setItem('computerPath', this.$route.fullPath) this.form.registrationType = '有限公司'
this.$router.push('/counter/list/') this.form.mainBusinessScope = '信息技术'
}, this.form.expirationDateOfBusinessLicense = '2024-01-01'
popUp3 (text) { this.form.financialReportSubmissionMethod = '半年'
this.setTipsOperate('请在密码器输入密码'); this.form.natureOfBorrower = '企业法人'
this.setPopId('167')
sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/')
}, },
getFormData () { getFormData () {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,155'
const cards = {
// 1399: 'nomUsefulPhrasesOpenCard2',
// 166: 'nomUsefulPhrasesOpenCard',
// 167: 'nomUsefulPhrasesOpenPassword'
}
const callback = () => {
if (this.form.idNumber) {
this.idNumberJudge = true
}
if (this.form.voucherNumber) {
this.cardNumberJudge = true
}
if (sessionStorage.getItem('nomUsefulPhrasesOpenPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword')
}
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
},
next () {
this.$emit('updateStep', 1)
},
submitForm () {
}, },
submitForm2 () { //
// let nomUsefulPhrasesOpenCard = sessionStorage.getItem('nomUsefulPhrasesOpenCard') async next () {
// let nomUsefulPhrasesOpenCard2 = sessionStorage.getItem('nomUsefulPhrasesOpenCard2') const { form } = this
// let nomUsefulPhrasesOpenPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword') if (!form.applicationAccount) {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,155' messageCard('请填写账号')
const cards = [ return
{ }
key: '159,13' try {
} const res = creditEvaluationInput(form)
// id
// { this.setCredit({
// 1399: nomUsefulPhrasesOpenCard2 companyLoanId: res.companyLoanId, // tabid
// }, creditEvaluationId: res.creditEvaluationId, // id
// { })
// 166: nomUsefulPhrasesOpenCard this.$emit('updateStep', 1)
// }, } catch { (e) => { } }
// {
// 167: nomUsefulPhrasesOpenPassword,
// "subjectId": 17,
// }
]
this.setDataFlow(this.form)
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
this.submited = 1
}, },
ismoney: ismoney, ismoney,
checkHanzi: checkHanzi, checkHanzi,
checkName: checkName, checkName,
inputListen: inputListen inputListen,
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({

@ -34,35 +34,95 @@
<el-button @click="$emit('updateStep', 0)" type="primary" class="submitBtn" v-throttle>上一步</el-button> <el-button @click="$emit('updateStep', 0)" type="primary" class="submitBtn" v-throttle>上一步</el-button>
<el-button @click="next" type="primary" class="submitBtn" v-throttle>下一步</el-button> <el-button @click="next" type="primary" class="submitBtn" v-throttle>下一步</el-button>
</div> </div>
<div v-show="showPop" width="900px" class="data-dia z500 max-h-screen 2xl:-mt-20;" ref="dataDia" v-drag>
<div class="dia-header h-1/6">
<div class="data-title">{{ popText }}</div>
<div class="close-wrap">
<img class="close" v-lazy="lazyImg[28]" alt="" @click="closePop" />
</div>
</div>
<p class="tips">- 请从物品栏选中或拖拽所需材料 -</p>
<div class="list" ref="popUp">
<div class="img-wrap" :class="{ checked: commonChecked.includes(item.id), 'img-wrap': true }"
v-for="(item, index) in receptionList" :key="item.id" @click='dislodgeItem(index)'>
<!-- <img :src="item.src" class="file" alt="" /> -->
<el-image :src="item.src" class="file" :alt="item.name" :title="item.name" fit="scale-down"></el-image>
<p class="text">{{ item.name }}</p>
</div>
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
import Upload from '@/components/upload'; import Upload from '@/components/upload';
import { addOperation, creditEvaluationInput } from '@/api/http'
const moduleName = 'usefulPhrases/openAccount'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialog'
import TipsBefore from '@/mixins/tipsBefore' import TipsBefore from '@/mixins/tipsBefore'
import MyTitle from '@/components/myTitle'
const moduleName = 'creditEva/importReport'
export default { export default {
name: '',
props: {},
components: { components: {
Upload Upload
}, },
created () { computed: {
popText: function () {/* 文字 */
return this.$store.state.system.popText;
},
showGoods: function () {
return this.$store.state.system.showGoods
},
//
showPop: function () {
const dataDia = this.$refs.dataDia
//
if (dataDia) {
dataDia.style.top = '68px'
dataDia.style.left = '50%'
}
this.$refs.dataDia
this.receptionList = []
this.passwordForm.passwordAgain = ''
this.passwordForm.password2 = ''
if (!this.showGoods) this.checkList = []
return this.$store.state.system.showPop;
},
}, },
data () { data () {
return { return {
commonChecked: [],//
receptionList: [],
} }
}, },
mounted () { mounted () {
}, },
methods: { methods: {
...mapMutations({
changeShowGoods: 'system/changeShowGoods',
}),
showData (type, nbm) {/* 展示弹窗-type为弹窗标题文字 */
this.nbm = nbm
//
this.changeShowGoods(true)
if (type !== '系统') {
this.$store.commit('system/changePop', { show: true, text: type, id: this.id })
}
},
closePop () {//
// v-drag
document.onmousemove = null
document.onmouseup = null
this.receptionList = [];
this.changeShowGoods(false)
this.$store.commit('system/changePop', { show: false, text: '' })
},
uploadSuccess (file) { uploadSuccess (file) {
this.fileId = '' this.fileId = ''
this.fileType = file.format this.fileType = file.format

@ -51,7 +51,7 @@ export default {
CreditApplication, CreditApplication,
LoanApplication1, LoanApplication1,
LoanApplication2, LoanApplication2,
MyTitle MyTitle,
}, },
data () { data () {
return { return {
@ -74,7 +74,7 @@ export default {
}, },
methods: { methods: {
handleSelect (val) { handleSelect (val) {
this.curStep = 0 this.curStep = 1
this.text = this.textObj[val] this.text = this.textObj[val]
this.activeIndex = val this.activeIndex = val
this.cacheVal = val this.cacheVal = val

@ -68,9 +68,8 @@
</div> </div>
</template> </template>
<script> <script>
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { myValidate, ismoney, checkName, checkHanzi, messagePassword, messageCard, inputListen } from '@/utils/utilFunction.js' import { myValidate, ismoney, checkName, checkHanzi, messagePassword, messageCard, inputListen } from '@/utils/utilFunction.js'
import { addOperation, getOperation } from '@/api/http'; import { addOperation, getOperation } from '@/api/http'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import TipsBefore from '@/mixins/tipsBefore' import TipsBefore from '@/mixins/tipsBefore'

@ -2,85 +2,48 @@
<template> <template>
<div class="wrap"> <div class="wrap">
<MyTitle :titleArr="['个人贷款', '新增贷款申请']" /> <MyTitle :titleArr="['个人贷款', '新增贷款申请']" />
<el-row :gutter="20" <el-row :gutter="20" style="margin: 0">
style="margin: 0"> <el-form ref="form" :model="form" label-width="120px" :rules="rules">
<el-form ref="form"
:model="form"
label-width="120px"
:rules="rules">
<template v-if="curStep === 1 || isDetail"> <template v-if="curStep === 1 || isDetail">
<el-col :span="24"> <el-col :span="24">
<h6 class="l-title">基本信息</h6> <h6 class="l-title">基本信息</h6>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1"> <el-form-item label="证件类型" prop="idType">
<el-form-item label="证件类型" <el-select v-model.trim="form.idType" placeholder="请选择" disabled>
prop="certificateType"> <el-option label="身份证" :value="83"> </el-option>
<el-select v-model.trim="form.certificateType"
placeholder="请选择"
ref="certificateType"
disabled>
<el-option label="身份证"
:value="83"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="客户姓名" <el-form-item label="客户姓名" prop="customerName">
prop="customerName"> <el-input disabled v-model="form.customerName" @input="(val) => checkName(val, form, 'customerName')" />
<el-input ref="customerName" </el-form-item>
disabled <el-form-item label="出生日期" prop="birthDate">
v-model="form.customerName" <el-date-picker disabled v-model.trim="form.birthDate" type="date" placeholder="选择日期" format="yyyy-MM-dd"
@input="(val) => checkName(val, form, 'customerName')"></el-input>
</el-form-item>
<el-form-item label="出生日期"
prop="birthday">
<el-date-picker disabled
v-model.trim="form.birthday"
type="date"
placeholder="选择日期"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"> value-format="yyyy-MM-dd">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1"> <el-form-item label="证件号码" required>
<el-form-item label="证件号码" <div class="idCard" @click="popUp1('身份证扫描仪')" v-if='!idNumberJudge'>
required>
<div class="idCard"
@click="popUp1('身份证扫描仪')"
v-if='!idNumberJudge'>
<p>请刷身份证</p> <p>请刷身份证</p>
</div> </div>
<div v-else> <div v-else>
<el-input v-model="form.idNumber" <el-input v-model="form.idNumber" disabled ref="idNumber" />
disabled
ref="idNumber"></el-input>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="性别" <el-form-item label="性别" prop="gender">
prop="sex"> <el-select v-model.trim="form.gender" disabled placeholder="请选择">
<el-select v-model.trim="form.sex" <el-option :key="1" label="男" :value="1">
disabled
placeholder="请选择"
ref='sex'>
<el-option :key="1"
label="男"
:value="1">
</el-option> </el-option>
<el-option :key="2" <el-option :key="2" label="女" :value="2">
label="女"
:value="2">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="联系电话" <el-form-item label="联系电话" prop="phoneNumber">
:rules="rules.phone" <el-input v-model="form.phoneNumber" @input="(val) => phoneListen(val, form, 'phoneNumber')"
prop="phone"> maxlength="11" />
<el-input v-model="form.phone"
@input="(val) => phoneListen(val, form, 'phone')"
maxlength="12"
ref='phone'></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -88,23 +51,20 @@
<div class="line"></div> <div class="line"></div>
<h6 class="l-title">收入信息</h6> <h6 class="l-title">收入信息</h6>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1">
<el-form-item label="岗位"> <el-form-item label="岗位">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.position" />
</el-form-item> </el-form-item>
<el-form-item label="当前单位工作年限" <el-form-item label="当前单位工作年限" label-width="150px">
label-width="150px"> <el-input v-model="form.currentWorkYears" />
<el-input v-model="form.customerName"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1">
<el-form-item label="薪酬"> <el-form-item label="薪酬">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.salary" />
</el-form-item> </el-form-item>
<el-form-item label="工龄"> <el-form-item label="工龄">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.totalWorkYears" />
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -112,34 +72,29 @@
<div class="line"></div> <div class="line"></div>
<h6 class="l-title">房产信息</h6> <h6 class="l-title">房产信息</h6>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1">
<el-form-item label="产权人"> <el-form-item label="产权人">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.propertyOwner" />
</el-form-item> </el-form-item>
<el-form-item label="共有情况"> <el-form-item label="共有情况">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.coOwnership" />
</el-form-item> </el-form-item>
<el-form-item label="权利类型"> <el-form-item label="权利性质">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.propertyRightNature" />
</el-form-item> </el-form-item>
<el-form-item label="面积"> <el-form-item label="使用期限">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.usagePeriodStart" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1">
<el-form-item label="房产证号"> <el-form-item label="房产证号">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.propertyCertificateNo" />
</el-form-item> </el-form-item>
<el-form-item label="坐落"> <el-form-item label="坐落">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.location" />
</el-form-item>
<el-form-item label="权利性质">
<el-input v-model="form.customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="使用期限"> <el-form-item label="面积">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.area" />
</el-form-item> </el-form-item>
</el-col> </el-col>
</template> </template>
@ -149,100 +104,65 @@
<div class="line"></div> <div class="line"></div>
<h6 class="l-title">贷款合同</h6> <h6 class="l-title">贷款合同</h6>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1">
<el-form-item label="贷款类型"> <el-form-item label="贷款类型">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.customerName" />
</el-form-item> </el-form-item>
<el-form-item label="合同金额"> <el-form-item label="合同金额">
<el-input v-model="form.customerName"></el-input> <el-input v-model="form.customerName" />
</el-form-item> </el-form-item>
<el-form-item label="起息日期" <el-form-item label="起息日期" prop="customerName">
prop="customerName"> <el-input ref="customerName" v-model="form.customerName"></el-input>
<el-input ref="customerName" </el-form-item>
v-model="form.customerName"></el-input> <el-form-item label="计息方式" prop="customerName">
</el-form-item> <el-input ref="customerName" v-model="form.customerName"></el-input>
<el-form-item label="计息方式" </el-form-item>
prop="customerName"> <el-form-item label="浮动比例" prop="customerName">
<el-input ref="customerName" <el-input ref="customerName" v-model="form.customerName"></el-input>
v-model="form.customerName"></el-input> </el-form-item>
</el-form-item> <el-form-item label="逾期利率" prop="customerName">
<el-form-item label="浮动比例" <el-input ref="customerName" v-model="form.customerName"></el-input>
prop="customerName"> </el-form-item>
<el-input ref="customerName" <el-form-item label="还款方式" prop="customerName">
v-model="form.customerName"></el-input> <el-input ref="customerName" v-model="form.customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="逾期利率" <el-form-item label="还款账号" prop="customerName">
prop="customerName"> <el-input ref="customerName" v-model="form.customerName"></el-input>
<el-input ref="customerName"
v-model="form.customerName"></el-input>
</el-form-item>
<el-form-item label="还款方式"
prop="customerName">
<el-input ref="customerName"
v-model="form.customerName"></el-input>
</el-form-item>
<el-form-item label="还款账号"
prop="customerName">
<el-input ref="customerName"
v-model="form.customerName"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" <el-col :span="10" :offset="1">
:offset="1"> <el-form-item label="合同编号" prop="customerName">
<el-form-item label="合同编号" <el-input ref="customerName" v-model="form.customerName"></el-input>
prop="customerName"> </el-form-item>
<el-input ref="customerName" <el-form-item label="贷款期限" prop="customerName">
v-model="form.customerName"></el-input> <el-input ref="customerName" v-model="form.customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="贷款期限" <el-form-item label="到期日期" prop="customerName">
prop="customerName"> <el-input ref="customerName" v-model="form.customerName"></el-input>
<el-input ref="customerName" </el-form-item>
v-model="form.customerName"></el-input> <el-form-item label="基准利率" prop="customerName">
</el-form-item> <el-input ref="customerName" v-model="form.customerName"></el-input>
<el-form-item label="到期日期" </el-form-item>
prop="customerName"> <el-form-item label="执行利率" prop="customerName">
<el-input ref="customerName" <el-input ref="customerName" v-model="form.customerName"></el-input>
v-model="form.customerName"></el-input> </el-form-item>
</el-form-item> <el-form-item label="担保方式" prop="customerName">
<el-form-item label="基准利率" <el-input ref="customerName" v-model="form.customerName"></el-input>
prop="customerName"> </el-form-item>
<el-input ref="customerName" <el-form-item label="利息总额" prop="customerName">
v-model="form.customerName"></el-input> <el-input ref="customerName" v-model="form.customerName"></el-input>
</el-form-item>
<el-form-item label="执行利率"
prop="customerName">
<el-input ref="customerName"
v-model="form.customerName"></el-input>
</el-form-item>
<el-form-item label="担保方式"
prop="customerName">
<el-input ref="customerName"
v-model="form.customerName"></el-input>
</el-form-item>
<el-form-item label="利息总额"
prop="customerName">
<el-input ref="customerName"
v-model="form.customerName"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</template> </template>
</el-form> </el-form>
</el-row> </el-row>
<my-dialog :moduleName="moduleName" <my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName"
v-if="visible" @submitIt="submitForm2" depositNumber='0816' />
:visible.sync="visible"
:showForm="form"
:formName="formName"
@submitIt="submitForm2"
depositNumber='0816' />
<div class="text-center"> <div class="text-center">
<el-button @click="next" <el-button @click="next" type="primary" class="submitBtn" v-throttle>{{ curStep === 1 ? '下一步' : '提交'
type="primary" }}</el-button>
class="submitBtn"
v-throttle>{{ curStep === 1 ? '下一步' : '提交' }}</el-button>
</div> </div>
</div> </div>
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> --> <!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> -->
@ -250,6 +170,7 @@
<script> <script>
import { phoneListen, myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageIdCard, messageCard, messagePassword } from '@/utils/utilFunction.js'; import { phoneListen, myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageIdCard, messageCard, messagePassword } from '@/utils/utilFunction.js';
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { addOperation, personalBasicSave } from '@/api/http'
const moduleName = 'usefulPhrases/openAccount' const moduleName = 'usefulPhrases/openAccount'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
@ -277,42 +198,43 @@ export default {
cardNumberJudge: false, cardNumberJudge: false,
idNumberJudge: false, idNumberJudge: false,
form: { form: {
// idType: 83,
// identityCard: '', //
idNumber: '', idNumber: '',
customerName: '', // customerName: '',
currency: '', // gender: '',
goldLogo: '', // birthDate: '',
voucherType: '', // phoneNumber: '',
monthDeposit: '', // position: '',
depositTerm: '', // salary: '',
extendDepositTarget: '', // currentWorkYears: '',
voucherNumber: '', // totalWorkYears: '',
drawPassword: '', // propertyOwner: '',
// propertyCertificateNo: '',
clientNumber: '', // coOwnership: '',
certificateType: 83, // location: '',
phone: '',// propertyRightNature: '',
birthday: null,// area: '',
usagePeriodStart: '',
usagePeriodEnd: '',
}, },
formName: { formName: {
// idType: '证件类型',
// identityCard: '', // idNumber: '证件号码',
idNumber: '身份证', customerName: '证件号码',
customerName: '客户姓名', // gender: '性别',
currency: '币种', // birthDate: '出生日期',
goldLogo: '钞汇标识', // phoneNumber: '联系电话',
voucherType: '凭证类型', // position: '岗位',
monthDeposit: '月存金额', // salary: '薪酬',
depositTerm: '存期', // currentWorkYears: '当前单位工作年限',
extendDepositTarget: '续存标识', // totalWorkYears: '工龄',
voucherNumber: '凭证号码', // propertyOwner: '产权人',
drawPassword: '支付密码', // propertyCertificateNo: '房产证号',
// coOwnership: '共有情况',
clientNumber: '客户号', // location: '坐落',
certificateType: '证件类型', // propertyRightNature: '权利性质',
phone: '联系电话', area: '面积',
birthday: '出生日期', usagePeriodStart: '使用期限',
}, },
rules: { rules: {
customerName: vercustomer, customerName: vercustomer,
@ -323,122 +245,6 @@ export default {
trigger: 'blur' trigger: 'blur'
} }
], ],
phone: [
{
required: true,
message: '请输入联系电话',
trigger: 'blur'
},
{
pattern: mobPattern,
message: '联系电话格式有误'
}
],
currency: [
{
required: true,
message: '请选择币种',
trigger: 'blur'
}
],
goldLogo: [
{
required: true,
message: '请选择钞汇标识',
trigger: 'blur'
}
],
voucherType: [
{
required: true,
message: '请选择凭证类型',
trigger: 'blur'
}
],
monthDeposit: [
{
required: true,
message: '请输入月存金额',
trigger: 'blur'
}
],
depositTerm: [
{
required: true,
message: '请选择存期',
trigger: 'blur'
}
],
extendDepositTarget: [
{
required: true,
message: '请选择续存标识',
trigger: 'blur'
}
],
},
myTable2: {
158: {
prop: 'certificateType',//
type: '1',
"subjectId": 19,
},
// 169: {
// prop: 'customerManage',//
// type: '3',
// "subjectId": 27,
// },
160: {
prop: 'clientNumber',//
type: '3',
"subjectId": 6,
}
},
myTable: {
159: {
prop: 'idNumber',//
type: '3',
},
161: {
prop: 'customerName',//
type: '3',
"subjectId": 7,
},
162: {
prop: 'currency',//
type: '1',
"subjectId": 8,
},
163: {
prop: 'goldLogo',//
type: '1',
"subjectId": 9,
},
164: {
prop: 'voucherType',//
type: '1',
"subjectId": 11,
},
166: {
prop: 'voucherNumber',//
type: '3',
"subjectId": 44,
},
167: {
prop: 'drawPassword',
type: '3',
"subjectId": 17,
},
168: {
prop: 'monthDeposit',//
type: '3',
"subjectId": 31,
},
170: {
prop: 'extendDepositTarget',//
type: '1',
"subjectId": 37,
},
}, },
submited: 0, submited: 0,
curRoute: '', curRoute: '',
@ -451,31 +257,31 @@ export default {
mounted () { mounted () {
this.curRoute = this.$route.path this.curRoute = this.$route.path
if (sessionStorage.getItem('nomPersonalLoans')) { if (sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) {
this.idNumberJudge = true this.idNumberJudge = true
const { userName, sex, birthday, nationality, mailbox, idNumber } = this.dataFlow this.form = {
this.form.idNumber = idNumber idType: 83,
this.form.idType = 83 idNumber: '220602199202281229',
this.form.userName = userName customerName: '丛小风',
// let sexs = null gender: 2,
// if (sex == ''){ birthDate: '1992-02-28',
// sexs = 1 phoneNumber: '15890317718',
// }else{ position: '会计主管',
// sexs = 2 salary: '80',
// } currentWorkYears: '5年',
this.form.sex = sex totalWorkYears: '12年',
this.form.birthday = birthday propertyOwner: '丛小风',
// this.form.nationality = nationality propertyCertificateNo: '不动产权第012000号',
// this.form.mailbox = mailbox coOwnership: '单独所有',
location: '前海新区深圳湾一号1612',
propertyRightNature: '出让/商品房',
area: '建筑面积: 189平方米',
usagePeriodStart: '70年,2018.3.15 至 2088.3.14 止',
usagePeriodEnd: '',
}
} }
}, },
methods: { methods: {
// userName,
// peopleNumber,
// idNumber,
// currency:'CNY',
// goldLogo:'',
...mapMutations({ ...mapMutations({
changeShowGoods: 'system/changeShowGoods', changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow', setDataFlow: 'system/setDataFlow',
@ -489,107 +295,24 @@ export default {
sessionStorage.setItem('computerPath', this.$route.fullPath) sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
next () { async next () {
if (this.curStep < 2) { if (this.curStep < 2) {
try {
const res = personalBasicSave(form)
this.curStep++ this.curStep++
} catch { (e) => { } }
} else { } else {
} }
}, },
getFormData () { getFormData () {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,155'
const cards = {
// 1399: 'nomUsefulPhrasesOpenCard2',
// 166: 'nomUsefulPhrasesOpenCard',
// 167: 'nomUsefulPhrasesOpenPassword'
}
const callback = () => {
if (this.form.idNumber) {
this.idNumberJudge = true
}
if (this.form.voucherNumber) {
this.cardNumberJudge = true
}
if (sessionStorage.getItem('nomUsefulPhrasesOpenPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword')
}
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
},
submitForm () {
if (this.submited) return this.$message.error('已提交!')
if (!this.form.idNumber) {
messageIdCard()
// let projectId = sessionStorage.getItem('projectId')
// let startTime = sessionStorage.getItem('startTime')
// let formList = [
// {
// "answerId":'159',
// "emptyOne": "",
// "emptyTwo": "",
// "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,26,59,155,159,13",
// "type": ""
// }
// ]
// let params= {
// parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,155,159',
// lcJudgmentRuleReq:formList,
// projectId:+projectId,
// startTime:startTime,
// }
// addOperation(params).then((data)=>{
// this.$message({
// message: '',
// type: 'success'
// });
// }).catch((error)=>{
// })
return
}
if (!this.form.voucherNumber) {
messageCard('请填写凭证号码')
return
}
if (!this.form.drawPassword) {
messagePassword()
return
}
this.$refs.form.validate(myValidate(() => {
//
this.visible = true;
}, this.$refs));
}, },
submitForm2 () { submitForm2 () {
// let nomUsefulPhrasesOpenCard = sessionStorage.getItem('nomUsefulPhrasesOpenCard')
// let nomUsefulPhrasesOpenCard2 = sessionStorage.getItem('nomUsefulPhrasesOpenCard2')
// let nomUsefulPhrasesOpenPassword = sessionStorage.getItem('nomUsefulPhrasesOpenPassword')
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,155'
const cards = [
{
key: '159,13'
}
// {
// 1399: nomUsefulPhrasesOpenCard2
// },
// {
// 166: nomUsefulPhrasesOpenCard
// },
// {
// 167: nomUsefulPhrasesOpenPassword,
// "subjectId": 17,
// }
]
this.setDataFlow(this.form)
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
this.submited = 1
}, },
phoneListen, phoneListen,
ismoney: ismoney, checkName,
checkHanzi: checkHanzi,
checkName: checkName,
inputListen: inputListen
}, },
computed: { computed: {
...mapGetters({ ...mapGetters({
@ -608,11 +331,13 @@ export default {
height: calc(90vh - 27px); height: calc(90vh - 27px);
padding: 20px; padding: 20px;
overflow: auto; overflow: auto;
.l-title { .l-title {
margin-bottom: 15px; margin-bottom: 15px;
font-size: 18px; font-size: 18px;
font-weight: 600; font-weight: 600;
} }
.line { .line {
margin: 20px 0; margin: 20px 0;
border-bottom: 1px dashed #d7d7d7; border-bottom: 1px dashed #d7d7d7;

@ -1,7 +1,3 @@
/* 银行系统 */
/* 所有物品名字 这里能将东西查找出来并渲染上物品栏 */ /* 所有物品名字 这里能将东西查找出来并渲染上物品栏 */
const allGoods = { const allGoods = {
469: { name: '预留印鉴卡(一)', src: require('@/assets/img/goods/预留印鉴卡.png'), id: 469 }, 469: { name: '预留印鉴卡(一)', src: require('@/assets/img/goods/预留印鉴卡.png'), id: 469 },
@ -2735,6 +2731,7 @@ export default {
// 初始化公共数据 // 初始化公共数据
allDataFlow: { ...allDataFlow }, allDataFlow: { ...allDataFlow },
isCredit: false, isCredit: false,
creditIds: {},
}, },
mutations: { mutations: {
// 设置tipDialog组件提示的信息。这个组件是根据UI设计的。 // 设置tipDialog组件提示的信息。这个组件是根据UI设计的。
@ -3193,6 +3190,10 @@ export default {
setCredit (state, val) { setCredit (state, val) {
state.isCredit = val state.isCredit = val
}, },
// 缓存信用评估id
setCreditIds (state, val) {
state.creditIds = val
},
}, },
actions: { actions: {
}, },

@ -4,54 +4,54 @@ import store from '@/store'
const phoneListen = function(val, form, prop) { const phoneListen = function (val, form, prop) {
if(/^[0-9]*$/.test(val)) { if (/^[0-9]*$/.test(val)) {
form[prop] = val; form[prop] = val;
} }
} }
const mailBoxListen = function(val, form, prop) { const mailBoxListen = function (val, form, prop) {
if(/^[\u4E00-\u9FA5A-Za-z0-9_]+$/.test(val) || val==='') { if (/^[\u4E00-\u9FA5A-Za-z0-9_]+$/.test(val) || val === '') {
form[prop] = val; form[prop] = val;
} }
} }
// 校验中文 // 校验中文
const checkHanzi = function(val, form, prop) { const checkHanzi = function (val, form, prop) {
// 检查符号 // 检查符号
const charReg = /[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/im; const charReg = /[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/im;
// 检查空格 // 检查空格
const tmpCheck = val.substr(val.length-1, 1); const tmpCheck = val.substr(val.length - 1, 1);
if(tmpCheck === ' ' || charReg.test(val) || /[\u4E00-\u9FA5]/i.test(val)) { if (tmpCheck === ' ' || charReg.test(val) || /[\u4E00-\u9FA5]/i.test(val)) {
return; return;
} }
form[prop] = val; form[prop] = val;
} }
const checkName = function(val, form, prop) { const checkName = function (val, form, prop) {
// 检查符号 // 检查符号
const charReg = /[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/im; const charReg = /[`~!@#$%^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥%……&*()——\-+={}|《》?:“”【】、;‘',。、]/im;
// // 检查数字 // // 检查数字
const charReg2 = /^[0-9]*$/; const charReg2 = /^[0-9]*$/;
const tmpCheck = val.substr(val.length-1, 1); const tmpCheck = val.substr(val.length - 1, 1);
if(val.length<form[prop].length) { if (val.length < form[prop].length) {
form[prop] = val; form[prop] = val;
return; return;
} }
if(charReg.test(val) || charReg2.test(tmpCheck)) { if (charReg.test(val) || charReg2.test(tmpCheck)) {
return; return;
} }
form[prop] = val; form[prop] = val;
} }
// 检查证件号 // 检查证件号
const certificateNumber = function(val, form, prop) { const certificateNumber = function (val, form, prop) {
const charReg = /^(0|[0-9][0-9]*)$/; const charReg = /^(0|[0-9][0-9]*)$/;
if(val.length<form[prop].length) { if (val.length < form[prop].length) {
form[prop] = val; form[prop] = val;
return; return;
} }
if(charReg.test(val)) { if (charReg.test(val)) {
form[prop] = val; form[prop] = val;
} }
} }
@ -59,26 +59,26 @@ const certificateNumber = function(val, form, prop) {
// 监听年利率 // 监听年利率
const rateListen = function(val, form, prop) { const rateListen = function (val, form, prop) {
// 检查符号 允许% // 检查符号 允许%
// const charReg = /[`~!@#$^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥……&*()——\-+={}|《》?:“”【】、;‘',。、]/im; // const charReg = /[`~!@#$^&*()_\-+=<>?:"{}|,.\/;'\\[\]·~!@#¥……&*()——\-+={}|《》?:“”【】、;‘',。、]/im;
const charReg =/^\\d+(\\.\\d)?\\d{0,1}%$/ const charReg = /^\\d+(\\.\\d)?\\d{0,1}%$/
// 检查空格 // 检查空格
if(charReg.test(val) || /[\u4E00-\u9FA5]/i.test(val)) { if (charReg.test(val) || /[\u4E00-\u9FA5]/i.test(val)) {
return; return;
} }
form[prop] = val; form[prop] = val;
} }
// 监听数字 // 监听数字
const inputListen = function(val, row, prop) { const inputListen = function (val, row, prop) {
// 检查空格 // 检查空格
const tmpCheck = val.substr(val.length-1, 1); const tmpCheck = val.substr(val.length - 1, 1);
if(tmpCheck === ' ') { if (tmpCheck === ' ') {
return; return;
} }
if(val === '') { if (val === '') {
row[prop] = val; row[prop] = val;
return; return;
} }
@ -86,43 +86,43 @@ const inputListen = function(val, row, prop) {
} }
// 另一个监听数字的方法,根据需求不同来选。 // 另一个监听数字的方法,根据需求不同来选。
const inputListen2 = function(val, row, prop) { const inputListen2 = function (val, row, prop) {
// 检查空格 // 检查空格
const tmpCheck = val.substr(val.length-1, 1); const tmpCheck = val.substr(val.length - 1, 1);
if(tmpCheck === ' ') { if (tmpCheck === ' ') {
return; return;
} }
// 可以删光 // 可以删光
if(val === '') { if (val === '') {
row[prop] = val; row[prop] = val;
return; return;
} }
if(Number(val) || Number(val)===0) { if (Number(val) || Number(val) === 0) {
row[prop] = val row[prop] = val
} }
} }
// 验证是否金钱 // 验证是否金钱
const ismoney = function(val, row, prop) { const ismoney = function (val, row, prop) {
// 检查空格 // 检查空格
const tmpCheck = val.substr(val.length-1, 1); const tmpCheck = val.substr(val.length - 1, 1);
if(tmpCheck === ' ') { if (tmpCheck === ' ') {
return; return;
} }
if(val.length === 15) { if (val.length === 15) {
return return
} }
// const reg = /([1-9]\d{0,9}|0)(\.\d{1,2})?$/ // 不用保留 // const reg = /([1-9]\d{0,9}|0)(\.\d{1,2})?$/ // 不用保留
const reg2 = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; // 保留小数点后两位 const reg2 = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; // 保留小数点后两位
if (reg2.test(Number(val)) || val==='') { if (reg2.test(Number(val)) || val === '') {
row[prop] = val row[prop] = val
} }
} }
// 检查某个空是否填写完成 // 检查某个空是否填写完成
const checkRequired = function(form, obj) { const checkRequired = function (form, obj) {
for(const prop in obj) { for (const prop in obj) {
if(form[prop] === '') { if (form[prop] === '') {
MessageBox.alert('请填写' + obj[prop], '提示', { MessageBox.alert('请填写' + obj[prop], '提示', {
type: 'info', type: 'info',
confirmButtonText: '确定' confirmButtonText: '确定'
@ -140,7 +140,7 @@ const myValidate = (callback, refs) => {
callback() callback()
} else { } else {
let tmpObj = {}; let tmpObj = {};
for(const key in obj) { for (const key in obj) {
tmpObj = obj[key][0] tmpObj = obj[key][0]
break; break;
} }
@ -159,40 +159,40 @@ const myValidate = (callback, refs) => {
} }
// 电脑的系统录入中提交表单 // 电脑的系统录入中提交表单
const autoPlay = (parentId, form, myTable2, myTable, cards=[]) => { const autoPlay = (parentId, form, myTable2, myTable, cards = []) => {
let projectId = sessionStorage.getItem('projectId') || 11 // 默认11吧? let projectId = sessionStorage.getItem('projectId') || 11 // 默认11吧?
let startTime = sessionStorage.getItem('startTime') let startTime = sessionStorage.getItem('startTime')
let formList = []; let formList = [];
// let tmpIndex = 100; // let tmpIndex = 100;
for(const key in myTable2) { for (const key in myTable2) {
const { prop, type, subjectId='' } = myTable2[key] const { prop, type, subjectId = '' } = myTable2[key]
if(form[prop]){ if (form[prop]) {
formList.push({ "answerId": key + '', "emptyOne": '' + subjectId, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, "type":type }) formList.push({ "answerId": key + '', "emptyOne": '' + subjectId, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, "type": type })
} }
} }
for(const key in myTable) { for (const key in myTable) {
const { prop, type, subjectId='' } = myTable[key] const { prop, type, subjectId = '' } = myTable[key]
formList.push({ "answerId": key + '', "emptyOne": '' + subjectId, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, "type":type }) formList.push({ "answerId": key + '', "emptyOne": '' + subjectId, "emptyTwo": form[prop], "operationIds": parentId + ',' + key, "type": type })
} }
for(let i=0; i<cards.length; i++ ) { for (let i = 0; i < cards.length; i++) {
formList.push({ "answerId": '', "emptyOne": '', "emptyTwo": '', "operationIds": parentId + ',' + cards[i].key, "type":"" }) formList.push({ "answerId": '', "emptyOne": '', "emptyTwo": '', "operationIds": parentId + ',' + cards[i].key, "type": "" })
} }
let params= { let params = {
parentId, parentId,
lcJudgmentRuleReq:formList, lcJudgmentRuleReq: formList,
projectId: projectId, projectId: projectId,
// projectId:+projectId, // projectId:+projectId,
startTime:startTime, startTime: startTime,
} }
addOperation(params).then((data)=>{ addOperation(params).then((data) => {
// Message.success({ // Message.success({
// center: true, // center: true,
// message: '提交成功' // message: '提交成功'
// }) // })
}).catch((error)=>{ }).catch((error) => {
this.$message({ this.$message({
message: '服务器繁忙,提交失败。', message: '服务器繁忙,提交失败。',
@ -203,41 +203,41 @@ const autoPlay = (parentId, form, myTable2, myTable, cards=[]) => {
} }
// 电脑录入中获取缓存信息 // 电脑录入中获取缓存信息
const autoPlay2 = (parentId=11, form, myTable2, myTable, cardArr, callback) => { const autoPlay2 = (parentId = 11, form, myTable2, myTable, cardArr, callback) => {
// 默认11吧? // 默认11吧?
let param= { let param = {
parentId parentId
} }
getOperation(param).then((data)=>{ getOperation(param).then((data) => {
if(data.status == 200) { if (data.status == 200) {
var list = data.data.judgmentRuleReqs var list = data.data.judgmentRuleReqs
// const tmpObj = Object.assign(myTable, myTable2) ...巨坑,把后面的属性给到前面了 // const tmpObj = Object.assign(myTable, myTable2) ...巨坑,把后面的属性给到前面了
const tmpObj = {...myTable, ...myTable2} const tmpObj = { ...myTable, ...myTable2 }
for (var i = 0; i < list.length; i++) { for (var i = 0; i < list.length; i++) {
const { answerId, emptyTwo } = list[i] const { answerId, emptyTwo } = list[i]
if(!cardArr) { if (!cardArr) {
if(Number(emptyTwo)) { if (Number(emptyTwo)) {
const tmpNumber =+emptyTwo const tmpNumber = +emptyTwo
// console.log('kao000') // console.log('kao000')
// console.log(tmpNumber) // console.log(tmpNumber)
form[tmpObj[answerId].prop] = tmpNumber form[tmpObj[answerId].prop] = tmpNumber
}else { } else {
form[tmpObj[answerId].prop] = emptyTwo form[tmpObj[answerId].prop] = emptyTwo
} }
} else { } else {
if(cardArr[answerId]) { if (cardArr[answerId]) {
try{ try {
sessionStorage.setItem(cardArr[answerId], JSON.parse(list[i].emptyTwo)) sessionStorage.setItem(cardArr[answerId], JSON.parse(list[i].emptyTwo))
}catch(e) { } catch (e) {
// sessionStorage.setItem(cardArr[answerId], list[i].emptyTwo) // sessionStorage.setItem(cardArr[answerId], list[i].emptyTwo)
continue; continue;
} }
}else { } else {
if(Number(emptyTwo)) { if (Number(emptyTwo)) {
form[tmpObj[answerId].prop] = +emptyTwo form[tmpObj[answerId].prop] = +emptyTwo
}else { } else {
form[tmpObj[answerId].prop] = emptyTwo form[tmpObj[answerId].prop] = emptyTwo
} }
// form[tmpObj[answerId].prop] = emptyTwo // form[tmpObj[answerId].prop] = emptyTwo
@ -248,12 +248,12 @@ const autoPlay2 = (parentId=11, form, myTable2, myTable, cardArr, callback) =>
} }
callback() callback()
} }
}).catch((error)=>{ }).catch((error) => {
}) })
} }
const autoPlay3 = (name, allName, arr) => { // 要接收的, 所有的, 要接收的属性 const autoPlay3 = (name, allName, arr) => { // 要接收的, 所有的, 要接收的属性
for(let key of arr) { for (let key of arr) {
name[key] = allName[key] name[key] = allName[key]
} }
} }
@ -270,7 +270,7 @@ const getNowDate = () => {
} }
// 提示请刷身份证信息 // 提示请刷身份证信息
const messageIdCard = (message='请刷身份证') => { const messageIdCard = (message = '请刷身份证') => {
store.commit('system/setTipsOperate', message) store.commit('system/setTipsOperate', message)
// Message.warning({ // Message.warning({
// center: true, // center: true,
@ -279,7 +279,7 @@ const messageIdCard = (message='请刷身份证') => {
} }
// 提示请刷银行卡信息 // 提示请刷银行卡信息
const messageCard = (message='请刷银行卡') => { const messageCard = (message = '请刷银行卡') => {
store.commit('system/setTipsOperate', message) store.commit('system/setTipsOperate', message)
// Message.warning({ // Message.warning({
// center: true, // center: true,
@ -288,7 +288,7 @@ const messageCard = (message='请刷银行卡') => {
} }
// 提示请填写支取密码信息 // 提示请填写支取密码信息
const messagePassword = (message='请填写支取密码') => { const messagePassword = (message = '请填写支取密码') => {
store.commit('system/setTipsOperate', message) store.commit('system/setTipsOperate', message)
// Message.warning({ // Message.warning({
// center: true, // center: true,
@ -309,7 +309,7 @@ const randomPeopleNumber = () => {
return str; return str;
} }
export { export {
randomPeopleNumber, randomPeopleNumber,
phoneListen, phoneListen,
mailBoxListen, mailBoxListen,
@ -329,4 +329,4 @@ const randomPeopleNumber = () => {
messageCard, messageCard,
messagePassword, messagePassword,
certificateNumber certificateNumber
} }
Loading…
Cancel
Save