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
shenshaokai
jinfa-platform
Commits
72353d79
Commit
72353d79
authored
Mar 24, 2022
by
前端-彭佳文
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2-220418' into 'v2-220418'
V2 220418 See merge request GavinPeng/pro-platform!9
parents
a7bfd3ac
deea026b
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
41 additions
and
73 deletions
+41
-73
index.tsx
src/pages/commodity/products/index.tsx
+2
-2
index.tsx
src/pages/repositories/schema/index.tsx
+1
-1
index.tsx
src/pages/transaction/stockSellStorage/bills/index.tsx
+3
-3
index.tsx
...pages/transaction/stockSellStorage/bills/schema/index.tsx
+2
-2
index.tsx
...ckSellStorage/billsType/components/BillTypeForm/index.tsx
+3
-23
index.tsx
src/pages/transaction/stockSellStorage/billsType/index.tsx
+3
-3
index.tsx
src/pages/transaction/stockSellStorage/inventory/index.tsx
+21
-14
index.tsx
...s/transaction/stockSellStorage/inventory/schema/index.tsx
+1
-1
index.tsx
...kSellStorage/warehouse/components/WarehouseForm/index.tsx
+2
-21
index.tsx
src/pages/transaction/stockSellStorage/warehouse/index.tsx
+3
-3
No files found.
src/pages/commodity/products/index.tsx
View file @
72353d79
...
...
@@ -749,9 +749,9 @@ const Products: React.FC<{}> = () => {
<
Menu
.
Item
key=
"6"
icon=
{
<
ExportOutlined
/>
}
>
{
intl
.
formatMessage
({
id
:
'commodity.products.huoqushangyougongyingshangpin'
})
}
</
Menu
.
Item
>
<
Menu
.
Item
key=
"7"
icon=
{
<
ExportOutlined
/>
}
>
{
/*
<Menu.Item key="7" icon={<ExportOutlined />}>
{intl.formatMessage({ id: 'commodity.products.huoquxiayouxiaoshoushangpin'})}
</
Menu
.
Item
>
</Menu.Item>
*/
}
</
Menu
>
)
...
...
src/pages/repositories/schema/index.tsx
View file @
72353d79
...
...
@@ -283,7 +283,7 @@ export const repositDetailSchema: ISchema = padRequiredMessage({
title
:
getIntl
().
formatMessage
({
id
:
'repositories.schema.repositDetailSchema.goodsName'
}),
default
:
getIntl
().
formatMessage
({
id
:
'repositories.schema.repositDetailSchema.goodsName.default'
})
},
sy
:
{
upperStockCount
:
{
type
:
'string'
,
"x-component"
:
'Text'
,
title
:
<
span
>
...
...
src/pages/transaction/stockSellStorage/bills/index.tsx
View file @
72353d79
...
...
@@ -199,7 +199,7 @@ const Bills: React.FC<{}> = () => {
{
title
:
intl
.
formatMessage
({
id
:
'stockSellStorage.danjuleixing'
}),
align
:
'center'
,
dataIndex
:
'invoicesType'
,
dataIndex
:
'invoicesType
Name
'
,
},
{
title
:
intl
.
formatMessage
({
id
:
'stockSellStorage.danjuzhaiyao'
}),
...
...
@@ -215,12 +215,12 @@ const Bills: React.FC<{}> = () => {
{
title
:
intl
.
formatMessage
({
id
:
'stockSellStorage.duiyingcangku'
}),
align
:
'center'
,
dataIndex
:
'
inventory
'
,
dataIndex
:
'
warehouseName
'
,
},
{
title
:
intl
.
formatMessage
({
id
:
'stockSellStorage.jiaoyishijian'
}),
align
:
'center'
,
dataIndex
:
'
transaction
Time'
,
dataIndex
:
'
invoices
Time'
,
render
:
text
=>
text
?
moment
(
text
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
''
,
},
// {
...
...
src/pages/transaction/stockSellStorage/bills/schema/index.tsx
View file @
72353d79
...
...
@@ -85,7 +85,7 @@ export const billsSchema: ISchema = {
},
enum
:
[],
},
inventory
:
{
warehouseId
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
intl
.
formatMessage
({
id
:
'stockSellStorage.duiyingcangku'
}),
...
...
@@ -96,7 +96,7 @@ export const billsSchema: ISchema = {
},
enum
:
[],
},
'[
startTransactionTime, endTransactionTime
]'
:
{
'[
invoicesTimeStart, invoicesTimeEnd
]'
:
{
type
:
'string'
,
'x-component'
:
'dateSelect'
,
'x-component-props'
:
{
...
...
src/pages/transaction/stockSellStorage/billsType/components/BillTypeForm/index.tsx
View file @
72353d79
...
...
@@ -6,7 +6,7 @@ import { SaveOutlined } from '@ant-design/icons';
import
{
createFormActions
,
FormEffectHooks
}
from
'@formily/antd'
;
import
ReutrnEle
from
'@/components/ReturnEle'
;
import
NiceForm
from
'@/components/NiceForm'
;
import
{
getProductInvoicesTypeDetails
,
postProductInvoicesTypeAdd
,
postProductInvoicesType
Update
}
from
'@/services/ProductV2Api'
;
import
{
getProductInvoicesTypeDetails
,
postProductInvoicesTypeAdd
Or
Update
}
from
'@/services/ProductV2Api'
;
import
{
billsTypeDetailSchema
}
from
'./schema'
;
const
formActions
=
createFormActions
();
...
...
@@ -50,28 +50,8 @@ const BillTypeForm: React.FC<BillTypeFormProps> = ({
},
[]);
const
handleSubmit
=
value
=>
{
if
(
!
id
)
{
if
(
isEdit
)
{
return
;
}
setSubmitLoading
(
true
);
postProductInvoicesTypeAdd
({
...
value
})
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setTimeout
(()
=>
{
history
.
goBack
()
},
800
);
};
})
.
finally
(()
=>
{
setSubmitLoading
(
false
);
});
}
else
{
if
(
!
isEdit
)
{
return
;
}
setSubmitLoading
(
true
);
postProductInvoicesTypeUpdate
({
postProductInvoicesTypeAddOrUpdate
({
id
:
id
,
...
value
,
}).
then
(
res
=>
{
...
...
@@ -79,7 +59,7 @@ const BillTypeForm: React.FC<BillTypeFormProps> = ({
history
.
goBack
();
}
});
}
setUnsaved
(
false
);
};
...
...
src/pages/transaction/stockSellStorage/billsType/index.tsx
View file @
72353d79
...
...
@@ -10,7 +10,7 @@ import {
import
{
createFormActions
}
from
'@formily/antd'
;
import
StandardTable
from
'@/components/StandardTable'
;
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
getProductInvoicesTypeList
,
postProductInvoicesTypeSta
teUpdate
,
pos
tProductInvoicesTypeDelete
}
from
'@/services/ProductV2Api'
;
import
{
getProductInvoicesTypeList
,
postProductInvoicesTypeSta
rtOrStop
,
ge
tProductInvoicesTypeDelete
}
from
'@/services/ProductV2Api'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
StatusSwitch
from
'@/components/StatusSwitch'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
...
...
@@ -131,7 +131,7 @@ const billsType: React.FC<{}> = () => {
};
const
handleModify
=
(
record
:
any
)
=>
{
postProductInvoicesTypeSta
teUpdate
({
postProductInvoicesTypeSta
rtOrStop
({
id
:
record
.
id
,
state
:
record
.
state
===
DOC_TYPE_STATUS_EFFECTIVE
?
DOC_TYPE_STATUS_INVALID
:
DOC_TYPE_STATUS_EFFECTIVE
,
}).
then
(
res
=>
{
...
...
@@ -142,7 +142,7 @@ const billsType: React.FC<{}> = () => {
};
const
handleDelete
=
record
=>
{
pos
tProductInvoicesTypeDelete
({
ge
tProductInvoicesTypeDelete
({
id
:
record
.
id
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
...
...
src/pages/transaction/stockSellStorage/inventory/index.tsx
View file @
72353d79
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
import
{
getIntl
,
history
}
from
'umi'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
Input
,
Card
,
Space
,
Modal
,
Button
}
from
'antd'
;
import
{
Input
,
Card
,
Space
,
Modal
,
Button
,
message
}
from
'antd'
;
import
{
SettingOutlined
}
from
'@ant-design/icons'
;
import
StandardTable
from
'@/components/StandardTable'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
...
...
@@ -13,7 +13,7 @@ import { FORM_FILTER_PATH } from '@/formSchema/const';
import
{
getProductInventoryList
,
getProductWarehouseAll
,
postProductInventorySafetyUpdate
,
postProductInventorySafety
Batch
Update
,
}
from
'@/services/ProductV2Api'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
inventorySchema
,
safetyModalSchema
}
from
'./schema'
;
...
...
@@ -44,7 +44,7 @@ const Inventory: React.FC<{}> = () => {
{
title
:
intl
.
formatMessage
({
id
:
'stockSellStorage.huohao'
}),
align
:
'center'
,
dataIndex
:
'
item
No'
,
dataIndex
:
'
goods
No'
,
},
{
title
:
intl
.
formatMessage
({
id
:
'stockSellStorage.huopinmingcheng'
}),
...
...
@@ -80,17 +80,17 @@ const Inventory: React.FC<{}> = () => {
},
{
title
:
intl
.
formatMessage
({
id
:
'stockSellStorage.cangku'
}),
dataIndex
:
'warehouse'
,
dataIndex
:
'warehouse
Name
'
,
align
:
'center'
,
},
{
title
:
intl
.
formatMessage
({
id
:
'stockSellStorage.kucun'
}),
dataIndex
:
'inventory'
,
dataIndex
:
'inventory
Count
'
,
align
:
'center'
,
},
{
title
:
intl
.
formatMessage
({
id
:
'stockSellStorage.jine'
}),
dataIndex
:
'
p
rice'
,
dataIndex
:
'
totalP
rice'
,
align
:
'center'
,
render
:
text
=>
`¥
${
text
}
`
,
},
...
...
@@ -101,7 +101,7 @@ const Inventory: React.FC<{}> = () => {
<
SettingOutlined
/>
</
Space
>
),
dataIndex
:
'safe
Stock
'
,
dataIndex
:
'safe
InventoryCount
'
,
align
:
'center'
,
render
:
(
text
,
record
)
=>
(
<
div
...
...
@@ -141,14 +141,19 @@ const Inventory: React.FC<{}> = () => {
// 修改安全库存
const
handleSubmit
=
async
values
=>
{
setConfirmLoading
(
true
);
if
(
!
current
)
{
// selectedRowKeys 批量
const
params
=
{
ids
:
selectedRowKeys
,
safetyInvoices
:
+
values
.
safetyInvoices
,
};
if
(
current
)
{
params
.
ids
=
[
current
.
id
];
}
else
if
(
selectedRowKeys
.
length
===
0
){
message
.
error
(
'请选择物料选项'
)
setConfirmLoading
(
false
);
setModalVisible
(
false
);
return
}
const
res
=
await
postProductInventorySafetyUpdate
({
id
:
current
.
id
,
safetyInvoices
:
+
values
.
safetyInvoices
,
});
const
res
=
await
postProductInventorySafetyBatchUpdate
(
params
);
if
(
res
.
code
===
1000
)
{
setModalVisible
(
false
);
...
...
@@ -169,7 +174,9 @@ const Inventory: React.FC<{}> = () => {
onClick=
{
()
=>
handleUpdateSafetyStock
(
undefined
)
}
style=
{
{
width
:
154
}
}
>
{
intl
.
formatMessage
({
id
:
'stockSellStorage.piliangtiaozhenganquankucun'
})
}
{
intl
.
formatMessage
({
id
:
'stockSellStorage.piliangtiaozhenganquankucun'
,
})
}
</
Button
>
</
AuthButton
>
);
...
...
src/pages/transaction/stockSellStorage/inventory/schema/index.tsx
View file @
72353d79
...
...
@@ -52,7 +52,7 @@ export const inventorySchema: ISchema = {
},
},
properties
:
{
item
No
:
{
goods
No
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
intl
.
formatMessage
({
...
...
src/pages/transaction/stockSellStorage/warehouse/components/WarehouseForm/index.tsx
View file @
72353d79
...
...
@@ -10,7 +10,7 @@ import { warehouseDetailSchema } from './schema';
import
{
useLinkEnumEffect
}
from
'@/components/NiceForm/linkages/linkEnum'
;
import
{
useAsyncSelect
}
from
'@/formSchema/effects/useAsyncSelect'
;
import
{
getManageAreaAll
,
getManageCountryAreaGetTelCode
}
from
'@/services/ManageV2Api'
;
import
{
getProductWarehouseDetails
,
postProductWarehouseAdd
,
postProductWarehouse
Update
}
from
'@/services/ProductV2Api'
;
import
{
getProductWarehouseDetails
,
postProductWarehouseAdd
Or
Update
}
from
'@/services/ProductV2Api'
;
import
styles
from
'./index.less'
;
const
intl
=
getIntl
();
...
...
@@ -87,26 +87,8 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
};
const
handleSubmit
=
value
=>
{
if
(
!
id
)
{
if
(
isEdit
)
{
return
;
}
setSubmitLoading
(
true
);
postProductWarehouseAdd
({
...
value
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setTimeout
(()
=>
{
history
.
goBack
();
},
800
);
};
}).
finally
(()
=>
{
setSubmitLoading
(
false
);
});
}
else
{
if
(
!
isEdit
)
{
return
;
}
setSubmitLoading
(
true
);
postProductWarehouseUpdate
({
postProductWarehouseAddOrUpdate
({
id
:
id
,
...
value
,
}).
then
(
res
=>
{
...
...
@@ -118,7 +100,6 @@ const WarehouseForm: React.FC<WarehouseFormProps> = ({
}).
finally
(()
=>
{
setSubmitLoading
(
false
);
});
}
setUnsaved
(
false
);
};
...
...
src/pages/transaction/stockSellStorage/warehouse/index.tsx
View file @
72353d79
...
...
@@ -11,7 +11,7 @@ import StandardTable from '@/components/StandardTable';
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
createFormActions
}
from
'@formily/antd'
;
import
{
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
getProductWarehouseList
,
postProductWarehouseStart
RoStop
,
pos
tProductWarehouseDelete
}
from
'@/services/ProductV2Api'
;
import
{
getProductWarehouseList
,
postProductWarehouseStart
OrStop
,
ge
tProductWarehouseDelete
}
from
'@/services/ProductV2Api'
;
import
EyePreview
from
'@/components/EyePreview'
;
import
StatusSwitch
from
'@/components/StatusSwitch'
;
import
NiceForm
from
'@/components/NiceForm'
;
...
...
@@ -135,7 +135,7 @@ const WareHouse: React.FC<{}> = () => {
};
const
handleModify
=
record
=>
{
postProductWarehouseStart
Ro
Stop
({
postProductWarehouseStart
Or
Stop
({
id
:
record
.
id
,
state
:
record
.
state
===
POSITION_STATUS_EFFECTIVE
?
POSITION_STATUS_INVALID
:
POSITION_STATUS_EFFECTIVE
,
}).
then
(
res
=>
{
...
...
@@ -146,7 +146,7 @@ const WareHouse: React.FC<{}> = () => {
};
const
handleDelete
=
record
=>
{
pos
tProductWarehouseDelete
({
ge
tProductWarehouseDelete
({
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