空管出入库
This commit is contained in:
@@ -60,6 +60,7 @@
|
||||
created () {
|
||||
this._queryProductArea()
|
||||
this._queryDeviceList()
|
||||
this._queryPaperMaterial('')
|
||||
},
|
||||
methods: {
|
||||
/** 选择器1 */
|
||||
@@ -86,8 +87,13 @@
|
||||
},
|
||||
/**查询物料下拉框*/
|
||||
async _queryPaperMaterial (code) {
|
||||
let res = await queryDeviceList(code)
|
||||
let res = await queryPaperMaterial(code)
|
||||
this.options3 = [...res.rows]
|
||||
res.rows.map(el => {
|
||||
if (el.value === code) {
|
||||
this.index3 = res.material_code
|
||||
}
|
||||
})
|
||||
},
|
||||
/** 查询物料、数量 */
|
||||
async _taskQuerydevice () {
|
||||
@@ -99,7 +105,6 @@
|
||||
return
|
||||
}
|
||||
let res = await taskQuerydevice([{device_code: this.index2}])
|
||||
// this.index3 = res.material_code
|
||||
this.qty = res.qty
|
||||
this._queryPaperMaterial(res.material_code)
|
||||
},
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {queryProductArea, emptyConfirm} from '@/utils/getData2.js'
|
||||
import {queryProductArea, queryPaperTubeInfo, emptyConfirm} from '@/utils/getData2.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -79,7 +79,7 @@
|
||||
},
|
||||
/** 初始化查询 */
|
||||
async _queryPaperTubeInfo () {
|
||||
let res = await queryMaterialInfo1(this.index)
|
||||
let res = await queryPaperTubeInfo(this.index)
|
||||
this.dataList = [...res.rows]
|
||||
},
|
||||
/** 确认 */
|
||||
@@ -122,13 +122,3 @@
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus">
|
||||
.slide_new table td:first-child, .slide_new table th:first-child
|
||||
width 92rpx
|
||||
.slide_new table td:nth-child(2), .slide_new table th:nth-child(2)
|
||||
position sticky
|
||||
left 89rpx
|
||||
z-index 102
|
||||
box-shadow 1px 0 2px rgba(0,0,0,.12)
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user