From 5beb2b7f355bd995a69af2ac2e8ebf0ddf402df5 Mon Sep 17 00:00:00 2001
From: Panzihang <819652404@qq.com>
Date: Thu, 24 Aug 2023 16:22:29 +0800
Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E7=BB=86=E8=8A=82=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 16 +
components/head-view/head-view.vue | 22 +-
pages.json | 5 +-
pages/login/index.vue | 2 +-
pages/quality/details.vue | 1 +
pages/quality/edit.vue | 1 +
pages/quality/sign.vue | 53 ++-
pages/shipWork/abnormal.vue | 16 +-
pages/shipWork/abnormalAdd.vue | 34 +-
pages/shipWork/brandDetails.vue | 22 +-
pages/shipWork/carDetails.vue | 24 +-
pages/shipWork/documentList.vue | 9 +-
pages/shipWork/index.vue | 141 +++---
pages/shipWork/mafi.vue | 16 +-
pages/shipWork/mafiAdd.vue | 17 +-
pages/shipWork/mixWork.vue | 15 +-
pages/shipWork/notice.vue | 16 +-
pages/shipWork/noticeAdd.vue | 34 +-
pages/shipWork/opinion.vue | 16 +-
pages/shipWork/opinionAdd.vue | 17 +-
pages/shipWork/patrol.vue | 16 +-
pages/shipWork/patrolAdd.vue | 35 +-
pages/shipWork/peopleAdd.vue | 694 ++++++++++++++---------------
pages/shipWork/shiftAdd.vue | 13 +-
pages/shipWork/shiftDetails.vue | 13 +-
pages/shipWork/shipInfo.vue | 10 +-
pages/shipWork/shipPlan.vue | 23 +-
pages/shipWork/sign.vue | 38 +-
pages/shipWork/supply.vue | 16 +-
pages/shipWork/supplyAdd.vue | 17 +-
pages/shipWork/untieAdd.vue | 17 +-
pages/shipWork/untieCord.vue | 16 +-
pages/shipWork/workAssign.vue | 16 +-
pages/shipWork/workAssignAdd.vue | 17 +-
style/css/layout.css | 2 +-
35 files changed, 714 insertions(+), 706 deletions(-)
diff --git a/App.vue b/App.vue
index fb7023a..9e08f4d 100644
--- a/App.vue
+++ b/App.vue
@@ -29,4 +29,20 @@
/deep/.superwei-combox {
background-color: #fff;
}
+
+ /deep/.uni-pagination__num-tag {
+ width: 30px !important;
+ }
+
+ /deep/uni-button:after {
+ border: none;
+ }
+
+ /deep/.uni-numbox__minus {
+ border-right: 1px solid #ccc;
+ }
+
+ /deep/.uni-numbox__plus {
+ border-left: 1px solid #ccc;
+ }
\ No newline at end of file
diff --git a/components/head-view/head-view.vue b/components/head-view/head-view.vue
index d1fce18..08aa1cf 100644
--- a/components/head-view/head-view.vue
+++ b/components/head-view/head-view.vue
@@ -1,8 +1,8 @@
-
+
{{title}}
-
+
@@ -13,12 +13,15 @@
title: {
type: String
},
+ type: {
+ type: Boolean,
+ default: () => false
+ }
},
methods: {
toBack() {
uni.navigateBack('-1')
}
-
}
}
@@ -28,16 +31,21 @@
position: relative;
background-color: #fff;
border-bottom: 1px solid #999999;
- height: 40px;
- line-height: 40px;
- font-size: 18px;
+ height: 68px;
+ line-height: 68px;
+ font-size: 20px;
+ color: #23262E;
text-align: center;
+ font-weight: bold;
+ box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.10);
.icon {
position: absolute;
- top: 3px;
left: 10px;
}
+ .bottom {
+ margin-left: 6px;
+ }
}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 6c1901b..f979cd3 100644
--- a/pages.json
+++ b/pages.json
@@ -230,8 +230,11 @@
"van-uploader": "/wxcomponents/vant/dist/uploader/index",
"van-progress": "/wxcomponents/vant/dist/progress/index",
"van-stepper": "/wxcomponents/vant/dist/stepper/index"
+ },
+ "navigationStyle": "custom",
+ "app-plus": {
+ "titleNView": false
}
-
},
"uniIdRouter": {},
"condition": { //模式配置,仅开发期间生效
diff --git a/pages/login/index.vue b/pages/login/index.vue
index 1c07569..020e2a2 100644
--- a/pages/login/index.vue
+++ b/pages/login/index.vue
@@ -102,7 +102,7 @@
\ No newline at end of file
+ }
+
\ No newline at end of file
diff --git a/pages/shipWork/shiftAdd.vue b/pages/shipWork/shiftAdd.vue
index 91b529e..d211cdf 100644
--- a/pages/shipWork/shiftAdd.vue
+++ b/pages/shipWork/shiftAdd.vue
@@ -1,5 +1,6 @@
+
@@ -203,6 +204,7 @@
export default {
data() {
return {
+ title: "",
shipInfo: {},
obj: {},
dataInfo: {},
@@ -300,12 +302,14 @@
this.executeSql2('shipOption')
this.executeSql2('shipInfoTable')
if (this.obj.state == 'edit') {
+ this.title = "编辑工班信息"
this.dataInfo = uni.getStorageSync('shiftRow')
this.contactId = this.dataInfo[0].contactId
this.aId = this.dataInfo[0].aId
this.ulList1 = []
this.editData();
} else if (this.obj.state == 'add') {
+ this.title = "新增工班信息"
this.ulList1 = [{
gbValue: "",
gbTextValue: "",
@@ -899,13 +903,6 @@
console.error(error);
});
},
- onBackPress(event) {
- uni.setStorageSync('tabsType', 1);
- uni.navigateTo({
- url: '/pages/shipWork/mixWork'
- })
- return true;
- },
}
}
@@ -1000,8 +997,6 @@
}
/deep/.uni-numbox-btns {
- border-right: 1px solid #ccc;
- border-left: 1px solid #ccc;
padding: 0 14px;
box-sizing: border-box;
}
diff --git a/pages/shipWork/shiftDetails.vue b/pages/shipWork/shiftDetails.vue
index 0c0f819..d3ffac2 100644
--- a/pages/shipWork/shiftDetails.vue
+++ b/pages/shipWork/shiftDetails.vue
@@ -1,5 +1,6 @@
+
@@ -169,6 +170,7 @@
export default {
data() {
return {
+ title: "查看工班信息",
tabsValue: 0,
dataInfo: [{
spmName: "",
@@ -256,9 +258,9 @@
// 删除
executeSql(tableName) {
let sql = ""
- if(tableName == "workMessageRespInfoList"){
+ if (tableName == "workMessageRespInfoList") {
sql = `DELETE FROM ${tableName} WHERE contactId = '${this.contactId}';`
- }else{
+ } else {
sql = `DELETE FROM ${tableName} WHERE aId = '${this.aId}';`
}
sqlite.executeSqlCeshi(sql).then((value) => {
@@ -302,13 +304,6 @@
url: `/pages/shipWork/shiftAdd?params=${params}`
})
},
- onBackPress(event) {
- uni.setStorageSync('tabsType', 1);
- uni.navigateTo({
- url: '/pages/shipWork/mixWork'
- })
- return true;
- },
}
}
diff --git a/pages/shipWork/shipInfo.vue b/pages/shipWork/shipInfo.vue
index cba85a1..9b33761 100644
--- a/pages/shipWork/shipInfo.vue
+++ b/pages/shipWork/shipInfo.vue
@@ -1,5 +1,6 @@
+
船名:{{shipInfo.vslCnname}}
@@ -28,6 +29,7 @@
export default {
data() {
return {
+ title: "船名 - 船舶资料",
shipInfo: {},
}
},
@@ -42,18 +44,12 @@
sqlite.executeSqlCeshi(sql).then((value) => {
// 在resolve时执行的回调函数
this.shipInfo = value[0]
- console.log(this.shipInfo)
+ this.title = `${this.shipInfo.vslCnname} - 船舶资料`
}).catch((error) => {
// 在reject时执行的回调函数
console.error(error);
});
},
- onBackPress(event) {
- uni.navigateTo({
- url: '/pages/shipWork/documentList'
- })
- return true;
- },
}
}
diff --git a/pages/shipWork/shipPlan.vue b/pages/shipWork/shipPlan.vue
index 3a5d296..5523659 100644
--- a/pages/shipWork/shipPlan.vue
+++ b/pages/shipWork/shipPlan.vue
@@ -1,5 +1,6 @@
+
基本信息
@@ -40,22 +41,30 @@
diff --git a/pages/shipWork/supplyAdd.vue b/pages/shipWork/supplyAdd.vue
index 281c350..e20bfc2 100644
--- a/pages/shipWork/supplyAdd.vue
+++ b/pages/shipWork/supplyAdd.vue
@@ -1,5 +1,6 @@
+
@@ -67,6 +68,7 @@
export default {
data() {
return {
+ title: "",
shipInfo: {},
obj: {},
supplyRow: {},
@@ -101,6 +103,13 @@
if (this.obj.state == "edit" || this.obj.state == "look") {
this.getRow()
}
+ if (this.obj.state == "edit") {
+ this.title = "编辑供给"
+ } else if (this.obj.state == "look") {
+ this.title = "查看供给"
+ } else {
+ this.title = "新增供给"
+ }
this.executeSql1('shipOption')
this.executeSql1("shipInfoTable")
},
@@ -270,12 +279,6 @@
console.error(error);
});
},
- onBackPress(event) {
- uni.navigateTo({
- url: '/pages/shipWork/supply'
- })
- return true;
- },
}
}
@@ -315,8 +318,6 @@
}
/deep/.uni-numbox-btns {
- border-right: 1px solid #ccc;
- border-left: 1px solid #ccc;
padding: 0 14px;
box-sizing: border-box;
}
diff --git a/pages/shipWork/untieAdd.vue b/pages/shipWork/untieAdd.vue
index b1643c3..e2d9d31 100644
--- a/pages/shipWork/untieAdd.vue
+++ b/pages/shipWork/untieAdd.vue
@@ -1,5 +1,6 @@
+
@@ -75,6 +76,7 @@
export default {
data() {
return {
+ title: "",
shipInfo: {},
obj: {},
untieRow: {},
@@ -112,6 +114,13 @@
if (this.obj.state == "edit" || this.obj.state == "look") {
this.getRow()
}
+ if (this.obj.state == "edit") {
+ this.title = "编辑系解缆"
+ } else if (this.obj.state == "look") {
+ this.title = "查看系解缆"
+ } else {
+ this.title = "新增系解缆"
+ }
this.executeSql1('shipOption')
this.executeSql1("shipInfoTable")
},
@@ -270,12 +279,6 @@
console.error(error);
});
},
- onBackPress(event) {
- uni.navigateTo({
- url: '/pages/shipWork/untieCord'
- })
- return true;
- },
}
}
@@ -315,8 +318,6 @@
}
/deep/.uni-numbox-btns {
- border-right: 1px solid #ccc;
- border-left: 1px solid #ccc;
padding: 0 14px;
box-sizing: border-box;
}
diff --git a/pages/shipWork/untieCord.vue b/pages/shipWork/untieCord.vue
index 6a66e70..2c3557f 100644
--- a/pages/shipWork/untieCord.vue
+++ b/pages/shipWork/untieCord.vue
@@ -42,7 +42,7 @@
export default {
data() {
return {
- title: "船名-系解缆",
+ title: "船只 - 系解缆",
shipInfo: {},
infoList: []
}
@@ -51,6 +51,7 @@
// this.shipInfo = uni.getStorageSync('shipInfo')
// this.infoList = uni.getStorageSync('addUntieArr')
this.executeSql1('attachUnmoorRespList')
+ this.executeSql1('shipInfoTable')
},
methods: {
// 查
@@ -58,7 +59,12 @@
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// 在resolve时执行的回调函数
- this.infoList = value
+ if (tableName == 'shipInfoTable') {
+ this.shipInfo = value[0]
+ this.title = `${this.shipInfo.vslCnname} - 系解缆`
+ } else {
+ this.infoList = value
+ }
}).catch((error) => {
// 在reject时执行的回调函数
console.error(error);
@@ -88,12 +94,6 @@
url: `/pages/shipWork/untieAdd?params=${params}`
})
},
- onBackPress(event) {
- uni.navigateTo({
- url: '/pages/shipWork/documentList'
- })
- return true;
- },
}
}
diff --git a/pages/shipWork/workAssign.vue b/pages/shipWork/workAssign.vue
index bc929ef..9033ce6 100644
--- a/pages/shipWork/workAssign.vue
+++ b/pages/shipWork/workAssign.vue
@@ -40,7 +40,7 @@
export default {
data() {
return {
- title: "船名-指导员作业布置",
+ title: "船只 - 指导员作业布置",
shipInfo: {},
infoList: []
}
@@ -49,6 +49,7 @@
// this.shipInfo = uni.getStorageSync('shipInfo')
// this.infoList = uni.getStorageSync('addAssignArr')
this.executeSql1('shipmentAdviserLayoutRespList')
+ this.executeSql1('shipInfoTable')
},
methods: {
// 查
@@ -56,7 +57,12 @@
let sql = `select * from ${tableName}`
sqlite.executeSqlCeshi(sql).then((value) => {
// 在resolve时执行的回调函数
- this.infoList = value
+ if (tableName == 'shipInfoTable') {
+ this.shipInfo = value[0]
+ this.title = `${this.shipInfo.vslCnname} - 指导员作业布置`
+ } else {
+ this.infoList = value
+ }
}).catch((error) => {
// 在reject时执行的回调函数
console.error(error);
@@ -86,12 +92,6 @@
url: `/pages/shipWork/workAssignAdd?params=${params}`
})
},
- onBackPress(event) {
- uni.navigateTo({
- url: '/pages/shipWork/documentList'
- })
- return true;
- },
}
}
diff --git a/pages/shipWork/workAssignAdd.vue b/pages/shipWork/workAssignAdd.vue
index 5935d35..852818c 100644
--- a/pages/shipWork/workAssignAdd.vue
+++ b/pages/shipWork/workAssignAdd.vue
@@ -1,5 +1,6 @@
+
@@ -83,6 +84,7 @@
export default {
data() {
return {
+ title: "",
shipInfo: {},
obj: {},
assignRow: {},
@@ -128,6 +130,13 @@
if (this.obj.state == 'edit' || this.obj.state == 'look') {
this.getRow();
}
+ if (this.obj.state == "edit") {
+ this.title = "编辑指导员作业布置"
+ } else if (this.obj.state == "look") {
+ this.title = "查看指导员作业布置"
+ } else {
+ this.title = "新增指导员作业布置"
+ }
this.executeSql1('shipOption')
this.executeSql1("shipInfoTable")
},
@@ -328,12 +337,6 @@
console.error(error);
});
},
- onBackPress(event) {
- uni.navigateTo({
- url: '/pages/shipWork/workAssign'
- })
- return true;
- },
}
}
@@ -373,8 +376,6 @@
}
/deep/.uni-numbox-btns {
- border-right: 1px solid #ccc;
- border-left: 1px solid #ccc;
padding: 0 14px;
box-sizing: border-box;
}
diff --git a/style/css/layout.css b/style/css/layout.css
index 98c9267..bb6fd6a 100644
--- a/style/css/layout.css
+++ b/style/css/layout.css
@@ -1,5 +1,5 @@
.container {
- min-height: calc(100vh - 44px);
+ min-height: calc(100vh - 68px);
background-color: #f5f6fa;
}