diff --git a/pages/SecondPhase/slitting/PaperBind.vue b/pages/SecondPhase/slitting/PaperBind.vue index 00ba03c..cf671b7 100644 --- a/pages/SecondPhase/slitting/PaperBind.vue +++ b/pages/SecondPhase/slitting/PaperBind.vue @@ -9,7 +9,7 @@ 托盘号 - + @@ -41,6 +41,27 @@ + 提示:{{tip}} + + + + + + + + + + + + + + + + + +
排数数量管芯信息
{{e.row_num}}{{e.number}}{{e.tube}}
+
+
@@ -55,7 +76,7 @@ import NavBar from '@/components/NavBar.vue' import SearchBox from '@/components/SearchBox.vue' import {queryPaperMaterial} from '@/utils/getData2.js' - import {operateIvt, callCheckTube} from '@/utils/getData3.js' + import {seePalletTube, operateIvt, callCheckTube} from '@/utils/getData3.js' export default { components: { NavBar, @@ -74,7 +95,9 @@ index: '', newoptions: [], disabled: false, - disabled1: false + disabled1: false, + tip: null, + tipData: [] }; }, onLoad (options) { @@ -84,6 +107,26 @@ this._queryPaperMaterial() }, methods: { + async _seePalletTube (e) { + try { + let res = await seePalletTube(e) + if (res.status === 200) { + if (res.flag === '1') { + this.tip = res.data + this.tipData = [] + } else if (res.flag === '2') { + this.tip = null + this.tipData = [...res.data] + } + } + } catch (e) { + this.tip = null + this.tipData = [] + } + }, + handleChange1 (e) { + this._seePalletTube(e) + }, /**查询物料下拉框*/ async _queryPaperMaterial () { let res = await queryPaperMaterial() @@ -168,6 +211,8 @@ this.index2 = '' this.index = '' this.index1 = '' + this.tip = null + this.tipData = [] } } } diff --git a/utils/getData3.js b/utils/getData3.js index 11b7939..db47859 100644 --- a/utils/getData3.js +++ b/utils/getData3.js @@ -171,6 +171,10 @@ export const getPointInfo = (code) => request({ /** * 纸管绑定 */ +export const seePalletTube = (vcode) => request({ + url:'api/bstIvtStockingivt/seePalletTube', + data: {vehicle_code: vcode} +}) 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}