Browse Source

参数修改

luolei 5 years ago
parent
commit
1196fec1c4

+ 1 - 0
src/store/reducers/assistCheck.js

@@ -63,6 +63,7 @@ export default (state = initSearchList, action) => {
     const newState = Object.assign({}, state);
     let tempArrs = newState.assistLabel;
     let tempList = action.item
+    tempList['dateValue'] = getCurrentDate(1)
     tempList['time'] = getCurrentDate(1)
     tempArrs.push(tempList)
     let tmpObj = getAllString([],newState.assistLabel)

+ 1 - 0
src/store/reducers/inspect.js

@@ -115,6 +115,7 @@ export default (state = initSearchList, action) => {
         const tempArr = newState.labelListBig;
         const tempArrs = newState.labelListSmall;
         let tmpLis = action.list
+        tmpLis['dateValue'] = getCurrentDate(1)
         tmpLis['time'] = getCurrentDate(1)
         if(tmpLis.flg == 1){//大项
             tempArr.push(tmpLis)

+ 5 - 3
src/store/reducers/newAdvice.js

@@ -36,7 +36,8 @@ const initSearchList = {
     shType:5,
     labelListBig:[],//大项
     labelListSmall:[],//小项
-    totalOrder:[],//开单项
+    drugOrder:[],//开单项
+    operationOrder:[],//开单项
 }
 
 export default (state = initSearchList, action) => {
@@ -64,8 +65,8 @@ export default (state = initSearchList, action) => {
         }
         tempBigOrder = tempArr.filter((item)=>item.check)
         tempSmallOrder = tempArrs.filter((item)=>item.check)
-        tempTotalOrder=tempBigOrder.concat(tempSmallOrder)
-        newState.totalOrder=[...tempTotalOrder]
+        newState.drugOrder=[...tempBigOrder]
+        newState.operationOrder=[...tempSmallOrder]
         return newState;
     }
     if (action.type == DEL_ONE_PIC) {
@@ -111,6 +112,7 @@ export default (state = initSearchList, action) => {
         const tempArrs = newState.labelListSmall;
         let tmpLis = action.list
         tmpLis['time'] = getCurrentDate(1)
+        tmpLis['dateValue'] = getCurrentDate(1)
         if(tmpLis.flg == 5){//大项
             tempArr.push(tmpLis)
             newState.labelListBig = [...tempArr]