|
@@ -91,7 +91,6 @@ export default (state = initSearchList, action) => {
|
|
|
let tmpArr = newState.labelListBlood;
|
|
|
let tmpLis = action.item,tempBigOrder=[],tempSmallOrder=[],tempBloodOrder=[],tempTotalOrder=[];
|
|
|
if(tmpLis&&tmpLis.flg == 5){
|
|
|
- console.log(action.tip)
|
|
|
tempArr = tempArr.filter((item,idx)=>{
|
|
|
if(action.tip != idx){
|
|
|
return item
|
|
@@ -132,7 +131,6 @@ export default (state = initSearchList, action) => {
|
|
|
let tmpLis = action.item
|
|
|
if(tmpLis.flg == 5){//药品
|
|
|
for(let i= 0;i < tempArr.length;i++){
|
|
|
- // 2020/9/9 解决医嘱时间修改 历史病历显示错误的bug,
|
|
|
if(action.tip == i){
|
|
|
if(action.sign == 1){//时间
|
|
|
tempArr[i].time = action.value
|
|
@@ -145,26 +143,22 @@ export default (state = initSearchList, action) => {
|
|
|
newState.labelListBig = [...tempArr]
|
|
|
}else if(tmpLis.flg == 6){//手术
|
|
|
for(let i= 0;i < tempArrs.length;i++){
|
|
|
- // if(action.tip == i){
|
|
|
- // tempArrs[i].time = action.value
|
|
|
- // tempArrs[i].dateValue = action.value
|
|
|
- // }
|
|
|
- tempArrs[i].time = action.value
|
|
|
- tempArrs[i].dateValue = action.value
|
|
|
+ if(action.tip == i){
|
|
|
+ tempArrs[i].time = action.value
|
|
|
+ tempArrs[i].dateValue = action.value
|
|
|
+ }
|
|
|
}
|
|
|
newState.labelListSmall = [...tempArrs]
|
|
|
}if(tmpLis.flg == 8){//输血
|
|
|
for(let i= 0;i < tmpArr.length;i++){
|
|
|
- // if(action.tip == i){
|
|
|
- // if(action.sign == 1){
|
|
|
- // tmpArr[i].time = action.value
|
|
|
- // tmpArr[i].dateValue = action.value
|
|
|
- // }else{
|
|
|
- // tmpArr[i].value = action.value
|
|
|
- // }
|
|
|
- // }
|
|
|
- tmpArr[i].time = action.value
|
|
|
- tmpArr[i].dateValue = action.value
|
|
|
+ if(action.tip == i){
|
|
|
+ if(action.sign == 1){
|
|
|
+ tmpArr[i].time = action.value
|
|
|
+ tmpArr[i].dateValue = action.value
|
|
|
+ }else{
|
|
|
+ tmpArr[i].value = action.value
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
newState.labelListBlood = [...tmpArr]
|
|
|
}
|