血透系统PC前端

temp_params.js 842B

1234567891011121314151617181920212223242526
  1. const temp_params = {
  2. state: {
  3. batch_print_dialysis_record_ids: [],
  4. },
  5. mutations: {
  6. SET_BATCH_PRINT_DIALYSIS_RECORD_IDS: (state, record_ids) => {
  7. state.batch_print_dialysis_record_ids = record_ids == null || record_ids == undefined ? [] : record_ids;
  8. }
  9. },
  10. actions: {
  11. SetBatchPrintDialysisRecordIDs({commit, state}, record_ids) {
  12. return new Promise((resolve, reject) => {
  13. commit("SET_BATCH_PRINT_DIALYSIS_RECORD_IDS", record_ids)
  14. resolve()
  15. })
  16. },
  17. ClearBatchPrintDialysisRecordIDs({commit, state}) {
  18. return new Promise((resolve, reject) => {
  19. commit("SET_BATCH_PRINT_DIALYSIS_RECORD_IDS", null)
  20. resolve()
  21. })
  22. }
  23. },
  24. }
  25. export default temp_params