|
|
@ -27,11 +27,22 @@ export default { |
|
|
|
src:require('@/assets/img/goods/cash-sm.png'), |
|
|
|
src:require('@/assets/img/goods/cash-sm.png'), |
|
|
|
id:'d' |
|
|
|
id:'d' |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
// {
|
|
|
|
name:'存款凭条', |
|
|
|
// name:'存款凭条',
|
|
|
|
src:require('@/assets/img/goods/ckpt.png'), |
|
|
|
// src:require('@/assets/img/goods/ckpt.png'),
|
|
|
|
id:'e' |
|
|
|
// id:'e'
|
|
|
|
}, |
|
|
|
// },
|
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
goodsOpen:[// 物品栏的物品
|
|
|
|
|
|
|
|
{name:'身份证', src:require('@/assets/img/goods/idcard.png'), id:13}, |
|
|
|
|
|
|
|
{name:'身份证复印件',src:require('@/assets/img/idCard-copy-sm.png'),id:23}, |
|
|
|
|
|
|
|
{name:'银行卡',src:require('@/assets/img/goods/bankCard.png'),id:16}, |
|
|
|
|
|
|
|
{name:'转账凭条',src:require('@/assets/img/goods/zzpt.png'),id:'转账凭条'}, |
|
|
|
|
|
|
|
// {
|
|
|
|
|
|
|
|
// name:'存款凭条',
|
|
|
|
|
|
|
|
// src:require('@/assets/img/goods/ckpt.png'),
|
|
|
|
|
|
|
|
// id:'e'
|
|
|
|
|
|
|
|
// },
|
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
mutations: { |
|
|
|
mutations: { |
|
|
@ -70,6 +81,21 @@ export default { |
|
|
|
// 物品栏的展开和关闭
|
|
|
|
// 物品栏的展开和关闭
|
|
|
|
changeShowGoods(state, judge) { |
|
|
|
changeShowGoods(state, judge) { |
|
|
|
state.showGoods = judge |
|
|
|
state.showGoods = judge |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
addGoodsOpen(state, arr) { |
|
|
|
|
|
|
|
// 传来要做的事和数组
|
|
|
|
|
|
|
|
state.goodsOpen.push(...arr) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
removeGoodsOpen(state, obj) { |
|
|
|
|
|
|
|
// 传来要做的事和数组
|
|
|
|
|
|
|
|
state.goodsOpen.map((item, index) => { |
|
|
|
|
|
|
|
if(item.name === obj.name) { |
|
|
|
|
|
|
|
state.goodsOpen.splice(index, 1) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
setGoodsOpen(state, arr) { |
|
|
|
|
|
|
|
state.goodsOpen = arr |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
actions: { |
|
|
|
actions: { |
|
|
|