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
f87949ab
Commit
f87949ab
authored
Jul 31, 2020
by
LeeJiancong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接待提交
parent
cb29bec1
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
318 additions
and
213 deletions
+318
-213
base.config.json
config/base.config.json
+1
-1
regExp.ts
src/constants/regExp.ts
+9
-1
colorTag.ts
src/pages/logistics/colorTag.ts
+32
-0
confirmModal.tsx
src/pages/logistics/components/confirmModal.tsx
+1
-1
orderSearchList.tsx
src/pages/logistics/components/orderSearchList.tsx
+32
-34
templateForm.tsx
src/pages/logistics/list/components/templateForm.tsx
+52
-15
toOrderComfirmList.tsx
src/pages/logistics/logisticsResult/toOrderComfirmList.tsx
+62
-58
toOrderSubmitDetail.tsx
src/pages/logistics/logisticsSubmit/toOrderSubmitDetail.tsx
+3
-3
toOrderSumitList.tsx
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
+126
-100
index.ts
src/services/index.ts
+0
-0
No files found.
config/base.config.json
View file @
f87949ab
{
"userRegister"
:{
"useType"
:{
"memberType"
:[{
"id"
:
1
,
"typeName"
:
"企业会员"
},{
"id"
:
2
,
"typeName"
:
"企业个人会员"
},{
"id"
:
3
,
"typeName"
:
"渠道企业会员"
},{
"id"
:
4
,
"typeName"
:
"渠道个人会员"
}],
"businessType"
:[{
"id"
:
1
,
"typeName"
:
"采购"
},{
"id"
:
2
,
"typeName"
:
"商品销售"
},{
"id"
:
3
,
"typeName"
:
"加工服务"
},{
"id"
:
4
,
"typeName"
:
"物流服务"
},{
"id"
:
5
,
"typeName"
:
"金融服务"
},{
"id"
:
6
,
"typeName"
:
"保险服务"
},{
"id"
:
7
,
"typeName"
:
"1"
},{
"id"
:
8
,
"typeName"
:
"2"
},{
"id"
:
9
,
"typeName"
:
"3"
},{
"id"
:
10
,
"typeName"
:
"4"
},{
"id"
:
11
,
"typeName"
:
"23"
},{
"id"
:
12
,
"typeName"
:
"6"
},{
"id"
:
13
,
"typeName"
:
"5"
},{
"id"
:
14
,
"typeName"
:
"11111111111111111111111111"
},{
"id"
:
16
,
"typeName"
:
"44"
},{
"id"
:
17
,
"typeName"
:
"33"
},{
"id"
:
18
,
"typeName"
:
"32"
},{
"id"
:
19
,
"typeName"
:
"33333"
}]},
"useDetail"
:[{
"groupName"
:
"联系信息"
,
"elements"
:[{
"id"
:
26
,
"fieldName"
:
"contact"
,
"fieldCNName"
:
"联系人"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
27
,
"fieldName"
:
"fixed_contact_number"
,
"fieldCNName"
:
"固定联系电话"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
28
,
"fieldName"
:
"phone_number"
,
"fieldCNName"
:
"手机号码"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
29
,
"fieldName"
:
"fax_number"
,
"fieldCNName"
:
"传真号码"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
30
,
"fieldName"
:
"address"
,
"fieldCNName"
:
"地址"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
31
,
"fieldName"
:
"zip_code"
,
"fieldCNName"
:
"邮编"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
32
,
"fieldName"
:
"url"
,
"fieldCNName"
:
"网址"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
33
,
"fieldName"
:
"email"
,
"fieldCNName"
:
"邮箱"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]}]},{
"groupName"
:
"营业执照信息"
,
"elements"
:[{
"id"
:
10
,
"fieldName"
:
"company_name"
,
"fieldCNName"
:
"公司名称"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
11
,
"fieldName"
:
"enterprise_type"
,
"fieldCNName"
:
"企业类型"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
12
,
"fieldName"
:
"residence"
,
"fieldCNName"
:
"住所"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
13
,
"fieldName"
:
"legal_representative"
,
"fieldCNName"
:
"法定代表人"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
14
,
"fieldName"
:
"register_capital"
,
"fieldCNName"
:
"注册资本"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
15
,
"fieldName"
:
"establish_date"
,
"fieldCNName"
:
"成立日期"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
16
,
"fieldName"
:
"business_term"
,
"fieldCNName"
:
"营业期限"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
17
,
"fieldName"
:
"business_scope"
,
"fieldCNName"
:
"经营范围"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
18
,
"fieldName"
:
"registration_authority"
,
"fieldCNName"
:
"登记机关"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
19
,
"fieldName"
:
"registration_time"
,
"fieldCNName"
:
"登记时间"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
20
,
"fieldName"
:
"unified_social_credit_code"
,
"fieldCNName"
:
"统一社会信用代码"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
21
,
"fieldName"
:
"business_license"
,
"fieldCNName"
:
"营业执照"
,
"fieldType"
:
"file"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
35
,
"fieldName"
:
" C_COMPANY_KIND"
,
"fieldCNName"
:
"企业类型1"
,
"fieldType"
:
"file"
,
"fieldLength"
:
66
,
"fieldEmpty"
:
1
,
"fieldOrder"
:
2
,
"fieldRemark"
:
""
,
"checkRules"
:[]}]},{
"groupName"
:
"填写会员基本信息"
,
"elements"
:[{
"id"
:
1
,
"fieldName"
:
"member_type"
,
"fieldCNName"
:
"会员类型"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
2
,
"fieldName"
:
"MEMBER_ROLE"
,
"fieldCNName"
:
"会员角色"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
3
,
"fieldName"
:
"member_level"
,
"fieldCNName"
:
"会员等级"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
4
,
"fieldName"
:
"REGISTER_PHONE"
,
"fieldCNName"
:
"注册手机号"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
5
,
"fieldName"
:
"register_email"
,
"fieldCNName"
:
"注册邮箱"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]}]},{
"groupName"
:
"法定代表人信息"
,
"elements"
:[{
"id"
:
22
,
"fieldName"
:
"legal_name"
,
"fieldCNName"
:
"法人姓名"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
23
,
"fieldName"
:
"legal_phone"
,
"fieldCNName"
:
"法人手机号"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
24
,
"fieldName"
:
"legal_id_card"
,
"fieldCNName"
:
"法人身份证号"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
25
,
"fieldName"
:
"legal_id_card_information"
,
"fieldCNName"
:
"法人身份证信息"
,
"fieldType"
:
"file"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]}]},{
"groupName"
:
"填写渠道信息"
,
"elements"
:[{
"id"
:
6
,
"fieldName"
:
"channel_level"
,
"fieldCNName"
:
"渠道级别"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
7
,
"fieldName"
:
"channel_type"
,
"fieldCNName"
:
"渠道类型"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
8
,
"fieldName"
:
"agent_city"
,
"fieldCNName"
:
"代理地市"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
9
,
"fieldName"
:
"channel_describe"
,
"fieldCNName"
:
"渠道描述"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]}]}]},
"global"
:{
"logo"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/logo.png"
,
"countryList"
:[{
"name"
:
"简体中文-ZH"
,
"key"
:
"cn"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/china.png"
},{
"name"
:
"English-EN"
,
"key"
:
"en"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/us.png"
},{
"name"
:
"日本語-JP"
,
"key"
:
"jp"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/japen.png"
},{
"name"
:
"한국어-KO"
,
"key"
:
"ko"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/koren.png"
}]}}
{
"userRegister"
:{
"useType"
:{
"memberType"
:[{
"id"
:
1
,
"typeName"
:
"企业会员"
},{
"id"
:
2
,
"typeName"
:
"企业个人会员"
},{
"id"
:
3
,
"typeName"
:
"渠道企业会员"
},{
"id"
:
4
,
"typeName"
:
"渠道个人会员"
}],
"businessType"
:[{
"id"
:
1
,
"typeName"
:
"采购"
},{
"id"
:
2
,
"typeName"
:
"商品销售"
},{
"id"
:
3
,
"typeName"
:
"加工服务"
},{
"id"
:
4
,
"typeName"
:
"物流服务"
},{
"id"
:
5
,
"typeName"
:
"金融服务"
},{
"id"
:
6
,
"typeName"
:
"保险服务"
},{
"id"
:
7
,
"typeName"
:
"1"
},{
"id"
:
8
,
"typeName"
:
"2"
},{
"id"
:
9
,
"typeName"
:
"3"
},{
"id"
:
10
,
"typeName"
:
"4"
},{
"id"
:
11
,
"typeName"
:
"23"
},{
"id"
:
12
,
"typeName"
:
"6"
},{
"id"
:
13
,
"typeName"
:
"5"
},{
"id"
:
14
,
"typeName"
:
"11111111111111111111111111"
},{
"id"
:
16
,
"typeName"
:
"44"
},{
"id"
:
17
,
"typeName"
:
"33"
},{
"id"
:
18
,
"typeName"
:
"32"
},{
"id"
:
19
,
"typeName"
:
"33333"
}
,{
"id"
:
20
,
"typeName"
:
"4432"
}
]},
"useDetail"
:[{
"groupName"
:
"联系信息"
,
"elements"
:[{
"id"
:
26
,
"fieldName"
:
"contact"
,
"fieldCNName"
:
"联系人"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
27
,
"fieldName"
:
"fixed_contact_number"
,
"fieldCNName"
:
"固定联系电话"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
28
,
"fieldName"
:
"phone_number"
,
"fieldCNName"
:
"手机号码"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
29
,
"fieldName"
:
"fax_number"
,
"fieldCNName"
:
"传真号码"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
30
,
"fieldName"
:
"address"
,
"fieldCNName"
:
"地址"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
31
,
"fieldName"
:
"zip_code"
,
"fieldCNName"
:
"邮编"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
32
,
"fieldName"
:
"url"
,
"fieldCNName"
:
"网址"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
33
,
"fieldName"
:
"email"
,
"fieldCNName"
:
"邮箱"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]}]},{
"groupName"
:
"营业执照信息"
,
"elements"
:[{
"id"
:
10
,
"fieldName"
:
"company_name"
,
"fieldCNName"
:
"公司名称"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
11
,
"fieldName"
:
"enterprise_type"
,
"fieldCNName"
:
"企业类型"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
12
,
"fieldName"
:
"residence"
,
"fieldCNName"
:
"住所"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
13
,
"fieldName"
:
"legal_representative"
,
"fieldCNName"
:
"法定代表人"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
14
,
"fieldName"
:
"register_capital"
,
"fieldCNName"
:
"注册资本"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
15
,
"fieldName"
:
"establish_date"
,
"fieldCNName"
:
"成立日期"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
16
,
"fieldName"
:
"business_term"
,
"fieldCNName"
:
"营业期限"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
17
,
"fieldName"
:
"business_scope"
,
"fieldCNName"
:
"经营范围"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
18
,
"fieldName"
:
"registration_authority"
,
"fieldCNName"
:
"登记机关"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
19
,
"fieldName"
:
"registration_time"
,
"fieldCNName"
:
"登记时间"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
20
,
"fieldName"
:
"unified_social_credit_code"
,
"fieldCNName"
:
"统一社会信用代码"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
21
,
"fieldName"
:
"business_license"
,
"fieldCNName"
:
"营业执照"
,
"fieldType"
:
"file"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
35
,
"fieldName"
:
" C_COMPANY_KIND"
,
"fieldCNName"
:
"企业类型1"
,
"fieldType"
:
"file"
,
"fieldLength"
:
66
,
"fieldEmpty"
:
1
,
"fieldOrder"
:
2
,
"fieldRemark"
:
""
,
"checkRules"
:[]}]},{
"groupName"
:
"填写会员基本信息"
,
"elements"
:[{
"id"
:
1
,
"fieldName"
:
"member_type"
,
"fieldCNName"
:
"会员类型"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
2
,
"fieldName"
:
"MEMBER_ROLE"
,
"fieldCNName"
:
"会员角色"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
3
,
"fieldName"
:
"member_level"
,
"fieldCNName"
:
"会员等级"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
4
,
"fieldName"
:
"REGISTER_PHONE"
,
"fieldCNName"
:
"注册手机号"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
5
,
"fieldName"
:
"register_email"
,
"fieldCNName"
:
"注册邮箱"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]}]},{
"groupName"
:
"法定代表人信息"
,
"elements"
:[{
"id"
:
22
,
"fieldName"
:
"legal_name"
,
"fieldCNName"
:
"法人姓名"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
23
,
"fieldName"
:
"legal_phone"
,
"fieldCNName"
:
"法人手机号"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
24
,
"fieldName"
:
"legal_id_card"
,
"fieldCNName"
:
"法人身份证号"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
25
,
"fieldName"
:
"legal_id_card_information"
,
"fieldCNName"
:
"法人身份证信息"
,
"fieldType"
:
"file"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]}]},{
"groupName"
:
"填写渠道信息"
,
"elements"
:[{
"id"
:
6
,
"fieldName"
:
"channel_level"
,
"fieldCNName"
:
"渠道级别"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
7
,
"fieldName"
:
"channel_type"
,
"fieldCNName"
:
"渠道类型"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
8
,
"fieldName"
:
"agent_city"
,
"fieldCNName"
:
"代理地市"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]},{
"id"
:
9
,
"fieldName"
:
"channel_describe"
,
"fieldCNName"
:
"渠道描述"
,
"fieldType"
:
"String"
,
"fieldLength"
:
100
,
"fieldEmpty"
:
0
,
"fieldOrder"
:
1
,
"fieldRemark"
:
"test"
,
"checkRules"
:[]}]}]},
"global"
:{
"logo"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/logo.png"
,
"countryList"
:[{
"name"
:
"简体中文-ZH"
,
"key"
:
"cn"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/china.png"
},{
"name"
:
"English-EN"
,
"key"
:
"en"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/us.png"
},{
"name"
:
"日本語-JP"
,
"key"
:
"jp"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/japen.png"
},{
"name"
:
"한국어-KO"
,
"key"
:
"ko"
,
"icon"
:
"http://lingxi-frontend-test.oss-cn-hangzhou.aliyuncs.com/images/koren.png"
}]}}
src/constants/regExp.ts
View file @
f87949ab
/*
* @Author: LeeJiancong
* @Date: 2020-07-22 09:54:50
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-30 19:28:23
*/
/**
* 正则表达式集合
*/
...
...
@@ -8,5 +14,6 @@ export const PATTERN_MAPS = {
email
:
/^
[\w
-
]
+
(\.[\w
-
]
+
)
*@
[\w
-
]
+
(\.[\w
-
]
+
)
+$/
,
phone
:
/^1
[
3|4|5|6|7|8|9
][
0-9
]{9}
$/
,
smsCode
:
/^
\d{6}
$/
,
money
:
/^
\d
*
(?:\.\d{0,2})?
$/
money
:
/^
\d
*
(?:\.\d{0,2})?
$/
,
weight
:
/^
\d
*
(?:\.\d{0,3})?
$/
,
}
\ No newline at end of file
src/pages/logistics/colorTag.ts
0 → 100644
View file @
f87949ab
/*
* @Author: LeeJiancong
* @Date: 2020-07-30 17:23:48
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-30 17:24:49
*/
export
default
{
default
:
{
padding
:
'2px 5px'
,
background
:
'rgba(244,245,247,1)'
,
borderRadius
:
'4px'
},
confirm
:
{
color
:
'#3F7ED2'
,
padding
:
'2px 5px'
,
background
:
'rgba(240, 248, 255, 1)'
,
borderRadius
:
'4px'
},
success
:
{
color
:
'#00B37A'
,
padding
:
'2px 5px'
,
background
:
'rgba(235,247,242,1)'
,
borderRadius
:
'4px'
},
warn
:
{
color
:
'#E63F3B'
,
padding
:
'2px 5px'
,
background
:
'rgba(255,235,230,1)'
,
borderRadius
:
'4px'
}
}
\ No newline at end of file
src/pages/logistics/components/confirmModal.tsx
View file @
f87949ab
...
...
@@ -74,7 +74,7 @@ const comfirmDialog: React.FC<Params> = (props) => {
x
-
component=
"Radio"
/>
{
props
.
dontReceive
&&
<
FormMegaLayout
name=
'remarkOption'
label=
'不接受原因'
full
required
wrapperWidth=
{
570
}
labelCol=
{
2
}
labelAlign=
"top"
>
<
FormMegaLayout
name=
'remarkOption'
label=
'不接受原因'
full
required
labelCol=
{
2
}
labelAlign=
"top"
>
<
Field
name=
"remark"
x
-
component=
"TextArea"
...
...
src/pages/logistics/components/orderSearchList.tsx
View file @
f87949ab
/*
* @Author: LeeJiancong
* @Date: 2020-07-18 15:55:51
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-30 19:14:40
*/
import
React
,
{
useState
,
useEffect
,
useRef
,
ReactNode
}
from
'react'
;
import
{
Card
,
Button
,
Row
,
Col
,
Tooltip
,
Input
,
Select
,
Tag
,
Space
}
from
'antd'
import
{
UpOutlined
,
DownOutlined
,
EyeOutlined
}
from
'@ant-design/icons'
...
...
@@ -9,6 +15,7 @@ import { history } from 'umi'
import
{
hidden
}
from
'chalk'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
timeRange
}
from
'@/utils/index'
import
statuStyle
from
'../colorTag'
let
{
Option
}
=
Select
export
interface
listProps
{
title
?:
ReactNode
,
...
...
@@ -23,32 +30,6 @@ const data = [
status
:
0
}
]
const
statuStyle
=
{
default
:
{
padding
:
'2px 5px'
,
background
:
'rgba(244,245,247,1)'
,
borderRadius
:
'4px'
},
confirm
:
{
color
:
'#3F7ED2'
,
padding
:
'2px 5px'
,
background
:
'rgba(240, 248, 255, 1)'
,
borderRadius
:
'4px'
},
success
:
{
color
:
'#00B37A'
,
padding
:
'2px 5px'
,
background
:
'rgba(235,247,242,1)'
,
borderRadius
:
'4px'
},
warn
:
{
color
:
'#E63F3B'
,
padding
:
'2px 5px'
,
background
:
'rgba(255,235,230,1)'
,
borderRadius
:
'4px'
}
}
// 定义列的格式
interface
Item
{
oredrNo
:
string
...
...
@@ -313,9 +294,15 @@ const orderSearchList: React.FC<listProps> = (props) => {
* @param {type}
* @return:
*/
const
handleChange
=
(
key
:
any
,
val
)
=>
{
const
handleChange
=
(
key
:
any
,
val
:
any
)
=>
{
let
obj
=
{}
switch
(
key
){
case
'logisticsOrderNo'
:
obj
=
{
...
searchForm
,
logisticsOrderNo
:
val
}
break
;
case
'invoicesNo'
:
obj
=
{
...
searchForm
,
invoicesNo
:
val
}
break
;
case
'companyId'
:
obj
=
{
...
searchForm
,
companyId
:
val
}
break
;
...
...
@@ -355,6 +342,7 @@ const orderSearchList: React.FC<listProps> = (props) => {
<
PageHeaderWrapper
title=
'快递单查询'
>
<
Card
>
<
StandardTable
tableProps=
{
{
rowKey
:
'id'
}
}
columns=
{
columns
}
currentRef=
{
ref
}
formAlign=
'left'
...
...
@@ -372,7 +360,7 @@ const orderSearchList: React.FC<listProps> = (props) => {
value=
{
searchForm
.
logisticsOrderNo
}
placeholder=
'搜索'
onChange=
{
(
e
)
=>
setSearchForm
({
...
searchForm
,
logisticsOrderNo
:
e
.
target
.
value
})
}
onSearch=
{
(
val
)
=>
handle
Search
(
val
)
}
onSearch=
{
(
val
)
=>
handle
Change
(
'logisticsOrderNo'
,
val
)
}
/>
</
Tooltip
>
<
Button
className=
{
style
[
'filter-btn'
]
}
onClick=
{
()
=>
setIsSearch
(
isSearch
=
!
isSearch
)
}
>
...
...
@@ -386,8 +374,17 @@ const orderSearchList: React.FC<listProps> = (props) => {
isSearch
&&
<
Col
>
<
Space
size=
{
16
}
>
{
props
.
type
===
'1'
?
<>
<
Input
.
Search
style=
{
{
width
:
'232px'
}
}
value=
{
searchForm
.
invoicesNo
}
placeholder=
'输入对应单号进行搜索'
onChange=
{
(
e
)
=>
setSearchForm
({
...
searchForm
,
invoicesNo
:
e
.
target
.
value
})
}
onSearch=
{
(
val
)
=>
handleChange
(
'invoicesNo'
,
val
)
}
/>
<
Select
className=
{
style
.
select
}
showSearch
...
...
@@ -406,6 +403,7 @@ const orderSearchList: React.FC<listProps> = (props) => {
})
}
</
Select
>
</>
:
<
Select
className=
{
style
.
select
}
...
...
@@ -419,8 +417,8 @@ const orderSearchList: React.FC<listProps> = (props) => {
>
<
Option
value=
''
>
发货方(全部)
</
Option
>
{
shipperAddressList
.
map
((
item
)
=>
{
return
<
Option
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
shipperAddressList
.
map
((
item
,
index
)
=>
{
return
<
Option
key=
{
index
}
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
})
}
</
Select
>
...
...
@@ -432,8 +430,8 @@ const orderSearchList: React.FC<listProps> = (props) => {
onChange=
{
(
val
)
=>
handleChangeTime
(
val
)
}
>
{
TimeList
.
map
((
item
)
=>
{
return
<
Option
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
TimeList
.
map
((
item
,
index
)
=>
{
return
<
Option
key=
{
index
}
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
})
}
</
Select
>
...
...
@@ -443,8 +441,8 @@ const orderSearchList: React.FC<listProps> = (props) => {
onChange=
{
(
val
)
=>
handleChange
(
'status'
,
val
)
}
>
{
outSideStatusList
.
map
((
item
)
=>
{
return
<
Option
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
outSideStatusList
.
map
((
item
,
index
)
=>
{
return
<
Option
key=
{
index
}
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
})
}
</
Select
>
...
...
src/pages/logistics/list/components/templateForm.tsx
View file @
f87949ab
...
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Date: 2020-07-15 10:31:55
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-
28 14:01:19
* @LastEditTime: 2020-07-
30 19:37:57
*/
import
React
,
{
Component
,
useState
,
useEffect
}
from
'react'
;
import
ReactDOM
from
'react-dom'
...
...
@@ -31,6 +31,7 @@ import {
import
{
PublicApi
}
from
'@/services/api'
import
styles
from
'./templateForm.less'
;
import
ReutrnEle
from
'@/components/ReturnEle'
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
import
ChinaImg
from
'../../../../../mockStatic/china.png'
import
gou
from
'../../../../../mockStatic/gou.png'
import
japenImg
from
'../../../../../mockStatic/japen.png'
...
...
@@ -232,7 +233,6 @@ const diaLogForm: React.FC<ListProps> = (props) => {
}
}
x
-
component=
"Input"
x
-
component
-
props=
{
{
placeholder
:
''
,
addonAfter
:
"KG"
}
}
...
...
@@ -240,6 +240,10 @@ const diaLogForm: React.FC<ListProps> = (props) => {
addonBefore
:
' '
,
addonAfter
:
'内,'
}
}
x
-
rules=
{
{
pattern
:
PATTERN_MAPS
.
weight
,
message
:
'数字类型,可保留3位小数'
}
}
/>
<
Field
name=
"price"
...
...
@@ -255,6 +259,10 @@ const diaLogForm: React.FC<ListProps> = (props) => {
placeholder
:
''
,
addonAfter
:
"元"
}
}
x
-
rules=
{
{
pattern
:
PATTERN_MAPS
.
money
,
message
:
'数字类型,可保留2位小数'
}
}
/>
</
FormMegaLayout
>
<
FormMegaLayout
inline
>
...
...
@@ -276,6 +284,10 @@ const diaLogForm: React.FC<ListProps> = (props) => {
addonBefore
:
'每增加'
,
addonAfter
:
'增加运费'
}
}
x
-
rules=
{
{
pattern
:
PATTERN_MAPS
.
weight
,
message
:
'数字类型,可保留3位小数'
}
}
/>
<
Field
name=
"incrementPrice"
...
...
@@ -291,6 +303,10 @@ const diaLogForm: React.FC<ListProps> = (props) => {
addonAfter
:
"元"
}
}
x
-
rules=
{
{
pattern
:
PATTERN_MAPS
.
money
,
message
:
'数字类型,可保留2位小数'
}
}
/>
</
FormMegaLayout
>
</
FormMegaLayout
>
...
...
@@ -354,21 +370,42 @@ const diaLogForm: React.FC<ListProps> = (props) => {
console
.
log
(
e
.
target
.
value
)
// actions.validate()
},
// validate: (value:any) =>
{
// return new Promise(resolve =>
{
// setTimeout(() =>
{
// resolve(value !== '57350' ? '验证码验证失败' : '123')
//
},
1000
)
//
})
//
}
}
}
x
-
rules=
{
{
pattern
:
PATTERN_MAPS
.
weight
,
message
:
'数字类型,可保留3位小数'
}
}
/>
<
Field
name=
"price"
x
-
component=
"Input"
type=
"number"
title=
"首费(元)"
x
-
rules=
{
{
pattern
:
PATTERN_MAPS
.
money
,
message
:
'数字类型,可保留2位小数'
}
}
/>
<
Field
name=
"incrementWeight"
x
-
component=
"Input"
type=
"number"
title=
"续件(件/KG)"
x
-
rules=
{
{
pattern
:
PATTERN_MAPS
.
weight
,
message
:
'数字类型,可保留3位小数'
}
}
/>
<
Field
name=
"incrementPrice"
x
-
component=
"Input"
type=
"number"
title=
"续费(元)"
x
-
rules=
{
{
pattern
:
PATTERN_MAPS
.
money
,
message
:
'数字类型,可保留2位小数'
}
}
/>
<
Field
name=
"price"
x
-
component=
"Input"
type=
"number"
title=
"首费(元)"
/>
<
Field
name=
"incrementWeight"
x
-
component=
"Input"
type=
"number"
title=
"续件(件/KG)"
/>
<
Field
name=
"incrementPrice"
x
-
component=
"Input"
type=
"number"
title=
"续费(元)"
/>
</
Field
>
</
Field
>
</
Col
>
...
...
src/pages/logistics/logisticsResult/toOrderComfirmList.tsx
View file @
f87949ab
...
...
@@ -2,11 +2,14 @@
* @Author: LeeJiancong
* @Date: 2020-07-14 15:07:34
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-
29 15:55:43
* @LastEditTime: 2020-07-
30 20:17:59
*/
import
React
,
{
Component
,
ReactNode
,
useRef
,
useState
}
from
'react'
import
React
,
{
Component
,
ReactNode
,
useRef
,
useState
,
useEffect
}
from
'react'
import
{
history
}
from
'umi'
import
{
Modal
,
Card
,
Button
,
Form
,
InputNumber
,
Radio
,
Popconfirm
,
Tooltip
,
Switch
,
Select
,
Input
,
Tag
,
Row
,
Col
}
from
'antd'
;
import
{
Modal
,
Card
,
Button
,
Form
,
InputNumber
,
Radio
,
Popconfirm
,
Tooltip
,
Switch
,
Select
,
Input
,
Tag
,
Row
,
Col
,
Space
}
from
'antd'
;
import
{
PlayCircleOutlined
,
PauseCircleOutlined
,
...
...
@@ -21,9 +24,10 @@ import ConfirmModal from '../components/confirmModal'
import
{
StandardTable
}
from
'god'
import
{
ColumnType
}
from
'antd/lib/table/interface'
import
{
IFormFilter
,
IButtonFilter
}
from
'god/dist/src/standard-table/TableController'
import
{
PublicApi
}
from
'@/services/api'
import
{
PublicApi
}
from
'@/services/api'
import
statuStyle
from
'../colorTag'
import
style
from
'../components/index.less'
const
{
Option
}
=
Select
const
{
Option
}
=
Select
const
data
=
[
{
key
:
'1'
,
...
...
@@ -56,7 +60,7 @@ export interface ListProps {
title
?:
React
.
ReactNode
,
type
:
string
}
interface
DiaLogParams
{
interface
DiaLogParams
{
onCancel
:
Function
}
export
interface
ListType
{
...
...
@@ -121,52 +125,52 @@ const OrderList: React.FC<ListProps> = (props) => {
let
[
isSearch
,
setIsSearch
]
=
useState
<
boolean
>
(
false
)
const
[
searchForm
,
setSearchForm
]
=
useState
({
searName
:
''
,
buyer
:
''
,
//收货商
buyer
:
''
,
//收货商
dateSelect
:
''
,
outSideStatus
:
''
,
TimeRange
:
''
})
const
TimeList
=
[
{
label
:
'单据时间(全部)'
,
value
:
''
label
:
'单据时间(全部)'
,
value
:
''
},
{
label
:
'今天'
,
value
:
1
label
:
'今天'
,
value
:
1
},
{
label
:
'一周内'
,
value
:
2
label
:
'一周内'
,
value
:
2
},
{
label
:
'一个月内'
,
value
:
3
label
:
'一个月内'
,
value
:
3
},
{
label
:
'三个月内'
,
value
:
4
label
:
'三个月内'
,
value
:
4
},
{
label
:
'六个月内'
,
value
:
5
label
:
'六个月内'
,
value
:
5
},
{
label
:
'一年内'
,
value
:
6
label
:
'一年内'
,
value
:
6
},
{
label
:
'一年前'
,
value
:
7
label
:
'一年前'
,
value
:
7
}
]
const
outSideStatusList
=
[
{
label
:
'外部状态(全部)'
,
value
:
''
label
:
'外部状态(全部)'
,
value
:
''
},
{
label
:
'待提交'
,
value
:
1
label
:
'待提交'
,
value
:
1
},
{
label
:
'待确认'
,
value
:
2
label
:
'待确认'
,
value
:
2
},
{
label
:
'接受物流单'
,
value
:
3
label
:
'接受物流单'
,
value
:
3
},
{
label
:
'不接受物流单'
,
value
:
4
label
:
'不接受物流单'
,
value
:
4
}
]
const
columns
:
ColumnType
<
any
>
[]
=
[
...
...
@@ -175,6 +179,8 @@ const OrderList: React.FC<ListProps> = (props) => {
dataIndex
:
'logisticsOrderNo'
,
align
:
'center'
,
key
:
'logisticsOrderNo'
,
render
:
(
text
:
any
,
reconds
:
any
)
=>
<
span
className=
"commonPickColor"
onClick=
{
()
=>
handleSee
(
reconds
.
id
)
}
>
{
text
}
<
EyeOutlined
/></
span
>
},
{
title
:
'对应订单号'
,
...
...
@@ -223,15 +229,18 @@ const OrderList: React.FC<ListProps> = (props) => {
align
:
'center'
,
dataIndex
:
'status'
,
key
:
'status'
,
render
:
()
=>
{
return
(
<>
<
Tag
color=
"default"
>
待提交
</
Tag
>
<
Tag
color=
"processing"
>
待确认
</
Tag
>
<
Tag
color=
"green"
>
接受物流单
</
Tag
>
<
Tag
color=
"red"
>
不接受物流单
</
Tag
>
</>
)
render
:
(
text
:
any
,
record
:
any
)
=>
{
let
component
:
ReactNode
=
null
if
(
text
==
3
)
{
component
=
<><
span
style=
{
statuStyle
.
success
}
>
接受物流单
</
span
></>
}
else
if
(
text
==
4
)
{
component
=
<><
span
style=
{
statuStyle
.
warn
}
>
不接受物流单
</
span
></>
}
else
if
(
text
==
2
)
{
component
=
<><
span
style=
{
statuStyle
.
confirm
}
>
待确认
</
span
></>
}
else
if
(
text
==
1
)
{
component
=
<><
span
style=
{
statuStyle
.
default
}
>
待提交
</
span
></>
}
return
component
}
},
{
...
...
@@ -242,7 +251,6 @@ const OrderList: React.FC<ListProps> = (props) => {
return
(
<>
<
Button
type=
'link'
onClick=
{
()
=>
handleDialog
(
record
.
id
)
}
>
确认
</
Button
>
<
Button
type=
'link'
onClick=
{
()
=>
handleSee
(
record
.
id
)
}
>
查看
</
Button
>
</>
)
}
...
...
@@ -250,32 +258,26 @@ const OrderList: React.FC<ListProps> = (props) => {
];
// 模拟请求
const
fetchData
=
(
params
:
any
)
=>
{
const
fetchData
=
(
params
:
any
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
// PublicApi.getLogisticsShipperAddressPage({ current: params.page, pageSize: params.rows }).then(res => {
const
queryResult
=
data
.
find
(
v
=>
v
.
key
===
params
.
keywords
)
setTimeout
(()
=>
{
resolve
({
code
:
200
,
message
:
''
,
data
:
queryResult
?
[
queryResult
]
:
data
PublicApi
.
getLogisticsOrderWaitConfirmPage
({
...
searchForm
,
...
params
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
},
1000
)
// })
})
}
}
//生命周期
//
useEffect(() => {
// effect
//
return () => {
// cleanup
//
}
// }, [input
])
useEffect
(()
=>
{
return
()
=>
{
}
},
[
])
const
handleDialog
=
(
id
:
any
)
=>
{
const
handleDialog
=
(
id
:
any
)
=>
{
setvisible
(
true
)
}
...
...
@@ -322,7 +324,7 @@ const fetchData = (params: any) => {
<
PageHeaderWrapper
>
<
Card
>
<
StandardTable
tableProps=
{
{
rowKey
:
'id'
}
}
tableProps=
{
{
rowKey
:
'id'
}
}
columns=
{
columns
}
currentRef=
{
ref
}
fetchTableData=
{
(
params
:
any
)
=>
fetchData
(
params
)
}
...
...
@@ -339,7 +341,7 @@ const fetchData = (params: any) => {
<
Row
>
<
Col
span=
{
12
}
>
<
Tooltip
trigger=
{
[
'focus'
]
}
placement=
'top'
title=
{
props
.
type
===
'1'
?
'输入物流单号、订单号进行搜索'
:
'输入物流单号、发货方进行搜索'
}
>
title=
{
props
.
type
===
'1'
?
'输入物流单号、订单号进行搜索'
:
'输入物流单号、发货方进行搜索'
}
>
<
Input
.
Search
style=
{
{
width
:
'232px'
}
}
value=
{
searchForm
.
searName
}
...
...
@@ -348,24 +350,25 @@ const fetchData = (params: any) => {
onSearch=
{
()
=>
handleSearch
}
/>
</
Tooltip
>
<
Button
className=
{
style
[
'filter-btn'
]
}
onClick=
{
()
=>
setIsSearch
(
isSearch
=
!
isSearch
)
}
>
<
Button
className=
{
style
[
'filter-btn'
]
}
onClick=
{
()
=>
setIsSearch
(
isSearch
=
!
isSearch
)
}
>
高级筛选
{
isSearch
?
<
UpOutlined
/>
:
<
DownOutlined
/>
}
</
Button
>
<
Button
className=
{
style
.
selectBtn
}
onClick=
{
()
=>
handleReset
()
}
>
重置
</
Button
>
</
Col
>
</
Row
>
<
Row
style=
{
{
margin
:
'16px 0'
}
}
>
<
Row
style=
{
{
margin
:
'16px 0'
}
}
>
{
isSearch
&&
<
Col
>
<
Space
size=
{
16
}
>
<
Select
className=
{
style
.
select
}
value=
{
searchForm
.
TimeRange
}
onChange=
{
(
val
)
=>
setSearchForm
({
...
searchForm
,
TimeRange
:
val
})
}
>
{
TimeList
.
map
((
item
)
=>
{
return
<
Option
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
TimeList
.
map
((
item
,
index
)
=>
{
return
<
Option
key=
{
index
}
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
})
}
</
Select
>
...
...
@@ -375,11 +378,12 @@ const fetchData = (params: any) => {
onChange=
{
(
val
)
=>
setSearchForm
({
...
searchForm
,
outSideStatus
:
val
})
}
>
{
outSideStatusList
.
map
((
item
)
=>
{
return
<
Option
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
outSideStatusList
.
map
((
item
,
index
)
=>
{
return
<
Option
key=
{
index
}
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
})
}
</
Select
>
</
Space
>
</
Col
>
}
</
Row
>
...
...
src/pages/logistics/logisticsSubmit/toOrderSubmitDetail.tsx
View file @
f87949ab
...
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Date: 2020-07-28 11:25:30
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-
29 17:08:32
* @LastEditTime: 2020-07-
30 17:37:44
*/
import
React
,
{
Component
,
useEffect
,
useRef
,
useState
}
from
'react'
import
{
Card
,
Row
,
Col
,
Tabs
,
Button
,
Input
as
SelectInput
,
Badge
}
from
'antd'
...
...
@@ -233,7 +233,7 @@ const Deatail: React.FC<{}> = () => {
*/
useEffect
(()
=>
{
PublicApi
.
postLogisticsCompanyList
().
then
(
res
=>
{
PublicApi
.
getLogisticsSelectListCompany
().
then
(
res
=>
{
let
list
=
[]
res
.
data
.
forEach
(
item
=>
{
list
.
push
({
value
:
item
.
id
,
label
:
item
.
name
})
...
...
@@ -241,7 +241,7 @@ const Deatail: React.FC<{}> = () => {
setCompanyList
(
list
)
})
PublicApi
.
postLogisticsShipperAddressList
().
then
(
res
=>
{
PublicApi
.
getLogisticsSelectListShipperAddress
().
then
(
res
=>
{
let
list
=
[]
res
.
data
.
forEach
(
item
=>
{
list
.
push
({
value
:
item
.
id
,
label
:
item
.
fullAddress
})
...
...
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
View file @
f87949ab
...
...
@@ -2,11 +2,12 @@
* @Author: LeeJiancong
* @Date: 2020-07-14 15:07:34
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-
29 15:52:03
* @LastEditTime: 2020-07-
30 20:00:24
*/
import
React
,
{
Component
,
ReactNode
,
useRef
,
useState
}
from
'react'
import
React
,
{
Component
,
ReactNode
,
useRef
,
useState
,
useEffect
}
from
'react'
import
{
history
}
from
'umi'
import
{
Modal
,
Row
,
Col
,
Card
,
Button
,
Form
,
InputNumber
,
Radio
,
Tooltip
,
Popconfirm
,
Switch
,
Input
,
Select
,
Tag
}
from
'antd'
;
import
{
Modal
,
Row
,
Col
,
Card
,
Button
,
Form
,
InputNumber
,
Radio
,
Tooltip
,
Popconfirm
,
Switch
,
Input
,
Select
,
Tag
,
Space
}
from
'antd'
;
import
{
PlayCircleOutlined
,
PauseCircleOutlined
,
...
...
@@ -22,6 +23,8 @@ import { ColumnType, TableRowSelection } from 'antd/lib/table/interface'
import
{
IFormFilter
,
IButtonFilter
}
from
'god/dist/src/standard-table/TableController'
import
{
PublicApi
}
from
'@/services/api'
import
style
from
'../components/index.less'
import
statuStyle
from
'../colorTag'
import
Index
from
'@/pages'
;
let
{
Option
}
=
Select
const
data
=
[
{
...
...
@@ -52,7 +55,7 @@ interface Item {
}
const
TimeList
=
[
{
label
:
'单据时间(全部)'
,
value
:
''
label
:
'单据时间(全部)'
,
value
:
0
},
{
label
:
'今天'
,
value
:
1
...
...
@@ -95,55 +98,20 @@ const outSideStatusList = [
]
//父页面传递来的参数
export
interface
ListProps
{
title
?:
React
.
ReactNode
,
type
:
string
}
export
interface
ListType
{
checked
:
boolean
//可选
}
interface
paramsType
{
logisticsOrderNo
?:
string
;
invoicesNo
?:
string
;
invoicesTimeStart
?:
any
;
invoicesTimeEnd
?:
any
;
status
?:
number
|
string
;
companyId
?:
any
;
shipperId
?:
any
;
interface
EditableCellProps
extends
React
.
HTMLAttributes
<
HTMLElement
>
{
editing
:
boolean
;
dataIndex
:
string
;
title
:
any
;
inputType
:
'number'
|
'text'
;
record
:
Item
;
index
:
number
;
children
:
React
.
ReactNode
;
}
const
EditableCell
:
React
.
FC
<
EditableCellProps
>
=
({
editing
,
dataIndex
,
title
,
inputType
,
record
,
index
,
children
,
...
restProps
})
=>
{
const
inputNode
=
inputType
===
'number'
?
<
InputNumber
/>
:
<
Input
/>;
return
(
<
td
{
...
restProps
}
>
{
editing
?
(
<
Form
.
Item
name=
{
dataIndex
}
style=
{
{
margin
:
0
}
}
rules=
{
[
{
required
:
true
,
message
:
`Please Input ${title}!`
,
},
]
}
>
{
inputNode
}
</
Form
.
Item
>
)
:
(
children
)
}
</
td
>
);
};
/**
* @description:
* @param {type}
...
...
@@ -155,15 +123,18 @@ const OrderList: React.FC<ListProps> = (props) => {
const
[
form
]
=
Form
.
useForm
();
const
[
table
,
setTable
]
=
useState
([])
const
[
selectTableRow
,
setSelectTableRow
]
=
useState
<
any
>
([])
const
[
companyList
,
setcompanyList
]
=
useState
([])
let
[
selectedTableRowKeys
,
setSelectedTableRowKeys
]
=
useState
<
Array
<
number
>>
([])
const
[
editingKey
,
setEditingKey
]
=
useState
(
''
);
let
[
isSearch
,
setIsSearch
]
=
useState
(
false
)
const
[
searchForm
,
setSearchForm
]
=
useState
({
searName
:
''
,
buyer
:
''
,
//收货商
dateSelect
:
''
,
outSideStatus
:
''
,
TimeRange
:
''
const
[
TimeRange
,
setTimeRange
]
=
useState
<
number
>
(
0
)
const
[
searchForm
,
setSearchForm
]
=
useState
<
paramsType
>
({
logisticsOrderNo
:
''
,
invoicesNo
:
''
,
invoicesTimeStart
:
''
,
invoicesTimeEnd
:
''
,
companyId
:
''
,
status
:
''
})
const
edit
=
(
record
:
Item
)
=>
{
setEditingKey
(
record
.
key
);
...
...
@@ -176,6 +147,9 @@ const OrderList: React.FC<ListProps> = (props) => {
dataIndex
:
'logisticsOrderNo'
,
align
:
'center'
,
key
:
'logisticsOrderNo'
,
render
:
(
text
:
any
,
reconds
:
any
)
=>
<
span
className=
"commonPickColor"
onClick=
{
()
=>
handleSee
(
reconds
.
id
)
}
>
{
text
}
<
EyeOutlined
/></
span
>
},
{
title
:
'对应订单号'
,
...
...
@@ -224,15 +198,18 @@ const OrderList: React.FC<ListProps> = (props) => {
align
:
'center'
,
dataIndex
:
'status'
,
key
:
'status'
,
render
:
()
=>
{
return
(
<>
<
Tag
color=
"default"
>
待提交
</
Tag
>
<
Tag
color=
"processing"
>
待确认
</
Tag
>
<
Tag
color=
"green"
>
接受物流单
</
Tag
>
<
Tag
color=
"red"
>
不接受物流单
</
Tag
>
</>
)
render
:
(
text
:
any
,
reconds
:
any
)
=>
{
let
component
:
ReactNode
=
null
if
(
text
==
3
)
{
component
=
<><
span
style=
{
statuStyle
.
success
}
>
接受物流单
</
span
></>
}
else
if
(
text
==
4
)
{
component
=
<><
span
style=
{
statuStyle
.
warn
}
>
不接受物流单
</
span
></>
}
else
if
(
text
==
2
)
{
component
=
<><
span
style=
{
statuStyle
.
confirm
}
>
待确认
</
span
></>
}
else
if
(
text
==
1
)
{
component
=
<><
span
style=
{
statuStyle
.
default
}
>
待提交
</
span
></>
}
return
component
}
},
{
...
...
@@ -244,17 +221,23 @@ const OrderList: React.FC<ListProps> = (props) => {
<>
{
record
.
status
===
0
?
<><
Button
type=
"link"
onClick=
{
()
=>
edit
(
record
)
}
>
编辑
</
Button
>
<
Popconfirm
title=
"确定要删除吗?"
okText=
"是"
cancelText=
"否"
onConfirm=
{
handleDelete
}
>
(
record
.
status
===
1
||
record
.
status
===
4
)
&&
<
Button
type=
"link"
onClick=
{
()
=>
toEdit
(
record
.
id
)
}
>
编辑
</
Button
>
}
{
record
.
status
===
1
&&
<>
<
Popconfirm
title=
"确定要删除吗?"
okText=
"是"
cancelText=
"否"
onConfirm=
{
()
=>
handleDelete
(
record
.
id
)
}
>
<
Button
type=
'link'
>
删除
</
Button
>
</
Popconfirm
>
</>
:
''
}
<
Button
type=
'link'
>
提交
</
Button
>
<
Button
type=
'link'
onClick=
{
()
=>
handleSee
(
record
.
id
)
}
>
查看
</
Button
>
</>
}
</>
)
}
...
...
@@ -264,25 +247,26 @@ const OrderList: React.FC<ListProps> = (props) => {
// 模拟请求
const
fetchData
=
(
params
:
any
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
props
.
type
===
'1'
)
{
//发货
PublicApi
.
getLogisticsShipperAddressPage
({
current
:
params
.
page
,
pageSize
:
params
.
rows
}).
then
(
res
=>
{
PublicApi
.
getLogisticsOrderWaitSubmitPage
({
...
searchForm
,
...
params
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
}
else
{
PublicApi
.
getLogisticsReceiverAddressPage
({
current
:
params
.
page
,
pageSize
:
params
.
rows
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
}
//生命周期
useEffect
(()
=>
{
PublicApi
.
getLogisticsSelectListCompany
().
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setcompanyList
(
res
.
data
)
}
})
return
()
=>
{
}
//生命周期
// useEffect(() => {
// effect
// return () => {
// cleanup
// }
// }, [input])
},
[])
const
onDefaultChange
=
(
id
:
any
,
checked
:
boolean
)
=>
{
console
.
log
(
id
,
checked
)
...
...
@@ -290,8 +274,10 @@ const OrderList: React.FC<ListProps> = (props) => {
})
}
const
handleDelete
=
()
=>
{
console
.
log
(
'delete'
)
const
handleDelete
=
(
id
:
number
|
string
)
=>
{
PublicApi
.
postLogisticsOrderWaitSubmitDelete
({
id
:
id
}).
then
(
res
=>
{
ref
.
current
.
reload
()
})
}
const
handleSee
=
(
id
:
number
)
=>
{
history
.
push
(
`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitDeatil?id=
${
id
}
`
)
...
...
@@ -304,6 +290,9 @@ const OrderList: React.FC<ListProps> = (props) => {
const
cancel
=
()
=>
{
console
.
log
(
'cancel'
)
}
const
toEdit
=
(
id
:
number
)
=>
{
history
.
push
(
`/memberCenter/logisticsAbility/logisticsSubmit/toOrderSubmitDetail?id=
${
id
}
`
)
}
const
rowSelection
:
TableRowSelection
<
any
>
=
{
type
:
'checkbox'
,
...
...
@@ -315,7 +304,6 @@ const OrderList: React.FC<ListProps> = (props) => {
}
}
const
handleSearch
=
()
=>
{
}
const
handleReset
=
()
=>
{
for
(
let
key
in
searchForm
)
{
...
...
@@ -323,11 +311,34 @@ const OrderList: React.FC<ListProps> = (props) => {
}
setSearchForm
({
...
searchForm
})
}
const
handleChange
=
(
key
:
any
,
val
:
any
)
=>
{
let
obj
=
{}
switch
(
key
){
case
'logisticsOrderNo'
:
obj
=
{
...
searchForm
,
logisticsOrderNo
:
val
}
break
;
case
'invoicesNo'
:
obj
=
{
...
searchForm
,
invoicesNo
:
val
}
break
;
case
'companyId'
:
obj
=
{
...
searchForm
,
companyId
:
val
}
break
;
case
'shipperId'
:
obj
=
{
...
searchForm
,
shipperId
:
val
}
break
;
case
'status'
:
obj
=
{
...
searchForm
,
status
:
val
}
break
;
}
setSearchForm
(
obj
)
ref
.
current
.
reload
(
obj
)
}
return
(
<
PageHeaderWrapper
>
<
Card
>
<
StandardTable
tableProps=
{
{
rowKey
:
'id'
}
}
columns=
{
columns
}
currentRef=
{
ref
}
fetchTableData=
{
(
params
:
any
)
=>
fetchData
(
params
)
}
...
...
@@ -354,10 +365,10 @@ const OrderList: React.FC<ListProps> = (props) => {
title=
'输入物流单号、订单号进行搜索'
>
<
Input
.
Search
style=
{
{
width
:
'232px'
}
}
value=
{
searchForm
.
searName
}
value=
{
searchForm
.
logisticsOrderNo
}
placeholder=
'搜索'
onChange=
{
(
e
)
=>
setSearchForm
({
...
searchForm
,
searName
:
e
.
target
.
value
})
}
onSearch=
{
(
)
=>
handleSearch
}
onChange=
{
(
e
)
=>
setSearchForm
({
...
searchForm
,
logisticsOrderNo
:
e
.
target
.
value
})
}
onSearch=
{
(
val
)
=>
handleChange
(
'logisticsOrderNo'
,
val
)
}
/>
</
Tooltip
>
<
Button
className=
{
style
[
'filter-btn'
]
}
onClick=
{
()
=>
setIsSearch
(
isSearch
=
!
isSearch
)
}
>
...
...
@@ -370,40 +381,55 @@ const OrderList: React.FC<ListProps> = (props) => {
<
Col
offset=
{
2
}
span=
{
22
}
>
<
Space
size=
{
16
}
>
<
Input
.
Search
style=
{
{
width
:
'232px'
}
}
value=
{
searchForm
.
invoicesNo
}
placeholder=
'输入对应单号进行搜索'
onChange=
{
(
e
)
=>
setSearchForm
({
...
searchForm
,
invoicesNo
:
e
.
target
.
value
})
}
onSearch=
{
(
val
)
=>
handleChange
(
'invoicesNo'
,
val
)
}
/>
<
Select
className=
{
style
.
select
}
value=
{
searchForm
.
buyer
}
onChange=
{
(
val
)
=>
setSearchForm
({
...
searchForm
,
buyer
:
val
})
}
value=
{
searchForm
.
companyId
}
showSearch
onChange=
{
(
val
)
=>
handleChange
(
'companyId'
,
val
)
}
optionFilterProp=
'children'
filterOption=
{
(
input
,
option
)
=>
option
.
children
.
toLowerCase
().
indexOf
(
input
.
toLowerCase
())
>=
0
}
>
<
Option
value=
''
>
物流服务商(全部)
</
Option
>
<
Option
value=
'1'
>
待审核
</
Option
>
<
Option
value=
'2'
>
审核通过
</
Option
>
<
Option
value=
'3'
>
审核不通过
</
Option
>
{
companyList
.
map
((
item
,
index
)
=>
{
return
<
Option
key=
{
index
}
value=
{
item
.
id
}
>
{
item
.
name
}
</
Option
>
})
}
</
Select
>
<
Select
className=
{
style
.
select
}
value=
{
searchForm
.
TimeRange
}
onChange=
{
(
val
)
=>
setSearchForm
({
...
searchForm
,
TimeRange
:
val
}
)
}
value=
{
TimeRange
}
onChange=
{
(
val
)
=>
setTimeRange
(
val
)
}
>
{
TimeList
.
map
((
item
)
=>
{
return
<
Option
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
TimeList
.
map
((
item
,
index
)
=>
{
return
<
Option
key=
{
index
}
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
})
}
</
Select
>
<
Select
className=
{
style
.
select
}
value=
{
searchForm
.
outSideS
tatus
}
onChange=
{
(
val
)
=>
setSearchForm
({
...
searchForm
,
outSideS
tatus
:
val
})
}
value=
{
searchForm
.
s
tatus
}
onChange=
{
(
val
)
=>
setSearchForm
({
...
searchForm
,
s
tatus
:
val
})
}
>
{
outSideStatusList
.
map
((
item
)
=>
{
return
<
Option
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
outSideStatusList
.
map
((
item
,
index
)
=>
{
return
<
Option
key=
{
index
}
value=
{
item
.
value
}
>
{
item
.
label
}
</
Option
>
})
}
</
Select
>
</
Space
>
</
Col
>
}
</
Row
>
...
...
src/services/index.ts
View file @
f87949ab
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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