20240205
yujialong 1 year ago
parent 7cad626d93
commit d7149a99ee
  1. 704
      src/pages/manage/list/business/openAccount.vue
  2. 2
      src/pages/manage/list/business/transfer.vue
  3. 779
      src/pages/manage/list/cityWide/cityWideOut.vue
  4. 650
      src/pages/manage/list/client/corporateClient.vue
  5. 931
      src/pages/manage/list/personal/usefulPhrases/accountClosed.vue
  6. 38
      src/store/modules/system.js

@ -1,80 +1,158 @@
// //
<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"
<el-form ref="form" :model="form" label-width="120px" :rules="rules"> style="margin: 0">
<el-col :span="10" :offset="2"> <el-form ref="form"
<el-form-item label="客户号" prop="customerNumber"> :model="form"
<el-input :value="form.customerNumber" maxlength="20" disabled @input="(val) => checkHanzi(val, form, 'customerNumber')" ref="customerNumber"></el-input> label-width="120px"
</el-form-item> :rules="rules">
<el-form-item label="账户类型" prop="accountType"> <el-col :span="10"
<el-select v-model.trim="form.accountType" placeholder="请选择" ref="accountType"> :offset="2">
<el-option v-for="item in getSelectList.accountTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> <el-form-item label="客户号"
</el-select> prop="customerNumber">
</el-form-item> <el-input :value="form.customerNumber"
<el-form-item label="账户科目" prop="accountManagement"> maxlength="20"
<el-select v-model.trim="form.accountManagement" placeholder="请选择" ref="accountManagement"> disabled
<el-option v-for="item in getSelectList.accountManagementList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> @input="(val) => checkHanzi(val, form, 'customerNumber')"
</el-select> ref="customerNumber"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="goldLogo"> <el-form-item label="账户类型"
<el-select v-model.trim="form.goldLogo" placeholder="请选择" ref="goldLogo"> prop="accountType">
<el-option v-for="item in getSelectList.goldLogoSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> <el-select v-model.trim="form.accountType"
</el-select> placeholder="请选择"
</el-form-item> ref="accountType">
<el-form-item label="出账页标志" prop="outAccountWay"> <el-option v-for="item in getSelectList.accountTypeSelectList"
<el-select v-model.trim="form.outAccountWay" placeholder="请选择" ref="outAccountWay"> :label="item.options"
<el-option v-for="item in getSelectList.outAccountWayList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> :value="item.itemId"
</el-select> :key="item.itemId"> </el-option>
</el-form-item> </el-select>
<el-form-item label="统计代码" prop="clientNumber"> </el-form-item>
<el-input :value="form.clientNumber" @input="(val) => checkHanzi(val, form, 'clientNumber')" ref="clientNumber"></el-input> <el-form-item label="账户科目"
</el-form-item> prop="accountManagement">
<el-form-item label="外汇证号" prop="foreignCurrencyCertificate"> <el-select v-model.trim="form.accountManagement"
<el-input :value="form.foreignCurrencyCertificate" @input="(val) => checkHanzi(val, form, 'foreignCurrencyCertificate')" ref="foreignCurrencyCertificate"></el-input> placeholder="请选择"
</el-form-item> ref="accountManagement">
<el-option v-for="item in getSelectList.accountManagementList"
:label="item.options"
:value="item.itemId"
:key="item.itemId"> </el-option>
</el-select>
</el-form-item>
<el-form-item label="钞汇标识"
prop="goldLogo">
<el-select v-model.trim="form.goldLogo"
placeholder="请选择"
ref="goldLogo">
<el-option v-for="item in getSelectList.goldLogoSelectList"
:label="item.options"
:value="item.itemId"
:key="item.itemId"> </el-option>
</el-select>
</el-form-item>
<el-form-item label="出账页标志"
prop="outAccountWay">
<el-select v-model.trim="form.outAccountWay"
placeholder="请选择"
ref="outAccountWay">
<el-option v-for="item in getSelectList.outAccountWayList"
:label="item.options"
:value="item.itemId"
:key="item.itemId"> </el-option>
</el-select>
</el-form-item>
<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="外汇证号"
prop="foreignCurrencyCertificate">
<el-input :value="form.foreignCurrencyCertificate"
@input="(val) => checkHanzi(val, form, 'foreignCurrencyCertificate')"
ref="foreignCurrencyCertificate"></el-input>
</el-form-item>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10"
<el-form-item label="客户姓名" prop="customerName"> :offset="1">
<el-input :value="form.customerName" disabled @input="(val) => checkName(val, form, 'customerName')" ref="customerName"></el-input> <el-form-item label="客户姓名"
</el-form-item> prop="customerName">
<el-form-item label="账户性质" prop="accountQuality"> <el-input :value="form.customerName"
<el-select v-model.trim="form.accountQuality" placeholder="请选择" ref="accountQuality"> disabled
<el-option v-for="item in getSelectList.accountQualitySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> @input="(val) => checkName(val, form, 'customerName')"
</el-select> ref="customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="账户性质"
<el-select v-model.trim="form.currency" placeholder="请选择" ref="currency"> prop="accountQuality">
<el-option v-for="item in getSelectList.currencySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> <el-select v-model.trim="form.accountQuality"
</el-select> placeholder="请选择"
</el-form-item> ref="accountQuality">
<el-form-item label="计息方式" prop="calculateWay"> <el-option v-for="item in getSelectList.accountQualitySelectList"
<el-select v-model.trim="form.calculateWay" placeholder="请选择" ref="calculateWay"> :label="item.options"
<el-option v-for="item in getSelectList.calculateWayList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> :value="item.itemId"
</el-select> :key="item.itemId"> </el-option>
</el-form-item> </el-select>
<el-form-item label="支取方式" prop="drawWay"> </el-form-item>
<el-select v-model.trim="form.drawWay" placeholder="请选择" ref="drawWay"> <el-form-item label="币种"
<el-option label="印鉴" :value="114"> </el-option> prop="currency">
</el-select> <el-select v-model.trim="form.currency"
</el-form-item> placeholder="请选择"
<el-form-item label="外汇核准号" prop="foreignCurrencyBumber"> ref="currency">
<el-input :value="form.foreignCurrencyBumber" @input="(val) => checkName(val, form, 'foreignCurrencyBumber')" ref="foreignCurrencyBumber"></el-input> <el-option v-for="item in getSelectList.currencySelectList"
</el-form-item> :label="item.options"
</el-col> :value="item.itemId"
</el-form> :key="item.itemId"> </el-option>
</el-row> </el-select>
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button> </el-form-item>
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" /> <el-form-item label="计息方式"
</div> prop="calculateWay">
<el-select v-model.trim="form.calculateWay"
placeholder="请选择"
ref="calculateWay">
<el-option v-for="item in getSelectList.calculateWayList"
:label="item.options"
:value="item.itemId"
:key="item.itemId"> </el-option>
</el-select>
</el-form-item>
<el-form-item label="支取方式"
prop="drawWay">
<el-select v-model.trim="form.drawWay"
placeholder="请选择"
ref="drawWay">
<el-option label="印签"
:value="114"> </el-option>
</el-select>
</el-form-item>
<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>
</el-row>
<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" />
</div> </div>
</div>
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" class="wrap" /> --> <!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" class="wrap" /> -->
</template> </template>
<script> <script>
@ -90,263 +168,263 @@ import MyDialog from '@/components/dialog'
import TipsBefore from '@/mixins/tipsBefore' import TipsBefore from '@/mixins/tipsBefore'
export default { export default {
name: 'index', name: 'index',
components:{ components: {
MyTitle, MyTitle,
NeedBefore, NeedBefore,
MyDialog MyDialog
}, },
data() { data () {
return { return {
moduleName: 'business/openAccount', moduleName: 'business/openAccount',
text:'开户',/* 顶部文字 */ text: '开户',/* 顶部文字 */
visible: false, visible: false,
form:{ form: {
// //
customerName: '', // customerName: '', //
accountQuality: '', // accountQuality: '', //
accountType: '', // accountType: '', //
accountManagement: '', // accountManagement: '', //
currency: '', // currency: '', //
goldLogo: '', // goldLogo: '', //
calculateWay: '', // calculateWay: '', //
outAccountWay: '', // outAccountWay: '', //
drawWay: '', // drawWay: '', //
// //
customerNumber: '', // customerNumber: '', //
clientNumber: '', // clientNumber: '', //
foreignCurrencyBumber: '', // foreignCurrencyBumber: '', //
foreignCurrencyCertificate: '' // foreignCurrencyCertificate: '' //
}, },
formName:{ formName: {
// //
customerName: '客户姓名', // customerName: '客户姓名', //
accountQuality: '账户性质', // accountQuality: '账户性质', //
accountType: '账户类型', // accountType: '账户类型', //
accountManagement: '账户科目', // accountManagement: '账户科目', //
currency: '币种', // currency: '币种', //
goldLogo: '钞汇标识', // goldLogo: '钞汇标识', //
calculateWay: '计息方式', // calculateWay: '计息方式', //
outAccountWay: '出账页标志', // outAccountWay: '出账页标志', //
drawWay: '支取方式', // drawWay: '支取方式', //
// //
customerNumber: '客户号', // customerNumber: '客户号', //
clientNumber: '统计代码', // clientNumber: '统计代码', //
foreignCurrencyBumber: '外汇核准号', // foreignCurrencyBumber: '外汇核准号', //
foreignCurrencyCertificate: '外汇证号' // foreignCurrencyCertificate: '外汇证号' //
}, },
rules: { rules: {
// customerName: vercustomer, // customerName: vercustomer,
accountQuality: [ accountQuality: [
{ {
required: true, required: true,
message: '请选择账户性质', message: '请选择账户性质',
trigger: 'blur' trigger: 'blur'
} }
], ],
accountType: [ accountType: [
{ {
required: true, required: true,
message: '请选择账户类型', message: '请选择账户类型',
trigger: 'blur' trigger: 'blur'
} }
], ],
// accountManagement: [ // accountManagement: [
// { // {
// required: true, // required: true,
// message: '', // message: '',
// trigger: 'blur' // trigger: 'blur'
// } // }
// ], // ],
currency: [ currency: [
{ {
required: true, required: true,
message: '请选择币种', message: '请选择币种',
trigger: 'blur' trigger: 'blur'
} }
], ],
// goldLogo: [ // goldLogo: [
// { // {
// required: true, // required: true,
// message: '', // message: '',
// trigger: 'blur' // trigger: 'blur'
// } // }
// ], // ],
// calculateWay: [ // calculateWay: [
// { // {
// required: true, // required: true,
// message: '', // message: '',
// trigger: 'blur' // trigger: 'blur'
// } // }
// ], // ],
// outAccountWay: [ // outAccountWay: [
// { // {
// required: true, // required: true,
// message: '', // message: '',
// trigger: 'blur' // trigger: 'blur'
// } // }
// ], // ],
drawWay: [ drawWay: [
{ {
required: true, required: true,
message: '请选择支取方式', message: '请选择支取方式',
trigger: 'blur' trigger: 'blur'
} }
] ]
}, },
second:[// second: [//
], ],
options:[], options: [],
activeIndex:'1', activeIndex: '1',
// if(this.form.customerNumber){ // if(this.form.customerNumber){
// formList.push({ "answerId":'228', "emptyOne": "19", "emptyTwo": this.form.customerNumber, "operationIds": parentId + ',228', "type": "3" })// // formList.push({ "answerId":'228', "emptyOne": "19", "emptyTwo": this.form.customerNumber, "operationIds": parentId + ',228', "type": "3" })//
// } // }
// if(this.form.clientNumber){ // if(this.form.clientNumber){
// formList.push({ "answerId":'238', "emptyOne": "7", "emptyTwo": this.form.clientNumber, "operationIds": parentId + ',238', "type": "3" })// // formList.push({ "answerId":'238', "emptyOne": "7", "emptyTwo": this.form.clientNumber, "operationIds": parentId + ',238', "type": "3" })//
// } // }
// if(this.form.foreignCurrencyBumber){ // if(this.form.foreignCurrencyBumber){
// formList.push( {"answerId":'239',"emptyOne": "5", "emptyTwo": this.form.foreignCurrencyBumber, "operationIds": parentId + ",239", "type": "3"})// // formList.push( {"answerId":'239',"emptyOne": "5", "emptyTwo": this.form.foreignCurrencyBumber, "operationIds": parentId + ",239", "type": "3"})//
// } // }
myTable2: { myTable2: {
228: { 228: {
prop: 'customerNumber', // 3 prop: 'customerNumber', // 3
type: '3', type: '3',
"subjectId": 6, "subjectId": 6,
}, },
238: { 238: {
prop: 'clientNumber', // 3 prop: 'clientNumber', // 3
type: '3', type: '3',
"subjectId": 41, "subjectId": 41,
}, },
239: { 239: {
prop: 'foreignCurrencyBumber', // 3 prop: 'foreignCurrencyBumber', // 3
type: '3', type: '3',
"subjectId": 42, "subjectId": 42,
}, },
318: { 318: {
prop: 'foreignCurrencyCertificate', prop: 'foreignCurrencyCertificate',
type: '3', type: '3',
"subjectId": 50, "subjectId": 50,
}
},
myTable: {
229: {
prop: 'customerName', // 3
type: '3',
"subjectId": 7,
},
231: {
prop: 'accountQuality',
type: '1',
"subjectId": 10,
},
230: {
prop: 'accountType',
type: '1',
"subjectId": 12,
},
232: {
prop: 'accountManagement',
type: '1',
"subjectId": 38,
},
233: {
prop: 'currency',
type: '1',
"subjectId": 8,
},
234: {
prop: 'goldLogo',
type: '1',
"subjectId": 9,
},
235: {
prop: 'calculateWay',
type: '1',
"subjectId": 39,
},
236: {
prop: 'outAccountWay',
type: '1',
"subjectId": 40,
},
237: {
prop: 'drawWay',
type: '1',
"subjectId": 13,
}
},
submited: 0
}
},
mixins: [ TipsBefore ],
created() {
// if(this.isNeedBefore) {
// return
// }
if(this.dataFlow.corporateClient) {
const { peopleNumber, userName } = this.dataFlow
this.form.customerName = userName
this.form.customerNumber = peopleNumber
} }
},
this.getFormData() myTable: {
}, 229: {
methods: { prop: 'customerName', // 3
...mapMutations({ type: '3',
changeShowGoods: 'system/changeShowGoods', "subjectId": 7,
setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule',
setPopId: 'system/setPopId',
setTipsOperate: 'system/setTipsOperate'
}),
getFormData(){
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,27,224'
autoPlay2(parentId, this.form, this.myTable2, this.myTable)
}, },
submitForm(){ 231: {
// let projectId = sessionStorage.getItem('projectId') prop: 'accountQuality',
// let startTime = sessionStorage.getItem('startTime') type: '1',
if (this.submited) return this.$message.error('已提交!') "subjectId": 10,
if(!this.form.customerName) {
this.setTipsOperate('请先完成 客户信息 -> 公司客户信息建立');
return;
}
this.$refs.form.validate(myValidate(() => {
//
this.visible = true;
}, this.$refs));
}, },
submitForm2(){ 230: {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,27,224' prop: 'accountType',
autoPlay(parentId, this.form, this.myTable2, this.myTable) type: '1',
this.setNeedsModule(moduleName) "subjectId": 12,
this.submited = 1
}, },
checkHanzi: checkHanzi, 232: {
checkName: checkName prop: 'accountManagement',
}, type: '1',
computed: { "subjectId": 38,
...mapGetters({ },
dataFlow: 'system/dataFlow', 233: {
needsModule: 'system/needsModule', prop: 'currency',
idCardNumber: 'system/idCardNumber', type: '1',
inMyWork: 'system/inMyWork', "subjectId": 8,
getSelectList: 'system/getSelectList' },
}) 234: {
prop: 'goldLogo',
type: '1',
"subjectId": 9,
},
235: {
prop: 'calculateWay',
type: '1',
"subjectId": 39,
},
236: {
prop: 'outAccountWay',
type: '1',
"subjectId": 40,
},
237: {
prop: 'drawWay',
type: '1',
"subjectId": 13,
}
},
submited: 0
} }
},
mixins: [TipsBefore],
created () {
// if(this.isNeedBefore) {
// return
// }
if (this.dataFlow.corporateClient) {
const { peopleNumber, userName } = this.dataFlow
this.form.customerName = userName
this.form.customerNumber = peopleNumber
}
this.getFormData()
},
methods: {
...mapMutations({
changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule',
setPopId: 'system/setPopId',
setTipsOperate: 'system/setTipsOperate'
}),
getFormData () {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,27,224'
autoPlay2(parentId, this.form, this.myTable2, this.myTable)
},
submitForm () {
// let projectId = sessionStorage.getItem('projectId')
// let startTime = sessionStorage.getItem('startTime')
if (this.submited) return this.$message.error('已提交!')
if (!this.form.customerName) {
this.setTipsOperate('请先完成 客户信息 -> 公司客户信息建立');
return;
}
this.$refs.form.validate(myValidate(() => {
//
this.visible = true;
}, this.$refs));
},
submitForm2 () {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,27,224'
autoPlay(parentId, this.form, this.myTable2, this.myTable)
this.setNeedsModule(moduleName)
this.submited = 1
},
checkHanzi: checkHanzi,
checkName: checkName
},
computed: {
...mapGetters({
dataFlow: 'system/dataFlow',
needsModule: 'system/needsModule',
idCardNumber: 'system/idCardNumber',
inMyWork: 'system/inMyWork',
getSelectList: 'system/getSelectList'
})
}
}; };
</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;

