|
|
|
@ -2,8 +2,11 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 所有物品名字 */ |
|
|
|
|
/* 所有物品名字 这里能将东西查找出来并渲染上物品栏 */ |
|
|
|
|
const allGoods = { |
|
|
|
|
470: {name:'预留印鉴卡(二)',src:require('@/assets/img/goods/预留印鉴卡.png'),id:470}, |
|
|
|
|
471: {name:'预留印鉴卡(三)',src:require('@/assets/img/goods/预留印鉴卡.png'),id:471}, |
|
|
|
|
|
|
|
|
|
563: {name:'二类银行卡',src:require('@/assets/img/goods/bankCard.png'),id:563}, |
|
|
|
|
16: {name:'银行卡',src:require('@/assets/img/goods/bankCard.png'),id:16}, |
|
|
|
|
428: {name:'定期存单',src:require('@/assets/img/goods/储蓄存单.png'),id:428}, |
|
|
|
@ -99,6 +102,9 @@ const phone = '13222223122' |
|
|
|
|
const staticPhone = '0755-88281987' |
|
|
|
|
const mailNumber = '518052' |
|
|
|
|
const eMailAddress = '666@qq.com' |
|
|
|
|
const drawerUsername = '12802851701099' // 出票人账号
|
|
|
|
|
|
|
|
|
|
// 银行卡号码随机
|
|
|
|
|
const voucherNumber = (() => { |
|
|
|
|
const $chars = '1234567890'; |
|
|
|
|
const maxPos = $chars.length; |
|
|
|
@ -116,7 +122,7 @@ const sex = 2 // 1为男,2为女。 |
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 因为要求是在任何业务中,电脑中所有其他业务的信息也要正常显示,
|
|
|
|
|
// 因为要求是在任何业务中,电脑中所有其他业务的信息也要正常显示,所以所有信息都在这里,然后如果业务有区分的则写进dataFlow
|
|
|
|
|
const allDataFlow = { |
|
|
|
|
peopleNumber, |
|
|
|
|
userName, |
|
|
|
@ -155,6 +161,9 @@ const allDataFlow = { |
|
|
|
|
staticPhone, |
|
|
|
|
mailNumber, |
|
|
|
|
eMailAddress, |
|
|
|
|
drawerUsername, |
|
|
|
|
// 这个属性确认销户前是否结清
|
|
|
|
|
isSettle: false, |
|
|
|
|
'corporateClient': false, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1226,10 +1235,68 @@ const myInitState = { |
|
|
|
|
dataFlow: { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
'业务三十': { // 同城提出
|
|
|
|
|
id: 567, |
|
|
|
|
name: '同城提出', |
|
|
|
|
data: [ 15, 13, 23, 411 ], //
|
|
|
|
|
needs: [ ], |
|
|
|
|
isStamp: { |
|
|
|
|
// '业务专用章': [ 411 ]
|
|
|
|
|
}, |
|
|
|
|
backPeople: [], |
|
|
|
|
// backPeople: [ ],
|
|
|
|
|
cultureArr: [ ], |
|
|
|
|
|
|
|
|
|
moneyBox: [ ], // 钱箱
|
|
|
|
|
needBackMoney: false, // 需要钱箱取钱
|
|
|
|
|
peopleSign: [ ], // 客户签字
|
|
|
|
|
cultureIn: [], // 传票栏
|
|
|
|
|
sealBox: [], // 印章盒
|
|
|
|
|
currencyDetector: [], // 验钞机
|
|
|
|
|
printer: [], // 打印机
|
|
|
|
|
resource: [], // 资料
|
|
|
|
|
|
|
|
|
|
importanceArr: [], // 重要空白凭证箱
|
|
|
|
|
commonArr: [], // 普通凭证箱
|
|
|
|
|
dataFlow: { |
|
|
|
|
collectingCompany: '康恩备集团', |
|
|
|
|
transMoney: 200000, |
|
|
|
|
assignDate: '2022-12-29' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
'业务三十一': { // 同城提入
|
|
|
|
|
id: 576, |
|
|
|
|
name: '同城提入', |
|
|
|
|
data: [ 15, 13, 23, 411 ], //
|
|
|
|
|
needs: [ ], |
|
|
|
|
isStamp: { |
|
|
|
|
// '业务专用章': [ 411 ]
|
|
|
|
|
}, |
|
|
|
|
backPeople: [], |
|
|
|
|
// backPeople: [ ],
|
|
|
|
|
cultureArr: [ ], |
|
|
|
|
|
|
|
|
|
moneyBox: [ ], // 钱箱
|
|
|
|
|
needBackMoney: false, // 需要钱箱取钱
|
|
|
|
|
peopleSign: [ ], // 客户签字
|
|
|
|
|
cultureIn: [], // 传票栏
|
|
|
|
|
sealBox: [], // 印章盒
|
|
|
|
|
currencyDetector: [], // 验钞机
|
|
|
|
|
printer: [], // 打印机
|
|
|
|
|
resource: [], // 资料
|
|
|
|
|
|
|
|
|
|
importanceArr: [], // 重要空白凭证箱
|
|
|
|
|
commonArr: [], // 普通凭证箱
|
|
|
|
|
dataFlow: { |
|
|
|
|
collectingCompany: '开卷教育有限公司', |
|
|
|
|
transMoney: 200000, |
|
|
|
|
assignDate: '2022-12-29' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 有些地方需要盖两个章,而后端判分是按照顺序判断的,比如 '收讫章','私章'给分,'私章','收讫章'就不给分,然后前端这就只能调整顺序再提交。
|
|
|
|
|
const sealArray = [/* 印章盒物品默认排序 */ |
|
|
|
|
'收讫章', '销户章','私章','附件章','付讫章','业务专用章', '转讫章' |
|
|
|
|
] |
|
|
|
@ -1246,12 +1313,12 @@ export default { |
|
|
|
|
popText:'', |
|
|
|
|
fullScreen:false,// 银行系统是否全屏
|
|
|
|
|
showGoods: false, // 物品栏的展开和关闭
|
|
|
|
|
// 业务选择表: (要保存的)
|
|
|
|
|
// 当前的业务选择
|
|
|
|
|
businessKey: '', |
|
|
|
|
// 业务选择表是否展示:
|
|
|
|
|
showBusiness: false, |
|
|
|
|
|
|
|
|
|
// 下拉框的数据:
|
|
|
|
|
// 下拉框的数据,在电脑中的下拉框有许多相同的,不用每次都请求服务器,可以在这里拿数据:
|
|
|
|
|
selectList: { |
|
|
|
|
currencySelectList: [], |
|
|
|
|
goldLogoSelectList: [], |
|
|
|
@ -1262,7 +1329,7 @@ export default { |
|
|
|
|
idTypeList: [] // 身份证选项
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// (要保存的)
|
|
|
|
|
// (要保存的业务数据):
|
|
|
|
|
businessSelect: { |
|
|
|
|
'业务一': { |
|
|
|
|
id: 489, |
|
|
|
@ -1298,6 +1365,8 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// dataFlowGo: 0,
|
|
|
|
|
dataFlow: { |
|
|
|
|
// 这里后面会通过Object.assign(allDataFlow, 这个dataFlow)的方式,用来将当前业务信息和其他业务信息覆盖掉。这样当前信息就是该业务独有的信息。
|
|
|
|
|
// 后面如果业务案例有变化,直接在这里改就行了。其他许多依赖的组件的数据都是从这里拿的。
|
|
|
|
|
peopleNumber, |
|
|
|
|
userName,//用户名字
|
|
|
|
|
idType: '身份证', |
|
|
|
@ -2329,6 +2398,64 @@ export default { |
|
|
|
|
dataFlow: { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
'业务三十': { // 同城提出
|
|
|
|
|
id: 567, |
|
|
|
|
name: '同城提出', |
|
|
|
|
data: [ 15, 13, 23, 411 ], //
|
|
|
|
|
needs: [ ], |
|
|
|
|
isStamp: { |
|
|
|
|
// '业务专用章': [ 411 ]
|
|
|
|
|
}, |
|
|
|
|
backPeople: [], |
|
|
|
|
// backPeople: [ ],
|
|
|
|
|
cultureArr: [ ], |
|
|
|
|
|
|
|
|
|
moneyBox: [ ], // 钱箱
|
|
|
|
|
needBackMoney: false, // 需要钱箱取钱
|
|
|
|
|
peopleSign: [ ], // 客户签字
|
|
|
|
|
cultureIn: [], // 传票栏
|
|
|
|
|
sealBox: [], // 印章盒
|
|
|
|
|
currencyDetector: [], // 验钞机
|
|
|
|
|
printer: [], // 打印机
|
|
|
|
|
resource: [], // 资料
|
|
|
|
|
|
|
|
|
|
importanceArr: [], // 重要空白凭证箱
|
|
|
|
|
commonArr: [], // 普通凭证箱
|
|
|
|
|
dataFlow: { |
|
|
|
|
collectingCompany: '康恩备集团', |
|
|
|
|
transMoney: 200000, |
|
|
|
|
assignDate: '2022-12-29' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
'业务三十一': { // 同城提入
|
|
|
|
|
id: 576, |
|
|
|
|
name: '同城提入', |
|
|
|
|
data: [ 15, 13, 23, 411 ], //
|
|
|
|
|
needs: [ ], |
|
|
|
|
isStamp: { |
|
|
|
|
// '业务专用章': [ 411 ]
|
|
|
|
|
}, |
|
|
|
|
backPeople: [], |
|
|
|
|
// backPeople: [ ],
|
|
|
|
|
cultureArr: [ ], |
|
|
|
|
|
|
|
|
|
moneyBox: [ ], // 钱箱
|
|
|
|
|
needBackMoney: false, // 需要钱箱取钱
|
|
|
|
|
peopleSign: [ ], // 客户签字
|
|
|
|
|
cultureIn: [], // 传票栏
|
|
|
|
|
sealBox: [], // 印章盒
|
|
|
|
|
currencyDetector: [], // 验钞机
|
|
|
|
|
printer: [], // 打印机
|
|
|
|
|
resource: [], // 资料
|
|
|
|
|
|
|
|
|
|
importanceArr: [], // 重要空白凭证箱
|
|
|
|
|
commonArr: [], // 普通凭证箱
|
|
|
|
|
dataFlow: { |
|
|
|
|
collectingCompany: '开卷教育有限公司', |
|
|
|
|
transMoney: 200000, |
|
|
|
|
assignDate: '2022-12-29' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
goods:[// 物品栏的物品
|
|
|
|
|
{ |
|
|
|
@ -2365,9 +2492,12 @@ export default { |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
mutations: { |
|
|
|
|
// 设置tipDialog组件提示的信息。这个组件是根据UI设计的。
|
|
|
|
|
setTipsOperate(state, tipsOperate) { |
|
|
|
|
state.tipsOperate = tipsOperate |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 页面开始的时候请求电脑录入的下拉框的数据 以供电脑中的下拉框使用
|
|
|
|
|
startPlay(state) { |
|
|
|
|
// 开始时调用,获取下拉框的东西。
|
|
|
|
|
|
|
|
|
@ -2436,29 +2566,20 @@ export default { |
|
|
|
|
setPopId(state, id) { |
|
|
|
|
state.id = id |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 改变所需模块的状态,完成前面的模块,后面的模块就不会提示。
|
|
|
|
|
setNeedsModule(state, name) { |
|
|
|
|
state.businessSelect[state.businessKey].needsModule[name] = true |
|
|
|
|
}, |
|
|
|
|
// 数据流动,当前面模块的信息被后面的模块需要时,用这个方法可以将前面模块的数据存到后面去,毕竟服务器接口少。比如模块1 -> 模块2 模块1完成的数据可以流到模块2
|
|
|
|
|
setDataFlow(state, obj) { |
|
|
|
|
for(let key in obj) { |
|
|
|
|
state.businessSelect[state.businessKey].dataFlow[key] = obj[key] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 重置业务状态中的数据,用于重新开始。
|
|
|
|
|
initState(state) { |
|
|
|
|
state.businessSelect = JSON.parse(JSON.stringify(myInitState)) |
|
|
|
|
// function deepClone(obj) {
|
|
|
|
|
// let objClone = Array.isArray(obj)? []: {}
|
|
|
|
|
// if(obj && typeof obj === 'object') {
|
|
|
|
|
// for(let key in obj) {
|
|
|
|
|
// if(obj[key] && typeof obj[key] === object) {
|
|
|
|
|
// objClone[key] = deepClone(obj[key])
|
|
|
|
|
// }else {
|
|
|
|
|
// objClone[key] = obj[key]
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// return objClone
|
|
|
|
|
// }
|
|
|
|
|
state.businessKey = '' |
|
|
|
|
}, |
|
|
|
|
setShowBusiness(state, isShow) { |
|
|
|
@ -2508,7 +2629,6 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
outThings2(state, { name, index}) { |
|
|
|
|
// 神奇地解决了bug
|
|
|
|
|
if(state.businessSelect[state.businessKey][name].length > index) { |
|
|
|
|
state.businessSelect[state.businessKey][name].splice(index, 1) |
|
|
|
|
} |
|
|
|
@ -2642,6 +2762,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
}else if(seal === '私章') { |
|
|
|
|
if(id === 439) { |
|
|
|
|
|
|
|
|
|
stampSuccess = '454' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|