From 0c39ae94c4b765448e652023e17daeee8f23377e Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Mon, 17 Nov 2025 13:47:11 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=B8=E7=AE=A1=E7=BB=91=E5=AE=9A=E5=8A=A0?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/SecondPhase/slitting/PaperBind.vue | 30 ++++++++++++++++++++---- utils/getData3.js | 4 ++++ 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/pages/SecondPhase/slitting/PaperBind.vue b/pages/SecondPhase/slitting/PaperBind.vue index 09603e1..00ba03c 100644 --- a/pages/SecondPhase/slitting/PaperBind.vue +++ b/pages/SecondPhase/slitting/PaperBind.vue @@ -43,9 +43,10 @@ - - - + + + + @@ -54,7 +55,7 @@ import NavBar from '@/components/NavBar.vue' import SearchBox from '@/components/SearchBox.vue' import {queryPaperMaterial} from '@/utils/getData2.js' - import {operateIvt} from '@/utils/getData3.js' + import {operateIvt, callCheckTube} from '@/utils/getData3.js' export default { components: { NavBar, @@ -72,7 +73,8 @@ options: [], index: '', newoptions: [], - disabled: false + disabled: false, + disabled1: false }; }, onLoad (options) { @@ -142,6 +144,24 @@ this.disabled = false } }, + async _callCheckTube () { + this.disabled1 = true + if (!this.val1) { + this.disabled1 = false + return + } + try { + let res = await callCheckTube(this.val1) + uni.showToast({ + title: res.message, + icon: 'none' + }) + this.clearUp() + this.disabled1 = false + } catch (e) { + this.disabled1 = false + } + }, clearUp () { this.val1 = '' this.val3 = '' diff --git a/utils/getData3.js b/utils/getData3.js index 79dd0dc..11b7939 100644 --- a/utils/getData3.js +++ b/utils/getData3.js @@ -175,6 +175,10 @@ export const operateIvt = (type, vcode, num, qty, code, point) => request({ url:'api/bstIvtStockingivt/operateIvt', data: {type: type, vehicle_code: vcode, row_num: num, qty: qty, material_code: code, point_code: point} }) +export const callCheckTube = (vcode) => request({ + url:'api/bstIvtStockingivt/callCheckTube', + data: {vehicle_code: vcode} +}) /** * 分切暂存下料 */