Commit bd90d85f by LJM

发货单:按发货单号搜索无效

parent 9cbed675
Showing with 3 additions and 3 deletions
...@@ -154,14 +154,14 @@ export default { ...@@ -154,14 +154,14 @@ export default {
}, },
created() { created() {
this.purchase_id = this.$route.query.purchase_id || ''; this.purchase_id = this.$route.query.purchase_id || '';
this.stock_in_sn = this.$route.query.stock_in_sn || ''; this.formInline.stock_in_sn = this.$route.query.stock_in_sn || '';
this.getData(); this.getData();
}, },
watch: { watch: {
$route(to, from) { $route(to, from) {
if (to.path == '/orderTrackInvoice') { if (to.path == '/orderTrackInvoice') {
this.purchase_id = this.$route.query.purchase_id || ''; this.purchase_id = this.$route.query.purchase_id || '';
this.stock_in_sn = this.$route.query.stock_in_sn || ''; this.formInline.stock_in_sn = this.$route.query.stock_in_sn || '';
this.getData(); this.getData();
} }
} }
...@@ -179,7 +179,7 @@ export default { ...@@ -179,7 +179,7 @@ export default {
} else { } else {
this.formInline.qc_time = ''; this.formInline.qc_time = '';
} }
var params = Object.assign({}, {page: this.page}, {limit: this.limit}, this.formInline, {purchase_id: this.purchase_id}, {stock_in_sn: this.stock_in_sn}); var params = Object.assign({}, {page: this.page}, {limit: this.limit}, this.formInline, {purchase_id: this.purchase_id});
this.$http('post', "/api/purchase/getDeliveryList", params).then(res => { this.$http('post', "/api/purchase/getDeliveryList", params).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.tableData = res.data.list || []; this.tableData = res.data.list || [];
......
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 sign in to comment