包装线送货
This commit is contained in:
@@ -140,7 +140,8 @@ export const workorderExecutes = (id) => post('api/pda/workorder/executes', {
|
|||||||
* 包装输送线送货
|
* 包装输送线送货
|
||||||
*/
|
*/
|
||||||
// 物料
|
// 物料
|
||||||
export const ssxqueryMaterial = () => post('api/pda/ssx/sendMaterial/queryMaterial', {
|
export const ssxqueryMaterial = (code) => post('api/pda/ssx/sendMaterial/queryMaterial', {
|
||||||
|
material_code: code
|
||||||
})
|
})
|
||||||
// 载具类型
|
// 载具类型
|
||||||
export const ssxqueryVehicle = () => post('api/pda/ssx/sendMaterial/queryVehicle', {
|
export const ssxqueryVehicle = () => post('api/pda/ssx/sendMaterial/queryVehicle', {
|
||||||
|
|||||||
@@ -3,6 +3,15 @@
|
|||||||
<nav-bar title="包装输送线送货"></nav-bar>
|
<nav-bar title="包装输送线送货"></nav-bar>
|
||||||
<section class="content mgb110">
|
<section class="content mgb110">
|
||||||
<div class="filter-wraper">
|
<div class="filter-wraper">
|
||||||
|
<div class="bottom-filter-tip">
|
||||||
|
<div class="filter-label txtjustify">物料编码</div>
|
||||||
|
<div class="fxcol mgl20">
|
||||||
|
<input type="text" class="filter-input filter-scan-input" v-model="val1">
|
||||||
|
</div>
|
||||||
|
<div class="filter_button">
|
||||||
|
<button class="btn submit-button" @click="_ssxqueryMaterial">查询</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="bottom-filter-tip">
|
<div class="bottom-filter-tip">
|
||||||
<div class="filter-label txtjustify">载具类型</div>
|
<div class="filter-label txtjustify">载具类型</div>
|
||||||
<div class="fxcol mgl20 visible" >
|
<div class="fxcol mgl20 visible" >
|
||||||
@@ -23,22 +32,14 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid-wraper">
|
<div class="grid-wraper">
|
||||||
<div class="left_fixed">
|
|
||||||
<table class="layout-t left_layout_t">
|
|
||||||
<tr>
|
|
||||||
<th>物料名称</th>
|
|
||||||
</tr>
|
|
||||||
<tr v-for="e in dataList" :key="e.material_id" @click="toCheck(e)" :class="{'checked': e.material_id === pkId}">
|
|
||||||
<td>{{e.material_name}}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="slide">
|
<div class="slide">
|
||||||
<table class="layout-t">
|
<table class="layout-t">
|
||||||
<tr>
|
<tr>
|
||||||
|
<th>物料名称</th>
|
||||||
<th>物料编码</th>
|
<th>物料编码</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-for="e in dataList" :key="e.material_id" @click="toCheck(e)" :class="{'checked': e.material_id === pkId}">
|
<tr v-for="e in dataList" :key="e.material_id" @click="toCheck(e)" :class="{'checked': e.material_id === pkId}">
|
||||||
|
<td>{{e.material_name}}</td>
|
||||||
<td>{{e.material_code}}</td>
|
<td>{{e.material_code}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -63,11 +64,12 @@ export default {
|
|||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
val1: '',
|
||||||
option1: [],
|
option1: [],
|
||||||
active1: '',
|
active1: '',
|
||||||
open1: false,
|
open1: false,
|
||||||
qty: '',
|
qty: '',
|
||||||
dataList: [],
|
dataList: [{}],
|
||||||
pkId: '',
|
pkId: '',
|
||||||
pkObj: {},
|
pkObj: {},
|
||||||
disabled1: false
|
disabled1: false
|
||||||
@@ -96,7 +98,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 查询grid
|
// 查询grid
|
||||||
async _ssxqueryMaterial () {
|
async _ssxqueryMaterial () {
|
||||||
let res = await ssxqueryMaterial()
|
let res = await ssxqueryMaterial(this.val1)
|
||||||
if (res.code) {
|
if (res.code) {
|
||||||
this.dataList = [...res.result]
|
this.dataList = [...res.result]
|
||||||
} else {
|
} else {
|
||||||
@@ -132,4 +134,15 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
|
.filter_button
|
||||||
|
.submit-button
|
||||||
|
margin 0 0 0 .15rem
|
||||||
|
.slide
|
||||||
|
overflow hidden
|
||||||
|
tr
|
||||||
|
td
|
||||||
|
white-space wrap
|
||||||
|
line-height .38rem
|
||||||
|
height auto
|
||||||
|
padding .1rem .2rem
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ header
|
|||||||
/** grid列表 **/
|
/** grid列表 **/
|
||||||
.grid-wraper
|
.grid-wraper
|
||||||
_fj(,flex-start)
|
_fj(,flex-start)
|
||||||
max-height 12rem
|
// max-height 12rem
|
||||||
overflow-y: auto
|
overflow-y: auto
|
||||||
.left_fixed
|
.left_fixed
|
||||||
flex 0 0 1.5rem
|
flex 0 0 1.5rem
|
||||||
|
|||||||
Reference in New Issue
Block a user