|
|
|
@ -40,12 +40,32 @@ |
|
|
|
|
<el-col :span="10" :offset="2"> |
|
|
|
|
<el-form-item label="账户性质"> |
|
|
|
|
<el-select v-model="form.accountQuality" placeholder="请选择" ref="accountQuality"> |
|
|
|
|
<el-option v-for="item in accountQualitySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
<!-- <el-option v-for="item in accountQualitySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
--> |
|
|
|
|
<el-option label="个人结算户" :value="14"> </el-option> |
|
|
|
|
<el-option label="基本户" :value="101"> </el-option> |
|
|
|
|
<el-option label="一般户" :value="102"> </el-option> |
|
|
|
|
<el-option label="专用户" :value="103"> </el-option> |
|
|
|
|
<el-option label="临时户" :value="104"> </el-option> |
|
|
|
|
<!-- 14: '个人结算户', |
|
|
|
|
101: '基本户', |
|
|
|
|
102: '一般户', |
|
|
|
|
103: '专用户', |
|
|
|
|
104: '临时户' --> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="账户类型" prop="accountType"> |
|
|
|
|
<el-select v-model="form.accountType" placeholder="请选择" ref="accountType"> |
|
|
|
|
<el-option v-for="item in accountTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
<!-- 16: '一类户', |
|
|
|
|
17: '二类户', |
|
|
|
|
97: '结算户', |
|
|
|
|
98: '结算户', |
|
|
|
|
99: '委托保障金户', |
|
|
|
|
100: '资本临时户' --> |
|
|
|
|
<el-option label="一类户" :value="16"> </el-option> |
|
|
|
|
<el-option label="二类户" :value="17"> </el-option> |
|
|
|
|
<el-option label="结算户" :value="97"> </el-option> |
|
|
|
|
<el-option label="委托保障金户" :value="100"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="支取方式" prop="drawWay"> |
|
|
|
@ -58,7 +78,11 @@ |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="凭证类型" prop="voucherType"> |
|
|
|
|
<el-select v-model="form.voucherType" placeholder="请选择" ref="voucherType"> |
|
|
|
|
<el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
<el-option label="IC卡" :value="15"> </el-option> |
|
|
|
|
<el-option label="转账支票" :value="115"> </el-option> |
|
|
|
|
<el-option label="现金支票" :value="116"> </el-option> |
|
|
|
|
<el-option label="存单" :value="123"> </el-option> |
|
|
|
|
<el-option label="银行" :value="127"> </el-option> |
|
|
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
@ -89,13 +113,20 @@ |
|
|
|
|
<el-form ref="form2" :model="form" label-width="120px"> |
|
|
|
|
<el-col :span="10" :offset="2"> |
|
|
|
|
<el-form-item label="账户性质"> |
|
|
|
|
<el-select v-model="form.accountQualitysTwo" placeholder="请选择" disabled> |
|
|
|
|
<el-option v-for="item in accountQualitySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
<el-select v-model="form.accountQualitysTwo" placeholder="请选择"> |
|
|
|
|
<el-option label="个人结算户" :value="14"> </el-option> |
|
|
|
|
<el-option label="基本户" :value="101"> </el-option> |
|
|
|
|
<el-option label="一般户" :value="102"> </el-option> |
|
|
|
|
<el-option label="专用户" :value="103"> </el-option> |
|
|
|
|
<el-option label="临时户" :value="104"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="账户类型" required> |
|
|
|
|
<el-select v-model="form.accountTypesTwo" placeholder="请选择"> |
|
|
|
|
<el-option v-for="item in accountTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
<el-option label="一类户" :value="16"> </el-option> |
|
|
|
|
<el-option label="二类户" :value="17"> </el-option> |
|
|
|
|
<el-option label="结算户" :value="97"> </el-option> |
|
|
|
|
<el-option label="委托保障金户" :value="100"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="支取方式" required> |
|
|
|
@ -108,8 +139,13 @@ |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="凭证类型" required> |
|
|
|
|
<el-select v-model="form.voucherTypesTwo" placeholder="请选择" disabled> |
|
|
|
|
<el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
<el-select v-model="form.voucherTypesTwo" placeholder="请选择"> |
|
|
|
|
<el-option label="IC卡" :value="15"> </el-option> |
|
|
|
|
<el-option label="转账支票" :value="115"> </el-option> |
|
|
|
|
<el-option label="现金支票" :value="116"> </el-option> |
|
|
|
|
<el-option label="存单" :value="123"> </el-option> |
|
|
|
|
<el-option label="银行" :value="127"> </el-option> |
|
|
|
|
<!-- <el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> --> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="凭证号码" required> |
|
|
|
@ -138,13 +174,20 @@ |
|
|
|
|
<el-form ref="form3" :model="form" label-width="120px"> |
|
|
|
|
<el-col :span="10" :offset="2"> |
|
|
|
|
<el-form-item label="账户性质"> |
|
|
|
|
<el-select v-model="form.accountQualitysThree" placeholder="请选择" disabled> |
|
|
|
|
<el-option v-for="item in accountQualitySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
<el-select v-model="form.accountQualitysThree" placeholder="请选择"> |
|
|
|
|
<el-option label="个人结算户" :value="14"> </el-option> |
|
|
|
|
<el-option label="基本户" :value="101"> </el-option> |
|
|
|
|
<el-option label="一般户" :value="102"> </el-option> |
|
|
|
|
<el-option label="专用户" :value="103"> </el-option> |
|
|
|
|
<el-option label="临时户" :value="104"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="账户类型" required> |
|
|
|
|
<el-select v-model="form.accountTypesThree" placeholder="请选择"> |
|
|
|
|
<el-option v-for="item in accountTypeSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
<el-option label="一类户" :value="16"> </el-option> |
|
|
|
|
<el-option label="二类户" :value="17"> </el-option> |
|
|
|
|
<el-option label="结算户" :value="97"> </el-option> |
|
|
|
|
<el-option label="委托保障金户" :value="100"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="支取方式" required> |
|
|
|
@ -157,8 +200,12 @@ |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="凭证类型" required> |
|
|
|
|
<el-select v-model="form.voucherTypesThree" placeholder="请选择" disabled> |
|
|
|
|
<el-option v-for="item in voucherTypeSelectList" :label="item.options" :value="item.options" :key="item.itemId"> </el-option> |
|
|
|
|
<el-select v-model="form.voucherTypesThree" placeholder="请选择"> |
|
|
|
|
<el-option label="IC卡" :value="15"> </el-option> |
|
|
|
|
<el-option label="转账支票" :value="115"> </el-option> |
|
|
|
|
<el-option label="现金支票" :value="116"> </el-option> |
|
|
|
|
<el-option label="存单" :value="123"> </el-option> |
|
|
|
|
<el-option label="银行" :value="127"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="凭证号码" required> |
|
|
|
@ -187,26 +234,6 @@ |
|
|
|
|
<el-button @click="formSubmit" type="primary" class="submitBtn" v-throttle>提交</el-button> |
|
|
|
|
</div> |
|
|
|
|
<my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="popSure" :needAuth="false" /> |
|
|
|
|
<!-- <el-dialog |
|
|
|
|
style="margin-top:10vh" |
|
|
|
|
:visible.sync="visible" |
|
|
|
|
:modal="false" |
|
|
|
|
width="40%" |
|
|
|
|
:close-on-click-modal="false" |
|
|
|
|
:show-close="false" |
|
|
|
|
custom-class="data-dia" |
|
|
|
|
> |
|
|
|
|
<div slot="title" class="dia-header"> |
|
|
|
|
<div class="data-title">提交</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="popBody"> |
|
|
|
|
<h2>提交后将不可更改,您确认提交吗?</h2> |
|
|
|
|
</div> |
|
|
|
|
<div class="popBtns"> |
|
|
|
|
<el-button class="close btn" @click="visible = false">取 消</el-button> |
|
|
|
|
<el-button class="sure btn" type="primary" @click="popSure">确 定</el-button> |
|
|
|
|
</div> |
|
|
|
|
</el-dialog> --> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> --> |
|
|
|
@ -218,16 +245,19 @@ import { vercustomer } from '@/utils/verify.js' |
|
|
|
|
import { myValidate, checkName, checkHanzi, inputListen } from '@/utils/utilFunction.js' |
|
|
|
|
import NeedBefore from '@/components/needBefore' |
|
|
|
|
import MyDialog from '@/components/dialog' |
|
|
|
|
import TipsBefore from '@/mixins/tipsBefore' |
|
|
|
|
|
|
|
|
|
const moduleName = 'currentAccount/openAccount' |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
data(){ |
|
|
|
|
return{ |
|
|
|
|
moduleName: 'currentAccount/openAccount', |
|
|
|
|
|
|
|
|
|
passwordTag: '', |
|
|
|
|
cardNumberTag: '', |
|
|
|
|
|
|
|
|
|
unNeed: false, |
|
|
|
|
isNeedBefore: '', |
|
|
|
|
needBefore: '', |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cardNumberJudge: false, |
|
|
|
|
cardNumberJudge2: false, |
|
|
|
@ -350,13 +380,33 @@ export default { |
|
|
|
|
num:0, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mixins: [ TipsBefore ], |
|
|
|
|
components: { |
|
|
|
|
NeedBefore, |
|
|
|
|
MyDialog |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
if(this.inMyWork(moduleName)) { |
|
|
|
|
if(this.needsModule(moduleName) === '') { |
|
|
|
|
// mixins函数判定,如果不需要则不执行初始化代码 |
|
|
|
|
|
|
|
|
|
if(sessionStorage.getItem('openAccountCount')) { |
|
|
|
|
this.count = parseInt(sessionStorage.getItem('openAccountCount')) |
|
|
|
|
if(this.count === 1) { |
|
|
|
|
this.formTwo = true |
|
|
|
|
}else if(this.count === 2) { |
|
|
|
|
this.formTwo = true |
|
|
|
|
this.formThree = true |
|
|
|
|
} |
|
|
|
|
// this.formThree = true |
|
|
|
|
// this.openAccount() |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(this.isNeedBefore) { |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
console.log('s..asdasd') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { peopleNumber, userName } = this.dataFlow |
|
|
|
|
this.form.userNumber = peopleNumber |
|
|
|
|
this.form.userName = userName |
|
|
|
@ -376,6 +426,7 @@ export default { |
|
|
|
|
this.cardNumberJudge3 = true |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 无缓存的话密码出不来 |
|
|
|
|
if(sessionStorage.getItem('accountPassword')) { |
|
|
|
|
this.form.drawPassword = sessionStorage.getItem('accountPassword') |
|
|
|
@ -389,14 +440,22 @@ export default { |
|
|
|
|
|
|
|
|
|
this.getOptionsList() |
|
|
|
|
|
|
|
|
|
}else { |
|
|
|
|
this.isNeedBefore = true |
|
|
|
|
this.needBefore = this.needsModule(moduleName) |
|
|
|
|
} |
|
|
|
|
}else { |
|
|
|
|
this.isNeedBefore = true |
|
|
|
|
this.unNeed = true |
|
|
|
|
} |
|
|
|
|
// this.getOptionsList() |
|
|
|
|
// 这个顺序不能错!要拿到itemid |
|
|
|
|
// this.$nextTick(() => { |
|
|
|
|
// if(sessionStorage.getItem('openAccountCount')) { |
|
|
|
|
// this.count = sessionStorage.getItem('openAccountCount') |
|
|
|
|
// if(this.count === 1) { |
|
|
|
|
// this.formTwo = true |
|
|
|
|
// }else { |
|
|
|
|
// this.formThree = true |
|
|
|
|
// } |
|
|
|
|
// // this.formThree = true |
|
|
|
|
// // this.openAccount() |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
mounted(){ |
|
|
|
|
// currencySelectList:[ |
|
|
|
@ -415,6 +474,10 @@ export default { |
|
|
|
|
setDataFlow: 'system/setDataFlow', |
|
|
|
|
setPopId: 'system/setPopId' |
|
|
|
|
}), |
|
|
|
|
initData() { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
getOptionsList(){ |
|
|
|
|
for(var i=8;i<14;i++){ |
|
|
|
|
this.getSubjectInfoData(i) |
|
|
|
@ -559,8 +622,6 @@ export default { |
|
|
|
|
}else if (item == '13'){ |
|
|
|
|
this.drawWaySelectList = data.data.items; |
|
|
|
|
this.form.drawWay = this.drawWaySelectList[0].itemId |
|
|
|
|
console.log('---drawWaySelectList') |
|
|
|
|
console.log(this.drawWaySelectList) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}).catch((error)=>{ |
|
|
|
@ -575,23 +636,33 @@ export default { |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
openAccount(){ |
|
|
|
|
// if(sessionStorage.getItem('openAccountCount')) { |
|
|
|
|
// this.count = sessionStorage.getItem('openAccountCount') |
|
|
|
|
// } |
|
|
|
|
this.count = this.count+1; |
|
|
|
|
sessionStorage.setItem('openAccountCount', this.count) |
|
|
|
|
if (this.count > 2){ |
|
|
|
|
this.count = 2 |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'error', |
|
|
|
|
message: '最多只能添加三个!' |
|
|
|
|
message: '最多只能添加三个!', |
|
|
|
|
center: true |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
if(this.count == 1 || this.count == 2){ |
|
|
|
|
this.formTwo = true |
|
|
|
|
this.form.accountQualitysTwo = this.accountQualitySelectList[0].itemId |
|
|
|
|
this.form.voucherTypesTwo = this.voucherTypeSelectList[0].itemId |
|
|
|
|
// this.form.accountQualitysTwo = this.accountQualitySelectList[0].itemId |
|
|
|
|
this.form.accountQualitysTwo = 14 |
|
|
|
|
// this.form.voucherTypesTwo = this.voucherTypeSelectList[0].itemId |
|
|
|
|
this.form.voucherTypesTwo = 15 |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
if (this.count == 2){ |
|
|
|
|
this.formThree = true |
|
|
|
|
this.form.accountQualitysThree = this.accountQualitySelectList[0].itemId |
|
|
|
|
this.form.voucherTypesThree = this.voucherTypeSelectList[0].itemId |
|
|
|
|
// this.form.accountQualitysThree = this.accountQualitySelectList[0].itemId |
|
|
|
|
this.form.accountQualitysThree = 14 |
|
|
|
|
// this.form.voucherTypesThree = this.voucherTypeSelectList[0].itemId |
|
|
|
|
this.form.voucherTypesThree = 15 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//点击提交表单 |
|
|
|
@ -675,6 +746,11 @@ export default { |
|
|
|
|
addOperation(param).then((data)=>{ |
|
|
|
|
|
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '服务器繁忙哦,提交失败。', |
|
|
|
|
center: true, |
|
|
|
|
type: 'info' |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
formList.push( |
|
|
|
|
{"answerId":'77',"emptyOne": "17", "emptyTwo": drawPassword, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,26,57,62,77", "type": "3"},//支取密码 |
|
|
|
@ -730,6 +806,11 @@ export default { |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '服务器繁忙哦,提交失败。', |
|
|
|
|
center: true, |
|
|
|
|
type: 'info' |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
deleteSecond(){ |
|
|
|
@ -739,6 +820,7 @@ export default { |
|
|
|
|
type: 'warning' |
|
|
|
|
}).then(() => { |
|
|
|
|
this.count = this.count-1; |
|
|
|
|
sessionStorage.setItem('openAccountCount', this.count) |
|
|
|
|
if (this.count < 1){this.count = 0} |
|
|
|
|
if (this.count == 0){this.formTwo = false} |
|
|
|
|
if (this.count == 1){this.formThree = false} |
|
|
|
@ -820,7 +902,13 @@ export default { |
|
|
|
|
idCardNumber: 'system/idCardNumber', |
|
|
|
|
inMyWork: 'system/inMyWork' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
|
count(newVal) { |
|
|
|
|
console.log(newVal) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|