|
@@ -15,20 +15,11 @@
|
|
<view class="introduce-section">
|
|
<view class="introduce-section">
|
|
<view v-for="(item, index) in taskInfo" :key="index" class="guess-item" @click="navToDetailPage(item)">
|
|
<view v-for="(item, index) in taskInfo" :key="index" class="guess-item" @click="navToDetailPage(item)">
|
|
<view class="title flex">
|
|
<view class="title flex">
|
|
- <text v-if='statusFlag==1'>
|
|
|
|
- {{item.carNo}}({{item.tranCarNo}})
|
|
|
|
- </text>
|
|
|
|
- <text v-else>{{item.messageTitle}}</text>
|
|
|
|
|
|
+ <text >{{item.messageTitle}}</text>
|
|
<view class="title-tip-a" v-if="statusFlag==3">已完成</view>
|
|
<view class="title-tip-a" v-if="statusFlag==3">已完成</view>
|
|
- <view class="title-tip" v-if="item.statusFlag==1">未完成</view>
|
|
|
|
|
|
+ <view class="title-tip" v-if="statusFlag==1">未完成</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if='statusFlag==1' class="flex title_b">
|
|
|
|
- <view class="title-tip">
|
|
|
|
- {{item.contractNo}}
|
|
|
|
- </view>
|
|
|
|
- <view class="title-tip-b">{{item.inOutDate}}</view>
|
|
|
|
- </view>
|
|
|
|
- <view v-else class="flex title_b">
|
|
|
|
|
|
+ <view class="flex title_b">
|
|
<view class="title">
|
|
<view class="title">
|
|
{{item.messageContent}}
|
|
{{item.messageContent}}
|
|
</view>
|
|
</view>
|
|
@@ -142,8 +133,6 @@
|
|
if(!this.keyword){
|
|
if(!this.keyword){
|
|
this.$api.msg('关键字不能为空')
|
|
this.$api.msg('关键字不能为空')
|
|
}
|
|
}
|
|
- this.warehouseInOutInfo.statusFlag = this.statusFlag
|
|
|
|
- this.warehouseInOutInfo.keyWord = this.keyword
|
|
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title:"正在加载"
|
|
title:"正在加载"
|
|
})
|
|
})
|
|
@@ -182,7 +171,7 @@
|
|
this.warehouseInOutInfo.pcFlag = 0
|
|
this.warehouseInOutInfo.pcFlag = 0
|
|
if(this.statusFlag==1){
|
|
if(this.statusFlag==1){
|
|
data=this.warehouseInOutInfo
|
|
data=this.warehouseInOutInfo
|
|
- url='/warehouseInOutInfo/selectInfo'
|
|
|
|
|
|
+ url='/noticeTask/query/noticeTasks'
|
|
}else{
|
|
}else{
|
|
data=this.data
|
|
data=this.data
|
|
url='/commonUser/query/findHisPageNoticeTasks'
|
|
url='/commonUser/query/findHisPageNoticeTasks'
|
|
@@ -208,7 +197,6 @@
|
|
that.isLoadMore = false
|
|
that.isLoadMore = false
|
|
that.loadStatus = 'nomore'
|
|
that.loadStatus = 'nomore'
|
|
}
|
|
}
|
|
- if(this.statusFlag==3){
|
|
|
|
for(var i=0;i<this.taskInfo.length;i++){
|
|
for(var i=0;i<this.taskInfo.length;i++){
|
|
if(this.taskInfo[i].businessType=='WAREHOUSE'){
|
|
if(this.taskInfo[i].businessType=='WAREHOUSE'){
|
|
if(this.taskInfo[i].businessCode=='INOUTTASK-TASK-APPROVE'){
|
|
if(this.taskInfo[i].businessCode=='INOUTTASK-TASK-APPROVE'){
|
|
@@ -230,11 +218,10 @@
|
|
}
|
|
}
|
|
}else if(this.taskInfo[i].businessType=='SALE'){
|
|
}else if(this.taskInfo[i].businessType=='SALE'){
|
|
if(this.taskInfo[i].businessCode=='SALE-ORDER-APPROVE'){
|
|
if(this.taskInfo[i].businessCode=='SALE-ORDER-APPROVE'){
|
|
- this.taskInfo[i].messageTitle='采购订单'
|
|
|
|
|
|
+ this.taskInfo[i].messageTitle='销售订单'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- }
|
|
|
|
if(res.data.data.records.length==0){
|
|
if(res.data.data.records.length==0){
|
|
that.isSole=true
|
|
that.isSole=true
|
|
}else{
|
|
}else{
|
|
@@ -262,28 +249,54 @@
|
|
this.getIndexBuyData(1)
|
|
this.getIndexBuyData(1)
|
|
},
|
|
},
|
|
navToDetailPage(item) {
|
|
navToDetailPage(item) {
|
|
- if(item.taskType == "入库任务"){
|
|
|
|
-
|
|
|
|
- if(item.statusFlag == 3){
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pageD/warehousings/warehousingDetails?id=${item.id}`
|
|
|
|
- })
|
|
|
|
- }else{
|
|
|
|
|
|
+ if(item.businessCode=='PROCUREMENT-ORDER-APPROVE'){
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: `/pageD/warehousings/warehousings?id=${item.id}&goodsName=${item.goodsName}&contractNo=${item.contractNo}&startWeight=${item.startWeight}&carNo=${item.carNo}&tranCarNo=${item.tranCarNo}&warehouseName=${item.warehouseName}&addressUrl=${item.addressUrl}&inOutDate=${item.inOutDate}&binNumber=${item.binNumber}`
|
|
|
|
|
|
+ url:'/pages/task/procurement_details?id='+item.businessId
|
|
})
|
|
})
|
|
- }
|
|
|
|
- }else if(item.taskType == "出库任务"){
|
|
|
|
- if(item.statusFlag == 3){
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pageD/warehousings/ex_warehouse_detail?id=${item.id}`
|
|
|
|
- })
|
|
|
|
- }else{
|
|
|
|
|
|
+ }else if(item.businessCode=='SALE-ORDER-APPROVE'){
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
- url: `/pageD/warehousings/ex_warehouse?id=${item.id}&goodsName=${item.goodsName}&contractNo=${item.contractNo}&consignee=${item.consignee}&carNo=${item.carNo}&tranCarNo=${item.tranCarNo}&boxNo=${item.boxNo}&titleNo=${item.titleNo}`
|
|
|
|
|
|
+ url:'/pages/task/sale_details?id='+item.businessId
|
|
|
|
+ })
|
|
|
|
+ }else if(item.businessCode=='PROCUREMENT-RECEIPT-REPORT'){
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:'/pages/task/procurement_report_details'
|
|
|
|
+ })
|
|
|
|
+ }else if(item.businessCode=='PROCUREMENT-CLOSE-REPORT'){
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:'/pages/task/procurement_close_details'
|
|
|
|
+ })
|
|
|
|
+ }else if(item.businessCode=='SALE-RECEIPT-REPORT'){
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:'/pages/task/sale_report_details'
|
|
|
|
+ })
|
|
|
|
+ }else if(item.businessCode=='SALE-CLOSE-REPORT'){
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url:'/pages/task/sale_close_details'
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ // if(item.taskType == "入库任务"){
|
|
|
|
+
|
|
|
|
+ // if(item.statusFlag == 3){
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
+ // url: `/pageD/warehousings/warehousingDetails?id=${item.id}`
|
|
|
|
+ // })
|
|
|
|
+ // }else{
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
+ // url: `/pageD/warehousings/warehousings?id=${item.id}&goodsName=${item.goodsName}&contractNo=${item.contractNo}&startWeight=${item.startWeight}&carNo=${item.carNo}&tranCarNo=${item.tranCarNo}&warehouseName=${item.warehouseName}&addressUrl=${item.addressUrl}&inOutDate=${item.inOutDate}&binNumber=${item.binNumber}`
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ // }else if(item.taskType == "出库任务"){
|
|
|
|
+ // if(item.statusFlag == 3){
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
+ // url: `/pageD/warehousings/ex_warehouse_detail?id=${item.id}`
|
|
|
|
+ // })
|
|
|
|
+ // }else{
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
+ // url: `/pageD/warehousings/ex_warehouse?id=${item.id}&goodsName=${item.goodsName}&contractNo=${item.contractNo}&consignee=${item.consignee}&carNo=${item.carNo}&tranCarNo=${item.tranCarNo}&boxNo=${item.boxNo}&titleNo=${item.titleNo}`
|
|
|
|
+ // })
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|