outbond-detail.js 637 B

12345678910111213141516171819202122232425262728293031
  1. import http from '@/request/index.js';
  2. export const state = {
  3. oubondDelData: [], //药品查询耗材
  4. };
  5. export const mutations = {
  6. setOubondDelData(state, data) {
  7. state.oubondDelData = data
  8. }
  9. }
  10. //药品明细出库-药品查询
  11. export const actions = {
  12. getoutBondDelData({
  13. commit,
  14. rootState
  15. }, data) {
  16. return new Promise((resolve, reject) => {
  17. http('outbondDetal.getData', {
  18. ...data,
  19. current: 1,
  20. size: 10000
  21. }, '加载中').then(res => {
  22. if (res.success == true) {
  23. commit('setOubondDelData', res.data.records);
  24. }
  25. }).catch(e => {
  26. reject(e)
  27. })
  28. })
  29. }
  30. }