2025-09-02 11:10:13 +08:00
|
|
|
<template>
|
|
|
|
|
<view class="zd_container">
|
2025-09-02 17:24:46 +08:00
|
|
|
<!-- 大料箱 - 大料箱出库 -->
|
2025-09-02 11:10:13 +08:00
|
|
|
<nav-bar :title="title"></nav-bar>
|
|
|
|
|
<view class="zd_content">
|
|
|
|
|
<view class="zd_wrapper">
|
|
|
|
|
<view class="zd-row border-bottom">
|
2025-09-10 10:38:03 +08:00
|
|
|
<view class="zd-col-6">
|
2025-09-02 17:24:46 +08:00
|
|
|
<span class="filter_label">日期</span>
|
2025-09-02 11:10:13 +08:00
|
|
|
</view>
|
2025-09-10 10:38:03 +08:00
|
|
|
<view class="zd-col-18 filter_picker">
|
|
|
|
|
<picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindDateChange">
|
|
|
|
|
<view class="uni-input">{{date}}</view>
|
|
|
|
|
</picker>
|
2025-09-02 11:10:13 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="zd-row border-bottom">
|
2025-09-10 10:38:03 +08:00
|
|
|
<view class="zd-col-5">
|
2025-09-02 17:24:46 +08:00
|
|
|
<span class="filter_label">单据</span>
|
2025-09-02 11:10:13 +08:00
|
|
|
</view>
|
2025-09-10 10:38:03 +08:00
|
|
|
<view class="zd-col-14">
|
|
|
|
|
<input type="text" placeholder="输入物料关键字" class="filter_input" v-model="keyword" @focus="handleFocus">
|
2025-09-02 11:10:13 +08:00
|
|
|
</view>
|
2025-09-10 10:38:03 +08:00
|
|
|
<button class="mini-btn" type="primary" size="mini" @tap="_getIoDisDocumentInfo">查询</button>
|
2025-09-02 11:10:13 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="zd_wrapper grid-wraper">
|
|
|
|
|
<view class="slide_new">
|
|
|
|
|
<table>
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2025-09-02 17:24:46 +08:00
|
|
|
<th>序号</th>
|
|
|
|
|
<th>单据号</th>
|
|
|
|
|
<th>单据类型</th>
|
|
|
|
|
<th>点位</th>
|
|
|
|
|
<th>载具</th>
|
|
|
|
|
<th>物料编码</th>
|
|
|
|
|
<th>物料名称</th>
|
|
|
|
|
<th>批号</th>
|
|
|
|
|
<th>重量(kg)</th>
|
|
|
|
|
<th>出库重量(kg)</th>
|
|
|
|
|
<th>生产日期</th>
|
|
|
|
|
<th>供应商编码</th>
|
|
|
|
|
<th>供应商名称</th>
|
|
|
|
|
<th>烘干次数</th>
|
2025-09-02 11:10:13 +08:00
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
2025-09-10 10:38:03 +08:00
|
|
|
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.iostorinv_id === pkId}" @tap="toCheck(e)">
|
2025-09-02 17:24:46 +08:00
|
|
|
<td>{{i+1}}</td>
|
2025-09-10 10:38:03 +08:00
|
|
|
<td>{{e.bill_code}}</td>
|
2025-09-17 16:09:45 +08:00
|
|
|
<td>{{e.bill_type_name}}</td>
|
2025-09-10 10:38:03 +08:00
|
|
|
<td>{{e.struct_code}}</td>
|
|
|
|
|
<td>{{e.storagevehicle_code}}</td>
|
|
|
|
|
<td>{{e.material_code}}</td>
|
|
|
|
|
<td>{{e.material_name}}</td>
|
|
|
|
|
<td>{{e.pcsn}}</td>
|
|
|
|
|
<td>{{e.total_qty}}</td>
|
|
|
|
|
<td>{{e.plan_qty}}</td>
|
|
|
|
|
<td>{{e.produce_time}}</td>
|
|
|
|
|
<td>{{e.supp_code}}</td>
|
|
|
|
|
<td>{{e.supp_name}}</td>
|
|
|
|
|
<td>{{e.bake_num}}</td>
|
2025-09-02 11:10:13 +08:00
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="zd-row submit-bar">
|
2025-09-10 10:38:03 +08:00
|
|
|
<button class="zd-col-24 button-primary" :class="{'button-info': !pkId}" @tap="toSure">扫码出库</button>
|
2025-09-02 11:10:13 +08:00
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import NavBar from '@/components/NavBar.vue'
|
|
|
|
|
import SearchBox from '@/components/SearchBox.vue'
|
2025-09-10 10:38:03 +08:00
|
|
|
import {getDate} from '@/utils/utils.js'
|
|
|
|
|
import {getIoDisDocumentInfo} from '@/utils/getData1.js'
|
2025-09-02 11:10:13 +08:00
|
|
|
export default {
|
|
|
|
|
components: {
|
|
|
|
|
NavBar,
|
|
|
|
|
SearchBox
|
|
|
|
|
},
|
|
|
|
|
data() {
|
2025-09-10 10:38:03 +08:00
|
|
|
const currentDate = getDate({
|
|
|
|
|
format: true
|
|
|
|
|
})
|
2025-09-02 11:10:13 +08:00
|
|
|
return {
|
|
|
|
|
title: '',
|
2025-09-10 10:38:03 +08:00
|
|
|
keyword: null,
|
|
|
|
|
date: currentDate,
|
2025-09-02 11:10:13 +08:00
|
|
|
dataList: [],
|
2025-09-17 16:09:45 +08:00
|
|
|
statusMap: {
|
|
|
|
|
'1001': '领料出库',
|
|
|
|
|
'1002': '质检出库',
|
|
|
|
|
'1003': '退货出库',
|
|
|
|
|
'1004': '烘干出库',
|
|
|
|
|
'1009': '手工出库'
|
|
|
|
|
},
|
2025-09-02 11:10:13 +08:00
|
|
|
pkId: '',
|
2025-09-17 16:09:45 +08:00
|
|
|
pkObj: {},
|
2025-09-02 11:10:13 +08:00
|
|
|
};
|
|
|
|
|
},
|
2025-09-10 10:38:03 +08:00
|
|
|
computed: {
|
|
|
|
|
startDate() {
|
|
|
|
|
return getDate('start');
|
|
|
|
|
},
|
|
|
|
|
endDate() {
|
|
|
|
|
return getDate('end');
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-09-02 11:10:13 +08:00
|
|
|
onLoad (options) {
|
|
|
|
|
this.title = options.title
|
2025-09-18 16:49:05 +08:00
|
|
|
},
|
|
|
|
|
created () {
|
2025-09-10 10:38:03 +08:00
|
|
|
this._getIoDisDocumentInfo()
|
2025-09-02 11:10:13 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
2025-09-10 10:38:03 +08:00
|
|
|
handleFocus () {
|
|
|
|
|
this.keyword = null
|
2025-09-02 11:10:13 +08:00
|
|
|
},
|
2025-09-10 10:38:03 +08:00
|
|
|
bindDateChange: function(e) {
|
|
|
|
|
this.date = e.detail.value
|
2025-09-02 11:10:13 +08:00
|
|
|
},
|
2025-09-10 10:38:03 +08:00
|
|
|
async _getIoDisDocumentInfo () {
|
|
|
|
|
try {
|
|
|
|
|
let res = await getIoDisDocumentInfo(this.keyword, this.date, '1')
|
|
|
|
|
if (res && res.data.length > 0) {
|
2025-09-17 16:09:45 +08:00
|
|
|
this.dataList = res.data.map(item => ({
|
|
|
|
|
...item,
|
|
|
|
|
bill_type_name: this.statusMap[item.bill_type] || ''
|
|
|
|
|
}))
|
2025-09-02 11:10:13 +08:00
|
|
|
} else {
|
|
|
|
|
this.dataList = []
|
|
|
|
|
}
|
2025-09-10 10:38:03 +08:00
|
|
|
} catch (e) {
|
|
|
|
|
this.dataList = []
|
2025-09-02 11:10:13 +08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
toCheck (e) {
|
2025-09-10 10:38:03 +08:00
|
|
|
this.pkId = this.pkId === e.iostorinv_id ? '' : e.iostorinv_id
|
|
|
|
|
this.pkObj = this.pkId === e.iostorinv_id ? e : {}
|
2025-09-02 11:10:13 +08:00
|
|
|
},
|
2025-09-10 10:38:03 +08:00
|
|
|
toSure () {
|
|
|
|
|
if (this.pkId) {
|
|
|
|
|
this.$store.dispatch('setPublicObj', this.pkObj)
|
|
|
|
|
uni.navigateTo({
|
2025-09-17 16:09:45 +08:00
|
|
|
url: '/pages/Material/hw-out-store?title=货位出库'
|
2025-09-10 10:38:03 +08:00
|
|
|
})
|
2025-09-02 11:10:13 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|