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
8d08fc75
Commit
8d08fc75
authored
Jul 07, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-srm' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into dev-srm
parents
8db3aea9
42af0b13
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
268 additions
and
45 deletions
+268
-45
index.tsx
src/pages/logistics/logisticsInfo/index.tsx
+33
-11
index.tsx
...ty/components/detail/components/bidCommonLayout/index.tsx
+1
-1
index.tsx
...ity/components/detail/components/contrastLyout1/index.tsx
+2
-2
index.tsx
...saction/purchaseAbility/components/modalOperate/index.tsx
+3
-2
crossSellProducts.tsx
...chaseAbility/offter/addOffter/modal/crossSellProducts.tsx
+14
-1
selectProduct.tsx
.../purchaseAbility/offter/addOffter/modal/selectProduct.tsx
+3
-0
index.tsx
...saction/purchaseAbility/purchasDoor/purchasInfo/index.tsx
+3
-4
material.tsx
...bility/purchaseInquiry/addInquiry/components/material.tsx
+25
-5
drawerWrite.tsx
...eAbility/purchaseInquiry/addInquiry/modal/drawerWrite.tsx
+182
-17
selectProduct.tsx
...bility/purchaseInquiry/addInquiry/modal/selectProduct.tsx
+1
-1
ytt.config.ts
ytt.config.ts
+1
-1
No files found.
src/pages/logistics/logisticsInfo/index.tsx
View file @
8d08fc75
...
...
@@ -28,6 +28,8 @@ const defaultCityData = { index: 0, provinceCode: 0, province: '', cityCode: 0,
const
LogisticsInfo
:
React
.
FC
<
LogisticsInfoPropsType
>
=
(
props
)
=>
{
const
{
siteUrl
,
siteId
}
=
props
.
SiteStore
const
[
door
,
setDoor
]
=
useState
<
string
>
(
''
);
const
[
resUrl
,
setResUrl
]
=
useState
<
string
>
(
''
);
const
[
formIsHalfFilledOut
,
setFormIsHalfFilledOut
]
=
useState
(
false
)
const
[
form
]
=
Form
.
useForm
()
const
[
allMallList
,
setAllMallList
]
=
useState
([])
...
...
@@ -163,7 +165,6 @@ const LogisticsInfo: React.FC<LogisticsInfoPropsType> = (props) => {
}
const
handleInputChange
=
(
data
:
any
)
=>
{
console
.
log
(
data
,
100086
)
setMainBusiness
(
data
);
form
.
setFieldsValue
({
mainBusiness
:
data
...
...
@@ -346,13 +347,12 @@ const LogisticsInfo: React.FC<LogisticsInfoPropsType> = (props) => {
const
{
value
}
=
e
.
target
;
const
result
=
[...
slideshowBOList
];
result
[
index
].
link
=
value
;
console
.
log
(
result
)
setSlideshowBOList
(
result
)
form
.
setFieldsValue
({
slideshowBOList
:
result
})
}
/**
const handleMallSelectChange = (mallId: number) => {
setShopId(mallId)
if (!shopInfo) {
...
...
@@ -395,10 +395,6 @@ const LogisticsInfo: React.FC<LogisticsInfoPropsType> = (props) => {
return result
}
const
handleFormValueChange
=
()
=>
{
setFormIsHalfFilledOut
(
true
)
}
const getSelectMallStoreUrl = () => {
if (!shopInfo) {
return null
...
...
@@ -415,6 +411,28 @@ const LogisticsInfo: React.FC<LogisticsInfoPropsType> = (props) => {
}
return null
}
*/
const
handleFormValueChange
=
()
=>
{
setFormIsHalfFilledOut
(
true
)
}
/** 获取店铺链接 */
const
checkUrl
=
(
url
)
=>
{
if
(
url
&&
typeof
url
===
'string'
)
{
if
(
url
.
indexOf
(
'/'
)
===
0
)
{
return
url
.
replace
(
'/'
,
''
).
trim
()
}
else
{
return
`
${
url
}
`
.
trim
()
}
}
}
const
handleMallSelectChange
=
(
val
,
option
)
=>
{
setDoor
(
option
.
children
);
if
(
option
.
url
)
{
checkUrl
(
option
.
url
)
?
setResUrl
(
`
${
checkUrl
(
option
.
url
)}
.
${
siteUrl
}
`
)
:
setResUrl
(
`
${
siteUrl
}
`
)
}
}
return
(
<
PageHeaderWrapper
...
...
@@ -583,13 +601,17 @@ const LogisticsInfo: React.FC<LogisticsInfoPropsType> = (props) => {
<
Select
allowClear
value=
{
shopId
}
className=
{
styles
.
form_item
}
onChange=
{
handleMallSelectChange
}
>
{
allMallList
.
map
(
item
=>
(
<
Select
.
Option
key=
{
item
.
id
}
value=
{
item
.
id
}
>
{
item
.
name
}
</
Select
.
Option
>
<
Select
.
Option
key=
{
item
.
id
}
value=
{
item
.
id
}
url=
{
item
.
url
}
>
{
item
.
name
}
</
Select
.
Option
>
))
}
</
Select
>
{
getSelectMallStoreUrl
()
}
{
resUrl
&&
(
<
div
className=
{
styles
.
shop_url
}
>
<
span
>
当前
{
door
}
链接:
</
span
>
<
label
>
{
resUrl
}
</
label
>
<
CopyOutlined
className=
{
styles
.
copy_icon
}
onClick=
{
()
=>
handleCopyLinke
(
resUrl
)
}
/>
</
div
>
)
}
</
Form
.
Item
>
</
TabPane
>
<
TabPane
tab=
'SEO'
key=
'2'
forceRender
>
...
...
src/pages/transaction/purchaseAbility/components/detail/components/bidCommonLayout/index.tsx
View file @
8d08fc75
...
...
@@ -92,7 +92,7 @@ const BidCommonLayout: React.FC<BidCommonLayoutProps> = (props: any) => {
<
Divider
dashed
style=
{
{
color
:
'#EBECF0'
}
}
/>
<
div
className=
{
selfStyles
.
baseItem
}
>
<
h5
className=
{
selfStyles
.
label
}
>
授标意见:
</
h5
>
<
h5
className=
{
selfStyles
.
content
}
>
{
effect
.
signUpIdea
}
</
h5
>
<
h5
className=
{
selfStyles
.
content
}
>
{
effect
.
signUpIdea
||
'-'
}
</
h5
>
</
div
>
<
div
className=
{
selfStyles
.
baseItem
}
>
<
h5
className=
{
selfStyles
.
label
}
>
附件:
</
h5
>
...
...
src/pages/transaction/purchaseAbility/components/detail/components/contrastLyout1/index.tsx
View file @
8d08fc75
...
...
@@ -148,8 +148,8 @@ const ContrastLyout1: React.FC<IProps> = (props: any) => {
if
(
data
.
length
>
0
)
{
formatting
(
data
,
i
);
}
else
{
message
.
error
(
'当前暂无比价信息'
);
setDisabled
(
tru
e
);
//
message.error('当前暂无比价信息');
setDisabled
(
fals
e
);
}
setLoading
(
false
);
...
...
src/pages/transaction/purchaseAbility/components/modalOperate/index.tsx
View file @
8d08fc75
...
...
@@ -2,7 +2,7 @@ import React, { useEffect, useState } from 'react';
import
{
Modal
}
from
'antd'
;
import
{
SchemaForm
,
SchemaMarkupField
as
Field
,
create
Async
FormActions
,
createFormActions
,
FormEffectHooks
,
}
from
'@formily/antd'
import
{
Input
,
Radio
,
DatePicker
,
Checkbox
}
from
'@formily/antd-components'
...
...
@@ -11,7 +11,7 @@ import moment from 'moment';
import
styles
from
'./index.less'
;
import
{
isEmpty
}
from
'lodash'
;
const
actions
=
create
Async
FormActions
()
const
actions
=
createFormActions
()
const
{
onFieldChange$
}
=
FormEffectHooks
;
export
interface
IProps
{
...
...
@@ -42,6 +42,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
const
[
confirmLoading
,
setConfirmLoading
]
=
useState
<
boolean
>
(
false
);
const
useFormEffects
=
()
=>
{
const
{
setFieldState
}
=
createFormActions
()
if
(
modalType
===
'audit'
)
{
onFieldChange$
(
'state'
).
subscribe
(({
value
})
=>
{
actions
.
setFieldState
(
'auditOpinion'
,
state
=>
{
...
...
src/pages/transaction/purchaseAbility/offter/addOffter/modal/crossSellProducts.tsx
View file @
8d08fc75
...
...
@@ -81,6 +81,8 @@ const CrossSellProducts: React.FC<IProps> = (props: any) => {
const
handleClose
=
()
=>
{
onClose
()
resetValue
()
setFiles
([])
setProductId
(
0
)
}
/** 确定 */
const
handleConfirm
=
()
=>
{
...
...
@@ -89,6 +91,8 @@ const CrossSellProducts: React.FC<IProps> = (props: any) => {
attribute
,
files
,
})
setProductId
(
0
)
setFiles
([])
resetValue
()
}
...
...
@@ -146,9 +150,18 @@ const CrossSellProducts: React.FC<IProps> = (props: any) => {
if
(
record
.
productId
)
{
GetCommodityAttribute
(
record
.
productId
);
}
record
.
enclosureUrls
&&
setFiles
(
record
.
enclosureUrls
)
}
},
[
rel
,
record
])
const
handleSelProduct
=
(
data
)
=>
{
console
.
log
(
data
);
data
.
id
&&
setProductId
(
data
.
id
);
data
.
productId
&&
setProductId
(
data
.
productId
);
setFlag
(
true
)
}
return
(
<>
<
Drawer
...
...
@@ -282,7 +295,7 @@ const CrossSellProducts: React.FC<IProps> = (props: any) => {
</>
)
}
{
!
preview
&&
(
<
Button
onClick=
{
()
=>
{
setFlag
(
true
);
setProductId
(
product
.
id
);
console
.
log
(
product
)
}
}
block
type=
"dashed"
style=
{
{
margin
:
'16px 0px'
}
}
>
<
Button
onClick=
{
()
=>
handleSelProduct
(
product
)
}
block
type=
"dashed"
style=
{
{
margin
:
'16px 0px'
}
}
>
<
PlusSquareOutlined
/>
选择商品
</
Button
>
...
...
src/pages/transaction/purchaseAbility/offter/addOffter/modal/selectProduct.tsx
View file @
8d08fc75
...
...
@@ -159,9 +159,12 @@ const SelectProduct: React.FC<Iprops> = (props: any) => {
}
useEffect
(()
=>
{
console
.
log
(
id
)
if
(
id
)
{
console
.
log
(
2
)
RowCtl
.
setSelectedRowKeys
([
id
]);
}
else
{
console
.
log
(
1
)
RowCtl
.
setSelectedRowKeys
([]);
}
},
[
visible
])
...
...
src/pages/transaction/purchaseAbility/purchasDoor/purchasInfo/index.tsx
View file @
8d08fc75
...
...
@@ -316,7 +316,6 @@ const PurchasInfo: React.FC<PurchasInfoPropsType> = (props) => {
const
{
value
}
=
e
.
target
;
const
result
=
[...
slideshowBOList
];
result
[
index
].
link
=
value
;
console
.
log
(
result
)
setSlideshowBOList
(
result
)
form
.
setFieldsValue
({
slideshowBOList
:
result
...
...
@@ -385,9 +384,10 @@ const PurchasInfo: React.FC<PurchasInfoPropsType> = (props) => {
setFormIsHalfFilledOut
(
true
)
}
/** 获取店铺链接 */
const
checkUrl
=
(
url
)
=>
{
if
(
url
&&
typeof
url
===
'string'
)
{
if
(
url
.
indexOf
(
'/'
)
>
-
1
)
{
if
(
url
.
indexOf
(
'/'
)
===
0
)
{
return
url
.
replace
(
'/'
,
''
).
trim
()
}
else
{
return
`
${
url
}
`
.
trim
()
...
...
@@ -395,11 +395,10 @@ const PurchasInfo: React.FC<PurchasInfoPropsType> = (props) => {
}
}
/** 获取店铺链接 */
const
handleMallSelectChange
=
(
val
,
option
)
=>
{
setDoor
(
option
.
children
);
if
(
option
.
url
)
{
setResUrl
(
`
${
siteUrl
}
/
${
checkUrl
(
option
.
url
)
}
`
)
checkUrl
(
option
.
url
)
?
setResUrl
(
`
${
checkUrl
(
option
.
url
)}
.
${
siteUrl
}
`
)
:
setResUrl
(
`
${
siteUrl
}
`
)
}
}
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/components/material.tsx
View file @
8d08fc75
...
...
@@ -15,6 +15,7 @@ import style from './index.less';
import
DrawerWrite
from
'../modal/drawerWrite'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
UploadImport
from
'@/components/UploadImport'
;
import
EyePreview
from
'@/components/EyePreview'
;
const
layout
:
any
=
{
colon
:
false
,
...
...
@@ -40,7 +41,9 @@ const Material: React.FC<Iprops> = (props: any) => {
/** 表单表头 */
const
[
flag
,
setFlag
]
=
useState
<
boolean
>
(
false
);
const
[
edit
,
setEdit
]
=
useState
<
any
>
({});
const
[
dataSource
,
setDataSource
]
=
useState
<
any
>
([])
const
[
dataSource
,
setDataSource
]
=
useState
<
any
>
([]);
const
[
eidtIndex
,
setEditIndex
]
=
useState
<
number
|
null
>
();
const
[
isPreview
,
setIsPreview
]
=
useState
<
boolean
>
(
false
);
/** 删除列表 */
const
handleRemove
=
(
index
:
number
)
=>
{
...
...
@@ -50,9 +53,11 @@ const Material: React.FC<Iprops> = (props: any) => {
}
/** 编辑列表 */
const
handleEdit
=
(
data
)
=>
{
const
handleEdit
=
(
data
,
index
,
preview
?)
=>
{
setEditIndex
(
index
)
setEdit
(
data
);
setFlag
(
true
)
setIsPreview
(
preview
)
}
const
columns
:
ColumnType
<
Object
>
[]
=
[
...
...
@@ -65,6 +70,9 @@ const Material: React.FC<Iprops> = (props: any) => {
title
:
'物料名称'
,
key
:
'name'
,
dataIndex
:
'name'
,
render
:
(
text
:
any
,
record
:
any
,
index
:
number
)
=>
(
<
EyePreview
type=
'button'
handleClick=
{
()
=>
handleEdit
(
record
,
index
,
true
)
}
>
{
text
}
</
EyePreview
>
)
},
{
title
:
'规格型号'
,
...
...
@@ -97,7 +105,7 @@ const Material: React.FC<Iprops> = (props: any) => {
dataIndex
:
'operate'
,
render
:
(
_text
:
any
,
record
:
any
,
index
:
number
)
=>
(
<>
<
Button
type=
'link'
onClick=
{
()
=>
handleEdit
(
record
)
}
>
编辑
</
Button
>
<
Button
type=
'link'
onClick=
{
()
=>
handleEdit
(
record
,
index
)
}
>
编辑
</
Button
>
<
Button
onClick=
{
()
=>
handleRemove
(
index
)
}
type=
'link'
>
删除
</
Button
>
</>
)
...
...
@@ -113,12 +121,23 @@ const Material: React.FC<Iprops> = (props: any) => {
/** 打开添加方式 */
const
handleAddmode
=
()
=>
{
setFlag
(
true
)
setEdit
({})
setEditIndex
(
null
)
}
/** 关闭 */
const
handleClose
=
()
=>
{
setFlag
(
false
)
setIsPreview
(
false
)
}
/** 添加列表 */
const
fetchTableList
=
(
data
:
any
)
=>
{
if
(
Object
.
keys
(
data
).
length
>
0
)
{
console
.
log
(
data
,
98
)
if
(
eidtIndex
||
eidtIndex
===
0
)
{
dataSource
[
eidtIndex
]
=
data
;
setDataSource
([...
dataSource
]);
}
else
{
setDataSource
([...
dataSource
,
data
]);
}
setFlag
(
false
);
}
}
...
...
@@ -202,9 +221,10 @@ const Material: React.FC<Iprops> = (props: any) => {
{
materielMode
===
1
&&
(
<
DrawerWrite
preview=
{
isPreview
}
edit=
{
edit
}
flag=
{
flag
}
onClose=
{
()
=>
setFlag
(
false
)
}
onClose=
{
handleClose
}
onConfirm=
{
fetchTableList
}
/>
)
}
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/modal/drawerWrite.tsx
View file @
8d08fc75
This diff is collapsed.
Click to expand it.
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/modal/selectProduct.tsx
View file @
8d08fc75
...
...
@@ -95,7 +95,7 @@ const SelectProduct: React.FC<Iprops> = (props: any) => {
<
StandardTable
currentRef=
{
ref
}
columns=
{
columns
}
tableProps=
{
{
row
Kew
:
'id'
}
}
tableProps=
{
{
row
key
:
'id'
}
}
rowSelection=
{
rowSelection
}
fetchTableData=
{
(
params
)
=>
fetchGoodsData
(
params
)
}
controlRender=
{
...
...
ytt.config.ts
View file @
8d08fc75
...
...
@@ -20,7 +20,7 @@ const tokenList = [
{
name
:
'TransactionV2'
,
token
:
'3ad04435494d01c359b9f07948338e019133a3e6c0fccdbe1bc3adc19cf1e0b1'
,
categoryIds
:
[
0
]
},
// 交易服务V2
{
name
:
'ContractV2'
,
token
:
'bbf1f327cfe7c59d1e7fd9c5d25119829dd79d238b1f1c79ed97331e220721a4'
,
categoryIds
:
[
0
]
},
// 合同能力V2
{
name
:
'OrderV2'
,
token
:
'033f83bd5f519506f65f46d1513b1f8028a1dc1b5238d22edd0a2feb53cd3a19'
,
categoryIds
:
[
0
],
},
//订单服务V2
{
name
:
'Platform'
,
token
:
'
cadc3b13452c3ec67b5ef0c57063f12142e857a9eaa64669e80165adf42f5861
'
,
categoryIds
:
[
0
]
},
// 平台后台v2
{
name
:
'Platform'
,
token
:
'
db3b086157528c865a1a1a9fafffa574e9c3f098c0518a7c374a72988ba1edbb
'
,
categoryIds
:
[
0
]
},
// 平台后台v2
{
name
:
'ProductV2'
,
token
:
'b915026587fa1f6edf056f3335817fe2d4b350b0aa84da456786e15e83d45827'
,
categoryIds
:
[
0
],
},
// 商品服务V2
{
name
:
'TemplateV2'
,
token
:
'f0187aed046ac19accbed5c780cade01cf11b50a37099dab9d456195a4abd0d3'
,
categoryIds
:
[
0
],
},
// 页面模板服务V2
{
name
:
'MemberV2'
,
token
:
'87f86a297246fbf1c0dff7d34f13729cb194935a95db077a5009ac4ea48cea6f'
,
categoryIds
:
[
0
]},
//会员服务 V2
...
...
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