Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
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
常超
founder_vue
Commits
7dc6a389
Commit
7dc6a389
authored
Dec 30, 2020
by
zhao_shaonan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增全省快递信息、话单信息查询页
parent
4fa87e5b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
289 additions
and
10 deletions
+289
-10
src/assets/styles/naotuTable.scss
+2
-2
src/components/naotuTable_components.vue
+6
-6
src/router/modules/index.js
+18
-0
src/utils/params.js
+182
-1
src/views/Home.vue
+4
-1
src/views/naoTu/cxhdxx.vue
+39
-0
src/views/naoTu/cxqskdxx.vue
+38
-0
No files found.
src/assets/styles/naotuTable.scss
View file @
7dc6a389
...
...
@@ -53,8 +53,8 @@ body{
vertical-align
:
top
;
}
/
deep
/
.el-form-item__error
{
left
:
calc
(
66
%
-
27px
);
top
:
12
px
;
left
:
calc
(
21
%
-
27px
);
top
:
41
px
;
}
.success-row
{
background-color
:
#fbf9f4
!
important
;
...
...
src/components/naotuTable_components.vue
View file @
7dc6a389
...
...
@@ -4,7 +4,7 @@
<list-header
:headerTitle=
"header"
ref=
"header"
:headerIcon=
"headerIcon"
></list-header>
<div
class=
"wrap1280"
>
<div
class=
"Content"
>
<div
class=
"cxtjWrap paneDiv"
:style=
"
{height:propQueryField.length>2?'':'110px'}">
<div
class=
"cxtjWrap paneDiv"
v-show=
"propQueryField.length!=0"
:style=
"
{height:propQueryField.length>2?'':'110px'}">
<el-row>
<el-col
:span=
"24"
>
<span
class=
"flTtitle"
>
查询条件
</span>
...
...
@@ -456,7 +456,6 @@
},
doQuery
(
flag
)
{
let
self
=
this
,
json
=
{};
self
.
tableLoading
=
true
;
for
(
let
i
in
self
.
formData
){
if
(
i
!=
"cxSj"
){
json
[
i
]
=
self
.
formData
[
i
]
...
...
@@ -467,6 +466,7 @@
if
(
flag
)
{
self
.
$refs
[
'queryForm'
].
validate
((
valid
)
=>
{
if
(
valid
)
{
self
.
tableLoading
=
true
;
self
.
doQueryRequest
(
JSON
.
stringify
(
json
)).
then
(
response
=>
{
if
(
response
.
success
===
true
)
{
self
.
tableData
=
response
.
data
.
rows
;
...
...
@@ -495,16 +495,16 @@
mounted
()
{
let
self
=
this
;
for
(
let
y
in
self
.
formData
){
if
(
y
==
'sjhm'
){
if
(
y
==
'sjhm'
||
y
==
'reph'
||
y
==
'seph'
||
y
==
'aist'
||
y
==
'bist'
){
self
.
formData
[
y
]
=
self
.
$route
.
query
.
sjhm
;
}
else
if
(
y
==
'zjhm'
||
y
==
'idCard'
){
self
.
formData
[
y
]
=
self
.
$route
.
query
.
zjhm
;
}
}
if
(
self
.
$route
.
path
==
'/cxqghcdpxxIndex'
){
if
(
self
.
$route
.
path
==
'/cxqghcdpxxIndex'
){
//全国火车订票页面没有分页
self
.
pageShow
=
false
;
}
if
(
self
.
$route
.
path
!=
'/cxqghcdpxxIndex'
&&
self
.
$route
.
path
!=
'/cxqgkdxxIndex'
){
if
(
self
.
$route
.
path
!=
'/cxqghcdpxxIndex'
&&
self
.
$route
.
path
!=
'/cxqgkdxxIndex'
&&
self
.
$route
.
path
!=
'/cxqskdxxIndex'
){
//全国火车订票和全国快递信息、全省快递信息没有查询时间
const
end
=
new
Date
();
const
start
=
new
Date
();
let
year
=
start
.
getFullYear
();
...
...
@@ -521,7 +521,7 @@
let
seconds
=
end
.
getSeconds
()
<
10
?
'0'
+
end
.
getSeconds
():
end
.
getSeconds
();
let
firstDayOfPreMonth
=
year
+
"-"
+
month
+
"-"
+
start
.
getDate
()
+
" "
+
hours
+
":"
+
minutes
+
":"
+
seconds
;
let
endDay
=
end
.
getFullYear
()
+
"-"
+
end
.
getMonth
(
)
+
"-"
+
end
.
getDate
()
+
" "
+
hours
+
":"
+
minutes
+
":"
+
seconds
;
let
endDay
=
end
.
getFullYear
()
+
"-"
+
(
end
.
getMonth
()
+
1
)
+
"-"
+
end
.
getDate
()
+
" "
+
hours
+
":"
+
minutes
+
":"
+
seconds
;
self
.
formData
[
'cxSj'
]
=
[
firstDayOfPreMonth
,
endDay
];
}
self
.
propQueryField
.
forEach
(
val
=>
{
...
...
src/router/modules/index.js
View file @
7dc6a389
...
...
@@ -139,4 +139,22 @@ export default[
},
component
:
()
=>
import
(
"@/views/naoTu/cxqswbxx.vue"
)
},
{
path
:
"/cxqskdxxIndex"
,
name
:
"cxqskdxxIndex"
,
meta
:
{
title
:
'查询全省快递信息'
,
auth
:
5
},
component
:
()
=>
import
(
"@/views/naoTu/cxqskdxx.vue"
)
},
{
path
:
"/cxhdxxIndex"
,
name
:
"cxhdxxIndex"
,
meta
:
{
title
:
'查询话单信息'
,
auth
:
5
},
component
:
()
=>
import
(
"@/views/naoTu/cxhdxx.vue"
)
},
]
src/utils/params.js
View file @
7dc6a389
...
...
@@ -5260,6 +5260,173 @@ let naotuQsWbDefaultFormThead = [
prop
:
"siad"
}
];
/*9、查询全省快递信息(美亚接口)*/
let
naotuQsKdHeader
=
"查询全省快递信息"
;
let
naotuQsKdHeaderIcon
=
"icondengjixinxi"
;
let
naotuQsKdURL
=
"/nmsj/getMyJdXxFw"
;
let
naotuQsKdQueryField
=
[];
let
naotuQsKdFormData
=
{
reph
:
""
,
seph
:
""
,
page
:
1
,
limit
:
10
};
let
naotuQsKdDefaultFormThead
=
[
{
label
:
"寄件人姓名"
,
prop
:
"send"
},
{
label
:
"寄件人手机号"
,
prop
:
"seph"
},
{
label
:
"寄件人地址"
,
prop
:
"sead"
},
{
label
:
"寄件时间"
,
prop
:
"msti"
},
{
label
:
"快递单号"
,
prop
:
"dvnm"
},
{
label
:
"收件人姓名"
,
prop
:
"rece"
},
{
label
:
"收件人手机号"
,
prop
:
"reph"
},
{
label
:
"收件人地址"
,
prop
:
"read"
}
];
/*10、查询话单信息(美亚接口)*/
let
naotuHdHeader
=
"查询话单信息"
;
let
naotuHdHeaderIcon
=
"icondengjixinxi"
;
let
naotuHdURL
=
"/nmsj/getMyHdFw"
;
let
naotuHdQueryField
=
[
{
name
:
"查询时间"
,
id
:
"cxSj"
,
type
:
"datetimerange"
,
value
:
""
,
col
:
"6"
,
pickerOptions
:
{
shortcuts
:
[
{
text
:
"最近一个月"
,
onClick
(
picker
)
{
const
end
=
new
Date
();
const
start
=
new
Date
();
let
year
=
start
.
getFullYear
();
let
month
=
start
.
getMonth
();
if
(
month
===
0
)
{
month
=
12
;
year
=
year
-
1
;
}
if
(
month
<
10
)
{
month
=
"0"
+
month
;
}
let
firstDayOfPreMonth
=
year
+
"-"
+
month
+
"-"
+
start
.
getDate
();
firstDayOfPreMonth
=
new
Date
(
firstDayOfPreMonth
);
picker
.
$emit
(
"pick"
,
[
firstDayOfPreMonth
,
end
]);
}
},
{
text
:
"最近三个月"
,
onClick
(
picker
)
{
const
end
=
new
Date
();
const
start
=
new
Date
();
let
year
=
start
.
getFullYear
();
let
month
=
start
.
getMonth
()
-
2
;
if
(
month
===
0
)
{
month
=
12
;
year
=
year
-
1
;
}
if
(
month
<
10
)
{
month
=
"0"
+
month
;
}
let
firstDayOfPreMonth
=
year
+
"-"
+
month
+
"-"
+
start
.
getDate
();
firstDayOfPreMonth
=
new
Date
(
firstDayOfPreMonth
);
picker
.
$emit
(
"pick"
,
[
firstDayOfPreMonth
,
end
]);
}
},
{
text
:
"最近六个月"
,
onClick
(
picker
)
{
const
end
=
new
Date
();
const
start
=
new
Date
();
let
year
=
start
.
getFullYear
();
let
month
=
start
.
getMonth
()
-
5
;
if
(
month
===
0
)
{
month
=
12
;
year
=
year
-
1
;
}
if
(
month
<
10
)
{
month
=
"0"
+
month
;
}
let
firstDayOfPreMonth
=
year
+
"-"
+
month
+
"-"
+
start
.
getDate
();
firstDayOfPreMonth
=
new
Date
(
firstDayOfPreMonth
);
picker
.
$emit
(
"pick"
,
[
firstDayOfPreMonth
,
end
]);
}
},
{
text
:
"最近一年"
,
onClick
(
picker
)
{
const
end
=
new
Date
();
const
start
=
new
Date
();
let
year
=
start
.
getFullYear
();
let
month
=
start
.
getMonth
()
-
11
;
if
(
month
===
0
)
{
month
=
12
;
year
=
year
-
1
;
}
if
(
month
<
0
)
{
month
=
12
+
month
;
year
=
year
-
1
;
}
if
(
month
<
10
)
{
month
=
"0"
+
month
;
}
let
firstDayOfPreMonth
=
year
+
"-"
+
month
+
"-"
+
start
.
getDate
();
firstDayOfPreMonth
=
new
Date
(
firstDayOfPreMonth
);
picker
.
$emit
(
"pick"
,
[
firstDayOfPreMonth
,
end
]);
}
}
]
}
}
];
let
naotuHdFormData
=
{
aist
:
""
,
bist
:
""
,
cxSj
:
''
,
page
:
1
,
limit
:
10
};
let
naotuHdDefaultFormThead
=
[
{
label
:
"用户手机号"
,
prop
:
"aist"
},
{
label
:
"对方手机号"
,
prop
:
"bist"
},
{
label
:
"呼叫时间"
,
prop
:
"stti"
},
{
label
:
"通话时间"
,
prop
:
"duti"
}
];
export
{
/*基础查询界面--数据*/
jccxFormData
,
...
...
@@ -5360,5 +5527,19 @@ export {
naotuQsWbURL
,
naotuQsWbQueryField
,
naotuQsWbFormData
,
naotuQsWbDefaultFormThead
naotuQsWbDefaultFormThead
,
/*9、查询全省快递信息(美亚接口)*/
naotuQsKdHeader
,
naotuQsKdHeaderIcon
,
naotuQsKdURL
,
naotuQsKdQueryField
,
naotuQsKdFormData
,
naotuQsKdDefaultFormThead
,
/*10、查询话单信息(美亚接口)*/
naotuHdHeader
,
naotuHdHeaderIcon
,
naotuHdURL
,
naotuHdQueryField
,
naotuHdFormData
,
naotuHdDefaultFormThead
,
};
src/views/Home.vue
View file @
7dc6a389
...
...
@@ -37,6 +37,9 @@
<el-button
type=
"primary"
@
click=
"toxx('/cxqshcxxIndex')"
>
查询全省火车信息
</el-button>
<el-button
type=
"primary"
@
click=
"toxx('/cxqsldxxIndex')"
>
查询全省旅店信息
</el-button>
<el-button
type=
"primary"
@
click=
"toxx('/cxqswbxxIndex')"
>
查询全省网吧信息
</el-button>
<el-button
type=
"primary"
@
click=
"toxx('/cxqskdxxIndex')"
>
查询全省快递信息
</el-button>
<el-button
type=
"primary"
@
click=
"toxx('/cxhdxxIndex')"
>
查询话单信息
</el-button>
</div>
</
template
>
...
...
@@ -116,7 +119,7 @@ export default {
},
toxx
(
path
){
let
routeData
;
if
(
path
!=
'/cxqgkdxxIndex'
){
if
(
path
!=
'/cxqgkdxxIndex'
&&
path
!=
'/cxqskdxxIndex'
&&
path
!=
'/cxhdxxIndex'
){
//全国快递信息、全省快递信息、话单信息
routeData
=
this
.
$router
.
resolve
({
path
:
path
,
query
:
{
zjhm
:
'450392199018910065'
}
...
...
src/views/naoTu/cxhdxx.vue
0 → 100644
View file @
7dc6a389
<
template
>
<div
id=
"cxhdxx"
>
<naotu-table
:paentCxsjRules=
"paentCxsjRules"
:cxQueryField=
"cxQueryField"
:cxDefaultFormThead=
"cxDefaultFormThead"
:cxFormData=
"cxFormData"
:cxUrl=
"cxUrl"
:header=
"header"
:headerIcon=
"headerIcon"
></naotu-table>
</div>
</
template
>
<!--查询话单信息-->
<
script
>
import
naotuTable
from
"@c/naotuTable_components.vue"
;
import
{
naotuHdHeader
,
naotuHdHeaderIcon
,
naotuHdURL
,
naotuHdQueryField
,
naotuHdFormData
,
naotuHdDefaultFormThead
,
naotuCxSjRules
}
from
"@/utils/params"
;
export
default
{
name
:
"cxhdxx"
,
components
:{
naotuTable
,
},
data
(){
return
{
paentCxsjRules
:
naotuCxSjRules
,
cxQueryField
:
naotuHdQueryField
,
cxDefaultFormThead
:
naotuHdDefaultFormThead
,
cxFormData
:
naotuHdFormData
,
cxUrl
:
naotuHdURL
,
header
:
naotuHdHeader
,
headerIcon
:
naotuHdHeaderIcon
,
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/naoTu/cxqskdxx.vue
0 → 100644
View file @
7dc6a389
<
template
>
<div
id=
"cxqskdxx"
>
<naotu-table
:cxQueryField=
"cxQueryField"
:cxDefaultFormThead=
"cxDefaultFormThead"
:cxFormData=
"cxFormData"
:cxUrl=
"cxUrl"
:header=
"header"
:headerIcon=
"headerIcon"
></naotu-table>
</div>
</
template
>
<!--查询全省快递信息-->
<
script
>
import
naotuTable
from
"@c/naotuTable_components.vue"
;
import
{
naotuQsKdHeader
,
naotuQsKdHeaderIcon
,
naotuQsKdURL
,
naotuQsKdQueryField
,
naotuQsKdFormData
,
naotuQsKdDefaultFormThead
,
}
from
"@/utils/params"
;
export
default
{
name
:
"cxqskdxx"
,
components
:{
naotuTable
,
},
data
(){
return
{
cxQueryField
:
naotuQsKdQueryField
,
cxDefaultFormThead
:
naotuQsKdDefaultFormThead
,
cxFormData
:
naotuQsKdFormData
,
cxUrl
:
naotuQsKdURL
,
header
:
naotuQsKdHeader
,
headerIcon
:
naotuQsKdHeaderIcon
,
}
}
}
</
script
>
<
style
scoped
>
</
style
>
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