From 10d467a1e71d1f2f4135013902a5b1fde4e43b0e Mon Sep 17 00:00:00 2001
From: Panzihang <819652404@qq.com>
Date: Wed, 12 Jul 2023 13:48:01 +0800
Subject: [PATCH] =?UTF-8?q?7.12=20pan=20=E6=9D=82=E9=A1=B9=E4=BD=9C?=
=?UTF-8?q?=E4=B8=9A=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 5 +
pages/shipWork/mixWork.vue | 8 +-
pages/shipWork/shiftAdd.vue | 428 +++++++++++++-----
pages/shipWork/shiftDetails.vue | 300 ++++++++++++
uni_modules/custom-tabs/changelog.md | 22 +
.../custom-tab-pane/custom-tab-pane.vue | 72 +++
.../components/custom-tabs/custom-tabs.vue | 221 +++++++++
uni_modules/custom-tabs/package.json | 83 ++++
uni_modules/custom-tabs/readme.md | 149 ++++++
9 files changed, 1181 insertions(+), 107 deletions(-)
create mode 100644 pages/shipWork/shiftDetails.vue
create mode 100644 uni_modules/custom-tabs/changelog.md
create mode 100644 uni_modules/custom-tabs/components/custom-tab-pane/custom-tab-pane.vue
create mode 100644 uni_modules/custom-tabs/components/custom-tabs/custom-tabs.vue
create mode 100644 uni_modules/custom-tabs/package.json
create mode 100644 uni_modules/custom-tabs/readme.md
diff --git a/pages.json b/pages.json
index 38f4816..04b1cd0 100644
--- a/pages.json
+++ b/pages.json
@@ -47,6 +47,11 @@
"style": {
"navigationBarTitleText": "杂项作业查看(工班信息)"
}
+ }, {
+ "path": "pages/shipWork/shiftDetails",
+ "style": {
+ "navigationBarTitleText": "工班信息详情"
+ }
},
{
"path": "pages/monitor/index",
diff --git a/pages/shipWork/mixWork.vue b/pages/shipWork/mixWork.vue
index ad6b278..4d122c1 100644
--- a/pages/shipWork/mixWork.vue
+++ b/pages/shipWork/mixWork.vue
@@ -18,7 +18,7 @@
- -
+
-
航次:{{item.val1}}
一工班
@@ -102,8 +102,12 @@
url: `/pages/shipWork/shiftAdd?params=${params}`
})
}
-
},
+ lookShift() {
+ uni.navigateTo({
+ url: `/pages/shipWork/shiftDetails`
+ })
+ }
}
}
diff --git a/pages/shipWork/shiftAdd.vue b/pages/shipWork/shiftAdd.vue
index fafe402..b6e4f73 100644
--- a/pages/shipWork/shiftAdd.vue
+++ b/pages/shipWork/shiftAdd.vue
@@ -3,69 +3,170 @@
+
+
+
+ -
+
船名:
+ 快乐号
+
+ -
+
*航次:
+
+
+ -
+
进出口:
+ 进口
+
+ -
+
贸易类型:
+ 内贸
+
+ -
+
*装卸类型:
+
+
+
+ 添加
+
+ -
+
*工班:
+
+
+ -
+
*作业时间 :
+
+
+
+ 添加删除
+
+ -
+
*车型:
+
+
+ -
+
*数量:
+
+
+ -
+
*装卸方式:
+
+
+ -
+
备注:
+
+
+
+
-
- -
-
船名:
- 快乐号
-
- -
-
*航次:
-
-
- -
-
进出口:
- 进口
-
- -
-
贸易类型:
- 内贸
-
- -
-
*装卸类型:
-
-
-
-
- 添加
-
- -
-
*工班:
-
-
- -
-
*作业时间 :
-
-
-
-
- 添加删除
-
- -
-
*车型:
-
-
- -
-
*数量:
-
-
- -
-
*装卸方式:
-
-
- -
-
备注:
-
-
-
+
+
+
+ 添加
+
+
+ 添加删除
+
+ -
+
*翻舱起点位置:
+
+
+ -
+
*翻舱终点位置:
+
+
+ -
+
*工班:
+
+
+ -
+
*作业时间 :
+
+
+ -
+
*数量:
+
+
+ -
+
*体积:
+
+
+ -
+
*重量:
+
+
+
+
+
+
+
+
+
+ 辅助作业
+
+ -
+
*技术工人:
+
+
+ -
+
*普通工人:
+
+
+ -
+
*作业时间 :
+
+
+ -
+
*重量:
+
+
+ -
+
*体积:
+
+
+ -
+
描述:
+
+
+
+ 待工作业
+
+ 作业备注
+
+
+
取消
- 保存
- 下一步
+ 保存
+ 下一步
@@ -84,91 +185,130 @@
}, {
title: '其他信息'
}],
+
+ // 工班信息
// 航次下拉框
hcValue: "",
hcList: [{
- value: 0,
+ value: "航次0",
text: "航次0"
},
{
- value: 1,
+ value: "航次1",
text: "航次1"
},
{
- value: 2,
+ value: "航次2",
text: "航次2"
},
],
// 装卸类型下拉框
zxValue: "",
zxList: [{
- value: 0,
+ value: "装卸类型0",
text: "装卸类型0"
},
{
- value: 1,
+ value: "装卸类型1",
text: "装卸类型1"
},
{
- value: 2,
+ value: "装卸类型2",
text: "装卸类型2"
},
],
-
- ulList1: [{}],
+ ulList1: [{
+ gbValue: "",
+ dataTime: ""
+ }],
// 工班下拉框
- gbValue: "",
gbList: [{
- value: 0,
+ value: "工班0",
text: "工班0"
},
{
- value: 1,
+ value: "工班1",
text: "工班1"
},
{
- value: 2,
+ value: "工班2",
text: "工班2"
},
],
- // 作业时间
- datetime: "",
-
- ulList2: [{}],
+ ulList2: [{
+ cxValue: "",
+ numValue: 0,
+ fsValue: "",
+ notes: "",
+ }],
// 车型下拉
- cxValue: "",
cxList: [{
- value: 0,
+ value: "车型0",
text: "车型0"
},
{
- value: 1,
+ value: "车型1",
text: "车型1"
},
{
- value: 2,
+ value: "车型2",
text: "车型2"
},
],
- // 数量
- numValue: 0,
// 装卸方式下拉
- fsValue: "",
fsList: [{
- value: 0,
+ value: "装卸方式0",
text: "装卸方式0"
},
{
- value: 1,
+ value: "装卸方式1",
text: "装卸方式1"
},
{
- value: 2,
+ value: "装卸方式2",
text: "装卸方式2"
},
],
- // 备注
- notes: "",
+
+ // 翻仓信息
+ // 翻仓类型下拉
+ fcList: [{
+ value: "翻仓类型0",
+ text: "翻仓类型0"
+ },
+ {
+ value: "翻仓类型1",
+ text: "翻仓类型1"
+ },
+ {
+ value: "翻仓类型2",
+ text: "翻仓类型2"
+ },
+ ],
+ fcUlList: [{
+ fcValue: "",
+ fcUlList2: [{
+ qdValue: "",
+ zdValue: "",
+ gbValue: "",
+ dataTime: "",
+ numValue: 0,
+ tjValue: 0,
+ zlValue: 0
+ }],
+ }],
+
+ // 其他信息
+ otherObj: {
+ jsWorker: 0,
+ ptworker: 0,
+ workTime: "",
+ zlValue: 0,
+ tjValue: 0,
+ describe: "",
+ dgWork: "",
+ notes: "",
+ }
}
},
onLoad(options) {
@@ -178,6 +318,7 @@
}
},
methods: {
+ // 工班信息相关
// 航次下拉
hcChange(e) {
this.hcValue = e;
@@ -188,33 +329,66 @@
},
// 点击第一个添加
ulAdd1() {
- this.ulList1.push({})
+ this.ulList1.push({
+ gbValue: "",
+ dataTime: ""
+ })
},
// 工班下拉
- gbChange(e) {
- this.gbValue = e;
- },
+ gbChange(e) {},
// 作业时间
changeLog(e) {},
// 点击第二个添加
ulAdd2() {
- this.ulList2.push({})
+ this.ulList2.push({
+ cxValue: "",
+ numValue: 0,
+ fsValue: "",
+ notes: "",
+ })
},
del() {
this.ulList2.splice(0, 1)
},
// 车型下拉
- cxChange(e) {
- this.cxValue = e;
- },
+ cxChange(e) {},
// 数量
- numChange(val) {
- console.log(val)
- this.numValue = val;
- },
+ numChange(val) {},
// 装卸方式下拉
- fsChange(e) {
- this.fsValue = e;
+ fsChange(e) {},
+
+ // 翻仓信息
+ // 翻仓类型下拉
+ fcChange(e) {},
+ // 翻仓add
+ fcAdd() {
+ this.fcUlList.push({
+ fcValue: "",
+ fcUlList2: [{
+ qdValue: "",
+ zdValue: "",
+ gbValue: "",
+ dataTime: "",
+ numValue: 12,
+ tjValue: 12,
+ zlValue: 12
+ }]
+ })
+ },
+ fcAdd2(index) {
+ this.fcUlList[index].fcUlList2.push({
+ qdValue: "",
+ zdValue: "",
+ gbValue: "",
+ dataTime: "",
+ numValue: 0,
+ tjValue: 0,
+ zlValue: 0
+ })
+ },
+ // 翻仓删除
+ delFc(index, index2) {
+ this.fcUlList[index].fcUlList2.splice(index2, 1)
},
// 取消
@@ -223,6 +397,12 @@
url: '/pages/shipWork/mixWork'
})
},
+ // 保存
+ save() {},
+ // 下一步
+ next() {
+ this.active = this.active + 1
+ },
}
}
@@ -249,7 +429,7 @@
width: 100%;
height: 10px;
background: #f2f2f2;
- margin-top: 20px;
+ margin: 20px 0;
}
.ulTop {
@@ -269,11 +449,28 @@
}
}
+ .fcUl {
+ li {
+ border: none;
+ margin-bottom: 0;
+
+ .liTitle {
+ width: 120px;
+ }
+ }
+ }
+
+ .fcUl2 {
+ .liTitle {
+ width: 120px;
+ }
+ }
+
ul {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
- margin: 20px 0;
+ margin-bottom: 20px;
li {
width: 44%;
@@ -320,8 +517,6 @@
}
-
-
.ul2 {
padding: 0;
margin-top: 0;
@@ -332,9 +527,32 @@
}
}
+ .otherWork {
+ padding: 0 20px;
+
+ .title {
+ font-size: 16px;
+ font-weight: bold;
+ padding-left: 10px;
+ border-left: 5px solid #2979ff;
+ margin-bottom: 20px;
+ }
+
+ ul {
+ li {
+ border: none;
+ }
+
+ li:last-child {
+ width: 100%;
+ }
+ }
+ }
+
.btnList {
display: flex;
justify-content: center;
+ margin-top: 20px;
/deep/ .van-button {
margin: 30px 20px;
diff --git a/pages/shipWork/shiftDetails.vue b/pages/shipWork/shiftDetails.vue
new file mode 100644
index 0000000..1fa4f21
--- /dev/null
+++ b/pages/shipWork/shiftDetails.vue
@@ -0,0 +1,300 @@
+
+
+
+
+
+
+ -
+
船名:
+ 快乐号
+
+ -
+
航次:
+ JK97065578
+
+ -
+
进出口:
+ 进口
+
+ -
+
贸易类型:
+ 外贸
+
+ -
+
装卸类型:
+ 装货
+
+
+
+ -
+
工班:
+ 一工班
+
+ -
+
作业时间:
+ 2023/06/06 12:00 - 023/06/06 13:00
+
+ -
+
车型:
+ 轿车
+
+ -
+
数量:
+ 100
+
+ -
+
备注:
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum
+ laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin
+ sodales pulvinar sic tempor. Sociis natoque penatibus et magnis dis parturient montes,
+ nascetur ridiculus mus. Nam
+
+ -
+
车型:
+ 备件
+
+ -
+
数量:
+ 100
+
+ -
+
备注:
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum
+ laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin
+ sodales pulvinar sic tempor. Sociis natoque penatibus et magnis dis parturient montes,
+ nascetur ridiculus mus. Nam
+
+
+
+ -
+
工班:
+ 二工班
+
+ -
+
作业时间:
+ 2023/06/06 12:00 - 023/06/06 13:00
+
+ -
+
车型:
+ 轿车
+
+ -
+
数量:
+ 100
+
+ -
+
备注:
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum
+ laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin
+ sodales pulvinar sic tempor. Sociis natoque penatibus et magnis dis parturient montes,
+ nascetur ridiculus mus. Nam
+
+
+
+
+
+
+ 翻舱类型:
+ 舱内翻
+
+
+ -
+
航次:
+ JK97065578
+
+ -
+
翻舱起点:
+ D5H4
+
+ -
+
翻舱终点:
+ 舱外
+
+ -
+
作业时间:
+ 2023/06/06 12:00 - 023/06/06 13:00
+
+ -
+
车型:
+ 轿车
+
+ -
+
数量:
+ 100
+
+ -
+
体积:
+ 30
+
+ -
+
重量:
+ 50
+
+
+
+
+
+
+
+ 辅助作业
+
+ -
+
技术工人:
+ 10
+
+ -
+
普通工人:
+ 30
+
+ -
+
作业时间:
+ 2023/06/06 12:00 - 023/06/06 13:00
+
+ -
+
重量:
+ 50
+
+ -
+
体积:
+ 30
+
+ -
+
描述:
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum
+ laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin
+ sodales pulvinar sic tempor. Sociis natoque penatibus et magnis dis parturient
+ montes,nascetur ridiculus mus. Nam
+
+
+ 待工作业
+
+ -
+
描述:
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum
+ laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin
+ sodales pulvinar sic tempor. Sociis natoque penatibus et magnis dis parturient
+ montes,nascetur ridiculus mus. Nam
+
+
+ 作业备注
+
+ -
+
描述:
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum
+ laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin
+ sodales pulvinar sic tempor. Sociis natoque penatibus et magnis dis parturient
+ montes,nascetur ridiculus mus. Nam
+
+
+
+
+
+
+
+ 取消
+ 删除
+ 编辑
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/uni_modules/custom-tabs/changelog.md b/uni_modules/custom-tabs/changelog.md
new file mode 100644
index 0000000..4978d07
--- /dev/null
+++ b/uni_modules/custom-tabs/changelog.md
@@ -0,0 +1,22 @@
+## 1.0.8(2022-04-21)
+1. 优化插件,避免多个组件互相影响。
+## 1.0.7(2022-04-20)
+1. 优化
+## 1.0.6(2022-04-20)
+1. 修改使用多个该组件存在的BUG
+## 1.0.5(2022-03-24)
+1. 修复设置animation参数无效的BUG
+2. 修复有动画切换的显示BUG
+## 1.0.4(2022-03-08)
+1. 增加defaultTextStyle字段,方便直接配置未选中的tab样式
+2. 增加activeTextStyle字段,方便直接配置选中后tab的样式
+3. 增加activeLineStyle字段,方便直接配置选中后下划线的样式
+## 1.0.3(2022-03-07)
+1. 修改vue2模式下 tablist is not defined 报错的bug
+## 1.0.2(2022-03-02)
+1. 新增tabs切换那一栏固定功能,类似吸顶效果
+2. 新增监听label变化,label值可动态改变
+3. 新增不显示的页面进行隐藏,防止某页面内容过多撑开其他页面
+4. h5隐藏滚动条
+## 1.0.0(2021-12-13)
+1.0.0
diff --git a/uni_modules/custom-tabs/components/custom-tab-pane/custom-tab-pane.vue b/uni_modules/custom-tabs/components/custom-tab-pane/custom-tab-pane.vue
new file mode 100644
index 0000000..63bd98a
--- /dev/null
+++ b/uni_modules/custom-tabs/components/custom-tab-pane/custom-tab-pane.vue
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni_modules/custom-tabs/components/custom-tabs/custom-tabs.vue b/uni_modules/custom-tabs/components/custom-tabs/custom-tabs.vue
new file mode 100644
index 0000000..3cdc3e1
--- /dev/null
+++ b/uni_modules/custom-tabs/components/custom-tabs/custom-tabs.vue
@@ -0,0 +1,221 @@
+
+
+
+
+ {{item.label}}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni_modules/custom-tabs/package.json b/uni_modules/custom-tabs/package.json
new file mode 100644
index 0000000..96dfcbd
--- /dev/null
+++ b/uni_modules/custom-tabs/package.json
@@ -0,0 +1,83 @@
+{
+ "id": "custom-tabs",
+ "displayName": "Tabs标签页 灵活配置 多端兼容(暂停维护谨慎使用,建议使用uv-tabs)",
+ "version": "1.0.8",
+ "description": "在做项目的过程中用到了tab切换,本想着去插件市场找一个直接现用,后面发现找到的tab切换并不是我想要的那种使用方式,于是我结合了element-ui中Tabs标签页的方式写了该组件...",
+ "keywords": [
+ "tabs",
+ "tab",
+ "tabs标签页",
+ "tab切换",
+ "标签页"
+],
+ "repository": "https://gitee.com/my_dear_li_pan/my-uni-modules.git",
+"engines": {
+ },
+ "dcloudext": {
+ "category": [
+ "前端组件",
+ "通用组件"
+ ],
+ "sale": {
+ "regular": {
+ "price": "0.00"
+ },
+ "sourcecode": {
+ "price": "0.00"
+ }
+ },
+ "contact": {
+ "qq": ""
+ },
+ "declaration": {
+ "ads": "无",
+ "data": "插件不采集任何数据",
+ "permissions": "无"
+ },
+ "npmurl": ""
+ },
+ "uni_modules": {
+ "dependencies": [],
+ "encrypt": [],
+ "platforms": {
+ "cloud": {
+ "tcb": "y",
+ "aliyun": "y"
+ },
+ "client": {
+ "Vue": {
+ "vue2": "y",
+ "vue3": "y"
+ },
+ "App": {
+ "app-vue": "y",
+ "app-nvue": "n"
+ },
+ "H5-mobile": {
+ "Safari": "u",
+ "Android Browser": "y",
+ "微信浏览器(Android)": "y",
+ "QQ浏览器(Android)": "y"
+ },
+ "H5-pc": {
+ "Chrome": "y",
+ "IE": "n",
+ "Edge": "y",
+ "Firefox": "y",
+ "Safari": "y"
+ },
+ "小程序": {
+ "微信": "y",
+ "阿里": "y",
+ "百度": "y",
+ "字节跳动": "y",
+ "QQ": "y"
+ },
+ "快应用": {
+ "华为": "u",
+ "联盟": "u"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/uni_modules/custom-tabs/readme.md b/uni_modules/custom-tabs/readme.md
new file mode 100644
index 0000000..97d3d95
--- /dev/null
+++ b/uni_modules/custom-tabs/readme.md
@@ -0,0 +1,149 @@
+- 概要
+- Tips
+- 支持的平台
+- 使用示例
+- Tabs Attributes
+- Tabs Events
+- Tab-pane Attributes
+- 关注我,不迷路
+
+
+
+#### 概要
+
+在做项目的过程中用到了tab切换,本想着去插件市场找一个直接现用,后面发现找到的tab切换并不是我想要的那种使用方式,于是我结合了element-ui中Tabs标签页的方式写了该组件。
+
+
+
+
+#### Tips
+
+1. 该插件使用的预编译,需要自行安装scss/sass插件。
+2. 该插件同时兼容了VUE2和VUE3,hbuilderX 最好是更新到较新版本。
+3. 由于组件重构升级,老用户需要更新插件的,需要注意参数,根据下面提供的参数修改即可。
+4. 遵循uni_modules规范插件。
+5. 如果发现组件有bug或者不完善可以留言交流。
+6. uniapp插件git地址:https://gitee.com/my_dear_li_pan/my-uni-modules.git
+7. 个人博客地址:https://blog.csdn.net/qq_42961150?spm=1011.2124.3001.5343
+
+
+
+#### 支持的平台
+- H5、app-vue、微信小程序、百度小程序等小程序平台。
+- 暂不支持nvue。
+- cli脚手架项目是否可用,暂未测试。
+
+
+
+#### 使用示例
+```
+
+
+
+
+ 内容0
+ 内容1
+ 内容1
+ 内容1
+ 内容1
+ 内容1
+ 内容1
+ 内容1
+ 内容1
+ 内容1
+
+ 内容2
+ 内容3
+ 内容4
+ 内容5
+ 内容6
+ 内容7
+
+
+
+
+
+```
+
+
+
+#### Tabs Attributes
+
+参数|说明|类型|是否必填|可选值|默认值
+-|-|-|-|-|-|
+type|组件的唯一标识,如果有多个该组件,则值必须不同|string|是|-|-
+value|选中选项的索引,从0开始|Number|否|-|0
+animation|切换动画|Boolean|否|true/false|true
+duration|切换动画的动画时长,单位ms|Number|否|-|200
+tabSpacing|tab选项的左右间距,单位rpx|Number|否|-|40
+tabCenter|tab选项是否居中显示|Boolean|否|true/false|false
+fixed|tab选项固定|Boolean|否|true/false|false
+defaultTextStyle|未选中tab选项的样式|Object|否|示例:```:defaultTextStyle="{color:'pink'}"```|-
+activeTextStyle|选中后tab选项的样式|Object|否|示例:```:activeTextStyle="{color:'red','font-weight':700}"```|-
+activeLineStyle|选中后tab选项下划线的样式|Object|否|示例:```:activeLineStyle="{'background-color':'red',height:'6rpx'}"```|-
+
+
+
+#### Tabs Events
+事件名称|说明|回调参数
+-|-|-|
+change|tab 被选中时触发|被选中的标签tab实例
+
+
+
+#### Tab-pane Attributes
+
+参数|说明|类型|是否必填|可选值|默认值
+-|-|-|-|-|-|
+label|选项卡标题|String|是|-|-
+name|与选项卡绑定值 value 对应的标识符,表示选项卡别名。==注意:== 该值的格式必须和组件上的type配合使用,eg:type="c1",name="c1_"+自定义值|String|是|-|该选项卡在选项卡列表中的顺序值,如第一个选项卡则为'c1_1'
+
+
+
+**----- 别忘记点赞哟,您的肯定就是对我最大的支持 END -----**
+
+#### 关注我,不迷路
+
+如果任何疑问的可以在评论区留言,还可以加QQ群交流:568984539,加群备注‘地区-名字-技术类型’。
+
+更多前端等相关知识可关注我个人博客:https://blog.csdn.net/qq_42961150?spm=1011.2124.3001.5343
+
+**个人作品展示:**
+
+uniapp+vue3.2+unicloud开发微信小程序:**皮皮虎去水印**。
+
+关注下方公众号:【**全网免费网盘资源**】、【**美团外卖饿了么天天领红包**】、【**去水印**】。
+
+![image](https://vkceyugu.cdn.bspapp.com/VKCEYUGU-bb657efd-fece-483e-a715-5daea480fde8/6e029310-aec8-46e9-9883-1c88dc1925ad.jpg)
+
+
+
+
+
+
+
+