From 4aa1546dda1adf637a8d612c6dc0a535532294b4 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期一, 17 四月 2023 12:28:56 +0800 Subject: [PATCH] # --- pages/basics/outPakin.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pages/basics/outPakin.vue b/pages/basics/outPakin.vue index 00ccb1f..6ac8342 100644 --- a/pages/basics/outPakin.vue +++ b/pages/basics/outPakin.vue @@ -148,8 +148,8 @@ hide:true, ownerList: [], ownerList2: '', - owner: '', - ownerId: 0 + owner: '浜氬拰', + ownerId: 2 } }, @@ -186,6 +186,9 @@ header: {'token':uni.getStorageSync('token')}, success(result) { for (var i = 0; i < result.data.data.records.length; i++) { + if(result.data.data.records[i].id == 1){ + break + } that.ownerList.push(result.data.data.records[i].owner) } that.ownerList2 = result.data.data.records @@ -203,7 +206,6 @@ this.ownerId = this.ownerList2[key].id } } - console.log(this.ownerId); }, radioChange(evt) { for (let i = 0; i < this.origins.length; i++) { @@ -227,7 +229,7 @@ data: JSON.stringify({ barcode: that.barcode, origin: that.origin, - owner: that.ownerId, + owner: 2, combMats: that.matList }), method: 'POST', @@ -246,6 +248,7 @@ that.barcode = ''; that.matList = ''; that.matList = []; + that.owner = ''; that.barcodeFocuss(); } else if (res.code == 403) { uni.showToast({title: res.msg, icon: "none", position: 'top'}) -- Gitblit v1.9.1