|
@@ -3,7 +3,7 @@
|
|
<div class="shipTransport">
|
|
<div class="shipTransport">
|
|
<div class="top">
|
|
<div class="top">
|
|
<el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
|
|
<el-input placeholder="请输入内容" v-model="input" clearable> </el-input>
|
|
- <!-- <el-date-picker
|
|
|
|
|
|
+ <el-date-picker
|
|
v-model="startTime"
|
|
v-model="startTime"
|
|
type="datetime"
|
|
type="datetime"
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
@@ -11,7 +11,7 @@
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
<span>至</span>
|
|
<span>至</span>
|
|
<el-date-picker v-model="endTime" type="datetime" placeholder="选择日期">
|
|
<el-date-picker v-model="endTime" type="datetime" placeholder="选择日期">
|
|
- </el-date-picker> -->
|
|
|
|
|
|
+ </el-date-picker>
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
<i class="el-icon-search"></i>查询
|
|
<i class="el-icon-search"></i>查询
|
|
</el-button>
|
|
</el-button>
|
|
@@ -21,6 +21,9 @@
|
|
<el-button type="primary" @click="refresh()">
|
|
<el-button type="primary" @click="refresh()">
|
|
<i class="el-icon-refresh"></i>刷新
|
|
<i class="el-icon-refresh"></i>刷新
|
|
</el-button>
|
|
</el-button>
|
|
|
|
+ <el-button type="primary" @click="exportData()" v-if="activeName == 'second'">
|
|
|
|
+ <i class="el-icon-download"></i>导出(Excel)
|
|
|
|
+ </el-button>
|
|
</div>
|
|
</div>
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
<!-- 未下发 -->
|
|
<!-- 未下发 -->
|
|
@@ -67,7 +70,7 @@
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<!-- 已下发 -->
|
|
<!-- 已下发 -->
|
|
<el-tab-pane label="已下发" name="second">
|
|
<el-tab-pane label="已下发" name="second">
|
|
- <dilTable v-bind.sync="option2">
|
|
|
|
|
|
+ <dilTable v-bind.sync="option2" ref="excelDom">
|
|
<el-table-column
|
|
<el-table-column
|
|
fixed="right"
|
|
fixed="right"
|
|
align="center"
|
|
align="center"
|
|
@@ -128,6 +131,7 @@ export default {
|
|
src: "",
|
|
src: "",
|
|
startTime: null,
|
|
startTime: null,
|
|
endTime: null,
|
|
endTime: null,
|
|
|
|
+ tableTitle: "发货通知",
|
|
// restaurants: [],
|
|
// restaurants: [],
|
|
input: "",
|
|
input: "",
|
|
activeName: "first",
|
|
activeName: "first",
|
|
@@ -141,7 +145,19 @@ export default {
|
|
},
|
|
},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ mounted(){
|
|
|
|
+ this.initDate();
|
|
|
|
+ this.onclick();
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
|
|
+ initDate(){
|
|
|
|
+ this.startTime=new Date();
|
|
|
|
+ this.endTime=new Date();
|
|
|
|
+ this.startTime.setDate(1);
|
|
|
|
+ this.startTime.setHours(0);
|
|
|
|
+ this.startTime.setMinutes(0);
|
|
|
|
+ this.startTime.setSeconds(0);
|
|
|
|
+ },
|
|
onclick() {
|
|
onclick() {
|
|
let startTime = null;
|
|
let startTime = null;
|
|
let endTime = null;
|
|
let endTime = null;
|
|
@@ -152,7 +168,7 @@ export default {
|
|
endTime = sjTime(this.endTime);
|
|
endTime = sjTime(this.endTime);
|
|
}
|
|
}
|
|
if (startTime && endTime && startTime < endTime) {
|
|
if (startTime && endTime && startTime < endTime) {
|
|
- if (this.activeName == "first") {
|
|
|
|
|
|
+
|
|
this.option1.requestUrl =
|
|
this.option1.requestUrl =
|
|
"/api/v1/tms/getshipDeliveryNoticeList?apiId=69&status=0&carrierSSOId=" +
|
|
"/api/v1/tms/getshipDeliveryNoticeList?apiId=69&status=0&carrierSSOId=" +
|
|
getCookie("userId") +
|
|
getCookie("userId") +
|
|
@@ -162,7 +178,7 @@ export default {
|
|
startTime +
|
|
startTime +
|
|
"&endTime=" +
|
|
"&endTime=" +
|
|
endTime;
|
|
endTime;
|
|
- } else {
|
|
|
|
|
|
+
|
|
this.option2.requestUrl =
|
|
this.option2.requestUrl =
|
|
"/api/v1/tms/getshipDeliveryNoticeList?apiId=69&status=1&carrierSSOId=" +
|
|
"/api/v1/tms/getshipDeliveryNoticeList?apiId=69&status=1&carrierSSOId=" +
|
|
getCookie("userId") +
|
|
getCookie("userId") +
|
|
@@ -172,21 +188,19 @@ export default {
|
|
startTime +
|
|
startTime +
|
|
"&endTime=" +
|
|
"&endTime=" +
|
|
endTime;
|
|
endTime;
|
|
- }
|
|
|
|
} else {
|
|
} else {
|
|
- if (this.activeName == "first") {
|
|
|
|
|
|
+
|
|
this.option1.requestUrl =
|
|
this.option1.requestUrl =
|
|
"/api/v1/tms/getshipDeliveryNoticeList?apiId=69&status=0&carrierSSOId=" +
|
|
"/api/v1/tms/getshipDeliveryNoticeList?apiId=69&status=0&carrierSSOId=" +
|
|
getCookie("userId") +
|
|
getCookie("userId") +
|
|
"&con=" +
|
|
"&con=" +
|
|
this.input;
|
|
this.input;
|
|
- } else {
|
|
|
|
|
|
+
|
|
this.option2.requestUrl =
|
|
this.option2.requestUrl =
|
|
"/api/v1/tms/getshipDeliveryNoticeList?apiId=69&status=1&carrierSSOId=" +
|
|
"/api/v1/tms/getshipDeliveryNoticeList?apiId=69&status=1&carrierSSOId=" +
|
|
getCookie("userId") +
|
|
getCookie("userId") +
|
|
"&con=" +
|
|
"&con=" +
|
|
this.input;
|
|
this.input;
|
|
- }
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
addClick() {
|
|
addClick() {
|