|
@@ -9,7 +9,15 @@
|
|
|
clearable
|
|
|
>
|
|
|
</el-input>
|
|
|
-
|
|
|
+ <!-- <el-date-picker
|
|
|
+ v-model="startTime"
|
|
|
+ type="datetime"
|
|
|
+ placeholder="选择日期"
|
|
|
+ >
|
|
|
+ </el-date-picker>
|
|
|
+ <span>至</span>
|
|
|
+ <el-date-picker v-model="endTime" type="datetime" placeholder="选择日期">
|
|
|
+ </el-date-picker> -->
|
|
|
<el-button type="primary" class="btn" @click="onclick">
|
|
|
<i class="el-icon-search"></i>查询
|
|
|
</el-button>
|
|
@@ -74,6 +82,8 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { sjTime } from "@/utils/sharedJsFile";
|
|
|
+import { getCookie } from "@/utils/util.js";
|
|
|
export default {
|
|
|
name: "homeworkPath",
|
|
|
data() {
|
|
@@ -92,7 +102,9 @@ export default {
|
|
|
"/api/v1/tms/getAmsshipDeliveryAttroneyList?apiId=73&status=1",
|
|
|
selectionType: "select"
|
|
|
},
|
|
|
- amsShipDeliveryList: []
|
|
|
+ amsShipDeliveryList: [],
|
|
|
+ startTime: null,
|
|
|
+ endTime: null,
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -101,19 +113,53 @@ export default {
|
|
|
this.amsShipDeliveryList = selection;
|
|
|
},
|
|
|
onclick() {
|
|
|
- if (this.activeName == "first") {
|
|
|
+ let startTime = null;
|
|
|
+ let endTime = null;
|
|
|
+ if (this.startTime) {
|
|
|
+ startTime = sjTime(this.startTime);
|
|
|
+ }
|
|
|
+ if (this.endTime) {
|
|
|
+ endTime = sjTime(this.endTime);
|
|
|
+ }
|
|
|
+ if(startTime && endTime && startTime < endTime){
|
|
|
+ if (this.activeName == "first") {
|
|
|
this.option1.requestUrl =
|
|
|
"/api/v1/tms/getAmsshipDeliveryAttroneyList?apiId=73&status=0&carrierSSOId=" +
|
|
|
getCookie("userId") +
|
|
|
"&con=" +
|
|
|
- this.input;
|
|
|
- } else{
|
|
|
- this.option2.requestUrl =
|
|
|
- "/api/v1/tms/getAmsshipDeliveryAttroneyList?apiId=73&status=1&carrierSSOId=" +
|
|
|
- getCookie("userId") +
|
|
|
- "&con=" +
|
|
|
- this.input;
|
|
|
+ this.input+
|
|
|
+ "&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime;
|
|
|
+ } else{
|
|
|
+ this.option2.requestUrl =
|
|
|
+ "/api/v1/tms/getAmsshipDeliveryAttroneyList?apiId=73&status=1&carrierSSOId=" +
|
|
|
+ getCookie("userId") +
|
|
|
+ "&con=" +
|
|
|
+ this.input+
|
|
|
+ "&startTime=" +
|
|
|
+ startTime +
|
|
|
+ "&endTime=" +
|
|
|
+ endTime;
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if (this.activeName == "first") {
|
|
|
+ this.option1.requestUrl =
|
|
|
+ "/api/v1/tms/getAmsshipDeliveryAttroneyList?apiId=73&status=0&carrierSSOId=" +
|
|
|
+ getCookie("userId") +
|
|
|
+ "&con=" +
|
|
|
+ this.input;
|
|
|
+ } else{
|
|
|
+ this.option2.requestUrl =
|
|
|
+ "/api/v1/tms/getAmsshipDeliveryAttroneyList?apiId=73&status=1&carrierSSOId=" +
|
|
|
+ getCookie("userId") +
|
|
|
+ "&con=" +
|
|
|
+ this.input;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
click(pathId) {
|
|
|
this.$router.push("/path/addDeliveryNotice/" + pathId);
|