145 lines
3.6 KiB
Vue
145 lines
3.6 KiB
Vue
<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-6">
|
|
<span class="filter_label">查询类型</span>
|
|
</view>
|
|
<view class="zd-col-18 filter_select">
|
|
<uni-data-select v-model="index1" :localdata="options1"></uni-data-select>
|
|
</view>
|
|
</view>
|
|
<view class="zd-row border-bottom">
|
|
<view class="zd-col-6">
|
|
<span class="filter_label">点位</span>
|
|
</view>
|
|
<view class="zd-col-18">
|
|
<search-box v-model="val1"/>
|
|
</view>
|
|
</view>
|
|
<view class="zd-row border-bottom">
|
|
<view class="zd-col-6">
|
|
<span class="filter_label">物料编码</span>
|
|
</view>
|
|
<view class="zd-col-13">
|
|
<search-box v-model="materialData.material_code"/>
|
|
</view>
|
|
<button class="mini-btn" type="primary" @tap="toJump('material?title=物料维护')">查询</button>
|
|
</view>
|
|
<view class="zd-row border-bottom">
|
|
<view class="zd-col-5">
|
|
<span class="filter_label">批号</span>
|
|
</view>
|
|
<view class="zd-col-14">
|
|
<input type="text" class="filter_input" v-model="val2">
|
|
</view>
|
|
<button class="mini-btn" type="primary" @tap="_queryHistoryTask">查询</button>
|
|
</view>
|
|
</view>
|
|
<view class="zd_wrapper grid-wraper">
|
|
<view class="slide_new">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>序号</th>
|
|
<th>点位</th>
|
|
<th>物料编码</th>
|
|
<th>物料名称</th>
|
|
<th>批号</th>
|
|
<th>数量</th>
|
|
<th>单位</th>
|
|
<th>供应商</th>
|
|
<th>类别</th>
|
|
<th>规格</th>
|
|
<th>型号</th>
|
|
<th>入库时间</th>
|
|
<th>载具</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr v-for="(e, i) in dataList" :key="i">
|
|
<td>{{i+1}}</td>
|
|
<td>{{e.vehicle_code}}</td>
|
|
<td>{{e.point_code1}}</td>
|
|
<td>{{e.point_code2}}</td>
|
|
<td>{{e.task_code}}</td>
|
|
<td>{{e.config_name}}</td>
|
|
<td>{{e.car_no}}</td>
|
|
<td>{{e.remark}}</td>
|
|
<td>{{e.remark}}</td>
|
|
<td>{{e.remark}}</td>
|
|
<td>{{e.remark}}</td>
|
|
<td>{{e.remark}}</td>
|
|
<td>{{e.remark}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import NavBar from '@/components/NavBar.vue'
|
|
import SearchBox from '@/components/SearchBox.vue'
|
|
import {queryHistoryTask} from '@/utils/getData2.js'
|
|
export default {
|
|
components: {
|
|
NavBar,
|
|
SearchBox
|
|
},
|
|
data() {
|
|
return {
|
|
title: '',
|
|
options1: [],
|
|
options: [{text:'原粉', value: '1'}, {text:'辅料', value: '2'}, {text:'批料室', value: '3'}, {text:'中间站', value: '4'}, {text:'内包材', value: '5'}, {text:'外包材', value: '6'}],
|
|
index1: '',
|
|
val1: '',
|
|
val2: '',
|
|
dataList: []
|
|
};
|
|
},
|
|
onLoad (options) {
|
|
this.title = options.title
|
|
this._queryHistoryTask()
|
|
},
|
|
methods: {
|
|
toEmpty () {
|
|
this.val1 = ''
|
|
this.dataList = []
|
|
this.disabled = false
|
|
},
|
|
toJump (name) {
|
|
uni.navigateTo({
|
|
url: `/pages/hdyy/wbc/${name}`
|
|
})
|
|
},
|
|
async _queryHistoryTask () {
|
|
try {
|
|
let res = await queryHistoryTask(this.val1)
|
|
if (res && res.data) {
|
|
this.dataList = [...res.data]
|
|
} else {
|
|
this.dataList = []
|
|
uni.showToast({
|
|
title: res.message,
|
|
icon: 'none'
|
|
})
|
|
}
|
|
} catch (e) {
|
|
this.dataList = []
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.filter_picker {
|
|
text-align: center
|
|
}
|
|
</style> |