|
|
|
@ -12,10 +12,10 @@ const allGoods = { |
|
|
|
|
428: {name:'定期存单',src:require('@/assets/img/goods/储蓄存单.png'),id:428}, |
|
|
|
|
439: {name:'预留印鉴卡',src:require('@/assets/img/goods/预留印鉴卡.png'),id:439}, |
|
|
|
|
412: {name:'转账支票',src:require('@/assets/img/goods/sy-zzzp.png'),id:412}, |
|
|
|
|
30: {name:'银行承兑汇票',src:require('@/assets/img/goods/银行承兑汇票.png'),id:30}, |
|
|
|
|
584: {name:'银行承兑汇票',src:require('@/assets/img/goods/银行承兑汇票.png'),id:584}, |
|
|
|
|
582: {name:'银行承兑汇票一联',src:require('@/assets/img/goods/银行承兑汇票.png'),id:582}, |
|
|
|
|
581: {name:'银行承兑汇票二联',src:require('@/assets/img/goods/银行承兑汇票.png'),id:581}, |
|
|
|
|
580: {name:'银行承兑汇票三联',src:require('@/assets/img/goods/银行承兑汇票.png'),id:580}, |
|
|
|
|
580: {name:'银行承兑汇票三联(解讫通知)',src:require('@/assets/img/goods/银行承兑汇票.png'),id:580}, |
|
|
|
|
583: {name:'银行承兑汇票四联',src:require('@/assets/img/goods/银行承兑汇票.png'),id:583}, |
|
|
|
|
411: {name:'现金支票',src:require('@/assets/img/goods/xjzp.png'),id:411}, |
|
|
|
|
425: {name:'取款凭条',src:require('@/assets/img/goods/qkpt.png'),id:425}, |
|
|
|
@ -137,7 +137,7 @@ const sex = 2 // 1为男,2为女。 |
|
|
|
|
const allDataFlow = { |
|
|
|
|
peopleNumber, |
|
|
|
|
userName, |
|
|
|
|
idType: 83, |
|
|
|
|
idType: '83', |
|
|
|
|
idNumber,//证件号码
|
|
|
|
|
sex,//性别 1为男,
|
|
|
|
|
birthday,//出生日期
|
|
|
|
@ -179,6 +179,7 @@ const allDataFlow = { |
|
|
|
|
// 票据号码
|
|
|
|
|
ticketNumber: '00242986', |
|
|
|
|
'corporateClient': false, |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 因为vuex中的数据是缓存在sessionStorage中的,所以重新开始业务需要刷新所有的业务,所以一刷新我们就将这个初始状态替换到vuex中去。
|
|
|
|
@ -267,7 +268,7 @@ const myInitState = { |
|
|
|
|
dataFlow: { |
|
|
|
|
peopleNumber, |
|
|
|
|
userName,//用户名字
|
|
|
|
|
idType: 83, |
|
|
|
|
idType: '83', |
|
|
|
|
idNumber,//证件号码
|
|
|
|
|
sex,//性别
|
|
|
|
|
birthday,//出生日期
|
|
|
|
@ -370,6 +371,9 @@ const myInitState = { |
|
|
|
|
capital, // 不知道是多少
|
|
|
|
|
withdrawType: 124, // 支取类别
|
|
|
|
|
withdrawWay: 125, // 支取方式
|
|
|
|
|
transMoney: 8000, |
|
|
|
|
oldDepositNumber: '568812090', |
|
|
|
|
newDepositNumber: '568812136', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
'业务五': { |
|
|
|
@ -413,7 +417,8 @@ const myInitState = { |
|
|
|
|
capital, // 不知道是多少
|
|
|
|
|
withdrawType: 124, // 支取类别
|
|
|
|
|
withdrawWay: 126, // 支取方式
|
|
|
|
|
|
|
|
|
|
oldDepositNumber: '568812136', |
|
|
|
|
newDepositNumber: '568812136', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
'业务六': { |
|
|
|
@ -726,7 +731,8 @@ const myInitState = { |
|
|
|
|
'business/deposit': false |
|
|
|
|
}, |
|
|
|
|
dataFlow: { |
|
|
|
|
transMoney: 800000 |
|
|
|
|
transMoney: 800000, |
|
|
|
|
interestRate: 0.00 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
'业务十三': { // 公司现金支票取款
|
|
|
|
@ -1335,7 +1341,9 @@ const myInitState = { |
|
|
|
|
collectingCompany: '开卷教育有限公司', |
|
|
|
|
transMoney: 200000, |
|
|
|
|
assignDate: '2022-12-29', |
|
|
|
|
ticketNumber: '00242966' |
|
|
|
|
ticketNumber: '00242966', |
|
|
|
|
drawDate: '2022-06-30', // 出票日期
|
|
|
|
|
expireDate: '2022-12-29', // 到期日期
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 577, 银行承兑汇票签发
|
|
|
|
@ -1372,7 +1380,12 @@ export default { |
|
|
|
|
voucherTypeSelectList: [], |
|
|
|
|
accountTypeSelectList: [], |
|
|
|
|
chargeWayList: [], |
|
|
|
|
idTypeList: [] // 身份证选项
|
|
|
|
|
billTypeSelect: [], |
|
|
|
|
isTranslate: [], // 是否转让
|
|
|
|
|
idTypeList: [], // 身份证选项
|
|
|
|
|
accountManagementList: [], |
|
|
|
|
outAccountWayList: [], |
|
|
|
|
calculateWayList: [] |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// (要保存的业务数据):
|
|
|
|
@ -1411,8 +1424,6 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// dataFlowGo: 0,
|
|
|
|
|
dataFlow: { |
|
|
|
|
// 这里后面会通过Object.assign(allDataFlow, 这个dataFlow)的方式,用来将当前业务信息和其他业务信息覆盖掉。这样当前信息就是该业务独有的信息。
|
|
|
|
|
// 后面如果业务案例有变化,直接在这里改就行了。其他许多依赖的组件的数据都是从这里拿的。
|
|
|
|
|
// peopleNumber,
|
|
|
|
|
// userName,//用户名字
|
|
|
|
|
// idType: '身份证',
|
|
|
|
@ -1462,7 +1473,7 @@ export default { |
|
|
|
|
dataFlow: { |
|
|
|
|
peopleNumber, |
|
|
|
|
userName,//用户名字
|
|
|
|
|
idType: 83, |
|
|
|
|
idType: '83', |
|
|
|
|
idNumber,//证件号码
|
|
|
|
|
sex,//性别
|
|
|
|
|
birthday,//出生日期
|
|
|
|
@ -1565,6 +1576,9 @@ export default { |
|
|
|
|
capital, // 不知道是多少
|
|
|
|
|
withdrawType: 124, // 支取类别
|
|
|
|
|
withdrawWay: 125, // 支取方式
|
|
|
|
|
transMoney: 8000, |
|
|
|
|
oldDepositNumber: '568812090', |
|
|
|
|
newDepositNumber: '568812136', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
'业务五': { |
|
|
|
@ -1608,7 +1622,8 @@ export default { |
|
|
|
|
capital, // 不知道是多少
|
|
|
|
|
withdrawType: 124, // 支取类别
|
|
|
|
|
withdrawWay: 126, // 支取方式
|
|
|
|
|
|
|
|
|
|
oldDepositNumber: '568812136', |
|
|
|
|
newDepositNumber: '568812136', |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
'业务六': { |
|
|
|
@ -1921,7 +1936,8 @@ export default { |
|
|
|
|
'business/deposit': false |
|
|
|
|
}, |
|
|
|
|
dataFlow: { |
|
|
|
|
transMoney: 800000 |
|
|
|
|
transMoney: 800000, |
|
|
|
|
interestRate: '0.00' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
'业务十三': { // 公司现金支票取款
|
|
|
|
@ -2530,10 +2546,14 @@ export default { |
|
|
|
|
collectingCompany: '开卷教育有限公司', |
|
|
|
|
transMoney: 200000, |
|
|
|
|
assignDate: '2022-12-29', |
|
|
|
|
ticketNumber: '00242966' |
|
|
|
|
ticketNumber: '00242966', |
|
|
|
|
drawDate: '2022-06-30', // 出票日期
|
|
|
|
|
expireDate: '2022-12-29', // 到期日期
|
|
|
|
|
} |
|
|
|
|
},
|
|
|
|
|
}, |
|
|
|
|
// 577, 银行承兑汇票签发
|
|
|
|
|
}, |
|
|
|
|
// 初始化公共数据
|
|
|
|
|
allDataFlow: { ...allDataFlow }, |
|
|
|
|
goods:[// 物品栏的物品
|
|
|
|
|
{ |
|
|
|
@ -2573,67 +2593,37 @@ export default { |
|
|
|
|
startPlay(state) { |
|
|
|
|
// 开始时调用,获取下拉框的东西。
|
|
|
|
|
|
|
|
|
|
getSubjectInfo({ |
|
|
|
|
subject_id:19 |
|
|
|
|
}).then((data)=>{ |
|
|
|
|
if(data.status == 200){ |
|
|
|
|
state.selectList.idTypeList = data.data.items; |
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{}) |
|
|
|
|
|
|
|
|
|
for(let item=8;item<14;item++){ |
|
|
|
|
let params= { |
|
|
|
|
subject_id:item |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (item == '8'){ |
|
|
|
|
getSubjectInfo(params).then((data)=>{ |
|
|
|
|
if(data.status == 200){ |
|
|
|
|
state.selectList.currencySelectList = data.data.items; |
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{}) |
|
|
|
|
|
|
|
|
|
}else if (item == '9'){ |
|
|
|
|
getSubjectInfo(params).then((data)=>{ |
|
|
|
|
if(data.status == 200){ |
|
|
|
|
state.selectList.goldLogoSelectList = data.data.items; |
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{}) |
|
|
|
|
}else if (item == '10'){ |
|
|
|
|
getSubjectInfo(params).then((data)=>{ |
|
|
|
|
if(data.status == 200){ |
|
|
|
|
state.selectList.accountQualitySelectList = data.data.items; |
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{}) |
|
|
|
|
|
|
|
|
|
}else if (item == '11'){ |
|
|
|
|
getSubjectInfo(params).then((data)=>{ |
|
|
|
|
if(data.status == 200){ |
|
|
|
|
state.selectList.voucherTypeSelectList = data.data.items; |
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{}) |
|
|
|
|
}else if (item == '12'){ |
|
|
|
|
getSubjectInfo(params).then((data)=>{ |
|
|
|
|
if(data.status == 200){ |
|
|
|
|
state.selectList.accountTypeSelectList = data.data.items; |
|
|
|
|
} |
|
|
|
|
}).catch((error)=>{}) |
|
|
|
|
}else if (item == '13'){ |
|
|
|
|
getSubjectInfo(params).then((data)=>{ |
|
|
|
|
if(data.status == 200){ |
|
|
|
|
state.selectList.chargeWayList = data.data.items; |
|
|
|
|
} |
|
|
|
|
}).catch((error)=>{}) |
|
|
|
|
} |
|
|
|
|
// 38
|
|
|
|
|
// accountManagementList
|
|
|
|
|
|
|
|
|
|
const mapObj = { |
|
|
|
|
38: 'accountManagementList', |
|
|
|
|
19: 'idTypeList', |
|
|
|
|
8: 'currencySelectList', |
|
|
|
|
9:'goldLogoSelectList', |
|
|
|
|
10: 'accountQualitySelectList', |
|
|
|
|
11: 'voucherTypeSelectList', |
|
|
|
|
12: 'accountTypeSelectList', |
|
|
|
|
13: 'chargeWayList', |
|
|
|
|
57: 'billTypeSelect', |
|
|
|
|
76: 'isTranslate', |
|
|
|
|
40: 'outAccountWayList', |
|
|
|
|
39: 'calculateWayList', |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getSubjectInfo({ |
|
|
|
|
subject_id: 57 |
|
|
|
|
}).then((data) => { |
|
|
|
|
if(data.status == 200){ |
|
|
|
|
state.selectList.billTypeSelect = data.data.items; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
for(const key in mapObj) { |
|
|
|
|
getSubjectInfo({ |
|
|
|
|
subject_id:key |
|
|
|
|
}).then((data)=>{ |
|
|
|
|
const name = mapObj[key] |
|
|
|
|
if(data.status == 200 && state.selectList[name].length===0){ |
|
|
|
|
state.selectList[name].push(...data.data.items); |
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
setPopId(state, id) { |
|
|
|
|
state.id = id |
|
|
|
@ -2872,6 +2862,12 @@ export default { |
|
|
|
|
judgeDelete = false |
|
|
|
|
stampSuccess = '456' |
|
|
|
|
} |
|
|
|
|
if(id === 584) { |
|
|
|
|
state.businessSelect[state.businessKey].data.push(582,581,580,583) |
|
|
|
|
judgeDelete = false |
|
|
|
|
stampSuccess = '584' |
|
|
|
|
} |
|
|
|
|
// 584
|
|
|
|
|
}else if(seal === '私章转讫章') { |
|
|
|
|
if(id === 412) { |
|
|
|
|
state.businessSelect[state.businessKey].data.push(476, 474) |
|
|
|
@ -3043,7 +3039,7 @@ export default { |
|
|
|
|
dataFlow(state) { |
|
|
|
|
return Object.assign(state.allDataFlow, state.businessSelect[state.businessKey].dataFlow) |
|
|
|
|
}, |
|
|
|
|
//
|
|
|
|
|
// 拿到物品栏中的物品
|
|
|
|
|
goods2(state) { |
|
|
|
|
// 调试容错采用if-else
|
|
|
|
|
const arr = [] |
|
|
|
@ -3051,8 +3047,10 @@ export default { |
|
|
|
|
for(const item of state.businessSelect[state.businessKey].data) { |
|
|
|
|
arr.push(allGoods[item]) |
|
|
|
|
} |
|
|
|
|
// 找到银行卡item
|
|
|
|
|
const item = arr.find(item => item.id === 16) |
|
|
|
|
if(item) { |
|
|
|
|
// 如果是业务一,则物品栏中的银行卡名字为一类银行卡
|
|
|
|
|
if(state.businessKey === '业务一') { |
|
|
|
|
item.name = '一类银行卡' |
|
|
|
|
}else { |
|
|
|
|