const ifdetail = { state: { inStatus: false, //国内 goStatus: false, //进口发货单 takeStatus: false, //进口发货单 outStatus: false, //出口 payStatus: false //付款 }, actions: {}, mutations: { //国内状态 // 进入详情页 IN_IN_DETAIL(state) { state.inStatus = true; }, //退出详情页 IN_OUT_DETAIL(state) { state.inStatus = false; }, //进口发货单状态 // 进入详情页 GO_IN_DETAIL(state) { state.goStatus = true; }, //退出详情页 GO_OUT_DETAIL(state) { state.goStatus = false; }, //进口收货单状态 // 进入详情页 TAKE_IN_DETAIL(state) { state.takeStatus = true; }, //退出详情页 TAKE_OUT_DETAIL(state) { state.takeStatus = false; }, //出口状态 // 进入详情页 OUT_IN__DETAIL(state) { state.outStatus = true; }, //退出详情页 OUT_OUT_DETAIL(state) { state.outStatus = false; }, //付款管理 // 进入详情 PAY_IN_DETAIL(state) { state.payStatus = true; }, //退出详情页 PAY_OUT_DETAIL(state) { state.payStatus = false; }, //关闭所有 DEL_ALL_DETAIL(state) { for (let item in state) { state[item] = false } }, //关闭其他 DEL_OTHER_DETAIL(state, tag) { for (let item in state) { state[item] = false } if (tag.label == '国内发货单') { state.inStatus = true; } if (tag.label == '进口发货单') { state.goStatus = true; } if (tag.label == "进口收货单") { state.goStatus = true; } if (tag.label == '发货单(E)') { state.takeStatus = true; } if (tag.label == '付款管理') { state.payStatus = true; } } } }; export default ifdetail;