|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
import { makeAutoObservable,runInAction } from "mobx";
|
|
|
|
|
import { fetchJSON } from "@/utils/request";
|
|
|
|
|
import { prepareUrl } from '@/utils/commons';
|
|
|
|
|
import { prepareUrl,isNotEmpty } from '@/utils/commons';
|
|
|
|
|
import { HT_HOST } from "@/config";
|
|
|
|
|
|
|
|
|
|
class Invoice {
|
|
|
|
@ -13,21 +13,21 @@ class Invoice {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fetchInvoiceList(PageIndex,OrderType,GroupNo,DateStart,DateEnd,Orderbytype,TimeType,limitmarket,mddgroup,SecuryGroup){
|
|
|
|
|
this.invoicePage.current=PageIndex;
|
|
|
|
|
const totalNum = PageIndex == 1 ? 0 : this.invoicePage.total;
|
|
|
|
|
fetchInvoiceList(current,OrderType,GroupNo,DateStart,DateEnd,Orderbytype){
|
|
|
|
|
this.invoicePage.current=current;
|
|
|
|
|
const totalNum = current == 1 ? 0 : this.invoicePage.total;
|
|
|
|
|
//组合param
|
|
|
|
|
const fetchUrl = prepareUrl(HT_HOST + '/service-cusservice/PTSearchGMBPageList')
|
|
|
|
|
.append('VEI_SN', this.root.authStore.login.travelAgencyId)
|
|
|
|
|
.append('VEI_SN', '628') //this.root.authStore.login.travelAgencyId
|
|
|
|
|
.append('OrderType',OrderType)
|
|
|
|
|
.append('GroupNo',GroupNo)
|
|
|
|
|
.append('DateStart',DateStart)
|
|
|
|
|
.append('DateEnd',DateEnd)
|
|
|
|
|
.append('Orderbytype',Orderbytype)
|
|
|
|
|
.append('TimeType',TimeType)
|
|
|
|
|
.append('limitmarket',limitmarket)
|
|
|
|
|
.append('mddgroup',mddgroup)
|
|
|
|
|
.append('SecuryGroup',SecuryGroup)
|
|
|
|
|
.append('TimeType',0)
|
|
|
|
|
.append('limitmarket',"")
|
|
|
|
|
.append('mddgroup',"")
|
|
|
|
|
.append('SecuryGroup',"")
|
|
|
|
|
.append('TotalNum', totalNum)
|
|
|
|
|
.append('PageSize', this.invoicePage.size)
|
|
|
|
|
.append('PageIndex', this.invoicePage.current)
|
|
|
|
@ -37,27 +37,30 @@ class Invoice {
|
|
|
|
|
.then(json => {
|
|
|
|
|
runInAction(()=>{
|
|
|
|
|
if (json.errcode==0){
|
|
|
|
|
this.invoiceList = json.result.map((data,index)=>{
|
|
|
|
|
return{
|
|
|
|
|
key:GSMSN,
|
|
|
|
|
gmd_gri_sn : data.gmd_gri_sn,
|
|
|
|
|
gmd_vei_sn : data.gmd_vei_sn,
|
|
|
|
|
GetDate : data.GetDate,
|
|
|
|
|
GMD_FillWorkers_SN : data.GMD_FillWorkers_SN,
|
|
|
|
|
GMD_FWks_LastEditTime : data.GMD_FWks_LastEditTime,
|
|
|
|
|
GMD_VerifyUser_SN : data.GMD_VerifyUser_SN,
|
|
|
|
|
GMD_Dealed : data.GMD_Dealed,
|
|
|
|
|
GMD_VRequestVerify : data.GMD_VRequestVerify,
|
|
|
|
|
LeftGDate : data.LeftGDate,
|
|
|
|
|
GMD_FillWorkers_Name : data.GMD_FillWorkers_Name,
|
|
|
|
|
GroupName : data.GroupName,
|
|
|
|
|
AllMoney : data.AllMoney,
|
|
|
|
|
PersonNum : data.PersonNum,
|
|
|
|
|
VName : data.VName
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
this.invoicePage.total = json.result[0].TotalCount;
|
|
|
|
|
if (isNotEmpty(json.Result)){
|
|
|
|
|
this.invoiceList = json.Result.map((data,index)=>{
|
|
|
|
|
return{
|
|
|
|
|
key:data.GMDSN,
|
|
|
|
|
gmd_gri_sn : data.gmd_gri_sn,
|
|
|
|
|
gmd_vei_sn : data.gmd_vei_sn,
|
|
|
|
|
GetGDate : data.GetGDate,
|
|
|
|
|
GMD_FillWorkers_SN : data.GMD_FillWorkers_SN,
|
|
|
|
|
GMD_FWks_LastEditTime : data.GMD_FWks_LastEditTime,
|
|
|
|
|
GMD_VerifyUser_SN : data.GMD_VerifyUser_SN,
|
|
|
|
|
GMD_Dealed : data.GMD_Dealed,
|
|
|
|
|
GMD_VRequestVerify : data.GMD_VRequestVerify,
|
|
|
|
|
LeftGDate : data.LeftGDate,
|
|
|
|
|
GMD_FillWorkers_Name : data.GMD_FillWorkers_Name,
|
|
|
|
|
GroupName : data.GroupName,
|
|
|
|
|
AllMoney : data.AllMoney,
|
|
|
|
|
PersonNum : data.PersonNum,
|
|
|
|
|
VName : data.VName
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
this.invoicePage.total = json.Result[0].TotalCount;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
throw new Error(json.errmsg + ': ' + json.errcode);
|
|
|
|
|
}
|
|
|
|
|