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} +}) /** * 分切暂存下料 */