From 2b5bf2b63f6b8718a396f16f02c682f635744425 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期五, 18 十月 2024 10:56:17 +0800 Subject: [PATCH] 再次拣料-销售单号空格过滤 --- pages/phyz/orderOut/orderOutSelect.vue | 31 +++++++++++++++++++++++++++---- 1 files changed, 27 insertions(+), 4 deletions(-) diff --git a/pages/phyz/orderOut/orderOutSelect.vue b/pages/phyz/orderOut/orderOutSelect.vue index afbe298..4c7ad29 100644 --- a/pages/phyz/orderOut/orderOutSelect.vue +++ b/pages/phyz/orderOut/orderOutSelect.vue @@ -119,12 +119,13 @@ onShow() { this.baseUrl = uni.getStorageSync('baseUrl'); this.token = uni.getStorageSync('token'); - this.searchValue1 = uni.getStorageSync('threeCodeOut1'); + this.searchValue1 = uni.getStorageSync('threeCodeOut193'); this.searchValue2 = uni.getStorageSync('threeCodeOut2'); this.getOrderDetlList(this.searchValue1,10) }, methods: { getOrderDetlList(threeCode,limit) { + // this.get(threeCode,limit) uni.showLoading({}) let _this = this _this.mask = true @@ -162,10 +163,28 @@ } }) }, + get(threeCode,limit) { + let _this = this + _this.mask = true + _this.data.three_code = threeCode + _this.data.limit = 10 + for (var i = 0; i < 30; i++) { + console.log(1); + uni.request({ + url: `${_this.baseUrl}/orderDetl/pakout/list/authV3`, + header: {'token': uni.getStorageSync('token')}, + data: _this.data, + method: 'GET', + success(res) { + + } + }) + } + }, searchValueInput1() { this.dataList = [] this.data.curr = 1 - uni.setStorageSync('threeCodeOut1', this.searchValue1); + uni.setStorageSync('threeCodeOut193', this.searchValue1); uni.setStorageSync('threeCodeOut2', this.searchValue2); if (this.searchValue1.length == 0) { this.getOrderDetlList(this.searchValue1,10) @@ -175,7 +194,7 @@ }, searchValueInput2() { - uni.setStorageSync('threeCodeOut1', this.searchValue1); + uni.setStorageSync('threeCodeOut193', this.searchValue1); uni.setStorageSync('threeCodeOut2', this.searchValue2); if (this.searchValue1.length == 0) { this.getOrderDetlList(this.searchValue1,10) @@ -197,9 +216,13 @@ },300) }, goToLocDetl(item) { + if (item.qty >= item.anfme) { + uni.showToast({ title: '宸插畬鎴愯鍗曚綔涓氭暟閲�', icon: "error", position: 'top' }) + return + } let _this = this uni.navigateTo({ - url: './orderList', + url: './orderCheck', success(res) { res.eventChannel.emit('item', { item: item -- Gitblit v1.9.1