patInfo.js 943 B

123456789101112131415161718192021222324252627282930313233
  1. export const updatePatientMessage=(state,action)=>{
  2. const res=Object.assign({},state);
  3. // const mock = {
  4. // doctorCode: "YS001",
  5. // doctorId: 1,
  6. // doctorName: "付",
  7. // hospitalCode: "A001",
  8. // hospitalDeptCode: "D01",
  9. // hospitalDeptId: 1,
  10. // hospitalDeptName: "全科",
  11. // hospitalId: 1,
  12. // hospitalName: "浙二医院",
  13. // modeClassify: 0,
  14. // modeValue: 1,
  15. // patientAge: 25,
  16. // patientCode: "1600",
  17. // patientId: 1,
  18. // patientIdNo: "9696969",
  19. // patientName: "沈强",
  20. // patientSex: "女",
  21. // recordId: "44",
  22. // selfDeptId: 5,
  23. // systemTime: "2018-12-20 11:52",
  24. // idNo: "9696969",
  25. // name: "沈强",
  26. // sex: 2
  27. // };
  28. res.message = action.data;
  29. /*if(!action.data.selfDeptId){ //selfDeptId这个参数是跟外部对接用的
  30. res.message = {};
  31. }*/
  32. return res;
  33. };