组盘入库、物料入库加功能
This commit is contained in:
@@ -68,6 +68,24 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="dataList.length" class="zd_wrapper grid-wraper">
|
||||
<view v-if="dataList.length" class="slide_new">
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="60%">料框号</th>
|
||||
<th width="40%">数量</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i">
|
||||
<td>{{e.mater_frame}}</td>
|
||||
<td>{{e.qty}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row submit-bar">
|
||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||
@@ -93,7 +111,8 @@
|
||||
options: [],
|
||||
index: '',
|
||||
disabled: false,
|
||||
currentData: {}
|
||||
currentData: {},
|
||||
dataList: []
|
||||
};
|
||||
},
|
||||
onLoad (options) {
|
||||
@@ -128,11 +147,14 @@
|
||||
let res = await getVehicleMaterial(e)
|
||||
if (res) {
|
||||
this.currentData = res
|
||||
this.dataList = res.dtlList
|
||||
} else {
|
||||
this.currentData = {}
|
||||
this.dataList = []
|
||||
}
|
||||
} catch (e) {
|
||||
this.currentData = {}
|
||||
this.dataList = []
|
||||
}
|
||||
},
|
||||
clearUp () {
|
||||
@@ -141,6 +163,7 @@
|
||||
this.index = ''
|
||||
this.disabled = false
|
||||
this.currentData = {}
|
||||
this.dataList = []
|
||||
},
|
||||
async _confirmIn () {
|
||||
this.disabled = true
|
||||
@@ -166,6 +189,11 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.slide_new
|
||||
table
|
||||
table-layout auto
|
||||
th,td
|
||||
&:first-child
|
||||
box-shadow: none
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user