Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈智峰
jinfa-platform
Commits
5ab0e96b
Commit
5ab0e96b
authored
Nov 17, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 去掉PublicApi
parent
f854ad19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
129 additions
and
119 deletions
+129
-119
index.tsx
src/pages/transaction/purchaserEvaluation/analysis/index.tsx
+5
-6
index.tsx
...transaction/purchaserEvaluation/received/detail/index.tsx
+2
-2
index.tsx
.../purchaserEvaluation/sent/components/DetailInfo/index.tsx
+3
-3
index.tsx
...action/purchaserEvaluation/unevaluated/evaluate/index.tsx
+3
-4
index.tsx
...ges/transaction/purchaserEvaluation/unevaluated/index.tsx
+2
-2
index.ts
...ckSellStorage/bills/components/BillsForm/effects/index.ts
+10
-3
useBusinessEffects.ts
.../bills/components/BillsForm/effects/useBusinessEffects.ts
+25
-23
fetchBillList.ts
...ckSellStorage/bills/components/BillsForm/fetchBillList.ts
+27
-25
index.tsx
...ion/stockSellStorage/bills/components/BillsForm/index.tsx
+0
-0
index.ts
...llStorage/bills/components/BillsFormPage/effects/index.ts
+4
-4
index.tsx
src/pages/transaction/stockSellStorage/bills/index.tsx
+7
-7
index.tsx
...ckSellStorage/billsType/components/BillTypeForm/index.tsx
+4
-4
index.tsx
src/pages/transaction/stockSellStorage/billsType/index.tsx
+4
-4
index.tsx
src/pages/transaction/stockSellStorage/inventory/index.tsx
+4
-4
index.tsx
...kSellStorage/warehouse/components/WarehouseForm/index.tsx
+9
-7
index.tsx
src/pages/transaction/stockSellStorage/warehouse/index.tsx
+4
-4
index.tsx
src/pages/transaction/supplierEvaluation/analysis/index.tsx
+6
-6
index.tsx
.../transaction/supplierEvaluation/received/detail/index.tsx
+2
-2
index.tsx
...n/supplierEvaluation/sent/components/DetailInfo/index.tsx
+3
-3
index.tsx
...saction/supplierEvaluation/unevaluated/evaluate/index.tsx
+3
-4
index.tsx
...ages/transaction/supplierEvaluation/unevaluated/index.tsx
+2
-2
No files found.
src/pages/transaction/purchaserEvaluation/analysis/index.tsx
View file @
5ab0e96b
...
@@ -3,8 +3,7 @@ import { Tabs, Row, Col, Button } from 'antd';
...
@@ -3,8 +3,7 @@ import { Tabs, Row, Col, Button } from 'antd';
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
observer
,
inject
}
from
'mobx-react'
;
import
{
observer
,
inject
}
from
'mobx-react'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
getMemberCommentConsumerCountTradeHistoryPage
,
getMemberCommentConsumerCountTradeSummary
,
getMemberCommentConsumerReceiveTradeHistoryPage
,
getMemberCommentConsumerSendTradeHistoryPage
}
from
'@/services/MemberV2Api'
;
import
{
isJSONStr
}
from
'@/utils'
;
import
{
IEvaluationModule
}
from
'@/module/evaluationModule'
;
import
{
IEvaluationModule
}
from
'@/module/evaluationModule'
;
import
MellowCard
from
'@/components/MellowCard'
;
import
MellowCard
from
'@/components/MellowCard'
;
import
PolymericTable
from
'@/components/PolymericTable'
;
import
PolymericTable
from
'@/components/PolymericTable'
;
...
@@ -156,7 +155,7 @@ const Analysis: React.FC<AnalysisProps> = ({
...
@@ -156,7 +155,7 @@ const Analysis: React.FC<AnalysisProps> = ({
// 获取评价汇总
// 获取评价汇总
const
getTradeSummary
=
()
=>
{
const
getTradeSummary
=
()
=>
{
PublicApi
.
getMemberCommentConsumerCountTradeSummary
().
then
(
res
=>
{
getMemberCommentConsumerCountTradeSummary
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
const
evaluate
=
summaryEvaluate
(
res
.
data
.
rows
);
const
evaluate
=
summaryEvaluate
(
res
.
data
.
rows
);
const
evaluatePieData
=
getSummaryEvaluatePie
(
evaluate
);
const
evaluatePieData
=
getSummaryEvaluatePie
(
evaluate
);
...
@@ -172,7 +171,7 @@ const Analysis: React.FC<AnalysisProps> = ({
...
@@ -172,7 +171,7 @@ const Analysis: React.FC<AnalysisProps> = ({
const
getTradeHistory
=
(
params
:
ListParams
):
Promise
<
RecordRes
>
=>
{
const
getTradeHistory
=
(
params
:
ListParams
):
Promise
<
RecordRes
>
=>
{
const
{
star
,
...
rest
}
=
params
;
const
{
star
,
...
rest
}
=
params
;
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getMemberCommentConsumerCountTradeHistoryPage
({
getMemberCommentConsumerCountTradeHistoryPage
({
...
rest
,
...
rest
,
starLevel
:
params
.
star
,
starLevel
:
params
.
star
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
@@ -205,7 +204,7 @@ const Analysis: React.FC<AnalysisProps> = ({
...
@@ -205,7 +204,7 @@ const Analysis: React.FC<AnalysisProps> = ({
// 获取收到的评价列表
// 获取收到的评价列表
const
getReceivedList
=
(
params
:
ListParams
):
Promise
<
RecordRes
>
=>
{
const
getReceivedList
=
(
params
:
ListParams
):
Promise
<
RecordRes
>
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getMemberCommentConsumerReceiveTradeHistoryPage
({
getMemberCommentConsumerReceiveTradeHistoryPage
({
...
params
,
...
params
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
@@ -238,7 +237,7 @@ const Analysis: React.FC<AnalysisProps> = ({
...
@@ -238,7 +237,7 @@ const Analysis: React.FC<AnalysisProps> = ({
const
getSentList
=
(
params
:
ListParams
):
Promise
<
RecordRes
>
=>
{
const
getSentList
=
(
params
:
ListParams
):
Promise
<
RecordRes
>
=>
{
const
{
memberName
,
...
rest
}
=
params
;
const
{
memberName
,
...
rest
}
=
params
;
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getMemberCommentConsumerSendTradeHistoryPage
({
getMemberCommentConsumerSendTradeHistoryPage
({
...
rest
,
...
rest
,
subMemberName
:
memberName
,
subMemberName
:
memberName
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
...
src/pages/transaction/purchaserEvaluation/received/detail/index.tsx
View file @
5ab0e96b
...
@@ -10,7 +10,7 @@ import { PageHeaderWrapper } from '@ant-design/pro-layout';
...
@@ -10,7 +10,7 @@ import { PageHeaderWrapper } from '@ant-design/pro-layout';
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getMemberCommentConsumerReceiveTradeHistoryGet
}
from
'@/services/MemberV2A
pi'
;
import
{
normalizeFiledata
,
FileData
}
from
'@/utils'
;
import
{
normalizeFiledata
,
FileData
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
NiceForm
from
'@/components/NiceForm'
;
...
@@ -51,7 +51,7 @@ const ReceivedDetail: React.FC = () => {
...
@@ -51,7 +51,7 @@ const ReceivedDetail: React.FC = () => {
return
;
return
;
}
}
setEvaluationInfoLoading
(
true
);
setEvaluationInfoLoading
(
true
);
PublicApi
.
getMemberCommentConsumerReceiveTradeHistoryGet
({
getMemberCommentConsumerReceiveTradeHistoryGet
({
id
,
id
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
...
src/pages/transaction/purchaserEvaluation/sent/components/DetailInfo/index.tsx
View file @
5ab0e96b
...
@@ -11,7 +11,7 @@ import { FormOutlined } from '@ant-design/icons';
...
@@ -11,7 +11,7 @@ import { FormOutlined } from '@ant-design/icons';
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getMemberCommentConsumerSendTradeHistoryGet
,
postMemberCommentConsumerSendTradeHistoryUpdate
}
from
'@/services/MemberV2A
pi'
;
import
{
normalizeFiledata
,
FileData
}
from
'@/utils'
;
import
{
normalizeFiledata
,
FileData
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
NiceForm
from
'@/components/NiceForm'
;
...
@@ -66,7 +66,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
...
@@ -66,7 +66,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
return
;
return
;
}
}
setEvaluationInfoLoading
(
true
);
setEvaluationInfoLoading
(
true
);
PublicApi
.
getMemberCommentConsumerSendTradeHistoryGet
({
getMemberCommentConsumerSendTradeHistoryGet
({
id
,
id
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
@@ -121,7 +121,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
...
@@ -121,7 +121,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
return
;
return
;
}
}
PublicApi
.
postMemberCommentConsumerSendTradeHistoryUpdate
(
payload
[
0
])
postMemberCommentConsumerSendTradeHistoryUpdate
(
payload
[
0
])
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
src/pages/transaction/purchaserEvaluation/unevaluated/evaluate/index.tsx
View file @
5ab0e96b
...
@@ -13,8 +13,7 @@ import { history, Prompt } from 'umi';
...
@@ -13,8 +13,7 @@ import { history, Prompt } from 'umi';
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
getMemberCommentConsumerOrderTradeDetail
,
GetMemberCommentConsumerOrderTradeDetailResponse
,
postMemberCommentConsumerOrderTradeSubmit
}
from
'@/services/MemberV2Api'
;
import
{
GetMemberCommentConsumerOrderTradeDetailResponse
}
from
'@/services/MemberV2Api'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
normalizeUnevaluatedList
}
from
'../../utils'
;
import
{
normalizeUnevaluatedList
}
from
'../../utils'
;
...
@@ -56,7 +55,7 @@ const EvaluateOrder: React.FC = () => {
...
@@ -56,7 +55,7 @@ const EvaluateOrder: React.FC = () => {
return
;
return
;
}
}
setInfoLoading
(
true
);
setInfoLoading
(
true
);
PublicApi
.
getMemberCommentConsumerOrderTradeDetail
({
getMemberCommentConsumerOrderTradeDetail
({
id
,
id
,
}
as
any
).
then
(
res
=>
{
}
as
any
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
@@ -102,7 +101,7 @@ const EvaluateOrder: React.FC = () => {
...
@@ -102,7 +101,7 @@ const EvaluateOrder: React.FC = () => {
};
};
});
});
PublicApi
.
postMemberCommentConsumerOrderTradeSubmit
({
postMemberCommentConsumerOrderTradeSubmit
({
orderId
:
orderInfo
.
orderId
,
orderId
:
orderInfo
.
orderId
,
commentSubmitDetailList
:
payload
,
commentSubmitDetailList
:
payload
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
...
src/pages/transaction/purchaserEvaluation/unevaluated/index.tsx
View file @
5ab0e96b
...
@@ -8,7 +8,7 @@ import { createFormActions } from '@formily/antd';
...
@@ -8,7 +8,7 @@ import { createFormActions } from '@formily/antd';
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getMemberOrderCommentBuyerPage
}
from
'@/services/MemberV2A
pi'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
StatusTag
from
'@/components/StatusTag'
;
import
StatusTag
from
'@/components/StatusTag'
;
...
@@ -104,7 +104,7 @@ const Unevaluated: React.FC = () => {
...
@@ -104,7 +104,7 @@ const Unevaluated: React.FC = () => {
createTimeEnd
=
createTimeEnd
?
moment
(
+
createTimeEnd
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
undefined
;
createTimeEnd
=
createTimeEnd
?
moment
(
+
createTimeEnd
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
undefined
;
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getMemberOrderCommentBuyerPage
({
getMemberOrderCommentBuyerPage
({
createTimeStart
,
createTimeStart
,
createTimeEnd
,
createTimeEnd
,
...
rest
...
rest
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsForm/effects/index.ts
View file @
5ab0e96b
/*
* @Author: XieZhiXiong
* @Date: 2021-10-18 11:11:48
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-11-17 20:29:02
* @Description:
*/
import
{
useBusinessEffects
}
from
'./useBusinessEffects'
;
import
{
useBusinessEffects
}
from
'./useBusinessEffects'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getProductInvoicesTypeAll
,
getProductWarehouseAll
}
from
'@/services/ProductV2A
pi'
;
// 获取单据类型
// 获取单据类型
const
fetchInvoicesType
=
():
Promise
<
any
[]
>
=>
{
const
fetchInvoicesType
=
():
Promise
<
any
[]
>
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getProductInvoicesTypeAll
().
then
(
res
=>
{
getProductInvoicesTypeAll
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
resolve
(
res
.
data
);
}
}
...
@@ -19,7 +26,7 @@ const fetchInvoicesType = (): Promise<any[]> => {
...
@@ -19,7 +26,7 @@ const fetchInvoicesType = (): Promise<any[]> => {
// 获取仓库
// 获取仓库
const
fetchInventory
=
():
Promise
<
any
[]
>
=>
{
const
fetchInventory
=
():
Promise
<
any
[]
>
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getProductWarehouseAll
().
then
(
res
=>
{
getProductWarehouseAll
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
resolve
(
res
.
data
);
}
}
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsForm/effects/useBusinessEffects.ts
View file @
5ab0e96b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2020-09-16 15:16:47
* @Date: 2020-09-16 15:16:47
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-
07-29 13:40:54
* @LastEditTime: 2021-
11-17 20:30:16
* @Description: 联动逻辑相关
* @Description: 联动逻辑相关
*/
*/
import
{
Modal
,
message
}
from
'antd'
;
import
{
Modal
,
message
}
from
'antd'
;
...
@@ -34,7 +34,8 @@ import Search from '@/components/NiceForm/components/Search';
...
@@ -34,7 +34,8 @@ import Search from '@/components/NiceForm/components/Search';
import
Submit
from
'@/components/NiceForm/components/Submit'
;
import
Submit
from
'@/components/NiceForm/components/Submit'
;
import
DateSelect
from
'@/components/NiceForm/components/DateSelect'
;
import
DateSelect
from
'@/components/NiceForm/components/DateSelect'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
getEnhanceProcessToBeAddDeliveryDetails
,
getEnhanceSupplierToBeAddStorageDetails
}
from
'@/services/EnhanceV2Api'
;
import
{
getAsReplaceGoodsPageReturnedGoods
,
getAsReturnGoodsPageReturnedGoods
}
from
'@/services/AfterServiceV2Api'
;
import
{
import
{
purchaseOrderBillSchema
,
purchaseOrderBillSchema
,
machiningWarehousingBillSchema
,
machiningWarehousingBillSchema
,
...
@@ -61,6 +62,7 @@ import {
...
@@ -61,6 +62,7 @@ import {
getExchangeWarehousingList
,
getExchangeWarehousingList
,
}
from
'../fetchBillList'
;
}
from
'../fetchBillList'
;
const
{
const
{
onFieldInputChange$
,
onFieldInputChange$
,
onFieldValueChange$
,
onFieldValueChange$
,
...
@@ -346,23 +348,23 @@ export const useBusinessEffects = (context, actions) => {
...
@@ -346,23 +348,23 @@ export const useBusinessEffects = (context, actions) => {
setFieldValue
(
'deliveryType'
,
first
.
deliveryType
);
setFieldValue
(
'deliveryType'
,
first
.
deliveryType
);
// 根据选择的订单查询 订单对应的商品,并给 Table 的商品下拉框赋值
// 根据选择的订单查询 订单对应的商品,并给 Table 的商品下拉框赋值
PublicApi
.
getOrderProcurementOrderProductList
({
//
getOrderProcurementOrderProductList({
id
:
first
.
id
,
//
id: first.id,
orderNo
:
''
,
//
orderNo: '',
}
as
any
).
then
(
res
=>
{
//
} as any).then(res => {
if
(
res
.
code
===
1000
)
{
//
if (res.code === 1000) {
const
goodOptions
=
res
.
data
.
map
(
item
=>
({
//
const goodOptions = res.data.map(item => ({
label
:
item
.
productName
,
//
label: item.productName,
value
:
item
.
id
,
//
value: item.id,
}));
//
}));
setFieldState
(
'invoicesDetailsRequests.*.product'
,
state
=>
{
//
setFieldState('invoicesDetailsRequests.*.product', state => {
FormPath
.
setIn
(
state
,
'originAsyncData'
,
res
.
data
);
//
FormPath.setIn(state, 'originAsyncData', res.data);
FormPath
.
setIn
(
state
,
'props.enum'
,
goodOptions
);
//
FormPath.setIn(state, 'props.enum', goodOptions);
});
//
});
}
//
}
}).
catch
((
err
)
=>
{
//
}).catch((err) => {
console
.
warn
(
err
);
//
console.warn(err);
});
//
});
break
;
break
;
}
}
...
@@ -372,7 +374,7 @@ export const useBusinessEffects = (context, actions) => {
...
@@ -372,7 +374,7 @@ export const useBusinessEffects = (context, actions) => {
setFieldValue
(
'transport'
,
DELIVERY_TYPE
[
first
.
deliveryType
]);
setFieldValue
(
'transport'
,
DELIVERY_TYPE
[
first
.
deliveryType
]);
setFieldValue
(
'deliveryType'
,
first
.
deliveryType
);
setFieldValue
(
'deliveryType'
,
first
.
deliveryType
);
// 从加工单详情获取 商品 数据
// 从加工单详情获取 商品 数据
PublicApi
.
getEnhanceSupplierToBeAddStorageDetails
({
getEnhanceSupplierToBeAddStorageDetails
({
id
:
first
.
id
,
id
:
first
.
id
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
...
@@ -409,7 +411,7 @@ export const useBusinessEffects = (context, actions) => {
...
@@ -409,7 +411,7 @@ export const useBusinessEffects = (context, actions) => {
setFieldValue
(
'transport'
,
DELIVERY_TYPE
[
first
.
deliveryType
]);
setFieldValue
(
'transport'
,
DELIVERY_TYPE
[
first
.
deliveryType
]);
setFieldValue
(
'deliveryType'
,
first
.
deliveryType
);
setFieldValue
(
'deliveryType'
,
first
.
deliveryType
);
// 从加工单详情获取 商品 数据
// 从加工单详情获取 商品 数据
PublicApi
.
getEnhanceProcessToBeAddDeliveryDetails
({
getEnhanceProcessToBeAddDeliveryDetails
({
id
:
first
.
id
,
id
:
first
.
id
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
...
@@ -448,7 +450,7 @@ export const useBusinessEffects = (context, actions) => {
...
@@ -448,7 +450,7 @@ export const useBusinessEffects = (context, actions) => {
setFieldValue
(
'deliveryType'
,
first
.
deliveryType
);
setFieldValue
(
'deliveryType'
,
first
.
deliveryType
);
// 获取明细数据 商品 数据
// 获取明细数据 商品 数据
PublicApi
.
getAsReplaceGoodsPageReturnedGoods
({
getAsReplaceGoodsPageReturnedGoods
({
replaceId
:
first
.
id
,
replaceId
:
first
.
id
,
current
:
`
${
1
}
`
,
current
:
`
${
1
}
`
,
pageSize
:
`
${
99999
}
`
,
pageSize
:
`
${
99999
}
`
,
...
@@ -486,7 +488,7 @@ export const useBusinessEffects = (context, actions) => {
...
@@ -486,7 +488,7 @@ export const useBusinessEffects = (context, actions) => {
setFieldValue
(
'deliveryType'
,
first
.
deliveryType
);
setFieldValue
(
'deliveryType'
,
first
.
deliveryType
);
// 获取明细数据 商品 数据
// 获取明细数据 商品 数据
PublicApi
.
getAsReturnGoodsPageReturnedGoods
({
getAsReturnGoodsPageReturnedGoods
({
returnId
:
first
.
id
,
returnId
:
first
.
id
,
current
:
`
${
1
}
`
,
current
:
`
${
1
}
`
,
pageSize
:
`
${
99999
}
`
,
pageSize
:
`
${
99999
}
`
,
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsForm/fetchBillList.ts
View file @
5ab0e96b
...
@@ -5,31 +5,33 @@
...
@@ -5,31 +5,33 @@
* @LastEditTime: 2021-01-07 10:15:47
* @LastEditTime: 2021-01-07 10:15:47
* @Description: 获取 单据列表 弹窗数据接口相关
* @Description: 获取 单据列表 弹窗数据接口相关
*/
*/
import
{
PublicApi
}
from
'@/services/api'
;
import
{
getAsReplaceGoodsPageToBeAddReplaceDeliveryByWarehouse
,
getAsReplaceGoodsPageToBeAddReplaceStorageByWarehouse
,
getAsReplaceGoodsPageToBeAddReturnDeliveryByWarehouse
,
getAsReplaceGoodsPageToBeAddReturnStorageByWarehouse
,
getAsReturnGoodsPageToBeAddReturnDeliveryByWarehouse
,
getAsReturnGoodsPageToBeAddReturnStorageByWarehouse
}
from
'@/services/AfterServiceV2Api'
;
import
{
getEnhanceProcessToBeAddDeliveryList
,
getEnhanceSupplierToBeAddStorageList
}
from
'@/services/EnhanceV2Api'
;
// import { getOrderPurchaseReceiptAddList } from '@/services/OrderV2Api';
import
moment
from
'moment'
;
import
moment
from
'moment'
;
// 获取采购入库单相关数据
// 获取采购入库单相关数据
export
const
fetchOrderPurchaseReceiptAddList
=
async
(
params
:
any
)
=>
{
export
const
fetchOrderPurchaseReceiptAddList
=
async
(
params
:
any
)
=>
{
const
res
=
await
PublicApi
.
getOrderPurchaseReceiptAddList
({
// const res = await
getOrderPurchaseReceiptAddList({
...
params
,
//
...params,
})
//
})
if
(
res
.
code
===
1000
)
{
//
if (res.code === 1000) {
return
{
//
return {
data
:
res
.
data
.
data
.
map
(
item
=>
({
//
data: res.data.data.map(item => ({
...
item
,
//
...item,
memberName
:
item
.
supplyMembersName
,
//
memberName: item.supplyMembersName,
membersId
:
item
.
supplyMembersId
,
//
membersId: item.supplyMembersId,
membersRoleId
:
item
.
supplyMembersRoleId
,
//
membersRoleId: item.supplyMembersRoleId,
})),
//
})),
total
:
res
.
data
.
totalCount
,
//
total: res.data.totalCount,
};
//
};
}
//
}
return
{
data
:
[],
total
:
0
};
//
return { data: [], total: 0 };
};
};
// 获取销售发货单相关数据
// 获取销售发货单相关数据
export
const
getOrderSalesInvoiceOrderList
=
async
(
params
:
any
)
=>
{
export
const
getOrderSalesInvoiceOrderList
=
async
(
params
:
any
)
=>
{
const
res
=
await
PublicApi
.
getOrderSalesInvoiceOrderList
({
const
res
=
await
getOrderSalesInvoiceOrderList
({
...
params
,
...
params
,
})
})
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
@@ -49,7 +51,7 @@ export const getOrderSalesInvoiceOrderList = async (params: any) => {
...
@@ -49,7 +51,7 @@ export const getOrderSalesInvoiceOrderList = async (params: any) => {
// 获取加工入库单单相关数据
// 获取加工入库单单相关数据
export
const
getMachiningWarehousingList
=
async
(
params
:
any
)
=>
{
export
const
getMachiningWarehousingList
=
async
(
params
:
any
)
=>
{
const
{
search
,
...
rest
}
=
params
;
const
{
search
,
...
rest
}
=
params
;
const
res
=
await
PublicApi
.
getEnhanceSupplierToBeAddStorageList
({
const
res
=
await
getEnhanceSupplierToBeAddStorageList
({
noticeNo
:
search
,
noticeNo
:
search
,
...
rest
,
...
rest
,
})
})
...
@@ -73,7 +75,7 @@ export const getMachiningWarehousingList = async (params: any) => {
...
@@ -73,7 +75,7 @@ export const getMachiningWarehousingList = async (params: any) => {
// 获取加工发货单单相关数据
// 获取加工发货单单相关数据
export
const
getMachiningDeliveryList
=
async
(
params
:
any
)
=>
{
export
const
getMachiningDeliveryList
=
async
(
params
:
any
)
=>
{
const
{
search
,
...
rest
}
=
params
;
const
{
search
,
...
rest
}
=
params
;
const
res
=
await
PublicApi
.
getEnhanceProcessToBeAddDeliveryList
({
const
res
=
await
getEnhanceProcessToBeAddDeliveryList
({
noticeNo
:
search
,
noticeNo
:
search
,
...
rest
,
...
rest
,
})
})
...
@@ -97,7 +99,7 @@ export const getMachiningDeliveryList = async (params: any) => {
...
@@ -97,7 +99,7 @@ export const getMachiningDeliveryList = async (params: any) => {
// 获取售后退货发货单单相关数据
// 获取售后退货发货单单相关数据
export
const
getRefundDeliveryList
=
async
(
params
:
any
)
=>
{
export
const
getRefundDeliveryList
=
async
(
params
:
any
)
=>
{
const
{
search
,
startTime
,
endTime
,
...
rest
}
=
params
;
const
{
search
,
startTime
,
endTime
,
...
rest
}
=
params
;
const
res
=
await
PublicApi
.
getAsReturnGoodsPageToBeAddReturnDeliveryByWarehouse
({
const
res
=
await
getAsReturnGoodsPageToBeAddReturnDeliveryByWarehouse
({
applyNo
:
search
,
applyNo
:
search
,
startTime
:
startTime
?
moment
(
+
startTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
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
,
endTime
:
endTime
?
moment
(
+
endTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
null
,
...
@@ -128,7 +130,7 @@ export const getRefundDeliveryList = async (params: any) => {
...
@@ -128,7 +130,7 @@ export const getRefundDeliveryList = async (params: any) => {
// 获取售后退货入库单单相关数据
// 获取售后退货入库单单相关数据
export
const
getRefundWarehousingList
=
async
(
params
:
any
)
=>
{
export
const
getRefundWarehousingList
=
async
(
params
:
any
)
=>
{
const
{
search
,
startTime
,
endTime
,
...
rest
}
=
params
;
const
{
search
,
startTime
,
endTime
,
...
rest
}
=
params
;
const
res
=
await
PublicApi
.
getAsReturnGoodsPageToBeAddReturnStorageByWarehouse
({
const
res
=
await
getAsReturnGoodsPageToBeAddReturnStorageByWarehouse
({
applyNo
:
search
,
applyNo
:
search
,
startTime
:
startTime
?
moment
(
+
startTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
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
,
endTime
:
endTime
?
moment
(
+
endTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
null
,
...
@@ -159,7 +161,7 @@ export const getRefundWarehousingList = async (params: any) => {
...
@@ -159,7 +161,7 @@ export const getRefundWarehousingList = async (params: any) => {
// 获取售后换货退货发货单单相关数据
// 获取售后换货退货发货单单相关数据
export
const
getExchangeReturnDeliveryList
=
async
(
params
:
any
)
=>
{
export
const
getExchangeReturnDeliveryList
=
async
(
params
:
any
)
=>
{
const
{
search
,
startTime
,
endTime
,
...
rest
}
=
params
;
const
{
search
,
startTime
,
endTime
,
...
rest
}
=
params
;
const
res
=
await
PublicApi
.
getAsReplaceGoodsPageToBeAddReturnDeliveryByWarehouse
({
const
res
=
await
getAsReplaceGoodsPageToBeAddReturnDeliveryByWarehouse
({
applyNo
:
search
,
applyNo
:
search
,
startTime
:
startTime
?
moment
(
+
startTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
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
,
endTime
:
endTime
?
moment
(
+
endTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
null
,
...
@@ -190,7 +192,7 @@ export const getExchangeReturnDeliveryList = async (params: any) => {
...
@@ -190,7 +192,7 @@ export const getExchangeReturnDeliveryList = async (params: any) => {
// 获取售后换货退货入库单单相关数据
// 获取售后换货退货入库单单相关数据
export
const
getExchangeReturnWarehousingList
=
async
(
params
:
any
)
=>
{
export
const
getExchangeReturnWarehousingList
=
async
(
params
:
any
)
=>
{
const
{
search
,
startTime
,
endTime
,
...
rest
}
=
params
;
const
{
search
,
startTime
,
endTime
,
...
rest
}
=
params
;
const
res
=
await
PublicApi
.
getAsReplaceGoodsPageToBeAddReturnStorageByWarehouse
({
const
res
=
await
getAsReplaceGoodsPageToBeAddReturnStorageByWarehouse
({
applyNo
:
search
,
applyNo
:
search
,
startTime
:
startTime
?
moment
(
+
startTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
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
,
endTime
:
endTime
?
moment
(
+
endTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
null
,
...
@@ -221,7 +223,7 @@ export const getExchangeReturnWarehousingList = async (params: any) => {
...
@@ -221,7 +223,7 @@ export const getExchangeReturnWarehousingList = async (params: any) => {
// 获取售后换货发货单单相关数据
// 获取售后换货发货单单相关数据
export
const
getExchangeDeliveryList
=
async
(
params
:
any
)
=>
{
export
const
getExchangeDeliveryList
=
async
(
params
:
any
)
=>
{
const
{
search
,
startTime
,
endTime
,
...
rest
}
=
params
;
const
{
search
,
startTime
,
endTime
,
...
rest
}
=
params
;
const
res
=
await
PublicApi
.
getAsReplaceGoodsPageToBeAddReplaceDeliveryByWarehouse
({
const
res
=
await
getAsReplaceGoodsPageToBeAddReplaceDeliveryByWarehouse
({
applyNo
:
search
,
applyNo
:
search
,
startTime
:
startTime
?
moment
(
+
startTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
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
,
endTime
:
endTime
?
moment
(
+
endTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
null
,
...
@@ -252,7 +254,7 @@ export const getExchangeDeliveryList = async (params: any) => {
...
@@ -252,7 +254,7 @@ export const getExchangeDeliveryList = async (params: any) => {
// 获取售后换货入库单单相关数据
// 获取售后换货入库单单相关数据
export
const
getExchangeWarehousingList
=
async
(
params
:
any
)
=>
{
export
const
getExchangeWarehousingList
=
async
(
params
:
any
)
=>
{
const
{
search
,
startTime
,
endTime
,
...
rest
}
=
params
;
const
{
search
,
startTime
,
endTime
,
...
rest
}
=
params
;
const
res
=
await
PublicApi
.
getAsReplaceGoodsPageToBeAddReplaceStorageByWarehouse
({
const
res
=
await
getAsReplaceGoodsPageToBeAddReplaceStorageByWarehouse
({
applyNo
:
search
,
applyNo
:
search
,
startTime
:
startTime
?
moment
(
+
startTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
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
,
endTime
:
endTime
?
moment
(
+
endTime
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
null
,
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsForm/index.tsx
View file @
5ab0e96b
This diff is collapsed.
Click to expand it.
src/pages/transaction/stockSellStorage/bills/components/BillsFormPage/effects/index.ts
View file @
5ab0e96b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2021-08-04 14:42:57
* @Date: 2021-08-04 14:42:57
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-
08-16 14:47:41
* @LastEditTime: 2021-
11-17 20:30:29
* @Description:
* @Description:
*/
*/
import
{
import
{
...
@@ -11,8 +11,8 @@ import {
...
@@ -11,8 +11,8 @@ import {
ISchemaFormActions
,
ISchemaFormActions
,
ISchemaFormAsyncActions
,
ISchemaFormAsyncActions
,
}
from
'@formily/antd'
;
}
from
'@formily/antd'
;
import
{
getProductInvoicesTypeAll
,
getProductWarehouseAll
}
from
'@/services/ProductV2Api'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
useBusinessEffects
}
from
'./useBusinessEffects'
;
import
{
useBusinessEffects
}
from
'./useBusinessEffects'
;
const
{
const
{
...
@@ -22,7 +22,7 @@ const {
...
@@ -22,7 +22,7 @@ const {
// 获取单据类型
// 获取单据类型
const
fetchInvoicesType
=
():
Promise
<
any
[]
>
=>
{
const
fetchInvoicesType
=
():
Promise
<
any
[]
>
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getProductInvoicesTypeAll
().
then
(
res
=>
{
getProductInvoicesTypeAll
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
resolve
(
res
.
data
);
}
}
...
@@ -36,7 +36,7 @@ const fetchInvoicesType = (): Promise<any[]> => {
...
@@ -36,7 +36,7 @@ const fetchInvoicesType = (): Promise<any[]> => {
// 获取仓库
// 获取仓库
const
fetchInventory
=
():
Promise
<
any
[]
>
=>
{
const
fetchInventory
=
():
Promise
<
any
[]
>
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getProductWarehouseAll
().
then
(
res
=>
{
getProductWarehouseAll
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
resolve
(
res
.
data
);
}
}
...
...
src/pages/transaction/stockSellStorage/bills/index.tsx
View file @
5ab0e96b
...
@@ -6,6 +6,7 @@ import { PlusOutlined, DownOutlined, DeleteOutlined, RollbackOutlined, SnippetsO
...
@@ -6,6 +6,7 @@ import { PlusOutlined, DownOutlined, DeleteOutlined, RollbackOutlined, SnippetsO
import
{
StandardTable
}
from
'god'
;
import
{
StandardTable
}
from
'god'
;
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
getProductInvoicesList
,
getProductInvoicesTypeAll
,
getProductWarehouseAll
,
postProductInvoicesBatchDelete
,
postProductInvoicesBatchReviewAll
,
postProductInvoicesBatchAgainstReview
}
from
'@/services/ProductV2Api'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
...
@@ -13,7 +14,6 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
...
@@ -13,7 +14,6 @@ import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilte
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
UploadModal
from
'@/components/UploadModal'
;
import
UploadModal
from
'@/components/UploadModal'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
DOC_STATUS_UNREVIEWED
,
DOC_STATUS_REVIEWED
,
DOC_STATUS
}
from
'@/constants/commodity'
;
import
{
DOC_STATUS_UNREVIEWED
,
DOC_STATUS_REVIEWED
,
DOC_STATUS
}
from
'@/constants/commodity'
;
import
{
billsSchema
}
from
'./schema'
;
import
{
billsSchema
}
from
'./schema'
;
...
@@ -27,7 +27,7 @@ const Bills: React.FC<{}> = () => {
...
@@ -27,7 +27,7 @@ const Bills: React.FC<{}> = () => {
const
[
batchLoading
,
setBatchLoading
]
=
useState
(
false
);
const
[
batchLoading
,
setBatchLoading
]
=
useState
(
false
);
const
fetchListData
=
async
(
params
:
any
)
=>
{
const
fetchListData
=
async
(
params
:
any
)
=>
{
const
res
=
await
PublicApi
.
getProductInvoicesList
(
params
);
const
res
=
await
getProductInvoicesList
(
params
);
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
return
res
.
data
;
return
res
.
data
;
}
}
...
@@ -36,7 +36,7 @@ const Bills: React.FC<{}> = () => {
...
@@ -36,7 +36,7 @@ const Bills: React.FC<{}> = () => {
// 获取单据类型
// 获取单据类型
const
fetchInvoicesType
=
async
()
=>
{
const
fetchInvoicesType
=
async
()
=>
{
const
{
data
,
code
}
=
await
PublicApi
.
getProductInvoicesTypeAll
();
const
{
data
,
code
}
=
await
getProductInvoicesTypeAll
();
if
(
code
===
1000
)
{
if
(
code
===
1000
)
{
return
data
?.
map
(
v
=>
({
label
:
v
.
name
,
value
:
v
.
id
}));
return
data
?.
map
(
v
=>
({
label
:
v
.
name
,
value
:
v
.
id
}));
}
}
...
@@ -45,7 +45,7 @@ const Bills: React.FC<{}> = () => {
...
@@ -45,7 +45,7 @@ const Bills: React.FC<{}> = () => {
// 获取对应仓库
// 获取对应仓库
const
fetchInventory
=
async
()
=>
{
const
fetchInventory
=
async
()
=>
{
const
{
data
,
code
}
=
await
PublicApi
.
getProductWarehouseAll
();
const
{
data
,
code
}
=
await
getProductWarehouseAll
();
if
(
code
===
1000
)
{
if
(
code
===
1000
)
{
return
data
?.
map
(
v
=>
({
label
:
v
.
name
,
value
:
v
.
id
}));
return
data
?.
map
(
v
=>
({
label
:
v
.
name
,
value
:
v
.
id
}));
}
}
...
@@ -54,7 +54,7 @@ const Bills: React.FC<{}> = () => {
...
@@ -54,7 +54,7 @@ const Bills: React.FC<{}> = () => {
const
deleteInvoices
=
(
ids
:
number
[],
callback
?:
()
=>
void
)
=>
{
const
deleteInvoices
=
(
ids
:
number
[],
callback
?:
()
=>
void
)
=>
{
setBatchLoading
(
true
);
setBatchLoading
(
true
);
PublicApi
.
postProductInvoicesBatchDelete
({
postProductInvoicesBatchDelete
({
ids
,
ids
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
...
@@ -70,7 +70,7 @@ const Bills: React.FC<{}> = () => {
...
@@ -70,7 +70,7 @@ const Bills: React.FC<{}> = () => {
const
auditInvoices
=
(
ids
:
number
[],
callback
?:
()
=>
void
)
=>
{
const
auditInvoices
=
(
ids
:
number
[],
callback
?:
()
=>
void
)
=>
{
setBatchLoading
(
true
);
setBatchLoading
(
true
);
PublicApi
.
postProductInvoicesBatchReviewAll
({
postProductInvoicesBatchReviewAll
({
ids
,
ids
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
...
@@ -86,7 +86,7 @@ const Bills: React.FC<{}> = () => {
...
@@ -86,7 +86,7 @@ const Bills: React.FC<{}> = () => {
const
counterclaimInvoices
=
(
ids
:
number
[],
callback
?:
()
=>
void
)
=>
{
const
counterclaimInvoices
=
(
ids
:
number
[],
callback
?:
()
=>
void
)
=>
{
setBatchLoading
(
true
);
setBatchLoading
(
true
);
PublicApi
.
postProductInvoicesBatchAgainstReview
({
postProductInvoicesBatchAgainstReview
({
ids
,
ids
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
if
(
res
.
code
!==
1000
)
{
...
...
src/pages/transaction/stockSellStorage/billsType/components/BillTypeForm/index.tsx
View file @
5ab0e96b
...
@@ -6,7 +6,7 @@ import { SaveOutlined } from '@ant-design/icons';
...
@@ -6,7 +6,7 @@ import { SaveOutlined } from '@ant-design/icons';
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
ReutrnEle
from
'@/components/ReturnEle'
;
import
ReutrnEle
from
'@/components/ReturnEle'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getProductInvoicesTypeDetails
,
postProductInvoicesTypeAdd
,
postProductInvoicesTypeUpdate
}
from
'@/services/ProductV2A
pi'
;
import
{
billsTypeDetailSchema
}
from
'./schema'
;
import
{
billsTypeDetailSchema
}
from
'./schema'
;
const
formActions
=
createFormActions
();
const
formActions
=
createFormActions
();
...
@@ -35,7 +35,7 @@ const BillTypeForm: React.FC<BillTypeFormProps> = ({
...
@@ -35,7 +35,7 @@ const BillTypeForm: React.FC<BillTypeFormProps> = ({
return
;
return
;
}
}
setInfoLoading
(
true
);
setInfoLoading
(
true
);
const
infoRes
=
await
PublicApi
.
getProductInvoicesTypeDetails
({
const
infoRes
=
await
getProductInvoicesTypeDetails
({
id
,
id
,
});
});
...
@@ -55,7 +55,7 @@ const BillTypeForm: React.FC<BillTypeFormProps> = ({
...
@@ -55,7 +55,7 @@ const BillTypeForm: React.FC<BillTypeFormProps> = ({
return
;
return
;
}
}
setSubmitLoading
(
true
);
setSubmitLoading
(
true
);
PublicApi
.
postProductInvoicesTypeAdd
({
...
value
})
postProductInvoicesTypeAdd
({
...
value
})
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
@@ -71,7 +71,7 @@ const BillTypeForm: React.FC<BillTypeFormProps> = ({
...
@@ -71,7 +71,7 @@ const BillTypeForm: React.FC<BillTypeFormProps> = ({
return
;
return
;
}
}
setSubmitLoading
(
true
);
setSubmitLoading
(
true
);
PublicApi
.
postProductInvoicesTypeUpdate
({
postProductInvoicesTypeUpdate
({
id
:
id
,
id
:
id
,
...
value
,
...
value
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
...
src/pages/transaction/stockSellStorage/billsType/index.tsx
View file @
5ab0e96b
...
@@ -10,7 +10,7 @@ import {
...
@@ -10,7 +10,7 @@ import {
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
StandardTable
}
from
'god'
;
import
{
StandardTable
}
from
'god'
;
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getProductInvoicesTypeList
,
postProductInvoicesTypeStateUpdate
,
postProductInvoicesTypeDelete
}
from
'@/services/ProductV2A
pi'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
StatusSwitch
from
'@/components/StatusSwitch'
;
import
StatusSwitch
from
'@/components/StatusSwitch'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
...
@@ -104,7 +104,7 @@ const billsType: React.FC<{}> = () => {
...
@@ -104,7 +104,7 @@ const billsType: React.FC<{}> = () => {
const
fetchListData
=
(
params
:
any
)
=>
{
const
fetchListData
=
(
params
:
any
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getProductInvoicesTypeList
(
params
)
getProductInvoicesTypeList
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
resolve
(
res
.
data
);
...
@@ -118,7 +118,7 @@ const billsType: React.FC<{}> = () => {
...
@@ -118,7 +118,7 @@ const billsType: React.FC<{}> = () => {
};
};
const
handleModify
=
(
record
:
any
)
=>
{
const
handleModify
=
(
record
:
any
)
=>
{
PublicApi
.
postProductInvoicesTypeStateUpdate
({
postProductInvoicesTypeStateUpdate
({
id
:
record
.
id
,
id
:
record
.
id
,
state
:
record
.
state
===
DOC_TYPE_STATUS_EFFECTIVE
?
DOC_TYPE_STATUS_INVALID
:
DOC_TYPE_STATUS_EFFECTIVE
,
state
:
record
.
state
===
DOC_TYPE_STATUS_EFFECTIVE
?
DOC_TYPE_STATUS_INVALID
:
DOC_TYPE_STATUS_EFFECTIVE
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
@@ -129,7 +129,7 @@ const billsType: React.FC<{}> = () => {
...
@@ -129,7 +129,7 @@ const billsType: React.FC<{}> = () => {
};
};
const
handleDelete
=
record
=>
{
const
handleDelete
=
record
=>
{
PublicApi
.
postProductInvoicesTypeDelete
({
postProductInvoicesTypeDelete
({
id
:
record
.
id
,
id
:
record
.
id
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
...
src/pages/transaction/stockSellStorage/inventory/index.tsx
View file @
5ab0e96b
...
@@ -12,7 +12,7 @@ import NiceForm from '@/components/NiceForm';
...
@@ -12,7 +12,7 @@ import NiceForm from '@/components/NiceForm';
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getProductInventoryList
,
getProductWarehouseAll
,
postProductInventorySafetyUpdate
}
from
'@/services/ProductV2A
pi'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
inventorySchema
,
safetyModalSchema
}
from
'./schema'
;
import
{
inventorySchema
,
safetyModalSchema
}
from
'./schema'
;
import
styles
from
'./index.less'
;
import
styles
from
'./index.less'
;
...
@@ -105,7 +105,7 @@ const Inventory: React.FC<{}> = () => {
...
@@ -105,7 +105,7 @@ const Inventory: React.FC<{}> = () => {
const
fetchListData
=
(
params
:
any
)
=>
{
const
fetchListData
=
(
params
:
any
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getProductInventoryList
(
params
)
getProductInventoryList
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
resolve
(
res
.
data
);
...
@@ -120,7 +120,7 @@ const Inventory: React.FC<{}> = () => {
...
@@ -120,7 +120,7 @@ const Inventory: React.FC<{}> = () => {
// 获取对应仓库
// 获取对应仓库
const
fetchInventory
=
async
()
=>
{
const
fetchInventory
=
async
()
=>
{
const
{
data
,
code
}
=
await
PublicApi
.
getProductWarehouseAll
();
const
{
data
,
code
}
=
await
getProductWarehouseAll
();
if
(
code
===
1000
)
{
if
(
code
===
1000
)
{
return
data
.
map
(
v
=>
({
label
:
v
.
name
,
value
:
v
.
id
}));
return
data
.
map
(
v
=>
({
label
:
v
.
name
,
value
:
v
.
id
}));
}
}
...
@@ -131,7 +131,7 @@ const Inventory: React.FC<{}> = () => {
...
@@ -131,7 +131,7 @@ const Inventory: React.FC<{}> = () => {
const
handleSubmit
=
async
values
=>
{
const
handleSubmit
=
async
values
=>
{
setConfirmLoading
(
true
);
setConfirmLoading
(
true
);
const
res
=
await
PublicApi
.
postProductInventorySafetyUpdate
({
const
res
=
await
postProductInventorySafetyUpdate
({
id
:
current
.
id
,
id
:
current
.
id
,
safetyInvoices
:
+
values
.
safetyInvoices
,
safetyInvoices
:
+
values
.
safetyInvoices
,
});
});
...
...
src/pages/transaction/stockSellStorage/warehouse/components/WarehouseForm/index.tsx
View file @
5ab0e96b
...
@@ -9,9 +9,11 @@ import NiceForm from '@/components/NiceForm';
...
@@ -9,9 +9,11 @@ import NiceForm from '@/components/NiceForm';
import
{
warehouseDetailSchema
}
from
'./schema'
;
import
{
warehouseDetailSchema
}
from
'./schema'
;
import
{
useLinkEnumEffect
}
from
'@/components/NiceForm/linkages/linkEnum'
;
import
{
useLinkEnumEffect
}
from
'@/components/NiceForm/linkages/linkEnum'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
getManageAreaAll
,
getManageCountryAreaGetTelCode
}
from
'@/services/ManageV2Api'
;
import
{
getProductWarehouseDetails
,
postProductWarehouseAdd
,
postProductWarehouseUpdate
}
from
'@/services/ProductV2Api'
;
import
styles
from
'./index.less'
;
import
styles
from
'./index.less'
;
const
formActions
=
createFormActions
();
const
formActions
=
createFormActions
();
const
{
const
{
onFormInputChange$
,
onFormInputChange$
,
...
@@ -36,11 +38,11 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
...
@@ -36,11 +38,11 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
const
getWarehouseInfo
=
async
()
=>
{
const
getWarehouseInfo
=
async
()
=>
{
if
(
id
)
{
if
(
id
)
{
setInfoLoading
(
true
);
setInfoLoading
(
true
);
const
infoRes
=
await
PublicApi
.
getProductWarehouseDetails
({
const
infoRes
=
await
getProductWarehouseDetails
({
id
,
id
,
});
});
const
areaRes
=
await
PublicApi
.
getManageAreaAll
();
const
areaRes
=
await
getManageAreaAll
();
if
(
areaRes
.
code
===
1000
)
{
if
(
areaRes
.
code
===
1000
)
{
const
{
data
}
=
areaRes
;
const
{
data
}
=
areaRes
;
formActions
.
setFieldState
(
'provinceId'
,
targetState
=>
{
formActions
.
setFieldState
(
'provinceId'
,
targetState
=>
{
...
@@ -57,7 +59,7 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
...
@@ -57,7 +59,7 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
}
}
setInfoLoading
(
false
);
setInfoLoading
(
false
);
}
else
{
}
else
{
const
areaRes
=
await
PublicApi
.
getManageAreaAll
();
const
areaRes
=
await
getManageAreaAll
();
if
(
areaRes
.
code
===
1000
)
{
if
(
areaRes
.
code
===
1000
)
{
const
{
data
}
=
areaRes
;
const
{
data
}
=
areaRes
;
formActions
.
setFieldState
(
'provinceId'
,
targetState
=>
{
formActions
.
setFieldState
(
'provinceId'
,
targetState
=>
{
...
@@ -77,7 +79,7 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
...
@@ -77,7 +79,7 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
// 获取手机code
// 获取手机code
const
fetchTelCode
=
async
()
=>
{
const
fetchTelCode
=
async
()
=>
{
const
{
data
,
code
}
=
await
PublicApi
.
getManageCountryAreaGetTelCode
();
const
{
data
,
code
}
=
await
getManageCountryAreaGetTelCode
();
if
(
code
===
1000
)
{
if
(
code
===
1000
)
{
return
data
;
return
data
;
}
}
...
@@ -90,7 +92,7 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
...
@@ -90,7 +92,7 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
return
;
return
;
}
}
setSubmitLoading
(
true
);
setSubmitLoading
(
true
);
PublicApi
.
postProductWarehouseAdd
({
...
value
}).
then
(
res
=>
{
postProductWarehouseAdd
({
...
value
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
history
.
goBack
();
history
.
goBack
();
...
@@ -104,7 +106,7 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
...
@@ -104,7 +106,7 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
return
;
return
;
}
}
setSubmitLoading
(
true
);
setSubmitLoading
(
true
);
PublicApi
.
postProductWarehouseUpdate
({
postProductWarehouseUpdate
({
id
:
id
,
id
:
id
,
...
value
,
...
value
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
...
src/pages/transaction/stockSellStorage/warehouse/index.tsx
View file @
5ab0e96b
...
@@ -11,7 +11,7 @@ import { StandardTable } from 'god';
...
@@ -11,7 +11,7 @@ import { StandardTable } from 'god';
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getProductWarehouseList
,
postProductWarehouseStartRoStop
,
postProductWarehouseDelete
}
from
'@/services/ProductV2A
pi'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
StatusSwitch
from
'@/components/StatusSwitch'
;
import
StatusSwitch
from
'@/components/StatusSwitch'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
NiceForm
from
'@/components/NiceForm'
;
...
@@ -109,7 +109,7 @@ const WareHouse: React.FC<{}> = () => {
...
@@ -109,7 +109,7 @@ const WareHouse: React.FC<{}> = () => {
const
fetchListData
=
(
params
:
any
)
=>
{
const
fetchListData
=
(
params
:
any
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getProductWarehouseList
(
params
)
getProductWarehouseList
(
params
)
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
resolve
(
res
.
data
);
...
@@ -123,7 +123,7 @@ const WareHouse: React.FC<{}> = () => {
...
@@ -123,7 +123,7 @@ const WareHouse: React.FC<{}> = () => {
};
};
const
handleModify
=
record
=>
{
const
handleModify
=
record
=>
{
PublicApi
.
postProductWarehouseStartRoStop
({
postProductWarehouseStartRoStop
({
id
:
record
.
id
,
id
:
record
.
id
,
state
:
record
.
state
===
POSITION_STATUS_EFFECTIVE
?
POSITION_STATUS_INVALID
:
POSITION_STATUS_EFFECTIVE
,
state
:
record
.
state
===
POSITION_STATUS_EFFECTIVE
?
POSITION_STATUS_INVALID
:
POSITION_STATUS_EFFECTIVE
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
@@ -134,7 +134,7 @@ const WareHouse: React.FC<{}> = () => {
...
@@ -134,7 +134,7 @@ const WareHouse: React.FC<{}> = () => {
};
};
const
handleDelete
=
record
=>
{
const
handleDelete
=
record
=>
{
PublicApi
.
postProductWarehouseDelete
({
postProductWarehouseDelete
({
id
:
record
.
id
,
id
:
record
.
id
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
...
src/pages/transaction/supplierEvaluation/analysis/index.tsx
View file @
5ab0e96b
...
@@ -3,7 +3,7 @@ import { Tabs, Row, Col } from 'antd';
...
@@ -3,7 +3,7 @@ import { Tabs, Row, Col } from 'antd';
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
observer
,
inject
}
from
'mobx-react'
;
import
{
observer
,
inject
}
from
'mobx-react'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getMemberCommentSupplyCountTradeSummary
,
getMemberCommentSupplyCountTradeHistoryPage
,
getMemberCommentSupplyReceiveTradeHistoryPage
,
getMemberCommentSupplySendTradeHistoryPage
,
postMemberCommentSupplyReceiveTradeHistoryReply
}
from
'@/services/MemberV2A
pi'
;
import
{
IEvaluationModule
}
from
'@/module/evaluationModule'
;
import
{
IEvaluationModule
}
from
'@/module/evaluationModule'
;
import
MellowCard
from
'@/components/MellowCard'
;
import
MellowCard
from
'@/components/MellowCard'
;
import
PolymericTable
from
'@/components/PolymericTable'
;
import
PolymericTable
from
'@/components/PolymericTable'
;
...
@@ -162,7 +162,7 @@ const Analysis: React.FC<AnalysisProps> = ({
...
@@ -162,7 +162,7 @@ const Analysis: React.FC<AnalysisProps> = ({
// 获取评价汇总
// 获取评价汇总
const
getTradeSummary
=
()
=>
{
const
getTradeSummary
=
()
=>
{
PublicApi
.
getMemberCommentSupplyCountTradeSummary
().
then
(
res
=>
{
getMemberCommentSupplyCountTradeSummary
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
const
evaluate
=
summaryEvaluate
(
res
.
data
.
rows
);
const
evaluate
=
summaryEvaluate
(
res
.
data
.
rows
);
const
evaluatePieData
=
getSummaryEvaluatePie
(
evaluate
);
const
evaluatePieData
=
getSummaryEvaluatePie
(
evaluate
);
...
@@ -178,7 +178,7 @@ const Analysis: React.FC<AnalysisProps> = ({
...
@@ -178,7 +178,7 @@ const Analysis: React.FC<AnalysisProps> = ({
const
getTradeHistory
=
(
params
:
ListParams
):
Promise
<
RecordRes
>
=>
{
const
getTradeHistory
=
(
params
:
ListParams
):
Promise
<
RecordRes
>
=>
{
const
{
star
,
...
rest
}
=
params
;
const
{
star
,
...
rest
}
=
params
;
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getMemberCommentSupplyCountTradeHistoryPage
({
getMemberCommentSupplyCountTradeHistoryPage
({
...
rest
,
...
rest
,
starLevel
:
params
.
star
,
starLevel
:
params
.
star
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
@@ -211,7 +211,7 @@ const Analysis: React.FC<AnalysisProps> = ({
...
@@ -211,7 +211,7 @@ const Analysis: React.FC<AnalysisProps> = ({
// 获取收到的评价列表
// 获取收到的评价列表
const
getReceivedList
=
(
params
:
ListParams
):
Promise
<
RecordRes
>
=>
{
const
getReceivedList
=
(
params
:
ListParams
):
Promise
<
RecordRes
>
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getMemberCommentSupplyReceiveTradeHistoryPage
({
getMemberCommentSupplyReceiveTradeHistoryPage
({
...
params
,
...
params
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
@@ -245,7 +245,7 @@ const Analysis: React.FC<AnalysisProps> = ({
...
@@ -245,7 +245,7 @@ const Analysis: React.FC<AnalysisProps> = ({
const
getSentList
=
(
params
:
ListParams
):
Promise
<
RecordRes
>
=>
{
const
getSentList
=
(
params
:
ListParams
):
Promise
<
RecordRes
>
=>
{
const
{
memberName
,
...
rest
}
=
params
;
const
{
memberName
,
...
rest
}
=
params
;
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getMemberCommentSupplySendTradeHistoryPage
({
getMemberCommentSupplySendTradeHistoryPage
({
...
rest
,
...
rest
,
subMemberName
:
memberName
,
subMemberName
:
memberName
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
@@ -330,7 +330,7 @@ const Analysis: React.FC<AnalysisProps> = ({
...
@@ -330,7 +330,7 @@ const Analysis: React.FC<AnalysisProps> = ({
const
handleExplainSubmit
=
(
values
:
ValuesType
)
=>
{
const
handleExplainSubmit
=
(
values
:
ValuesType
)
=>
{
setExplainConfirmLoading
(
true
);
setExplainConfirmLoading
(
true
);
PublicApi
.
postMemberCommentSupplyReceiveTradeHistoryReply
({
postMemberCommentSupplyReceiveTradeHistoryReply
({
id
:
currentRecordRef
.
current
.
id
,
id
:
currentRecordRef
.
current
.
id
,
content
:
values
.
content
,
content
:
values
.
content
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
...
...
src/pages/transaction/supplierEvaluation/received/detail/index.tsx
View file @
5ab0e96b
...
@@ -10,7 +10,7 @@ import { PageHeaderWrapper } from '@ant-design/pro-layout';
...
@@ -10,7 +10,7 @@ import { PageHeaderWrapper } from '@ant-design/pro-layout';
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getMemberCommentSupplyReceiveTradeHistoryGet
}
from
'@/services/MemberV2A
pi'
;
import
{
normalizeFiledata
,
FileData
}
from
'@/utils'
;
import
{
normalizeFiledata
,
FileData
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
NiceForm
from
'@/components/NiceForm'
;
...
@@ -53,7 +53,7 @@ const ReceivedDetail: React.FC = () => {
...
@@ -53,7 +53,7 @@ const ReceivedDetail: React.FC = () => {
return
;
return
;
}
}
setEvaluationInfoLoading
(
true
);
setEvaluationInfoLoading
(
true
);
PublicApi
.
getMemberCommentSupplyReceiveTradeHistoryGet
({
getMemberCommentSupplyReceiveTradeHistoryGet
({
id
,
id
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
...
src/pages/transaction/supplierEvaluation/sent/components/DetailInfo/index.tsx
View file @
5ab0e96b
...
@@ -11,7 +11,7 @@ import { FormOutlined } from '@ant-design/icons';
...
@@ -11,7 +11,7 @@ import { FormOutlined } from '@ant-design/icons';
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getMemberCommentSupplySendTradeHistoryGet
,
postMemberCommentSupplySendTradeHistoryUpdate
}
from
'@/services/MemberV2A
pi'
;
import
{
normalizeFiledata
,
FileData
}
from
'@/utils'
;
import
{
normalizeFiledata
,
FileData
}
from
'@/utils'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
NiceForm
from
'@/components/NiceForm'
;
...
@@ -66,7 +66,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
...
@@ -66,7 +66,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
return
;
return
;
}
}
setEvaluationInfoLoading
(
true
);
setEvaluationInfoLoading
(
true
);
PublicApi
.
getMemberCommentSupplySendTradeHistoryGet
({
getMemberCommentSupplySendTradeHistoryGet
({
id
,
id
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
@@ -121,7 +121,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
...
@@ -121,7 +121,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
return
;
return
;
}
}
PublicApi
.
postMemberCommentSupplySendTradeHistoryUpdate
(
payload
[
0
])
postMemberCommentSupplySendTradeHistoryUpdate
(
payload
[
0
])
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
src/pages/transaction/supplierEvaluation/unevaluated/evaluate/index.tsx
View file @
5ab0e96b
...
@@ -13,8 +13,7 @@ import { history, Prompt } from 'umi';
...
@@ -13,8 +13,7 @@ import { history, Prompt } from 'umi';
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
usePageStatus
}
from
'@/hooks/usePageStatus'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
getMemberCommentSupplyOrderTradeDetail
,
GetMemberCommentSupplyOrderTradeDetailResponse
,
postMemberCommentSupplyOrderTradeSubmit
}
from
'@/services/MemberV2Api'
;
import
{
GetMemberCommentSupplyOrderTradeDetailResponse
}
from
'@/services/MemberV2Api'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
AvatarWrap
from
'@/components/AvatarWrap'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
normalizeUnevaluatedList
}
from
'../../../purchaserEvaluation/utils'
;
import
{
normalizeUnevaluatedList
}
from
'../../../purchaserEvaluation/utils'
;
...
@@ -56,7 +55,7 @@ const EvaluateOrder: React.FC = () => {
...
@@ -56,7 +55,7 @@ const EvaluateOrder: React.FC = () => {
return
;
return
;
}
}
setInfoLoading
(
true
);
setInfoLoading
(
true
);
PublicApi
.
getMemberCommentSupplyOrderTradeDetail
({
getMemberCommentSupplyOrderTradeDetail
({
id
,
id
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
...
@@ -102,7 +101,7 @@ const EvaluateOrder: React.FC = () => {
...
@@ -102,7 +101,7 @@ const EvaluateOrder: React.FC = () => {
};
};
});
});
PublicApi
.
postMemberCommentSupplyOrderTradeSubmit
({
postMemberCommentSupplyOrderTradeSubmit
({
orderId
:
orderInfo
.
orderId
,
orderId
:
orderInfo
.
orderId
,
commentSubmitDetailList
:
payload
,
commentSubmitDetailList
:
payload
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
...
...
src/pages/transaction/supplierEvaluation/unevaluated/index.tsx
View file @
5ab0e96b
...
@@ -8,7 +8,7 @@ import { createFormActions } from '@formily/antd';
...
@@ -8,7 +8,7 @@ import { createFormActions } from '@formily/antd';
import
moment
from
'moment'
;
import
moment
from
'moment'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getMemberOrderCommentVendorPage
}
from
'@/services/MemberV2A
pi'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
StatusTag
from
'@/components/StatusTag'
;
import
StatusTag
from
'@/components/StatusTag'
;
...
@@ -104,7 +104,7 @@ const Unevaluated: React.FC = () => {
...
@@ -104,7 +104,7 @@ const Unevaluated: React.FC = () => {
createTimeEnd
=
createTimeEnd
?
moment
(
+
createTimeEnd
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
undefined
;
createTimeEnd
=
createTimeEnd
?
moment
(
+
createTimeEnd
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
undefined
;
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getMemberOrderCommentVendorPage
({
getMemberOrderCommentVendorPage
({
createTimeStart
,
createTimeStart
,
createTimeEnd
,
createTimeEnd
,
...
rest
...
rest
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment