diff --git a/pages.json b/pages.json
index 14606d8..8de1360 100644
--- a/pages.json
+++ b/pages.json
@@ -96,6 +96,30 @@
"navigationBarTitleText": "水运运输数据报送"
}
},
+ {
+ "path": "pages/water/waterWay/list",
+ "style": {
+ "navigationBarTitleText": "水路(陆岛)数据"
+ }
+ },
+ {
+ "path": "pages/water/waterWay/form",
+ "style": {
+ "navigationBarTitleText": "水路(陆岛)数据报送"
+ }
+ },
+ {
+ "path": "pages/water/transportation/list",
+ "style": {
+ "navigationBarTitleText": "水运运输情况"
+ }
+ },
+ {
+ "path": "pages/water/transportation/form",
+ "style": {
+ "navigationBarTitleText": "水运运输情况报送"
+ }
+ },
{
"path": "pages/roadTransport/transportData/list",
"style": {
diff --git a/pages/highWay/runData/form.vue b/pages/highWay/runData/form.vue
index db2a931..c1b4d08 100644
--- a/pages/highWay/runData/form.vue
+++ b/pages/highWay/runData/form.vue
@@ -448,7 +448,7 @@
}
uni.showModal({
title: '提示',
- content: '确认保存当前报送数据吗?',
+ content: this.form.id == undefined ? '您确认提交该条报送数据?' : '您确认将该条数据进行修改?',
success: (res) => {
if (res.confirm) {
this.submitForm();
@@ -468,7 +468,14 @@
title: '报送提交成功',
icon: 'none',
success: () => {
- uni.navigateBack();
+ if(this.form.id == undefined) {
+ uni.redirectTo({
+ url: '/pages/highway/runData/list'
+ })
+ }
+ else {
+ uni.navigateBack();
+ }
}
})
}
diff --git a/pages/highWay/runData/list.vue b/pages/highWay/runData/list.vue
index 24856f3..66b33a0 100644
--- a/pages/highWay/runData/list.vue
+++ b/pages/highWay/runData/list.vue
@@ -103,7 +103,7 @@
this.query = {
statDateStart: this.timeRange.length > 0 ? this.timeRange[0] : '',
statDateEnd: this.timeRange.length > 0 ? this.timeRange[1] : '',
- statPeriod: this.index > -1 ? this.array[this.index].dictValue : ''
+ statPeriod: this.index != '' && this.index > -1 ? this.array[this.index].dictValue : ''
};
this.data = [];
this.current = 0;
diff --git a/pages/highWay/runStatusData/form.vue b/pages/highWay/runStatusData/form.vue
index 742829d..c3b5810 100644
--- a/pages/highWay/runStatusData/form.vue
+++ b/pages/highWay/runStatusData/form.vue
@@ -376,18 +376,30 @@
new Date()), {}, 'GET').then(res => {
this.highwayDataList = res.data;
this.form.highwayAccidentDetailDTOS.map(item => {
- item.highwayNameIndex = this.highwayDataList.findIndex(item2 => item2.stdName == item.highwayName);
+ let idx = this.highwayDataList.findIndex(item2 => item2.stdName == item.highwayName);
+ item.highwayNameIndex = idx > -1 ? idx : '';
})
this.form.highwayCongestionDetailDTOS.map(item => {
- item.highwayNameIndex = this.highwayDataList.findIndex(item2 => item2.stdName == item.highwayName);
+ let idx = this.highwayDataList.findIndex(item2 => item2.stdName == item.highwayName);
+ item.highwayNameIndex = idx > -1 ? idx : '';
})
})
},
//高速公路切换选择
- changeHighway(e, key, index) {
- this.form[key][index].highwayNameIndex = e.detail.value;
- this.form[key][index].highwayName = this.highwayDataList[e.detail.value].stdName;
- console.log(this.form)
+ changeHighway(e, key, index) {
+ //判断是否重复选择
+ let idx = this.form[key].findIndex(item => item.highwayNameIndex == e.detail.value );
+ if(idx > -1) {
+ uni.showToast({
+ title: '高速公路不能重复选择',
+ icon: 'none'
+ });
+ }
+ else {
+ this.form[key][index].highwayNameIndex = e.detail.value;
+ this.form[key][index].highwayName = this.highwayDataList[e.detail.value].stdName;
+ console.log(this.form)
+ }
},
//事故等级切换选择
changeAccidentLevel(e, key, index) {
@@ -533,10 +545,11 @@
icon: 'none'
})
return;
- }
+ }
+ console.log(this.form.id)
uni.showModal({
title: '提示',
- content: '确认保存当前报送数据吗?',
+ content: this.form.id == undefined ? '您确认提交该条报送数据?' : '您确认将该条数据进行修改?',
success: (res) => {
if (res.confirm) {
this.submitForm();
@@ -565,8 +578,15 @@
uni.showToast({
title: '报送提交成功',
icon: 'none',
- success: () => {
- uni.navigateBack();
+ success: () => {
+ if(this.form.id == undefined) {
+ uni.redirectTo({
+ url: '/pages/highway/runStatusData/list'
+ })
+ }
+ else {
+ uni.navigateBack();
+ }
}
})
}
diff --git a/pages/highWay/runStatusData/list.vue b/pages/highWay/runStatusData/list.vue
index 5b953bd..61ac040 100644
--- a/pages/highWay/runStatusData/list.vue
+++ b/pages/highWay/runStatusData/list.vue
@@ -104,7 +104,7 @@
this.query = {
statDateStart: this.timeRange.length > 0 ? this.timeRange[0] : '',
statDateEnd: this.timeRange.length > 0 ? this.timeRange[1] : '',
- statPeriod: this.index > -1 ? this.array[this.index].dictValue : ''
+ statPeriod: this.index != '' && this.index > -1 ? this.array[this.index].dictValue : ''
};
this.data = [];
this.current = 0;
diff --git a/pages/railway/railwayRunData/form.vue b/pages/railway/railwayRunData/form.vue
index 95e6629..44dc4f7 100644
--- a/pages/railway/railwayRunData/form.vue
+++ b/pages/railway/railwayRunData/form.vue
@@ -412,7 +412,7 @@
}
uni.showModal({
title: '提示',
- content: '确认保存当前报送数据吗?',
+ content: this.form.id == undefined ? '您确认提交该条报送数据?' : '您确认将该条数据进行修改?',
success: (res) => {
if (res.confirm) {
this.submitForm();
@@ -433,7 +433,14 @@
title: '报送提交成功',
icon: 'none',
success: () => {
- uni.navigateBack();
+ if(this.form.id == undefined) {
+ uni.redirectTo({
+ url: '/pages/railway/railwayRunData/list'
+ })
+ }
+ else {
+ uni.navigateBack();
+ }
}
})
}
diff --git a/pages/railway/railwayRunData/list.vue b/pages/railway/railwayRunData/list.vue
index 4524491..52359e1 100644
--- a/pages/railway/railwayRunData/list.vue
+++ b/pages/railway/railwayRunData/list.vue
@@ -104,7 +104,7 @@
this.query = {
statDateStart: this.timeRange.length > 0 ? this.timeRange[0] : '',
statDateEnd: this.timeRange.length > 0 ? this.timeRange[1] : '',
- statPeriod: this.index > -1 ? this.array[this.index].dictValue : ''
+ statPeriod: this.index != '' && this.index > -1 ? this.array[this.index].dictValue : ''
};
this.data = [];
this.current = 0;
diff --git a/pages/railway/runStatus/form.vue b/pages/railway/runStatus/form.vue
index e495c0e..f2e7b2e 100644
--- a/pages/railway/runStatus/form.vue
+++ b/pages/railway/runStatus/form.vue
@@ -208,7 +208,7 @@
})
uni.showModal({
title: '提示',
- content: '确认保存当前报送数据吗?',
+ content: this.form.id == undefined ? '您确认提交该条报送数据?' : '您确认将该条数据进行修改?',
success: (res) => {
if (res.confirm) {
this.submitForm();
@@ -229,7 +229,14 @@
title: '报送提交成功',
icon: 'none',
success: () => {
- uni.navigateBack();
+ if(this.form.id == undefined) {
+ uni.redirectTo({
+ url: '/pages/railway/runStatus/list'
+ })
+ }
+ else {
+ uni.navigateBack();
+ }
}
})
}
diff --git a/pages/railway/runStatus/list.vue b/pages/railway/runStatus/list.vue
index b744bef..94464b2 100644
--- a/pages/railway/runStatus/list.vue
+++ b/pages/railway/runStatus/list.vue
@@ -104,7 +104,7 @@
this.query = {
statDateStart: this.timeRange.length > 0 ? this.timeRange[0] : '',
statDateEnd: this.timeRange.length > 0 ? this.timeRange[1] : '',
- statPeriod: this.index > -1 ? this.array[this.index].dictValue : ''
+ statPeriod: this.index != '' && this.index > -1 ? this.array[this.index].dictValue : ''
};
this.data = [];
this.current = 0;
diff --git a/pages/water/TransportData/form.vue b/pages/water/TransportData/form.vue
index f4b1b8b..606c854 100644
--- a/pages/water/TransportData/form.vue
+++ b/pages/water/TransportData/form.vue
@@ -45,10 +45,11 @@
去年航次:
-
-
+ {{form.lastPassengersDo || '-'}}
+
@@ -62,9 +63,10 @@
去年客运量:
-
-
+ -->
+ {{form.lastWatertransportDo || '-'}}
@@ -120,17 +122,17 @@
return {
form: {
"affiliatedUnit" : "",
- "inboundWatertransportDo" : 0,
- "inboundWatertransportIn" : 0,
+ "inboundWatertransportDo" : '',
+ "inboundWatertransportIn" : '',
"isHoliday" : "",
"lastPassengersDo" : 0,
"lastWatertransportDo" : 0,
- "outboundWatertransportDo" : 0,
+ "outboundWatertransportDo" : '',
"passengerWatertransportMomDo" : 0.0,
"statDate" : "",
"statPeriod" : "",
"voyageWatertransportMomDo" : 0.0,
- "watertransportPassengersDo" : 0
+ "watertransportPassengersDo" : ''
}, //登录form
array: [], //时段选择列表
index: 2, //时段选择,默认0-24
@@ -163,7 +165,9 @@
this.$request(getApp().globalData.baseUrl + '/api/biz/watertransportRunData/getYoYMoM?statDate=' + this.form
.statDate + '&statPeriod=' + this.form.statPeriod + '&_t=' + Date.parse(new Date()), {}, 'GET')
.then(res => {
- this.yoyMom = res.data;
+ this.yoyMom = res.data;
+ this.form.lastWatertransportDo = checkNotEmpty(this.yoyMom.lastYearData.lastWatertransportDo) ? this.yoyMom.lastYearData.lastWatertransportDo : '';
+ this.form.lastPassengersDo = checkNotEmpty(this.yoyMom.lastYearData.lastPassengersDo) ? this.yoyMom.lastYearData.lastPassengersDo : '';
this.calcYoyMom(); //同步更新同比
})
},
@@ -221,13 +225,6 @@
},
//确认提交
doSubmit() {
- if (!checkNotEmpty(this.form.railwayName)) {
- uni.showToast({
- title: '车站名称不能为空',
- icon: 'none'
- })
- return;
- }
if (!checkNotEmpty(this.form.statDate) || !checkNotEmpty(this.form.statPeriod)) {
uni.showToast({
title: '报送日期和时段不能为空',
@@ -235,39 +232,37 @@
})
return;
}
- if (!checkNotEmpty(this.form.inboundRailwayDo) || !checkNotEmpty(this.form.inboundPassengersDo) || !
- checkNotEmpty(this.form.inPepole)) {
+ if (!checkNotEmpty(this.form.inboundWatertransportDo)) {
uni.showToast({
- title: '入青终到车次、过站车次、人数不能为空',
+ title: '航次不能为空',
icon: 'none'
})
return;
}
- if (!checkNotEmpty(this.form.outboundRailwayDo) || !checkNotEmpty(this.form.outboundPassengersDo) || !
- checkNotEmpty(this.form.outPepole)) {
+ if (!checkNotEmpty(this.form.outboundWatertransportDo)) {
uni.showToast({
- title: '出青终到车次、过站车次、人数不能为空',
+ title: '客运量不能为空',
icon: 'none'
})
return;
}
- if (this.form.inPepole == this.yoyMom.yesterdayData.inPepole && this.form.inMark) {
+ if (!checkNotEmpty(this.form.inboundWatertransportIn)) {
uni.showToast({
- title: '入青备注不能为空',
+ title: '船舶数不能为空',
icon: 'none'
})
return;
}
- if (this.form.outPepole == this.yoyMom.yesterdayData.outPepole && this.form.outRemark) {
+ if (!checkNotEmpty(this.form.watertransportPassengersDo)) {
uni.showToast({
- title: '出青备注不能为空',
+ title: '客位数不能为空',
icon: 'none'
})
return;
}
uni.showModal({
title: '提示',
- content: '确认保存当前报送数据吗?',
+ content: this.form.id == undefined ? '您确认提交该条报送数据?' : '您确认将该条数据进行修改?',
success: (res) => {
if (res.confirm) {
this.submitForm();
@@ -287,8 +282,15 @@
uni.showToast({
title: '报送提交成功',
icon: 'none',
- success: () => {
- uni.navigateBack();
+ success: () => {
+ if(this.form.id == undefined) {
+ uni.redirectTo({
+ url: '/pages/water/TransportData/list'
+ })
+ }
+ else{
+ uni.navigateBack();
+ }
}
})
}
diff --git a/pages/water/TransportData/list.vue b/pages/water/TransportData/list.vue
index aee46ca..d1736de 100644
--- a/pages/water/TransportData/list.vue
+++ b/pages/water/TransportData/list.vue
@@ -102,7 +102,7 @@
this.query = {
statDateStart: this.timeRange.length > 0 ? this.timeRange[0] : '',
statDateEnd: this.timeRange.length > 0 ? this.timeRange[1] : '',
- statPeriod: this.index > -1 ? this.array[this.index].dictValue : ''
+ statPeriod: this.index != '' && this.index > -1 ? this.array[this.index].dictValue : ''
};
this.data = [];
this.current = 0;
diff --git a/pages/water/transportation/form.vue b/pages/water/transportation/form.vue
new file mode 100644
index 0000000..d89caa4
--- /dev/null
+++ b/pages/water/transportation/form.vue
@@ -0,0 +1,613 @@
+
+
+
+ 如有填报问题,请咨询公共服务中心
+ 中心值班电话:66007587
+
+
+ 基本信息
+
+ 管理单位名称:
+
+ {{form.affiliatedUnit}}
+
+
+
+ 统计日期:
+
+
+ {{form.statDate?form.statDate:'请选择时段'}}
+
+
+
+
+
+ 统计时段:
+
+
+ {{index>-1?array[index].dictLabel:'请选择时段'}}
+
+
+
+
+
+ 事故发生总量:
+
+
+
+
+
+
+
+ 事故具体情况
+
+
+
+
+ 事故信息-{{index+1}}
+
+
+
+ 事故发生时间:
+
+
+ {{item.accidentHappened?formatdate(item.accidentHappened):'请选择'}}
+
+
+
+
+
+ 发生地点位置:
+
+
+
+
+
+ 事故等级:
+
+ changeAccidentLevel(e, index)">
+ {{item.gradeAccidentslIndex ? accidentLevel[item.gradeAccidentsIndex].dictLabel : '请选择'}}
+
+
+
+
+
+ 事故内容:
+
+
+
+
+
+
+ 处置工作开展情况:
+
+
+
+
+
+ 事故处理结束时间:
+
+
+ {{item.endTime?formatdate(item.endTime):'请选择'}}
+
+
+
+
+
+
+ 增行
+
+
+
+
+
+
+
+
+
diff --git a/pages/water/transportation/list.vue b/pages/water/transportation/list.vue
new file mode 100644
index 0000000..d828524
--- /dev/null
+++ b/pages/water/transportation/list.vue
@@ -0,0 +1,443 @@
+
+
+
+
+ 报送时间
+ {{item.statDate || ''}}{{item.statPeriodValue || ''}}
+
+
+
+
+
+
+
+
+
+ 查询条件
+
+
+
+
+ 重置
+ 确认
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/water/waterWay/form.vue b/pages/water/waterWay/form.vue
new file mode 100644
index 0000000..dfd89ce
--- /dev/null
+++ b/pages/water/waterWay/form.vue
@@ -0,0 +1,630 @@
+
+
+
+ 如有填报问题,请咨询公共服务中心
+ 中心值班电话:66007587
+
+
+ 基本信息
+
+ 管理单位名称:
+
+ {{form.affiliatedUnit}}
+
+
+
+ 统计日期:
+
+
+ {{form.reportDate?form.reportDate:'请选择时段'}}
+
+
+
+
+
+ 统计时段:
+
+
+ {{index>-1?array[index].dictLabel:'请选择时段'}}
+
+
+
+
+
+
+
+
+
+ 序号-{{index+1}}
+
+
+
+ 水路(陆岛):
+
+ changeLandName(e, index)">
+ {{item.landNameIndex ? landList[item.landNameIndex] : '请选择'}}
+
+
+
+
+
+ 航次:
+
+
+
+
+
+
+
+
+ 航次环比(%)
+
+
+ {{form.voyageRingRatio === 0 ? form.voyageRingRatio : form.voyageRingRatio ? form.voyageRingRatio.toFixed(2) : ''}}
+
+
+
+
+ 航次同比(%)
+
+ {{form.voyageYearOnYear === 0 ? form.voyageYearOnYear : form.voyageYearOnYear ? form.voyageYearOnYear.toFixed(2) : ''}}
+
+
+
+
+ 人数:
+
+
+
+
+
+
+
+
+ 人数环比(%)
+
+
+ {{form.peopleRingRatio === 0 ? form.peopleRingRatio : form.peopleRingRatio ? form.peopleRingRatio.toFixed(2) : ''}}
+
+
+
+
+ 人数同比(%)
+
+ {{form.peopleYearOnYear === 0 ? form.peopleYearOnYear : form.peopleYearOnYear ? form.peopleYearOnYear.toFixed(2) : ''}}
+
+
+
+
+ 昨日航次:
+
+ {{item.yesterdayVoyage}}
+
+
+
+ 去年航次:
+
+ {{item.lastYearVoyage}}
+
+
+
+ 昨日人数:
+
+ {{item.yesterdayNumberOfPeople}}
+
+
+
+ 去年人数:
+
+ {{item.lastYearNumberOfPeople}}
+
+
+
+
+ 增行
+
+
+
+
+
+
+
+
+
diff --git a/pages/water/waterWay/list.vue b/pages/water/waterWay/list.vue
new file mode 100644
index 0000000..b8816e8
--- /dev/null
+++ b/pages/water/waterWay/list.vue
@@ -0,0 +1,443 @@
+
+
+
+
+ 报送时间
+ {{item.reportDate || ''}}{{item.statPeriodValue || ''}}
+
+
+
+
+
+
+
+
+
+ 查询条件
+
+
+
+
+ 重置
+ 确认
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/static/image/loginBg.png b/static/image/loginBg.png
index 60a41c3..90ca486 100644
Binary files a/static/image/loginBg.png and b/static/image/loginBg.png differ