加功能
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<span class="filter_label">托盘号</span>
|
||||
</view>
|
||||
<view class="filter_input_wraper">
|
||||
<search-box v-model="val1" />
|
||||
<search-box v-model="val1" @handleChange="handleChange1" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="filter_item">
|
||||
@@ -41,6 +41,27 @@
|
||||
</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 class="zd-row submitbar">
|
||||
<button class="zd-col-4 btn-submit btn-default" @tap="clearUp">清空</button>
|
||||
@@ -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 = []
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user