From 3440bde45793406c6e16b17dad7b00702da00649 Mon Sep 17 00:00:00 2001
From: wuwx <1960@qq.com>
Date: Mon, 20 May 2024 17:44:18 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A3=85=E8=88=B9=E5=A4=96=E8=B4=B8=E6=96=B0?=
=?UTF-8?q?=E9=9C=80=E6=B1=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/head-info/head-info.vue | 17 +-
manifest.json | 2 +-
pages.json | 6 +
pages/discharge/instruct.vue | 2 +-
pages/index/domesticTrade.vue | 14 +-
pages/index/index.vue | 77 +-
pages/index/instruct.vue | 1245 +++++++++++++----
pages/index/instructDetails.vue | 13 +-
pages/index/ladingNumber.vue | 111 ++
pages/shipWork/mixWork.vue | 25 +-
.../components/custom-tabs/custom-tabs.vue | 14 +-
.../superwei-combox/superwei-combox.vue | 14 +-
12 files changed, 1165 insertions(+), 375 deletions(-)
create mode 100644 pages/index/ladingNumber.vue
diff --git a/components/head-info/head-info.vue b/components/head-info/head-info.vue
index e0957f6..9b110a5 100644
--- a/components/head-info/head-info.vue
+++ b/components/head-info/head-info.vue
@@ -9,8 +9,8 @@
-
-
+
+
{{item.name}}
@@ -145,21 +145,12 @@
required: true,
},
},
- mounted() {
+ created() {
this.navList = uni.getStorageSync('qxList')
- this.navList.map(item => {
- item.type = false
- if(item.name == '装船指令') {
- item.path = '/pages/index/index'
- item.icon = '../../static/images/theme/zcIcon1-1.png'
- item.smpId = '../../static/images/theme/zcIcon1-2.png'
- }
- return item
- })
+ this.navList[uni.getStorageSync("navIndex")].type = true
this.loginObj = uni.getStorageSync('loginObj')
this.initData()
this.activeIndex = uni.getStorageSync("selectPortIndex")
- this.navList[uni.getStorageSync("navIndex")].type = true
this.getUser()
},
methods: {
diff --git a/manifest.json b/manifest.json
index 66de4ca..c561d22 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,7 +2,7 @@
"name" : "海通Pad",
"appid" : "__UNI__F864E80",
"description" : "",
- "versionName" : "1.0.0",
+ "versionName" : "1.0.4",
"versionCode" : "100",
"transformPx" : false,
/* 5+App特有相关 */
diff --git a/pages.json b/pages.json
index 7e74487..7067344 100644
--- a/pages.json
+++ b/pages.json
@@ -43,6 +43,12 @@
"navigationBarTitleText": "指令"
}
},
+ {
+ "path": "pages/index/ladingNumber",
+ "style": {
+ "navigationBarTitleText": "提单号"
+ }
+ },
{
"path": "pages/index/instructDetails",
"style": {
diff --git a/pages/discharge/instruct.vue b/pages/discharge/instruct.vue
index 6cef91a..5f644a7 100644
--- a/pages/discharge/instruct.vue
+++ b/pages/discharge/instruct.vue
@@ -1682,7 +1682,7 @@
// 获取卸船进度数据
getJobProgress() {
uni.request({
- url: `${this.$local}/api/instruction/statistics/JobProgress?filterType=BRD_TYPE&target=UN_L&vvyId=${this.shipInfo.vvyId}`,
+ url: `${this.$local}/api/instruction/statistics/JobProgress?filterType=BRD_TYPE&target=UN_L&vvyId=${this.shipInfo.vvyId}&size=5000¤t=1`,
header: {
'Content-Type': 'application/x-www-form-urlencoded', //自定义请求头信息
'Authorization': `Bearer ${this.loginObj.access_token}`
diff --git a/pages/index/domesticTrade.vue b/pages/index/domesticTrade.vue
index b1fd3e1..c261984 100644
--- a/pages/index/domesticTrade.vue
+++ b/pages/index/domesticTrade.vue
@@ -759,20 +759,20 @@
this.qxList = uni.getStorageSync('qxList')
this.qxList.forEach(v => {
if (v.code == "shipmentDirectives") {
- v.operates.forEach(e => {
- if (e.code == "B1") {
+ v.subMenus.forEach(e => {
+ if (e.code == "shipmentDirectivesGeneral") {
this.zzlIsShwo = true
this.zzlName = e.name
- } else if (e.code == "B2") {
+ } else if (e.code == "shipmentDirectivesStowage") {
this.pztIsShow = true
this.pztName = e.name
- } else if (e.code == "B3") {
+ } else if (e.code == "shipmentDirectivesSub") {
this.fzlIsShow = true
this.fzlName = e.name
- } else if (e.code == "B4") {
+ } else if (e.code == "shipmentDirectivesSubGroup") {
this.bzzIsShow = true
this.bzzName = e.name
- } else if (e.code == "B5") {
+ } else if (e.code == "shipmentDirectivesSite") {
this.cwtIsShow = true
this.cwtName = e.name
} else if (e.code == "B6") {
@@ -1447,7 +1447,7 @@
// 获取卸船进度数据
getJobProgress() {
uni.request({
- url: `${this.$local}/api/instruction/statistics/JobProgress?filterType=${this.filterType}&target=N_L&vvyId=${this.shipInfo.vvyId}`,
+ url: `${this.$local}/api/instruction/statistics/JobProgress?filterType=${this.filterType}&target=N_L&vvyId=${this.shipInfo.vvyId}&size=5000¤t=1`,
header: {
'Content-Type': 'application/x-www-form-urlencoded', //自定义请求头信息
'Authorization': `Bearer ${this.loginObj.access_token}`
diff --git a/pages/index/index.vue b/pages/index/index.vue
index cda4502..3e192ad 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -9,7 +9,7 @@
placeholder="请选择贸易类型" v-model="tradeName" @select="tradeSelect"> -->
+ @input="shipInput" clears @clearValue="clearValue">
@@ -33,6 +33,7 @@
{{item.vvyStatusName}}
{{item.vvyStatusName}}
{{item.vvyStatusName}}
+ {{item.vvyStatusName}}
@@ -122,10 +123,10 @@
value: "1",
name: "外贸"
},
- {
- value: "2",
- name: "内贸"
- }
+ // {
+ // value: "2",
+ // name: "内贸"
+ // }
],
vvyShip: "",
vvyId: "",
@@ -143,21 +144,8 @@
portObj: {},
isMore: false,
- dcList:[
- {
- value: "0",
- name: "未开始"
- },
- {
- value: "1",
- name: "作业中"
- },
- {
- value: "2",
- name: "已完成"
- },
- ],
- vvyStatus:'未开始',
+ dcList:[],
+ vvyStatus:'',
operationDate:'',
startDate:'',
endDate:'',
@@ -189,7 +177,7 @@
},
mounted() {
downloadPackage()
- this.initData()
+ this.getDcList()
},
methods: {
// 切换贸易类型
@@ -221,6 +209,15 @@
}
this.getShip()
},
+ // 清空选择值
+ clearValue() {
+ this.shipValue = ""
+ this.vvyId = ""
+ this.vvyShip = ""
+ this.shipId = ""
+ this.shipName = ""
+ this.getShip()
+ },
// 获取船舶
getShip() {
if (this.tradeName == '外贸') {
@@ -376,6 +373,28 @@
var d = dd.getDate() < 10 ? "0" + dd.getDate() : dd.getDate();
return y + "-" + m + "-" + d + ' 00:00:00';
},
+ // 获取计划状态基础数据
+ getDcList() {
+ uni.request({
+ url: this.$local + '/api/miniapp/typeRef/domain/VVY_STATUS',
+ header: {
+ 'Content-Type': 'application/json', //自定义请求头信息
+ 'Authorization': `Bearer ${this.loginObj.access_token}`
+ },
+ method: 'GET', //请求方式,必须为大写
+ success: (res) => {
+ if (res.data.status == 200) {
+ res.data.data.forEach(item => {
+ this.dcList.push({
+ value:item.ptrCode,
+ name:item.ptrDesc
+ })
+ })
+ this.initData()
+ }
+ }
+ })
+ }
}
};
@@ -508,18 +527,22 @@
}
.dfs {
- color: #0067CF;
- background: #F1F8FF;
+ color: white;
+ background: #d9001b;
}
.zyz {
- color: #04B578;
- background: #E8FFF7;
+ color: white;
+ background: #1181fb;
}
.ywc {
- color: #666666;
- background: #F7F7F7;
+ color: white;
+ background: #70b603;
+ }
+ .yks {
+ color: white;
+ background: #f59a23;
}
}
}
diff --git a/pages/index/instruct.vue b/pages/index/instruct.vue
index 88bf35f..0b4fdc6 100644
--- a/pages/index/instruct.vue
+++ b/pages/index/instruct.vue
@@ -8,7 +8,7 @@
-
+
@@ -21,16 +21,20 @@
刷新
-
+
-
+
+ 只看:
+
+
品牌
车型
@@ -43,13 +47,14 @@
指令发送进度
装船进度
- 按提单
- 按品牌
- 按港口
+ 提单
+ 品牌
+ 港口
+ 舱层
-
+
总指令进度
{{zTjList.totalSentCount}}/{{zTjList.totalSum}}
@@ -66,38 +71,51 @@
-
-
-
- {{item.titleBar}}
- {{item.totalSentCount}}/{{item.zsum}}
-
-
-
- 已发送{{item.totalSentCount}}
- (暂停{{item.totalPausedSentCount}})
- 未发{{item.totalNotSentCount}}
-
-
-
-
-
-
+
+
+ {{item.titleBar}}
+ {{item.totalSentCount}}/{{item.zsum}}
+
+
+
+ 已发送{{item.totalSentCount}}
+ (暂停{{item.totalPausedSentCount}})
+ 未发{{item.totalNotSentCount}}
+
+
+
+
+
-
- {{ item.label }}
+
+ 装船总进度
+ 总数:{{totalProgress.progress}}/{{ totalProgress.totalProgress }}
+
+ 车辆:{{totalProgress.carProgress}}/{{ totalProgress.carTotalProgress }}
+
+ 备件:{{totalProgress.partProgress}}/{{ totalProgress.partTotalProgress }}
+
+
+
+ {{ item.label }}{{filterType == 'CABIN_LEVEL_TYPE' ? '层' : ''}}
- 已装船:{{ item.progress }}
- 待装船:{{ item.totalProgress - item.progress }}
+ 待装车辆:{{ item.carWaitCount }}
+ 待装备件:{{ item.partWaitCount }}
-
+
@@ -120,7 +138,7 @@
船舱层数:{{item.shipDeck}}层{{item.cabinNo}}舱
-
+
+ 装船进度:{{item.loadNum}} / {{item.loadTotalNum}}
+
+ {{item.goodsClassifyName}}
+ {{item.goodsClassifyName}}
- {{item.totalPlanStatusDesc}}
-
-
- {{item.totalPlanStatusDesc}}
-
-
- {{item.totalPlanStatusDesc}}
+ v-if="item.jobStatus == 0">
+ {{item.jobStatusName}}
- {{item.totalPlanStatusDesc}}
+ v-if="item.jobStatus == 1">
+ {{item.jobStatusName}}
+
+
+ {{item.jobStatusName}}
+
+
+ {{item.jobStatusName}}
+
-
+
+
+ 中转港:
+ {{ item.transitPotName }}
+
+ 品牌:
+ {{item.brdName}}
+
+
+
+
港口:
{{item.potName}}
-
- 发送人:
- {{item.totalSendUser}}
-
+
+ 场位:
+ {{item.yardPos}}
+
+
+
+
-
+
+
+
+ 品牌
+ 场位
+ 待装数量
+
+
+
+ {{item1.brdName}}
+ {{item1.yardPos}}
+ {{item1.readyLoadNum}}
+
+
+
+
+
+
-
+
@@ -211,6 +271,7 @@
+
@@ -226,9 +287,13 @@
-
+
+ 只看:
+
+
发送状态
品牌
@@ -242,13 +307,14 @@
指令发送进度
装船进度
- 按提单
- 按品牌
- 按港口
+ 提单
+ 品牌
+ 港口
+ 舱层
-
+
分指令进度
{{zTjList.branchSentCount}}/{{zTjList.branchSum}}
@@ -265,57 +331,68 @@
-
-
-
- {{item.titleBar}}
- {{item.branchSentCount}}/{{item.fsum}}
-
-
-
- 已发送{{item.branchSentCount}}
- (暂停{{item.branchPausedSentCount}})
- 未发{{item.branchNotSentCount}}
-
-
-
-
-
-
+
+
+ {{item.titleBar}}
+ {{item.branchSentCount}}/{{item.fsum}}
+
+
+
+ 已发送{{item.branchSentCount}}
+ (暂停{{item.branchPausedSentCount}})
+ 未发{{item.branchNotSentCount}}
+
+
+
+
+
+
+ 装船总进度
+ 总数:{{totalProgress.progress}}/{{ totalProgress.totalProgress }}
+
+ 车辆:{{totalProgress.carProgress}}/{{ totalProgress.carTotalProgress }}
+
+ 备件:{{totalProgress.partProgress}}/{{ totalProgress.partTotalProgress }}
+
+
- {{ item.label }}
+ {{ item.label }}{{filterType == 'CABIN_LEVEL_TYPE' ? '层' : ''}}
- 已装船:{{ item.progress }}
- 待装船:{{ item.totalProgress - item.progress }}
+ 待装车辆:{{ item.carWaitCount }}
+ 待装备件:{{ item.partWaitCount }}
-
-
+
-
-
+
-
+
-
- 装船进度
-
-
-
- {{itemSum(item.loadingProgress.workProgress, item.loadingProgress.totalProgress)}}%
-
+ 装船进度:{{item.loadNum}} / {{item.loadTotalNum}}
+
+ {{item.goodsClassifyName}}
+ {{item.goodsClassifyName}}
+
- {{item.branchPlanStatusDesc}}
+ v-if="item.jobStatus == 0">
+ {{item.jobStatusName}}
- {{item.branchPlanStatusDesc}}
+ v-if="item.jobStatus == 1">
+ {{item.jobStatusName}}
+
+
+ {{item.jobStatusName}}
- {{item.branchPlanStatusDesc}}
+ v-if="item.jobStatus == 3">
+ {{item.jobStatusName}}
-
- {{item.branchPlanStatusDesc}}
-
-
{{item.branchPlanStatusDesc}}
-
+ -->
+
- 数量:
- {{item.totalCount}}
-
+ 中转港:
+ {{ item.transitPotName }}
+
+
+ 品牌:
+ {{item.brdName}}
+
+
+
港口:
{{item.potName}}
-
- 分指令发送人:
- {{item.branchSendUser}}
-
-
- 负责人:
- {{item.responsiblePerson}}
-
-
- 发送时间:
- {{item.totalSendTime}}
-
+
+ 场位:
+ {{item.yardPos}}
+
+
-
-
- 指令下发
-
-
- 重新发送
-
-
- 暂停
-
-
-
- 展开
-
-
- 收起
-
+
+
+
+
+ 品牌
+ 场位
+ 待装数量
+
+
+
+ {{item1.brdName}}
+ {{item1.yardPos}}
+ {{item1.readyLoadNum}}
+
+
+
+
+
+
+
+
+
@@ -434,12 +508,14 @@
+
+
+
-
-
+
@@ -450,9 +526,13 @@
-
+
+ 只看:
+
+
品牌
车型
@@ -464,26 +544,41 @@
装船进度
- 按提单
- 按品牌
- 按港口
+ 提单
+ 品牌
+ 港口
+ 舱层
-
+
+
+ 装船总进度
+ 总数:{{totalProgress.progress}}/{{ totalProgress.totalProgress }}
+
+ 车辆:{{totalProgress.carProgress}}/{{ totalProgress.carTotalProgress }}
+
+ 备件:{{totalProgress.partProgress}}/{{ totalProgress.partTotalProgress }}
+
+
- {{ item.label }}
+ {{ item.label }}{{filterType == 'CABIN_LEVEL_TYPE' ? '层' : ''}}
- 已装船:{{ item.progress }}
- 待装船:{{ item.totalProgress - item.progress }}
+ 待装车辆:{{ item.carWaitCount }}
+ 待装备件:{{ item.partWaitCount }}
-
@@ -492,7 +587,7 @@
-
+
@@ -503,65 +598,79 @@
船舱层数:{{item.shipDeck}}层{{item.cabinNo}}舱
-
- 装船进度
-
-
-
- {{itemSum(item.loadingProgress.workProgress, item.loadingProgress.totalProgress)}}%
+ 装船进度:{{item.loadNum}} / {{item.loadTotalNum}}
+
+ {{item.goodsClassifyName}}
+ {{item.goodsClassifyName}}
- {{item.branchPlanStatusDesc}}
+ v-if="item.jobStatus == 0">
+ {{item.jobStatusName}}
+
+
+ {{item.jobStatusName}}
+
+
+ {{item.jobStatusName}}
- {{item.branchPlanStatusDesc}}
-
-
- {{item.branchPlanStatusDesc}}
-
-
- {{item.branchPlanStatusDesc}}
+ v-else-if="item.jobStatus == 3">
+ {{item.jobStatusName}}
+
- 数量:
- {{item.totalCount}}
+ 中转港:
+ {{ item.transitPotName }}
+
+ 品牌:
+ {{item.brdName}}
+
+
+
港口:
{{item.potName}}
-
- 负责人:
- {{item.responsiblePerson}}
-
-
- 发送时间:
- {{item.totalSendTime}}
-
-
-
-
- 分指令发送人:
- {{item.branchSendUser}}
+
+ 场位:
+ {{item.yardPos}}
+
-
+
+
+
+ 品牌
+ 场位
+ 待装数量
+
+
+
+ {{item1.brdName}}
+ {{item1.yardPos}}
+ {{item1.readyLoadNum}}
+
+
+
+
+
+
@@ -743,7 +852,7 @@
-
@@ -763,7 +872,7 @@
- {{item.pyaAreaCode}}({{item.totalLaneAmout}}/{{item.totalSeatAmout}})
+ {{item.pyaAreaCode}}({{item.useSeatAmount}}/{{item.totalSeatAmount}})
车道
@@ -794,18 +903,17 @@
辆
-->
-
+
-
-
-
+
+
+
{{v.brdName}}
-
- {{v.bvmName}}
+ {{v.bvmName}}-{{v.potName}}
- 共{{v.carAmout}}辆({{v.carDetailList.length}}车道,{{v.carAmout}}车位)
+ 共{{v.amount}}辆({{v.lane}}车道)
-
-
+
+
@@ -928,6 +1036,89 @@
+
+
+
+
+
+
+
+
+
+
+ 船舱层数:{{item.shipDeck}}层{{item.cabinNo}}舱
+
+
+ 装船进度:{{item.loadNum}} / {{item.loadTotalNum}}
+
+ {{item.goodsClassifyName}}
+ {{item.goodsClassifyName}}
+
+
+ {{item.jobStatusName}}
+
+
+ {{item.jobStatusName}}
+
+
+ {{item.jobStatusName}}
+
+
+ {{item.jobStatusName}}
+
+
+
+
+
+
+ 中转港:
+ {{ item.transitPotName }}
+
+
+ 品牌:
+ {{item.brdName}}
+
+
+
+
+ 港口:
+ {{item.potName}}
+
+
+
+
+ 场位:
+ {{item.yardPos}}
+
+
+
+
+
+
+
+
+ 品牌
+ 场位
+ 待装数量
+
+
+
+ {{item1.brdName}}
+ {{item1.yardPos}}
+ {{item1.readyLoadNum}}
+
+
+
+
+
+
+
+
@@ -1049,7 +1240,22 @@
jobProgressList:[],
jobActive:null,
fzlFlag:true,
- filterType:'MNF_BL_TYPE'
+ filterType:'MNF_BL_TYPE',
+ hobby: [{
+ text: '车辆',
+ value: 1
+ }, {
+ text: '备件',
+ value: 2
+ }],
+ checkbox:[1,2],
+ zzlReaDots:false,
+ fzlReaDots:false,
+ goodsClassifySelected:null,
+ totalProgress:{},
+ ZLFlag: false, // 判断指令有没有数据,显示数据统计
+ InputmnfBl:'',
+ bzzPOPList:[]
}
},
computed: {
@@ -1068,40 +1274,50 @@
this.qxList = uni.getStorageSync('qxList')
this.qxList.forEach(v => {
if (v.code == "shipmentDirectives") {
- v.operates.forEach(e => {
- if (e.code == "B1") {
+ v.subMenus.forEach(e => {
+ if (e.code == "shipmentDirectivesGeneral") {
this.zzlIsShwo = true
this.zzlName = e.name
- } else if (e.code == "B2") {
+ } else if (e.code == "shipmentDirectivesStowage") {
this.pztIsShow = true
this.pztName = e.name
- } else if (e.code == "B3") {
+ } else if (e.code == "shipmentDirectivesSub") {
this.fzlIsShow = true
this.fzlName = e.name
- } else if (e.code == "B4") {
+ } else if (e.code == "shipmentDirectivesSubGroup") {
this.bzzIsShow = true
this.bzzName = e.name
- } else if (e.code == "B5") {
+ } else if (e.code == "shipmentDirectivesSite") {
this.cwtIsShow = true
this.cwtName = e.name
}
})
}
})
- if (this.tabsValue == 0) {
- this.loadSumOrder() // 总指令:分页查询
- this.askDisabled = false
- }
+ this.getQueryCheckRecord(0) // 获取勾选
+ // if (this.tabsValue == 0) {
+ // this.loadSumOrder() // 总指令:分页查询
+ // this.askDisabled = false
+ // }
this.getPot() // 获取港口
this.getBrand() // 获取品牌
this.getBvm() // 获取车型
this.getRoleId() // 获取角色ID
// this.initAsk() // 获取装船要求
- this.getStatistics() // 获取统计数据
+ // this.getStatistics() // 获取统计数据
this.getPotList()
this.getImgInfo()
this.getGoodsInfo()
this.getJobProgress() //获取卸船进度数据
+ this.getCheckReaDots() //获取红点
+ this.getTotalProgress() //获取装船总进度
+ },
+ mounted () {
+ if (this.tabsValue == 0) {
+ this.loadSumOrder() // 总指令:分页查询
+ this.askDisabled = false
+ }
+ this.getStatistics() // 获取统计数据
},
components: {
HeadView,
@@ -1111,6 +1327,7 @@
methods: {
// 点击tabs
changeTabs(e) {
+ this.getQueryCheckRecord(0) // 获取勾选
this.mnfBl = ''
this.brdId = ''
this.brdName = ''
@@ -1126,18 +1343,26 @@
this.current = 1
this.zTjType = true
this.activeIndex = 0
+ this.jobProgressList = []
if (e.value == 1 || e.value == 2) {
this.loadOtherOrder()
this.askDisabled = true
+ this.getJobProgress() //获取卸船进度数据
} else if (e.value == 0) {
this.loadSumOrder()
this.askDisabled = false
+ this.getJobProgress() //获取卸船进度数据
} else if (e.value == 3) {
this.getPotList()
this.getImgInfo()
this.getGoodsInfo()
+ this.askDisabled = true
} else if (e.value == 4) {
this.getDc()
+ this.askDisabled = true
+ }
+ if(e.value == 0 || e.value == 1) {
+ this.getStatistics() // 获取统计列表
}
this.directorList = []
this.getRoleId()
@@ -1153,6 +1378,7 @@
} else if (this.tabsValue == 0) {
this.loadSumOrder()
}
+ this.getCheckReaDots()
},
// 点击搜索
search() {
@@ -1192,6 +1418,8 @@
this.sendText = ""
this.sendValue = ""
this.jobActive = null
+ this.mnfBl = ''
+ this.shipDeck = ''
},
// 筛选确认
confirm() {
@@ -1249,19 +1477,26 @@
} else {
target = "N_L"
}
+ let tabFlag = false
+ if(this.tabsValue == 1) {
+ tabFlag = true
+ }
uni.request({
- url: `${this.$local}/api/instruction/statistics?vvyIds=${this.shipInfo.vvyId}&target=${target}`,
+ url: `${this.$local}/api/instruction/statistics?vvyIds=${this.shipInfo.vvyId}&target=${target}&tabFlag=${tabFlag}`,
header: {
'Content-Type': 'application/json', //自定义请求头信息
'Authorization': `Bearer ${this.loginObj.access_token}`
},
method: 'GET', //请求方式,必须为大写
success: (res) => {
+ this.ZLFlag = res.data.data.length > 0 ? true : false
+ if(!this.ZLFlag) return
+ this.zTjList = {}
this.zTjList = res.data.data[0]
this.zTjList["totalSum"] = this.zTjList.totalSentCount + this.zTjList.totalNotSentCount
this.zTjList["branchSum"] = this.zTjList.branchSentCount + this.zTjList
.branchNotSentCount
- this.zTjList.instructionStatisticsList.forEach(v => {
+ this.zTjList?.instructionStatisticsList.forEach(v => {
let zsum = v.totalSentCount + v.totalNotSentCount
this.$set(v, "zsum", zsum)
let fsum = v.branchSentCount + v.branchNotSentCount
@@ -1273,8 +1508,10 @@
},
// 获取总指令列表
loadSumOrder() {
+ if(this.goodsClassifySelected == null) this.goodsClassifySelected = 0
uni.request({
- url: `${this.$local}/api/shipInstructions/page?vvyId=${this.shipInfo.vvyId}&brdId=${this.brdId}&mnfBl=${this.mnfBl}&potId=${this.potId}&bvmId=${this.bvmId}&shipDeck=${this.shipDeck}&size=${this.pageSize}¤t=${this.current}`,
+ // url: `${this.$local}/api/shipInstructions/page?vvyId=${this.shipInfo.vvyId}&brdId=${this.brdId}&mnfBl=${this.mnfBl}&potId=${this.potId}&bvmId=${this.bvmId}&shipDeck=${this.shipDeck}&size=${this.pageSize}¤t=${this.current}`,
+ url: `${this.$local}/api/loadShipCommand/queryCommandCardForTotal?vvyId=${this.shipInfo.vvyId}&brdId=${this.brdId}&mnfBl=${this.mnfBl}&potId=${this.potId}&bvmId=${this.bvmId}&shipDeck=${this.shipDeck}&size=${this.pageSize}¤t=${this.current}&goodsClassifySelected=${this.goodsClassifySelected}`,
header: {
'Content-Type': 'application/json', //自定义请求头信息
'Authorization': `Bearer ${this.loginObj.access_token}`
@@ -1292,7 +1529,7 @@
// if (v.branchPlanStatus == 0) {
this.zzlLwpIdList.push(v.lwpId)
// }
- this.getBottomInfo(v.lwpId, index)
+ // this.getBottomInfo(v.lwpId, index)
})
}
})
@@ -1304,8 +1541,10 @@
teamFlag = true
this.sendValue = 1
}
+ if(this.goodsClassifySelected == null) this.goodsClassifySelected = 0
uni.request({
- url: `${this.$local}/api/shipInstructions/pageCommandForBranch?vvyId=${this.shipInfo.vvyId}&brdId=${this.brdId}&mnfBl=${this.mnfBl}&potId=${this.potId}&bvmId=${this.bvmId}&sendStatus=${this.sendValue}&shipDeck=${this.shipDeck}&teamFlag=${teamFlag}&size=${this.pageSize}¤t=${this.current}`,
+ // url: `${this.$local}/api/shipInstructions/pageCommandForBranch?vvyId=${this.shipInfo.vvyId}&brdId=${this.brdId}&mnfBl=${this.mnfBl}&potId=${this.potId}&bvmId=${this.bvmId}&sendStatus=${this.sendValue}&shipDeck=${this.shipDeck}&teamFlag=${teamFlag}&size=${this.pageSize}¤t=${this.current}`,
+ url: `${this.$local}/api/loadShipCommand/queryCommandCardForBranch?vvyId=${this.shipInfo.vvyId}&brdId=${this.brdId}&mnfBl=${this.mnfBl}&potId=${this.potId}&bvmId=${this.bvmId}&sendStatus=${this.sendValue}&shipDeck=${this.shipDeck}&teamFlag=${teamFlag}&size=${this.pageSize}¤t=${this.current}&goodsClassifySelected=${this.goodsClassifySelected}`,
header: {
'Content-Type': 'application/json', //自定义请求头信息
'Authorization': `Bearer ${this.loginObj.access_token}`
@@ -1320,7 +1559,8 @@
this.itemList.forEach((v, index) => {
v.image = '../../static/images/theme/car1.png'
v.index = index
- this.getBottomInfo(v.lwpId, index)
+ v.flag = false
+ // this.getBottomInfo(v.lwpId, index)
})
console.log(this.itemList)
}
@@ -1358,7 +1598,8 @@
},
// 点击指令下发
distribute(type, a, item) {
- if(a == 'solo' && this.checkList.length == 0) {
+ let flag = item?.lwpId == undefined ? true : false
+ if(a == 'solo' && this.checkList.length == 0 && flag) {
uni.showModal({
title: '提示',
showCancel: false,
@@ -1371,6 +1612,8 @@
this.$refs.popup.open(type)
if (a == 'again' || a == 'solo') {
this.fzzRow = item
+ this.checkList = []
+ this.checkList.push(item.lwpId)
} else if (a == 'all') {
this.fzzRow = ""
}
@@ -1474,6 +1717,7 @@
this.delValue = true
this.loadSumOrder()
this.getStatistics()
+ this.getCheckReaDots()
this.checkList = []
uni.showToast({
title: `总指令下发成功`,
@@ -1505,6 +1749,7 @@
this.delValue = true
this.loadSumOrder()
this.getStatistics()
+ this.getCheckReaDots()
this.checkList = []
uni.showToast({
title: `分指令下发成功`,
@@ -1547,6 +1792,7 @@
this.loadOtherOrder()
this.getStatistics()
this.checkList = []
+ this.getCheckReaDots()
uni.showToast({
title: `重新发送指令成功`,
icon: 'success',
@@ -1682,7 +1928,8 @@
// 获取品牌
getBrand() {
uni.request({
- url: `${this.$local}/api/miniapp/queryBrand`,
+ // url: `${this.$local}/api/miniapp/queryBrand`,
+ url: `${this.$local}/api/loadShipCommand/queryBrand?vvyId=${this.shipInfo.vvyId}`,
header: {
'Content-Type': 'application/json', //自定义请求头信息
'Authorization': `Bearer ${this.loginObj.access_token}`
@@ -1690,7 +1937,13 @@
method: 'GET', //请求方式,必须为大写
success: (res) => {
if (res.data.status == "200") {
- this.brandList = res.data.data
+ this.brandList = []
+ res.data.data.forEach(item => {
+ this.brandList.push({
+ brdName:item.name,
+ brdId:item.id
+ })
+ })
}
}
})
@@ -1704,7 +1957,8 @@
// 获取港口
getPot() {
uni.request({
- url: `${this.$local}/api/miniapp/port`,
+ // url: `${this.$local}/api/miniapp/port`,
+ url: `${this.$local}/api/loadShipCommand/queryPort?vvyId=${this.shipInfo.vvyId}`,
header: {
'Content-Type': 'application/json', //自定义请求头信息
'Authorization': `Bearer ${this.loginObj.access_token}`
@@ -1712,7 +1966,13 @@
method: 'GET', //请求方式,必须为大写
success: (res) => {
if (res.data.status == "200") {
- this.potList = res.data.data
+ this.potList = []
+ res.data.data.forEach(item => {
+ this.potList.push({
+ potCnname:item.name,
+ potId:item.id
+ })
+ })
}
}
})
@@ -1726,7 +1986,8 @@
// 获取车型
getBvm() {
uni.request({
- url: `${this.$local}/api/miniapp/getVehicleModel`,
+ // url: `${this.$local}/api/miniapp/getVehicleModel`,
+ url: `${this.$local}/api/loadShipCommand/queryVehicleType?vvyId=${this.shipInfo.vvyId}`,
header: {
'Content-Type': 'application/json', //自定义请求头信息
'Authorization': `Bearer ${this.loginObj.access_token}`
@@ -1734,7 +1995,13 @@
method: 'GET', //请求方式,必须为大写
success: (res) => {
if (res.data.status == "200") {
- this.bvmList = res.data.data
+ this.bvmList = []
+ res.data.data.forEach(item => {
+ this.bvmList.push({
+ name:item.name,
+ id:item.id
+ })
+ })
}
}
})
@@ -1745,20 +2012,47 @@
this.bvmId = e.id
this.bvmName = e.name
},
- toDetails(id) {
+ // toDetails(id) {
+ // let obj = {
+ // id: id,
+ // tradeName: "W",
+ // shipInfo: this.shipInfo
+ // }
+ // const params = encodeURIComponent(JSON.stringify(obj));
+ // uni.navigateTo({
+ // url: '/pages/index/instructDetails?params=' + params
+ // })
+ // },
+ // 跳转提单号页面
+ toLading(item) {
let obj = {
- id: id,
+ id: item.lwpId,
+ CW:`${item.shipDeck}层${item.cabinNo}舱`,
tradeName: "W",
shipInfo: this.shipInfo
}
const params = encodeURIComponent(JSON.stringify(obj));
uni.navigateTo({
- url: '/pages/index/instructDetails?params=' + params
+ url: '/pages/index/ladingNumber?params=' + params
})
},
// 分指令多选
- checkChange(e) {
- this.checkList = e.detail.value
+ // checkChange(e) {
+ // console.log(e.detail);
+ // this.checkList = e.detail.value
+ // },
+ // 点击分指令卡片
+ clickItem(item) {
+ this.checkList = []
+ let flags = !item.flag
+ this.$set(item, "flag", flags)
+ // console.log(item.flag);
+ this.itemList.forEach(item => {
+ if(item.flag) {
+ this.checkList.push(item.lwpId)
+ }
+ })
+ this.$forceUpdate()
},
// 配载图相关
// 获取配载图港口及对应颜色
@@ -1929,7 +2223,8 @@
// 获取右侧区域数据
getQy() {
uni.request({
- url: `${this.$local}/api/yardGoods/monitor/region/statistics?vvyId=${this.shipInfo.vvyId}&pymId=${this.dcId}&displayFlag=1&brdId=${this.brdId}&bvmId=${this.bvmId}&potId=${this.potId}&mnfBl=${this.mnfBl}&size=1000`,
+ // url: `${this.$local}/api/yardGoods/monitor/region/statistics?vvyId=${this.shipInfo.vvyId}&pymId=${this.dcId}&displayFlag=1&brdId=${this.brdId}&bvmId=${this.bvmId}&potId=${this.potId}&mnfBl=${this.mnfBl}&size=1000`,
+ url: `${this.$local}/api/yardGoods/monitor/v2/region/list?vvyId=${this.shipInfo.vvyId}&pymId=${this.dcId}&displayFlag=1&brdId=${this.brdId}&bvmId=${this.bvmId}&potId=${this.potId}&mnfBl=${this.mnfBl}&size=1000`,
header: {
'Content-Type': 'application/json', //自定义请求头信息
'Authorization': `Bearer ${this.loginObj.access_token}`
@@ -1938,32 +2233,34 @@
success: (res) => {
if (res.statusCode == 200) {
console.log(res)
- this.qyList = res.data.data.records
- this.qyList.forEach(v => {
- if (v.remainSeatAmout == null) {
- this.$set(v, "remainSeatAmout", 0)
- }
- if (v.stopGoodsAmout == null) {
- this.$set(v, "stopGoodsAmout", 0)
- }
- if (v.totalLaneAmout == null) {
- this.$set(v, "totalLaneAmout", 0)
- }
- if (v.totalSeatAmout == null) {
- this.$set(v, "totalSeatAmout", 0)
- }
- if (v.unparkGoodsAmout == null) {
- this.$set(v, "unparkGoodsAmout", 0)
- }
- if (v.useSeatAmout == null) {
- this.$set(v, "useSeatAmout", 0)
- }
- if (v.carStatisticsList != null) {
- v.carStatisticsList.forEach(e => {
- this.$set(e, "isShow", false)
- })
- }
- })
+ // this.qyList = res.data.data.records
+ // this.qyList.forEach(v => {
+ // if (v.remainSeatAmout == null) {
+ // this.$set(v, "remainSeatAmout", 0)
+ // }
+ // if (v.stopGoodsAmout == null) {
+ // this.$set(v, "stopGoodsAmout", 0)
+ // }
+ // if (v.totalLaneAmout == null) {
+ // this.$set(v, "totalLaneAmout", 0)
+ // }
+ // if (v.totalSeatAmout == null) {
+ // this.$set(v, "totalSeatAmout", 0)
+ // }
+ // if (v.unparkGoodsAmout == null) {
+ // this.$set(v, "unparkGoodsAmout", 0)
+ // }
+ // if (v.useSeatAmout == null) {
+ // this.$set(v, "useSeatAmout", 0)
+ // }
+ // if (v.carStatisticsList != null) {
+ // v.carStatisticsList.forEach(e => {
+ // this.$set(e, "isShow", false)
+ // })
+ // }
+ // })
+ this.qyList = res.data.data
+
console.log(this.qyList)
}
}
@@ -1982,10 +2279,16 @@
modifyPlaceTabs(data) {
this.isCwnum = data;
},
- // 获取卸船进度数据
+ // 获取装船进度数据
getJobProgress() {
+ let tabFlag = null
+ if(this.tabsValue == 1) {
+ tabFlag = 1
+ } else if(this.tabsValue == 2) {
+ tabFlag = 2
+ }
uni.request({
- url: `${this.$local}/api/instruction/statistics/JobProgress?filterType=${this.filterType}&target=W_L&vvyId=${this.shipInfo.vvyId}`,
+ url: `${this.$local}/api/instruction/statistics/JobProgress?filterType=${this.filterType}&target=W_L&vvyId=${this.shipInfo.vvyId}&size=5000¤t=1&tabFlag=${tabFlag}`,
header: {
'Content-Type': 'application/x-www-form-urlencoded', //自定义请求头信息
'Authorization': `Bearer ${this.loginObj.access_token}`
@@ -1996,7 +2299,7 @@
}
})
},
- //点击卸船计划
+ //点击装船计划
jobProgress(item,index,type) {
this.jobActive = index
if(this.filterType == 'BRD_TYPE') {
@@ -2007,6 +2310,8 @@
this.potId = item.id
} else if(this.filterType == 'MNF_BL_TYPE') {
this.mnfBl = item.id
+ } else if(this.filterType == 'CABIN_LEVEL_TYPE') {
+ this.shipDeck = item.id
}
this.itemList = []
if(type == 'zzl') {
@@ -2024,6 +2329,8 @@
this.filterType = 'MNF_BL_TYPE'
} else if(type == 'gk') {
this.filterType = 'POT_TYPE'
+ } else if(type == 'cc') {
+ this.filterType = 'CABIN_LEVEL_TYPE'
}
this.getJobProgress()
},
@@ -2034,12 +2341,113 @@
this.mnfBl = e
this.confirm()
},1000)
+ },
+ // 车辆备件选择框
+ changeValue(e) {
+ this.current = 1
+ this.itemList = []
+ if(e.detail.value.length == 2) {
+ this.goodsClassifySelected = 0
+ } else if(e.detail.value.length == 1) {
+ this.goodsClassifySelected = e.detail.value[0]
+ }
+ let checkRecordReq = {
+ businessType:'W_L',
+ goodsClassifySelected:this.goodsClassifySelected,
+ tabFlag:0
+ }
+ uni.request({ //修改勾选状态
+ url: `${this.$local}/api/loadShipCommand/editCheckRecord`,
+ data: checkRecordReq,
+ header: {
+ 'Content-Type': 'application/json', //自定义请求头信息
+ 'Authorization': `Bearer ${this.loginObj.access_token}`
+ },
+ method: 'PUT', //请求方式,必须为大写
+ success: (res) => {
+ if(res.data.data) {
+ if(this.tabsValue == 0) {
+ this.loadSumOrder()
+ } else if(this.tabsValue == 1 || this.tabsValue == 2) {
+ this.loadOtherOrder()
+ }
+ }
+ }
+ })
+ },
+ // 总指令分指令是否有红点
+ getCheckReaDots() {
+ uni.request({
+ url: `${this.$local}/api/loadShipCommand/checkReaDots/${this.shipInfo.vvyId}/total`,
+ header: {
+ 'Content-Type': 'application/x-www-form-urlencoded', //自定义请求头信息
+ 'Authorization': `Bearer ${this.loginObj.access_token}`
+ },
+ method: 'GET', //请求方式,必须为大写
+ success: (res) => {
+ this.zzlReaDots = res.data.data
+ }
+ })
+ uni.request({
+ url: `${this.$local}/api/loadShipCommand/checkReaDots/${this.shipInfo.vvyId}/branch`,
+ header: {
+ 'Content-Type': 'application/x-www-form-urlencoded', //自定义请求头信息
+ 'Authorization': `Bearer ${this.loginObj.access_token}`
+ },
+ method: 'GET', //请求方式,必须为大写
+ success: (res) => {
+ this.fzlReaDots = res.data.data
+ }
+ })
+ },
+ //查看当前账号勾选分类记录
+ getQueryCheckRecord(tab) {
+ uni.request({
+ url: `${this.$local}/api/loadShipCommand/queryCheckRecord?businessType=W_L&tabFlag=${tab}`,
+ header: {
+ 'Content-Type': 'application/x-www-form-urlencoded', //自定义请求头信息
+ 'Authorization': `Bearer ${this.loginObj.access_token}`
+ },
+ method: 'GET', //请求方式,必须为大写
+ success: (res) => {
+ this.goodsClassifySelected = res.data.data
+ if(res.data.data == null) this.goodsClassifySelected = 0
+ if(res.data.data == 0 || res.data.data == null) {
+ this.checkbox = [1,2]
+ } else if(res.data.data == 1) {
+ this.checkbox = [1]
+ } else if(res.data.data == 2) {
+ this.checkbox = [2]
+ }
+ }
+ })
+ },
+ // 获取装船总进度
+ getTotalProgress() {
+ uni.request({
+ url: `${this.$local}/api/instruction/statistics/totalProgress?target=W_L&vvyId=${this.shipInfo.vvyId}`,
+ header: {
+ 'Content-Type': 'application/x-www-form-urlencoded', //自定义请求头信息
+ 'Authorization': `Bearer ${this.loginObj.access_token}`
+ },
+ method: 'GET', //请求方式,必须为大写
+ success: (res) => {
+ this.totalProgress = res.data.data
+ }
+ })
+ },
+ // 班组长打开弹框
+ openPOP(item) {
+ console.log(item);
+ this.bzzPOPList = []
+ this.bzzPOPList.push(item)
+ this.$refs.bzzPOP.open()
}
}
};
-
\ No newline at end of file
diff --git a/pages/index/instructDetails.vue b/pages/index/instructDetails.vue
index a6f3118..8ac8276 100644
--- a/pages/index/instructDetails.vue
+++ b/pages/index/instructDetails.vue
@@ -159,6 +159,8 @@
+
@@ -262,6 +264,9 @@
// 内贸详情数据
objInfo: {},
+ //分页数据
+ total:20,
+ current:1
}
},
components: {
@@ -296,7 +301,7 @@
getTableInfo() {
let url = ""
if (this.objInfo.tradeName == 'W') {
- url = `${this.$local}/api/shipInstructions/goodsDetail/page?spsId=${this.objInfo.id}`
+ url = `${this.$local}/api/shipInstructions/goodsDetail/page?spsId=${this.objInfo.id}&size=10¤t=${this.current}`
} else if (this.objInfo.tradeName == 'N') {
url =
`${this.$local}/api/domestic/load/command/pageForCargoDetails?splId=${this.objInfo.xqInfo.splId}&dlcId=${this.objInfo.jcInfo.dlcId}`
@@ -310,6 +315,7 @@
method: 'GET', //请求方式,必须为大写
success: (res) => {
if (res.data.status == 200) {
+ this.total = res.data.data.total
this.tableList = res.data.data.records
console.log(this.tableList)
}
@@ -374,6 +380,11 @@
},
close() {
this.$refs.popup.close()
+ },
+ //切换分页
+ changePage(e) {
+ this.current = e.current
+ this.getTableInfo()
}
}
}
diff --git a/pages/index/ladingNumber.vue b/pages/index/ladingNumber.vue
new file mode 100644
index 0000000..f21b159
--- /dev/null
+++ b/pages/index/ladingNumber.vue
@@ -0,0 +1,111 @@
+<
+
+
+
+
+
+ 提单信息
+
+
+
+
+ 序号
+ 提单号
+ 品牌
+ 车型
+ 车型明细
+ 数量
+ 场位
+ 待装数量
+
+
+
+ {{index + 1}}
+ {{item.mnfBl}}
+ {{item.brdName}}
+ {{item.goodsTypeName}}
+ {{item.bvdName}}
+ {{item.amount}}
+ {{item.yardPos}}
+ {{item.readyLoadNum}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/shipWork/mixWork.vue b/pages/shipWork/mixWork.vue
index 06bb3aa..dfe40e5 100644
--- a/pages/shipWork/mixWork.vue
+++ b/pages/shipWork/mixWork.vue
@@ -56,33 +56,33 @@
-
+
- 航次:{{item[0].vvyName}}
+ 航次:{{item.vvyName}}
-
+
{{item2.pwcTypeName}}
开始时间:{{item2.workStartTime}}
结束时间:{{item2.workEndTime}}
-
+
待提交
-
+
待审核
-
+
审批中
-
+
审核通过
-
+
审核驳回
-
+
审核通过
@@ -242,8 +242,9 @@
})
}
},
- lookShift(item, index) {
- uni.setStorageSync('shiftRow', item);
+ lookShift(index) {
+ let arr = this.shiftInfo[index]
+ uni.setStorageSync('shiftRow', arr);
uni.navigateTo({
url: `/pages/shipWork/shiftDetails`
})
diff --git a/uni_modules/custom-tabs/components/custom-tabs/custom-tabs.vue b/uni_modules/custom-tabs/components/custom-tabs/custom-tabs.vue
index 3cdc3e1..d8fe48c 100644
--- a/uni_modules/custom-tabs/components/custom-tabs/custom-tabs.vue
+++ b/uni_modules/custom-tabs/components/custom-tabs/custom-tabs.vue
@@ -2,7 +2,7 @@
- {{item.label}}
+ {{item.label}}
@@ -51,6 +51,14 @@
},
activeLineStyle: { // 选中下划线的样式
type: [Object]
+ },
+ flag1:{
+ type: Boolean,
+ default: false
+ },
+ flag2:{
+ type: Boolean,
+ default: false
}
},
data() {
@@ -218,4 +226,8 @@
padding: 20rpx 0;
}
}
+ .txt::after {
+ content: "*";
+ color: red;
+ }
diff --git a/uni_modules/superwei-combox/components/superwei-combox/superwei-combox.vue b/uni_modules/superwei-combox/components/superwei-combox/superwei-combox.vue
index 2dc5b0b..052ca3b 100644
--- a/uni_modules/superwei-combox/components/superwei-combox/superwei-combox.vue
+++ b/uni_modules/superwei-combox/components/superwei-combox/superwei-combox.vue
@@ -7,6 +7,8 @@
+
+
@@ -50,7 +52,7 @@
*/
export default {
name: 'superweiCombox',
- emits: ['input', 'update:modelValue', 'select'],
+ emits: ['input', 'update:modelValue', 'select','clearValue'],
props: {
isAllowCreate: {
type: Boolean,
@@ -102,6 +104,10 @@
type: String,
default: '无匹配项'
},
+ clears:{
+ type: Boolean,
+ default: false
+ },
// #ifndef VUE3
value: {
type: [String, Number],
@@ -241,6 +247,10 @@
this.$emit('input', this.inputVal)
this.$emit('update:modelValue', this.inputVal)
})
+ },
+ clearValue() {
+ this.inputVal = ''
+ this.$emit('clearValue')
}
}
}
@@ -376,4 +386,4 @@
.superwei-combox__no-border {
border: none;
}
-
+