Browse Source

制品回收显示来源库位

intex_online20241111
zhang_li 3 weeks ago
parent
commit
a369e6f072
  1. 6
      src/pages/productRecycle/coms/comRecycleJobCard.vue
  2. 5
      src/pages/productRecycle/job/productRecycleJob.vue

6
src/pages/productRecycle/coms/comRecycleJobCard.vue

@ -1,6 +1,6 @@
<template> <template>
<job-com-main-card :dataContent="dataContent"> <job-com-main-card :dataContent="dataContent">
<jobComMainDetailCard :dataContent="dataContent"></jobComMainDetailCard> <jobComMainDetailCard :dataContent="dataContent" :isShowToLocation='isShowToLocation'></jobComMainDetailCard>
</job-com-main-card> </job-com-main-card>
</template> </template>
@ -21,6 +21,10 @@
type: Object, type: Object,
default: {} default: {}
}, },
isShowToLocation: {
type: Boolean,
default: true
},
}, },
methods: { methods: {

5
src/pages/productRecycle/job/productRecycleJob.vue

@ -11,7 +11,7 @@
<uni-swipe-action-item <uni-swipe-action-item
:right-options="item.status=='2'?detailGiveupOptions:detailOptions" :right-options="item.status=='2'?detailGiveupOptions:detailOptions"
@click="swipeClick($event,item)"> @click="swipeClick($event,item)">
<comRecycleJobCard :dataContent="item" @click='openJobDetail(item)'></comRecycleJobCard> <comRecycleJobCard :dataContent="item" @click='openJobDetail(item)' :isShowToLocation='false'></comRecycleJobCard>
</uni-swipe-action-item> </uni-swipe-action-item>
</view> </view>
</uni-swipe-action> </uni-swipe-action>
@ -161,6 +161,9 @@
if (type === "refresh") { if (type === "refresh") {
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
} }
res.data.list.forEach(item=>{
item.fromLocationCode = item.toLocationCode
})
var list = res.data.list; var list = res.data.list;
this.totalCount = res.data.total this.totalCount = res.data.total
updateTitle(this.title+"(" + this.totalCount + ")"); updateTitle(this.title+"(" + this.totalCount + ")");

Loading…
Cancel
Save