修改
This commit is contained in:
@@ -169,7 +169,7 @@
|
||||
return
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/mater-list?title=查询物料'
|
||||
url: '/pages/common/mater-list?title=查询品种'
|
||||
})
|
||||
},
|
||||
handleChange (e) {
|
||||
|
||||
@@ -173,7 +173,7 @@
|
||||
},
|
||||
toJump () {
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/mater-list?title=查询物料'
|
||||
url: '/pages/common/mater-list?title=查询品种'
|
||||
})
|
||||
},
|
||||
handleChange (e) {
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
methods: {
|
||||
toJump () {
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/mater-list?title=查询物料'
|
||||
url: '/pages/common/mater-list?title=查询品种'
|
||||
})
|
||||
},
|
||||
clearUp () {
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
methods: {
|
||||
toJump () {
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/mater-list2?title=查询物料'
|
||||
url: '/pages/common/mater-list2?title=查询品种'
|
||||
})
|
||||
},
|
||||
clearUp () {
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
},
|
||||
toJump () {
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/mater-list2?title=查询物料'
|
||||
url: '/pages/common/mater-list2?title=查询品种'
|
||||
})
|
||||
},
|
||||
async _getPointInfo () {
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
},
|
||||
toJump () {
|
||||
uni.navigateTo({
|
||||
url: '/pages/ftdlDTY/mater-list-cxjl?title=查询物料'
|
||||
url: '/pages/ftdlDTY/mater-list-cxjl?title=查询品种'
|
||||
})
|
||||
},
|
||||
handleChange1 (e) {
|
||||
|
||||
@@ -37,22 +37,32 @@
|
||||
<th>物料品种</th>
|
||||
<th>数量</th>
|
||||
<th>单位</th> -->
|
||||
<th>{{$t('grid.number')}}</th>
|
||||
<!-- <th>{{$t('grid.number')}}</th>
|
||||
<th>{{$t('grid.roll-number')}}</th>
|
||||
<th>{{$t('grid.material-code')}}</th>
|
||||
<th>{{$t('grid.material-name')}}</th>
|
||||
<th>{{$t('grid.quantity')}}</th>
|
||||
<th>{{$t('grid.unit')}}</th>
|
||||
<th>{{$t('grid.unit')}}</th> -->
|
||||
<th>序号</th>
|
||||
<th>机台</th>
|
||||
<th>DOFF号</th>
|
||||
<th>KCODE</th>
|
||||
<th>品种批号</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.mid === pkId}">
|
||||
<td @tap="toCheck(e)">{{i+1}}</td>
|
||||
<!-- <td @tap="toCheck(e)">{{i+1}}</td>
|
||||
<td><input type="text" class="sin_input" style="width: 135px;" v-model="e.container_code"></td>
|
||||
<td @tap="toJump(e)">{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td><input type="number" class="sin_input" v-model="e.qty" @blur="handleBlur(e)"></td>
|
||||
<td>{{e.measure_unit_id}}</td>
|
||||
<td>{{e.measure_unit_id}}</td> -->
|
||||
<td @tap="toCheck(e)">{{i+1}}</td>
|
||||
<td>{{e.device_code}}</td>
|
||||
<td>{{e.doff_code}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -172,7 +182,7 @@
|
||||
this.pkObj = this.pkId === e.mid ? e : {}
|
||||
this.pkId = ''
|
||||
uni.navigateTo({
|
||||
url: '/pages/ftdlDTY/mater-list0?title=查询物料'
|
||||
url: '/pages/ftdlDTY/mater-list0?title=查询品种'
|
||||
})
|
||||
},
|
||||
clearUp () {
|
||||
|
||||
@@ -37,22 +37,32 @@
|
||||
<th>物料品种</th>
|
||||
<th>数量</th>
|
||||
<th>单位</th> -->
|
||||
<th>{{$t('grid.number')}}</th>
|
||||
<!-- <th>{{$t('grid.number')}}</th>
|
||||
<th>{{$t('grid.roll-number')}}</th>
|
||||
<th>{{$t('grid.material-code')}}</th>
|
||||
<th>{{$t('grid.material-name')}}</th>
|
||||
<th>{{$t('grid.quantity')}}</th>
|
||||
<th>{{$t('grid.unit')}}</th>
|
||||
<th>{{$t('grid.unit')}}</th> -->
|
||||
<th>序号</th>
|
||||
<th>机台</th>
|
||||
<th>DOFF号</th>
|
||||
<th>KCODE</th>
|
||||
<th>品种批号</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i">
|
||||
<td>{{i+1}}</td>
|
||||
<!-- <td>{{i+1}}</td>
|
||||
<td>{{e.container_code}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.qty}}</td>
|
||||
<td>{{e.measure_unit_id}}</td>
|
||||
<td>{{e.measure_unit_id}}</td> -->
|
||||
<td>{{i+1}}</td>
|
||||
<td>{{e.device_code}}</td>
|
||||
<td>{{e.doff_code}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -34,22 +34,32 @@
|
||||
<th>物料品种</th>
|
||||
<th>数量</th>
|
||||
<th>单位</th> -->
|
||||
<th>{{$t('grid.number')}}</th>
|
||||
<!-- <th>{{$t('grid.number')}}</th>
|
||||
<th>{{$t('grid.roll-number')}}</th>
|
||||
<th>{{$t('grid.material-code')}}</th>
|
||||
<th>{{$t('grid.material-name')}}</th>
|
||||
<th>{{$t('grid.quantity')}}</th>
|
||||
<th>{{$t('grid.unit')}}</th>
|
||||
<th>{{$t('grid.unit')}}</th> -->
|
||||
<th>序号</th>
|
||||
<th>机台</th>
|
||||
<th>DOFF号</th>
|
||||
<th>KCODE</th>
|
||||
<th>品种批号</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.mid === pkId}">
|
||||
<td @tap="toCheck(e)">{{i+1}}</td>
|
||||
<!-- <td @tap="toCheck(e)">{{i+1}}</td>
|
||||
<td><input type="text" class="sin_input" style="width: 135px;" v-model="e.container_code"></td>
|
||||
<td @tap="toJump(e)">{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td><input type="number" class="sin_input" v-model="e.qty" @blur="handleBlur(e)"></td>
|
||||
<td>{{e.measure_unit_id}}</td>
|
||||
<td>{{e.measure_unit_id}}</td> -->
|
||||
<td @tap="toCheck(e)">{{i+1}}</td>
|
||||
<td><input type="text" class="sin_input" style="width: 135px;" v-model="e.device_code"></td>
|
||||
<td><input type="text" class="sin_input" style="width: 135px;" v-model="e.doff_code"></td>
|
||||
<td @tap="toJump(e)">{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -139,7 +149,7 @@
|
||||
this.pkObj = this.pkId === e.mid ? e : {}
|
||||
this.pkId = ''
|
||||
uni.navigateTo({
|
||||
url: '/pages/ftdlDTY/mater-list0?title=查询物料'
|
||||
url: '/pages/ftdlDTY/mater-list0?title=查询品种'
|
||||
})
|
||||
},
|
||||
toScanAdd () {
|
||||
|
||||
@@ -39,22 +39,32 @@
|
||||
<th>物料品种</th>
|
||||
<th>数量</th>
|
||||
<th>单位</th> -->
|
||||
<th>{{$t('grid.number')}}</th>
|
||||
<!-- <th>{{$t('grid.number')}}</th>
|
||||
<th>{{$t('grid.roll-number')}}</th>
|
||||
<th>{{$t('grid.material-code')}}</th>
|
||||
<th>{{$t('grid.material-name')}}</th>
|
||||
<th>{{$t('grid.quantity')}}</th>
|
||||
<th>{{$t('grid.unit')}}</th>
|
||||
<th>{{$t('grid.unit')}}</th> -->
|
||||
<th>序号</th>
|
||||
<th>机台</th>
|
||||
<th>DOFF号</th>
|
||||
<th>KCODE</th>
|
||||
<th>品种批号</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i">
|
||||
<td>{{i+1}}</td>
|
||||
<!-- <td>{{i+1}}</td>
|
||||
<td>{{e.container_code}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.qty}}</td>
|
||||
<td>{{e.measure_unit_id}}</td>
|
||||
<td>{{e.measure_unit_id}}</td> -->
|
||||
<td>{{i+1}}</td>
|
||||
<td>{{e.device_code}}</td>
|
||||
<td>{{e.doff_code}}</td>
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -1,27 +1,18 @@
|
||||
<template>
|
||||
<view class="zd_container">
|
||||
<!-- 查询物料 -->
|
||||
<!-- 查询品种 -->
|
||||
<nav-bar :title="title" :inner="true"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<!-- <span class="filter_label">物料</span> -->
|
||||
<span class="filter_label">{{$t('filter.material')}}</span>
|
||||
<span class="filter_label">KCODE</span>
|
||||
<!-- <span class="filter_label">{{$t('filter.material')}}</span> -->
|
||||
</view>
|
||||
<view class="zd-col-24">
|
||||
<input type="text" class="filter_input" v-model="val1">
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-9">
|
||||
<!-- <span class="filter_label">物料类型</span> -->
|
||||
<span class="filter_label">{{$t('filter.wltype')}}</span>
|
||||
</view>
|
||||
<view class="zd-col-24 filter_select">
|
||||
<uni-data-select v-model="index" :localdata="options" placeholder="" @change="selectChange"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd_wrapper grid-wraper">
|
||||
<view class="slide_new">
|
||||
@@ -32,18 +23,22 @@
|
||||
<th>物料品种</th>
|
||||
<th>单位</th>
|
||||
<th>物料类型</th> -->
|
||||
<th>{{$t('grid.material-code')}}</th>
|
||||
<!-- <th>{{$t('grid.material-code')}}</th>
|
||||
<th>{{$t('grid.material-name')}}</th>
|
||||
<th>{{$t('grid.unit')}}</th>
|
||||
<th>{{$t('grid.wltype')}}</th>
|
||||
<th>{{$t('grid.wltype')}}</th> -->
|
||||
<th>KCODE</th>
|
||||
<th>品种批号</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.material_code === pkId}" @tap="toCheck(e)">
|
||||
<td>{{e.material_code}}</td>
|
||||
<!-- <td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
<td>{{e.measure_unit_id}}</td>
|
||||
<td>{{e.material_type}}</td>
|
||||
<td>{{e.material_type}}</td> -->
|
||||
<td>{{e.material_code}}</td>
|
||||
<td>{{e.material_name}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -65,7 +60,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {rgfhSelectMaterials, getMaterialTypes} from '@/utils/getData4.js'
|
||||
import {rgfhSelectMaterials} from '@/utils/getData4.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -74,8 +69,6 @@
|
||||
data() {
|
||||
return {
|
||||
title: '',
|
||||
options: [],
|
||||
index: '',
|
||||
val1: '',
|
||||
dataList: [],
|
||||
// dataList: [
|
||||
@@ -100,34 +93,15 @@
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
// this.searchList()
|
||||
this._getMaterialTypes()
|
||||
},
|
||||
methods: {
|
||||
async _getMaterialTypes () {
|
||||
try {
|
||||
let res = await getMaterialTypes()
|
||||
if (res) {
|
||||
this.options = res.data
|
||||
} else {
|
||||
this.options =[]
|
||||
}
|
||||
} catch (e) {
|
||||
this.options = []
|
||||
}
|
||||
},
|
||||
selectChange (e) {
|
||||
this.index = e
|
||||
if (this.val1 && this.index) {
|
||||
this.searchList()
|
||||
}
|
||||
},
|
||||
searchList () {
|
||||
this.dataList = []
|
||||
this.pageNum = 1
|
||||
this._rgfhSelectMaterials()
|
||||
},
|
||||
async _rgfhSelectMaterials () {
|
||||
let res = await rgfhSelectMaterials(this.val1, this.index)
|
||||
let res = await rgfhSelectMaterials(this.val1, '')
|
||||
this.dataList = res.data
|
||||
// this.totalCount = res.totalElements
|
||||
// if (res.totalElements > 0) {
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
{title: this.$t('menu.kw-management'), path: 'RF03', sonTree: [{title: this.$t('menu.man-get-goods'), path: '/pages/ftdlDTY/man-get-goods'}, {title: this.$t('menu.man-load-goods'), path: '/pages/ftdlDTY/man-load-goods'}, {title: this.$t('menu.zd-manage'), path: '/pages/ftdlDTY/zd-manage'}, {title: this.$t('menu.man-yiku'), path: '/pages/ftdlDTY/man-yiku'}]},
|
||||
{title: this.$t('menu.line-management'), path: 'RF04', sonTree: [{title: this.$t('menu.line-down-mater'), path: '/pages/ftdlDTY/line-down-mater'}]},
|
||||
{title: this.$t('menu.task-management'), path: 'RF07', sonTree: [{title: this.$t('menu.work-manage'), path: '/pages/ftdlDTY/work-manage'}, {title: this.$t('menu.fixedpoint-work'), path: '/pages/ftdlDTY/fixedpoint-work'}]},
|
||||
{title: this.$t('menu.area-manage'), path: 'RF01', sonTree: [{title: this.$t('menu.area-manage'), path: '/pages/ftdlDTY/area-manage'}, {title: this.$t('menu.agv-manage'), path: '/pages/ftdlDTY/agv-manage'}]}
|
||||
{title: this.$t('menu.area-manage'), path: 'RF01', sonTree: [{title: this.$t('menu.area-manage'), path: '/pages/ftdlDTY/area-manage'}]}
|
||||
],
|
||||
// menu: [{title: '叫料搬运', path: 'RF11', sonTree: [{title: '叫料搬运', path: '/pages/carry/call-carry'}]}],
|
||||
show: false,
|
||||
|
||||
Reference in New Issue
Block a user