orderInfoModel.js 672 B

12345678910111213141516171819202122
  1. //订单信息操作
  2. export default {
  3. state: {},
  4. actions: ({ model, setState }) => ({
  5. //商家手动接单(接单,拒单)
  6. receivedOrder(orderId, pass) {
  7. const { loading, success, warnning } = model("loadingModel");
  8. const { httpGet } = model("httpModel");
  9. const { orderSuceess } = model("wordsModel");
  10. return httpGet(
  11. "/orderInfo/received",
  12. {
  13. orderId,
  14. pass,
  15. },
  16. true
  17. ).then((res) => {
  18. success(orderSuceess);
  19. });
  20. },
  21. }),
  22. };