bug修复

This commit is contained in:
hongchao 2024-12-23 17:09:42 +08:00
parent 4844dca3e5
commit 8056285ea6
3 changed files with 12 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{
"name" : "material-app",
"appid" : "__UNI__AD10BE7",
"appid" : "__UNI__2AF69B2",
"description" : "",
"versionName" : "1.0.1",
"versionCode" : 101,

View File

@ -356,8 +356,10 @@ onLoad((options) => {
console.log('监听事件', num)
codeNum.value = num
})
console.log('options', options.queryParams)
queryParams.value = JSON.parse(options.queryParams)
queryCodeParams.typeId = queryParams.value.typeId
console.log('22222222', queryParams.value)
queryCodeParams.value.typeId = queryParams.value.typeId
getCodeDeviceListData()
})
//

View File

@ -2,12 +2,12 @@
<!-- 领料出库 -->
<view class="page-container">
<view class="complete-btn">
<view class="btn" @click="changeTab(1)">
<span>完成</span>
<view class="btn" @click="changeTab(1)">
<span>完成</span>
<div v-if="active == 1" class="bt-line"></div>
</view>
<view class="btn" style="margin-left: 80rpx" @click="changeTab(2)">
<span>完成</span>
<span>完成</span>
<div v-if="active == 2" class="bt-line"></div>
</view>
</view>
@ -126,7 +126,7 @@ const queryParams = ref({
startTime: '', //
endTime: '', //
keyWord: '', //
statusList: [4], //
statusList: [3], //
pageNum: 1,
pageSize: 3,
})
@ -140,7 +140,7 @@ const onChangeDate = (val) => {
//
const getTableList = async (isTap = false) => {
// console.log('queryParams.value', queryParams.value)
console.log('queryParams.value查询参数', queryParams.value)
const res = await getPickingOutboundListAPI(queryParams.value)
console.log('res列表数据', res)
total.value = res.total
@ -178,11 +178,12 @@ const onScrollTolower = debounce(() => {
// tap
const changeTab = (index) => {
active.value = index
if (index == 1) {
console.log('index', index)
if (index == 2) {
queryParams.value.statusList = [4] //
queryParams.value.pageNum = 1
getTableList(true)
} else if (index == 2) {
} else if (index == 1) {
queryParams.value.statusList = [3] //
queryParams.value.pageNum = 1
getTableList(true)