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
65f5a820
Commit
65f5a820
authored
Oct 11, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2
parents
439f1e6c
f27d1bee
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
addProducts.tsx
src/pages/commodity/products/addProducts.tsx
+1
-0
priceAttributeForm.tsx
...commodity/products/addProductsItem/priceAttributeForm.tsx
+2
-4
productAttributeForm.tsx
...mmodity/products/addProductsItem/productAttributeForm.tsx
+6
-1
viewProducts.tsx
src/pages/commodity/products/viewProducts.tsx
+2
-2
No files found.
src/pages/commodity/products/addProducts.tsx
View file @
65f5a820
...
...
@@ -92,6 +92,7 @@ const AddProducts: React.FC<{}> = (props) => {
keywords
:
data
.
keywords
,
description
:
data
.
description
,
type
:
data
.
type
,
createTime
:
data
.
createTime
,
})
setProductName
(
data
?.
name
)
setProductPriceType
(
data
?.
priceType
)
...
...
src/pages/commodity/products/addProductsItem/priceAttributeForm.tsx
View file @
65f5a820
import
React
,
{
useState
,
useEffect
,
useRef
,
useMemo
}
from
'react'
import
{
history
}
from
'umi'
import
{
Button
,
Form
,
Select
,
Checkbox
,
Tooltip
,
Radio
,
Input
,
Table
,
Modal
,
Row
,
Col
,
InputNumber
,
Space
}
from
'antd'
import
styles
from
'./index.less'
//
import styles from './index.less'
import
{
PublicApi
}
from
'@/services/api'
import
{
ColumnType
}
from
'antd/lib/table/interface'
import
{
QuestionCircleOutlined
,
SettingOutlined
,
PlusOutlined
,
MinusOutlined
,
}
from
'@ant-design/icons'
import
{
inject
,
observer
}
from
'mobx-react'
import
{
observer
}
from
'mobx-react'
import
{
store
}
from
'@/store'
import
{
IProductSelectAttribute
}
from
'@/module/productModule'
import
{
orderlyLadderPrice
,
validatorNumberRange
}
from
'../constant'
const
_
=
require
(
"lodash"
);
const
layout
=
{
labelCol
:
{
span
:
2
,
...
...
src/pages/commodity/products/addProductsItem/productAttributeForm.tsx
View file @
65f5a820
...
...
@@ -152,6 +152,11 @@ const ProductAttributeForm: React.FC<Iprops> = (props) => {
_isPrice
=
attrItem
.
isPrice
_isUpdateAttribute
=
productInfoByEdit
.
isUpdateAttribute
_isDisabled
=
_isPrice
&&
!
_isUpdateAttribute
// 编辑中 过滤后续添加的属性
if
(
!
_isUpdateAttribute
&&
(
attrItem
.
createTime
>
productInfoByEdit
.
createTime
))
{
return
null
}
console
.
log
(
attrItem
,
attributesData
,
productInfoByEdit
,
'data'
)
}
return
(
...
...
@@ -262,7 +267,7 @@ const ProductAttributeForm: React.FC<Iprops> = (props) => {
<
Tabs
defaultActiveKey=
"1"
tabPosition=
"left"
>
{
attributesData
?.
length
>
0
&&
attributesData
.
map
(
attributeItem
=>
<
TabPane
tab=
{
attributeItem
.
name
}
key=
{
attributeItem
.
id
}
>
!
productInfoByEdit
.
isUpdateAttribute
&&
(
attributeItem
.
createTime
>
productInfoByEdit
.
createTime
)
?
null
:
<
TabPane
tab=
{
attributeItem
.
name
}
key=
{
attributeItem
.
id
}
>
{
renderTabPanchildren
(
attributeItem
)
}
...
...
src/pages/commodity/products/viewProducts.tsx
View file @
65f5a820
...
...
@@ -387,14 +387,14 @@ const viewProducts: React.FC<{}> = () => {
</
Col
>
<
Col
span=
{
8
}
>
<
Card
headStyle=
{
{
borderBottom
:
'none'
}
}
title=
"其他信息"
style=
{
{
height
:
'100%'
}
}
>
<
Row
>
{
/*
<Row>
<Col span={4}>
<p>提供发票:</p>
</Col>
<Col span={20}>
<p>{productDetail?.isInvoice?'是':'否'}</p>
</Col>
</
Row
>
</Row>
*/
}
<
Row
>
<
Col
span=
{
4
}
>
<
p
>
税率:
</
p
>
...
...
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