@ -52,7 +52,7 @@
</el-form-item> </el-form-item>
<el-form-item label="支取方式" prop="payWay"> <el-form-item label="支取方式" prop="payWay">
<el-select v-model.trim="form.payWay" disabled placeholder="请选择" ref="payWay"> <el-select v-model.trim="form.payWay" disabled placeholder="请选择" ref="payWay">
<el-option label="印" :value="114"> </el-option> <el-option label="印" :value="114"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="转入户名" prop="transinName"> <el-form-item label="转入户名" prop="transinName">

@ -1,81 +1,135 @@
// //
<template> <template>
<div class="wrap wrap2"> <div class="wrap wrap2">
<MyTitle :titleArr="['同城交互', '同城提出']"/> <MyTitle :titleArr="['同城交互', '同城提出']" />
<!-- 存款 --> <!-- 存款 -->
<div class="body"> <div class="body">
<el-row :gutter="20" style="margin: 0"> <el-row :gutter="20"
<el-form ref="form" :model="form" label-width="150px" :rules="rules"> style="margin: 0">
<el-col :span="10" :offset="1"> <el-form ref="form"
<el-form-item label="本行收款账号" prop="shroffAccountNumber"> :model="form"
<el-input @blur="getBlur" :value="form.shroffAccountNumber" @input="val => checkHanzi(val, form, 'shroffAccountNumber')" ref="shroffAccountNumber"></el-input> label-width="150px"
</el-form-item> :rules="rules">
<el-form-item label="币种" prop="currency"> <el-col :span="10"
<el-select v-model.trim="form.currency" placeholder="请选择" ref="currency"> :offset="1">
<el-option v-for="item in getSelectList.currencySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> <el-form-item label="本行收款账号"
<!-- <el-option label="CNY人民币" value="12"></el-option> --> prop="shroffAccountNumber">
</el-select> <el-input @blur="getBlur"
</el-form-item> :value="form.shroffAccountNumber"
<el-form-item label="提出场次" prop="proposeTime"> @input="val => checkHanzi(val, form, 'shroffAccountNumber')"
<el-input :value="form.proposeTime" @input="val => inputListen(val, form, 'proposeTime')" ref="proposeTime"></el-input> ref="shroffAccountNumber"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="他行收款账号" prop="otherAccountNumber"> <el-form-item label="币种"
<el-input :value="form.otherAccountNumber" @input="val => checkHanzi(val, form, 'otherAccountNumber')" ref="otherAccountNumber"></el-input> prop="currency">
</el-form-item> <el-select v-model.trim="form.currency"
<el-form-item label="票据类型" prop="billType"> placeholder="请选择"
<el-select v-model.trim="form.billType" placeholder="请选择" ref="billType"> ref="currency">
<el-option v-for="item in getSelectList.billTypeSelect" :label="item.options" :key="item.itemId" :value="item.itemId" ></el-option> <el-option v-for="item in getSelectList.currencySelectList"
<!-- <el-option :label="119" :key="item.itemId" :value="item.itemId" ></el-option> --> :label="item.options"
</el-select> :value="item.itemId"
</el-form-item> :key="item.itemId"> </el-option>
<el-form-item label="出票日期" prop="drawBillDate"> <!-- <el-option label="CNY人民币" value="12"></el-option> -->
</el-select>
</el-form-item>
<el-form-item label="提出场次"
prop="proposeTime">
<el-input :value="form.proposeTime"
@input="val => inputListen(val, form, 'proposeTime')"
ref="proposeTime"></el-input>
</el-form-item>
<el-form-item label="他行收款账号"
prop="otherAccountNumber">
<el-input :value="form.otherAccountNumber"
@input="val => checkHanzi(val, form, 'otherAccountNumber')"
ref="otherAccountNumber"></el-input>
</el-form-item>
<el-form-item label="票据类型"
prop="billType">
<el-select v-model.trim="form.billType"
placeholder="请选择"
ref="billType">
<el-option v-for="item in getSelectList.billTypeSelect"
:label="item.options"
:key="item.itemId"
:value="item.itemId"></el-option>
<!-- <el-option :label="119" :key="item.itemId" :value="item.itemId" ></el-option> -->
</el-select>
</el-form-item>
<el-form-item label="出票日期"
prop="drawBillDate">
<el-date-picker <el-date-picker v-model.trim="form.drawBillDate"
v-model.trim="form.drawBillDate" type="date"
type="date" placeholder="选择日期"
placeholder="选择日期" ref="drawBillDate"
ref="drawBillDate" format="yyyy-MM-dd"
format="yyyy-MM-dd" value-format="yyyy-MM-dd">
value-format="yyyy-MM-dd" </el-date-picker>
> </el-form-item>
</el-date-picker>
</el-form-item>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10"
<el-form-item label="本行收款户名" prop="shroffAccountUsername"> :offset="1">
<el-input @focus="getFocus" disabled :value="form.shroffAccountUsername" @input="val => checkName(val, form, 'shroffAccountUsername')" ref="shroffAccountUsername"></el-input> <el-form-item label="本行收款户名"
</el-form-item> prop="shroffAccountUsername">
<el-form-item label="金额" prop="money"> <el-input @focus="getFocus"
<el-input :value="form.money" @input="val => ismoney(val, form, 'money')" ref="money"></el-input> disabled
</el-form-item> :value="form.shroffAccountUsername"
<el-form-item label="提出日期" prop="proposeDate"> @input="val => checkName(val, form, 'shroffAccountUsername')"
<!-- <el-date-picker ref="shroffAccountUsername"></el-input>
</el-form-item>
<el-form-item label="金额"
prop="money">
<el-input :value="form.money"
@input="val => ismoney(val, form, 'money')"
ref="money"></el-input>
</el-form-item>
<el-form-item label="提出日期"
prop="proposeDate">
<!-- <el-date-picker
v-model.trim="form.proposeDate" v-model.trim="form.proposeDate"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
ref="proposeDate"> ref="proposeDate">
</el-date-picker> --> </el-date-picker> -->
<el-input :value="form.proposeDate" disabled ref="proposeDate"></el-input> <el-input :value="form.proposeDate"
</el-form-item> disabled
ref="proposeDate"></el-input>
</el-form-item>
<el-form-item label="他行收款户名" prop="otherAccountUsername"> <el-form-item label="他行收款户名"
<el-input :value="form.otherAccountUsername" @input="val => checkName(val, form, 'otherAccountUsername')" ref="otherAccountUsername"></el-input> prop="otherAccountUsername">
</el-form-item> <el-input :value="form.otherAccountUsername"
<el-form-item label="凭证号码" prop="voucherNumber"> @input="val => checkName(val, form, 'otherAccountUsername')"
<el-input :value="form.voucherNumber" @input="val => checkHanzi(val, form, 'voucherNumber')" ref="voucherNumber"></el-input> ref="otherAccountUsername"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="摘要" prop="abstract"> <el-form-item label="凭证号码"
<el-input v-model.trim="form.abstract" ref="abstract"></el-input> prop="voucherNumber">
</el-form-item> <el-input :value="form.voucherNumber"
</el-col> @input="val => checkHanzi(val, form, 'voucherNumber')"
</el-form> ref="voucherNumber"></el-input>
</el-row> </el-form-item>
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button> <el-form-item label="摘要"
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" /> prop="abstract">
</div> <el-input v-model.trim="form.abstract"
ref="abstract"></el-input>
</el-form-item>
</el-col>
</el-form>
</el-row>
<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" />
</div> </div>
</div>
</template> </template>
<script> <script>
@ -87,320 +141,313 @@ import TipsBefore from '@/mixins/tipsBefore'
const moduleName = "cityWide/cityWideOut" const moduleName = "cityWide/cityWideOut"
import { getSubjectInfo, addOperation, getOperation } from '@/api/http'; import { getSubjectInfo, addOperation, getOperation } from '@/api/http';
export default { export default {
name: 'index', name: 'index',
components:{ components: {
MyTitle, MyTitle,
MyDialog MyDialog
}, },
mixins: [ TipsBefore ], mixins: [TipsBefore],
data() { data () {
return { return {
text:'存款',/* 顶部文字 */ text: '存款',/* 顶部文字 */
visible: false, visible: false,
// billTypeSelect: [], // billTypeSelect: [],
moduleName, moduleName,
form:{ form: {
// //
shroffAccountNumber: '', // shroffAccountNumber: '', //
money: '', // money: '', //
shroffAccountUsername: '', // shroffAccountUsername: '', //
billType: '', // billType: '', //
otherAccountNumber: '', // otherAccountNumber: '', //
voucherNumber: '', // voucherNumber: '', //
// //
currency: 12, // currency: 12, //
proposeTime: 1, // proposeTime: 1, //
proposeDate: '', // proposeDate: '', //
otherAccountUsername: '', // otherAccountUsername: '', //
drawBillDate: '', // drawBillDate: '', //
abstract: '', // abstract: '', //
}, },
formName: { formName: {
shroffAccountNumber: '本行收款账号', // shroffAccountNumber: '本行收款账号', //
money: '金额', // money: '金额', //
shroffAccountUsername: '本行收款户名', // shroffAccountUsername: '本行收款户名', //
billType: '票据类型', // billType: '票据类型', //
otherAccountNumber: '他行收款账号', // otherAccountNumber: '他行收款账号', //
voucherNumber: '凭证号码', // voucherNumber: '凭证号码', //
// //
currency: '币种', // currency: '币种', //
proposeTime: '提出场次', // proposeTime: '提出场次', //
proposeDate: '提出日期', // proposeDate: '提出日期', //
otherAccountUsername: '其他收款户名', // otherAccountUsername: '其他收款户名', //
drawBillDate: '出票日期', // drawBillDate: '出票日期', //
abstract: '摘要', // abstract: '摘要', //
}, },
rules: { rules: {
drawBillDate: [ drawBillDate: [
{ {
required: true, required: true,
message: '请输入出票日期', message: '请输入出票日期',
trigger: 'blur' trigger: 'blur'
} }
], ],
shroffAccountNumber: [ shroffAccountNumber: [
{ {
required: true, required: true,
message: '请输入本行收款账号', message: '请输入本行收款账号',
trigger: 'blur' trigger: 'blur'
}, },
{ {
pattern: /^[0-9]*$/, pattern: /^[0-9]*$/,
message: '请输入数字' message: '请输入数字'
} }
// { // {
// type: number, // type: number,
// message: '', // message: '',
// } // }
], ],
otherAccountUsername: [ otherAccountUsername: [
{ {
required: true, required: true,
message: '请输入本行收款户名', message: '请输入本行收款户名',
trigger: 'blur' trigger: 'blur'
}, },
], ],
currency: [ currency: [
{ {
required: true, required: true,
message: '请选择币种', message: '请选择币种',
trigger: 'blur' trigger: 'blur'
} }
], ],
money: [ money: [
{ {
required: true, required: true,
message: '请输入金额', message: '请输入金额',
trigger: 'blur' trigger: 'blur'
} }
], ],
shroffAccountUsername: [ shroffAccountUsername: [
// { // {
// required: true, // required: true,
// message: '', // message: '',
// trigger: 'blur' // trigger: 'blur'
// } // }
], ],
billType: [ billType: [
{ {
required: false, required: false,
message: '请选择票据类型', message: '请选择票据类型',
trigger: 'blur' trigger: 'blur'
} }
], ],
otherAccountNumber: [ otherAccountNumber: [
{ {
required: true, required: true,
message: '请输入他行收款账号', message: '请输入他行收款账号',
trigger: 'blur' trigger: 'blur'
} }
], ],
voucherNumber: [ voucherNumber: [
{ {
required: true, required: true,
message: '请输入凭证号码', message: '请输入凭证号码',
trigger: 'blur' trigger: 'blur'
} }
], ],
}, },
myTable2: { myTable2: {
// //
// currency: 'CNY', // // currency: 'CNY', //
// proposeTime: '', // // proposeTime: '', //
// proposeDate: '', // // proposeDate: '', //
// otherAccountUsername: '', // // otherAccountUsername: '', //
// drawBillDate: '', // // drawBillDate: '', //
// abstract: '', // // abstract: '', //
348: { 348: {
prop: 'currency', // 1 prop: 'currency', // 1
type: '1', type: '1',
"subjectId": '8', "subjectId": '8',
}, },
350: { 350: {
prop: 'proposeTime', // 1 prop: 'proposeTime', // 1
type: '3', type: '3',
"subjectId": '55', "subjectId": '55',
}, },
351: { 351: {
prop: 'proposeDate', // 1 prop: 'proposeDate', // 1
type: '1', type: '1',
"subjectId": '56', "subjectId": '56',
}, },
353: { 353: {
prop: 'otherAccountUsername', // 3 prop: 'otherAccountUsername', // 3
type: '3', type: '3',
"subjectId": '58', "subjectId": '58',
}, },
355: { 355: {
prop: 'drawBillDate', // 3 prop: 'drawBillDate', // 3
type: '1', type: '1',
"subjectId": '60', "subjectId": '60',
}, },
358: { 358: {
prop: 'abstract', // 3 prop: 'abstract', // 3
type: '3', type: '3',
"subjectId": '16', "subjectId": '16',
}, },
}, },
myTable: { myTable: {
// //
// shroffAccountNumber: '', // // shroffAccountNumber: '', //
// money: '', // // money: '', //
// shroffAccountUsername: '', // // shroffAccountUsername: '', //
// billType: '', // // billType: '', //
// otherAccountNumber: '', // // otherAccountNumber: '', //
// voucherNumber: '', // // voucherNumber: '', //
347: { 347: {
prop: 'shroffAccountNumber', // 3 prop: 'shroffAccountNumber', // 3
type: '3', type: '3',
"subjectId": '54', "subjectId": '54',
}, },
349: { 349: {
prop: 'money', // 3 prop: 'money', // 3
type: '3', type: '3',
"subjectId": '14', "subjectId": '14',
}, },
352: { 352: {
prop: 'billType', // 1 prop: 'billType', // 1
type: '1', type: '1',
"subjectId": '57', "subjectId": '57',
}, },
354: { 354: {
prop: 'otherAccountNumber', // 3 prop: 'otherAccountNumber', // 3
type: '3', type: '3',
"subjectId": '59', "subjectId": '59',
}, },
356: { 356: {
prop: 'voucherNumber', // 3 prop: 'voucherNumber', // 3
type: '3', type: '3',
"subjectId": '44', "subjectId": '44',
}, },
357: { 357: {
prop: 'shroffAccountUsername', // 3 prop: 'shroffAccountUsername', // 3
type: '3', type: '3',
"subjectId": '61', "subjectId": '61',
}, },
}, },
visible:false, visible: false,
submited: 0 submited: 0
} }
}, },
created() { created () {
const tmpFunc = () => { const tmpFunc = () => {
const date = new Date() const date = new Date()
var y = date.getFullYear(); var y = date.getFullYear();
var m = date.getMonth() + 1; var m = date.getMonth() + 1;
m = m < 10 ? '0' + m : m; m = m < 10 ? '0' + m : m;
var d = date.getDate(); var d = date.getDate();
d = d < 10 ? ('0' + d) : d; d = d < 10 ? ('0' + d) : d;
return y + '-' + m + '-' + d; return y + '-' + m + '-' + d;
} }
this.form.proposeDate = tmpFunc() this.form.proposeDate = tmpFunc()
// this.form.billType = this.billTypeSelect[0].itemId; // this.form.billType = this.billTypeSelect[0].itemId;
}, },
mounted() { mounted () {
this.$refs.shroffAccountNumber.focus() this.$refs.shroffAccountNumber.focus()
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,29,345,346' const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,29,345,346'
autoPlay2(parentId, this.form, this.myTable2, this.myTable) autoPlay2(parentId, this.form, this.myTable2, this.myTable)
},
methods: {
submitForm () {
if (this.submited) return this.$message.error('已提交!')
this.$refs.form.validate(myValidate(() => {
//
// const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,29,345,346'
this.visible = true;
}, this.$refs));
}, },
methods: { submitForm2 () {
submitForm() { const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,29,345,346'
if (this.submited) return this.$message.error('已提交!') autoPlay(parentId, this.form, this.myTable2, this.myTable)
this.$refs.form.validate(myValidate(() => { let projectId = sessionStorage.getItem('projectId')
// let startTime = sessionStorage.getItem('startTime')
// const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,29,345,346' const formList = []
this.visible = true; formList.push({ "answerId": '347', "emptyOne": 54, "emptyTwo": this.form.shroffAccountNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" })
}, this.$refs)); formList.push({ "answerId": '348', "emptyOne": 8, "emptyTwo": +this.form.currency, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" })
},
submitForm2() {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,29,345,346'
autoPlay(parentId, this.form, this.myTable2, this.myTable)
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
const formList = []
formList.push({"answerId":'347',"emptyOne": 54, "emptyTwo": this.form.shroffAccountNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"})
formList.push({"answerId":'348',"emptyOne": 8, "emptyTwo": +this.form.currency, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"})
formList.push({"answerId":'349',"emptyOne": 14, "emptyTwo": this.form.money, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"})
formList.push({"answerId":'350',"emptyOne": 55, "emptyTwo": this.form.proposeTime, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"})
formList.push({"answerId":'351',"emptyOne": 56, "emptyTwo": this.form.proposeDate, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"})
formList.push({"answerId":'352',"emptyOne": 57, "emptyTwo": +this.form.billType, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"})
formList.push({"answerId":'353',"emptyOne": 58, "emptyTwo": this.form.shroffAccountUsername, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"})
formList.push({"answerId":'354',"emptyOne": 59, "emptyTwo": this.form.otherAccountNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"})
formList.push({"answerId":'355',"emptyOne": 60, "emptyTwo": this.form.drawBillDate, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) formList.push({ "answerId": '349', "emptyOne": 14, "emptyTwo": this.form.money, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" })
formList.push({"answerId":'356',"emptyOne": 44, "emptyTwo": this.form.voucherNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) formList.push({ "answerId": '350', "emptyOne": 55, "emptyTwo": this.form.proposeTime, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" })
formList.push({"answerId":'357',"emptyOne": 61, "emptyTwo": this.form.shroffAccountUsername, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) formList.push({ "answerId": '351', "emptyOne": 56, "emptyTwo": this.form.proposeDate, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" })
formList.push({"answerId":'358',"emptyOne": 16, "emptyTwo": this.form.abstract, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) formList.push({ "answerId": '352', "emptyOne": 57, "emptyTwo": +this.form.billType, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" })
formList.push({ "answerId": '353', "emptyOne": 58, "emptyTwo": this.form.shroffAccountUsername, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" })
formList.push({ "answerId": '354', "emptyOne": 59, "emptyTwo": this.form.otherAccountNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" })
formList.push({ "answerId": '355', "emptyOne": 60, "emptyTwo": this.form.drawBillDate, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" })
formList.push({ "answerId": '356', "emptyOne": 44, "emptyTwo": this.form.voucherNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" })
formList.push({ "answerId": '357', "emptyOne": 61, "emptyTwo": this.form.shroffAccountUsername, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" })
formList.push({ "answerId": '358', "emptyOne": 16, "emptyTwo": this.form.abstract, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" })
let params= {
parentId: "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346",
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{ let params = {
this.submited = 1 parentId: "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346",
// this.$message({ lcJudgmentRuleReq: formList,
// message: '', projectId: +projectId,
// type: 'success' startTime: startTime,
// }); }
// this.setNeedsModule(moduleName) // addOperation(params).then((data) => {
// this.setDataFlow({ ...this.form }) // this.submited = 1
}).catch((error)=>{ // }).catch((error) => {
}) // })
}, },
getFocus() { getFocus () {
// console.log('test') // console.log('test')
if(!this.form.shroffAccountNumber) { if (!this.form.shroffAccountNumber) {
this.$message({ this.$message({
message: '请先输入本行收款账号', message: '请先输入本行收款账号',
center: true, center: true,
type: 'warning' type: 'warning'
}); });
this.$refs.shroffAccountNumber.focus() this.$refs.shroffAccountNumber.focus()
} }
},
getBlur() {
if(this.form.shroffAccountNumber) {
this.form.shroffAccountUsername = this.dataFlow.userName
}
},
ismoney: ismoney,
inputListen: inputListen,
checkHanzi: checkHanzi,
checkName: checkName
}, },
computed: { getBlur () {
// ...mapState({ if (this.form.shroffAccountNumber) {
// billTypeSelect: state => state.select.billTypeSelect this.form.shroffAccountUsername = this.dataFlow.userName
// }), }
...mapGetters({ },
getSelectList: 'system/getSelectList', ismoney: ismoney,
dataFlow: 'system/dataFlow' inputListen: inputListen,
}) checkHanzi: checkHanzi,
} checkName: checkName
},
computed: {
// ...mapState({
// billTypeSelect: state => state.select.billTypeSelect
// }),
...mapGetters({
getSelectList: 'system/getSelectList',
dataFlow: 'system/dataFlow'
})
}
}; };
</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>

@ -1,66 +1,114 @@
// //
<template> <template>
<div class="wrap2 wrap"> <div class="wrap2 wrap">
<MyTitle :titleArr="['客户信息', '公司客户信息建立']"/> <MyTitle :titleArr="['客户信息', '公司客户信息建立']" />
<div class="body"> <div class="body">
<el-row :gutter="20"> <el-row :gutter="20">
<el-form ref="form" :model="form" label-width="140px" :rules="rules"> <el-form ref="form"
<el-col :span="10" :offset="1"> :model="form"
<el-form-item label="证件类型"> label-width="140px"
<el-select v-model.trim="form.idType" placeholder="请选择" ref="idType"> :rules="rules">
<el-option label="统一社会信用代码证" :value="82"></el-option> <el-col :span="10"
</el-select> :offset="1">
</el-form-item> <el-form-item label="证件类型">
<el-form-item label="公司名称" prop="companyName"> <el-select v-model.trim="form.idType"
<el-input v-model.trim="form.companyName" maxlength="40" @input="(val) => checkHanzi(val, form, 'companyName')" ref="companyName"></el-input> placeholder="请选择"
ref="idType">
<el-option label="统一社会信用代码证"
:value="82"></el-option>
</el-select>
</el-form-item>
<el-form-item label="公司名称"
prop="companyName">
<el-input v-model.trim="form.companyName"
maxlength="40"
@input="(val) => checkHanzi(val, form, 'companyName')"
ref="companyName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="注册资本" class="relative"> <el-form-item label="注册资本"
<el-input :value="form.registeredCapital" @input="val => ismoney(val, form, 'registeredCapital')" maxlength="15" ref="registeredCapital"></el-input> class="relative">
<span class="absolute" style="right: 10px;font-size: 16px;line-height: 40px; color: #606266;"></span> <el-input :value="form.registeredCapital"
</el-form-item> @input="val => ismoney(val, form, 'registeredCapital')"
<el-form-item label="法人证件号码" required> maxlength="15"
<div class="idCard" @click="popUp('身份证扫描仪')" v-if='!idNumberJudge'> ref="registeredCapital"></el-input>
<p>请刷身份证</p> <span class="absolute"
</div> style="right: 10px;font-size: 16px;line-height: 40px; color: #606266;"></span>
<div v-else> </el-form-item>
<el-input :value="form.idNumber" disabled ref="idNumber"></el-input> <el-form-item label="法人证件号码"
</div> required>
</el-form-item> <div class="idCard"
<el-form-item label="联系电话" :rules="rules.phone" prop="phone"> @click="popUp('身份证扫描仪')"
<el-input :value="form.phone" @input="(val) => phoneListen(val, form, 'phone')" maxlength="12" ref='phone'></el-input> v-if='!idNumberJudge'>
</el-form-item> <p>请刷身份证</p>
</el-col> </div>
<el-col :span="10" :offset="1"> <div v-else>
<el-form-item label="代码证号" prop="codeNumber"> <el-input :value="form.idNumber"
<el-input :value="form.codeNumber" @input="(val) => checkHanzi(val, form, 'codeNumber')" ref="codeNumber"></el-input> disabled
</el-form-item> ref="idNumber"></el-input>
<el-form-item label="公司地址"> </div>
<el-input v-model.trim="form.companyAddress" maxlength="60" ref="companyAddress"></el-input> </el-form-item>
</el-form-item> <el-form-item label="联系电话"
<el-form-item label="法人证件类型" prop="certificateType"> :rules="rules.phone"
<el-select v-model.trim="form.certificateType" placeholder="请选择" ref="certificateType"> prop="phone">
<el-option label="身份证" :value="83"></el-option> <el-input :value="form.phone"
</el-select> @input="(val) => phoneListen(val, form, 'phone')"
</el-form-item> maxlength="12"
<el-form-item label="法人姓名" prop="name"> ref='phone'></el-input>
<el-input v-model.trim="form.name" disabled @input="(val) => checkName(val, form, 'name')" ref="name"></el-input> </el-form-item>
</el-form-item> </el-col>
</el-col> <el-col :span="10"
</el-form> :offset="1">
</el-row> <el-form-item label="代码证号"
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button> prop="codeNumber">
</div> <el-input :value="form.codeNumber"
@input="(val) => checkHanzi(val, form, 'codeNumber')"
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" /> ref="codeNumber"></el-input>
</el-form-item>
<el-form-item label="公司地址">
<el-input v-model.trim="form.companyAddress"
maxlength="60"
ref="companyAddress"></el-input>
</el-form-item>
<el-form-item label="法人证件类型"
prop="certificateType">
<el-select v-model.trim="form.certificateType"
placeholder="请选择"
ref="certificateType">
<el-option label="身份证"
:value="132"></el-option>
</el-select>
</el-form-item>
<el-form-item label="法人姓名"
prop="name">
<el-input v-model.trim="form.name"
disabled
@input="(val) => checkName(val, form, 'name')"
ref="name"></el-input>
</el-form-item>
</el-col>
</el-form>
</el-row>
<el-button @click="submitForm"
type="primary"
class="submitBtn"
v-throttle>提交</el-button>
</div> </div>
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" class="wrap" /> --> <my-dialog :moduleName="moduleName"
v-if="visible"
:visible.sync="visible"
:showForm="form"
:formName="formName"
@submitIt="submitForm2" />
</div>
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" class="wrap" /> -->
</template> </template>
<script> <script>
import { mapState, mapMutations, mapGetters } from 'vuex' import { mapState, mapMutations, mapGetters } from 'vuex'
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { addOperation, getOperation } from '@/api/http'; import { addOperation, getOperation } from '@/api/http';
import { phoneListen, checkRequired, myValidate, checkHanzi, checkName, ismoney, messageIdCard } from '@/utils/utilFunction.js' import { phoneListen, checkRequired, myValidate, checkHanzi, checkName, ismoney, messageIdCard } from '@/utils/utilFunction.js'
import MyTitle from '@/components/myTitle' import MyTitle from '@/components/myTitle'
@ -70,270 +118,270 @@ import TipsBefore from '@/mixins/tipsBefore'
const moduleName = 'corporateClient' const moduleName = 'corporateClient'
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: 'corporateClient', moduleName: 'corporateClient',
idNumberJudge: false, idNumberJudge: false,
visible:false,// visible: false,//
authorization:false,// authorization: false,//
success:false,// success: false,//
form:{ form: {
idNumber: '', idNumber: '',
name: '', name: '',
phone: '', phone: '',
idType: 82, idType: 82,
companyName: '', companyName: '',
registeredCapital: '', registeredCapital: '',
codeNumber: '', codeNumber: '',
companyAddress: '', companyAddress: '',
certificateType: '' certificateType: ''
}, },
formName:{ formName: {
idNumber: '法人证件号码', idNumber: '法人证件号码',
name: '法人姓名', name: '法人姓名',
phone: '联系电话', phone: '联系电话',
idType: '证件类型', idType: '证件类型',
companyName: '公司名称', companyName: '公司名称',
registeredCapital: '注册资本', registeredCapital: '注册资本',
codeNumber: '代码证号', codeNumber: '代码证号',
companyAddress: '公司地址', companyAddress: '公司地址',
certificateType: '法人证件类型' certificateType: '法人证件类型'
}, },
rules: { rules: {
idNumber: [ idNumber: [
{ {
required: true, required: true,
message: '请输入公司名称', message: '请输入公司名称',
trigger: 'blur' trigger: 'blur'
} }
], ],
companyName: [ companyName: [
{ {
required: true, required: true,
message: '请输入公司名称', message: '请输入公司名称',
trigger: 'blur' trigger: 'blur'
} }
], ],
phone: [ phone: [
{ {
pattern: mobPattern, pattern: mobPattern,
message: '联系电话格式有误' message: '联系电话格式有误'
}, },
{ {
required: true, required: true,
message: '请输入联系电话', message: '请输入联系电话',
trigger: 'blur' trigger: 'blur'
} }
], ],
name: [{ name: [{
pattern: namePattern, pattern: namePattern,
message: '法人姓名格式有误' message: '法人姓名格式有误'
}], }],
codeNumber: [ codeNumber: [
{ {
required: true, required: true,
message: '请输入代码证号', message: '请输入代码证号',
trigger: 'blur' trigger: 'blur'
} }
], ],
certificateType: [ certificateType: [
{ {
required: true, required: true,
message: '请输入法人证件类型', message: '请输入法人证件类型',
trigger: 'blur' trigger: 'blur'
} }
] ]
}, },
submited: 0 submited: 0
} }
}, },
created() { created () {
// firmClientIdentity // firmClientIdentity
// if(this.isNeedBefore) { // if(this.isNeedBefore) {
// if(sessionStorage.getItem('firmClientIdentity')) { // if(sessionStorage.getItem('firmClientIdentity')) {
// this.idNumberJudge = true // this.idNumberJudge = true
// this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' // this.form.idNumber = this.dataFlow.idNumber || '441515199812064569'
// } // }
// return // return
// } // }
if(sessionStorage.getItem('firmClientIdentity')) { if (sessionStorage.getItem('firmClientIdentity')) {
this.idNumberJudge = true this.idNumberJudge = true
const { idNumber, userName } = this.dataFlow const { idNumber, userName } = this.dataFlow
this.form.idNumber = idNumber this.form.idNumber = idNumber
this.form.name = userName this.form.name = userName
} }
// for(const key in this.dataFlow) { // for(const key in this.dataFlow) {
// if(key === 'idNumber' || key === 'userName') { // if(key === 'idNumber' || key === 'userName') {
// continue; // continue;
// } // }
// if(this.form.hasOwnProperty(key)) { // if(this.form.hasOwnProperty(key)) {
// this.form[key] = this.dataFlow[key] // this.form[key] = this.dataFlow[key]
// } // }
// } // }
this.getFormData() this.getFormData()
},
mounted () {
},
methods: {
getFormData () {
let param = {
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,25,34'
}
getOperation(param).then((data) => {
console.log(data)
if (data.status == 200) {
var list = data.data.judgmentRuleReqs
for (var i = 0; i < list.length; i++) {
if (list[i].answerId == '48') { this.form.idType = list[i].emptyTwo } //
else if (list[i].answerId == '49') { this.form.codeNumber = list[i].emptyTwo } //
else if (list[i].answerId == '50') { this.form.companyName = list[i].emptyTwo } //
else if (list[i].answerId == '51') { this.form.companyAddress = list[i].emptyTwo } //
else if (list[i].answerId == '52') { this.form.registeredCapital = list[i].emptyTwo / 10000 } //
else if (list[i].answerId == '53') { this.form.certificateType = +list[i].emptyTwo } //
// else if (list[i].answerId == '54') {sessionStorage.setItem('firmClientIdentity', list[i].emptyTwo)} //
else if (list[i].answerId == '54') {
console.log('54id')
console.log(list[i].emptyTwo)
this.idNumberJudge = true
this.form.idNumber = list[i].emptyTwo
}
else if (list[i].answerId == '55') { this.form.name = list[i].emptyTwo } //
else if (list[i].answerId == '56') { this.form.phone = list[i].emptyTwo } //
}
}
}).catch((error) => {
})
}, },
mounted() { ...mapMutations({
changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule',
setPopId: 'system/setPopId',
setNeedsModule: 'system/setNeedsModule',
setTipsOperate: 'system/setTipsOperate'
}),
popUp () {//
// this.$store.commit('system/changePop',{show:true,text:'',id:'34'})
// this.setDataFlow()
// let tmpForm = {}
// for(const key in this.form) {
// if(this.form[key]) {
// tmpForm[key] = this.form[key]
// }
// }
// this.setDataFlow({ ...tmpForm })
this.setTipsOperate('请刷身份证');
this.setPopId('34')
sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/')
}, },
methods: { popSure () {
getFormData(){
let param= {
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,25,34'
}
getOperation(param).then((data)=>{
console.log(data)
if(data.status == 200) {
var list = data.data.judgmentRuleReqs
for (var i = 0; i < list.length; i++) {
if (list[i].answerId == '48') {this.form.idType = list[i].emptyTwo} //
else if (list[i].answerId == '49') {this.form.codeNumber = list[i].emptyTwo} //
else if (list[i].answerId == '50') {this.form.companyName = list[i].emptyTwo} //
else if (list[i].answerId == '51') {this.form.companyAddress = list[i].emptyTwo} //
else if (list[i].answerId == '52') {this.form.registeredCapital = list[i].emptyTwo/10000} //
else if (list[i].answerId == '53') {this.form.certificateType = +list[i].emptyTwo} //
// else if (list[i].answerId == '54') {sessionStorage.setItem('firmClientIdentity', list[i].emptyTwo)} //
else if (list[i].answerId == '54') {
console.log('54id')
console.log(list[i].emptyTwo)
this.idNumberJudge = true
this.form.idNumber = list[i].emptyTwo
}
else if (list[i].answerId == '55') {this.form.name = list[i].emptyTwo} //
else if (list[i].answerId == '56') {this.form.phone = list[i].emptyTwo} //
}
}
}).catch((error)=>{
})
},
...mapMutations({
changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule',
setPopId: 'system/setPopId',
setNeedsModule: 'system/setNeedsModule',
setTipsOperate: 'system/setTipsOperate'
}),
popUp(){//
// this.$store.commit('system/changePop',{show:true,text:'',id:'34'})
// this.setDataFlow()
// let tmpForm = {}
// for(const key in this.form) {
// if(this.form[key]) {
// tmpForm[key] = this.form[key]
// }
// }
// this.setDataFlow({ ...tmpForm })
this.setTipsOperate('请刷身份证');
this.setPopId('34')
sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/')
},
popSure(){
},
submitForm() {
if (this.submited) return this.$message.error('已提交!')
if(!this.form.idNumber) {
messageIdCard()
return
}
this.$refs.form.validate(myValidate(() => {
//
this.form.registeredCapital += '万'
this.visible = true;
}, this.$refs));
},
submitForm2() {
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
let formList = [];
let firmClientIdentity = sessionStorage.getItem('firmClientIdentity')
let firmClientIdentitys = JSON.parse(firmClientIdentity);
if (firmClientIdentitys && firmClientIdentitys.length > 0){
// for (var i=0;i<firmClientIdentitys.length;i++){
// formList.push({"answerId":54,"emptyOne": "", "emptyTwo": firmClientIdentity, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,25,34,54","type": ""})//
// }
formList.push({"answerId":54,"emptyOne": "", "emptyTwo": this.form.idNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,25,34,54,13","type": ""})//
if(this.form.idType){
formList.push({ "answerId":'48', "emptyOne": "19", "emptyTwo": this.form.idType, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,25,34,48","type": "1"})//
}
if(this.form.companyAddress){
formList.push({ "answerId":'51', "emptyOne": "22", "emptyTwo": this.form.companyAddress, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,25,34,51", "type": "3" })//
}
if(this.form.registeredCapital){
const getRegisteredCapital = this.form.registeredCapital.slice(0, this.form.registeredCapital.length-1)*10000
formList.push({ "answerId":'52', "emptyOne": "23", "emptyTwo": getRegisteredCapital, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,25,34,52", "type": "3" })//
}
if(this.form.name){
formList.push( {"answerId":'55',"emptyOne": "25", "emptyTwo": this.form.name, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,25,34,55", "type": "3"})//
}
if(this.form.phone){
formList.push({"answerId":'56',"emptyOne": "5", "emptyTwo": this.form.phone, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,25,34,56", "type": "3"})//
}
formList.push(
{ "answerId":'49', "emptyOne": "20", "emptyTwo": this.form.codeNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,25,34,49", "type": "3" },//
{ "answerId":'50', "emptyOne": "21", "emptyTwo": this.form.companyName, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,25,34,50", "type": "3" },//
{"answerId":'53',"emptyOne": "24", "emptyTwo": this.form.certificateType, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,25,34,53", "type": "1"},//
);
let params= {
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,25,34',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
// this.$message({
// message: '',
// type: 'success'
// });
// this.setDataFlow({ ...this.form })
this.setNeedsModule(moduleName)
this.setDataFlow({ userName: this.form.name })
//
this.setDataFlow({ [moduleName]: true })
this.form.registeredCapital = this.form.registeredCapital.slice(0, this.form.registeredCapital.length-1)
this.submited = 1
this.setPopId('')
}).catch((error)=>{
this.setTipsOperate('服务器繁忙哦,提交失败。')
})
}else {
this.$message.error('有必填项未填哦~');
}
},
phoneListen: phoneListen,
checkHanzi: checkHanzi,
checkName: checkName,
ismoney: ismoney
}, },
computed: { submitForm () {
...mapGetters({ if (this.submited) return this.$message.error('已提交!')
dataFlow: 'system/dataFlow', if (!this.form.idNumber) {
inMyWork: 'system/inMyWork', messageIdCard()
needsModule: 'system/needsModule', return
}
this.$refs.form.validate(myValidate(() => {
//
this.form.registeredCapital += '万'
this.visible = true;
}, this.$refs));
},
submitForm2 () {
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
let formList = [];
let firmClientIdentity = sessionStorage.getItem('firmClientIdentity')
let firmClientIdentitys = JSON.parse(firmClientIdentity);
if (firmClientIdentitys && firmClientIdentitys.length > 0) {
// for (var i=0;i<firmClientIdentitys.length;i++){
// formList.push({"answerId":54,"emptyOne": "", "emptyTwo": firmClientIdentity, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,25,34,54","type": ""})//
// }
formList.push({ "answerId": 54, "emptyOne": "", "emptyTwo": this.form.idNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,25,34,54,13", "type": "" })//
if (this.form.idType) {
formList.push({ "answerId": '48', "emptyOne": "19", "emptyTwo": this.form.idType, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,25,34,48", "type": "1" })//
}
if (this.form.companyAddress) {
formList.push({ "answerId": '51', "emptyOne": "22", "emptyTwo": this.form.companyAddress, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,25,34,51", "type": "3" })//
}
if (this.form.registeredCapital) {
const getRegisteredCapital = this.form.registeredCapital.slice(0, this.form.registeredCapital.length - 1) * 10000
formList.push({ "answerId": '52', "emptyOne": "23", "emptyTwo": getRegisteredCapital, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,25,34,52", "type": "3" })//
}
if (this.form.name) {
formList.push({ "answerId": '55', "emptyOne": "25", "emptyTwo": this.form.name, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,25,34,55", "type": "3" })//
}
if (this.form.phone) {
formList.push({ "answerId": '56', "emptyOne": "5", "emptyTwo": this.form.phone, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,25,34,56", "type": "3" })//
}
formList.push(
{ "answerId": '49', "emptyOne": "20", "emptyTwo": this.form.codeNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,25,34,49", "type": "3" },//
{ "answerId": '50', "emptyOne": "21", "emptyTwo": this.form.companyName, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,25,34,50", "type": "3" },//
{ "answerId": '53', "emptyOne": "24", "emptyTwo": this.form.certificateType, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,25,34,53", "type": "1" },//
);
let params = {
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,25,34',
lcJudgmentRuleReq: formList,
projectId: +projectId,
startTime: startTime,
}
addOperation(params).then((data) => {
// this.$message({
// message: '',
// type: 'success'
// });
// this.setDataFlow({ ...this.form })
this.setNeedsModule(moduleName)
this.setDataFlow({ userName: this.form.name })
//
this.setDataFlow({ [moduleName]: true })
this.form.registeredCapital = this.form.registeredCapital.slice(0, this.form.registeredCapital.length - 1)
this.submited = 1
this.setPopId('')
}).catch((error) => {
this.setTipsOperate('服务器繁忙哦,提交失败。')
}) })
} } else {
this.$message.error('有必填项未填哦~');
}
},
phoneListen: phoneListen,
checkHanzi: checkHanzi,
checkName: checkName,
ismoney: ismoney
},
computed: {
...mapGetters({
dataFlow: 'system/dataFlow',
inMyWork: 'system/inMyWork',
needsModule: 'system/needsModule',
})
}
}; };
</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;
padding: 24px 0 24px 24px; padding: 24px 0 24px 24px;
overflow: auto; overflow: auto;
.body{ .body {
margin-top: 50px; margin-top: 50px;
overflow: auto; overflow: auto;
overflow-y: auto; overflow-y: auto;

@ -1,89 +1,162 @@
// //
<template> <template>
<div class="body"> <div class="body">
<el-row :gutter="20" style="margin: 0"> <el-row :gutter="20"
<el-form ref="form" :model="form" label-width="120px" :rules="rules"> style="margin: 0">
<el-col :span="10" :offset="1"> <el-form ref="form"
<el-form-item label="证件类型" prop="certificateType"> :model="form"
<el-select v-model.trim="form.certificateType" placeholder="请选择" ref="certificateType"> label-width="120px"
<el-option label="身份证" :value="83"> </el-option> :rules="rules">
</el-select> <el-col :span="10"
</el-form-item> :offset="1">
<el-form-item label="凭证号码" prop="voucherNumber"> <el-form-item label="证件类型"
<div v-if='!cardNumberJudge' class="idCard" @click="popUp('刷卡器')"> prop="certificateType">
<p>请刷卡</p> <el-select v-model.trim="form.certificateType"
</div> placeholder="请选择"
<div v-else> ref="certificateType">
<el-input disabled ref="voucherNumber" maxlength="20" :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> <el-option label="身份证"
</div> :value="83"> </el-option>
<!-- <el-input @blur="getDataBlur" ref="voucherNumber" maxlength="20" :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> --> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="凭证号码"
<el-select v-model.trim="form.currency" disabled placeholder="请选择" ref="currency"> prop="voucherNumber">
<el-option v-for="item in getSelectList.currencySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> <div v-if='!cardNumberJudge'
</el-select> class="idCard"
</el-form-item> @click="popUp('刷卡器')">
<el-form-item label="定存编号" prop="depositNumber"> <p>请刷卡</p>
<el-input :value="form.depositNumber" disabled @input="(val) => checkHanzi(val, form, 'depositNumber')" ref="depositNumber"></el-input> </div>
</el-form-item> <div v-else>
<el-form-item label="利率" prop="interestRate"> <el-input disabled
<el-input :value="form.interestRate" disabled @input="(val) => checkHanzi(val, form, 'interestRate')" ref="interestRate"></el-input> ref="voucherNumber"
</el-form-item> maxlength="20"
<el-form-item label="利息" prop="interest"> :value="form.voucherNumber"
<el-input :value="form.interest" disabled @input="(val) => checkHanzi(val, form, 'interest')" ref="interest"></el-input> @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input>
</el-form-item> </div>
<el-form-item label="起息日期" required> <!-- <el-input @blur="getDataBlur" ref="voucherNumber" maxlength="20" :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> -->
<el-date-picker </el-form-item>
disabled <el-form-item label="币种"
prop="currency">
<el-select v-model.trim="form.currency"
disabled
placeholder="请选择"
ref="currency">
<el-option v-for="item in getSelectList.currencySelectList"
:label="item.options"
:value="item.itemId"
:key="item.itemId"> </el-option>
</el-select>
</el-form-item>
<el-form-item label="定存编号"
prop="depositNumber">
<el-input :value="form.depositNumber"
disabled
@input="(val) => checkHanzi(val, form, 'depositNumber')"
ref="depositNumber"></el-input>
</el-form-item>
<el-form-item label="利率"
prop="interestRate">
<el-input :value="form.interestRate"
disabled
@input="(val) => checkHanzi(val, form, 'interestRate')"
ref="interestRate"></el-input>
</el-form-item>
<el-form-item label="利息"
prop="interest">
<el-input :value="form.interest"
disabled
@input="(val) => checkHanzi(val, form, 'interest')"
ref="interest"></el-input>
</el-form-item>
<el-form-item label="起息日期"
required>
<el-date-picker disabled
v-model.trim="form.signDate" v-model.trim="form.signDate"
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
format="yyyy-MM-dd" format="yyyy-MM-dd"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
ref="signDate"> ref="signDate">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10"
<el-form-item label="证件号码" required> :offset="1">
<div class="idCard" @click="popUp3('身份证扫描仪')" v-if='!idNumberJudge'> <el-form-item label="证件号码"
<p>请刷身份证</p> required>
</div> <div class="idCard"
<div v-else> @click="popUp3('身份证扫描仪')"
<el-input :value="form.idNumber" disabled ref="idNumber"></el-input> v-if='!idNumberJudge'>
</div> <p>请刷身份证</p>
</el-form-item> </div>
<el-form-item label="客户姓名" prop="customerName"> <div v-else>
<el-input ref="customerName" disabled :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')"></el-input> <el-input :value="form.idNumber"
</el-form-item> disabled
<el-form-item label="钞汇标识" prop="goldLogo"> ref="idNumber"></el-input>
<el-select v-model.trim="form.goldLogo" disabled placeholder="请选择" ref="goldLogo"> </div>
<el-option v-for="item in getSelectList.goldLogoSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> </el-form-item>
</el-select> <el-form-item label="客户姓名"
</el-form-item> prop="customerName">
<el-form-item label="本金" prop="capital"> <el-input ref="customerName"
<el-input :value="form.capital" disabled @input="val => ismoney(val, form, 'capital')" ref="capital" ></el-input> disabled
</el-form-item> :value="form.customerName"
<el-form-item label="存期" prop="depositTerm"> @input="(val) => checkName(val, form, 'customerName')"></el-input>
<el-select v-model.trim="form.depositTerm" disabled placeholder="请选择" ref="depositTerm"> </el-form-item>
<el-option label="1年" :value="86"> </el-option> <el-form-item label="钞汇标识"
<el-option label="3年" :value="88"> </el-option> prop="goldLogo">
<el-option label="5年" :value="89"> </el-option> <el-select v-model.trim="form.goldLogo"
</el-select> disabled
</el-form-item> placeholder="请选择"
<el-form-item label="总金额" prop="totalMoney"> ref="goldLogo">
<el-input :value="form.totalMoney" disabled @input="val => ismoney(val, form, 'totalMoney')" ref="totalMoney" ></el-input> <el-option v-for="item in getSelectList.goldLogoSelectList"
</el-form-item> :label="item.options"
<el-form-item label="支取密码" required> :value="item.itemId"
<div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')"> :key="item.itemId"> </el-option>
<p>请输入密码</p> </el-select>
</div> </el-form-item>
<div v-else @click="popUp2('密码器')"> <el-form-item label="本金"
<el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input> prop="capital">
</div> <el-input :value="form.capital"
</el-form-item> disabled
<!-- <el-form-item label="续存标识" required> @input="val => ismoney(val, form, 'capital')"
ref="capital"></el-input>
</el-form-item>
<el-form-item label="存期"
prop="depositTerm">
<el-select v-model.trim="form.depositTerm"
disabled
placeholder="请选择"
ref="depositTerm">
<el-option label="1年"
:value="86"> </el-option>
<el-option label="3年"
:value="88"> </el-option>
<el-option label="5年"
:value="89"> </el-option>
</el-select>
</el-form-item>
<el-form-item label="总金额"
prop="totalMoney">
<el-input :value="form.totalMoney"
disabled
@input="val => ismoney(val, form, 'totalMoney')"
ref="totalMoney"></el-input>
</el-form-item>
<el-form-item label="支取密码"
required>
<div v-if='!form.drawPassword'
class="idCard"
@click="popUp2('密码器')">
<p>请输入密码</p>
</div>
<div v-else
@click="popUp2('密码器')">
<el-input :value="form.drawPassword"
ref="drawPassword"
type="password"></el-input>
</div>
</el-form-item>
<!-- <el-form-item label="续存标识" required>
<el-select v-model.trim="form.identification" placeholder="请选择"> <el-select v-model.trim="form.identification" placeholder="请选择">
<el-option label="不续存" value="不续存"> </el-option> <el-option label="不续存" value="不续存"> </el-option>
<el-option label="续存1年" value="续存1年"> </el-option> <el-option label="续存1年" value="续存1年"> </el-option>
@ -91,376 +164,384 @@
<el-option label="续存5年" value="续存5年"> </el-option> <el-option label="续存5年" value="续存5年"> </el-option>
</el-select> </el-select>
</el-form-item> --> </el-form-item> -->
</el-col> </el-col>
</el-form> </el-form>
</el-row> </el-row>
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button> <el-button @click="submitForm"
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" depositNumber='0816' /> type="primary"
</div> class="submitBtn"
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> --> v-throttle>提交</el-button>
<my-dialog :moduleName="moduleName"
v-if="visible"
:visible.sync="visible"
:showForm="form"
:formName="formName"
@submitIt="submitForm2"
depositNumber='0816' />
</div>
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> -->
</template> </template>
<script> <script>
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, messageIdCard,messageCard, messagePassword, inputListen } from '@/utils/utilFunction.js'; import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, messageIdCard, messageCard, messagePassword, inputListen } from '@/utils/utilFunction.js';
const moduleName = 'usefulPhrases/accoumtClosed' const moduleName = 'usefulPhrases/accoumtClosed'
import { mapMutations, mapGetters } from 'vuex' import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore' import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialog' import MyDialog from '@/components/dialog'
import TipsBefore from '@/mixins/tipsBefore' import TipsBefore from '@/mixins/tipsBefore'
export default{ export default {
name:'', name: '',
props:{}, props: {},
components: { components: {
NeedBefore, NeedBefore,
MyDialog MyDialog
}, },
mixins: [ TipsBefore ], mixins: [TipsBefore],
created() { created () {
if(sessionStorage.getItem('nomUsefulPhrasesClosedPassword')) { if (sessionStorage.getItem('nomUsefulPhrasesClosedPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesClosedPassword') this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesClosedPassword')
} }
// if(this.isNeedBefore) { // if(this.isNeedBefore) {
// if(sessionStorage.getItem('nomUsefulPhrasesClosed')) { // if(sessionStorage.getItem('nomUsefulPhrasesClosed')) {
// this.idNumberJudge = true // this.idNumberJudge = true
// this.form.idNumber = this.dataFlow.idNumber || '441515199812064569' // this.form.idNumber = this.dataFlow.idNumber || '441515199812064569'
// } // }
// if(sessionStorage.getItem('nomUsefulPhrasesClosed2')) { // if(sessionStorage.getItem('nomUsefulPhrasesClosed2')) {
// this.cardNumberJudge = true // this.cardNumberJudge = true
// this.form.voucherNumber = this.dataFlow.voucherNumber || '159753' // this.form.voucherNumber = this.dataFlow.voucherNumber || '159753'
// } // }
// return // return
// } // }
if(sessionStorage.getItem('nomUsefulPhrasesClosed')) { if (sessionStorage.getItem('nomUsefulPhrasesClosed')) {
this.idNumberJudge = true this.idNumberJudge = true
const { idNumber } = this.dataFlow const { idNumber } = this.dataFlow
this.form.idNumber = idNumber this.form.idNumber = idNumber
} }
if(sessionStorage.getItem('nomUsefulPhrasesClosed2')) { if (sessionStorage.getItem('nomUsefulPhrasesClosed2')) {
this.cardNumberJudge = true this.cardNumberJudge = true
const { currency, userName, depositNumber, goldLogo, capital, interestRate, interest, totalMoney, signDate, voucherNumber, depositTerm } = this.dataFlow const { currency, userName, depositNumber, goldLogo, capital, interestRate, interest, totalMoney, signDate, voucherNumber, depositTerm } = this.dataFlow
this.form.currency = currency this.form.currency = currency
this.form.customerName = userName this.form.customerName = userName
this.form.depositNumber = depositNumber this.form.depositNumber = depositNumber
this.form.goldLogo = goldLogo this.form.goldLogo = goldLogo
this.form.capital = capital this.form.capital = capital
this.form.interestRate = interestRate this.form.interestRate = interestRate
this.form.interest = interest this.form.interest = interest
this.form.totalMoney = totalMoney this.form.totalMoney = totalMoney
this.form.signDate = signDate this.form.signDate = signDate
this.form.voucherNumber = voucherNumber this.form.voucherNumber = voucherNumber
this.form.depositTerm = depositTerm this.form.depositTerm = depositTerm
} }
this.getFormData() this.getFormData()
}, },
data(){ data () {
return{ return {
moduleName: 'usefulPhrases/accoumtClosed', moduleName: 'usefulPhrases/accoumtClosed',
idNumberJudge: false, idNumberJudge: false,
cardNumberJudge: false, cardNumberJudge: false,
visible: false, visible: false,
form:{ form: {
// //
idNumber: '', // idNumber: '', //
currency: '', // currency: '', //
voucherNumber: '', // voucherNumber: '', //
drawPassword: '', // drawPassword: '', //
// //
certificateType: '', // certificateType: '', //
customerName: '', // customerName: '', //
goldLogo: '', // goldLogo: '', //
depositNumber: '', // depositNumber: '', //
capital: '', // capital: '', //
interestRate: '', // interestRate: '', //
depositTerm: '', // depositTerm: '', //
interest: '', // interest: '', //
totalMoney: '', // totalMoney: '', //
signDate:'', // signDate: '', //
}, },
formName:{ formName: {
// //
idNumber: '身份证号码', // idNumber: '身份证号码', //
currency: '币种', // currency: '币种', //
voucherNumber: '凭证号码', // voucherNumber: '凭证号码', //
drawPassword: '支取密码', drawPassword: '支取密码',
// //
certificateType: '证件类型', // certificateType: '证件类型', //
customerName: '客户姓名', // customerName: '客户姓名', //
goldLogo: '钞汇标识', // goldLogo: '钞汇标识', //
depositNumber: '定存编号', // depositNumber: '定存编号', //
capital: '本金', // capital: '本金', //
interestRate: '利率', // interestRate: '利率', //
depositTerm: '存期', // depositTerm: '存期', //
interest: '利息', // interest: '利息', //
totalMoney: '总金额', // totalMoney: '总金额', //
signDate:'起息日期', // signDate: '起息日期', //
}, },
rules: { rules: {
voucherNumber: [ voucherNumber: [
{ {
required: true, required: true,
message: '请输入凭证号码', message: '请输入凭证号码',
trigger: 'blur' trigger: 'blur'
} }
], ],
customerName: vercustomer, customerName: vercustomer,
currency: [ currency: [
{ {
required: true, required: true,
message: '请选择币种', message: '请选择币种',
trigger: 'blur' trigger: 'blur'
} }
], ],
// voucherNumber: [ // voucherNumber: [
// { // {
// required: true, // required: true,
// message: '', // message: '',
// trigger: 'blur' // trigger: 'blur'
// } // }
// ], // ],
interestRate: [ interestRate: [
{ {
pattern: ratePattern, pattern: ratePattern,
message: '利率格式有误' message: '利率格式有误'
} }
] ]
}, },
myTable: { myTable: {
179: { 179: {
prop: 'certificateType',// prop: 'certificateType',//
type: '1', type: '1',
"subjectId": 19, "subjectId": 19,
},
184: {
prop: 'goldLogo',//
type: '1',
"subjectId": 9,
},
185: {
prop: 'depositNumber',//
type: '3',
"subjectId": 33,
},
186: {
prop: 'capital',//
type: '3',
"subjectId": 34,
},
187: {
prop: 'interestRate',//
type: '3',
"subjectId": 29,
},
188: {
prop: 'depositTerm',//
type: '1',
"subjectId": 27,
},
189: {
prop: 'interest',//
type: '3',
"subjectId": 26,
},
190: {
prop: 'totalMoney',//
type: '3',
"subjectId": 45,
},
191: {
prop: 'signDate',//
type: '3',
"subjectId": 32,
},
},
myTable2: {
180: {
prop: 'idNumber',
type: '3',
// "subjectId": 44,
},
181: {
prop: 'voucherNumber',
type: '3',
"subjectId": 44,
},
192: {
prop: 'drawPassword',
type: '3',
"subjectId": 17,
},
182: {
prop: 'customerName',//
type: '3',
"subjectId": 7,
},
183: {
prop: 'currency',//
type: '1',
"subjectId": 8,
},
},
submited: 0
}
},
mounted() {
},
methods: {
...mapMutations({
changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule',
setPopId: 'system/setPopId',
setTipsOperate: 'system/setTipsOperate'
}),
getDataBlur() {
if(!this.form.voucherNumber) {
return
}
const { currency, userName, depositNumber, goldLogo, capital, interestRate, interest, totalMoney, signDate, voucherNumber, depositTerm } = this.dataFlow
this.form.currency = currency
this.form.customerName = userName
this.form.depositNumber = depositNumber
this.form.goldLogo = goldLogo
this.form.capital = capital
this.form.interestRate = interestRate
this.form.interest = interest
this.form.totalMoney = totalMoney
this.form.signDate = signDate
// this.form.voucherNumber = voucherNumber
this.form.depositTerm = depositTerm
}, },
getFormData(){ 184: {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,157' prop: 'goldLogo',//
const cards = { type: '1',
// 180: 'nomUsefulPhrasesClosed', "subjectId": 9,
// 181: 'nomUsefulPhrasesClosed2',
// 192: 'nomUsefulPhrasesClosedPassword'
}
const callback = () => {
if(this.form.idNumber) {
this.idNumberJudge = true
}
if(this.form.voucherNumber) {
this.cardNumberJudge = true
}
if(sessionStorage.getItem('nomUsefulPhrasesClosedPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesClosedPassword')
}
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },
popUp(text) { 185: {
// this.$store.commit('system/changePop',{show:true,text, id: '181'}) prop: 'depositNumber',//
type: '3',
this.setTipsOperate('请刷银行卡'); "subjectId": 33,
this.setPopId('181')
sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/')
}, },
popUp2(text) { 186: {
// this.$store.commit('system/changePop',{show:true,text, id: '192'}) prop: 'capital',//
type: '3',
this.setTipsOperate('请在密码器输入密码'); "subjectId": 34,
this.setPopId('192')
sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/')
}, },
popUp3(text) { 187: {
// this.$store.commit('system/changePop',{show:true,text, id: '180'}) prop: 'interestRate',//
type: '3',
this.setTipsOperate('请刷身份证'); "subjectId": 29,
this.setPopId('180')
sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/')
}, },
submitForm() { 188: {
if (this.submited) return this.$message.error('已提交!') prop: 'depositTerm',//
if(!this.form.idNumber) { type: '1',
messageIdCard() "subjectId": 27,
// let projectId = sessionStorage.getItem('projectId') },
// let startTime = sessionStorage.getItem('startTime') 189: {
// let formList = [ prop: 'interest',//
// { type: '3',
// "answerId":'180', "subjectId": 26,
// "emptyOne": "", },
// "emptyTwo": "", 190: {
// "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,26,59,157,180,13", prop: 'totalMoney',//
// "type": "" type: '3',
// } "subjectId": 45,
// ]
// let params= {
// parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,157,180',
// 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() { 191: {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,157' prop: 'signDate',//
const nomUsefulPhrasesClosed = sessionStorage.getItem('nomUsefulPhrasesClosed') type: '3',
const nomUsefulPhrasesClosed2 = sessionStorage.getItem('nomUsefulPhrasesClosed2') "subjectId": 32,
const nomUsefulPhrasesClosedPassword = sessionStorage.getItem('nomUsefulPhrasesClosedPassword') },
const cards = [ },
{ myTable2: {
key: '180,13' 180: {
} prop: 'idNumber',
// { type: '3',
// 180: nomUsefulPhrasesClosed // "subjectId": 44,
// }, },
// { 181: {
// 181: nomUsefulPhrasesClosed2, prop: 'voucherNumber',
type: '3',
"subjectId": 44,
},
192: {
prop: 'drawPassword',
type: '3',
"subjectId": 17,
},
182: {
prop: 'customerName',//
type: '3',
"subjectId": 7,
},
183: {
prop: 'currency',//
type: '1',
"subjectId": 8,
},
},
submited: 0
}
},
mounted () {
// }, },
// { methods: {
// 192: nomUsefulPhrasesClosedPassword, ...mapMutations({
// "subjectId": 32, changeShowGoods: 'system/changeShowGoods',
// } setDataFlow: 'system/setDataFlow',
] setNeedsModule: 'system/setNeedsModule',
setPopId: 'system/setPopId',
setTipsOperate: 'system/setTipsOperate'
}),
getDataBlur () {
if (!this.form.voucherNumber) {
return
}
const { currency, userName, depositNumber, goldLogo, capital, interestRate, interest, totalMoney, signDate, voucherNumber, depositTerm } = this.dataFlow
this.form.currency = currency
this.form.customerName = userName
this.form.depositNumber = depositNumber
this.form.goldLogo = goldLogo
this.form.capital = capital
this.form.interestRate = interestRate
this.form.interest = interest
this.form.totalMoney = totalMoney
this.form.signDate = signDate
// this.form.voucherNumber = voucherNumber
this.form.depositTerm = depositTerm
},
getFormData () {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,157'
const cards = {
// 180: 'nomUsefulPhrasesClosed',
// 181: 'nomUsefulPhrasesClosed2',
// 192: 'nomUsefulPhrasesClosedPassword'
}
const callback = () => {
if (this.form.idNumber) {
this.idNumberJudge = true
}
if (this.form.voucherNumber) {
this.cardNumberJudge = true
}
if (sessionStorage.getItem('nomUsefulPhrasesClosedPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomUsefulPhrasesClosedPassword')
}
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
},
popUp (text) {
// this.$store.commit('system/changePop',{show:true,text, id: '181'})
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) this.setTipsOperate('请刷银行卡');
this.setNeedsModule(moduleName) this.setPopId('181')
this.submited = 1 sessionStorage.setItem('computerPath', this.$route.fullPath)
}, this.$router.push('/counter/list/')
ismoney: ismoney,
checkHanzi: checkHanzi,
checkName: checkName,
inputListen
}, },
computed: { popUp2 (text) {
...mapGetters({ // this.$store.commit('system/changePop',{show:true,text, id: '192'})
dataFlow: 'system/dataFlow',
needsModule: 'system/needsModule', this.setTipsOperate('请在密码器输入密码');
idCardNumber: 'system/idCardNumber', this.setPopId('192')
inMyWork: 'system/inMyWork', sessionStorage.setItem('computerPath', this.$route.fullPath)
getSelectList: 'system/getSelectList' this.$router.push('/counter/list/')
}) },
popUp3 (text) {
// this.$store.commit('system/changePop',{show:true,text, id: '180'})
this.setTipsOperate('请刷身份证');
this.setPopId('180')
sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/')
},
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":'180',
// "emptyOne": "",
// "emptyTwo": "",
// "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,26,59,157,180,13",
// "type": ""
// }
// ]
// let params= {
// parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,157,180',
// 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 () {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,59,157'
const nomUsefulPhrasesClosed = sessionStorage.getItem('nomUsefulPhrasesClosed')
const nomUsefulPhrasesClosed2 = sessionStorage.getItem('nomUsefulPhrasesClosed2')
const nomUsefulPhrasesClosedPassword = sessionStorage.getItem('nomUsefulPhrasesClosedPassword')
const cards = [
{
key: '180,13'
}
// {
// 180: nomUsefulPhrasesClosed
// },
// {
// 181: nomUsefulPhrasesClosed2,
// },
// {
// 192: nomUsefulPhrasesClosedPassword,
// "subjectId": 32,
// }
]
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
this.setNeedsModule(moduleName)
this.submited = 1
}, },
ismoney: ismoney,
checkHanzi: checkHanzi,
checkName: checkName,
inputListen
},
computed: {
...mapGetters({
dataFlow: 'system/dataFlow',
needsModule: 'system/needsModule',
idCardNumber: 'system/idCardNumber',
inMyWork: 'system/inMyWork',
getSelectList: 'system/getSelectList'
})
},
} }
</script> </script>
<style lang='scss' scoped> <style lang='scss' scoped>

@ -54,7 +54,7 @@ const allGoods = {
442: {name:'法人身份证',src:require('@/assets/img/goods/idCard.png'),id:442}, 442: {name:'法人身份证',src:require('@/assets/img/goods/idCard.png'),id:442},
431: {name:'法人身份证复印件',src:require('@/assets/img/idCard-copy-sm.png'),id:431}, 431: {name:'法人身份证复印件',src:require('@/assets/img/idCard-copy-sm.png'),id:431},
443: {name:'开立银行结算账户申请书',src:require('@/assets/img/goods/ApplicationBankSettlement.png'),id:432}, 443: {name:'开立银行结算账户申请书',src:require('@/assets/img/goods/ApplicationBankSettlement.png'),id:443},
434: {name:'统一社会信用代码证',src:require('@/assets/img/goods/营业执照.png'),id:434}, 434: {name:'统一社会信用代码证',src:require('@/assets/img/goods/营业执照.png'),id:434},
435: {name:'统一社会信用代码证复印件',src:require('@/assets/img/goods/营业执照复印件.png'),id:435}, 435: {name:'统一社会信用代码证复印件',src:require('@/assets/img/goods/营业执照复印件.png'),id:435},
@ -66,6 +66,7 @@ const allGoods = {
409: {name:'现金存款凭证',src:require('@/assets/img/goods/CashCertificate.png'),id:409}, 409: {name:'现金存款凭证',src:require('@/assets/img/goods/CashCertificate.png'),id:409},
487: {name:'现金存款凭证联',src:require('@/assets/img/goods/CashCertificate.png'),id:487}, 487: {name:'现金存款凭证联',src:require('@/assets/img/goods/CashCertificate.png'),id:487},
441: {name:'现金存款凭证回单',src:require('@/assets/img/goods/CashCertificate.png'),id:441}, 441: {name:'现金存款凭证回单',src:require('@/assets/img/goods/CashCertificate.png'),id:441},
440: {name:'现金存款凭证凭证联',src:require('@/assets/img/goods/CashCertificate.png'),id:440},
473: {name:'现金支票本联',src:require('@/assets/img/goods/xjzp.png'),id:473}, 473: {name:'现金支票本联',src:require('@/assets/img/goods/xjzp.png'),id:473},
472: {name:'现金支票存根',src:require('@/assets/img/goods/xjzp.png'),id:472}, 472: {name:'现金支票存根',src:require('@/assets/img/goods/xjzp.png'),id:472},
@ -655,7 +656,7 @@ const myInitState = {
'业务十一': { '业务十一': {
id: 500, id: 500,
name: '公司基本户开立', name: '公司基本户开立',
data: [ 442, 431, 432, 434, 435, 436, 437 ], data: [ 442, 431, 434, 435, 436, 437,443 ],
needs: [ 438, 439 ], // 多了普通空白凭证, 预留印鉴卡 needs: [ 438, 439 ], // 多了普通空白凭证, 预留印鉴卡
isStamp: { isStamp: {
'业务专用章': [ 432, 438 ], '业务专用章': [ 432, 438 ],
@ -1852,7 +1853,7 @@ export default {
'业务十一': { '业务十一': {
id: 500, id: 500,
name: '公司基本户开立', name: '公司基本户开立',
data: [ 442, 431, 432, 434, 435, 436, 437 ], data: [ 442, 431, 434, 435, 436, 437,443 ],
needs: [ 438, 439 ], // 多了普通空白凭证, 预留印鉴卡 needs: [ 438, 439 ], // 多了普通空白凭证, 预留印鉴卡
isStamp: { isStamp: {
'业务专用章': [ 432, 438 ], '业务专用章': [ 432, 438 ],
@ -2763,7 +2764,13 @@ export default {
state.businessSelect[state.businessKey].data.push(482, 481) state.businessSelect[state.businessKey].data.push(482, 481)
judgeDelete = false judgeDelete = false
stampSuccess = '464' stampSuccess = '464'
}else if(id === 411) { }else if(id === 443) {
state.businessSelect[state.businessKey].data.push(432,433)
judgeDelete = false
cb([432, 433])
stampSuccess = '452'
}else if(id === 411) {
// judgeDelete = false // judgeDelete = false
} }
}else if(seal === '付讫章') { }else if(seal === '付讫章') {
@ -2810,7 +2817,7 @@ export default {
judgeDelete = false judgeDelete = false
stampSuccess = '447' stampSuccess = '447'
}else if(id === 409) { }else if(id === 409) {
state.businessSelect[state.businessKey].data.push(487, 441) state.businessSelect[state.businessKey].data.push(440, 441)
judgeDelete = false judgeDelete = false
stampSuccess = '455' stampSuccess = '455'
} }
@ -2884,6 +2891,13 @@ export default {
if(findIt === -1) { if(findIt === -1) {
formList.push({"answerId":stampSuccess, "emptyOne": "", "emptyTwo": "", "operationIds": "285," + state.businessSelect[state.businessKey].id + ",287,8,"+stampSuccess,"type": ""}) formList.push({"answerId":stampSuccess, "emptyOne": "", "emptyTwo": "", "operationIds": "285," + state.businessSelect[state.businessKey].id + ",287,8,"+stampSuccess,"type": ""})
sessionStorage.setItem('stampList', JSON.stringify(formList)) sessionStorage.setItem('stampList', JSON.stringify(formList))
// 业务十一下给开立银行结算账户申请书盖完章后要调3次下面接口,因此这里特殊处理,手动添加两个
if (stampSuccess == 452 && id === 443) {
// formList.push(
// {"answerId":'432', "emptyOne": "", "emptyTwo": "", "operationIds": "285," + state.businessSelect[state.businessKey].id + ",287,8,432","type": ""},
// {"answerId":'433', "emptyOne": "", "emptyTwo": "", "operationIds": "285," + state.businessSelect[state.businessKey].id + ",287,8,433","type": ""}
// )
}
} }
// let formList = [ {"answerId":stampSuccess, "emptyOne": "", "emptyTwo": "", "operationIds": "285," + state.businessSelect[state.businessKey].id + ",287,8,"+stampSuccess,"type": ""} ] // let formList = [ {"answerId":stampSuccess, "emptyOne": "", "emptyTwo": "", "operationIds": "285," + state.businessSelect[state.businessKey].id + ",287,8,"+stampSuccess,"type": ""} ]
let params= { let params= {
@ -2901,8 +2915,8 @@ export default {
} }
// 给开立银行结算账户申请书凭证联盖业务专用章 // 给开立银行结算账户申请书凭证联盖业务专用章
if (sealArr[0] === '业务专用章' && id === 432) { if (sealArr[0] === '业务专用章' && id === 432) {
cb(432) // cb(432)
cb(433) // cb(433)
} }
if(judgeDelete) { if(judgeDelete) {
this.commit('system/pushThingsGoods', [...state.businessSelect[state.businessKey].sealBox]) this.commit('system/pushThingsGoods', [...state.businessSelect[state.businessKey].sealBox])
@ -3029,15 +3043,7 @@ export default {
arr.push(allGoods[item]) arr.push(allGoods[item])
} }
}else if(state.businessKey == '业务十一') { }else if(state.businessKey == '业务十一') {
if (item ==432) { arr.push(allGoods[item])
arr.push({
id: 432,
name: '开户银行结算账户申请书',
src: 'static/img/ApplicationBankSettlement.1e0ce8b4.png'
})
}else {
arr.push(allGoods[item])
}
} else { } else {
arr.push(allGoods[item]) arr.push(allGoods[item])
} }

Loading…
Cancel
Save