This commit is contained in:
2025-09-17 16:09:45 +08:00
parent ec7438d90b
commit d835e52c69
7 changed files with 36 additions and 13 deletions

View File

@@ -53,7 +53,6 @@
</table> </table>
</view> </view>
</view> </view>
<uni-load-more color="#007AFF" iconType="circle" :status="status" :icon-size="14" :content-text="contentText" v-if="dataList.length > 0"/>
</view> </view>
<view class="zd_content"> <view class="zd_content">
<view class="zd_wrapper"> <view class="zd_wrapper">
@@ -154,7 +153,7 @@
let res = await getMoveDocumentInfo('1', this.val1, this.mdid) let res = await getMoveDocumentInfo('1', this.val1, this.mdid)
if (res && res.data.length > 0) { if (res && res.data.length > 0) {
this.dataList = [...res.data] this.dataList = [...res.data]
this.mdid = ths.dataList[0].moveinvdtl_id this.mdid = this.dataList[0].moveinvdtl_id
if (this.dataList.length && this.mdid) { if (this.dataList.length && this.mdid) {
this._getMoveDocumentInfo2() this._getMoveDocumentInfo2()
} }

View File

@@ -49,7 +49,7 @@
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.iostorinv_id === pkId}" @tap="toCheck(e)"> <tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.iostorinv_id === pkId}" @tap="toCheck(e)">
<td>{{i+1}}</td> <td>{{i+1}}</td>
<td>{{e.bill_code}}</td> <td>{{e.bill_code}}</td>
<td>{{e.bill_type}}</td> <td>{{e.bill_type_name}}</td>
<td>{{e.struct_code}}</td> <td>{{e.struct_code}}</td>
<td>{{e.storagevehicle_code}}</td> <td>{{e.storagevehicle_code}}</td>
<td>{{e.material_code}}</td> <td>{{e.material_code}}</td>
@@ -92,8 +92,15 @@
keyword: null, keyword: null,
date: currentDate, date: currentDate,
dataList: [], dataList: [],
statusMap: {
'1001': '领料出库',
'1002': '质检出库',
'1003': '退货出库',
'1004': '烘干出库',
'1009': '手工出库'
},
pkId: '', pkId: '',
pkObj: {} pkObj: {},
}; };
}, },
computed: { computed: {
@@ -119,7 +126,10 @@
try { try {
let res = await getIoDisDocumentInfo(this.keyword, this.date, '1') let res = await getIoDisDocumentInfo(this.keyword, this.date, '1')
if (res && res.data.length > 0) { if (res && res.data.length > 0) {
this.dataList = [...res.data] this.dataList = res.data.map(item => ({
...item,
bill_type_name: this.statusMap[item.bill_type] || ''
}))
} else { } else {
this.dataList = [] this.dataList = []
} }
@@ -135,7 +145,7 @@
if (this.pkId) { if (this.pkId) {
this.$store.dispatch('setPublicObj', this.pkObj) this.$store.dispatch('setPublicObj', this.pkObj)
uni.navigateTo({ uni.navigateTo({
url: 'pages/Material/hw-out-store' url: '/pages/Material/hw-out-store?title=货位出库'
}) })
} }
} }

View File

@@ -37,7 +37,7 @@
<tbody> <tbody>
<tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.check_id === pkId}" @tap="toCheck(e)"> <tr v-for="(e, i) in dataList" :key="i" :class="{'checked': e.check_id === pkId}" @tap="toCheck(e)">
<td>{{i+1}}</td> <td>{{i+1}}</td>
<td>{{e.check_result}}</td> <td>{{e.check_result_name}}</td>
<td>{{e.struct_code}}</td> <td>{{e.struct_code}}</td>
<td>{{e.storagevehicle_code}}</td> <td>{{e.storagevehicle_code}}</td>
<td>{{e.material_code}}</td> <td>{{e.material_code}}</td>
@@ -76,6 +76,11 @@
title: '', title: '',
keyword: '', keyword: '',
dataList: [], dataList: [],
statusMap: {
'10': '生成',
'20': '盘点中',
'99': '完成'
},
pkId: '', pkId: '',
pkObj: {} pkObj: {}
}; };
@@ -89,7 +94,10 @@
try { try {
let res = await getCheckDocumentInfo(this.keyword, '1') let res = await getCheckDocumentInfo(this.keyword, '1')
if (res && res.data.length > 0) { if (res && res.data.length > 0) {
this.dataList = [...res.data] this.dataList = res.data.map(item => ({
...item,
check_result_name: this.statusMap[item.check_result] || ''
}))
} else { } else {
this.dataList = [] this.dataList = []
} }
@@ -105,7 +113,7 @@
if (this.pkId) { if (this.pkId) {
this.$store.dispatch('setPublicObj', this.pkObj) this.$store.dispatch('setPublicObj', this.pkObj)
uni.navigateTo({ uni.navigateTo({
url: 'pages/Material/hw-check' url: '/pages/Material/hw-check?title=货位盘点'
}) })
} }
} }

