|
|
@ -9,8 +9,7 @@ |
|
|
|
<view v-if="jobList.length>0"> |
|
|
|
<uni-swipe-action ref="swipeAction"> |
|
|
|
<view v-for="(item, index) in jobList" :key="index"> |
|
|
|
<uni-swipe-action-item |
|
|
|
:right-options="item.status=='2'?detailGiveupOptions:detailOptions" |
|
|
|
<uni-swipe-action-item :right-options="item.status=='2'?detailGiveupOptions:detailOptions" |
|
|
|
@click="swipeClick($event,item)"> |
|
|
|
<com-product-job-card :dataContent="item" @click='openJobDetail(item)'></com-product-job-card> |
|
|
|
</uni-swipe-action-item> |
|
|
@ -28,8 +27,8 @@ |
|
|
|
|
|
|
|
<script> |
|
|
|
import { |
|
|
|
getProductReceiptJobList, |
|
|
|
cancleTakeProductReceiptJob |
|
|
|
getPickJobList, |
|
|
|
cancleTakePickJob |
|
|
|
} from '@/api/request2.js'; |
|
|
|
|
|
|
|
import { |
|
|
@ -147,7 +146,7 @@ |
|
|
|
pageNo: this.pageNo, |
|
|
|
pageSize: this.pageSize, |
|
|
|
} |
|
|
|
getProductReceiptJobList(params).then(res => { |
|
|
|
getPickJobList(params).then(res => { |
|
|
|
uni.hideLoading(); |
|
|
|
if (type === "refresh") { |
|
|
|
uni.stopPullDownRefresh(); |
|
|
@ -207,7 +206,7 @@ |
|
|
|
}, |
|
|
|
|
|
|
|
cancleJob(id) { |
|
|
|
cancleTakeProductReceiptJob(id).then(res => { |
|
|
|
cancleTakePickJob(id).then(res => { |
|
|
|
if (res.data) { |
|
|
|
this.getList("refresh") |
|
|
|
uni.showToast({ |
|
|
@ -258,7 +257,7 @@ |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 100, |
|
|
|
} |
|
|
|
getProductReceiptJobList(params).then(res => { |
|
|
|
getPickJobList(params).then(res => { |
|
|
|
uni.hideLoading(); |
|
|
|
if (res.data.list.length == 0) { |
|
|
|
that.showMessage('未查找到' + '【' + code + '】的收货任务'); |
|
|
|