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
5dedc92c
Commit
5dedc92c
authored
Feb 22, 2022
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复加工能力 新增加工生产通知单参数问题,以及翻译bug
parent
fa6b1050
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
60 additions
and
54 deletions
+60
-54
detail.tsx
src/pages/handling/assign/allQuery/detail.tsx
+1
-1
orderColumn.tsx
...ges/handling/assign/create/common/columns/orderColumn.tsx
+13
-10
index.tsx
src/pages/handling/assign/create/index.tsx
+5
-3
schema.tsx
src/pages/handling/assign/create/schema.tsx
+18
-18
types.ts
src/pages/handling/assign/create/types.ts
+5
-5
index.tsx
src/pages/handling/assign/processStock/index.tsx
+3
-2
detail.tsx
src/pages/handling/assign/tobeAddQuery/detail.tsx
+1
-1
detail.tsx
src/pages/handling/assign/tobeAddStock/detail.tsx
+1
-1
index.tsx
src/pages/handling/assign/tobeAddStock/index.tsx
+1
-1
detail.tsx
src/pages/handling/assign/tobeReceive/detail.tsx
+1
-1
detail.tsx
src/pages/handling/assign/tobeReviewII/detail.tsx
+1
-1
detail.tsx
src/pages/handling/assign/tobeSubmit/detail.tsx
+1
-1
detailNoticeInfoColumns.tsx
...pages/handling/common/columns/detailNoticeInfoColumns.tsx
+1
-1
detail.tsx
src/pages/handling/confirm/allQuery/detail.tsx
+1
-1
detail.tsx
src/pages/handling/confirm/pendingAddLogistics/detail.tsx
+1
-1
detail.tsx
src/pages/handling/confirm/pendingConfirm/detail.tsx
+1
-1
detail.tsx
src/pages/handling/confirm/pendingDelivered/detail.tsx
+1
-1
detail.tsx
src/pages/handling/confirm/pendingLevelII/detail.tsx
+1
-1
detail.tsx
src/pages/handling/confirm/pendingReceipt/detail.tsx
+1
-1
detail.tsx
src/pages/handling/confirm/pendingSubmit/detail.tsx
+1
-1
index.tsx
...pages/handling/confirm/processingInvoiceTobeAdd/index.tsx
+1
-1
No files found.
src/pages/handling/assign/allQuery/detail.tsx
View file @
5dedc92c
...
...
@@ -76,7 +76,7 @@ const Info = () => {
</
div
>
{
/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */
}
<
div
style=
{
cacheStyle
}
id=
"noticeDetails"
>
<
MellowCard
title=
"{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"
>
<
MellowCard
title=
{
intl
.
formatMessage
({
id
:
'handling.detail.noticeDetail'
})
}
>
<
Table
rowKey=
{
"id"
}
dataSource=
{
initialValue
?.
details
}
columns=
{
columns
}
/>
</
MellowCard
>
</
div
>
...
...
src/pages/handling/assign/create/common/columns/orderColumn.tsx
View file @
5dedc92c
...
...
@@ -19,7 +19,7 @@ export const orderColumns = [
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'handling.purchasing.member'
})}
`
,
dataIndex
:
'
m
emberName'
dataIndex
:
'
buyerM
emberName'
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'handling.order.time'
})}
`
,
...
...
@@ -28,24 +28,27 @@ export const orderColumns = [
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'handling.order.statusName'
})}
`
,
dataIndex
:
'
externalState
Name'
,
dataIndex
:
'
outerStatus
Name'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'handling.order.type'
})}
`
,
dataIndex
:
'
typ
e'
,
render
:
(
text
,
record
)
=>
{
// :1.询价采购2.需求采购3.现货采购4.集采5.渠道直采6.渠道现货7.积分兑换8.渠道积分兑换
return
(
<
span
>
{
ORDER_TYPE
[
text
]
||
''
}
</
span
>
)
}
dataIndex
:
'
orderTypeNam
e'
,
//
render: (text, record) => {
//
// :1.询价采购2.需求采购3.现货采购4.集采5.渠道直采6.渠道现货7.积分兑换8.渠道积分兑换
//
return (
//
<span>{ORDER_TYPE[text] || ''}</span>
//
)
//
}
}
]
export
const
orderProductColumns
=
[
{
title
:
`
${
intl
.
formatMessage
({
id
:
'handling.assign.add.product.id'
})}
/
${
intl
.
formatMessage
({
id
:
'handling.assign.add.product.name'
})}
`
,
dataIndex
:
'id'
dataIndex
:
'id'
,
render
:
(
text
,
record
)
=>
{
return
`
${
record
.
orderProductId
}
/
${
record
.
name
}
`
;
}
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'handling.assign.add.product.category'
})}
`
,
...
...
src/pages/handling/assign/create/index.tsx
View file @
5dedc92c
...
...
@@ -471,7 +471,7 @@ const Create = () => {
const
isOrderSource
=
source
===
ORDER_SOURCE
const
productList
=
isOrderSource
?
formActions
.
getFieldValue
(
'detail.layout1.orderList'
)
:
formActions
.
getFieldValue
(
'detail.layout1.productList'
);
// const productList = formActions.getFieldValue('detail.layout1.productList');
const
{
isHasTax
,
taxRate
,
processNum
,
processUnitPrice
,
enclosure
,
productProps
}
=
values
;
const
{
isHasTax
,
taxRate
=
0
,
processNum
,
processUnitPrice
,
enclosure
,
productProps
}
=
values
;
let
shouldShowConfirmMsg
=
false
;
const
newData
=
productList
.
map
((
_item
)
=>
{
...
...
@@ -561,7 +561,7 @@ const Create = () => {
onSelect
:
onSelectChange
,
getCheckboxProps
:
(
record
:
GetOrderCommonEnhancePageResponseDetail
[
'products'
][
0
])
=>
{
return
{
disabled
:
record
.
purchaseCount
-
record
.
processNum
<=
0
,
// Column configuration not to be checked
disabled
:
+
record
.
quantity
-
+
record
.
enhanceCount
<=
0
,
// Column configuration not to be checked
}
},
onSelectAll
:
async
(
selected
:
boolean
,
selectedRows
:
GetOrderCommonEnhancePageResponseDetail
[
'products'
],
changeRows
:
any
[])
=>
{
...
...
@@ -754,6 +754,7 @@ const Create = () => {
receiverAddressId
,
...
rest
}
=
value
;
console
.
log
(
rest
);
const
formatDeliveryDate
=
moment
(
deliveryDate
,
'YYYY-MM-DD'
).
valueOf
();
const
orderListFormated
=
orderList
?.
map
((
_item
)
=>
{
...
...
@@ -821,7 +822,7 @@ const Create = () => {
let
restData
:
RestDataType
=
{}
as
RestDataType
if
(
deliveryType
===
1
)
{
restData
=
{
...
rest
,
//
...rest,
receiveAddress
,
receiveUserName
,
receiveUserTel
,
...
...
@@ -846,6 +847,7 @@ const Create = () => {
deliveryType
,
source
,
...
restData
,
...
rest
,
outerTaskType
:
+
processEnumRes
.
processEnum
}
const
service
=
isEdit
?
postEnhanceSupplierToBeAddUpdate
:
postEnhanceSupplierToBeAddAdd
...
...
src/pages/handling/assign/create/schema.tsx
View file @
5dedc92c
...
...
@@ -277,15 +277,15 @@ const createSchema: ISchema = {
width
:
65
,
},
},
mainPic
:
{
title
:
intl
.
formatMessage
({
id
:
'handling.assign.add.product.img'
}),
type
:
"string"
,
"x-component"
:
'ReadOnly'
,
'x-component-props'
:
{
isImage
:
true
,
},
editable
:
false
,
},
//
mainPic: {
//
title: intl.formatMessage({id: 'handling.assign.add.product.img'}),
//
type: "string",
//
"x-component": 'ReadOnly',
//
'x-component-props': {
//
isImage: true,
//
},
//
editable: false,
//
},
name
:
{
title
:
intl
.
formatMessage
({
id
:
'handling.assign.add.product.img'
}),
type
:
"string"
,
...
...
@@ -384,15 +384,15 @@ const createSchema: ISchema = {
width
:
65
,
},
},
mainPic
:
{
title
:
intl
.
formatMessage
({
id
:
'handling.assign.add.product.img'
}),
type
:
"string"
,
editable
:
false
,
"x-component"
:
'ReadOnly'
,
'x-component-props'
:
{
isImage
:
true
,
},
},
//
mainPic: {
//
title: intl.formatMessage({id: 'handling.assign.add.product.img'}),
//
type: "string",
//
editable: false,
//
"x-component": 'ReadOnly',
//
'x-component-props': {
//
isImage: true,
//
},
//
},
name
:
{
title
:
intl
.
formatMessage
({
id
:
'handling.assign.add.product.name'
}),
type
:
"string"
,
...
...
src/pages/handling/assign/create/types.ts
View file @
5dedc92c
...
...
@@ -118,11 +118,11 @@ export type SubmitDataType = {
}
export
type
RestDataType
=
{
processMemberId
:
number
;
processName
:
string
;
processRoleId
:
number
;
// source: 1 | 2 | number & {};
summary
:
string
;
//
processMemberId: number;
//
processName: string;
//
processRoleId: number;
//
//
source: 1 | 2 | number & {};
//
summary: string;
receiveAddress
?:
string
,
receiveUserName
?:
string
,
receiveUserTel
?:
string
,
...
...
src/pages/handling/assign/processStock/index.tsx
View file @
5dedc92c
...
...
@@ -176,7 +176,8 @@ const processStock: React.FC<{}> = () => {
),
[
OuterAndInnerStatus
.
pending_exam_add_process
]:
(
<
Popconfirm
title=
{
intl
.
formatMessage
({
id
:
'handling.query.processStock.exam.deliverNo'
}).
replace
(
/{
(
.*
?)
}/
,
record
.
deliveryNo
)
}
title=
{
intl
.
formatMessage
({
id
:
'handling.query.processStock.exam.deliverNo'
},
{
deliveryNo
:
record
.
deliveryNo
})
}
// title={intl.formatMessage({id: 'handling.query.processStock.exam.deliverNo'}).replace(/{(.*?)}/, record.deliveryNo)}
visible=
{
visibleID
===
record
.
id
}
placement=
"left"
okText=
{
intl
.
formatMessage
({
id
:
'common.button.confirm'
})
}
...
...
@@ -203,7 +204,7 @@ const processStock: React.FC<{}> = () => {
),
[OuterAndInnerStatus.pending_exam_process_in_warehouse]: (
<
Popconfirm
title=
{
intl
.
formatMessage
({
id
:
'handling.query.processStock.exam.storageNo'
}
).
replace
(
/{
(
.*
?)
}/
,
record
.
storageNo
)
}
title=
{
intl
.
formatMessage
({
id
:
'handling.query.processStock.exam.storageNo'
}
,
{
storageNo
:
record
.
storageNo
}
)
}
visible=
{
visibleID
===
record
.
id
}
placement=
"left"
okText=
{
intl
.
formatMessage
({
id
:
'common.button.confirm'
})
}
...
...
src/pages/handling/assign/tobeAddQuery/detail.tsx
View file @
5dedc92c
...
...
@@ -87,7 +87,7 @@ const Info = () => {
</
div
>
{
/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */
}
<
div
style=
{
cacheStyle
}
id=
"noticeDetails"
>
<
MellowCard
title=
"{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"
>
<
MellowCard
title=
{
intl
.
formatMessage
({
id
:
'handling.detail.noticeDetail'
})
}
>
<
Table
rowKey=
{
"id"
}
dataSource=
{
initialValue
?.
details
}
columns=
{
columns
}
/>
</
MellowCard
>
</
div
>
...
...
src/pages/handling/assign/tobeAddStock/detail.tsx
View file @
5dedc92c
...
...
@@ -67,7 +67,7 @@ const Info = () => {
</
div
>
{
/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */
}
<
div
style=
{
cacheStyle
}
id=
"noticeDetails"
>
<
MellowCard
title=
"{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"
>
<
MellowCard
title=
{
intl
.
formatMessage
({
id
:
'handling.detail.noticeDetail'
})
}
>
<
Table
rowKey=
{
"id"
}
dataSource=
{
initialValue
?.
details
}
columns=
{
columns
}
/>
</
MellowCard
>
</
div
>
...
...
src/pages/handling/assign/tobeAddStock/index.tsx
View file @
5dedc92c
...
...
@@ -40,7 +40,7 @@ const AllQuery = () => {
{
record
.
supplierInnerStatus
===
TO_BE_EXAM_STORAGE
&&
(
<
Popconfirm
title=
{
intl
.
formatMessage
({
id
:
'handling.query.processStock.exam.storageNo'
}
).
replace
(
/{
(
.*
?)
}/
,
record
.
storageNo
)
}
title=
{
intl
.
formatMessage
({
id
:
'handling.query.processStock.exam.storageNo'
}
,
{
storageNo
:
record
.
storageNo
}
)
}
placement=
"left"
okText=
{
intl
.
formatMessage
({
id
:
'common.button.confirm'
})
}
cancelText=
{
intl
.
formatMessage
({
id
:
'common.button.cancel'
})
}
...
...
src/pages/handling/assign/tobeReceive/detail.tsx
View file @
5dedc92c
...
...
@@ -102,7 +102,7 @@ const Info = () => {
</
div
>
{
/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */
}
<
div
style=
{
cacheStyle
}
id=
"noticeDetails"
>
<
MellowCard
title=
"{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"
>
<
MellowCard
title=
{
intl
.
formatMessage
({
id
:
'handling.detail.noticeDetail'
})
}
>
<
Table
rowKey=
{
"id"
}
dataSource=
{
initialValue
?.
details
}
columns=
{
columns
}
/>
</
MellowCard
>
</
div
>
...
...
src/pages/handling/assign/tobeReviewII/detail.tsx
View file @
5dedc92c
...
...
@@ -75,7 +75,7 @@ const Info = () => {
</
div
>
{
/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */
}
<
div
style=
{
cacheStyle
}
id=
"noticeDetails"
>
<
MellowCard
title=
"{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"
>
<
MellowCard
title=
{
intl
.
formatMessage
({
id
:
'handling.detail.noticeDetail'
})
}
>
<
Table
rowKey=
{
"id"
}
dataSource=
{
initialValue
?.
details
}
columns=
{
columns
}
/>
</
MellowCard
>
</
div
>
...
...
src/pages/handling/assign/tobeSubmit/detail.tsx
View file @
5dedc92c
...
...
@@ -71,7 +71,7 @@ const Info = () => {
</
div
>
{
/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */
}
<
div
style=
{
cacheStyle
}
id=
"noticeDetails"
>
<
MellowCard
title=
"{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"
>
<
MellowCard
title=
{
intl
.
formatMessage
({
id
:
'handling.detail.noticeDetail'
})
}
>
<
Table
rowKey=
{
"id"
}
dataSource=
{
initialValue
?.
details
}
columns=
{
columns
}
/>
</
MellowCard
>
</
div
>
...
...
src/pages/handling/common/columns/detailNoticeInfoColumns.tsx
View file @
5dedc92c
...
...
@@ -121,7 +121,7 @@ export const productColumn = [
return
(
<
div
>
{
/* <p>{numFormat((purchaseCount))}</p> */
}
<
p
>
{
record
.
unit
}
</
p
>
<
span
>
{
record
.
unit
}
</
span
>
</
div
>
)
}
...
...
src/pages/handling/confirm/allQuery/detail.tsx
View file @
5dedc92c
...
...
@@ -82,7 +82,7 @@ const Info = () => {
</
div
>
{
/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */
}
<
div
style=
{
cacheStyle
}
id=
"noticeDetails"
>
<
MellowCard
title=
"{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"
>
<
MellowCard
title=
{
intl
.
formatMessage
({
id
:
'handling.detail.noticeDetail'
})
}
>
<
Table
rowKey=
{
"id"
}
dataSource=
{
initialValue
?.
details
}
columns=
{
columns
}
/>
</
MellowCard
>
</
div
>
...
...
src/pages/handling/confirm/pendingAddLogistics/detail.tsx
View file @
5dedc92c
...
...
@@ -60,7 +60,7 @@ const Info = () => {
</
div
>
{
/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */
}
<
div
style=
{
cacheStyle
}
id=
"noticeDetails"
>
<
MellowCard
title=
"{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"
>
<
MellowCard
title=
{
intl
.
formatMessage
({
id
:
'handling.detail.noticeDetail'
})
}
>
<
Table
rowKey=
{
"id"
}
dataSource=
{
initialValue
?.
details
}
columns=
{
columns
}
/>
</
MellowCard
>
</
div
>
...
...
src/pages/handling/confirm/pendingConfirm/detail.tsx
View file @
5dedc92c
...
...
@@ -75,7 +75,7 @@ const Info = () => {
</
div
>
{
/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */
}
<
div
style=
{
cacheStyle
}
id=
"noticeDetails"
>
<
MellowCard
title=
"{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"
>
<
MellowCard
title=
{
intl
.
formatMessage
({
id
:
'handling.detail.noticeDetail'
})
}
>
<
Table
rowKey=
{
"id"
}
dataSource=
{
initialValue
?.
details
}
columns=
{
columns
}
/>
</
MellowCard
>
</
div
>
...
...
src/pages/handling/confirm/pendingDelivered/detail.tsx
View file @
5dedc92c
...
...
@@ -146,7 +146,7 @@ const Info = () => {
</
div
>
{
/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */
}
<
div
style=
{
cacheStyle
}
id=
"noticeDetails"
>
<
MellowCard
title=
"{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"
>
<
MellowCard
title=
{
intl
.
formatMessage
({
id
:
'handling.detail.noticeDetail'
})
}
>
<
Table
rowKey=
{
"id"
}
dataSource=
{
initialValue
?.
details
}
columns=
{
columns
}
/>
</
MellowCard
>
</
div
>
...
...
src/pages/handling/confirm/pendingLevelII/detail.tsx
View file @
5dedc92c
...
...
@@ -75,7 +75,7 @@ const Info = () => {
</
div
>
{
/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */
}
<
div
style=
{
cacheStyle
}
id=
"noticeDetails"
>
<
MellowCard
title=
"{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"
>
<
MellowCard
title=
{
intl
.
formatMessage
({
id
:
'handling.detail.noticeDetail'
})
}
>
<
Table
rowKey=
{
"id"
}
dataSource=
{
initialValue
?.
details
}
columns=
{
columns
}
/>
</
MellowCard
>
</
div
>
...
...
src/pages/handling/confirm/pendingReceipt/detail.tsx
View file @
5dedc92c
...
...
@@ -130,7 +130,7 @@ const Info = () => {
</
div
>
{
/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */
}
<
div
style=
{
cacheStyle
}
id=
"noticeDetails"
>
<
MellowCard
title=
"{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"
>
<
MellowCard
title=
{
intl
.
formatMessage
({
id
:
'handling.detail.noticeDetail'
})
}
>
<
Table
rowKey=
{
"id"
}
dataSource=
{
initialValue
?.
details
}
columns=
{
columns
}
/>
</
MellowCard
>
</
div
>
...
...
src/pages/handling/confirm/pendingSubmit/detail.tsx
View file @
5dedc92c
...
...
@@ -104,7 +104,7 @@ const Info = () => {
</
div
>
{
/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */
}
<
div
style=
{
cacheStyle
}
id=
"noticeDetails"
>
<
MellowCard
title=
"{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"
>
<
MellowCard
title=
{
intl
.
formatMessage
({
id
:
'handling.detail.noticeDetail'
})
}
>
<
Table
rowKey=
{
"id"
}
dataSource=
{
initialValue
?.
details
}
columns=
{
columns
}
/>
</
MellowCard
>
</
div
>
...
...
src/pages/handling/confirm/processingInvoiceTobeAdd/index.tsx
View file @
5dedc92c
...
...
@@ -51,7 +51,7 @@ const AllQuery = () => {
{
record
.
processInnerStatus
===
PENDING_VERIFY_PROCESS_DELIVERY
&&
(
<
Popconfirm
title=
{
intl
.
formatMessage
({
id
:
'handling.query.processStock.exam.deliverNo'
}
).
replace
(
/{deliveryNo}/
,
record
.
deliverNo
)
}
title=
{
intl
.
formatMessage
({
id
:
'handling.query.processStock.exam.deliverNo'
}
,
{
deliveryNo
:
record
.
deliveryNo
}
)
}
// visible=
{
visibleID
===
record
.
id
}
placement=
"left"
okText=
{
intl
.
formatMessage
({
id
:
'common.button.confirm'
})
}
...
...
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