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
linweijiong
jinfa-platform
Commits
b689cd0d
Commit
b689cd0d
authored
Apr 21, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 修改接口名
parent
5fcefe2b
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
40 additions
and
40 deletions
+40
-40
index.ts
src/components/ModalTable/schema/index.ts
+1
-1
index.tsx
src/pages/logistics/addLogistics/index.tsx
+4
-4
schema.ts
src/pages/logistics/components/schema.ts
+1
-1
sumbitOrderModal.tsx
src/pages/logistics/components/sumbitOrderModal.tsx
+1
-1
index.ts
...ckSellStorage/bills/components/BillsForm/effects/index.ts
+2
-2
index.tsx
...ion/stockSellStorage/bills/components/BillsForm/index.tsx
+10
-10
index.tsx
src/pages/transaction/stockSellStorage/bills/index.tsx
+6
-6
index.tsx
...ckSellStorage/billsType/components/BillTypeForm/index.tsx
+3
-3
index.tsx
src/pages/transaction/stockSellStorage/billsType/index.tsx
+3
-3
index.tsx
src/pages/transaction/stockSellStorage/inventory/index.tsx
+3
-3
index.tsx
...kSellStorage/warehouse/components/WarehouseForm/index.tsx
+3
-3
index.tsx
src/pages/transaction/stockSellStorage/warehouse/index.tsx
+3
-3
No files found.
src/components/ModalTable/schema/index.ts
View file @
b689cd0d
...
...
@@ -791,7 +791,7 @@ export const logisticsDeliverySearchSchema: ISchema = {
"x-component"
:
'SearchSelect'
,
'x-component-props'
:
{
placeholder
:
'单据类型'
,
fetchSearch
:
PublicApi
.
get
Warehouse
InvoicesTypeAll
,
fetchSearch
:
PublicApi
.
get
Product
InvoicesTypeAll
,
style
:
{
width
:
160
}
...
...
src/pages/logistics/addLogistics/index.tsx
View file @
b689cd0d
...
...
@@ -182,7 +182,7 @@ const AddLogistics: React.FC<{}> = () => {
}).
catch
(
error
=>
console
.
log
(
error
));
switch
(
Number
(
createType
))
{
case
2
:
PublicApi
.
get
Warehouse
InvoicesDetails
({
invoicesId
:
id
}).
then
((
res
:
any
)
=>
{
PublicApi
.
get
Product
InvoicesDetails
({
invoicesId
:
id
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
1000
)
{
const
obj
=
{
receiverName
:
res
.
data
.
receiverName
,
...
...
@@ -373,7 +373,7 @@ const AddLogistics: React.FC<{}> = () => {
switch
(
Number
(
createType
))
{
case
1
:
case
2
:
PublicApi
.
get
Warehouse
InvoicesProductList
({
...
params
,
invoicesId
:
query
.
shipmentOrderId
?
query
.
shipmentOrderId
:
query
.
relevanceOrderId
}).
then
((
res
:
any
)
=>
{
PublicApi
.
get
Product
InvoicesProductList
({
...
params
,
invoicesId
:
query
.
shipmentOrderId
?
query
.
shipmentOrderId
:
query
.
relevanceOrderId
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
1000
)
{
res
.
data
.
data
.
forEach
(
item
=>
{
item
.
category
=
item
.
categoryName
...
...
@@ -385,7 +385,7 @@ const AddLogistics: React.FC<{}> = () => {
})
break
;
case
3
:
PublicApi
.
get
Warehouse
InvoicesProductList
({
...
params
,
invoicesId
:
query
.
shipmentOrderId
?
query
.
shipmentOrderId
:
query
.
relevanceOrderId
}).
then
((
res
:
any
)
=>
{
PublicApi
.
get
Product
InvoicesProductList
({
...
params
,
invoicesId
:
query
.
shipmentOrderId
?
query
.
shipmentOrderId
:
query
.
relevanceOrderId
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
===
1000
)
{
res
.
data
.
data
.
forEach
(
item
=>
{
item
.
category
=
item
.
categoryName
...
...
@@ -495,7 +495,7 @@ const AddLogistics: React.FC<{}> = () => {
/** 选择发货单 列表数据 */
const
fetchShippingData
=
(
params
:
any
)
=>
{
return
new
Promise
(
resolve
=>
{
PublicApi
.
get
Warehouse
InvoicesList
({
...
params
}).
then
(
res
=>
{
PublicApi
.
get
Product
InvoicesList
({
...
params
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
)
}
...
...
src/pages/logistics/components/schema.ts
View file @
b689cd0d
...
...
@@ -47,7 +47,7 @@ export const deliveryNumberSchema: ISchema = {
"x-component-props"
:
{
placeholder
:
'请选择单据类型'
,
className
:
'fixed-ant-selected-down'
,
fetchSearch
:
PublicApi
.
get
Warehouse
InvoicesTypeAll
,
fetchSearch
:
PublicApi
.
get
Product
InvoicesTypeAll
,
style
:
{
width
:
160
}
...
...
src/pages/logistics/components/sumbitOrderModal.tsx
View file @
b689cd0d
...
...
@@ -122,7 +122,7 @@ const listDialog: React.FC<Params> = (props) => {
}
if
(
props
.
type
===
2
){
//发货单 仓库服务 -进销存-单据列表
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
get
Warehouse
InvoicesList
({
...
params
}).
then
(
res
=>
{
PublicApi
.
get
Product
InvoicesList
({
...
params
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
})
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsForm/effects/index.ts
View file @
b689cd0d
...
...
@@ -5,7 +5,7 @@ import { PublicApi } from '@/services/api';
// 获取单据类型
const
fetchInvoicesType
=
():
Promise
<
any
[]
>
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
get
Warehouse
InvoicesTypeAll
().
then
(
res
=>
{
PublicApi
.
get
Product
InvoicesTypeAll
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
}
...
...
@@ -19,7 +19,7 @@ const fetchInvoicesType = (): Promise<any[]> => {
// 获取仓库
const
fetchInventory
=
():
Promise
<
any
[]
>
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
get
Warehouse
WarehouseAll
().
then
(
res
=>
{
PublicApi
.
get
Product
WarehouseAll
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
}
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsForm/index.tsx
View file @
b689cd0d
...
...
@@ -167,7 +167,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
return
;
}
setInfoLoading
(
true
);
PublicApi
.
get
Warehouse
InvoicesDetails
({
PublicApi
.
get
Product
InvoicesDetails
({
invoicesId
:
`
${
id
}
`
,
invoicesNo
,
}).
then
(
res
=>
{
...
...
@@ -852,7 +852,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
if
(
!
isEdit
)
{
return
;
}
PublicApi
.
post
Warehouse
InvoicesUpdata
({
PublicApi
.
post
Product
InvoicesUpdata
({
id
:
+
id
,
invoicesAbstract
:
rest
.
invoicesAbstract
,
inventoryId
:
rest
.
inventoryId
,
...
...
@@ -962,7 +962,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
if
(
!
isEdit
)
{
return
;
}
PublicApi
.
post
Warehouse
InvoicesUpdata
({
PublicApi
.
post
Product
InvoicesUpdata
({
id
:
+
id
,
invoicesAbstract
:
rest
.
invoicesAbstract
,
inventoryId
:
rest
.
inventoryId
,
...
...
@@ -1061,7 +1061,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
if
(
!
isEdit
)
{
return
;
}
PublicApi
.
post
Warehouse
InvoicesUpdata
({
PublicApi
.
post
Product
InvoicesUpdata
({
id
:
+
id
,
invoicesAbstract
:
rest
.
invoicesAbstract
,
inventoryId
:
rest
.
inventoryId
,
...
...
@@ -1160,7 +1160,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
if
(
!
isEdit
)
{
return
;
}
PublicApi
.
post
Warehouse
InvoicesUpdata
({
PublicApi
.
post
Product
InvoicesUpdata
({
id
:
+
id
,
invoicesAbstract
:
rest
.
invoicesAbstract
,
inventoryId
:
rest
.
inventoryId
,
...
...
@@ -1276,7 +1276,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
if
(
!
isEdit
)
{
return
;
}
PublicApi
.
post
Warehouse
InvoicesUpdata
({
PublicApi
.
post
Product
InvoicesUpdata
({
id
:
+
id
,
invoicesAbstract
:
rest
.
invoicesAbstract
,
inventoryId
:
rest
.
inventoryId
,
...
...
@@ -1387,7 +1387,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
if
(
!
isEdit
)
{
return
;
}
PublicApi
.
post
Warehouse
InvoicesUpdata
({
PublicApi
.
post
Product
InvoicesUpdata
({
id
:
+
id
,
invoicesAbstract
:
rest
.
invoicesAbstract
,
inventoryId
:
rest
.
inventoryId
,
...
...
@@ -1496,7 +1496,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
if
(
!
isEdit
)
{
return
;
}
PublicApi
.
post
Warehouse
InvoicesUpdata
({
PublicApi
.
post
Product
InvoicesUpdata
({
id
:
+
id
,
invoicesAbstract
:
rest
.
invoicesAbstract
,
inventoryId
:
rest
.
inventoryId
,
...
...
@@ -1605,7 +1605,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
if
(
!
isEdit
)
{
return
;
}
PublicApi
.
post
Warehouse
InvoicesUpdata
({
PublicApi
.
post
Product
InvoicesUpdata
({
id
:
+
id
,
invoicesAbstract
:
rest
.
invoicesAbstract
,
inventoryId
:
rest
.
inventoryId
,
...
...
@@ -1713,7 +1713,7 @@ const BillsForm: React.FC<BillsFormProps> = ({
if
(
!
isEdit
)
{
return
;
}
PublicApi
.
post
Warehouse
InvoicesUpdata
({
PublicApi
.
post
Product
InvoicesUpdata
({
id
:
+
id
,
invoicesAbstract
:
rest
.
invoicesAbstract
,
inventoryId
:
rest
.
inventoryId
,
...
...
src/pages/transaction/stockSellStorage/bills/index.tsx
View file @
b689cd0d
...
...
@@ -27,7 +27,7 @@ const Bills: React.FC<{}> = () => {
const
[
batchLoading
,
setBatchLoading
]
=
useState
(
false
);
const
fetchListData
=
async
(
params
:
any
)
=>
{
const
res
=
await
PublicApi
.
get
Warehouse
InvoicesList
(
params
);
const
res
=
await
PublicApi
.
get
Product
InvoicesList
(
params
);
if
(
res
.
code
===
1000
)
{
return
res
.
data
;
}
...
...
@@ -36,19 +36,19 @@ const Bills: React.FC<{}> = () => {
// 获取单据类型
const
fetchInvoicesType
=
async
()
=>
{
const
{
data
}
=
await
PublicApi
.
get
Warehouse
InvoicesTypeAll
();
const
{
data
}
=
await
PublicApi
.
get
Product
InvoicesTypeAll
();
return
data
.
map
(
v
=>
({
label
:
v
.
name
,
value
:
v
.
id
}));
};
// 获取对应仓库
const
fetchInventory
=
async
()
=>
{
const
{
data
}
=
await
PublicApi
.
get
Warehouse
WarehouseAll
();
const
{
data
}
=
await
PublicApi
.
get
Product
WarehouseAll
();
return
data
.
map
(
v
=>
({
label
:
v
.
name
,
value
:
v
.
id
}));
};
const
deleteInvoices
=
(
ids
:
number
[],
callback
?:
()
=>
void
)
=>
{
setBatchLoading
(
true
);
PublicApi
.
post
Warehouse
InvoicesBatchDelete
({
PublicApi
.
post
Product
InvoicesBatchDelete
({
ids
,
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
...
...
@@ -64,7 +64,7 @@ const Bills: React.FC<{}> = () => {
const
auditInvoices
=
(
ids
:
number
[],
callback
?:
()
=>
void
)
=>
{
setBatchLoading
(
true
);
PublicApi
.
post
Warehouse
InvoicesBatchReviewAll
({
PublicApi
.
post
Product
InvoicesBatchReviewAll
({
ids
,
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
...
...
@@ -80,7 +80,7 @@ const Bills: React.FC<{}> = () => {
const
counterclaimInvoices
=
(
ids
:
number
[],
callback
?:
()
=>
void
)
=>
{
setBatchLoading
(
true
);
PublicApi
.
post
Warehouse
InvoicesBatchAgainstReview
({
PublicApi
.
post
Product
InvoicesBatchAgainstReview
({
ids
,
}).
then
(
res
=>
{
if
(
res
.
code
!==
1000
)
{
...
...
src/pages/transaction/stockSellStorage/billsType/components/BillTypeForm/index.tsx
View file @
b689cd0d
...
...
@@ -35,7 +35,7 @@ const BillTypeForm: React.FC<BillTypeFormProps> = ({
return
;
}
setInfoLoading
(
true
);
const
infoRes
=
await
PublicApi
.
get
Warehouse
InvoicesTypeDetails
({
const
infoRes
=
await
PublicApi
.
get
Product
InvoicesTypeDetails
({
id
,
});
...
...
@@ -55,7 +55,7 @@ const BillTypeForm: React.FC<BillTypeFormProps> = ({
return
;
}
setSubmitLoading
(
true
);
PublicApi
.
post
Warehouse
InvoicesTypeAdd
({
...
value
})
PublicApi
.
post
Product
InvoicesTypeAdd
({
...
value
})
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setTimeout
(()
=>
{
...
...
@@ -71,7 +71,7 @@ const BillTypeForm: React.FC<BillTypeFormProps> = ({
return
;
}
setSubmitLoading
(
true
);
PublicApi
.
post
Warehouse
InvoicesTypeUpdate
({
PublicApi
.
post
Product
InvoicesTypeUpdate
({
id
:
id
,
...
value
,
}).
then
(
res
=>
{
...
...
src/pages/transaction/stockSellStorage/billsType/index.tsx
View file @
b689cd0d
...
...
@@ -104,7 +104,7 @@ const billsType: React.FC<{}> = () => {
const
fetchListData
=
(
params
:
any
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
get
Warehouse
InvoicesTypeList
(
params
)
PublicApi
.
get
Product
InvoicesTypeList
(
params
)
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
...
...
@@ -118,7 +118,7 @@ const billsType: React.FC<{}> = () => {
};
const
handleModify
=
(
record
:
any
)
=>
{
PublicApi
.
post
Warehouse
InvoicesTypeStateUpdate
({
PublicApi
.
post
Product
InvoicesTypeStateUpdate
({
id
:
record
.
id
,
state
:
record
.
state
===
DOC_TYPE_STATUS_EFFECTIVE
?
DOC_TYPE_STATUS_INVALID
:
DOC_TYPE_STATUS_EFFECTIVE
,
}).
then
(
res
=>
{
...
...
@@ -129,7 +129,7 @@ const billsType: React.FC<{}> = () => {
};
const
handleDelete
=
record
=>
{
PublicApi
.
post
Warehouse
InvoicesTypeDelete
({
PublicApi
.
post
Product
InvoicesTypeDelete
({
id
:
record
.
id
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
...
...
src/pages/transaction/stockSellStorage/inventory/index.tsx
View file @
b689cd0d
...
...
@@ -105,7 +105,7 @@ const Inventory: React.FC<{}> = () => {
const
fetchListData
=
(
params
:
any
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
get
Warehouse
InventoryList
(
params
)
PublicApi
.
get
Product
InventoryList
(
params
)
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
...
...
@@ -120,7 +120,7 @@ const Inventory: React.FC<{}> = () => {
// 获取对应仓库
const
fetchInventory
=
async
()
=>
{
const
{
data
}
=
await
PublicApi
.
get
Warehouse
WarehouseAll
();
const
{
data
}
=
await
PublicApi
.
get
Product
WarehouseAll
();
return
data
.
map
(
v
=>
({
label
:
v
.
name
,
value
:
v
.
id
}));
};
...
...
@@ -128,7 +128,7 @@ const Inventory: React.FC<{}> = () => {
const
handleSubmit
=
async
values
=>
{
setConfirmLoading
(
true
);
const
res
=
await
PublicApi
.
post
Warehouse
InventorySafetyUpdate
({
const
res
=
await
PublicApi
.
post
Product
InventorySafetyUpdate
({
id
:
current
.
id
,
safetyInvoices
:
+
values
.
safetyInvoices
,
});
...
...
src/pages/transaction/stockSellStorage/warehouse/components/WarehouseForm/index.tsx
View file @
b689cd0d
...
...
@@ -36,7 +36,7 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
const
getWarehouseInfo
=
async
()
=>
{
if
(
id
)
{
setInfoLoading
(
true
);
const
infoRes
=
await
PublicApi
.
get
Warehouse
WarehouseDetails
({
const
infoRes
=
await
PublicApi
.
get
Product
WarehouseDetails
({
id
,
});
...
...
@@ -87,7 +87,7 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
return
;
}
setSubmitLoading
(
true
);
PublicApi
.
post
Warehouse
WarehouseAdd
({
...
value
}).
then
(
res
=>
{
PublicApi
.
post
Product
WarehouseAdd
({
...
value
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setTimeout
(()
=>
{
history
.
goBack
();
...
...
@@ -101,7 +101,7 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
return
;
}
setSubmitLoading
(
true
);
PublicApi
.
post
Warehouse
WarehouseUpdate
({
PublicApi
.
post
Product
WarehouseUpdate
({
id
:
id
,
...
value
,
}).
then
(
res
=>
{
...
...
src/pages/transaction/stockSellStorage/warehouse/index.tsx
View file @
b689cd0d
...
...
@@ -109,7 +109,7 @@ const WareHouse: React.FC<{}> = () => {
const
fetchListData
=
(
params
:
any
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
get
Warehouse
WarehouseList
(
params
)
PublicApi
.
get
Product
WarehouseList
(
params
)
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
resolve
(
res
.
data
);
...
...
@@ -123,7 +123,7 @@ const WareHouse: React.FC<{}> = () => {
};
const
handleModify
=
record
=>
{
PublicApi
.
post
Warehouse
WarehouseStartRoStop
({
PublicApi
.
post
Product
WarehouseStartRoStop
({
id
:
record
.
id
,
state
:
record
.
state
===
POSITION_STATUS_EFFECTIVE
?
POSITION_STATUS_INVALID
:
POSITION_STATUS_EFFECTIVE
,
}).
then
(
res
=>
{
...
...
@@ -134,7 +134,7 @@ const WareHouse: React.FC<{}> = () => {
};
const
handleDelete
=
record
=>
{
PublicApi
.
post
Warehouse
WarehouseDelete
({
PublicApi
.
post
Product
WarehouseDelete
({
id
:
record
.
id
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
...
...
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