加功能

This commit is contained in:
2025-11-17 18:43:07 +08:00
parent 0c39ae94c4
commit 034b83b6e8
2 changed files with 52 additions and 3 deletions

View File

@@ -9,7 +9,7 @@
<span class="filter_label">托盘号</span> <span class="filter_label">托盘号</span>
</view> </view>
<view class="filter_input_wraper"> <view class="filter_input_wraper">
<search-box v-model="val1" /> <search-box v-model="val1" @handleChange="handleChange1" />
</view> </view>
</view> </view>
<view class="filter_item"> <view class="filter_item">
@@ -41,6 +41,27 @@
</view> </view>
</view> </view>
</view> </view>
<view v-if="tip" class="msg_item">提示{{tip}}</view>
<view v-if="tipData.length > 0" class="zd_wrapper grid-wraper">
<view class="slide_new">
<table>
<thead>
<tr>
<th>排数</th>
<th>数量</th>
<th>管芯信息</th>
</tr>
</thead>
<tbody>
<tr v-for="(e, i) in tipData" :key="i">
<td>{{e.row_num}}</td>
<td>{{e.number}}</td>
<td>{{e.tube}}</td>
</tr>
</tbody>
</table>
</view>
</view>
</view> </view>
<view class="zd-row submitbar"> <view class="zd-row submitbar">
<button class="zd-col-4 btn-submit btn-default" @tap="clearUp">清空</button> <button class="zd-col-4 btn-submit btn-default" @tap="clearUp">清空</button>
@@ -55,7 +76,7 @@
import NavBar from '@/components/NavBar.vue' import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue' import SearchBox from '@/components/SearchBox.vue'
import {queryPaperMaterial} from '@/utils/getData2.js' import {queryPaperMaterial} from '@/utils/getData2.js'
import {operateIvt, callCheckTube} from '@/utils/getData3.js' import {seePalletTube, operateIvt, callCheckTube} from '@/utils/getData3.js'
export default { export default {
components: { components: {
NavBar, NavBar,
@@ -74,7 +95,9 @@
index: '', index: '',
newoptions: [], newoptions: [],
disabled: false, disabled: false,
disabled1: false disabled1: false,
tip: null,
tipData: []
}; };
}, },
onLoad (options) { onLoad (options) {
@@ -84,6 +107,26 @@
this._queryPaperMaterial() this._queryPaperMaterial()
}, },
methods: { 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 () { async _queryPaperMaterial () {
let res = await queryPaperMaterial() let res = await queryPaperMaterial()
@@ -168,6 +211,8 @@
this.index2 = '' this.index2 = ''
this.index = '' this.index = ''
this.index1 = '' this.index1 = ''
this.tip = null
this.tipData = []
} }
} }
} }

View File

@@ -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({ export const operateIvt = (type, vcode, num, qty, code, point) => request({
url:'api/bstIvtStockingivt/operateIvt', url:'api/bstIvtStockingivt/operateIvt',
data: {type: type, vehicle_code: vcode, row_num: num, qty: qty, material_code: code, point_code: point} data: {type: type, vehicle_code: vcode, row_num: num, qty: qty, material_code: code, point_code: point}