更改实训项目无内容的话提交按钮不可点击

20240205
e 3 years ago
parent a7121e1385
commit 8e3a63dd4f
  1. 197
      package-lock.json
  2. 2
      src/components/case/index.vue
  3. 2
      src/pages/counter/list/index.vue
  4. 7
      src/pages/manage/index/index.vue
  5. 186
      src/pages/manage/list/client/corporateClient.vue
  6. 22
      src/pages/manage/list/personal/callDeposits/accountClosed.vue
  7. 13
      src/pages/manage/list/personal/callDeposits/callDeposits.vue
  8. 12
      src/pages/manage/list/personal/callDeposits/openAccount.vue
  9. 11
      src/pages/manage/list/personal/currentAccount/index.vue
  10. 15
      src/pages/manage/list/personal/timeDeposit/timeDeposit.vue
  11. 13
      src/pages/manage/list/personal/usefulPhrases/usefulPhrases.vue
  12. 18
      src/store/modules/system.js

197
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -36,7 +36,7 @@
@click="reload" :disabled="popContainer && (assessmentId!='' && assessmentId!='null' && assessmentId!=null)"> @click="reload" :disabled="popContainer && (assessmentId!='' && assessmentId!='null' && assessmentId!=null)">
重新开始 重新开始
</el-button> </el-button>
<el-button class="submit-btn" style="margin-right:7px" @click="Submit()" :disabled="popContainer">提交</el-button> <el-button class="submit-btn" style="margin-right:7px" @click="Submit()" :disabled="popContainer || requires.length == 0">提交</el-button>
</div> </div>
</div> </div>
</el-header> </el-header>

