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
81d43e9a
Commit
81d43e9a
authored
Jul 27, 2021
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of 10.0.0.22:lingxi/lingxi-business-paltform into v2
parents
da42e8e3
ed1d6f40
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
64 additions
and
30 deletions
+64
-30
crossSellProducts.tsx
...tract/coordination/components/modal/crossSellProducts.tsx
+2
-1
FormList.tsx
src/pages/contract/manage/add/components/FormList.tsx
+53
-22
fromtable.tsx
src/pages/contract/manage/add/components/fromtable.tsx
+0
-1
index.css
src/pages/contract/manage/add/index.css
+3
-2
index.less
src/pages/contract/manage/add/index.less
+4
-2
index.tsx
src/pages/contract/manage/examine/index.tsx
+1
-1
index.tsx
src/pages/contract/manage/secondaryexamine/index.tsx
+1
-1
No files found.
src/pages/contract/coordination/components/modal/crossSellProducts.tsx
View file @
81d43e9a
...
...
@@ -77,6 +77,7 @@ const CrossSellProducts: React.FC<IProps> = (props: any) => {
product
,
attribute
})
setAttribute
([])
setProduct
({})
}
return
(
...
...
@@ -178,7 +179,7 @@ const CrossSellProducts: React.FC<IProps> = (props: any) => {
</
div
>
<
div
className=
{
style
.
row
}
>
<
span
className=
{
style
.
label
}
>
规格型号:
</
span
>
<
span
className=
{
style
.
col
}
>
{
record
.
associatedT
ype
}
</
span
>
<
span
className=
{
style
.
col
}
>
{
record
.
t
ype
}
</
span
>
</
div
>
</
div
>
</
div
>
...
...
src/pages/contract/manage/add/components/FormList.tsx
View file @
81d43e9a
...
...
@@ -88,35 +88,66 @@ const FormList = (props: any) => {
default
:
break
;
}
// const fnsasdf = (sourceType: string, newObj: any, callBackArr: Array) => {
// const key = callBackArr[sourceType]
// if (sourceType == '2') {
// return newObj.inviteTenderMateriel[key]
// }
// return newObj[key]
// }
console
.
log
(
parmas
,
'parmas'
,
Row
)
/* 过滤字段 */
const
_filter
=
(
sourceType
:
string
,
newObj
:
any
,
callBackArr
:
Array
)
=>
{
const
key
=
callBackArr
[
sourceType
]
console
.
log
(
sourceType
,
newObj
,
key
)
if
(
!
key
)
{
return
''
;
}
let
callBlackString
=
''
;
if
(
sourceType
==
'2'
)
{
return
newObj
.
inviteTenderMateriel
[
key
]
}
callBlackString
=
newObj
[
key
]
if
(
callBlackString
==
null
)
{
return
''
;
}
return
callBlackString
;
}
/* 处理数组 */
const
_filterArr
=
(
sourceType
:
string
,
newObj
:
any
,
callBackArr
:
Array
)
=>
{
let
callBlackString
=
_filter
(
sourceType
,
newObj
,
callBackArr
);
console
.
log
(
callBlackString
,
'callBlackString'
)
if
(
Object
.
getPrototypeOf
(
callBlackString
)
===
Array
.
prototype
)
{
callBlackString
=
callBlackString
[
0
]
}
return
callBlackString
}
/* 处理布尔值 */
const
_filterFalg
=
(
sourceType
:
string
,
newObj
:
any
,
callBackArr
:
Array
)
=>
{
let
callBlackString
=
_filter
(
sourceType
,
newObj
,
callBackArr
);
if
(
sourceType
!==
'1'
)
{
callBlackString
=
callBlackString
?
'1'
:
'0'
;
}
return
callBlackString
}
fn
(
parmas
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
let
data
=
res
.
data
.
data
.
map
((
item
,
index
)
=>
{
return
{
// fnsasdf(sourceType,item,['number','code','number'])
code
:
sourceType
==
'1'
?
item
.
number
:
sourceType
==
'2'
?
item
.
inviteTenderMateriel
.
code
:
item
.
number
,
// 物料编号
name
:
sourceType
==
'1'
?
item
.
name
:
sourceType
==
'2'
?
item
.
inviteTenderMateriel
.
name
:
item
.
name
,
// 物料名称
type
:
sourceType
==
'1'
?
item
.
model
:
sourceType
==
'2'
?
item
.
inviteTenderMateriel
.
type
:
item
.
model
,
// 物料规格
code
:
_filter
(
sourceType
,
item
,
[
''
,
'number'
,
'code'
,
'number'
]),
// 物料编号
name
:
_filter
(
sourceType
,
item
,
[
''
,
'name'
,
'name'
,
'name'
]),
//物料名称
type
:
_filter
(
sourceType
,
item
,
[
''
,
'model'
,
'type'
,
'model'
]),
//物料规格
customerCategory
:
{
// 品类
name
:
sourceType
==
'1'
?
item
.
category
:
sourceType
==
'2'
?
item
.
inviteTenderMateriel
.
brandName
:
''
,
category
:
item
.
category
?
item
.
category
:
''
,
id
:
sourceType
==
'1'
?
item
.
goodsId
:
sourceType
==
'2'
?
item
.
inviteTenderMateriel
.
categoryId
[
0
]
:
item
.
ids
[
0
]
,
name
:
_filter
(
sourceType
,
item
,
[
''
,
'category'
,
'brandName'
,
''
])
,
category
:
_filter
(
sourceType
,
item
,
[
''
,
'category'
,
''
,
''
])
,
id
:
_filterArr
(
sourceType
,
item
,
[
''
,
'goodsId'
,
'categoryId'
,
'ids'
])
,
},
brand
:
{
name
:
sourceType
==
'1'
?
item
.
brand
:
sourceType
==
'2'
?
item
.
inviteTenderMateriel
.
categoryName
:
item
.
brand
},
// 品牌
unitName
:
sourceType
==
'1'
?
item
.
unit
:
sourceType
==
'2'
?
item
.
inviteTenderMateriel
.
unitName
:
item
.
unitPrice
,
//单位
purchaseCount
:
sourceType
==
'1'
?
item
.
purchaseCount
:
sourceType
==
'2'
?
item
.
inviteTenderMateriel
.
count
:
item
.
purchaseCount
,
// 数量
isHasTax
:
sourceType
==
'1'
?
item
.
isTax
:
sourceType
==
'2'
?
item
.
isTax
?
1
:
0
:
item
.
isTax
?
1
:
0
,
// 是否函税
taxRate
:
sourceType
==
'1'
?
item
.
taxProbability
:
sourceType
==
'2'
?
item
.
taxRate
:
item
.
taxRate
,
//税率
price
:
sourceType
==
'1'
?
item
.
taxUnitPrice
:
item
.
price
,
// 单价
brand
:
{
name
:
_filter
(
sourceType
,
item
,
[
''
,
'brand'
,
'categoryName'
,
'brand'
])
},
// 品牌
unitName
:
_filter
(
sourceType
,
item
,
[
''
,
'unit'
,
'unitName'
,
'unitPrice'
]),
//单位
purchaseCount
:
_filter
(
sourceType
,
item
,
[
''
,
'purchaseCount'
,
'count'
,
'purchaseCount'
]),
// 数量
isHasTax
:
_filterFalg
(
sourceType
,
item
,
[
''
,
'isTax'
,
'isTax'
,
'isTax'
]),
// 数量是否函税
taxRate
:
_filter
(
sourceType
,
item
,
[
''
,
'taxProbability'
,
'taxRate'
,
'taxRate'
]),
//税率
price
:
_filter
(
sourceType
,
item
,
[
''
,
'taxUnitPrice'
,
'price'
,
'price'
]),
//单价
bidCount
:
sourceType
==
'1'
?
item
.
awardTaxProbability
*
item
.
purchaseCount
/
100
:
sourceType
==
'2'
?
item
.
awardTenderRatio
*
item
.
inviteTenderMateriel
.
count
/
100
:
item
.
purchaseCount
,
bidAmount
:
sourceType
==
'1'
?
item
.
awardTaxProbability
*
item
.
purchaseCount
/
100
*
item
.
taxUnitPrice
:
sourceType
==
'2'
?
item
.
awardTenderRatio
*
item
.
inviteTenderMateriel
.
count
/
100
*
item
.
price
:
item
.
price
,
associatedType
:
_filter
(
sourceType
,
item
,
[
''
,
'productBrand'
,
''
,
''
]),
associatedBrand
:
_filter
(
sourceType
,
item
,
[
''
,
'productAttributeJson'
,
''
,
''
]),
associatedDataId
:
sourceType
==
'1'
?
item
.
productId
:
sourceType
==
'2'
?
item
.
commodityId
:
''
,
// 关联商品id
associatedMaterielNo
:
sourceType
==
'1'
?
item
.
number
:
sourceType
==
'2'
?
item
.
commodityAttribute
:
''
,
// 关联物料编号
associatedMaterielName
:
sourceType
==
'1'
?
item
.
productName
:
sourceType
==
'2'
?
item
.
commodityName
:
''
,
// 关联商品名称
...
...
@@ -124,7 +155,7 @@ const FormList = (props: any) => {
rowId
:
index
,
}
})
console
.
log
(
data
,
'data'
)
setData
(
data
)
}
})
...
...
src/pages/contract/manage/add/components/fromtable.tsx
View file @
81d43e9a
...
...
@@ -191,7 +191,6 @@ const FormList = (props: any) => {
break
;
case
'payNum'
:
item
[
idx
].
payNum
=
e
;
break
;
case
'expectPayTime'
:
item
[
idx
].
expectPayTime
=
moment
(
e
).
format
(
'YYYY-MM-DD HH:mm:ss'
);
...
...
src/pages/contract/manage/add/index.css
View file @
81d43e9a
...
...
@@ -27,7 +27,7 @@
.flex
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
end
;
}
.flex
span
{
background
:
#e4e6eb
;
...
...
@@ -68,7 +68,8 @@
.select
.setBox
{
width
:
100px
;
display
:
flex
;
align-items
:
flex-end
;
justify-content
:
end
;
align-items
:
center
;
position
:
absolute
;
top
:
1px
;
right
:
78px
;
...
...
src/pages/contract/manage/add/index.less
View file @
81d43e9a
...
...
@@ -31,7 +31,7 @@
.flex {
display: flex;
align-items: center;
justify-content:
center
;
justify-content:
end
;
span {
background: #e4e6eb;
padding: 7px 12px;
...
...
@@ -78,7 +78,9 @@
.setBox{
width: 100px;
display: flex;
align-items: flex-end;
justify-content: end;
// align-items: flex-end;
align-items: center;
position: absolute;
top: 1px;
right: 78px;
...
...
src/pages/contract/manage/examine/index.tsx
View file @
81d43e9a
...
...
@@ -122,7 +122,7 @@ const Examine = () => {
render
:
(
text
,
record
)
=>
{
return
(
<
div
>
<
span
style=
{
{
color
:
'#00B37A'
,
cursor
:
'pointer'
,
marginRight
:
10
}
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/contract/manage/examine/details?contractId=${record.id}&type=ManageSubmitExamine`
)
}
>
提交
审核
</
span
>
<
span
style=
{
{
color
:
'#00B37A'
,
cursor
:
'pointer'
,
marginRight
:
10
}
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/contract/manage/examine/details?contractId=${record.id}&type=ManageSubmitExamine`
)
}
>
审核
</
span
>
</
div
>
)
}
...
...
src/pages/contract/manage/secondaryexamine/index.tsx
View file @
81d43e9a
...
...
@@ -120,7 +120,7 @@ const Secondaryexamine = () => {
render
:
(
text
,
record
)
=>
{
return
(
<
div
>
<
span
style=
{
{
color
:
'#00B37A'
,
cursor
:
'pointer'
,
marginRight
:
10
}
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/contract/manage/secondaryexamine/details?contractId=${record.id}&type=PageToBeExamineStepTwo`
)
}
>
提交
审核
</
span
>
<
span
style=
{
{
color
:
'#00B37A'
,
cursor
:
'pointer'
,
marginRight
:
10
}
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/contract/manage/secondaryexamine/details?contractId=${record.id}&type=PageToBeExamineStepTwo`
)
}
>
审核
</
span
>
</
div
>
)
}
...
...
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