import { makeAutoObservable, runInAction } from "mobx"; import * as req from "@/utils/request"; import { prepareUrl } from "@/utils/commons"; import * as config from "@/config"; class Feedback { constructor(root) { makeAutoObservable(this, { rootStore: false }); this.root = root; } /* 查询地接社的团列表 地接社sn 团名 离团时间开始,结束 */ searchFeedbackList(veisn, EOI_Group_Name, TimeStart, TimeEnd) { this.loading = true; let url = `/service-Cooperate/Cooperate/SearchFeedbackList`; url += `?PageSize=5&PageIndex=1&PageTotal=0&veisn=${veisn}&GruopNo=${EOI_Group_Name}&TimeStart=${TimeStart}&TimeEnd=${TimeEnd}`; fetch(config.HT_HOST + url) .then(response => response.json()) .then(json => { result = json.result1; console.log(result); runInAction(() => { this.groupList = result.Result; // this.groupList = [ // { // key: "1", // id: "1", // referenceNumber: "中华游111029-N111025076", // arrivalDate: "2023-04-08", // pax: "5AD 1CH", // status: "Confirm", // reservationDate: "2023-04-08 19:31", // guide: "Bill", // }, // { // key: "2", // id: "3", // referenceNumber: "中华游111029-N111025076", // arrivalDate: "2023-04-08", // pax: "5AD 1CH", // status: "Confirm", // reservationDate: "2023-04-08 19:31", // guide: "Jim", // }, // { // key: "3", // id: "3", // referenceNumber: "中华游111029-N111025076", // arrivalDate: "2023-05-08", // pax: "3AD", // status: "Confirm", // reservationDate: "2023-01-08 19:31", // guide: "Giffigan", // }, // ]; }); }) .catch(error => { this.loading = false; console.log("fetch data failed", error); }); } loading = false; groupList = [ { EOI_SN: 241147, EOI_GRI_SN: 331423, EOI_VEI_SN: 32531, EOI_ObjSN: 32531, EOI_Date: "2023-02-02T00:05:31", EOI_FWks_LastEditTime: "", EOI_FillWorkers_SN: 0, EOI_VerifyUser_SN: 0, EOI_CII_SN: 0, EOI_VRequestVerify: 0, TotalCount: 35, VAS_NewTP: 1, EOI_FillWorkers_Name: "", EOI_VerifyUser_Name: "", GuideMark: 0, Average: 0, EOI_Group_Name: "中华游230119-MCJAH221211010(AH)", City: "胡志明市Ho Chi Minh City", GriName: "", PicNum: "0", FState: "未填写", }, ]; } export default Feedback;