After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 5.7 KiB |
@ -0,0 +1,57 @@ |
||||
/* 银行系统 */ |
||||
export default { |
||||
namespaced: true, |
||||
state: {/* 管理柜台状态 */ |
||||
showPop: false,// 弹框
|
||||
popText:'钱箱', |
||||
fullScreen:false,// 银行系统是否全屏
|
||||
goods:[// 物品栏的物品
|
||||
{ |
||||
name:'身份证', |
||||
src:require('@/assets/img/goods/idcard.png'), |
||||
id:'a' |
||||
}, |
||||
{ |
||||
name:'身份证复印件', |
||||
src:require('@/assets/img/idCard-copy-sm.png'), |
||||
id:'b' |
||||
}, |
||||
{ |
||||
name:'开户申请书', |
||||
src:require('@/assets/img/goods/khsqs.png'), |
||||
id:'c' |
||||
}, |
||||
{ |
||||
name:'现金', |
||||
src:require('@/assets/img/goods/cash-sm.png'), |
||||
id:'d' |
||||
}, |
||||
{ |
||||
name:'存款凭条', |
||||
src:require('@/assets/img/goods/ckpt.png'), |
||||
id:'e' |
||||
}, |
||||
], |
||||
}, |
||||
mutations: { |
||||
changeFullscreen:(state,val) => { |
||||
state.fullScreen = val |
||||
}, |
||||
changePop:(state,val)=>{ |
||||
state.showPop = val.show |
||||
state.popText = val.text |
||||
}, |
||||
changeGoods:(state,obj)=>{/* 赋值/push/删除 */ |
||||
if(obj.goods&&obj.goods.length>0){ |
||||
state.goods = obj.goods |
||||
}else if(obj.push&&obj.push.length>0){ |
||||
state.goods.push(...obj.push) |
||||
}else if(typeof(obj.splice)===Number ){ |
||||
state.goods.splice(obj.splice,1) |
||||
} |
||||
} |
||||
}, |
||||
actions: { |
||||
|
||||
} |
||||
} |