View File

@@ -45,7 +45,8 @@
<script> <script>
import NavBar from '@/components/NavBar.vue' import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue' import SearchBox from '@/components/SearchBox.vue'
import {queryVehicleType, bindEmptyVehicle, unBindEmptyVehicle} from '@/utils/getData1.js' import {bindEmptyVehicle, unBindEmptyVehicle} from '@/utils/getData1.js'
import {queryVehicleType} from '@/utils/getData2.js'
export default { export default {
components: { components: {
NavBar, NavBar,
@@ -57,7 +58,7 @@
val1: '', val1: '',
val2: '', val2: '',
options: [], options: [],
index: '', index: '2',
disabled: false disabled: false
}; };
}, },

View File

@@ -67,6 +67,7 @@
<td>{{e.material_spec}}</td> <td>{{e.material_spec}}</td>
<td>{{e.material_model}}</td> <td>{{e.material_model}}</td>
<td>{{e.quality_time_day}}</td> <td>{{e.quality_time_day}}</td>
<td>{{e.execution_stand}}</td>
<td>{{['', '待检', '合格', '不合格'][Number(e.quality_type)]}}</td> <td>{{['', '待检', '合格', '不合格'][Number(e.quality_type)]}}</td>
<td>{{e.bake_num}}</td> <td>{{e.bake_num}}</td>
</tr> </tr>

View File

@@ -67,6 +67,7 @@
<td>{{e.material_spec}}</td> <td>{{e.material_spec}}</td>
<td>{{e.material_model}}</td> <td>{{e.material_model}}</td>
<td>{{e.quality_time_day}}</td> <td>{{e.quality_time_day}}</td>
<td>{{e.execution_stand}}</td>
<td>{{['', '待检', '合格', '不合格'][Number(e.quality_type)]}}</td> <td>{{['', '待检', '合格', '不合格'][Number(e.quality_type)]}}</td>
<td>{{e.bake_num}}</td> <td>{{e.bake_num}}</td>
</tr> </tr>
@@ -146,7 +147,9 @@
this.disabled = false this.disabled = false
}, },
toAddMater () { toAddMater () {
if (!this.dataList.length) return if (!this.dataList.length){
return
}
this.$store.dispatch('setPublicArr', this.dataList) this.$store.dispatch('setPublicArr', this.dataList)
let fobj = { let fobj = {
bill_type: this.index, bill_type: this.index,
@@ -155,7 +158,7 @@
} }
this.$store.dispatch('setPublicObj', fobj) this.$store.dispatch('setPublicObj', fobj)
uni.navigateTo({ uni.navigateTo({
url: 'pages/Material/mater-save' url: '/pages/Material/mater-save?title=物料维护'
}) })
}, },
} }

View File

@@ -67,6 +67,7 @@
<td>{{e.material_spec}}</td> <td>{{e.material_spec}}</td>
<td>{{e.material_model}}</td> <td>{{e.material_model}}</td>
<td>{{e.quality_time_day}}</td> <td>{{e.quality_time_day}}</td>
<td>{{e.execution_stand}}</td>
<td>{{['', '待检', '合格', '不合格'][Number(e.quality_type)]}}</td> <td>{{['', '待检', '合格', '不合格'][Number(e.quality_type)]}}</td>
<td>{{e.bake_num}}</td> <td>{{e.bake_num}}</td>
</tr> </tr>