|
@@ -10,15 +10,14 @@ Page({
|
|
|
defaultParams: {
|
|
defaultParams: {
|
|
|
loginAccountId: wx.getStorageSync('loginAccountId')
|
|
loginAccountId: wx.getStorageSync('loginAccountId')
|
|
|
},
|
|
},
|
|
|
- maintab: 2,
|
|
|
|
|
|
|
+ maintab: 3,
|
|
|
status: 1,
|
|
status: 1,
|
|
|
currentPage: 1,
|
|
currentPage: 1,
|
|
|
size: 20,
|
|
size: 20,
|
|
|
list: [],
|
|
list: [],
|
|
|
total: 0,
|
|
total: 0,
|
|
|
isFreshing: false,
|
|
isFreshing: false,
|
|
|
- currentApi: "/dayReport/list"
|
|
|
|
|
- // currentApi: "/voyage/list"
|
|
|
|
|
|
|
+ apiArr: ['/voyage/list', '/dayReport/list', '/bill/list']
|
|
|
},
|
|
},
|
|
|
selectCargoOwner(e) {
|
|
selectCargoOwner(e) {
|
|
|
this.setData({
|
|
this.setData({
|
|
@@ -42,7 +41,7 @@ Page({
|
|
|
this.setData({
|
|
this.setData({
|
|
|
isFreshing: true
|
|
isFreshing: true
|
|
|
})
|
|
})
|
|
|
- let res = await postApi(this.data.currentApi, {
|
|
|
|
|
|
|
+ let res = await postApi(this.data.apiArr[this.data.maintab - 1], {
|
|
|
loginAccountId: wx.getStorageSync('loginAccountId'),
|
|
loginAccountId: wx.getStorageSync('loginAccountId'),
|
|
|
cargoOwnerId: this.data.cargoOwnerId,
|
|
cargoOwnerId: this.data.cargoOwnerId,
|
|
|
status: this.data.status,
|
|
status: this.data.status,
|
|
@@ -108,7 +107,8 @@ Page({
|
|
|
}
|
|
}
|
|
|
let {
|
|
let {
|
|
|
medias,
|
|
medias,
|
|
|
- trans
|
|
|
|
|
|
|
+ trans,
|
|
|
|
|
+ index
|
|
|
} = e.currentTarget.dataset
|
|
} = e.currentTarget.dataset
|
|
|
if (medias.length == 1) {
|
|
if (medias.length == 1) {
|
|
|
app.globalData.currentExamineMedia = medias[0]
|
|
app.globalData.currentExamineMedia = medias[0]
|
|
@@ -119,7 +119,16 @@ Page({
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
case 3: {
|
|
case 3: {
|
|
|
- url = `/pages/voyageManage/myBills/myBills?id=${id}`
|
|
|
|
|
|
|
+ let {
|
|
|
|
|
+ index
|
|
|
|
|
+ } = e.currentTarget.dataset
|
|
|
|
|
+ app.globalData.currentBillItem = this.data.list[index]
|
|
|
|
|
+
|
|
|
|
|
+ if (this.data.list[index].shipownerUploadFiles.length == 1) {
|
|
|
|
|
+ url = `/pages/voyageManage/myBills/examine/examine?id=${id}`
|
|
|
|
|
+ } else {
|
|
|
|
|
+ url = `/pages/voyageManage/myBills/myBills?id=${id}`
|
|
|
|
|
+ }
|
|
|
break
|
|
break
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|