1.修正分类显示

main
董哲奇 7 hours ago
parent 186bd7134f
commit 2407a1e662

@ -217,7 +217,15 @@
<view class="list-container" v-if="pallet&&pallet.instdetailList"> <view class="list-container" v-if="pallet&&pallet.instdetailList">
<view v-for="(item, index) in pallet.instdetailList" :key="index" class="list-item"> <view v-for="(item, index) in pallet.instdetailList" :key="index" class="list-item">
<view class="item-header" @click="gotocxDetail(item.instno,item.project)"> <view class="item-header" @click="()=>{
let code=item.instno;
let type='2'
if(!code){
code=item.dwgn
type='1'
}
gotocxDetail(code,item.project,type)
}">
<text class="item-tip">{{ item.groupDesc }} ({{ item.qty?parseInt(item.qty):'0'}})</text> <text class="item-tip">{{ item.groupDesc }} ({{ item.qty?parseInt(item.qty):'0'}})</text>
</view> </view>
@ -433,9 +441,9 @@
immediate: true, // immediate: true, //
}, },
methods: { methods: {
gotocxDetail(instno,project){ gotocxDetail(instno,project,type){
uni.navigateTo({ uni.navigateTo({
url: `/pages/pallet/tpcxtk?instno=${instno}&project=${project}` url: `/pages/pallet/tpcxtk?instno=${instno}&project=${project}&type={type}`
}); });
}, },
_initDetail(palletAll = this.palletAll) { _initDetail(palletAll = this.palletAll) {

Loading…
Cancel
Save