Commit 01f150d2 authored by XieZhiXiong's avatar XieZhiXiong

fix:修改开始结束时间参数格式

parent bf756820
......@@ -156,8 +156,8 @@ const ExchangePrAddDeliver: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeAddReturnDeliveryGoods({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -132,8 +132,8 @@ const ExchangePrAddLogistics: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeAddLogisticsByConsumer({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -156,8 +156,8 @@ const ExchangePrAddWarehousing: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeAddReplaceGoodsStorage({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -113,8 +113,8 @@ const ExchangePrConfirmBack: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeConfirmReturnGoodsReceipt({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -113,8 +113,8 @@ const ExchangePrDeliver: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeReturnDeliveryGoods({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -102,8 +102,8 @@ const ExchangePrFinished: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeComplete({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -114,8 +114,8 @@ const ExchangePrReceived: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeReplaceReceiveGoods({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -174,8 +174,8 @@ const ExchangePrSubmit: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeSubmitByConsumer({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -91,8 +91,8 @@ const ExchangeQuery: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageByConsumer({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -101,8 +101,8 @@ const ExchangePr1: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeVerifyStepOne({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -101,8 +101,8 @@ const ExchangePr2: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeVerifyStepTwo({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -147,8 +147,8 @@ const ExchangePrAddDeliver: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeAddReplaceDeliveryGoods({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -132,8 +132,8 @@ const ReturnPrAddLogistics: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeAddLogisticsBySupplier({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -156,8 +156,8 @@ const ExchangePrAddWarehousing: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeAddReturnGoodsStorage({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -101,8 +101,8 @@ const ExchangePrConfirm: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeConfirmVerify({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -113,8 +113,8 @@ const ExchangePrConfirmBack: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeConfirmReplaceGoodsReceipt({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -113,8 +113,8 @@ const ExchangePrDeliver: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeReplaceDeliveryGoods({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -115,8 +115,8 @@ const ExchangePrReceived: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeReturnReceiveGoods({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -101,8 +101,8 @@ const ExchangePrSubmit: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageToBeSubmitBySupplier({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -91,8 +91,8 @@ const ExchangeQuery: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReplaceGoodsPageBySupplier({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -102,8 +102,8 @@ const RepairPrFinished: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsRepairGoodsPageToBeConfirmComplete({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -168,8 +168,8 @@ const RepairPrSubmit: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsRepairGoodsPageToBeSubmitByConsumer({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -84,8 +84,8 @@ const RepairQuery: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsRepairGoodsPageByConsumer({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -94,8 +94,8 @@ const RepairPr1: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsRepairGoodsPageToBeVerifyStepOne({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -94,8 +94,8 @@ const RepairPr2: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsRepairGoodsPageToBeVerifyStepTwo({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -94,8 +94,8 @@ const RepairPrConfirm: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsRepairGoodsPageToBeConfirm({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -94,8 +94,8 @@ const RepairPrSubmit: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsRepairGoodsPageToBeSubmitBySupplier({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -84,8 +84,8 @@ const RepairManageQuery: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsRepairGoodsPageBySupplier({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -161,8 +161,8 @@ const ReturnPrAddDeliver: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageToBeAddReturnDeliveryGoods({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -137,8 +137,8 @@ const ReturnPrAddLogistics: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageToBeAddLogisticsByConsumer({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -120,8 +120,8 @@ const ReturnPrConfirmBack: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageToBeConfirmReturnGoodsReceipt({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -109,8 +109,8 @@ const ReturnPrConfirmFinish: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageToBeComplete({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -114,8 +114,8 @@ const ReturnPrConfirmResult: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageToBeConfirmRefund({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -120,8 +120,8 @@ const ReturnPrDeliver: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageToBeReturnDeliveryGoods({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -179,8 +179,8 @@ const ReturnPrSubmit: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageToBeSubmitByConsumer({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -96,8 +96,8 @@ const ReturnQuery: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageByConsumer({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -106,8 +106,8 @@ const ReturnPr1: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageToBeVerifyStepOne({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -106,8 +106,8 @@ const ReturnPr2: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageToBeVerifyStepTwo({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -161,8 +161,8 @@ const ReturnPrAddWarehousing: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageToBeAddReturnGoodsStorage({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -106,8 +106,8 @@ const ReturnPrConfirm: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageToBeConfirmVerify({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -120,8 +120,8 @@ const ReturnPrReceived: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageToBeReturnReceiveGoods({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -111,8 +111,8 @@ const ReturnPrReturn: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageToBeRefund({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -106,8 +106,8 @@ const ReturnPrSubmit: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageToBeSubmitBySupplier({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-11-05 14:25:41
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-10 10:07:08
* @LastEditTime: 2020-12-17 18:09:39
* @Description: 退货申请单查询
*/
import React, { useState, useRef } from 'react';
......@@ -96,8 +96,8 @@ const ReturnQuery: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getAsReturnGoodsPageBySupplier({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -104,8 +104,8 @@ const QuotaFormQuery: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getPayCreditApplyPageCreditApply({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -196,8 +196,8 @@ const QuotaPrSubmit: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getPayCreditApplyPageWaitSubmitCreditApply({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -106,8 +106,8 @@ const QuotaFormQuery: React.FC = () => {
const { startTime, endTime, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getPayCreditHandlePageCreditChildApply({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
...rest,
})
.then(res => {
......
......@@ -125,8 +125,8 @@ const QuotaPr1: React.FC = () => {
const { startTime, endTime, applyType = 0, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getPayCreditHandlePageCreditChildWaitVerifyApplyStepOne({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
applyType,
...rest,
})
......
......@@ -125,8 +125,8 @@ const QuotaPr1: React.FC = () => {
const { startTime, endTime, applyType = 0, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getPayCreditHandlePageCreditChildWaitVerifyApplyStepTwo({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
applyType,
...rest,
})
......
......@@ -125,8 +125,8 @@ const QuotaPr3: React.FC = () => {
const { startTime, endTime, applyType = 0, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getPayCreditHandlePageCreditChildWaitVerifyApplyStepThree({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
applyType,
...rest,
})
......
......@@ -125,8 +125,8 @@ const QuotaPrConfirm: React.FC = () => {
const { startTime, endTime, applyType = 0, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getPayCreditHandlePageCreditChildWaitConfirmVerifyApply({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
applyType,
...rest,
})
......
......@@ -125,8 +125,8 @@ const QuotaPrSubmit: React.FC = () => {
const { startTime, endTime, applyType = 0, ...rest } = params;
return new Promise((resolve, reject) => {
PublicApi.getPayCreditHandlePageCreditChildWaitSubmitApply({
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD') : null,
startTime: startTime ? moment(+startTime).format('YYYY-MM-DD HH:mm:ss') : null,
endTime: endTime ? moment(+endTime).format('YYYY-MM-DD HH:mm:ss') : null,
applyType,
...rest,
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment