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
d6e21304
Commit
d6e21304
authored
Aug 12, 2021
by
前端-钟卫鹏
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
566d28cd
7a514ef1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
55 additions
and
114 deletions
+55
-114
index.tsx
src/components/AddressSelect/index.tsx
+0
-0
schema.ts
src/components/AddressSelect/schema.ts
+6
-2
reset.less
src/global/styles/reset.less
+6
-0
PurchaseList.tsx
...contract/coordination/details/components/PurchaseList.tsx
+2
-2
FormList.tsx
src/pages/contract/manage/add/components/FormList.tsx
+5
-5
index.ts
src/pages/contract/manage/schema/index.ts
+6
-13
schema.ts
...s/member/memberFlowRule/components/FlowRuleForm/schema.ts
+2
-2
index.tsx
...nsaction/purchaserEvaluation/unevaluated/schema/index.tsx
+14
-45
index.tsx
...ansaction/supplierEvaluation/unevaluated/schema/index.tsx
+14
-45
No files found.
src/components/AddressSelect/index.tsx
View file @
d6e21304
This diff is collapsed.
Click to expand it.
src/components/AddressSelect/schema.ts
View file @
d6e21304
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-08-05 14:02:46
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-1
0 16:58:04
* @LastEditTime: 2021-08-1
1 18:07:18
* @Description:
*/
import
{
ISchema
}
from
'@formily/antd'
;
...
...
@@ -192,12 +192,16 @@ export const createSchema = (addressType = 2): ISchema => {
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
grid
:
true
,
columns
:
3
,
full
:
true
,
},
properties
:
{
areaCode
:
{
type
:
'string'
,
enum
:
[],
'x-mega-props'
:
{
span
:
1
,
},
'x-component-props'
:
{
placeholder
:
'请选择'
,
},
...
...
@@ -207,7 +211,7 @@ export const createSchema = (addressType = 2): ISchema => {
type
:
'string'
,
required
:
true
,
'x-mega-props'
:
{
span
:
3
,
span
:
2
,
},
'x-component-props'
:
{
placeholder
:
'请输入你的手机号码'
,
...
...
src/global/styles/reset.less
View file @
d6e21304
...
...
@@ -314,3 +314,8 @@
padding-bottom: 6px;
}
}
// 隐藏表格头 td 的 竖线
.ant-table-thead > tr > th::before {
display: none;
}
\ No newline at end of file
src/pages/contract/coordination/details/components/PurchaseList.tsx
View file @
d6e21304
...
...
@@ -113,10 +113,10 @@ const purchaseList: React.FC<Iprops> = ({
</
div
>
<
div
className=
{
style
.
text
}
>
<
p
>
商品ID:
{
record
.
associatedDataId
}
</
p
>
<
p
className=
{
style
.
nowrap
}
>
商品名称:
{
record
.
associated
Goods
}
</
p
>
<
p
className=
{
style
.
nowrap
}
>
商品名称:
{
record
.
associated
MaterielName
}
</
p
>
</
div
>
<
div
className=
{
style
.
text
}
>
<
p
>
规格型号:
{
record
.
associated
Type
}
</
p
>
<
p
>
规格型号:
{
record
.
associated
Goods
}
</
p
>
<
p
>
品类:
{
record
.
associatedCategory
}
</
p
>
</
div
>
<
div
className=
{
style
.
text
}
>
...
...
src/pages/contract/manage/add/components/FormList.tsx
View file @
d6e21304
...
...
@@ -121,7 +121,7 @@ const FormList = (props: any) => {
name
:
_filter
(
sourceType
,
item
,
[
''
,
'name'
,
'name'
,
'name'
]),
//物料名称
type
:
_filter
(
sourceType
,
item
,
[
''
,
'model'
,
'type'
,
'model'
]),
//物料规格
customerCategory
:
{
// 品类
name
:
_filter
(
sourceType
,
item
,
[
''
,
'category'
,
'
brand
Name'
,
''
]),
name
:
_filter
(
sourceType
,
item
,
[
''
,
'category'
,
'
category
Name'
,
''
]),
category
:
_filter
(
sourceType
,
item
,
[
''
,
'category'
,
''
,
''
]),
id
:
_filterArr
(
sourceType
,
item
,
[
''
,
'goodsId'
,
'categoryId'
,
'ids'
]),
},
...
...
@@ -238,7 +238,7 @@ const FormList = (props: any) => {
render
:
(
text
:
any
,
record
:
any
,
index
:
number
)
=>
<
Form
.
Item
name=
{
`price${index}`
}
initialValue=
{
text
}
initialValue=
{
Number
(
text
).
toFixed
(
2
)
}
rules=
{
[{
required
:
true
,
message
:
'请输入'
}]
}
>
<
Input
...
...
@@ -247,7 +247,7 @@ const FormList = (props: any) => {
}
}
onChange=
{
(
e
)
=>
setInput
(
e
,
'price'
,
index
)
}
addonBefore=
"¥"
defaultValue=
{
text
}
defaultValue=
{
Number
(
text
).
toFixed
(
2
)
}
disabled=
{
Object
.
keys
(
Row
).
length
!=
0
?
true
:
false
}
/>
</
Form
.
Item
>
...
...
@@ -320,8 +320,8 @@ const FormList = (props: any) => {
isHasTax
:
item
.
isHasTax
,
taxRate
:
item
.
taxRate
,
purchaseCount
:
item
.
purchaseCount
,
price
:
Number
(
item
.
price
),
bidCount
:
item
.
bidCount
,
price
:
Number
(
item
.
price
)
.
toFixed
(
2
)
,
bidCount
:
Number
(
item
.
bidCount
).
toFixed
(
2
)
,
bidAmount
:
item
.
bidCount
&&
item
.
price
?
(
Number
(
item
.
bidCount
)
*
Number
(
item
.
price
)).
toFixed
(
2
)
:
''
,
associatedMaterielName
:
Object
.
keys
(
Row
).
length
===
0
?
''
:
item
.
associatedMaterielName
,
associatedGoods
:
Object
.
keys
(
Row
).
length
===
0
?
''
:
item
.
associatedGoods
,
...
...
src/pages/contract/manage/schema/index.ts
View file @
d6e21304
import
{
ISchema
}
from
'@formily/antd'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
OrderTypeMap
,
PurchaseOrderInsideWorkStateTexts
,
PurchaseOrderOutWorkStateTexts
}
from
'@/constants/order'
;
/**
* 除了订单必填字段, 默认
*/
...
...
@@ -42,30 +41,24 @@ export const tableListSchema: ISchema = {
"x-component-props"
:
{
placeholder
:
'请选择订单类型'
},
enum
:
Object
.
keys
(
OrderTypeMap
).
map
(
item
=>
({
label
:
OrderTypeMap
[
item
],
value
:
item
,
}))
enum
:
[]
},
"externalState"
:
{
type
:
'string'
,
"x-component-props"
:
{
placeholder
:
'请选择外部状态'
},
enum
:
Object
.
keys
(
PurchaseOrderOutWorkStateTexts
).
map
(
item
=>
({
label
:
PurchaseOrderOutWorkStateTexts
[
item
],
value
:
item
,
}))
enum
:
[]
},
"interiorState"
:
{
type
:
'string'
,
"x-component-props"
:
{
placeholder
:
'请选择内部状态'
},
enum
:
Object
.
keys
(
PurchaseOrderInsideWorkStateTexts
).
map
(
item
=>
({
label
:
PurchaseOrderInsideWorkStateTexts
[
item
],
value
:
item
,
}))
enum
:
[]
},
"[startCreateTime,endCreateTime]"
:
{
type
:
'array'
,
...
...
src/pages/member/memberFlowRule/components/FlowRuleForm/schema.ts
View file @
d6e21304
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-27 16:13:26
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
6-01 17:58:12
* @LastEditTime: 2021-0
8-12 09:36:50
* @Description:
*/
import
{
ISchema
}
from
'@formily/antd'
;
...
...
@@ -155,7 +155,7 @@ const formSchema: ISchema = {
type
:
'object'
,
'x-component'
:
'TabPane'
,
'x-component-props'
:
{
tab
:
'会员
表
更流程'
,
tab
:
'会员
变
更流程'
,
},
properties
:
{
MEGA_LAYOUT1
:
{
...
...
src/pages/transaction/purchaserEvaluation/unevaluated/schema/index.tsx
View file @
d6e21304
/*
* @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:35
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-11 19:55:25
* @Description:
*/
import
{
ISchema
}
from
'@formily/antd'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
ORDER_TYPE2_INQUIRY
,
ORDER_TYPE2_DEMAND
,
ORDER_TYPE2_SPOT
,
ORDER_TYPE2_CENTRALIZED
,
ORDER_TYPE2_POINTS
,
ORDER_TYPE2_CHANNEL_DIRECT
,
ORDER_TYPE2_CHANNEL_SPOT
,
ORDER_TYPE2_CHANNEL_POINTS
,
ORDER_TYPE2
,
}
from
'@/constants/order'
;
import
{
GlobalConfig
}
from
'@/global/config'
;
const
orderTypeArr
=
GlobalConfig
.
web
.
orderType
.
map
((
item
)
=>
({
label
:
item
.
platformWayName
,
value
:
item
.
id
,
}));
export
const
listSearchSchema
:
ISchema
=
{
type
:
'object'
,
...
...
@@ -65,40 +67,7 @@ export const listSearchSchema: ISchema = {
orderType
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_INQUIRY
],
value
:
ORDER_TYPE2_INQUIRY
,
},
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_DEMAND
],
value
:
ORDER_TYPE2_DEMAND
,
},
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_SPOT
],
value
:
ORDER_TYPE2_SPOT
,
},
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_CENTRALIZED
],
value
:
ORDER_TYPE2_CENTRALIZED
,
},
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_POINTS
],
value
:
ORDER_TYPE2_POINTS
,
},
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_CHANNEL_DIRECT
],
value
:
ORDER_TYPE2_CHANNEL_DIRECT
,
},
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_CHANNEL_SPOT
],
value
:
ORDER_TYPE2_CHANNEL_SPOT
,
},
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_CHANNEL_POINTS
],
value
:
ORDER_TYPE2_CHANNEL_POINTS
,
},
],
enum
:
orderTypeArr
,
'x-component-props'
:
{
placeholder
:
'订单类型'
,
allowClear
:
true
,
...
...
src/pages/transaction/supplierEvaluation/unevaluated/schema/index.tsx
View file @
d6e21304
/*
* @Author: XieZhiXiong
* @Date: 2021-01-06 11:36:35
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-08-11 19:55:18
* @Description:
*/
import
{
ISchema
}
from
'@formily/antd'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
ORDER_TYPE2_INQUIRY
,
ORDER_TYPE2_DEMAND
,
ORDER_TYPE2_SPOT
,
ORDER_TYPE2_CENTRALIZED
,
ORDER_TYPE2_POINTS
,
ORDER_TYPE2_CHANNEL_DIRECT
,
ORDER_TYPE2_CHANNEL_SPOT
,
ORDER_TYPE2_CHANNEL_POINTS
,
ORDER_TYPE2
,
}
from
'@/constants/order'
;
import
{
GlobalConfig
}
from
'@/global/config'
;
const
orderTypeArr
=
GlobalConfig
.
web
.
orderType
.
map
((
item
)
=>
({
label
:
item
.
platformWayName
,
value
:
item
.
id
,
}));
export
const
listSearchSchema
:
ISchema
=
{
type
:
'object'
,
...
...
@@ -65,40 +67,7 @@ export const listSearchSchema: ISchema = {
type
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_INQUIRY
],
value
:
ORDER_TYPE2_INQUIRY
,
},
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_DEMAND
],
value
:
ORDER_TYPE2_DEMAND
,
},
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_SPOT
],
value
:
ORDER_TYPE2_SPOT
,
},
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_CENTRALIZED
],
value
:
ORDER_TYPE2_CENTRALIZED
,
},
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_POINTS
],
value
:
ORDER_TYPE2_POINTS
,
},
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_CHANNEL_DIRECT
],
value
:
ORDER_TYPE2_CHANNEL_DIRECT
,
},
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_CHANNEL_SPOT
],
value
:
ORDER_TYPE2_CHANNEL_SPOT
,
},
{
label
:
ORDER_TYPE2
[
ORDER_TYPE2_CHANNEL_POINTS
],
value
:
ORDER_TYPE2_CHANNEL_POINTS
,
},
],
enum
:
orderTypeArr
,
'x-component-props'
:
{
placeholder
:
'订单类型'
,
allowClear
:
true
,
...
...
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