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
aeb0e849
Commit
aeb0e849
authored
Dec 16, 2021
by
Bill
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
67911fde
dcb1f0bd
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
54 additions
and
48 deletions
+54
-48
config.local.ts
config/config.local.ts
+1
-1
priceAttributeForm.tsx
...commodity/products/addProductsItem/priceAttributeForm.tsx
+1
-2
index.tsx
src/pages/commodity/products/index.tsx
+5
-4
index.tsx
src/pages/payandSettle/capitalAccounts/eAccount/index.tsx
+3
-1
index.tsx
...payandSettle/eAccountApprove/components/company/index.tsx
+14
-10
index.tsx
...Settle/eAccountApprove/components/companyFinish/index.tsx
+1
-1
index.tsx
src/pages/priceManage/effect/index.tsx
+3
-3
priceModal.tsx
src/pages/priceManage/priceStrategy/component/priceModal.tsx
+1
-1
useOrderDetail.tsx
...ages/transaction/_public/order/effects/useOrderDetail.tsx
+0
-2
index.tsx
src/pages/transaction/components/orderMergeInfo/index.tsx
+4
-4
index.tsx
src/pages/transaction/components/orderPayModal/index.tsx
+1
-0
index.tsx
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
+19
-17
index.tsx
...eOrder/orderCollectCash/components/addressModal/index.tsx
+0
-1
useBusinessEffects.ts
.../bills/components/BillsForm/effects/useBusinessEffects.ts
+1
-1
No files found.
config/config.local.ts
View file @
aeb0e849
...
...
@@ -4,7 +4,7 @@ import AntdDayjsWebpackPlugin from 'antd-dayjs-webpack-plugin'
// import LodashModuleReplacementPlugin from 'lodash-webpack-plugin'
export
default
defineConfig
({
devtool
:
false
,
devtool
:
'cheap-module-source-map'
,
// externals: {
// "react": 'React',
// "react-dom": 'ReactDOM',
...
...
src/pages/commodity/products/addProductsItem/priceAttributeForm.tsx
View file @
aeb0e849
...
...
@@ -174,7 +174,6 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
let
_temp_attributeValObjArr
=
[]
// 取id备用
let
_attributeNameArr
=
[]
let
_attributeValueArr
=
[]
if
(
hasAttribute
.
length
)
{
// 提取价格属性 属性名数组 属性值SKU数组 /*编辑情况下直接进入此页面length为空 此时需获取调用接口返回的数据生成*/
hasAttribute
.
map
(
_item
=>
{
_attributeNameArr
.
push
(
_item
.
attributeName
)
// 用于列header
...
...
@@ -313,7 +312,7 @@ const PriceAttributeForm: React.FC<Iprops> = (props) => {
if
(
assistPrice
&&
Array
.
isArray
(
assistPrice
))
{
return
assistPrice
.
map
(
p
=>
<
p
>
{
planPrice
===
3
?
p
:
`${intl.formatMessage({ id: 'commodity.products.addProductsItem.priceAttributeForm.currency' })}${p}`
}
</
p
>)
}
else
if
(
assistPrice
)
{
return
planPrice
===
3
?
assistPrice
:
`
${
intl
.
formatMessage
({
id
:
'commodity.products.addProductsItem.priceAttributeForm.currency'
})}${
assistPrice
}
`
return
planPrice
===
3
?
assistPrice
:
(
isNaN
(
assistPrice
)
?
`¥
${
0.00
}
`
:
`
${
intl
.
formatMessage
({
id
:
'commodity.products.addProductsItem.priceAttributeForm.currency'
})}${
assistPrice
}
`
)
}
}
})
...
...
src/pages/commodity/products/index.tsx
View file @
aeb0e849
...
...
@@ -534,10 +534,10 @@ const Products: React.FC<{}> = () => {
setExportLoading
(
true
)
postProductCommodityExportCommodityQrCode
({
idList
:
currentRef
.
current
},
{
responseType
:
'blob'
,
getResponse
:
true
}).
then
((
res
:
any
)
=>
{
const
{
code
,
data
,
response
}
=
res
const
filename
=
response
.
headers
.
get
(
'content-disposition'
).
split
(
'='
)[
1
]
if
(
code
)
{
throw
new
TypeError
(
res
.
message
)
if
(
code
!==
1000
)
{
throw
new
Error
(
res
.
message
)
}
else
{
const
filename
=
response
.
headers
.
get
(
'content-disposition'
).
split
(
'='
)[
1
]
let
blob
=
new
Blob
([
data
],
{
type
:
"application/x-zip-compressed"
})
// let objectUrl = URL.createObjectURL(blob)
// window.location.href = objectUrl
...
...
@@ -547,7 +547,8 @@ const Products: React.FC<{}> = () => {
a
.
click
();
window
.
URL
.
revokeObjectURL
(
url
);
}
}).
catch
(
error
=>
{
}).
catch
(
error
=>
{
console
.
log
(
error
,
'error'
)
message
.
error
(
error
)
}).
finally
(()
=>
{
setExportLoading
(
false
)
...
...
src/pages/payandSettle/capitalAccounts/eAccount/index.tsx
View file @
aeb0e849
...
...
@@ -268,6 +268,7 @@ const EAccountDetail: React.FC<{}> = () => {
modalRef
.
current
.
setVisible
(
false
)
setSendCodeVisible
(
true
)
setTradeCode
(
data
.
tradeCode
)
start
()
}
else
if
(
code
===
1000
&&
parasm
.
type
===
'GATEWAY_VSP'
)
{
modalRef
.
current
.
setVisible
(
false
)
setPayResultVisible
(
true
)
...
...
@@ -283,6 +284,7 @@ const EAccountDetail: React.FC<{}> = () => {
const
handleRecharge
=
()
=>
{
modalRef
.
current
.
setVisible
(
true
)
}
const
applyWithdraw
=
()
=>
{
...
...
@@ -291,11 +293,11 @@ const EAccountDetail: React.FC<{}> = () => {
}
const
handleWithdraw
=
()
=>
{
setLoading
(
true
)
withdrawForm
.
submit
()
}
const
handleWidthdrawSubmit
=
(
values
)
=>
{
setLoading
(
true
)
const
amount
=
Number
(
values
.
amount
)
if
(
amount
>
0
&&
amount
<=
details
.
usableBalance
)
{
// 大于0并且小于可用金额
let
params
=
{
...
...
src/pages/payandSettle/eAccountApprove/components/company/index.tsx
View file @
aeb0e849
import
React
,
{
useContext
,
useEffect
,
useState
}
from
'react'
import
{
useIntl
}
from
'umi'
;
import
{
Button
,
Col
,
Form
,
Input
,
Row
,
Select
}
from
'antd'
import
{
Button
,
Col
,
Form
,
Input
,
message
,
Row
,
Select
}
from
'antd'
import
MellowCard
from
'@/components/MellowCard'
;
import
{
BIND_PHONE
,
EDetailContext
,
formItemLayout
,
formItemLayoutCompany
,
prefixSelector
,
prefixSelectorEle
,
tailFormItemLayout
,
tailFormItemLayoutCompany
}
from
'../../constant'
;
import
{
EditOutlined
}
from
'@ant-design/icons'
;
...
...
@@ -90,17 +90,21 @@ const Company: React.FC<{}> = () => {
picture
:
values
[
item
]
}))
const
fns
=
pictures
.
map
((
item
,
index
)
=>
new
Promise
(()
=>
{
setTimeout
(()
=>
postPayAllInPayIdCardCollect
(
item
),
500
*
index
)
const
fns
=
pictures
.
map
((
item
,
index
)
=>
new
Promise
((
resolve
,
reject
)
=>
{
setTimeout
(()
=>
{
const
res
=
postPayAllInPayIdCardCollect
(
item
,
{
ctlType
:
"none"
})
resolve
(
res
)
},
500
*
index
)
}))
Promise
.
all
(
fns
).
then
(
res
=>
{
console
.
log
(
res
)
}).
finally
(()
=>
{
setTimeout
(()
=>
{
setLoading
(
false
)
reloadFormData
()
},
2000
)
Promise
.
all
(
fns
).
then
((
res
)
=>
{
if
(
res
.
every
(
item
=>
item
[
'code'
]
===
1000
))
{
message
.
success
(
'操作成功'
)
}
else
{
message
.
success
(
'操作失败'
)
}
setLoading
(
false
)
reloadFormData
()
})
}
...
...
src/pages/payandSettle/eAccountApprove/components/companyFinish/index.tsx
View file @
aeb0e849
...
...
@@ -103,7 +103,7 @@ const CompanyFinish: React.FC<{}> = () => {
</
Col
>
<
Col
span=
{
12
}
>
<
Row
className=
{
styles
[
'card-list'
]
}
>
<
Col
span=
{
6
}
className=
{
styles
[
'card-list_title'
]
}
>
{
intl
.
formatMessage
({
id
:
'payandSettle.capitalAccounts.eAccount.zhihanghanghao'
,
defaultMessage
:
'支
行
行号'
})
}
</
Col
>
<
Col
span=
{
6
}
className=
{
styles
[
'card-list_title'
]
}
>
{
intl
.
formatMessage
({
id
:
'payandSettle.capitalAccounts.eAccount.zhihanghanghao'
,
defaultMessage
:
'支
付
行号'
})
}
</
Col
>
<
Col
>
{
data
.
bankNo
}
</
Col
>
</
Row
>
</
Col
>
...
...
src/pages/priceManage/effect/index.tsx
View file @
aeb0e849
import
{
use
Intl
}
from
'umi'
;
import
{
get
Intl
}
from
'umi'
;
import
{
ISchemaFormActions
,
ISchemaFormAsyncActions
}
from
'@formily/antd'
;
import
{
columnsUnitProduct
}
from
'../constant'
;
import
{
GlobalConfig
}
from
'@/global/config'
;
...
...
@@ -33,7 +33,7 @@ export const searchCustomerCategoryOptionEffect = (context: any, fieldName: stri
// 构建设置价格 table 所需要的data和columns
export
const
constructTableData
=
(
data
:
any
,
ctx
:
ISchemaFormActions
|
ISchemaFormAsyncActions
,
pageStatus
:
any
)
=>
{
const
intl
=
use
Intl
();
const
intl
=
get
Intl
();
let
col
:
any
=
[...
columnsUnitProduct
]
let
temp
:
any
=
[]
// 兼容编辑价格策略 新增使用data 编辑使用data[0].commodityUnitPrice
...
...
@@ -94,7 +94,7 @@ export const constructTableData = (data: any, ctx: ISchemaFormActions | ISchemaF
// 生成 Api 所需要的参数
export
const
transformParamsForApi
=
(
data
:
any
,
ctx
:
ISchemaFormActions
|
ISchemaFormAsyncActions
)
=>
{
const
intl
=
use
Intl
();
const
intl
=
get
Intl
();
let
_params
:
any
=
{}
_params
[
"name"
]
=
data
.
name
_params
[
"priceType"
]
=
data
.
priceType
...
...
src/pages/priceManage/priceStrategy/component/priceModal.tsx
View file @
aeb0e849
...
...
@@ -264,7 +264,7 @@ const PriceModal: React.FC<PriceModalProps> = (props) => {
},
{
pattern
:
/^
\d
+
(\.\d
{1,4}
)?
$/
,
message
:
intl
.
formatMessage
({
id
:
'priceManage.priceStrategy.priceModal.uniquePrice.rule
1
'
}),
message
:
intl
.
formatMessage
({
id
:
'priceManage.priceStrategy.priceModal.uniquePrice.rule
.2
'
}),
}
]
}
>
...
...
src/pages/transaction/_public/order/effects/useOrderDetail.tsx
View file @
aeb0e849
...
...
@@ -104,8 +104,6 @@ export const useOrderDetail = (options: OrderDetailHookProps) => {
const
payObj
=
data
.
payments
.
filter
(
item
=>
item
.
showPayment
)[
0
]
setCurrentPayInfoId
(
payObj
?.
paymentId
?
payObj
.
paymentId
:
data
.
payments
[
0
].
paymentId
)
}
}
else
{
message
.
error
(
msg
)
}
})
}
...
...
src/pages/transaction/components/orderMergeInfo/index.tsx
View file @
aeb0e849
...
...
@@ -74,7 +74,7 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => {
name
:
'invoice'
,
render
:
item
=>
item
&&
<
div
className=
{
style
.
invoice_list_item
}
>
<
div
className=
{
style
.
invoice_list_item_content
}
>
<
div
className=
{
cx
(
style
.
invoice_list_item_content_tag
,
item
.
invoiceKind
!==
1
?
style
.
special
:
''
)
}
>
{
item
.
invoice
Type
===
1
?
intl
.
formatMessage
({
id
:
'transaction_components.zengzhishuiputongfapiao'
})
:
intl
.
formatMessage
({
id
:
'transaction_components.zengzhishuizhuanyongfapiao'
})
}
</
div
>
<
div
className=
{
cx
(
style
.
invoice_list_item_content_tag
,
item
.
invoiceKind
!==
1
?
style
.
special
:
''
)
}
>
{
item
.
invoice
Kind
===
1
?
intl
.
formatMessage
({
id
:
'transaction_components.zengzhishuiputongfapiao'
})
:
intl
.
formatMessage
({
id
:
'transaction_components.zengzhishuizhuanyongfapiao'
})
}
</
div
>
<
div
className=
{
style
.
invoice_list_item_content_name
}
>
<
div
>
{
item
.
title
}
</
div
>
<
div
>
{
item
.
taxNo
}
</
div
>
...
...
@@ -234,8 +234,8 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => {
{
/* 查看发票 */
}
<
Modal
title=
{
intl
.
formatMessage
({
id
:
'transaction_components.fapiaoxinxi'
})
}
visible=
{
isModalVisible
}
onOk=
{
()
=>
setIsModalVisible
(
false
)
}
onCancel=
{
()
=>
setIsModalVisible
(
false
)
}
>
<
Row
gutter=
{
[
0
,
10
]
}
style=
{
{
fontSize
:
14
}
}
>
<
Col
span=
{
4
}
style=
{
{
fontSize
:
12
,
color
:
"#909399"
}
}
>
{
intl
.
formatMessage
({
id
:
'transaction_components.kaijuleixing'
})
}
:
</
Col
><
Col
span=
{
20
}
>
{
invoice
?.
invoice
Kind
===
1
?
intl
.
formatMessage
({
id
:
'transaction_components.qiye'
})
:
intl
.
formatMessage
({
id
:
'transaction_components.geren'
})
}
</
Col
>
<
Col
span=
{
4
}
style=
{
{
fontSize
:
12
,
color
:
"#909399"
}
}
>
{
intl
.
formatMessage
({
id
:
'transaction_components.fapiaozhonglei'
})
}
:
</
Col
><
Col
span=
{
20
}
>
{
invoice
?.
invoice
Type
Name
}
</
Col
>
<
Col
span=
{
4
}
style=
{
{
fontSize
:
12
,
color
:
"#909399"
}
}
>
{
intl
.
formatMessage
({
id
:
'transaction_components.kaijuleixing'
})
}
:
</
Col
><
Col
span=
{
20
}
>
{
invoice
?.
invoice
TypeName
}
</
Col
>
<
Col
span=
{
4
}
style=
{
{
fontSize
:
12
,
color
:
"#909399"
}
}
>
{
intl
.
formatMessage
({
id
:
'transaction_components.fapiaozhonglei'
})
}
:
</
Col
><
Col
span=
{
20
}
>
{
invoice
?.
invoice
Kind
Name
}
</
Col
>
<
Col
span=
{
4
}
style=
{
{
fontSize
:
12
,
color
:
"#909399"
}
}
>
{
intl
.
formatMessage
({
id
:
'transaction_components.fapiaotaitou'
})
}
:
</
Col
><
Col
span=
{
20
}
>
{
invoice
?.
title
}
</
Col
>
<
Col
span=
{
4
}
style=
{
{
fontSize
:
12
,
color
:
"#909399"
}
}
>
{
intl
.
formatMessage
({
id
:
'transaction_components.nashuihao'
})
}
:
</
Col
><
Col
span=
{
20
}
>
{
invoice
?.
taxNo
}
</
Col
>
<
Col
span=
{
4
}
style=
{
{
fontSize
:
12
,
color
:
"#909399"
}
}
>
{
intl
.
formatMessage
({
id
:
'transaction_components.kaihuhang'
})
}
:
</
Col
><
Col
span=
{
20
}
>
{
invoice
?.
bank
}
</
Col
>
...
...
@@ -262,7 +262,7 @@ const OrderMergeInfo: React.FC<OrderMergeInfoProps> = (props) => {
<
div
className=
{
cx
(
style
.
invoice_list_item_content_tag
,
item
.
kind
!==
1
?
style
.
special
:
''
)
}
>
{
item
.
kind
===
1
?
intl
.
formatMessage
({
id
:
'transaction_components.zengzhishuiputongfapiao'
})
:
intl
.
formatMessage
({
id
:
'transaction_components.zengzhishuizhuanyongfapiao'
})
}
</
div
>
<
div
className=
{
style
.
invoice_list_item_content_name
}
>
<
span
>
{
item
.
invoiceTitle
}
</
span
>
<
span
>
(
{
item
.
type
===
1
?
intl
.
formatMessage
({
id
:
'transaction_components.qiye'
})
:
intl
.
formatMessage
({
id
:
'transaction_components.geren'
})
}
)
</
span
>
<
span
>
{
item
.
type
===
1
?
intl
.
formatMessage
({
id
:
'transaction_components.qiye'
})
:
intl
.
formatMessage
({
id
:
'transaction_components.geren'
})
}
</
span
>
{
item
.
isDefault
===
1
?
<
div
className=
{
style
.
default
}
>
{
intl
.
formatMessage
({
id
:
'transaction_components.moren'
})
}
</
div
>
:
<
div
className=
{
style
.
set_default
}
onClick=
{
e
=>
handleSetDefault
(
item
,
e
)
}
>
{
intl
.
formatMessage
({
id
:
'transaction_components.sheweimoren'
})
}
</
div
>
...
...
src/pages/transaction/components/orderPayModal/index.tsx
View file @
aeb0e849
...
...
@@ -384,6 +384,7 @@ const OrderPayModal: React.FC<OrderPayModalProps> = (props) => {
setPayStep
(
3
)
setTradeCode
(
res
.
data
.
tradeNo
)
setCurrent
(
1000
)
start
()
}
else
if
(
tonglian
&&
checked
.
id
===
14
)
{
console
.
log
(
current
,
checked
,
'通联快捷跳转'
)
setCurrent
(
1000
)
...
...
src/pages/transaction/purchaseOrder/orderCollect/index.tsx
View file @
aeb0e849
...
...
@@ -112,6 +112,8 @@ export const MoneyTotalBox = registerVirtualBox('moneyTotalBox', props => {
</
Col
>
</
RowStyle
>
})
/** 此文件模块 包含orderCollect文件夹备用 暂不起作用 */
// 采购订单详情页. 包含新增和编辑
const
PurchaseOrderDetail
:
React
.
FC
<
PurchaseOrderDetailProps
>
=
(
props
)
=>
{
...
...
@@ -161,23 +163,23 @@ const PurchaseOrderDetail:React.FC<PurchaseOrderDetailProps> = (props) => {
useEffect
(()
=>
{
if
(
id
)
{
setFormLoading
(
true
)
// @ts-ignore
getOrderProcurementOrderDetails
({
id
}).
then
(
res
=>
{
const
{
data
}
=
res
const
_orderProductRequests
=
data
.
orderModel
>
30
?
procurementRenderField
(
data
.
orderProductRequests
)
:
data
.
orderProductRequests
setInitFormValue
({
...
data
,
// 判断是否合同下单
orderProductRequests
:
[],
deliveryTime
:
formatTimeString
(
data
.
deliveryTime
)
})
setTimeout
(()
=>
{
addSchemaAction
.
setFieldValue
(
'orderProductRequests'
,
_orderProductRequests
)
},
1000
)
setFormLoading
(
false
)
})
//
//
@ts-ignore
//
getOrderProcurementOrderDetails({
//
id
//
}).then(res => {
//
const { data } = res
//
const _orderProductRequests = data.orderModel > 30 ? procurementRenderField(data.orderProductRequests) : data.orderProductRequests
//
setInitFormValue({
//
...data,
//
// 判断是否合同下单
//
orderProductRequests: [],
//
deliveryTime: formatTimeString(data.deliveryTime)
//
})
//
setTimeout(() => {
//
addSchemaAction.setFieldValue('orderProductRequests', _orderProductRequests)
//
}, 1000)
//
setFormLoading(false)
//
})
}
if
(
modelType
)
{
...
...
src/pages/transaction/purchaseOrder/orderCollectCash/components/addressModal/index.tsx
View file @
aeb0e849
...
...
@@ -131,7 +131,6 @@ const AddressModal:React.FC<AddressModalProps> = (props) => {
effects=
{
(
$
,
ctx
)
=>
{
$
(
'onFormMount'
).
subscribe
(()
=>
{
// 四级联动
console
.
log
(
$
,
ctx
,
1
)
useChainEffects
(
$
,
ctx
)
})
...
...
src/pages/transaction/stockSellStorage/bills/components/BillsForm/effects/useBusinessEffects.ts
View file @
aeb0e849
...
...
@@ -61,7 +61,7 @@ import {
getExchangeDeliveryList
,
getExchangeWarehousingList
,
}
from
'../fetchBillList'
;
import
{
getIntl
}
from
'
@/.umi/plugin-locale/localeExports
'
;
import
{
getIntl
}
from
'
umi
'
;
const
intl
=
getIntl
();
const
{
...
...
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