diff --git a/src/views/emis/emisWaybill/UserOrderList.vue b/src/views/emis/emisWaybill/UserOrderList.vue index b99ce1ed..a03ecddf 100644 --- a/src/views/emis/emisWaybill/UserOrderList.vue +++ b/src/views/emis/emisWaybill/UserOrderList.vue @@ -14,7 +14,7 @@ - + + +
+ + 运单号 + 订单号 + 进仓单 + +
+ + +
@@ -424,6 +440,12 @@
不发送
+ + + + + + @@ -586,10 +608,15 @@ export default { titleView:"", openView: false, + // 查询参数 queryParams: { pageNum: 1, pageSize: 20, + + queryOrderType:'1', + queryKey:null, + orderSn: null, billCode: null, billCodeSub: null, @@ -752,9 +779,9 @@ export default { const start = new Date() start.setHours(0,0,0,0) end.setHours(23,59,59,0) - this.dateTimeRange=[timeFormat(start), timeFormat(end)] + // this.dateTimeRange=[timeFormat(start), timeFormat(end)] - //this.queryParams.orderStatus='0'; + this.queryParams.orderStatus='0'; this.getList(); }, methods: { @@ -776,6 +803,22 @@ export default { /** 查询运单列表列表 */ getList() { this.loading = true; + if(this.queryParams.queryOrderType==1){ + this.queryParams.billCode= this.queryParams.queryKey; + this.queryParams.orderSn= null; + this.queryParams.intoWarehouseBillCode= null; + } + else if(this.queryParams.queryOrderType==2){ + this.queryParams.billCode= null; + this.queryParams.orderSn= this.queryParams.queryKey; + this.queryParams.intoWarehouseBillCode= null; + } + else if(this.queryParams.queryOrderType==3){ + this.queryParams.billCode= null; + this.queryParams.orderSn= null; + this.queryParams.intoWarehouseBillCode=this.queryParams.queryKey; + } + listEmisOrder(this.addDateRange(this.queryParams, this.dateTimeRange,"orderDate")).then(response => { this.emisWaybillList = response.rows; this.total = response.total; diff --git a/src/views/emis/emisWaybill/waybillRecord.vue b/src/views/emis/emisWaybill/waybillRecord.vue index 55b9c3d3..87d72ef2 100644 --- a/src/views/emis/emisWaybill/waybillRecord.vue +++ b/src/views/emis/emisWaybill/waybillRecord.vue @@ -1037,9 +1037,21 @@ computed: { this.action="add"; this.addFrom="userOrder"; this.billCode=this.$route.query.billCode; - this.$route.meta.title = "接单"; + // this.$route.meta.title = "接单"; + + const title = '接单'; + const route = Object.assign({}, this.$route, { title: `${title}` }) + this.$store.dispatch('tagsView/updateVisitedView', route) + this.initData(); - } + }else{ + if(this.$route.query.action='add'){ + const title = '运单录入'; + const route = Object.assign({}, this.$route, { title: `${title}` }) + this.$store.dispatch('tagsView/updateVisitedView', route) + } + + } } }, // beforeRouteEnter(to,from,next){ @@ -1052,11 +1064,27 @@ created() { this.action=this.$route.query.action; if(!this.action){ this.action="add"; + } if(this.$route.query.addFrom=="userOrder"){ this.billCode=this.$route.query.billCode; this.addFrom="userOrder"; + + const title = '接单'; + const route = Object.assign({}, this.$route, { title: `${title}` }) + this.$store.dispatch('tagsView/updateVisitedView', route) + + } + else if(this.action=='add'){ + const title = '运单录入'; + const route = Object.assign({}, this.$route, { title: `${title}` }) + this.$store.dispatch('tagsView/updateVisitedView', route) + } + else if(this.action=='modify'){ + const title = '运单修改'; + const route = Object.assign({}, this.$route, { title: `${title}` }) + this.$store.dispatch('tagsView/updateVisitedView', route) } this.initData();