@ -1399,7 +1399,7 @@ export default {
sessionStorage.setItem('nomClientIdentity', JSON.stringify(this.receptionList)) sessionStorage.setItem('nomClientIdentity', JSON.stringify(this.receptionList))
} }
console.log(sessionStorage.getItem('nomClientIdentity')) console.log(sessionStorage.getItem('nomClientIdentity'))
}else if (this.$store.state.system.id == '34'){ }else if (this.$store.state.system.id == '34' && this.popText === '身份证扫描仪' ){
this.nbm = 34 this.nbm = 34
// this.goodsShelfTotalData = this.auditGoodsShelf // this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){ if (this.receptionList.length >0){

@ -47,10 +47,13 @@ export default {
} }
}, },
created() { created() {
if(sessionStorage.getItem('computerPath')) {
this.$router.push(sessionStorage.getItem('computerPath'))
}
}, },
methods: { methods: {
close(){ close(){
sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
handleFullscreen(){ handleFullscreen(){
@ -61,7 +64,7 @@ export default {
this.fullscreen = false this.fullscreen = false
this.$store.commit('system/changeFullscreen',false) this.$store.commit('system/changeFullscreen',false)
}, },
} },
}; };
</script> </script>

@ -18,9 +18,12 @@
<el-input v-model="form.registeredCapital" ref="registeredCapital"></el-input> <el-input v-model="form.registeredCapital" ref="registeredCapital"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="法人证件号码" required> <el-form-item label="法人证件号码" required>
<div class="idCard" @click="popUp"> <div class="idCard" @click="popUp1('身份证扫描仪')" v-if='!form.idNumberJudge'>
<p>请刷身份证</p> <p>请刷身份证</p>
</div> </div>
<div v-else>
<el-input :value="form.idNumber" disabled ref="idNumber"></el-input>
</div>
</el-form-item> </el-form-item>
<el-form-item label="联系电话" :rules="rules.phone" prop="phone"> <el-form-item label="联系电话" :rules="rules.phone" prop="phone">
<el-input :value="form.phone" @input="(val) => phoneListen(val, form, 'phone')" maxlength="12" ref='phone'></el-input> <el-input :value="form.phone" @input="(val) => phoneListen(val, form, 'phone')" maxlength="12" ref='phone'></el-input>
@ -47,40 +50,7 @@
<el-button @click="submitForm" type="primary" class="submitBtn">提交</el-button> <el-button @click="submitForm" type="primary" class="submitBtn">提交</el-button>
</div> </div>
<my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" />
<!-- <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" @click="success = true">提交</div>
</div>
<div class="popBody" v-if="!authorization&&!success">
<h2>本业务需要授权</h2>
</div>
<div class="popBody" v-if="authorization&&!success">
<el-form ref="form2" :model="disForm" label-width="80px">
<el-form-item label="授权柜员">
<el-input disabled v-model="disForm.name"></el-input>
</el-form-item>
<el-form-item label="授权柜员">
<el-input type="password" disabled v-model="disForm.pass"></el-input>
</el-form-item>
</el-form>
</div>
<div class="popBody" v-if="success">
<h2>完成表单form</h2>
</div>
<div class="popBtns">
<el-button class="close btn" @click="[visible = false,authorization=false,success=false]"> </el-button>
<el-button class="sure btn" type="primary" @click="popSure"> </el-button>
</div>
</el-dialog> -->
</div> </div>
<need-before v-else :moduleName='needBefore' :unNeed="unNeed" class="wrap" /> <need-before v-else :moduleName='needBefore' :unNeed="unNeed" class="wrap" />
@ -93,24 +63,27 @@ import { addOperation, getOperation } from '@/api/http';
import { phoneListen, checkRequired, myValidate, checkHanzi, checkName } from '@/utils/utilFunction.js' import { phoneListen, checkRequired, myValidate, checkHanzi, checkName } from '@/utils/utilFunction.js'
import MyTitle from '@/components/myTitle' import MyTitle from '@/components/myTitle'
import NeedBefore from '@/components/needBefore' import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialog'
const moduleName = 'corporateClient' const moduleName = 'corporateClient'
export default { export default {
name: 'index', name: 'index',
components: { components: {
MyTitle, MyTitle,
NeedBefore NeedBefore,
MyDialog
}, },
data() { data() {
return { return {
unNeed: false, unNeed: false,
isNeedBefore: '', isNeedBefore: '',
needBefore: '', needBefore: '',
idNumberJudge: false,
visible:false,// visible:false,//
authorization:false,// authorization:false,//
success:false,// success:false,//
form:{ form:{
idNumber: '',
name: '', name: '',
phone: '', phone: '',
documentType: '', documentType: '',
@ -120,6 +93,17 @@ export default {
companyAddress: '', companyAddress: '',
certificateType: '' certificateType: ''
}, },
formName:{
idNumber: '法人证件号码',
name: '法人姓名',
phone: '联系电话',
documentType: '证件类型',
companyName: '公司名称',
registeredCapital: '注册资本',
codeNumber: '代码证号',
companyAddress: '公司地址',
certificateType: '法人证件类型'
},
rules: { rules: {
companyName: [ companyName: [
{ {
@ -158,7 +142,10 @@ export default {
// firmClientIdentity // firmClientIdentity
if(this.inMyWork(moduleName)) { if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') { if(this.needsModule(moduleName) === '') {
this.getFormData()
}else {
this.isNeedBefore = true
this.needBefore = this.needsModule(moduleName)
} }
}else { }else {
this.isNeedBefore = true this.isNeedBefore = true
@ -178,21 +165,29 @@ export default {
var list = data.data.judgmentRuleReqs var list = data.data.judgmentRuleReqs
for (var i = 0; i < list.length; i++) { for (var i = 0; i < list.length; i++) {
if (list[i].answerId == '48') {this.form.documentType = list[i].emptyTwo} // if (list[i].answerId == '48') {this.form.documentType = list[i].emptyTwo} //
if (list[i].answerId == '49') {this.form.codeNumber = list[i].emptyTwo} // else if (list[i].answerId == '49') {this.form.codeNumber = list[i].emptyTwo} //
if (list[i].answerId == '50') {this.form.companyName = list[i].emptyTwo} // else if (list[i].answerId == '50') {this.form.companyName = list[i].emptyTwo} //
if (list[i].answerId == '51') {this.form.companyAddress = list[i].emptyTwo} // else if (list[i].answerId == '51') {this.form.companyAddress = list[i].emptyTwo} //
if (list[i].answerId == '52') {this.form.registeredCapital = list[i].emptyTwo} // else if (list[i].answerId == '52') {this.form.registeredCapital = list[i].emptyTwo} //
if (list[i].answerId == '53') {this.form.certificateType = list[i].emptyTwo} // else if (list[i].answerId == '53') {this.form.certificateType = list[i].emptyTwo} //
if (list[i].answerId == '54') {sessionStorage.setItem('firmClientIdentity', list[i].emptyTwo)} // // else if (list[i].answerId == '54') {sessionStorage.setItem('firmClientIdentity', list[i].emptyTwo)} //
if (list[i].answerId == '55') {this.form.name = list[i].emptyTwo} // else if (list[i].answerId == '54') {
if (list[i].answerId == '56') {this.form.phone = list[i].emptyTwo} // 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)=>{ }).catch((error)=>{
}) })
}, },
...mapMutations({ ...mapMutations({
changeShowGoods: 'system/changeShowGoods' changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule'
}), }),
popUp(){// popUp(){//
this.$store.commit('system/changePop',{show:true,text:'身份证扫描仪',id:'34'}) this.$store.commit('system/changePop',{show:true,text:'身份证扫描仪',id:'34'})
@ -201,56 +196,63 @@ export default {
}, },
submitForm() { submitForm() {
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// //
this.visible = true; this.visible = true;
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": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,54","type": ""})//
}
if(this.form.documentType){
formList.push({ "answerId":'48', "emptyOne": "19", "emptyTwo": this.form.documentType, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,48","type": "1"})//
}
if(this.form.companyAddress){
formList.push({ "answerId":'51', "emptyOne": "22", "emptyTwo": this.form.companyAddress, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,51", "type": "3" })//
}
if(this.form.registeredCapital){
formList.push({ "answerId":'52', "emptyOne": "23", "emptyTwo": this.form.registeredCapital, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,52", "type": "3" })//
}
if(this.form.name){
formList.push( {"answerId":'55',"emptyOne": "25", "emptyTwo": this.form.name, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,55", "type": "3"})//
}
if(this.form.phone){
formList.push({"answerId":'56',"emptyOne": "5", "emptyTwo": this.form.phone, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,56", "type": "3"})//
}
formList.push(
{ "answerId":'49', "emptyOne": "20", "emptyTwo": this.form.codeNumber, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,49", "type": "3" },//
{ "answerId":'50', "emptyOne": "21", "emptyTwo": this.form.companyName, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,50", "type": "3" },//
{"answerId":'53',"emptyOne": "24", "emptyTwo": this.form.certificateType, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,53", "type": "1"},//
);
let params= {
parentId:this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + '285,287,5,25,34',
lcJudgmentRuleReq:formList,
projectId:+projectId,
startTime:startTime,
}
addOperation(params).then((data)=>{
// this.$message({
// message: '',
// type: 'success'
// });
}).catch((error)=>{
})
}else {
this.$message.error('有必填项未填哦~');
}
}, this.$refs)); }, 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": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,54","type": ""})//
// }
formList.push({"answerId":54,"emptyOne": "", "emptyTwo": this.form.idNumber, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,54","type": ""})//
if(this.form.documentType){
formList.push({ "answerId":'48', "emptyOne": "19", "emptyTwo": this.form.documentType, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,48","type": "1"})//
}
if(this.form.companyAddress){
formList.push({ "answerId":'51', "emptyOne": "22", "emptyTwo": this.form.companyAddress, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,51", "type": "3" })//
}
if(this.form.registeredCapital){
formList.push({ "answerId":'52', "emptyOne": "23", "emptyTwo": this.form.registeredCapital, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,52", "type": "3" })//
}
if(this.form.name){
formList.push( {"answerId":'55',"emptyOne": "25", "emptyTwo": this.form.name, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,55", "type": "3"})//
}
if(this.form.phone){
formList.push({"answerId":'56',"emptyOne": "5", "emptyTwo": this.form.phone, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,56", "type": "3"})//
}
formList.push(
{ "answerId":'49', "emptyOne": "20", "emptyTwo": this.form.codeNumber, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,49", "type": "3" },//
{ "answerId":'50', "emptyOne": "21", "emptyTwo": this.form.companyName, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,50", "type": "3" },//
{"answerId":'53',"emptyOne": "24", "emptyTwo": this.form.certificateType, "operationIds": this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + "285,287,5,25,34,53", "type": "1"},//
);
let params= {
parentId:this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',' + '285,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)
}).catch((error)=>{
})
}else {
this.$message.error('有必填项未填哦~');
}
},
phoneListen: phoneListen, phoneListen: phoneListen,
checkHanzi: checkHanzi, checkHanzi: checkHanzi,
checkName: checkName checkName: checkName

@ -204,16 +204,10 @@ export default{
] ]
}, },
myTable: { myTable: {
// clientName: '', // 302: {
// currencyMark: '', // prop: 'voucherNumber',
// depositNumber: '', // prop: '3'
// capital: '', // },
// interestRate: '', //
// depositDate: '', //
// interest: '', //
// totalMoney: '', //
// certificateType: '', //
// breathDate: '', //
303: { 303: {
prop: 'voucherType', prop: 'voucherType',
type: '1', type: '1',
@ -280,6 +274,14 @@ export default{
prop: 'certificateType',// prop: 'certificateType',//
type: '1', type: '1',
"subjectId": 19, "subjectId": 19,
},
392: {
prop: 'idNumber',
type: '3'
},
394: {
prop: 'drawPassword',
type: '3'
} }
}, },
myTable2: { myTable2: {

@ -53,6 +53,7 @@ export default {
data() { data() {
return { return {
text:'',/* 顶部文字 */ text:'',/* 顶部文字 */
cacheVal: '',
textObj:{ textObj:{
'1':'开户', '1':'开户',
'2':'支取销户', '2':'支取销户',
@ -68,15 +69,21 @@ export default {
} }
}, },
created() { created() {
this.handleSelect('1') if(sessionStorage.getItem('callDepositsIndex')) {
this.handleSelect(sessionStorage.getItem('callDepositsIndex'))
}else {
this.handleSelect('1')
}
}, },
methods: { methods: {
handleSelect(val){ handleSelect(val){
this.text = this.textObj[val] this.text = this.textObj[val]
this.activeIndex = val this.activeIndex = val
this.cacheVal = val
}, },
},
destroyed() {
sessionStorage.setItem('callDepositsIndex', this.cacheVal)
} }
}; };
</script> </script>

@ -192,6 +192,14 @@ export default{
}, },
myTable2: { myTable2: {
291: {
prop: 'idNumber',//
type: '3',
},
297: {
prop: 'voucherNumber', //
type: '3'
},
293: { 293: {
prop: 'customerName',// prop: 'customerName',//
type: '3', type: '3',
@ -227,6 +235,10 @@ export default{
type: '1', type: '1',
"subjectId": 48, "subjectId": 48,
}, },
301: {
prop: 'drawPassword',
type: '3'
},
// : { // : {
// prop: 'noticeType',// // prop: 'noticeType',//
// type: '1' // type: '1'

@ -82,6 +82,7 @@ export default {
text:'',/* 顶部文字 */ text:'',/* 顶部文字 */
// //
depositFinish: false, depositFinish: false,
cacheVal: '',
textObj:{ textObj:{
'1':'开户', '1':'开户',
'2':'存款', '2':'存款',
@ -105,16 +106,20 @@ export default {
} }
}, },
created() { created() {
this.handleSelect('1') if(sessionStorage.getItem('currentAccountIndex')) {
this.handleSelect(sessionStorage.getItem('currentAccountIndex'))
}else {
this.handleSelect('1')
}
}, },
destroyed() { destroyed() {
// sessionStorage.setItem('currentAccountIndex', ) sessionStorage.setItem('currentAccountIndex', this.cacheVal)
}, },
methods: { methods: {
handleSelect(val){ handleSelect(val){
console.log(typeof(val),this.activeIndex,'xuanze');
this.text = this.textObj[val] this.text = this.textObj[val]
this.activeIndex = val this.activeIndex = val
this.cacheVal = val
}, },
setDepositFinish() { setDepositFinish() {
this.depositFinish = true; this.depositFinish = true;

@ -65,6 +65,7 @@ export default {
data() { data() {
return { return {
text:'',/* 顶部文字 */ text:'',/* 顶部文字 */
cacheVal: '',
textObj:{ textObj:{
'1':'开户', '1':'开户',
'2':'存款', '2':'存款',
@ -82,17 +83,21 @@ export default {
} }
}, },
created() { created() {
this.handleSelect('1') if(sessionStorage.getItem('timeDepositIndex')) {
this.handleSelect(sessionStorage.getItem('timeDepositIndex'))
}else {
this.handleSelect('1')
}
}, },
methods: { methods: {
handleSelect(val){ handleSelect(val){
console.log(typeof(val),this.activeIndex,'xuanze');
this.text = this.textObj[val] this.text = this.textObj[val]
this.activeIndex = val this.activeIndex = val
this.cacheVal = val
}, },
},
destroyed() {
sessionStorage.setItem('timeDepositIndex', this.cacheVal)
} }
}; };
</script> </script>

@ -64,6 +64,7 @@ export default {
data() { data() {
return { return {
text:'',/* 顶部文字 */ text:'',/* 顶部文字 */
cacheVal: '',
textObj:{ textObj:{
'1':'开户', '1':'开户',
'2':'续存', '2':'续存',
@ -81,15 +82,21 @@ export default {
} }
}, },
created() { created() {
this.handleSelect('1') if(sessionStorage.getItem('usefulPhrasesIndex')) {
this.handleSelect(sessionStorage.getItem('usefulPhrasesIndex'))
}else {
this.handleSelect('1')
}
}, },
methods: { methods: {
handleSelect(val){ handleSelect(val){
this.text = this.textObj[val] this.text = this.textObj[val]
this.activeIndex = val this.activeIndex = val
this.cacheVal = val
}, },
},
destroyed() {
sessionStorage.setItem('usefulPhrasesIndex', this.cacheVal)
} }
}; };
</script> </script>

@ -1144,6 +1144,24 @@ export default {
importanceArr: [], // 重要空白凭证箱 importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱 commonArr: [], // 普通凭证箱
needsModule: {
'corporateClient': false
},
dataFlow: {
// 凭证类型(存单)、客户号(根据案例展示)、客户姓名、币种(CNY人民币)、钞汇标识(钞户)、通知类型(根据案例展示)、定存编号(根据开户时的定存编号展示)、本金(开户时存的金额)、利息(2.8)、、总金额(利息+本金)、支取类别(现金)、支取金额(等于总金额)证件类型(身份证)
// 身份证号码、客户号(根据案例展示)、客户姓名、币种(人民币)、钞汇标识(钞户)
// depositNumber: '0816',
// capital: 100,
// interestRate: 1.85,
// depositTerm: '1年',
// interest: 1.6,
// totalMoney: 101.6,
// signDate: '2001-03-01',
// voucherNumber
}
}, },
'项目十二': { '项目十二': {
id: '', id: '',

Loading…
Cancel
Save