diff --git a/app/Filters/BusinessOrderFilter.php b/app/Filters/BusinessOrderFilter.php index 1123581..d3765fe 100644 --- a/app/Filters/BusinessOrderFilter.php +++ b/app/Filters/BusinessOrderFilter.php @@ -7,6 +7,11 @@ use Carbon\Carbon; class BusinessOrderFilter extends Filters { + protected function ids($value) + { + return $this->builder->whereIn('id', $value); + } + protected function participateNo($value) { return $this->builder->where('participate_no', trim($value)); diff --git a/app/Models/BusinessOrder.php b/app/Models/BusinessOrder.php index ea9137e..a38dcd5 100644 --- a/app/Models/BusinessOrder.php +++ b/app/Models/BusinessOrder.php @@ -21,6 +21,7 @@ class BusinessOrder extends Model 'confirm_at_end', 'goods_sku_num', 'print_status', + 'ids', ]; protected $fillable = [ diff --git a/resources/frontend/src/views/plat/orderList.vue b/resources/frontend/src/views/plat/orderList.vue index e29d81c..0625603 100644 --- a/resources/frontend/src/views/plat/orderList.vue +++ b/resources/frontend/src/views/plat/orderList.vue @@ -9,14 +9,6 @@ - - @@ -50,13 +42,6 @@ - - @@ -171,6 +156,7 @@ export default { print_status: "0", external_sku_ids: [], confirm_at: [], + ids: [], }, dialogVisible: false, loading: true, @@ -210,7 +196,6 @@ export default { timeoutnum: null, //断开 重连倒计时 defaultPrinter: null, taskIDArray: [], - requestIDGetGlobalConfig: '', }; }, created() { @@ -297,6 +282,7 @@ export default { print_status: 0, external_sku_ids: [], confirm_at: this.confirmAt, + multipleSelectionIds: [], }; this.getPlatOrderList(); }, @@ -338,8 +324,12 @@ export default { this.doPrint(); }) }, - handleSelectionChange() { - + handleSelectionChange(val) { + let ids = []; + val.forEach((item) => { + ids.push(item.id); + }) + this.form.ids = ids; }, initWebSocket() { //初始化weosocket