Commit 7dc6a389 by zhao_shaonan

新增全省快递信息、话单信息查询页

parent 4fa87e5b
......@@ -53,8 +53,8 @@ body{
vertical-align: top;
}
/deep/ .el-form-item__error {
left: calc(66% - 27px);
top: 12px;
left: calc(21% - 27px);
top: 41px;
}
.success-row {
background-color: #fbf9f4 !important;
......
......@@ -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 => {
......
......@@ -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")
},
]
......@@ -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,
};
......@@ -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'}
......
<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>
<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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment