From cab1ad2759878ea663a33a63796b9d65d33b4b98 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?=
<7507756+jiang_yuqi@user.noreply.gitee.com>
Date: Sun, 14 Apr 2024 21:28:11 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
miniprogram/api/flowable.js | 4 +-
miniprogram/api/login.js | 16 +
miniprogram/app.wxss | 10 +
.../@vant/weapp/steps/index.js | 4 +
.../@vant/weapp/steps/index.wxml | 62 +-
.../@vant/weapp/steps/index.wxss | 2 +-
.../project_checkDetection/add/index.js | 4 +-
.../project_checkDetection/add/index.json | 1 +
.../project_checkDetection/add/index.wxml | 1 +
.../project_checkDetection/check/index.js | 4 +-
.../project_checkDetection/check/index.json | 4 +-
.../project_checkDetection/check/index.wxml | 1 +
.../project_checkDetection/edit/index.js | 4 +-
.../project_checkDetection/edit/index.json | 1 +
.../project_checkDetection/edit/index.wxml | 1 +
.../project_checkDetection/edit/index.wxss | 3 +-
.../project_checkDetection/info/index.js | 413 +++++++------
.../project_checkDetection/info/index.json | 1 +
.../project_checkDetection/info/index.wxml | 1 +
.../project_checkDetection/info/index.wxss | 3 +-
.../project_checkDetection/list/index.wxml | 2 +-
.../pageage/project_checking/add/index.js | 4 +-
.../pageage/project_checking/add/index.json | 1 +
.../pageage/project_checking/add/index.wxml | 1 +
.../pageage/project_checking/edit/index.js | 4 +-
.../pageage/project_checking/edit/index.json | 1 +
.../pageage/project_checking/edit/index.wxml | 1 +
.../pageage/project_checking/edit/index.wxss | 3 +-
.../pageage/project_checking/info/index.js | 353 ++++++-----
.../pageage/project_checking/info/index.json | 1 +
.../pageage/project_checking/info/index.wxml | 266 ++++----
.../pageage/project_checking/info/index.wxss | 3 +-
.../pageage/project_checking/list/index.wxml | 2 +-
.../pageage/project_deptWorks/list/index.wxml | 2 +-
miniprogram/pageage/project_files/index.js | 2 +-
miniprogram/pageage/project_files/index.wxml | 2 +-
.../pageage/project_insurance/list/index.wxml | 2 +-
.../pageage/project_materialSeal/add/index.js | 4 +-
.../project_materialSeal/add/index.json | 1 +
.../project_materialSeal/add/index.wxml | 1 +
.../project_materialSeal/edit/index.js | 4 +-
.../project_materialSeal/edit/index.json | 1 +
.../project_materialSeal/edit/index.wxml | 1 +
.../project_materialSeal/edit/index.wxss | 3 +-
.../project_materialSeal/info/index.js | 571 +++++++++---------
.../project_materialSeal/info/index.json | 1 +
.../project_materialSeal/info/index.wxml | 1 +
.../project_materialSeal/info/index.wxss | 3 +-
.../project_materialSeal/list/index.wxml | 2 +-
.../pageage/project_measure/add/index.js | 4 +-
.../pageage/project_measure/add/index.json | 1 +
.../pageage/project_measure/add/index.wxml | 1 +
.../pageage/project_measure/edit/index.js | 2 +
.../pageage/project_measure/edit/index.json | 1 +
.../pageage/project_measure/edit/index.wxml | 1 +
.../pageage/project_measure/edit/index.wxss | 3 +-
.../pageage/project_measure/info/index.js | 377 ++++++------
.../pageage/project_measure/info/index.json | 1 +
.../pageage/project_measure/info/index.wxml | 1 +
.../pageage/project_measure/info/index.wxss | 3 +-
.../pageage/project_measure/list/index.wxml | 2 +-
.../quality/add/index.js | 474 ++++++++-------
.../quality/add/index.json | 1 +
.../quality/add/index.wxml | 1 +
.../quality/check/index.js | 4 +-
.../quality/check/index.json | 3 +
.../quality/check/index.wxml | 192 +++---
.../quality/draft/index.js | 2 +
.../quality/draft/index.json | 1 +
.../quality/draft/index.wxml | 3 +-
.../quality/info/index.js | 411 +++++++------
.../quality/info/index.json | 6 +-
.../quality/info/index.wxml | 1 +
.../quality/list/index.js | 70 +++
.../quality/list/index.wxml | 6 +-
.../quality/modify/index.js | 4 +-
.../quality/modify/index.json | 3 +
.../quality/modify/index.wxml | 1 +
.../security/add/index.js | 17 +-
.../security/add/index.json | 1 +
.../security/add/index.wxml | 1 +
.../security/check/index.js | 4 +-
.../security/check/index.json | 3 +
.../security/check/index.wxml | 1 +
.../security/draft/index.js | 2 +
.../security/draft/index.json | 1 +
.../security/draft/index.wxml | 3 +-
.../security/info/index.js | 15 +-
.../security/info/index.json | 6 +-
.../security/info/index.wxml | 1 +
.../security/list/index.js | 70 +++
.../security/list/index.wxml | 6 +-
.../security/modify/index.js | 4 +-
.../security/modify/index.json | 3 +
.../security/modify/index.wxml | 1 +
.../pageage/project_schedule/list/index.wxml | 2 +-
.../pageage/project_special/list/index.wxml | 2 +-
.../pageage/project_standard/info/index.wxss | 3 +-
.../pageage/project_standard/list/index.wxml | 2 +-
.../pageage/project_train/list/index.wxml | 2 +-
.../pages/components/user-infos/index.js | 19 +-
.../pages/components/user-infos/index.wxml | 8 +-
.../pages/components/user-infos/index.wxss | 4 +-
miniprogram/pages/gongchengliebiao/index.js | 20 +-
miniprogram/pages/login/index.js | 6 +-
miniprogram/pages/map/map.js | 20 +-
.../approveCheckDetection/index.js | 2 +
.../approveCheckDetection/index.json | 1 +
.../approveCheckDetection/index.wxml | 1 +
.../approveCheckDetection/index.wxss | 3 +-
.../project_approve/approveChecking/index.js | 2 +
.../approveChecking/index.json | 1 +
.../approveChecking/index.wxml | 1 +
.../approveChecking/index.wxss | 3 +-
.../approveMaterialSeal/index.js | 2 +
.../approveMaterialSeal/index.json | 1 +
.../approveMaterialSeal/index.wxml | 1 +
.../approveMaterialSeal/index.wxss | 3 +-
.../project_approve/approveMeasure/index.js | 2 +
.../project_approve/approveMeasure/index.json | 1 +
.../project_approve/approveMeasure/index.wxml | 1 +
.../project_approve/approveMeasure/index.wxss | 3 +-
miniprogram/pages/project_approve/index.wxml | 2 +-
.../approveLeaveTask/index.js | 51 +-
.../approveLeaveTask/index.json | 1 +
.../approveLeaveTask/index.wxml | 6 +-
.../approveLeaveTask/index.wxss | 9 +-
.../project_flowable/approveTask/index.js | 59 +-
.../project_flowable/approveTask/index.json | 1 +
.../project_flowable/approveTask/index.wxml | 8 +-
.../project_flowable/approveTask/index.wxss | 9 +-
.../pages/project_flowable/await/index.js | 79 ++-
.../pages/project_flowable/await/index.wxml | 2 +-
.../project_flowable/detailLeaveTask/index.js | 46 +-
.../detailLeaveTask/index.json | 1 +
.../detailLeaveTask/index.wxml | 6 +-
.../detailLeaveTask/index.wxss | 9 +-
.../project_flowable/detailTask/index.js | 63 +-
.../project_flowable/detailTask/index.json | 1 +
.../project_flowable/detailTask/index.wxml | 6 +-
.../project_flowable/detailTask/index.wxss | 9 +-
.../project_flowable/editLeaveTask/index.js | 43 +-
.../project_flowable/editLeaveTask/index.json | 1 +
.../project_flowable/editLeaveTask/index.wxml | 6 +-
.../project_flowable/editLeaveTask/index.wxss | 9 +-
.../pages/project_flowable/editTask/index.js | 43 +-
.../project_flowable/editTask/index.json | 1 +
.../project_flowable/editTask/index.wxml | 6 +-
.../project_flowable/editTask/index.wxss | 9 +-
.../pages/project_flowable/finished/index.js | 6 +-
.../project_flowable/finished/index.wxml | 11 +-
.../project_flowable/initLeaveTask/index.js | 17 +-
.../project_flowable/initLeaveTask/index.json | 1 +
.../project_flowable/initLeaveTask/index.wxml | 5 +-
.../project_flowable/initLeaveTask/index.wxss | 3 +-
.../pages/project_flowable/initTask/index.js | 3 +-
.../project_flowable/initTask/index.wxss | 12 +-
.../myFlowDefinition/index.wxml | 2 +-
.../project_flowable/myProcessIns/index.js | 6 +-
.../project_flowable/myProcessIns/index.wxml | 11 +-
miniprogram/pages/wx-auth/index.js | 19 +-
miniprogram/pages/xiangmugaikuang/index.js | 25 +
miniprogram/pages/xiangmugaikuang/index.wxml | 2 +-
miniprogram/pages/xiangmugaikuang/index.wxss | 2 +-
project.private.config.json | 3 +-
165 files changed, 2493 insertions(+), 1739 deletions(-)
diff --git a/miniprogram/api/flowable.js b/miniprogram/api/flowable.js
index d9750ee..b91da3f 100644
--- a/miniprogram/api/flowable.js
+++ b/miniprogram/api/flowable.js
@@ -21,7 +21,7 @@ export function startProcessInstance(data) {
// 查询流程节点
export function readDeployNotes(deployId) {
return request({
- url: '/wxApi/flowTask/readNotes/'+deployId,
+ url: '/wechat/flowTask/readDeployNotes/'+deployId,
method: 'get'
})
}
@@ -136,7 +136,7 @@ export function myFinishedFlowTaskList(data) {
// 根据条件查询所有流申请
export function allInstanceList(data) {
return request({
- url: '/wxApi/flowTask/allList',
+ url: '/wechat/flowTask/allList',
method: 'get',
data: data
})
diff --git a/miniprogram/api/login.js b/miniprogram/api/login.js
index 80082a7..14ec30a 100644
--- a/miniprogram/api/login.js
+++ b/miniprogram/api/login.js
@@ -33,3 +33,19 @@ export function loginOut() {
'method': 'get'
})
}
+
+// 查询公众号消息授权
+export function findOpenUserMsgId(openId) {
+ return request({
+ 'url': '/wechat/findOpenUserMsgId/'+openId,
+ 'method': 'get'
+ })
+}
+
+// 删除公众号消息授权
+export function delOpenUserMsgId(openId) {
+ return request({
+ 'url': '/wechat/delOpenUserMsgId/'+openId,
+ 'method': 'get'
+ })
+}
\ No newline at end of file
diff --git a/miniprogram/app.wxss b/miniprogram/app.wxss
index 8dbb445..d4804b2 100644
--- a/miniprogram/app.wxss
+++ b/miniprogram/app.wxss
@@ -1380,6 +1380,7 @@ swiper-item video {
.color_green {
color: #1ab400;
+ font-weight: 800;
}
.color_blue {
@@ -1840,4 +1841,13 @@ swiper-item video {
.inspect_list_info_data_2 {
width: 100%;
+}
+.van-steps{
+ background-color: transparent !important;
+}
+.van-step--horizontal .van-step__circle-container{
+ background-color: transparent !important;
+}
+.van-steps--horizontal{
+ padding: 10px 20px !important;
}
\ No newline at end of file
diff --git a/miniprogram/miniprogram_npm/@vant/weapp/steps/index.js b/miniprogram/miniprogram_npm/@vant/weapp/steps/index.js
index c41e5ad..e813ce1 100644
--- a/miniprogram/miniprogram_npm/@vant/weapp/steps/index.js
+++ b/miniprogram/miniprogram_npm/@vant/weapp/steps/index.js
@@ -8,6 +8,10 @@ component_1.VantComponent({
icon: String,
steps: Array,
active: Number,
+ rejectNode:{
+ type: Number,
+ value: 100,
+ },
direction: {
type: String,
value: 'horizontal',
diff --git a/miniprogram/miniprogram_npm/@vant/weapp/steps/index.wxml b/miniprogram/miniprogram_npm/@vant/weapp/steps/index.wxml
index 6180b41..9bfdc53 100644
--- a/miniprogram/miniprogram_npm/@vant/weapp/steps/index.wxml
+++ b/miniprogram/miniprogram_npm/@vant/weapp/steps/index.wxml
@@ -2,53 +2,39 @@
-
-
- {{ item.text }}
+
+
+ {{ item.text }}
{{ item.desc }}
-
-
-
+
+
+
+
+
+
+
+
-
-
+
-
+
+
-function get(index, active) {
- if (index < active) {
- return 'finish';
- } else if (index === active) {
- return 'process';
+ function get(index, active) {
+ if (index < active) {
+ return 'finish';
+ } else if (index === active) {
+ return 'process';
+ }
+
+ return 'inactive';
}
- return 'inactive';
-}
-
-module.exports = get;
-
+ module.exports = get;
+
\ No newline at end of file
diff --git a/miniprogram/miniprogram_npm/@vant/weapp/steps/index.wxss b/miniprogram/miniprogram_npm/@vant/weapp/steps/index.wxss
index 2c50b1a..69565bf 100644
--- a/miniprogram/miniprogram_npm/@vant/weapp/steps/index.wxss
+++ b/miniprogram/miniprogram_npm/@vant/weapp/steps/index.wxss
@@ -1 +1 @@
-@import '../common/index.wxss';.van-steps{overflow:hidden;background-color:#fff;background-color:var(--steps-background-color,#fff)}.van-steps--horizontal{padding:10px}.van-steps--horizontal .van-step__wrapper{position:relative;display:-webkit-flex;display:flex;overflow:hidden}.van-steps--vertical{padding-left:10px}.van-steps--vertical .van-step__wrapper{padding:0 0 0 20px}.van-step{position:relative;-webkit-flex:1;flex:1;font-size:14px;font-size:var(--step-font-size,14px);color:#969799;color:var(--step-text-color,#969799)}.van-step--finish{color:#323233;color:var(--step-finish-text-color,#323233)}.van-step__circle{border-radius:50%;width:5px;width:var(--step-circle-size,5px);height:5px;height:var(--step-circle-size,5px);background-color:#969799;background-color:var(--step-circle-color,#969799)}.van-step--horizontal{padding-bottom:14px}.van-step--horizontal:first-child .van-step__title{-webkit-transform:none;transform:none}.van-step--horizontal:first-child .van-step__circle-container{padding:0 8px 0 0;-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0)}.van-step--horizontal:last-child{position:absolute;right:0;width:auto}.van-step--horizontal:last-child .van-step__title{text-align:right;-webkit-transform:none;transform:none}.van-step--horizontal:last-child .van-step__circle-container{right:0;padding:0 0 0 8px;-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0)}.van-step--horizontal .van-step__circle-container{position:absolute;bottom:6px;z-index:1;-webkit-transform:translate3d(-50%,50%,0);transform:translate3d(-50%,50%,0);background-color:#fff;background-color:var(--white,#fff);padding:0 8px;padding:0 var(--padding-xs,8px)}.van-step--horizontal .van-step__title{display:inline-block;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);font-size:12px;font-size:var(--step-horizontal-title-font-size,12px)}.van-step--horizontal .van-step__line{position:absolute;right:0;bottom:6px;left:0;height:1px;-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0);background-color:#ebedf0;background-color:var(--step-line-color,#ebedf0)}.van-step--horizontal.van-step--process{color:#323233;color:var(--step-process-text-color,#323233)}.van-step--horizontal.van-step--process .van-step__icon{display:block;line-height:1;font-size:12px;font-size:var(--step-icon-size,12px)}.van-step--vertical{padding:10px 10px 10px 0;line-height:18px}.van-step--vertical:after{border-bottom-width:1px}.van-step--vertical:last-child:after{border-bottom-width:none}.van-step--vertical:first-child:before{position:absolute;top:0;left:-15px;z-index:1;width:1px;height:20px;content:"";background-color:#fff;background-color:var(--white,#fff)}.van-step--vertical .van-step__circle,.van-step--vertical .van-step__icon,.van-step--vertical .van-step__line{position:absolute;top:19px;left:-14px;z-index:2;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.van-step--vertical .van-step__icon{line-height:1;font-size:12px;font-size:var(--step-icon-size,12px)}.van-step--vertical .van-step__line{z-index:1;width:1px;height:100%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);background-color:#ebedf0;background-color:var(--step-line-color,#ebedf0)}
\ No newline at end of file
+@import '../common/index.wxss';.van-steps{overflow:hidden;background-color:#fff;background-color:var(--steps-background-color,#fff)}.van-steps--horizontal{padding:10px}.van-steps--horizontal .van-step__wrapper{position:relative;display:-webkit-flex;display:flex;overflow:hidden}.van-steps--vertical{padding-left:10px}.van-steps--vertical .van-step__wrapper{padding:0 0 0 20px}.van-step{position:relative;-webkit-flex:1;flex:1;font-size:14px;font-size:var(--step-font-size,14px);color:#969799;color:var(--step-text-color,#969799)}.van-step--finish{color:#323233;color:var(--step-finish-text-color,#323233)}.van-step__circle{border-radius:50%;width:5px;width:var(--step-circle-size,5px);height:5px;height:var(--step-circle-size,5px);background-color:#969799;background-color:var(--step-circle-color,#969799)}.van-step--horizontal{padding-bottom:14px}.van-step--horizontal:first-child .van-step__title{-webkit-transform:none;transform:none}.van-step--horizontal:first-child .van-step__circle-container{padding:0 8px 0 0;-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0)}.van-step--horizontal:last-child{position:absolute;right:0;width:auto}.van-step--horizontal:last-child .van-step__title{text-align:right;-webkit-transform:none;transform:none}.van-step--horizontal:last-child .van-step__circle-container{right:0;padding:0 0 0 8px;-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0)}.van-step--horizontal .van-step__circle-container{position:absolute;bottom:6px;z-index:1;-webkit-transform:translate3d(-50%,50%,0);transform:translate3d(-50%,50%,0);background-color:#fff;background-color:var(--white,#fff);padding:0 8px;padding:0 var(--padding-xs,8px)}.van-step--horizontal .van-step__title{display:inline-block;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);font-size:12px;font-size:var(--step-horizontal-title-font-size,12px)}.van-step--horizontal .van-step__line{position:absolute;right:0;bottom:6px;left:0;height:2px;-webkit-transform:translate3d(0,50%,0);transform:translate3d(0,50%,0);background-color:#ebedf0;background-color:var(--step-line-color,#ebedf0)}.van-step--horizontal.van-step--process{color:#323233;color:var(--step-process-text-color,#323233)}.van-step--horizontal.van-step--process .van-step__icon{display:block;line-height:1;}.van-step--vertical{padding:10px 10px 10px 0;line-height:18px}.van-step--vertical:after{border-bottom-width:1px}.van-step--vertical:last-child:after{border-bottom-width:none}.van-step--vertical:first-child:before{position:absolute;top:0;left:-15px;z-index:1;width:1px;height:20px;content:"";background-color:#fff;background-color:var(--white,#fff)}.van-step--vertical .van-step__circle,.van-step--vertical .van-step__icon,.van-step--vertical .van-step__line{position:absolute;top:19px;left:-14px;z-index:2;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.van-step--vertical .van-step__icon{line-height:1;font-size:12px;font-size:var(--step-icon-size,12px)}.van-step--vertical .van-step__line{z-index:1;width:1px;height:100%;-webkit-transform:translate3d(-50%,0,0);transform:translate3d(-50%,0,0);background-color:#ebedf0;background-color:var(--step-line-color,#ebedf0)}.van-step__title{padding-bottom: 10rpx;}
\ No newline at end of file
diff --git a/miniprogram/pageage/project_checkDetection/add/index.js b/miniprogram/pageage/project_checkDetection/add/index.js
index 3eaf3d2..1754ac9 100644
--- a/miniprogram/pageage/project_checkDetection/add/index.js
+++ b/miniprogram/pageage/project_checkDetection/add/index.js
@@ -24,7 +24,9 @@ Page({
witnessUserName:"",
checkTime:"",
laboratoryName:"",
- qualifiedFlagList:[{id:'Y',text:"是"},{id:'N',text:"否"}]
+ qualifiedFlagList:[{id:'Y',text:"是"},{id:'N',text:"否"}],
+ flowNodes:[{text:'开始'},{text:'提交申请'},{text:'检测报告'},{text:'监理审批'},{text:'结束'}],
+ active: 0
},
/**
diff --git a/miniprogram/pageage/project_checkDetection/add/index.json b/miniprogram/pageage/project_checkDetection/add/index.json
index aeb0384..93f269e 100644
--- a/miniprogram/pageage/project_checkDetection/add/index.json
+++ b/miniprogram/pageage/project_checkDetection/add/index.json
@@ -1,5 +1,6 @@
{
"usingComponents": {
+ "van-steps": "@vant/weapp/steps/index",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom"
diff --git a/miniprogram/pageage/project_checkDetection/add/index.wxml b/miniprogram/pageage/project_checkDetection/add/index.wxml
index 22d379e..826e902 100644
--- a/miniprogram/pageage/project_checkDetection/add/index.wxml
+++ b/miniprogram/pageage/project_checkDetection/add/index.wxml
@@ -12,6 +12,7 @@
+
{{projectName}}
diff --git a/miniprogram/pageage/project_checkDetection/check/index.js b/miniprogram/pageage/project_checkDetection/check/index.js
index 29ddc3a..6616eaa 100644
--- a/miniprogram/pageage/project_checkDetection/check/index.js
+++ b/miniprogram/pageage/project_checkDetection/check/index.js
@@ -18,7 +18,9 @@ Page({
detectionResult:"1",
detectionFileData:[],
fileType:["pdf","png","jpg","jpeg"],
- request:app.globalData.reqUrl
+ request:app.globalData.reqUrl,
+ flowNodes:[{text:'开始'},{text:'提交申请'},{text:'检测报告'},{text:'监理审批'},{text:'结束'}],
+ active: 2
},
/**
diff --git a/miniprogram/pageage/project_checkDetection/check/index.json b/miniprogram/pageage/project_checkDetection/check/index.json
index b7b4e0b..d04e3cc 100644
--- a/miniprogram/pageage/project_checkDetection/check/index.json
+++ b/miniprogram/pageage/project_checkDetection/check/index.json
@@ -1,4 +1,6 @@
{
- "usingComponents": {"van-overlay": "@vant/weapp/overlay/index"},
+ "usingComponents": {
+ "van-steps": "@vant/weapp/steps/index",
+ "van-overlay": "@vant/weapp/overlay/index"},
"navigationStyle":"custom"
}
\ No newline at end of file
diff --git a/miniprogram/pageage/project_checkDetection/check/index.wxml b/miniprogram/pageage/project_checkDetection/check/index.wxml
index 73f7bcd..499ede0 100644
--- a/miniprogram/pageage/project_checkDetection/check/index.wxml
+++ b/miniprogram/pageage/project_checkDetection/check/index.wxml
@@ -12,6 +12,7 @@
+
diff --git a/miniprogram/pageage/project_checkDetection/edit/index.js b/miniprogram/pageage/project_checkDetection/edit/index.js
index ee27328..e3a9668 100644
--- a/miniprogram/pageage/project_checkDetection/edit/index.js
+++ b/miniprogram/pageage/project_checkDetection/edit/index.js
@@ -34,7 +34,9 @@ Page({
qualifiedFlagList:[{id:'Y',text:"是"},{id:'N',text:"否"}],
detectionFileData:[],
fileType:["pdf","png","jpg","jpeg"],
- request:app.globalData.reqUrl
+ request:app.globalData.reqUrl,
+ flowNodes:[{text:'开始'},{text:'提交申请'},{text:'检测报告'},{text:'监理审批'},{text:'结束'}],
+ active: 1
},
/**
diff --git a/miniprogram/pageage/project_checkDetection/edit/index.json b/miniprogram/pageage/project_checkDetection/edit/index.json
index 5c42e53..0c4e695 100644
--- a/miniprogram/pageage/project_checkDetection/edit/index.json
+++ b/miniprogram/pageage/project_checkDetection/edit/index.json
@@ -1,5 +1,6 @@
{
"usingComponents": {
+ "van-steps": "@vant/weapp/steps/index",
"van-overlay": "@vant/weapp/overlay/index",
"van-collapse": "@vant/weapp/collapse",
"van-collapse-item": "@vant/weapp/collapse-item"
diff --git a/miniprogram/pageage/project_checkDetection/edit/index.wxml b/miniprogram/pageage/project_checkDetection/edit/index.wxml
index 11b225d..8190a9b 100644
--- a/miniprogram/pageage/project_checkDetection/edit/index.wxml
+++ b/miniprogram/pageage/project_checkDetection/edit/index.wxml
@@ -12,6 +12,7 @@
+
{{projectName}}
diff --git a/miniprogram/pageage/project_checkDetection/edit/index.wxss b/miniprogram/pageage/project_checkDetection/edit/index.wxss
index b3d0a18..1d6aff4 100644
--- a/miniprogram/pageage/project_checkDetection/edit/index.wxss
+++ b/miniprogram/pageage/project_checkDetection/edit/index.wxss
@@ -28,7 +28,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
diff --git a/miniprogram/pageage/project_checkDetection/info/index.js b/miniprogram/pageage/project_checkDetection/info/index.js
index 068a5db..9f916c2 100644
--- a/miniprogram/pageage/project_checkDetection/info/index.js
+++ b/miniprogram/pageage/project_checkDetection/info/index.js
@@ -2,119 +2,146 @@
const app = getApp()
Page({
- /**
- * 页面的初始数据
- */
- data: {
- id:"",
- infoData:{},
- loadShow:false,
- loginName:"",
- showDel:false,
- detectionImageList:[],
- minDetectionFileImages:[],
- detectionFiles:[],
- fileUrls:[],
- activeName:"",
- flowRecordList:[],
- request:app.globalData.reqUrl
- },
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ id: "",
+ infoData: {},
+ loadShow: false,
+ loginName: "",
+ showDel: false,
+ detectionImageList: [],
+ minDetectionFileImages: [],
+ detectionFiles: [],
+ fileUrls: [],
+ activeName: "",
+ flowRecordList: [],
+ request: app.globalData.reqUrl,
+ flowNodes: [{
+ text: '开始'
+ }, {
+ text: '提交申请'
+ }, {
+ text: '检测报告'
+ }, {
+ text: '监理审批'
+ }, {
+ text: '结束'
+ }],
+ active: 100
+ },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad(options) {
- let {id} = options
- //获取缓存数据
- wx.getStorage({
- key: 'userinfo',
- success:res=>{
- this.setData({
- id,
- loginName:res.data.loginName
- })
- this.getInfo();
- this.getAuditinfo();
- }
- })
- },
-
- /**
- * 获取安全检查详情信息
- *
- */
- getInfo(){
- let {id} = this.data
- let that = this
- wx.request({
- url: app.globalData.reqUrl+'/wechat/projectDetection/info',
- method:"get",
- data:{
- id:id
- },
- success(res){
- res = res.data
- if(res.code == 200){
- let imageUrls = [];
- let minImageUrls = [];
- let fileUrls = [];
- let fileNames = [];
- //判断附件
- if(res.data.detectionFile){
- res.data.detectionFile.split(',').forEach(element => {
- let _file = element.split('.');
- _file = _file[_file.length-1].toLocaleUpperCase();
- //判断附件类型,如果是图片直接展示,非图片则显示附件
- if(_file=="PNG"||_file=="JPG"||_file=="JPEG"){
- imageUrls.push(that.data.request+element);
- minImageUrls.push(that.data.request+element+'.min.jpg');
- }else{
- let it = element.split('/');
- fileNames.push(it[it.length-1]);
- fileUrls.push(element);
- }
- });
- }
- that.setData({
- infoData:res.data,
- detectionImageList:imageUrls,
- minDetectionFileImages:minImageUrls,
- detectionFiles:fileNames,
- fileUrls,
- loadShow:false
- })
- //判断当前能否删除
- if(res.data.createBy==that.data.loginName && res.data.approveStatus!="4"){
- that.setData({
- showDel:true
- })
- }
- }
- }
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ let {
+ id
+ } = options
+ //获取缓存数据
+ wx.getStorage({
+ key: 'userinfo',
+ success: res => {
+ this.setData({
+ id,
+ loginName: res.data.loginName
})
- },
+ this.getInfo();
+ this.getAuditinfo();
+ }
+ })
+ },
- /**
- * 查询流程日志
- */
- getAuditinfo(){
- let that = this
- wx.request({
- url: app.globalData.reqUrl+'/wechat/projectAuditinfo/selectProjectAuditinfo',
- method:"get",
- data:{
- fromType:"1",
- fromId:this.data.id
- },
- success(res){
- res = res.data
- if(res.code == 200){
+ /**
+ * 获取安全检查详情信息
+ *
+ */
+ getInfo() {
+ let {
+ id
+ } = this.data
+ let that = this
+ wx.request({
+ url: app.globalData.reqUrl + '/wechat/projectDetection/info',
+ method: "get",
+ data: {
+ id: id
+ },
+ success(res) {
+ res = res.data
+ if (res.code == 200) {
+ let state = that.data.active;
+ if (res.data.approveStatus == null) {
+ state = 2;
+ }else if (res.data.approveStatus == "1") {
+ state = 3;
+ } else if (res.data.approveStatus == "3") {
+ state = 2;
+ }
+ that.setData({
+ active: state
+ })
+ let imageUrls = [];
+ let minImageUrls = [];
+ let fileUrls = [];
+ let fileNames = [];
+ //判断附件
+ if (res.data.detectionFile) {
+ res.data.detectionFile.split(',').forEach(element => {
+ let _file = element.split('.');
+ _file = _file[_file.length - 1].toLocaleUpperCase();
+ //判断附件类型,如果是图片直接展示,非图片则显示附件
+ if (_file == "PNG" || _file == "JPG" || _file == "JPEG") {
+ imageUrls.push(that.data.request + element);
+ minImageUrls.push(that.data.request + element + '.min.jpg');
+ } else {
+ let it = element.split('/');
+ fileNames.push(it[it.length - 1]);
+ fileUrls.push(element);
+ }
+ });
+ }
+ that.setData({
+ infoData: res.data,
+ detectionImageList: imageUrls,
+ minDetectionFileImages: minImageUrls,
+ detectionFiles: fileNames,
+ fileUrls,
+ loadShow: false
+ })
+ //判断当前能否删除
+ if (res.data.createBy == that.data.loginName && res.data.approveStatus != "4") {
that.setData({
- flowRecordList:res.data
+ showDel: true
})
}
}
- })
+ }
+ })
+ },
+
+ /**
+ * 查询流程日志
+ */
+ getAuditinfo() {
+ let that = this
+ wx.request({
+ url: app.globalData.reqUrl + '/wechat/projectAuditinfo/selectProjectAuditinfo',
+ method: "get",
+ data: {
+ fromType: "1",
+ fromId: this.data.id
+ },
+ success(res) {
+ res = res.data
+ if (res.code == 200) {
+ that.setData({
+ flowRecordList: res.data
+ })
+ }
+ }
+ })
},
// 手风琴
@@ -124,44 +151,46 @@ Page({
});
},
- onDelete(){
- //弹出确认
- let that = this
- wx.showModal({
- title: '提示',
- content: '是否确定删除此条数据?',
- success: function (sm) {
- if (sm.confirm) {
- // 用户点击了确定 可以调用了
- that.deleteData();
- } else if (sm.cancel) {
- console.log('用户点击取消');
- }
- }
- })
- },
- deleteData(){
- let {id} = this.data
- wx.request({
- url: app.globalData.reqUrl+'/wechat/projectDetection/remove',
- header: {
- "Username": this.data.loginName,
- },
- data:{
- id:id
- },
- method:"get",
- success(res){
- app.toast("删除成功!")
- wx.redirectTo({
- url: `../list/index`,
- })
- }
+ onDelete() {
+ //弹出确认
+ let that = this
+ wx.showModal({
+ title: '提示',
+ content: '是否确定删除此条数据?',
+ success: function (sm) {
+ if (sm.confirm) {
+ // 用户点击了确定 可以调用了
+ that.deleteData();
+ } else if (sm.cancel) {
+ console.log('用户点击取消');
+ }
+ }
+ })
+ },
+ deleteData() {
+ let {
+ id
+ } = this.data
+ wx.request({
+ url: app.globalData.reqUrl + '/wechat/projectDetection/remove',
+ header: {
+ "Username": this.data.loginName,
+ },
+ data: {
+ id: id
+ },
+ method: "get",
+ success(res) {
+ app.toast("删除成功!")
+ wx.redirectTo({
+ url: `../list/index`,
})
- },
+ }
+ })
+ },
//跳转修改页面
- onUpdate:function(){
+ onUpdate: function () {
let id = this.data.id;
wx.redirectTo({
url: `../edit/index?id=${id}`,
@@ -169,88 +198,88 @@ Page({
},
//展示图片
- showImg:function(e){
- var that=this;
+ showImg: function (e) {
+ var that = this;
wx.previewImage({
- urls: that.data.detectionImageList,
- current: that.data.detectionImageList[e.currentTarget.dataset.index]
+ urls: that.data.detectionImageList,
+ current: that.data.detectionImageList[e.currentTarget.dataset.index]
})
},
- downFile:function(e){
+ downFile: function (e) {
let that = this;
wx.downloadFile({
// 示例 url,并非真实存在
- url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.fileUrls[0],
+ url: app.globalData.uploadUrl + '/common/download/resource?resource=' + that.data.fileUrls[0],
success: function (res) {
const filePath = res.tempFilePath
wx.openDocument({
- filePath: filePath,
- success: function (res) {
- console.log('打开文档成功')
- },
- fail:function(res) {
- console.log(res)
- }
+ filePath: filePath,
+ success: function (res) {
+ console.log('打开文档成功')
+ },
+ fail: function (res) {
+ console.log(res)
+ }
})
}
- })
- //app.toast("暂不支持下载!如需下载请前往后台管理系统!!")
+ })
+ //app.toast("暂不支持下载!如需下载请前往后台管理系统!!")
},
returnToPage: function () {
/*关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面*/
wx.redirectTo({
- url: '../list/index',
+ url: '../list/index',
})
},
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady() {
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
- },
+ },
- /**
- * 生命周期函数--监听页面显示
- */
- onShow() {
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
- },
+ },
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide() {
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
- },
+ },
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload() {
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
- },
+ },
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh() {
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
- },
+ },
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom() {
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
- },
+ },
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage() {
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
- }
+ }
})
\ No newline at end of file
diff --git a/miniprogram/pageage/project_checkDetection/info/index.json b/miniprogram/pageage/project_checkDetection/info/index.json
index 8f17a33..101553f 100644
--- a/miniprogram/pageage/project_checkDetection/info/index.json
+++ b/miniprogram/pageage/project_checkDetection/info/index.json
@@ -1,5 +1,6 @@
{
"usingComponents": {
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse": "@vant/weapp/collapse",
"van-collapse-item": "@vant/weapp/collapse-item"
},
diff --git a/miniprogram/pageage/project_checkDetection/info/index.wxml b/miniprogram/pageage/project_checkDetection/info/index.wxml
index b165adf..9886ce6 100644
--- a/miniprogram/pageage/project_checkDetection/info/index.wxml
+++ b/miniprogram/pageage/project_checkDetection/info/index.wxml
@@ -12,6 +12,7 @@
+
diff --git a/miniprogram/pageage/project_checkDetection/info/index.wxss b/miniprogram/pageage/project_checkDetection/info/index.wxss
index 029322f..bc7a2b7 100644
--- a/miniprogram/pageage/project_checkDetection/info/index.wxss
+++ b/miniprogram/pageage/project_checkDetection/info/index.wxss
@@ -44,7 +44,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
diff --git a/miniprogram/pageage/project_checkDetection/list/index.wxml b/miniprogram/pageage/project_checkDetection/list/index.wxml
index f13a709..6c69b5b 100644
--- a/miniprogram/pageage/project_checkDetection/list/index.wxml
+++ b/miniprogram/pageage/project_checkDetection/list/index.wxml
@@ -43,7 +43,7 @@
-
+
暂无数据
diff --git a/miniprogram/pageage/project_checking/add/index.js b/miniprogram/pageage/project_checking/add/index.js
index 177831c..201f5e8 100644
--- a/miniprogram/pageage/project_checking/add/index.js
+++ b/miniprogram/pageage/project_checking/add/index.js
@@ -31,7 +31,9 @@ Page({
dataTypeLvl1List:[],
dataTypeLvl2List:[],
dataTypeLvl2AllList:[],
- list:[{id:1,text:"合格"},{id:2,text:"不合格"}]
+ list:[{id:1,text:"合格"},{id:2,text:"不合格"}],
+ flowNodes:[{text:'开始'},{text:'提交申请'},{text:'监理审批'},{text:'结束'}],
+ active: 0
},
/**
diff --git a/miniprogram/pageage/project_checking/add/index.json b/miniprogram/pageage/project_checking/add/index.json
index bd950dc..1e13121 100644
--- a/miniprogram/pageage/project_checking/add/index.json
+++ b/miniprogram/pageage/project_checking/add/index.json
@@ -1,5 +1,6 @@
{
"usingComponents": {
+ "van-steps": "@vant/weapp/steps/index",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom",
diff --git a/miniprogram/pageage/project_checking/add/index.wxml b/miniprogram/pageage/project_checking/add/index.wxml
index 870c7c4..dcc3bac 100644
--- a/miniprogram/pageage/project_checking/add/index.wxml
+++ b/miniprogram/pageage/project_checking/add/index.wxml
@@ -12,6 +12,7 @@
+
{{projectName}}
diff --git a/miniprogram/pageage/project_checking/edit/index.js b/miniprogram/pageage/project_checking/edit/index.js
index 207198f..c92c0ef 100644
--- a/miniprogram/pageage/project_checking/edit/index.js
+++ b/miniprogram/pageage/project_checking/edit/index.js
@@ -36,7 +36,9 @@ Page({
dataTypeLvl2List:[],
dataTypeLvl2AllList:[],
list:[{id:1,text:"合格"},{id:2,text:"不合格"}],
- request:app.globalData.reqUrl
+ request:app.globalData.reqUrl,
+ flowNodes:[{text:'开始'},{text:'提交申请'},{text:'监理审批'},{text:'结束'}],
+ active: 1
},
/**
diff --git a/miniprogram/pageage/project_checking/edit/index.json b/miniprogram/pageage/project_checking/edit/index.json
index 025d779..156870d 100644
--- a/miniprogram/pageage/project_checking/edit/index.json
+++ b/miniprogram/pageage/project_checking/edit/index.json
@@ -2,6 +2,7 @@
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom",
diff --git a/miniprogram/pageage/project_checking/edit/index.wxml b/miniprogram/pageage/project_checking/edit/index.wxml
index 7ded209..20ec963 100644
--- a/miniprogram/pageage/project_checking/edit/index.wxml
+++ b/miniprogram/pageage/project_checking/edit/index.wxml
@@ -12,6 +12,7 @@
+
{{projectName}}
diff --git a/miniprogram/pageage/project_checking/edit/index.wxss b/miniprogram/pageage/project_checking/edit/index.wxss
index 21845b5..4746c01 100644
--- a/miniprogram/pageage/project_checking/edit/index.wxss
+++ b/miniprogram/pageage/project_checking/edit/index.wxss
@@ -34,7 +34,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
diff --git a/miniprogram/pageage/project_checking/info/index.js b/miniprogram/pageage/project_checking/info/index.js
index 2f7acc8..0df76b8 100644
--- a/miniprogram/pageage/project_checking/info/index.js
+++ b/miniprogram/pageage/project_checking/info/index.js
@@ -2,83 +2,106 @@
const app = getApp()
Page({
- /**
- * 页面的初始数据
- */
- data: {
- id:"",
- infoData:{},
- imageList:[],
- minImageList:[],
- loadShow:false,
- loginName:"",
- showDel:false,
- activeName:"",
- flowRecordList:[],
- request:app.globalData.reqUrl
- },
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ id: "",
+ infoData: {},
+ imageList: [],
+ minImageList: [],
+ loadShow: false,
+ loginName: "",
+ showDel: false,
+ activeName: "",
+ flowRecordList: [],
+ request: app.globalData.reqUrl,
+ flowNodes: [{
+ text: '开始'
+ }, {
+ text: '提交申请'
+ }, {
+ text: '监理审批'
+ }, {
+ text: '结束'
+ }],
+ active: 100
+ },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad(options) {
- let {id} = options
- //获取缓存数据
- wx.getStorage({
- key: 'userinfo',
- success:res=>{
- this.setData({
- id,
- loginName:res.data.loginName
- })
- this.getInfo();
- this.getAuditinfo();
- }
- })
- },
-
- /**
- * 获取安全检查详情信息
- *
- */
- getInfo(){
- let {id} = this.data
- let that = this
- wx.request({
- url: app.globalData.reqUrl+'/wechat/projectchecking/info',
- method:"get",
- data:{
- id:id
- },
- success(res){
- res = res.data
- if(res.code == 200){
- let urls = [];
- let minUrls = [];
- if(res.data.imageUrls){
- res.data.imageUrls.split(',').forEach(element => {
- urls.push(that.data.request+element);
- minUrls.push(that.data.request+element+'.min.jpg');
- });
- }
- that.setData({
- infoData:res.data,
- imageList:urls,
- minImageList:minUrls,
- loadShow:false
- })
- //判断当前能否删除
- if(res.data.createBy==that.data.loginName && res.data.approveStatus!="4"){
- that.setData({
- showDel:true
- })
- }
- }
- }
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ let {
+ id
+ } = options
+ //获取缓存数据
+ wx.getStorage({
+ key: 'userinfo',
+ success: res => {
+ this.setData({
+ id,
+ loginName: res.data.loginName
})
- },
+ this.getInfo();
+ this.getAuditinfo();
+ }
+ })
+ },
- onDelete(){
+ /**
+ * 获取安全检查详情信息
+ *
+ */
+ getInfo() {
+ let {
+ id
+ } = this.data
+ let that = this
+ wx.request({
+ url: app.globalData.reqUrl + '/wechat/projectchecking/info',
+ method: "get",
+ data: {
+ id: id
+ },
+ success(res) {
+ res = res.data
+ if (res.code == 200) {
+ let state = that.data.active;
+ if (res.data.approveStatus == "1") {
+ state = 2;
+ } else if (res.data.approveStatus == "3") {
+ state = 1;
+ }
+ that.setData({
+ active: state
+ })
+ let urls = [];
+ let minUrls = [];
+ if (res.data.imageUrls) {
+ res.data.imageUrls.split(',').forEach(element => {
+ urls.push(that.data.request + element);
+ minUrls.push(that.data.request + element + '.min.jpg');
+ });
+ }
+ that.setData({
+ infoData: res.data,
+ imageList: urls,
+ minImageList: minUrls,
+ loadShow: false
+ })
+ //判断当前能否删除
+ if (res.data.createBy == that.data.loginName && res.data.approveStatus != "4") {
+ that.setData({
+ showDel: true
+ })
+ }
+ }
+ }
+ })
+ },
+
+ onDelete() {
//弹出确认
let that = this
wx.showModal({
@@ -86,64 +109,66 @@ Page({
content: '是否确定删除此条数据?',
success: function (sm) {
if (sm.confirm) {
- // 用户点击了确定 可以调用了
- that.deleteData();
- } else if (sm.cancel) {
- console.log('用户点击取消');
- }
+ // 用户点击了确定 可以调用了
+ that.deleteData();
+ } else if (sm.cancel) {
+ console.log('用户点击取消');
}
- })
- },
- deleteData(){
- let {id} = this.data
- wx.request({
- url: app.globalData.reqUrl+'/wechat/projectchecking/remove',
- header: {
- "Username": this.data.loginName,
- },
- data:{
- id:id
- },
- method:"get",
- success(res){
- app.toast("删除成功!")
- wx.navigateTo({
- url: `../list/index`,
- })
- }
- })
+ }
+ })
+ },
+ deleteData() {
+ let {
+ id
+ } = this.data
+ wx.request({
+ url: app.globalData.reqUrl + '/wechat/projectchecking/remove',
+ header: {
+ "Username": this.data.loginName,
+ },
+ data: {
+ id: id
+ },
+ method: "get",
+ success(res) {
+ app.toast("删除成功!")
+ wx.navigateTo({
+ url: `../list/index`,
+ })
+ }
+ })
},
//跳转修改页面
- onUpdate:function(){
+ onUpdate: function () {
let id = this.data.id;
- let dataTypeLvl1= this.data.infoData.dataTypeLvl1;
+ let dataTypeLvl1 = this.data.infoData.dataTypeLvl1;
wx.redirectTo({
url: `../edit/index?id=${id}&dt1=${dataTypeLvl1}`,
})
},
- /**
- * 查询流程日志
- */
- getAuditinfo(){
- let that = this
- wx.request({
- url: app.globalData.reqUrl+'/wechat/projectAuditinfo/selectProjectAuditinfo',
- method:"get",
- data:{
- fromType:"3",
- fromId:this.data.id
- },
- success(res){
- res = res.data
- if(res.code == 200){
- that.setData({
- flowRecordList:res.data
- })
- }
+ /**
+ * 查询流程日志
+ */
+ getAuditinfo() {
+ let that = this
+ wx.request({
+ url: app.globalData.reqUrl + '/wechat/projectAuditinfo/selectProjectAuditinfo',
+ method: "get",
+ data: {
+ fromType: "3",
+ fromId: this.data.id
+ },
+ success(res) {
+ res = res.data
+ if (res.code == 200) {
+ that.setData({
+ flowRecordList: res.data
+ })
}
- })
+ }
+ })
},
// 手风琴
@@ -153,68 +178,68 @@ Page({
});
},
- //展示图片
- showImg:function(e){
- var that=this;
- wx.previewImage({
- urls: that.data.imageList,
- current: that.data.imageList[e.currentTarget.dataset.index]
- })
+ //展示图片
+ showImg: function (e) {
+ var that = this;
+ wx.previewImage({
+ urls: that.data.imageList,
+ current: that.data.imageList[e.currentTarget.dataset.index]
+ })
},
returnToPage: function () {
/*关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面*/
wx.navigateTo({
- url: '../list/index',
+ url: '../list/index',
})
},
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady() {
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
- },
+ },
- /**
- * 生命周期函数--监听页面显示
- */
- onShow() {
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
- },
+ },
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide() {
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
- },
+ },
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload() {
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
- },
+ },
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh() {
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
- },
+ },
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom() {
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
- },
+ },
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage() {
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
- }
+ }
})
\ No newline at end of file
diff --git a/miniprogram/pageage/project_checking/info/index.json b/miniprogram/pageage/project_checking/info/index.json
index ec4d810..ec325a5 100644
--- a/miniprogram/pageage/project_checking/info/index.json
+++ b/miniprogram/pageage/project_checking/info/index.json
@@ -2,6 +2,7 @@
"usingComponents": {
"van-popup": "@vant/weapp/popup/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom",
diff --git a/miniprogram/pageage/project_checking/info/index.wxml b/miniprogram/pageage/project_checking/info/index.wxml
index 23a8551..9ff2407 100644
--- a/miniprogram/pageage/project_checking/info/index.wxml
+++ b/miniprogram/pageage/project_checking/info/index.wxml
@@ -1,138 +1,148 @@
-
-
-
-
-
-
-
-
-
-
- {{(flowRecordList.length-index) < 9 ?'0'+(flowRecordList.length-index):(flowRecordList.length-index)}}
-
- 提交举牌验收
- 审批举牌验收
- 合格
- 不合格
+
+
+
+
+
+
+
+
+
+
+
+ {{(flowRecordList.length-index) < 9 ?'0'+(flowRecordList.length-index):(flowRecordList.length-index)}}
+
+ 提交举牌验收
+ 审批举牌验收
+ 合格
+ 不合格
+
+
+
+
+
+ 办理用户:{{item.userName}}
+
+
+ 办理单位:{{item.deptName}}
+
+
+ 办理时间:{{item.createTime}}
+
+
+ 审批意见:{{item.comment}}
+
-
- 办理用户:{{item.userName}}
- 办理单位:{{item.deptName}}
- 办理时间:{{item.createTime}}
- 审批意见:{{item.comment}}
-
+
+
+
+
+
+ {{infoData.projectName}}
+
+
+
+
+ 单位名称
+ {{infoData.deptName}}
+
+
+
+
+ 验收图片
+
+
+
-
-
-
-
-
- {{infoData.projectName}}
-
-
-
-
- 单位名称
- {{infoData.deptName}}
-
-
-
-
- 验收图片
-
-
-
-
-
-
-
-
-
- 验收类型
- {{infoData.dataTypeLvl1Name}}
-
-
-
-
- 类型分类
- {{infoData.dataTypeLvl2Name}}
-
-
-
-
- 质量专员
- {{infoData.qualityUserName}} {{infoData.qualityUser}}
-
-
-
-
- 监理专员
- {{infoData.superviseUserName}} {{infoData.superviseUser}}
-
-
-
-
- 工序部位
- {{infoData.checkWorkingPosition}}
-
-
-
-
- 验收描述
- {{infoData.intro}}
-
-
-
-
- 验收时间
- {{infoData.checkingDate}}
-
-
-
-
- 验收结果
-
- 待审批
- 合格
- 不合格
-
-
+
+
+
+
+ 验收类型
+ {{infoData.dataTypeLvl1Name}}
+
+
+
+
+ 类型分类
+ {{infoData.dataTypeLvl2Name}}
+
+
+
+
+ 质量专员
+ {{infoData.qualityUserName}} {{infoData.qualityUser}}
+
+
+
+
+ 监理专员
+ {{infoData.superviseUserName}} {{infoData.superviseUser}}
+
+
+
+
+ 工序部位
+ {{infoData.checkWorkingPosition}}
+
+
+
+
+ 验收描述
+ {{infoData.intro}}
+
+
+
+
+ 验收时间
+ {{infoData.checkingDate}}
+
+
+
+
+ 验收结果
+
+ 待审批
+ 合格
+ 不合格
+
+
+
+
+
+ 提交时间
+ {{infoData.createTime}}
+
+
+
+
+ 提交用户
+ {{infoData.createBy}}
+
+
-
-
- 提交时间
- {{infoData.createTime}}
-
-
-
-
- 提交用户
- {{infoData.createBy}}
-
-
-
-
-
-
- 删除
- 修改
-
-
-
+
+
+
+ 删除
+ 修改
+
+
\ No newline at end of file
diff --git a/miniprogram/pageage/project_checking/info/index.wxss b/miniprogram/pageage/project_checking/info/index.wxss
index 029322f..bc7a2b7 100644
--- a/miniprogram/pageage/project_checking/info/index.wxss
+++ b/miniprogram/pageage/project_checking/info/index.wxss
@@ -44,7 +44,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
diff --git a/miniprogram/pageage/project_checking/list/index.wxml b/miniprogram/pageage/project_checking/list/index.wxml
index 698225c..8730d8e 100644
--- a/miniprogram/pageage/project_checking/list/index.wxml
+++ b/miniprogram/pageage/project_checking/list/index.wxml
@@ -50,7 +50,7 @@
-
+
暂无数据
diff --git a/miniprogram/pageage/project_deptWorks/list/index.wxml b/miniprogram/pageage/project_deptWorks/list/index.wxml
index 3674d63..14f4df0 100644
--- a/miniprogram/pageage/project_deptWorks/list/index.wxml
+++ b/miniprogram/pageage/project_deptWorks/list/index.wxml
@@ -41,7 +41,7 @@
-
+
暂无数据
diff --git a/miniprogram/pageage/project_files/index.js b/miniprogram/pageage/project_files/index.js
index d80f327..e64a148 100644
--- a/miniprogram/pageage/project_files/index.js
+++ b/miniprogram/pageage/project_files/index.js
@@ -46,7 +46,7 @@ Page({
let fileDepts = "";
if(res.data.minRoleId>3){
if(res.data.minRoleId==4){
- fileDepts += app.globalData.projectInfoList[0].projectInfoList[0].deptId;
+ fileDepts += app.globalData.projectInfoList[0].deptId;
}else{
app.globalData.projectInfoList.forEach(pro =>{
fileDepts += pro.projectInfoList[0].deptId;
diff --git a/miniprogram/pageage/project_files/index.wxml b/miniprogram/pageage/project_files/index.wxml
index 1baa98f..b4e78d9 100644
--- a/miniprogram/pageage/project_files/index.wxml
+++ b/miniprogram/pageage/project_files/index.wxml
@@ -57,7 +57,7 @@
-
+
暂无数据
diff --git a/miniprogram/pageage/project_insurance/list/index.wxml b/miniprogram/pageage/project_insurance/list/index.wxml
index 2f80a0e..17537b6 100644
--- a/miniprogram/pageage/project_insurance/list/index.wxml
+++ b/miniprogram/pageage/project_insurance/list/index.wxml
@@ -39,7 +39,7 @@
-
+
暂无数据
diff --git a/miniprogram/pageage/project_materialSeal/add/index.js b/miniprogram/pageage/project_materialSeal/add/index.js
index 9f63445..90593eb 100644
--- a/miniprogram/pageage/project_materialSeal/add/index.js
+++ b/miniprogram/pageage/project_materialSeal/add/index.js
@@ -24,7 +24,9 @@ Page({
showBgd:false,
rectifierData:[],
witnessUser:"",
- witnessUserName:""
+ witnessUserName:"",
+ flowNodes:[{text:'开始'},{text:'提交申请'},{text:'监理审批'},{text:'结束'}],
+ active: 0
},
/**
diff --git a/miniprogram/pageage/project_materialSeal/add/index.json b/miniprogram/pageage/project_materialSeal/add/index.json
index 7576d93..86417bf 100644
--- a/miniprogram/pageage/project_materialSeal/add/index.json
+++ b/miniprogram/pageage/project_materialSeal/add/index.json
@@ -6,6 +6,7 @@
"van-picker": "@vant/weapp/picker/index",
"van-area": "@vant/weapp/area/index",
"mkl-multi-select": "/components/@mkl/multi-select/index",
+ "van-steps": "@vant/weapp/steps/index",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom"
diff --git a/miniprogram/pageage/project_materialSeal/add/index.wxml b/miniprogram/pageage/project_materialSeal/add/index.wxml
index a64c2dd..b0ee414 100644
--- a/miniprogram/pageage/project_materialSeal/add/index.wxml
+++ b/miniprogram/pageage/project_materialSeal/add/index.wxml
@@ -12,6 +12,7 @@
+
{{projectName}}
diff --git a/miniprogram/pageage/project_materialSeal/edit/index.js b/miniprogram/pageage/project_materialSeal/edit/index.js
index c39e085..e3dbd93 100644
--- a/miniprogram/pageage/project_materialSeal/edit/index.js
+++ b/miniprogram/pageage/project_materialSeal/edit/index.js
@@ -28,7 +28,9 @@ Page({
activeName:"",
flowRecordList:[],
infoData:{},
- request:app.globalData.reqUrl
+ request:app.globalData.reqUrl,
+ flowNodes:[{text:'开始'},{text:'提交申请'},{text:'监理审批'},{text:'结束'}],
+ active: 1
},
/**
diff --git a/miniprogram/pageage/project_materialSeal/edit/index.json b/miniprogram/pageage/project_materialSeal/edit/index.json
index 8b96c47..7fa2cab 100644
--- a/miniprogram/pageage/project_materialSeal/edit/index.json
+++ b/miniprogram/pageage/project_materialSeal/edit/index.json
@@ -8,6 +8,7 @@
"mkl-multi-select": "/components/@mkl/multi-select/index",
"van-overlay": "@vant/weapp/overlay/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom"
diff --git a/miniprogram/pageage/project_materialSeal/edit/index.wxml b/miniprogram/pageage/project_materialSeal/edit/index.wxml
index 9df6b1b..0b07517 100644
--- a/miniprogram/pageage/project_materialSeal/edit/index.wxml
+++ b/miniprogram/pageage/project_materialSeal/edit/index.wxml
@@ -12,6 +12,7 @@
+
{{projectName}}
diff --git a/miniprogram/pageage/project_materialSeal/edit/index.wxss b/miniprogram/pageage/project_materialSeal/edit/index.wxss
index 2eb6356..bd0fbd0 100644
--- a/miniprogram/pageage/project_materialSeal/edit/index.wxss
+++ b/miniprogram/pageage/project_materialSeal/edit/index.wxss
@@ -67,7 +67,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
diff --git a/miniprogram/pageage/project_materialSeal/info/index.js b/miniprogram/pageage/project_materialSeal/info/index.js
index 0586be5..3fc0d4f 100644
--- a/miniprogram/pageage/project_materialSeal/info/index.js
+++ b/miniprogram/pageage/project_materialSeal/info/index.js
@@ -2,139 +2,162 @@
const app = getApp()
Page({
- /**
- * 页面的初始数据
- */
- data: {
- id:"",
- infoData:{},
- imageList:[],
- minImageList:[],
- loadShow:false,
- loginName:"",
- showDel:false,
- signFileNames:[],
- minSignFileImages:[],
- signFileImages:[],
- alterationFileNames:[],
- minAlterationFileImages:[],
- alterationFileImages:[],
- fileUrls:[],
- fileUrls2:[],
- activeName:"",
- flowRecordList:[],
- request:app.globalData.reqUrl
- },
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ id: "",
+ infoData: {},
+ imageList: [],
+ minImageList: [],
+ loadShow: false,
+ loginName: "",
+ showDel: false,
+ signFileNames: [],
+ minSignFileImages: [],
+ signFileImages: [],
+ alterationFileNames: [],
+ minAlterationFileImages: [],
+ alterationFileImages: [],
+ fileUrls: [],
+ fileUrls2: [],
+ activeName: "",
+ flowRecordList: [],
+ request: app.globalData.reqUrl,
+ flowNodes: [{
+ text: '开始'
+ }, {
+ text: '提交申请'
+ }, {
+ text: '监理审批'
+ }, {
+ text: '结束'
+ }],
+ active: 100
+ },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad(options) {
- let {id} = options
- //获取缓存数据
- wx.getStorage({
- key: 'userinfo',
- success:res=>{
- this.setData({
- id,
- loginName:res.data.loginName
- })
- this.getInfo();
- this.getAuditinfo();
- }
- })
- },
-
- /**
- * 获取安全检查详情信息
- *
- */
- getInfo(){
- let {id} = this.data
- let that = this
- wx.request({
- url: app.globalData.reqUrl+'/wechat/projectMaterialSeal/info',
- method:"get",
- data:{
- id:id
- },
- success(res){
- res = res.data
- if(res.code == 200){
- let urls = [];
- let minUrls = [];
- if(res.data.imageUrls){
- res.data.imageUrls.split(',').forEach(element => {
- urls.push(that.data.request+element);
- minUrls.push(that.data.request+element+'.min.jpg');
- });
- }
- let fileNames = [];
- let minFileImages = [];
- let fileImages = [];
- let fileUrls = [];
- //判断附件
- if(res.data.signFiles){
- res.data.signFiles.split(',').forEach(element => {
- let _file = element.split('.');
- _file = _file[_file.length-1].toLocaleUpperCase();
- //判断附件类型,如果是图片直接展示,非图片则显示附件
- if(_file=="PNG"||_file=="JPG"||_file=="JPEG"){
- fileImages.push(that.data.request+element);
- minFileImages.push(that.data.request+element+'.min.jpg');
- }else{
- let it = element.split('/');
- fileNames.push(it[it.length-1]);
- fileUrls.push(element);
- }
- });
- }
- let fileNames2 = [];
- let minFileImages2 = [];
- let fileImages2 = [];
- let fileUrls2 = [];
- //判断附件
- if(res.data.alterationFiles){
- res.data.alterationFiles.split(',').forEach(element => {
- let _file = element.split('.');
- _file = _file[_file.length-1].toLocaleUpperCase();
- //判断附件类型,如果是图片直接展示,非图片则显示附件
- if(_file=="PNG"||_file=="JPG"||_file=="JPEG"){
- fileImages2.push(that.data.request+element);
- minFileImages2.push(that.data.request+element+'.min.jpg');
- }else{
- let it = element.split('/');
- fileNames2.push(it[it.length-1]);
- fileUrls2.push(element);
- }
- });
- }
- that.setData({
- fileUrls,
- fileUrls2,
- signFileNames:fileNames,
- minSignFileImages:minFileImages,
- signFileImages:fileImages,
- alterationFileNames:fileNames2,
- minAlterationFileImages:minFileImages2,
- alterationFileImages:fileImages2,
- infoData:res.data,
- imageList:urls,
- minImageList:minUrls,
- loadShow:false
- })
- //判断当前能否删除
- if(res.data.createBy==that.data.loginName && res.data.approveStatus!="4"){
- that.setData({
- showDel:true
- })
- }
- }
- }
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ let {
+ id
+ } = options
+ //获取缓存数据
+ wx.getStorage({
+ key: 'userinfo',
+ success: res => {
+ this.setData({
+ id,
+ loginName: res.data.loginName
})
- },
+ this.getInfo();
+ this.getAuditinfo();
+ }
+ })
+ },
- onDelete(){
+ /**
+ * 获取安全检查详情信息
+ *
+ */
+ getInfo() {
+ let {
+ id
+ } = this.data
+ let that = this
+ wx.request({
+ url: app.globalData.reqUrl + '/wechat/projectMaterialSeal/info',
+ method: "get",
+ data: {
+ id: id
+ },
+ success(res) {
+ res = res.data
+ if (res.code == 200) {
+ let state = that.data.active;
+ if (res.data.approveStatus == "1") {
+ state = 2;
+ } else if (res.data.approveStatus == "3") {
+ state = 1;
+ }
+ that.setData({
+ active: state
+ })
+ let urls = [];
+ let minUrls = [];
+ if (res.data.imageUrls) {
+ res.data.imageUrls.split(',').forEach(element => {
+ urls.push(that.data.request + element);
+ minUrls.push(that.data.request + element + '.min.jpg');
+ });
+ }
+ let fileNames = [];
+ let minFileImages = [];
+ let fileImages = [];
+ let fileUrls = [];
+ //判断附件
+ if (res.data.signFiles) {
+ res.data.signFiles.split(',').forEach(element => {
+ let _file = element.split('.');
+ _file = _file[_file.length - 1].toLocaleUpperCase();
+ //判断附件类型,如果是图片直接展示,非图片则显示附件
+ if (_file == "PNG" || _file == "JPG" || _file == "JPEG") {
+ fileImages.push(that.data.request + element);
+ minFileImages.push(that.data.request + element + '.min.jpg');
+ } else {
+ let it = element.split('/');
+ fileNames.push(it[it.length - 1]);
+ fileUrls.push(element);
+ }
+ });
+ }
+ let fileNames2 = [];
+ let minFileImages2 = [];
+ let fileImages2 = [];
+ let fileUrls2 = [];
+ //判断附件
+ if (res.data.alterationFiles) {
+ res.data.alterationFiles.split(',').forEach(element => {
+ let _file = element.split('.');
+ _file = _file[_file.length - 1].toLocaleUpperCase();
+ //判断附件类型,如果是图片直接展示,非图片则显示附件
+ if (_file == "PNG" || _file == "JPG" || _file == "JPEG") {
+ fileImages2.push(that.data.request + element);
+ minFileImages2.push(that.data.request + element + '.min.jpg');
+ } else {
+ let it = element.split('/');
+ fileNames2.push(it[it.length - 1]);
+ fileUrls2.push(element);
+ }
+ });
+ }
+ that.setData({
+ fileUrls,
+ fileUrls2,
+ signFileNames: fileNames,
+ minSignFileImages: minFileImages,
+ signFileImages: fileImages,
+ alterationFileNames: fileNames2,
+ minAlterationFileImages: minFileImages2,
+ alterationFileImages: fileImages2,
+ infoData: res.data,
+ imageList: urls,
+ minImageList: minUrls,
+ loadShow: false
+ })
+ //判断当前能否删除
+ if (res.data.createBy == that.data.loginName && res.data.approveStatus != "4") {
+ that.setData({
+ showDel: true
+ })
+ }
+ }
+ }
+ })
+ },
+
+ onDelete() {
//弹出确认
let that = this
wx.showModal({
@@ -142,37 +165,39 @@ Page({
content: '是否确定删除此条数据?',
success: function (sm) {
if (sm.confirm) {
- // 用户点击了确定 可以调用了
- that.deleteData();
- } else if (sm.cancel) {
- console.log('用户点击取消');
- }
+ // 用户点击了确定 可以调用了
+ that.deleteData();
+ } else if (sm.cancel) {
+ console.log('用户点击取消');
}
- })
- },
- deleteData(){
- let {id} = this.data
- let that = this;
- wx.request({
- url: app.globalData.reqUrl+"/wechat/projectMaterialSeal/remove",
- header: {
- "Username": this.data.loginName,
- },
- data:{
- id:id
- },
- method:"get",
- success(res){
- app.toast("删除成功!")
- wx.redirectTo({
- url: `../list/index`
- })
- }
- })
+ }
+ })
+ },
+ deleteData() {
+ let {
+ id
+ } = this.data
+ let that = this;
+ wx.request({
+ url: app.globalData.reqUrl + "/wechat/projectMaterialSeal/remove",
+ header: {
+ "Username": this.data.loginName,
+ },
+ data: {
+ id: id
+ },
+ method: "get",
+ success(res) {
+ app.toast("删除成功!")
+ wx.redirectTo({
+ url: `../list/index`
+ })
+ }
+ })
},
//跳转修改页面
- onUpdate:function(){
+ onUpdate: function () {
let id = this.data.id;
wx.redirectTo({
url: `../edit/index?id=${id}`,
@@ -180,26 +205,26 @@ Page({
},
/**
- * 查询流程日志
- */
- getAuditinfo(){
- let that = this
- wx.request({
- url: app.globalData.reqUrl+'/wechat/projectAuditinfo/selectProjectAuditinfo',
- method:"get",
- data:{
- fromType:"4",
- fromId:this.data.id
- },
- success(res){
- res = res.data
- if(res.code == 200){
- that.setData({
- flowRecordList:res.data
- })
- }
+ * 查询流程日志
+ */
+ getAuditinfo() {
+ let that = this
+ wx.request({
+ url: app.globalData.reqUrl + '/wechat/projectAuditinfo/selectProjectAuditinfo',
+ method: "get",
+ data: {
+ fromType: "4",
+ fromId: this.data.id
+ },
+ success(res) {
+ res = res.data
+ if (res.code == 200) {
+ that.setData({
+ flowRecordList: res.data
+ })
}
- })
+ }
+ })
},
// 手风琴
@@ -209,130 +234,130 @@ Page({
});
},
- //展示图片
- showImg:function(e){
- var that=this;
- wx.previewImage({
- urls: that.data.imageList,
- current: that.data.imageList[e.currentTarget.dataset.index]
- })
+ //展示图片
+ showImg: function (e) {
+ var that = this;
+ wx.previewImage({
+ urls: that.data.imageList,
+ current: that.data.imageList[e.currentTarget.dataset.index]
+ })
},
- //展示图片
- showSignFileImg:function(e){
- var that=this;
- wx.previewImage({
- urls: that.data.signFileImages,
- current: that.data.signFileImages[e.currentTarget.dataset.index]
- })
- },
+ //展示图片
+ showSignFileImg: function (e) {
+ var that = this;
+ wx.previewImage({
+ urls: that.data.signFileImages,
+ current: that.data.signFileImages[e.currentTarget.dataset.index]
+ })
+ },
- //展示图片
- showAlterationFileImg:function(e){
- var that=this;
- wx.previewImage({
- urls: that.data.alterationFileImages,
- current: that.data.alterationFileImages[e.currentTarget.dataset.index]
- })
- },
+ //展示图片
+ showAlterationFileImg: function (e) {
+ var that = this;
+ wx.previewImage({
+ urls: that.data.alterationFileImages,
+ current: that.data.alterationFileImages[e.currentTarget.dataset.index]
+ })
+ },
- downFile:function(e){
- let idx = e.currentTarget.dataset['index'];
- let that = this;
- wx.downloadFile({
- // 示例 url,并非真实存在
- url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.fileUrls[idx],
- success: function (res) {
- const filePath = res.tempFilePath
- wx.openDocument({
- filePath: filePath,
- success: function (res) {
- console.log('打开文档成功')
- },
- fail:function(res) {
- console.log(res)
- }
- })
- }
+ downFile: function (e) {
+ let idx = e.currentTarget.dataset['index'];
+ let that = this;
+ wx.downloadFile({
+ // 示例 url,并非真实存在
+ url: app.globalData.uploadUrl + '/common/download/resource?resource=' + that.data.fileUrls[idx],
+ success: function (res) {
+ const filePath = res.tempFilePath
+ wx.openDocument({
+ filePath: filePath,
+ success: function (res) {
+ console.log('打开文档成功')
+ },
+ fail: function (res) {
+ console.log(res)
+ }
+ })
+ }
})
//app.toast("暂不支持下载!如需下载请前往后台管理系统!!")
- },
+ },
- downFile2:function(e){
- let idx = e.currentTarget.dataset['index'];
- let that = this;
- wx.downloadFile({
- // 示例 url,并非真实存在
- url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.fileUrls2[idx],
- success: function (res) {
- const filePath = res.tempFilePath
- wx.openDocument({
- filePath: filePath,
- success: function (res) {
- console.log('打开文档成功')
- },
- fail:function(res) {
- console.log(res)
- }
- })
- }
+ downFile2: function (e) {
+ let idx = e.currentTarget.dataset['index'];
+ let that = this;
+ wx.downloadFile({
+ // 示例 url,并非真实存在
+ url: app.globalData.uploadUrl + '/common/download/resource?resource=' + that.data.fileUrls2[idx],
+ success: function (res) {
+ const filePath = res.tempFilePath
+ wx.openDocument({
+ filePath: filePath,
+ success: function (res) {
+ console.log('打开文档成功')
+ },
+ fail: function (res) {
+ console.log(res)
+ }
+ })
+ }
})
//app.toast("暂不支持下载!如需下载请前往后台管理系统!!")
- },
+ },
returnToPage: function () {
/*关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面*/
wx.redirectTo({
- url: '../list/index'
+ url: '../list/index'
})
},
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady() {
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
- },
+ },
- /**
- * 生命周期函数--监听页面显示
- */
- onShow() {
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
- },
+ },
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide() {
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
- },
+ },
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload() {
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
- },
+ },
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh() {
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
- },
+ },
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom() {
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
- },
+ },
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage() {
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
- }
+ }
})
\ No newline at end of file
diff --git a/miniprogram/pageage/project_materialSeal/info/index.json b/miniprogram/pageage/project_materialSeal/info/index.json
index b6d8dd8..af272cb 100644
--- a/miniprogram/pageage/project_materialSeal/info/index.json
+++ b/miniprogram/pageage/project_materialSeal/info/index.json
@@ -2,6 +2,7 @@
"usingComponents": {
"van-popup": "@vant/weapp/popup/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom",
diff --git a/miniprogram/pageage/project_materialSeal/info/index.wxml b/miniprogram/pageage/project_materialSeal/info/index.wxml
index 16f3475..f8f81cf 100644
--- a/miniprogram/pageage/project_materialSeal/info/index.wxml
+++ b/miniprogram/pageage/project_materialSeal/info/index.wxml
@@ -12,6 +12,7 @@
+
diff --git a/miniprogram/pageage/project_materialSeal/info/index.wxss b/miniprogram/pageage/project_materialSeal/info/index.wxss
index 029322f..bc7a2b7 100644
--- a/miniprogram/pageage/project_materialSeal/info/index.wxss
+++ b/miniprogram/pageage/project_materialSeal/info/index.wxss
@@ -44,7 +44,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
diff --git a/miniprogram/pageage/project_materialSeal/list/index.wxml b/miniprogram/pageage/project_materialSeal/list/index.wxml
index dae8cb6..e4bce98 100644
--- a/miniprogram/pageage/project_materialSeal/list/index.wxml
+++ b/miniprogram/pageage/project_materialSeal/list/index.wxml
@@ -46,7 +46,7 @@
-
+
暂无数据
diff --git a/miniprogram/pageage/project_measure/add/index.js b/miniprogram/pageage/project_measure/add/index.js
index 9252d80..0ec062e 100644
--- a/miniprogram/pageage/project_measure/add/index.js
+++ b/miniprogram/pageage/project_measure/add/index.js
@@ -39,7 +39,9 @@ Page({
id: 2,
text: "不合格"
}],
- fileType: ["doc", "docx", "xls", "xlsx", "ppt", "pptx", "pdf", "png", "jpg", "jpeg"]
+ fileType: ["doc", "docx", "xls", "xlsx", "ppt", "pptx", "pdf", "png", "jpg", "jpeg"],
+ flowNodes:[{text:'开始'},{text:'提交申请'},{text:'监理审批'},{text:'结束'}],
+ active: 0
},
/**
diff --git a/miniprogram/pageage/project_measure/add/index.json b/miniprogram/pageage/project_measure/add/index.json
index aeb0384..21213b2 100644
--- a/miniprogram/pageage/project_measure/add/index.json
+++ b/miniprogram/pageage/project_measure/add/index.json
@@ -1,5 +1,6 @@
{
"usingComponents": {
+ "van-steps": "@vant/weapp/steps/index",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom"
diff --git a/miniprogram/pageage/project_measure/add/index.wxml b/miniprogram/pageage/project_measure/add/index.wxml
index 9e96806..aa2e8dd 100644
--- a/miniprogram/pageage/project_measure/add/index.wxml
+++ b/miniprogram/pageage/project_measure/add/index.wxml
@@ -12,6 +12,7 @@
+
{{projectName}}
diff --git a/miniprogram/pageage/project_measure/edit/index.js b/miniprogram/pageage/project_measure/edit/index.js
index 060489f..3ca992f 100644
--- a/miniprogram/pageage/project_measure/edit/index.js
+++ b/miniprogram/pageage/project_measure/edit/index.js
@@ -27,6 +27,8 @@ Page({
type: "",
info: "",
filesData: [],
+ flowNodes:[{text:'开始'},{text:'提交申请'},{text:'监理审批'},{text:'结束'}],
+ active: 1
},
/**
diff --git a/miniprogram/pageage/project_measure/edit/index.json b/miniprogram/pageage/project_measure/edit/index.json
index 5c42e53..804b5fd 100644
--- a/miniprogram/pageage/project_measure/edit/index.json
+++ b/miniprogram/pageage/project_measure/edit/index.json
@@ -2,6 +2,7 @@
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom"
diff --git a/miniprogram/pageage/project_measure/edit/index.wxml b/miniprogram/pageage/project_measure/edit/index.wxml
index e1b5e5a..93fb0a1 100644
--- a/miniprogram/pageage/project_measure/edit/index.wxml
+++ b/miniprogram/pageage/project_measure/edit/index.wxml
@@ -12,6 +12,7 @@
+
{{projectName}}
diff --git a/miniprogram/pageage/project_measure/edit/index.wxss b/miniprogram/pageage/project_measure/edit/index.wxss
index b3d0a18..1d6aff4 100644
--- a/miniprogram/pageage/project_measure/edit/index.wxss
+++ b/miniprogram/pageage/project_measure/edit/index.wxss
@@ -28,7 +28,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
diff --git a/miniprogram/pageage/project_measure/info/index.js b/miniprogram/pageage/project_measure/info/index.js
index e089dc0..9cc88d8 100644
--- a/miniprogram/pageage/project_measure/info/index.js
+++ b/miniprogram/pageage/project_measure/info/index.js
@@ -2,141 +2,166 @@
const app = getApp()
Page({
- /**
- * 页面的初始数据
- */
- data: {
- id:"",
- infoData:{},
- loadShow:false,
- loginName:"",
- showDel:false,
- imageList:[],
- minImageList:[],
- activeName:"",
- flowRecordList:[],
- request:app.globalData.reqUrl
- },
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ id: "",
+ infoData: {},
+ loadShow: false,
+ loginName: "",
+ showDel: false,
+ imageList: [],
+ minImageList: [],
+ activeName: "",
+ flowRecordList: [],
+ request: app.globalData.reqUrl,
+ flowNodes: [{
+ text: '开始'
+ }, {
+ text: '提交申请'
+ }, {
+ text: '监理审批'
+ }, {
+ text: '结束'
+ }],
+ active: 100
+ },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad(options) {
- let {id} = options
- //获取缓存数据
- wx.getStorage({
- key: 'userinfo',
- success:res=>{
- this.setData({
- id,
- loginName:res.data.loginName
- })
- this.getInfo();
- this.getAuditinfo();
- }
- })
- },
-
-
- /**
- * 获取安全检查详情信息
- *
- */
- getInfo(){
- let {id} = this.data
- let that = this
- wx.request({
- url: app.globalData.reqUrl+'/wechat/projectMeasure/info',
- method:"get",
- data:{
- id:id
- },
- success(res){
- res = res.data
- if(res.code == 200){
- let urls = [];
- let minUrls = [];
- if(res.data.imageUrls){
- res.data.imageUrls.split(',').forEach(element => {
- urls.push(that.data.request+element);
- minUrls.push(that.data.request+element+'.min.jpg');
- });
- }
- that.setData({
- infoData:res.data,
- imageList:urls,
- minImageList:minUrls,
- loadShow:false
- })
- //判断当前能否删除
- if(res.data.createBy==that.data.loginName && res.data.approveStatus!="4"){
- that.setData({
- showDel:true
- })
- }
- }
- }
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ let {
+ id
+ } = options
+ //获取缓存数据
+ wx.getStorage({
+ key: 'userinfo',
+ success: res => {
+ this.setData({
+ id,
+ loginName: res.data.loginName
})
- },
+ this.getInfo();
+ this.getAuditinfo();
+ }
+ })
+ },
- onDelete(){
- //弹出确认
- let that = this
- wx.showModal({
- title: '提示',
- content: '是否确定删除此条数据?',
- success: function (sm) {
- if (sm.confirm) {
- // 用户点击了确定 可以调用了
- that.deleteData();
- } else if (sm.cancel) {
- console.log('用户点击取消');
- }
- }
- })
- },
- deleteData(){
- let {id} = this.data
- let that = this;
- wx.request({
- url: app.globalData.reqUrl+'/wechat/projectMeasure/remove',
- header: {
- "Username": that.data.loginName,
- },
- data:{
- id:id
- },
- method:"get",
- success(res){
- app.toast("删除成功!")
- wx.redirectTo({
- url: `../list/index`,
- })
- }
- })
- },
- /**
- * 查询流程日志
- */
- getAuditinfo(){
- let that = this
- wx.request({
- url: app.globalData.reqUrl+'/wechat/projectAuditinfo/selectProjectAuditinfo',
- method:"get",
- data:{
- fromType:"2",
- fromId:this.data.id
- },
- success(res){
- res = res.data
- if(res.code == 200){
+ /**
+ * 获取安全检查详情信息
+ *
+ */
+ getInfo() {
+ let {
+ id
+ } = this.data
+ let that = this
+ wx.request({
+ url: app.globalData.reqUrl + '/wechat/projectMeasure/info',
+ method: "get",
+ data: {
+ id: id
+ },
+ success(res) {
+ res = res.data
+ if (res.code == 200) {
+ let state = that.data.active;
+ if (res.data.approveStatus == "1") {
+ state = 2;
+ } else if (res.data.approveStatus == "3") {
+ state = 1;
+ }
+ that.setData({
+ active: state
+ })
+ let urls = [];
+ let minUrls = [];
+ if (res.data.imageUrls) {
+ res.data.imageUrls.split(',').forEach(element => {
+ urls.push(that.data.request + element);
+ minUrls.push(that.data.request + element + '.min.jpg');
+ });
+ }
+ that.setData({
+ infoData: res.data,
+ imageList: urls,
+ minImageList: minUrls,
+ loadShow: false
+ })
+ //判断当前能否删除
+ if (res.data.createBy == that.data.loginName && res.data.approveStatus != "4") {
that.setData({
- flowRecordList:res.data
+ showDel: true
})
}
}
- })
+ }
+ })
+ },
+
+ onDelete() {
+ //弹出确认
+ let that = this
+ wx.showModal({
+ title: '提示',
+ content: '是否确定删除此条数据?',
+ success: function (sm) {
+ if (sm.confirm) {
+ // 用户点击了确定 可以调用了
+ that.deleteData();
+ } else if (sm.cancel) {
+ console.log('用户点击取消');
+ }
+ }
+ })
+ },
+ deleteData() {
+ let {
+ id
+ } = this.data
+ let that = this;
+ wx.request({
+ url: app.globalData.reqUrl + '/wechat/projectMeasure/remove',
+ header: {
+ "Username": that.data.loginName,
+ },
+ data: {
+ id: id
+ },
+ method: "get",
+ success(res) {
+ app.toast("删除成功!")
+ wx.redirectTo({
+ url: `../list/index`,
+ })
+ }
+ })
+ },
+
+ /**
+ * 查询流程日志
+ */
+ getAuditinfo() {
+ let that = this
+ wx.request({
+ url: app.globalData.reqUrl + '/wechat/projectAuditinfo/selectProjectAuditinfo',
+ method: "get",
+ data: {
+ fromType: "2",
+ fromId: this.data.id
+ },
+ success(res) {
+ res = res.data
+ if (res.code == 200) {
+ that.setData({
+ flowRecordList: res.data
+ })
+ }
+ }
+ })
},
// 手风琴
@@ -147,75 +172,75 @@ Page({
},
//跳转修改页面
- onUpdate:function(){
+ onUpdate: function () {
let id = this.data.id;
wx.redirectTo({
url: `../edit/index?id=${id}&measureType=${this.data.infoData.measureType}&measureInfo=${this.data.infoData.measureInfo}`,
})
},
- //展示图片
- showImg:function(e){
- var that=this;
- wx.previewImage({
- urls: that.data.imageList,
- current: that.data.imageList[e.currentTarget.dataset.index]
- })
+ //展示图片
+ showImg: function (e) {
+ var that = this;
+ wx.previewImage({
+ urls: that.data.imageList,
+ current: that.data.imageList[e.currentTarget.dataset.index]
+ })
},
- returnToPage: function () {
- /*关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面*/
- wx.redirectTo({
- url: '../list/index',
- })
- },
+ returnToPage: function () {
+ /*关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面*/
+ wx.redirectTo({
+ url: '../list/index',
+ })
+ },
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady() {
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
- },
+ },
- /**
- * 生命周期函数--监听页面显示
- */
- onShow() {
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
- },
+ },
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide() {
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
- },
+ },
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload() {
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
- },
+ },
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh() {
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
- },
+ },
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom() {
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
- },
+ },
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage() {
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
- }
+ }
})
\ No newline at end of file
diff --git a/miniprogram/pageage/project_measure/info/index.json b/miniprogram/pageage/project_measure/info/index.json
index 1f022fa..a397ba7 100644
--- a/miniprogram/pageage/project_measure/info/index.json
+++ b/miniprogram/pageage/project_measure/info/index.json
@@ -1,5 +1,6 @@
{
"usingComponents": {
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse": "@vant/weapp/collapse",
"van-collapse-item": "@vant/weapp/collapse-item"
},
diff --git a/miniprogram/pageage/project_measure/info/index.wxml b/miniprogram/pageage/project_measure/info/index.wxml
index 3b4e23e..7df9930 100644
--- a/miniprogram/pageage/project_measure/info/index.wxml
+++ b/miniprogram/pageage/project_measure/info/index.wxml
@@ -12,6 +12,7 @@
+
diff --git a/miniprogram/pageage/project_measure/info/index.wxss b/miniprogram/pageage/project_measure/info/index.wxss
index 029322f..bc7a2b7 100644
--- a/miniprogram/pageage/project_measure/info/index.wxss
+++ b/miniprogram/pageage/project_measure/info/index.wxss
@@ -44,7 +44,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
diff --git a/miniprogram/pageage/project_measure/list/index.wxml b/miniprogram/pageage/project_measure/list/index.wxml
index 5c10e66..a60c15b 100644
--- a/miniprogram/pageage/project_measure/list/index.wxml
+++ b/miniprogram/pageage/project_measure/list/index.wxml
@@ -46,7 +46,7 @@
-
+
暂无数据
diff --git a/miniprogram/pageage/project_problemmodify/quality/add/index.js b/miniprogram/pageage/project_problemmodify/quality/add/index.js
index 364df80..dc02eb3 100644
--- a/miniprogram/pageage/project_problemmodify/quality/add/index.js
+++ b/miniprogram/pageage/project_problemmodify/quality/add/index.js
@@ -6,157 +6,184 @@ Page({
* 页面的初始数据
*/
data: {
- maxDate:new Date(2088,1,1).getTime(),
- minDate:new Date().getTime()+(3600*48*1000),
- projectId:"",
- projectName:"",
- loginName:"",
- userName:"",
- rectifierData:[],
- rectifierData2:[],
- rectifierData3:[],
- imageInfoData:[],
+ maxDate: new Date(2088, 1, 1).getTime(),
+ minDate: new Date().getTime() + (3600 * 48 * 1000),
+ projectId: "",
+ projectName: "",
+ loginName: "",
+ userName: "",
+ rectifierData: [],
+ rectifierData2: [],
+ rectifierData3: [],
+ imageInfoData: [],
//验收时间
- nickedTime:'',
- loadShow:false,
- lordSent:"",
- lordSentUser:"",
- copySend:"",
- copySendUser:"",
- recheckSend:"",
- recheckSendUser:"",
- workParts:"",
- changeInfo:"",
- dangerType:"1",
- dangerTypeList:[],
- selectValue:"",
- selectIndex:"",
- problemType:"1",
- showHis:false,
- problemTypeList:[{id:"1",text:"常规检查"},{id:"2",text:"专项检查"}]
+ nickedTime: '',
+ loadShow: false,
+ lordSent: "",
+ lordSentUser: "",
+ copySend: "",
+ copySendUser: "",
+ recheckSend: "",
+ recheckSendUser: "",
+ workParts: "",
+ changeInfo: "",
+ dangerType: "1",
+ dangerTypeList: [],
+ selectValue: "",
+ selectIndex: "",
+ problemType: "1",
+ showHis: false,
+ problemTypeList: [{
+ id: "1",
+ text: "常规检查"
+ }, {
+ id: "2",
+ text: "专项检查"
+ }],
+ flowNodes:[{text:'开始'},{text:'提交隐患'},{text:'隐患整改'},{text:'隐患复检'},{text:'结束'}],
+ active: 0
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
- let {projectId,projectName} = options
+ let {
+ projectId,
+ projectName
+ } = options
//获取缓存数据
wx.getStorage({
- key: 'userinfo',
- success:res=>{
- this.setData({
- projectId:app.globalData.projectId,
- projectName:app.globalData.projectName,
- loginName:res.data.loginName,
- userName:res.data.nickName,
- recheckSend:res.data.nickName,
- recheckSendUser:res.data.loginName
- })
- this.getAllProjectUserData();
- this.getDangerTypeList();
- this.getHisInfo();
- }
- })
+ key: 'userinfo',
+ success: res => {
+ this.setData({
+ projectId: app.globalData.projectId,
+ projectName: app.globalData.projectName,
+ loginName: res.data.loginName,
+ userName: res.data.nickName,
+ recheckSend: res.data.nickName,
+ recheckSendUser: res.data.loginName
+ })
+ this.getAllProjectUserData();
+ this.getDangerTypeList();
+ this.getHisInfo();
+ }
+ })
},
//查询项目人员数据
- getAllProjectUserData(){
+ getAllProjectUserData() {
let that = this
wx.request({
- url: app.globalData.reqUrl+'/wechat/projectuserinfo/queryAllProjectUserByParams',
- method:"get",
- data:{
- projectId:that.data.projectId,
- loginName:that.data.loginName
+ url: app.globalData.reqUrl + '/wechat/projectuserinfo/queryAllProjectUserByParams',
+ method: "get",
+ data: {
+ projectId: that.data.projectId,
+ loginName: that.data.loginName
},
- header:{
- 'content-type': 'application/x-www-form-urlencoded'
+ header: {
+ 'content-type': 'application/x-www-form-urlencoded'
},
- success(res){
+ success(res) {
res = res.data
- if(res.code == 200){
+ if (res.code == 200) {
that.setData({
- rectifierData:res.data,
- rectifierData3:res.data,
+ rectifierData: res.data,
+ rectifierData3: res.data,
})
}
}
})
wx.request({
- url: app.globalData.reqUrl+'/wechat/projectuserinfo/queryAllProjectUserByParams',
- method:"get",
- data:{
- projectId:that.data.projectId,
- loginName:that.data.loginName,
- selectMy:'Y'
+ url: app.globalData.reqUrl + '/wechat/projectuserinfo/queryAllProjectUserByParams',
+ method: "get",
+ data: {
+ projectId: that.data.projectId,
+ loginName: that.data.loginName,
+ selectMy: 'Y'
},
- header:{
- 'content-type': 'application/x-www-form-urlencoded'
+ header: {
+ 'content-type': 'application/x-www-form-urlencoded'
},
- success(res){
- res = res.data
- if(res.code == 200){
+ success(res) {
+ res = res.data;
+ if (res.code == 200) {
+ let findMy = false;
+ res.data.forEach(it => {
+ if (it.userinfoList.length > 0) {
+ it.userinfoList.forEach(u => {
+ if (that.data.loginName == u.phonenumber) {
+ findMy = true;
+ }
+ });
+ }
+ });
+ if(!findMy){
+ res.data[0].userinfoList.push({state:false,nickName:that.data.userName,jobTypeName:'集团公司',phonenumber:that.data.loginName});
+ }
that.setData({
- rectifierData2:res.data,
+ rectifierData2: res.data,
})
}
}
})
},
- getHisInfo(){
+ getHisInfo() {
//这里查询当前登录人上次提交隐患,自动填充整改人,复检人,抄送人
let that = this
wx.request({
- url: app.globalData.reqUrl+'/wechat/projectProblemmodify/findLastDataByParams',
- method:"get",
- data:{
- projectId:that.data.projectId,
- createUser:that.data.loginName,
- infoType:1
+ url: app.globalData.reqUrl + '/wechat/projectProblemmodify/findLastDataByParams',
+ method: "get",
+ data: {
+ projectId: that.data.projectId,
+ createUser: that.data.loginName,
+ infoType: 1
},
- header:{
- 'content-type': 'application/x-www-form-urlencoded'
+ header: {
+ 'content-type': 'application/x-www-form-urlencoded'
},
- success(res){
+ success(res) {
res = res.data
- if(res.code == 200 && res.data){
+ if (res.code == 200 && res.data) {
that.setData({
- showHis:true,
- lordSent:res.data.lordSent,
- lordSentUser:res.data.lordSentUser,
- recheckSend:res.data.recheckSend,
- recheckSendUser:res.data.recheckSendUser,
- copySend:res.data.copySend,
- copySendUser:res.data.copySendUser
+ showHis: true,
+ lordSent: res.data.lordSent,
+ lordSentUser: res.data.lordSentUser,
+ recheckSend: res.data.recheckSend,
+ recheckSendUser: res.data.recheckSendUser,
+ copySend: res.data.copySend,
+ copySendUser: res.data.copySendUser
})
}
}
})
},
- getDangerTypeList(){
+ getDangerTypeList() {
let that = this
wx.request({
- url: app.globalData.reqUrl+'/wechat/projectProblemmodify/queryDangerType',
- method:"get",
- data:{
- type:'ssp_zlyhlx'
+ url: app.globalData.reqUrl + '/wechat/projectProblemmodify/queryDangerType',
+ method: "get",
+ data: {
+ type: 'ssp_zlyhlx'
},
- header:{
- 'content-type': 'application/x-www-form-urlencoded'
+ header: {
+ 'content-type': 'application/x-www-form-urlencoded'
},
- success(res){
+ success(res) {
res = res.data
- if(res.code == 200){
- let list=[];
- res.data.forEach(it =>{
- list.push({"id":it.dictValue,"text":it.dictLabel});
+ if (res.code == 200) {
+ let list = [];
+ res.data.forEach(it => {
+ list.push({
+ "id": it.dictValue,
+ "text": it.dictLabel
+ });
})
that.setData({
- dangerTypeList:list
+ dangerTypeList: list
})
}
}
@@ -164,7 +191,7 @@ Page({
},
//隐患描述
- onInputWorkParts(e){
+ onInputWorkParts(e) {
let workParts = e.detail.value
this.setData({
workParts
@@ -172,7 +199,7 @@ Page({
},
//整改要求
- onInputChangeInfoValue(e){
+ onInputChangeInfoValue(e) {
let changeInfo = e.detail.value
this.setData({
changeInfo
@@ -180,7 +207,7 @@ Page({
},
//验收时间
- onInputTime(e){
+ onInputTime(e) {
let nickedTime = e.detail
this.setData({
nickedTime
@@ -188,161 +215,178 @@ Page({
},
// list 上传图片
- onImagesArr(e){
+ onImagesArr(e) {
var data = this.data.imageInfoData
data = e.detail
this.setData({
- imageInfoData:data
+ imageInfoData: data
})
},
//添加整改人
- onAddLordSent(e){
- if(e.detail.length>0){
+ onAddLordSent(e) {
+ if (e.detail.length > 0) {
this.setData({
- lordSent:e.detail[0].userName,
- lordSentUser:e.detail[0].phoneNumber
+ lordSent: e.detail[0].userName,
+ lordSentUser: e.detail[0].phoneNumber
})
}
},
//添加抄送人
- onAddCopySend(e){
- if(e.detail.length>0){
- let phoneNumbers="";
- let userNames="";
- e.detail.forEach(it =>{
- phoneNumbers+=","+it.phoneNumber;
- userNames+=","+it.userName;
+ onAddCopySend(e) {
+ if (e.detail.length > 0) {
+ let phoneNumbers = "";
+ let userNames = "";
+ e.detail.forEach(it => {
+ phoneNumbers += "," + it.phoneNumber;
+ userNames += "," + it.userName;
});
this.setData({
- copySend:userNames.substring(1),
- copySendUser:phoneNumbers.substring(1)
+ copySend: userNames.substring(1),
+ copySendUser: phoneNumbers.substring(1)
})
- }else{
+ } else {
this.setData({
- copySend:"",
- copySendUser:""
+ copySend: "",
+ copySendUser: ""
})
}
},
//添加复检人
- onAddRecheckSend(e){
- if(e.detail.length>0){
+ onAddRecheckSend(e) {
+ if (e.detail.length > 0) {
this.setData({
- recheckSend:e.detail[0].userName,
- recheckSendUser:e.detail[0].phoneNumber
+ recheckSend: e.detail[0].userName,
+ recheckSendUser: e.detail[0].phoneNumber
})
}
},
-
+
//取消页面
- cancelSaveView(){
+ cancelSaveView() {
this.returnToPage()
},
//保存
- onProblemSubmitSave(){
+ onProblemSubmitSave() {
this.setData({
- loadShow:true
+ loadShow: true
})
let that = this
- let {projectId,projectName,dangerType,lordSent,lordSentUser,copySend,copySendUser,workParts,changeInfo,nickedTime,recheckSend,recheckSendUser,imageInfoData,loginName,problemType,userName} = that.data;
+ let {
+ projectId,
+ projectName,
+ dangerType,
+ lordSent,
+ lordSentUser,
+ copySend,
+ copySendUser,
+ workParts,
+ changeInfo,
+ nickedTime,
+ recheckSend,
+ recheckSendUser,
+ imageInfoData,
+ loginName,
+ problemType,
+ userName
+ } = that.data;
//数据效验
- if(projectId==""||loginName==""){
+ if (projectId == "" || loginName == "") {
app.toast("数据异常,请刷新页面重试!")
that.setData({
- loadShow:false
+ loadShow: false
})
return;
}
- if(imageInfoData.length==0){
+ if (imageInfoData.length == 0) {
app.toast("请上传隐患现场图片!")
that.setData({
- loadShow:false
+ loadShow: false
})
return;
}
- if(problemType==""){
+ if (problemType == "") {
app.toast("请选择检查类型!")
that.setData({
- loadShow:false
+ loadShow: false
})
return;
}
- if(dangerType==""){
+ if (dangerType == "") {
app.toast("请选择隐患类型!")
that.setData({
- loadShow:false
+ loadShow: false
})
return;
}
- if(workParts==""){
+ if (workParts == "") {
app.toast("请填写隐患描述!")
that.setData({
- loadShow:false
+ loadShow: false
})
return;
}
- if(changeInfo==""){
+ if (changeInfo == "") {
app.toast("请填写隐患整改要求!")
that.setData({
- loadShow:false
+ loadShow: false
})
return;
}
- if(nickedTime==""){
+ if (nickedTime == "") {
app.toast("请选择整改截至时间!")
that.setData({
- loadShow:false
+ loadShow: false
})
return;
}
- if(lordSent==""||lordSentUser==""){
+ if (lordSent == "" || lordSentUser == "") {
app.toast("请选择整改人!")
that.setData({
- loadShow:false
+ loadShow: false
})
return;
}
- if(recheckSend==""||recheckSendUser==""){
+ if (recheckSend == "" || recheckSendUser == "") {
app.toast("请选择复检人!")
that.setData({
- loadShow:false
+ loadShow: false
})
return;
}
- if(copySend==""||copySendUser==""){
+ if (copySend == "" || copySendUser == "") {
app.toast("请选择抄送人!")
that.setData({
- loadShow:false
+ loadShow: false
})
return;
}
let pos = copySend.split(",");
- pos.forEach(it =>{
- if(it==lordSent){
+ pos.forEach(it => {
+ if (it == lordSent) {
app.toast("抄送人中不能包含整改人!")
that.setData({
- loadShow:false
+ loadShow: false
})
return;
}
});
let fileUrls = [];
- imageInfoData.forEach(async (item)=>{
- let uploadUrl = app.globalData.uploadUrl+'/common/upload'
- let name = "file"
+ imageInfoData.forEach(async (item) => {
+ let uploadUrl = app.globalData.uploadUrl + '/common/upload'
+ let name = "file"
//这里复杂的图片上传,改为同步上传,因为小程序只能上传一张图片
- let obj = await that.syncUploadImage(uploadUrl,item,name);
+ let obj = await that.syncUploadImage(uploadUrl, item, name);
fileUrls.push(obj.data.fileName);
//验证图片上传完毕
- if(fileUrls.length == imageInfoData.length){
+ if (fileUrls.length == imageInfoData.length) {
let params = {
projectId,
- infoType:"1",
- problemArea:projectName,
+ infoType: "1",
+ problemArea: projectName,
problemType,
workParts,
changeInfo,
@@ -350,95 +394,97 @@ Page({
lordSentUser,
copySend,
copySendUser,
- checkState:0,
- nickedTime:nickedTime+" 23:59:59",
- smarkUrl:fileUrls.toString(),
- createUser:loginName,
+ checkState: 0,
+ nickedTime: nickedTime + " 23:59:59",
+ smarkUrl: fileUrls.toString(),
+ createUser: loginName,
dangerType,
recheckSend,
recheckSendUser
}
wx.request({
url: app.globalData.reqUrl + '/wechat/projectProblemmodify/addQuality',
- method:"POST",
- data:params,
+ method: "POST",
+ data: params,
header: {
"Username": loginName,
"Content-Type": "application/json"
},
- success(res){
+ success(res) {
that.setData({
- loadShow:false
+ loadShow: false
})
- res =res.data
- if(res.code == 200){
+ res = res.data
+ if (res.code == 200) {
app.toast("添加成功!")
- setTimeout(()=>{
- wx.redirectTo({
- url: '../list/index',
- })
- },200)
+ setTimeout(() => {
+ wx.redirectTo({
+ url: '../list/index',
+ })
+ }, 200)
}
}
- })
- }
- })
+ })
+ }
+ })
},
/**
* 这里考虑上传图片异步问题,封装为同步
*/
- syncUploadImage(url,uploadFile,name) {
+ syncUploadImage(url, uploadFile, name) {
return new Promise((resolve, reject) => {
wx.uploadFile({
- url, // 上传的服务器接口地址
- filePath: uploadFile,
- header: {
- "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
- },
- name, //上传的所需字段,后端提供
- formData: { user: 'test' },
- success: (res) => {
- // 上传完成操作
- const data = JSON.parse(res.data)
- resolve({
- data: data
- })
- },
- fail: (err) => {
- //上传失败:修改pedding为reject
- console.log("访问接口失败", err);
- wx.showToast({
- title: "网络出错,上传失败",
- icon: 'none',
- duration: 1000
- });
- reject(err)
- }
+ url, // 上传的服务器接口地址
+ filePath: uploadFile,
+ header: {
+ "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
+ },
+ name, //上传的所需字段,后端提供
+ formData: {
+ user: 'test'
+ },
+ success: (res) => {
+ // 上传完成操作
+ const data = JSON.parse(res.data)
+ resolve({
+ data: data
+ })
+ },
+ fail: (err) => {
+ //上传失败:修改pedding为reject
+ console.log("访问接口失败", err);
+ wx.showToast({
+ title: "网络出错,上传失败",
+ icon: 'none',
+ duration: 1000
+ });
+ reject(err)
+ }
});
})
},
//选择检查类型
- onSelectProblemType(e){
+ onSelectProblemType(e) {
this.setData({
- problemType:e.detail.id
+ problemType: e.detail.id
})
},
//选择隐患类型
- onSelectDangerType(e){
- this.setData({
- dangerType:e.detail.id
- })
- },
+ onSelectDangerType(e) {
+ this.setData({
+ dangerType: e.detail.id
+ })
+ },
- returnToPage: function () {
- /*关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面*/
- wx.redirectTo({
- url: '../list/index',
- })
- },
+ returnToPage: function () {
+ /*关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面*/
+ wx.redirectTo({
+ url: '../list/index',
+ })
+ },
/**
* 生命周期函数--监听页面初次渲染完成
diff --git a/miniprogram/pageage/project_problemmodify/quality/add/index.json b/miniprogram/pageage/project_problemmodify/quality/add/index.json
index 29ba37b..d58fcd4 100644
--- a/miniprogram/pageage/project_problemmodify/quality/add/index.json
+++ b/miniprogram/pageage/project_problemmodify/quality/add/index.json
@@ -1,5 +1,6 @@
{
"usingComponents": {
+ "van-steps": "@vant/weapp/steps/index",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom",
diff --git a/miniprogram/pageage/project_problemmodify/quality/add/index.wxml b/miniprogram/pageage/project_problemmodify/quality/add/index.wxml
index d6e4bd0..3ade737 100644
--- a/miniprogram/pageage/project_problemmodify/quality/add/index.wxml
+++ b/miniprogram/pageage/project_problemmodify/quality/add/index.wxml
@@ -12,6 +12,7 @@
+
{{projectName}}
diff --git a/miniprogram/pageage/project_problemmodify/quality/check/index.js b/miniprogram/pageage/project_problemmodify/quality/check/index.js
index 3959def..8c1981f 100644
--- a/miniprogram/pageage/project_problemmodify/quality/check/index.js
+++ b/miniprogram/pageage/project_problemmodify/quality/check/index.js
@@ -18,7 +18,9 @@ Page({
minImageList:[],
auditImageList:[],
auditMinImageList:[],
- request:app.globalData.reqUrl
+ request:app.globalData.reqUrl,
+ flowNodes:[{text:'开始'},{text:'提交隐患'},{text:'隐患整改'},{text:'隐患复检'},{text:'结束'}],
+ active: 3
},
/**
diff --git a/miniprogram/pageage/project_problemmodify/quality/check/index.json b/miniprogram/pageage/project_problemmodify/quality/check/index.json
index c95b086..d4934fa 100644
--- a/miniprogram/pageage/project_problemmodify/quality/check/index.json
+++ b/miniprogram/pageage/project_problemmodify/quality/check/index.json
@@ -1,6 +1,9 @@
{
"usingComponents": {
"van-popup": "@vant/weapp/popup/index",
+ "van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
+ "van-collapse-item": "@vant/weapp/collapse-item",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom",
diff --git a/miniprogram/pageage/project_problemmodify/quality/check/index.wxml b/miniprogram/pageage/project_problemmodify/quality/check/index.wxml
index 87efd61..4d4a70d 100644
--- a/miniprogram/pageage/project_problemmodify/quality/check/index.wxml
+++ b/miniprogram/pageage/project_problemmodify/quality/check/index.wxml
@@ -1,43 +1,98 @@
+
{{infoData.problemArea}}
+
+
+
+
+
+
+
+
+
+ {{(flowRecordList.length-index) < 9 ?'0'+(flowRecordList.length-index):(flowRecordList.length-index)}}
+ {{item.taskName}}{{item.commentResult}}
+ {{item.commentResult}}
+ {{item.commentResult}}
+ {{item.commentResult}}
+
+
+
+
+
+ 办理用户:{{item.assigneeName}}
+
+
+ 办理单位:{{item.deptName}}
+
+
+ 候选办理:{{item.candidate}}
+
+
+ 驳回节点:{{item.deleteReason}}
+
+
+ 接收时间:{{item.startTime}}
+
+
+ 处理时间:{{item.endTime}}
+
+
+ 处理耗时:{{item.duration}}
+
+
+ 处理意见:{{item.message}}
+
+
+
+
+
+
+
+
-
隐患图片
-
-
-
-
+
+
+
+
-
- 问题类型
-
- 常规检查
- 专项检查
-
-
-
+
+ 问题类型
+
+ 常规检查
+ 专项检查
+
+
+
隐患类型
@@ -103,56 +158,55 @@
-
- 问题整改
+
+ 问题整改
+
+
+
+
+ 整改说明
+ {{auditInfo.opinion}}
+
-
-
-
- 整改说明
- {{auditInfo.opinion}}
-
-
-
-
- 整改后图片
-
-
-
-
-
-
-
-
-
- 完成时间
- {{infoData.nickedTime}}
-
-
-
+
+
+ 整改后图片
+
+
+
+
+
+
+
+
+
+ 完成时间
+ {{infoData.nickedTime}}
+
+
+
-
- 整改复检意见
-
-
-
-
-
+
+ 整改复检意见
+
+
+
+
+
-
+
+
-
- 整改驳回
- 整改通过
-
+ 整改驳回
+ 整改通过
+
-
-
-
-
- 数据加载中!请稍后...
-
-
\ No newline at end of file
+
+
+
+
+ 数据加载中!请稍后...
+
+
\ No newline at end of file
diff --git a/miniprogram/pageage/project_problemmodify/quality/draft/index.js b/miniprogram/pageage/project_problemmodify/quality/draft/index.js
index f3d1687..7c80b6e 100644
--- a/miniprogram/pageage/project_problemmodify/quality/draft/index.js
+++ b/miniprogram/pageage/project_problemmodify/quality/draft/index.js
@@ -22,6 +22,8 @@ Page({
],
lordSent:"",
lordSentUser:"",
+ flowNodes:[{text:'开始'},{text:'提交隐患'},{text:'隐患整改'},{text:'隐患复检'},{text:'结束'}],
+ active: 0
},
/**
diff --git a/miniprogram/pageage/project_problemmodify/quality/draft/index.json b/miniprogram/pageage/project_problemmodify/quality/draft/index.json
index 29ba37b..d58fcd4 100644
--- a/miniprogram/pageage/project_problemmodify/quality/draft/index.json
+++ b/miniprogram/pageage/project_problemmodify/quality/draft/index.json
@@ -1,5 +1,6 @@
{
"usingComponents": {
+ "van-steps": "@vant/weapp/steps/index",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom",
diff --git a/miniprogram/pageage/project_problemmodify/quality/draft/index.wxml b/miniprogram/pageage/project_problemmodify/quality/draft/index.wxml
index f51ab9e..3086307 100644
--- a/miniprogram/pageage/project_problemmodify/quality/draft/index.wxml
+++ b/miniprogram/pageage/project_problemmodify/quality/draft/index.wxml
@@ -12,6 +12,7 @@
+
{{projectName}}
@@ -47,7 +48,7 @@
取消
- 提交隐患
+ 保存草稿
diff --git a/miniprogram/pageage/project_problemmodify/quality/info/index.js b/miniprogram/pageage/project_problemmodify/quality/info/index.js
index 09ae0f5..885ad43 100644
--- a/miniprogram/pageage/project_problemmodify/quality/info/index.js
+++ b/miniprogram/pageage/project_problemmodify/quality/info/index.js
@@ -2,221 +2,252 @@
const app = getApp()
Page({
- /**
- * 页面的初始数据
- */
- data: {
- id:"",
- infoData:{},
- loadShow:false,
- auditInfo:{},
- loginName:"",
- showDel:false,
- imageList:[],
- minImageList:[],
- auditImageList:[],
- auditMinImageList:[],
- request:app.globalData.reqUrl
- },
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ id: "",
+ infoData: {},
+ loadShow: false,
+ auditInfo: {},
+ loginName: "",
+ showDel: false,
+ imageList: [],
+ minImageList: [],
+ auditImageList: [],
+ auditMinImageList: [],
+ request: app.globalData.reqUrl,
+ flowNodes: [{
+ text: '开始'
+ }, {
+ text: '提交隐患'
+ }, {
+ text: '隐患整改'
+ }, {
+ text: '隐患复检'
+ }, {
+ text: '结束'
+ }],
+ active: 100
+ },
- /**
- * 生命周期函数--监听页面加载
- */
- onLoad(options) {
- let {id} = options
- //获取缓存数据
- wx.getStorage({
- key: 'userinfo',
- success:res=>{
- this.setData({
- id,
- loginName:res.data.loginName
- })
- this.getInfo();
- this.getAuditinfo();
- }
- })
- },
-
-
- /**
- * 获取安全检查详情信息
- *
- */
- getInfo(){
- let {id} = this.data
- let that = this
- wx.request({
- url: app.globalData.reqUrl+'/wechat/projectProblemmodify/info',
- method:"get",
- data:{
- id:id
- },
- success(res){
- res = res.data
- if(res.code == 200){
- let urls = [];
- let minUrls = [];
- if(res.data.smarkUrl){
- res.data.smarkUrl.split(',').forEach(element => {
- urls.push(that.data.request+element);
- minUrls.push(that.data.request+element+'.min.jpg');
- });
- }
- that.setData({
- infoData:res.data,
- imageList:urls,
- minImageList:minUrls,
- loadShow:false
- })
- //判断当前能否删除
- if(res.data.checkState!=4 && res.data.createUser==that.data.loginName){
- that.setData({
- showDel:true
- })
- }
- }
- }
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ let {
+ id
+ } = options
+ //获取缓存数据
+ wx.getStorage({
+ key: 'userinfo',
+ success: res => {
+ this.setData({
+ id,
+ loginName: res.data.loginName
})
- },
+ this.getInfo();
+ this.getAuditinfo();
+ }
+ })
+ },
- getAuditinfo(){
- let {id} = this.data
- let that = this
- wx.request({
- url: app.globalData.reqUrl+'/wechat/projectProblemmodify/queryAuditInfo',
- method:"get",
- data:{
- id:id
- },
- success(res){
- res = res.data
- if(res.code == 200 && res.data){
- let urls = [];
- let minUrls = [];
- if(res.data.fileUrls){
- res.data.fileUrls.split(',').forEach(element => {
- urls.push(that.data.request+element);
- minUrls.push(that.data.request+element+'.min.jpg');
- });
- }
+
+ /**
+ * 获取安全检查详情信息
+ *
+ */
+ getInfo() {
+ let {
+ id
+ } = this.data
+ let that = this
+ wx.request({
+ url: app.globalData.reqUrl + '/wechat/projectProblemmodify/info',
+ method: "get",
+ data: {
+ id: id
+ },
+ success(res) {
+ res = res.data
+ if (res.code == 200) {
+ let state = that.data.active;
+ if (res.data.checkState == "0") {
+ state = 2;
+ } else if (res.data.checkState == "1") {
+ state = 3;
+ } else if (res.data.checkState == "3") {
+ state = 1;
+ }
+ that.setData({
+ active: state
+ })
+ let urls = [];
+ let minUrls = [];
+ if (res.data.smarkUrl) {
+ res.data.smarkUrl.split(',').forEach(element => {
+ urls.push(that.data.request + element);
+ minUrls.push(that.data.request + element + '.min.jpg');
+ });
+ }
+ that.setData({
+ infoData: res.data,
+ imageList: urls,
+ minImageList: minUrls,
+ loadShow: false
+ })
+ //判断当前能否删除
+ if (res.data.checkState != 4 && res.data.createUser == that.data.loginName) {
that.setData({
- auditInfo:res.data,
- auditImageList:urls,
- auditMinImageList:minUrls
+ showDel: true
})
}
}
- })
- },
-
- onDelete(){
- //弹出确认
- let that = this
- wx.showModal({
- title: '提示',
- content: '是否确定删除此条数据?',
- success: function (sm) {
- if (sm.confirm) {
- // 用户点击了确定 可以调用了
- that.deleteData();
- } else if (sm.cancel) {
- console.log('用户点击取消');
- }
- }
- })
- },
- deleteData(){
- let {id} = this.data
- wx.request({
- url: app.globalData.reqUrl+'/wechat/projectProblemmodify/removeQuality',
- header: {
- "Username": this.data.loginName,
- },
- data:{
- id:id
- },
- method:"get",
- success(res){
- app.toast("删除成功!")
- wx.redirectTo({
- url: `../list/index`,
- })
- }
- })
- },
-
- //展示图片
- showImg:function(e){
- var that=this;
- wx.previewImage({
- urls: that.data.imageList,
- current: that.data.imageList[e.currentTarget.dataset.index]
- })
+ }
+ })
},
- //展示图片
- showAuditinfoImg:function(e){
- var that=this;
- wx.previewImage({
- urls: that.data.auditImageList,
- current: that.data.auditImageList[e.currentTarget.dataset.index]
- })
+ getAuditinfo() {
+ let {
+ id
+ } = this.data
+ let that = this
+ wx.request({
+ url: app.globalData.reqUrl + '/wechat/projectProblemmodify/queryAuditInfo',
+ method: "get",
+ data: {
+ id: id
},
+ success(res) {
+ res = res.data
+ if (res.code == 200 && res.data) {
+ let urls = [];
+ let minUrls = [];
+ if (res.data.fileUrls) {
+ res.data.fileUrls.split(',').forEach(element => {
+ urls.push(that.data.request + element);
+ minUrls.push(that.data.request + element + '.min.jpg');
+ });
+ }
+ that.setData({
+ auditInfo: res.data,
+ auditImageList: urls,
+ auditMinImageList: minUrls
+ })
+ }
+ }
+ })
+ },
- returnToPage: function () {
- /*关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面*/
+ onDelete() {
+ //弹出确认
+ let that = this
+ wx.showModal({
+ title: '提示',
+ content: '是否确定删除此条数据?',
+ success: function (sm) {
+ if (sm.confirm) {
+ // 用户点击了确定 可以调用了
+ that.deleteData();
+ } else if (sm.cancel) {
+ console.log('用户点击取消');
+ }
+ }
+ })
+ },
+ deleteData() {
+ let {
+ id
+ } = this.data
+ wx.request({
+ url: app.globalData.reqUrl + '/wechat/projectProblemmodify/removeQuality',
+ header: {
+ "Username": this.data.loginName,
+ },
+ data: {
+ id: id
+ },
+ method: "get",
+ success(res) {
+ app.toast("删除成功!")
wx.redirectTo({
- url: '../list/index',
+ url: `../list/index`,
})
- },
+ }
+ })
+ },
- /**
- * 生命周期函数--监听页面初次渲染完成
- */
- onReady() {
+ //展示图片
+ showImg: function (e) {
+ var that = this;
+ wx.previewImage({
+ urls: that.data.imageList,
+ current: that.data.imageList[e.currentTarget.dataset.index]
+ })
+ },
- },
+ //展示图片
+ showAuditinfoImg: function (e) {
+ var that = this;
+ wx.previewImage({
+ urls: that.data.auditImageList,
+ current: that.data.auditImageList[e.currentTarget.dataset.index]
+ })
+ },
- /**
- * 生命周期函数--监听页面显示
- */
- onShow() {
+ returnToPage: function () {
+ /*关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面*/
+ wx.redirectTo({
+ url: '../list/index',
+ })
+ },
- },
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
- /**
- * 生命周期函数--监听页面隐藏
- */
- onHide() {
+ },
- },
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
- /**
- * 生命周期函数--监听页面卸载
- */
- onUnload() {
+ },
- },
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
- /**
- * 页面相关事件处理函数--监听用户下拉动作
- */
- onPullDownRefresh() {
+ },
- },
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
- /**
- * 页面上拉触底事件的处理函数
- */
- onReachBottom() {
+ },
- },
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
- /**
- * 用户点击右上角分享
- */
- onShareAppMessage() {
+ },
- }
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
})
\ No newline at end of file
diff --git a/miniprogram/pageage/project_problemmodify/quality/info/index.json b/miniprogram/pageage/project_problemmodify/quality/info/index.json
index 875bb44..63a7a69 100644
--- a/miniprogram/pageage/project_problemmodify/quality/info/index.json
+++ b/miniprogram/pageage/project_problemmodify/quality/info/index.json
@@ -1,5 +1,9 @@
{
- "usingComponents": {},
+ "usingComponents": {
+ "van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
+ "van-collapse-item": "@vant/weapp/collapse-item"
+ },
"navigationStyle":"custom",
"navigationBarTitleText": "质量隐患详情"
}
\ No newline at end of file
diff --git a/miniprogram/pageage/project_problemmodify/quality/info/index.wxml b/miniprogram/pageage/project_problemmodify/quality/info/index.wxml
index d6ffd14..f44f7d4 100644
--- a/miniprogram/pageage/project_problemmodify/quality/info/index.wxml
+++ b/miniprogram/pageage/project_problemmodify/quality/info/index.wxml
@@ -12,6 +12,7 @@
+
diff --git a/miniprogram/pageage/project_problemmodify/quality/list/index.js b/miniprogram/pageage/project_problemmodify/quality/list/index.js
index 4f3a48d..3e676f3 100644
--- a/miniprogram/pageage/project_problemmodify/quality/list/index.js
+++ b/miniprogram/pageage/project_problemmodify/quality/list/index.js
@@ -64,6 +64,76 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
+ if (options && options.barProId) {
+ //数据未加载完毕,从文件读取数据
+ if (app.globalData.projectInfoList.length == 0) {
+ wx.getStorage({
+ key: 'projectInfoList',
+ success: res => {
+ app.globalData.projectInfoList = res.data;
+ app.globalData.projectInfoList.forEach(item => {
+ if (item.projectId == options.barProId) {
+ app.globalData.projectId = item.projectId;
+ app.globalData.projectName = item.projectName;
+ }
+ });
+ //未查询到项目信息
+ if (!app.globalData.projectId) {
+ app.globalData.projectInfoList.push({
+ projectId: options.barProId,
+ projectId: options.barProName
+ });
+ app.globalData.projectId = options.barProId;
+ app.globalData.projectName = options.barProName;
+ }
+ //从缓存读取项目信息
+ this.setData({
+ initData: {
+ text: app.globalData.projectName,
+ id: app.globalData.projectId
+ }
+ })
+ },
+ fail: err => {
+ //未获取用户信息时,重新登录
+ wx.redirectTo({
+ url: '../pages/login/index',
+ })
+ }
+ })
+ } else {
+ app.globalData.projectInfoList.forEach(item => {
+ if (item.projectId == options.barProId) {
+ app.globalData.projectId = item.projectId;
+ app.globalData.projectName = item.projectName;
+ }
+ });
+ //未查询到项目信息
+ if (!app.globalData.projectId) {
+ app.globalData.projectInfoList.push({
+ projectId: options.barProId,
+ projectId: options.barProName
+ });
+ app.globalData.projectId = options.barProId;
+ app.globalData.projectName = options.barProName;
+ }
+ //从缓存读取项目信息
+ this.setData({
+ initData: {
+ text: app.globalData.projectName,
+ id: app.globalData.projectId
+ }
+ })
+ }
+ } else {
+ //从缓存读取项目信息
+ this.setData({
+ initData: {
+ text: app.globalData.projectName,
+ id: app.globalData.projectId
+ }
+ })
+ }
//获取缓存数据
wx.getStorage({
key: 'userinfo',
diff --git a/miniprogram/pageage/project_problemmodify/quality/list/index.wxml b/miniprogram/pageage/project_problemmodify/quality/list/index.wxml
index 8cc9618..ca24763 100644
--- a/miniprogram/pageage/project_problemmodify/quality/list/index.wxml
+++ b/miniprogram/pageage/project_problemmodify/quality/list/index.wxml
@@ -57,19 +57,19 @@
-
+
暂无数据
-
+
草稿
-
+
新增
diff --git a/miniprogram/pageage/project_problemmodify/quality/modify/index.js b/miniprogram/pageage/project_problemmodify/quality/modify/index.js
index 48da860..b163efc 100644
--- a/miniprogram/pageage/project_problemmodify/quality/modify/index.js
+++ b/miniprogram/pageage/project_problemmodify/quality/modify/index.js
@@ -17,7 +17,9 @@ Page({
status:"0",
imageList:[],
minImageList:[],
- request:app.globalData.reqUrl
+ request:app.globalData.reqUrl,
+ flowNodes:[{text:'开始'},{text:'提交隐患'},{text:'隐患整改'},{text:'隐患复检'},{text:'结束'}],
+ active: 2
},
/**
diff --git a/miniprogram/pageage/project_problemmodify/quality/modify/index.json b/miniprogram/pageage/project_problemmodify/quality/modify/index.json
index d33431b..867c871 100644
--- a/miniprogram/pageage/project_problemmodify/quality/modify/index.json
+++ b/miniprogram/pageage/project_problemmodify/quality/modify/index.json
@@ -1,6 +1,9 @@
{
"usingComponents": {
"van-popup": "@vant/weapp/popup/index",
+ "van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
+ "van-collapse-item": "@vant/weapp/collapse-item",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom",
diff --git a/miniprogram/pageage/project_problemmodify/quality/modify/index.wxml b/miniprogram/pageage/project_problemmodify/quality/modify/index.wxml
index a0d3b94..f0b0fe3 100644
--- a/miniprogram/pageage/project_problemmodify/quality/modify/index.wxml
+++ b/miniprogram/pageage/project_problemmodify/quality/modify/index.wxml
@@ -12,6 +12,7 @@
+
diff --git a/miniprogram/pageage/project_problemmodify/security/add/index.js b/miniprogram/pageage/project_problemmodify/security/add/index.js
index dbff327..97784ff 100644
--- a/miniprogram/pageage/project_problemmodify/security/add/index.js
+++ b/miniprogram/pageage/project_problemmodify/security/add/index.js
@@ -34,7 +34,9 @@ Page({
selectIndex:"",
problemType:"1",
showHis:false,
- problemTypeList:[{id:"1",text:"常规检查"},{id:"2",text:"专项检查"}]
+ problemTypeList:[{id:"1",text:"常规检查"},{id:"2",text:"专项检查"}],
+ flowNodes:[{text:'开始'},{text:'提交隐患'},{text:'隐患整改'},{text:'隐患复检'},{text:'结束'}],
+ active: 0
},
/**
@@ -100,6 +102,19 @@ Page({
success(res){
res = res.data
if(res.code == 200){
+ let findMy = false;
+ res.data.forEach(it => {
+ if (it.userinfoList.length > 0) {
+ it.userinfoList.forEach(u => {
+ if (that.data.loginName == u.phonenumber) {
+ findMy = true;
+ }
+ });
+ }
+ });
+ if(!findMy){
+ res.data[0].userinfoList.push({state:false,nickName:that.data.userName,jobTypeName:'集团公司',phonenumber:that.data.loginName});
+ }
that.setData({
rectifierData2:res.data,
});
diff --git a/miniprogram/pageage/project_problemmodify/security/add/index.json b/miniprogram/pageage/project_problemmodify/security/add/index.json
index ae60ebb..9ba0d4e 100644
--- a/miniprogram/pageage/project_problemmodify/security/add/index.json
+++ b/miniprogram/pageage/project_problemmodify/security/add/index.json
@@ -1,5 +1,6 @@
{
"usingComponents": {
+ "van-steps": "@vant/weapp/steps/index",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom",
diff --git a/miniprogram/pageage/project_problemmodify/security/add/index.wxml b/miniprogram/pageage/project_problemmodify/security/add/index.wxml
index a357cfb..58e9f2f 100644
--- a/miniprogram/pageage/project_problemmodify/security/add/index.wxml
+++ b/miniprogram/pageage/project_problemmodify/security/add/index.wxml
@@ -12,6 +12,7 @@
+
{{projectName}}
diff --git a/miniprogram/pageage/project_problemmodify/security/check/index.js b/miniprogram/pageage/project_problemmodify/security/check/index.js
index 2e93b1f..39b5e42 100644
--- a/miniprogram/pageage/project_problemmodify/security/check/index.js
+++ b/miniprogram/pageage/project_problemmodify/security/check/index.js
@@ -18,7 +18,9 @@ Page({
minImageList:[],
auditImageList:[],
auditMinImageList:[],
- request:app.globalData.reqUrl
+ request:app.globalData.reqUrl,
+ flowNodes:[{text:'开始'},{text:'提交隐患'},{text:'隐患整改'},{text:'隐患复检'},{text:'结束'}],
+ active: 3
},
/**
diff --git a/miniprogram/pageage/project_problemmodify/security/check/index.json b/miniprogram/pageage/project_problemmodify/security/check/index.json
index 8e9306f..4182def 100644
--- a/miniprogram/pageage/project_problemmodify/security/check/index.json
+++ b/miniprogram/pageage/project_problemmodify/security/check/index.json
@@ -1,6 +1,9 @@
{
"usingComponents": {
"van-popup": "@vant/weapp/popup/index",
+ "van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
+ "van-collapse-item": "@vant/weapp/collapse-item",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom",
diff --git a/miniprogram/pageage/project_problemmodify/security/check/index.wxml b/miniprogram/pageage/project_problemmodify/security/check/index.wxml
index 37104ee..e0b107f 100644
--- a/miniprogram/pageage/project_problemmodify/security/check/index.wxml
+++ b/miniprogram/pageage/project_problemmodify/security/check/index.wxml
@@ -12,6 +12,7 @@
+
diff --git a/miniprogram/pageage/project_problemmodify/security/draft/index.js b/miniprogram/pageage/project_problemmodify/security/draft/index.js
index 3f6d371..18a5a28 100644
--- a/miniprogram/pageage/project_problemmodify/security/draft/index.js
+++ b/miniprogram/pageage/project_problemmodify/security/draft/index.js
@@ -22,6 +22,8 @@ Page({
],
lordSent:"",
lordSentUser:"",
+ flowNodes:[{text:'开始'},{text:'提交隐患'},{text:'隐患整改'},{text:'隐患复检'},{text:'结束'}],
+ active: 0
},
/**
diff --git a/miniprogram/pageage/project_problemmodify/security/draft/index.json b/miniprogram/pageage/project_problemmodify/security/draft/index.json
index 29ba37b..d58fcd4 100644
--- a/miniprogram/pageage/project_problemmodify/security/draft/index.json
+++ b/miniprogram/pageage/project_problemmodify/security/draft/index.json
@@ -1,5 +1,6 @@
{
"usingComponents": {
+ "van-steps": "@vant/weapp/steps/index",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom",
diff --git a/miniprogram/pageage/project_problemmodify/security/draft/index.wxml b/miniprogram/pageage/project_problemmodify/security/draft/index.wxml
index d9cf564..8c1ace9 100644
--- a/miniprogram/pageage/project_problemmodify/security/draft/index.wxml
+++ b/miniprogram/pageage/project_problemmodify/security/draft/index.wxml
@@ -12,6 +12,7 @@
+
{{projectName}}
@@ -47,7 +48,7 @@
取消
- 提交隐患
+ 保存草稿
diff --git a/miniprogram/pageage/project_problemmodify/security/info/index.js b/miniprogram/pageage/project_problemmodify/security/info/index.js
index a07c632..bcaafad 100644
--- a/miniprogram/pageage/project_problemmodify/security/info/index.js
+++ b/miniprogram/pageage/project_problemmodify/security/info/index.js
@@ -15,7 +15,9 @@ Page({
minImageList:[],
auditImageList:[],
auditMinImageList:[],
- request:app.globalData.reqUrl
+ request:app.globalData.reqUrl,
+ flowNodes:[{text:'开始'},{text:'提交隐患'},{text:'隐患整改'},{text:'隐患复检'},{text:'结束'}],
+ active: 100
},
/**
@@ -54,6 +56,17 @@ Page({
success(res){
res = res.data
if(res.code == 200){
+ let state = that.data.active;
+ if (res.data.checkState == "0") {
+ state = 2;
+ } else if (res.data.checkState == "1") {
+ state = 3;
+ } else if (res.data.checkState == "3") {
+ state = 1;
+ }
+ that.setData({
+ active: state
+ })
let urls = [];
let minUrls = [];
if(res.data.smarkUrl){
diff --git a/miniprogram/pageage/project_problemmodify/security/info/index.json b/miniprogram/pageage/project_problemmodify/security/info/index.json
index 19a81ac..c25c420 100644
--- a/miniprogram/pageage/project_problemmodify/security/info/index.json
+++ b/miniprogram/pageage/project_problemmodify/security/info/index.json
@@ -1,5 +1,9 @@
{
- "usingComponents": {},
+ "usingComponents": {
+ "van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
+ "van-collapse-item": "@vant/weapp/collapse-item"
+ },
"navigationStyle":"custom",
"navigationBarTitleText": "安全隐患详情"
}
\ No newline at end of file
diff --git a/miniprogram/pageage/project_problemmodify/security/info/index.wxml b/miniprogram/pageage/project_problemmodify/security/info/index.wxml
index 0c6c52b..4cb5223 100644
--- a/miniprogram/pageage/project_problemmodify/security/info/index.wxml
+++ b/miniprogram/pageage/project_problemmodify/security/info/index.wxml
@@ -12,6 +12,7 @@
+
diff --git a/miniprogram/pageage/project_problemmodify/security/list/index.js b/miniprogram/pageage/project_problemmodify/security/list/index.js
index feb5a7b..2c0df72 100644
--- a/miniprogram/pageage/project_problemmodify/security/list/index.js
+++ b/miniprogram/pageage/project_problemmodify/security/list/index.js
@@ -57,6 +57,76 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
+ if (options && options.barProId) {
+ //数据未加载完毕,从文件读取数据
+ if (app.globalData.projectInfoList.length == 0) {
+ wx.getStorage({
+ key: 'projectInfoList',
+ success: res => {
+ app.globalData.projectInfoList = res.data;
+ app.globalData.projectInfoList.forEach(item => {
+ if (item.projectId == options.barProId) {
+ app.globalData.projectId = item.projectId;
+ app.globalData.projectName = item.projectName;
+ }
+ });
+ //未查询到项目信息
+ if (!app.globalData.projectId) {
+ app.globalData.projectInfoList.push({
+ projectId: options.barProId,
+ projectId: options.barProName
+ });
+ app.globalData.projectId = options.barProId;
+ app.globalData.projectName = options.barProName;
+ }
+ //从缓存读取项目信息
+ this.setData({
+ initData: {
+ text: app.globalData.projectName,
+ id: app.globalData.projectId
+ }
+ })
+ },
+ fail: err => {
+ //未获取用户信息时,重新登录
+ wx.redirectTo({
+ url: '../pages/login/index',
+ })
+ }
+ })
+ } else {
+ app.globalData.projectInfoList.forEach(item => {
+ if (item.projectId == options.barProId) {
+ app.globalData.projectId = item.projectId;
+ app.globalData.projectName = item.projectName;
+ }
+ });
+ //未查询到项目信息
+ if (!app.globalData.projectId) {
+ app.globalData.projectInfoList.push({
+ projectId: options.barProId,
+ projectId: options.barProName
+ });
+ app.globalData.projectId = options.barProId;
+ app.globalData.projectName = options.barProName;
+ }
+ //从缓存读取项目信息
+ this.setData({
+ initData: {
+ text: app.globalData.projectName,
+ id: app.globalData.projectId
+ }
+ })
+ }
+ } else {
+ //从缓存读取项目信息
+ this.setData({
+ initData: {
+ text: app.globalData.projectName,
+ id: app.globalData.projectId
+ }
+ })
+ }
//获取缓存数据
wx.getStorage({
key: 'userinfo',
diff --git a/miniprogram/pageage/project_problemmodify/security/list/index.wxml b/miniprogram/pageage/project_problemmodify/security/list/index.wxml
index 0c6436c..f29687d 100644
--- a/miniprogram/pageage/project_problemmodify/security/list/index.wxml
+++ b/miniprogram/pageage/project_problemmodify/security/list/index.wxml
@@ -56,19 +56,19 @@
-
+
暂无数据
-
+
草稿
-
+
新增
diff --git a/miniprogram/pageage/project_problemmodify/security/modify/index.js b/miniprogram/pageage/project_problemmodify/security/modify/index.js
index 69f6f03..f9c2b4e 100644
--- a/miniprogram/pageage/project_problemmodify/security/modify/index.js
+++ b/miniprogram/pageage/project_problemmodify/security/modify/index.js
@@ -17,7 +17,9 @@ Page({
status:"0",
imageList:[],
minImageList:[],
- request:app.globalData.reqUrl
+ request:app.globalData.reqUrl,
+ flowNodes:[{text:'开始'},{text:'提交隐患'},{text:'隐患整改'},{text:'隐患复检'},{text:'结束'}],
+ active: 2
},
/**
diff --git a/miniprogram/pageage/project_problemmodify/security/modify/index.json b/miniprogram/pageage/project_problemmodify/security/modify/index.json
index 6e1cfef..ceb239e 100644
--- a/miniprogram/pageage/project_problemmodify/security/modify/index.json
+++ b/miniprogram/pageage/project_problemmodify/security/modify/index.json
@@ -1,6 +1,9 @@
{
"usingComponents": {
"van-popup": "@vant/weapp/popup/index",
+ "van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
+ "van-collapse-item": "@vant/weapp/collapse-item",
"van-overlay": "@vant/weapp/overlay/index"
},
"navigationStyle":"custom",
diff --git a/miniprogram/pageage/project_problemmodify/security/modify/index.wxml b/miniprogram/pageage/project_problemmodify/security/modify/index.wxml
index 358c622..0f43043 100644
--- a/miniprogram/pageage/project_problemmodify/security/modify/index.wxml
+++ b/miniprogram/pageage/project_problemmodify/security/modify/index.wxml
@@ -12,6 +12,7 @@
+
diff --git a/miniprogram/pageage/project_schedule/list/index.wxml b/miniprogram/pageage/project_schedule/list/index.wxml
index 7e54e99..0c1824f 100644
--- a/miniprogram/pageage/project_schedule/list/index.wxml
+++ b/miniprogram/pageage/project_schedule/list/index.wxml
@@ -39,7 +39,7 @@
-
+
暂无数据
diff --git a/miniprogram/pageage/project_special/list/index.wxml b/miniprogram/pageage/project_special/list/index.wxml
index aface61..03e99df 100644
--- a/miniprogram/pageage/project_special/list/index.wxml
+++ b/miniprogram/pageage/project_special/list/index.wxml
@@ -40,7 +40,7 @@
-
+
暂无数据
diff --git a/miniprogram/pageage/project_standard/info/index.wxss b/miniprogram/pageage/project_standard/info/index.wxss
index 029322f..bc7a2b7 100644
--- a/miniprogram/pageage/project_standard/info/index.wxss
+++ b/miniprogram/pageage/project_standard/info/index.wxss
@@ -44,7 +44,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
diff --git a/miniprogram/pageage/project_standard/list/index.wxml b/miniprogram/pageage/project_standard/list/index.wxml
index 3ba812e..8722ba6 100644
--- a/miniprogram/pageage/project_standard/list/index.wxml
+++ b/miniprogram/pageage/project_standard/list/index.wxml
@@ -43,7 +43,7 @@
-
+
暂无数据
diff --git a/miniprogram/pageage/project_train/list/index.wxml b/miniprogram/pageage/project_train/list/index.wxml
index 798201e..f6b76ab 100644
--- a/miniprogram/pageage/project_train/list/index.wxml
+++ b/miniprogram/pageage/project_train/list/index.wxml
@@ -41,7 +41,7 @@
-
+
暂无数据
diff --git a/miniprogram/pages/components/user-infos/index.js b/miniprogram/pages/components/user-infos/index.js
index f44d00a..83a7938 100644
--- a/miniprogram/pages/components/user-infos/index.js
+++ b/miniprogram/pages/components/user-infos/index.js
@@ -22,6 +22,7 @@ Component({
showNewPass: true,
showPassWord: true,
binding: false,
+ msgOpenId: "",
},
created() {
@@ -33,6 +34,7 @@ Component({
that.setData({
userData: res.data,
loginName: res.data.loginName,
+ msgOpenId: res.data.msgOpenId || "",
})
}
})
@@ -41,6 +43,21 @@ Component({
* 组件的方法列表
*/
methods: {
+ loadUserInfo() {
+ let that = this;
+ //获取缓存数据
+ wx.getStorage({
+ key: 'userinfo',
+ success: function (res) {
+ that.setData({
+ show:true,
+ userData: res.data,
+ loginName: res.data.loginName,
+ msgOpenId: res.data.msgOpenId || "",
+ })
+ }
+ })
+ },
showPopup() {
this.setData({
show: true
@@ -88,7 +105,7 @@ Component({
bindingBuild: function () {
wx.previewImage({
- urls: "https://szgcwx.jhncidg.com/staticFiles/qr.jpg".split(","),
+ urls: "https://szgcwx.jhncidg.com/staticFiles/qrv1.jpg".split(","),
current: 0
})
},
diff --git a/miniprogram/pages/components/user-infos/index.wxml b/miniprogram/pages/components/user-infos/index.wxml
index a1723e5..6a40e77 100644
--- a/miniprogram/pages/components/user-infos/index.wxml
+++ b/miniprogram/pages/components/user-infos/index.wxml
@@ -1,5 +1,5 @@
@@ -17,6 +17,8 @@
{{userData.nickName}}
{{userData.loginName}}
+ 消息未授权
+ 消息已授权
@@ -24,10 +26,10 @@
关注公众号才能成功开启消息通知
-
+
- 开启消息通知
+ 授权消息通知
diff --git a/miniprogram/pages/components/user-infos/index.wxss b/miniprogram/pages/components/user-infos/index.wxss
index 55f3be1..fc5f554 100644
--- a/miniprogram/pages/components/user-infos/index.wxss
+++ b/miniprogram/pages/components/user-infos/index.wxss
@@ -4,8 +4,8 @@
}
.header_img image {
- width: 30rpx;
- height: 30rpx;
+ width: 33rpx;
+ height: 33rpx;
}
/* 左侧菜单 */
diff --git a/miniprogram/pages/gongchengliebiao/index.js b/miniprogram/pages/gongchengliebiao/index.js
index a7d9a99..3f09d43 100644
--- a/miniprogram/pages/gongchengliebiao/index.js
+++ b/miniprogram/pages/gongchengliebiao/index.js
@@ -473,11 +473,21 @@ Page({
projectData:res.data,
projectInfoList:res.data
})
- //存入文件中
- wx.setStorage({
- key: 'projectInfoList',
- data: res.data
- });
+ if(that.data.userInfo.minRoleId<4){
+ if(deptId=="0"){
+ //存入文件中
+ wx.setStorageSync({
+ key: 'projectInfoList',
+ data: res.data
+ });
+ }
+ }else{
+ //存入文件中
+ wx.setStorageSync({
+ key: 'projectInfoList',
+ data: res.data
+ });
+ }
app.globalData.projectInfoList = res.data;
//if(that.data.type == 1){
// that.setData({
diff --git a/miniprogram/pages/login/index.js b/miniprogram/pages/login/index.js
index 860ed02..132c77b 100644
--- a/miniprogram/pages/login/index.js
+++ b/miniprogram/pages/login/index.js
@@ -117,6 +117,10 @@ Page({
key: 'userinfo',
data: res.data.data.userinfo
});
+ if(res.data.token){
+ //更新token信息
+ setToken(res.data.token);
+ }
// wx.setStorageSync({
// key: 'token',
// data: res.data.token
@@ -246,7 +250,7 @@ Page({
}
} else {
that.loadCodeImage();
- app.toast(res.data.msg);
+ app.toast(res.data.msg,1000);
}
}
})
diff --git a/miniprogram/pages/map/map.js b/miniprogram/pages/map/map.js
index d045219..70136c6 100644
--- a/miniprogram/pages/map/map.js
+++ b/miniprogram/pages/map/map.js
@@ -694,11 +694,21 @@ Page({
initialLon: res.data[0].longitude,
initialLat: res.data[0].latitude,
})
- //存入文件中
- wx.setStorage({
- key: 'projectInfoList',
- data: res.data
- });
+ if(that.data.userInfo.minRoleId<4){
+ if(deptId=="0"){
+ //存入文件中
+ wx.setStorageSync({
+ key: 'projectInfoList',
+ data: res.data
+ });
+ }
+ }else{
+ //存入文件中
+ wx.setStorageSync({
+ key: 'projectInfoList',
+ data: res.data
+ });
+ }
app.globalData.projectInfoList = res.data;
} else {
that.setData({
diff --git a/miniprogram/pages/project_approve/approveCheckDetection/index.js b/miniprogram/pages/project_approve/approveCheckDetection/index.js
index 64bb2e7..ef63130 100644
--- a/miniprogram/pages/project_approve/approveCheckDetection/index.js
+++ b/miniprogram/pages/project_approve/approveCheckDetection/index.js
@@ -20,6 +20,8 @@ Page({
list:[{id:1,text:"合格"},{id:2,text:"不合格"}],
result:"1",
comment:"",
+ flowNodes:[{text:'开始'},{text:'提交申请'},{text:'检测报告'},{text:'监理审批'},{text:'结束'}],
+ active: 3
},
/**
diff --git a/miniprogram/pages/project_approve/approveCheckDetection/index.json b/miniprogram/pages/project_approve/approveCheckDetection/index.json
index fc37221..0f67efc 100644
--- a/miniprogram/pages/project_approve/approveCheckDetection/index.json
+++ b/miniprogram/pages/project_approve/approveCheckDetection/index.json
@@ -2,6 +2,7 @@
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom"
diff --git a/miniprogram/pages/project_approve/approveCheckDetection/index.wxml b/miniprogram/pages/project_approve/approveCheckDetection/index.wxml
index 958e6e5..61e043a 100644
--- a/miniprogram/pages/project_approve/approveCheckDetection/index.wxml
+++ b/miniprogram/pages/project_approve/approveCheckDetection/index.wxml
@@ -12,6 +12,7 @@
+
diff --git a/miniprogram/pages/project_approve/approveCheckDetection/index.wxss b/miniprogram/pages/project_approve/approveCheckDetection/index.wxss
index 029322f..bc7a2b7 100644
--- a/miniprogram/pages/project_approve/approveCheckDetection/index.wxss
+++ b/miniprogram/pages/project_approve/approveCheckDetection/index.wxss
@@ -44,7 +44,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
diff --git a/miniprogram/pages/project_approve/approveChecking/index.js b/miniprogram/pages/project_approve/approveChecking/index.js
index 7ed9de3..b52703d 100644
--- a/miniprogram/pages/project_approve/approveChecking/index.js
+++ b/miniprogram/pages/project_approve/approveChecking/index.js
@@ -16,6 +16,8 @@ Page({
list:[{id:1,text:"合格"},{id:2,text:"不合格"}],
result:"1",
comment:"",
+ flowNodes:[{text:'开始'},{text:'提交申请'},{text:'监理审批'},{text:'结束'}],
+ active: 2
},
/**
diff --git a/miniprogram/pages/project_approve/approveChecking/index.json b/miniprogram/pages/project_approve/approveChecking/index.json
index c06a1f7..96e88ac 100644
--- a/miniprogram/pages/project_approve/approveChecking/index.json
+++ b/miniprogram/pages/project_approve/approveChecking/index.json
@@ -3,6 +3,7 @@
"van-overlay": "@vant/weapp/overlay/index",
"van-popup": "@vant/weapp/popup/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom",
diff --git a/miniprogram/pages/project_approve/approveChecking/index.wxml b/miniprogram/pages/project_approve/approveChecking/index.wxml
index 431e020..6cce307 100644
--- a/miniprogram/pages/project_approve/approveChecking/index.wxml
+++ b/miniprogram/pages/project_approve/approveChecking/index.wxml
@@ -12,6 +12,7 @@
+
diff --git a/miniprogram/pages/project_approve/approveChecking/index.wxss b/miniprogram/pages/project_approve/approveChecking/index.wxss
index 029322f..bc7a2b7 100644
--- a/miniprogram/pages/project_approve/approveChecking/index.wxss
+++ b/miniprogram/pages/project_approve/approveChecking/index.wxss
@@ -44,7 +44,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
diff --git a/miniprogram/pages/project_approve/approveMaterialSeal/index.js b/miniprogram/pages/project_approve/approveMaterialSeal/index.js
index d3e7750..31537fe 100644
--- a/miniprogram/pages/project_approve/approveMaterialSeal/index.js
+++ b/miniprogram/pages/project_approve/approveMaterialSeal/index.js
@@ -27,6 +27,8 @@ Page({
list:[{id:1,text:"合格"},{id:2,text:"不合格"}],
result:"1",
comment:"",
+ flowNodes:[{text:'开始'},{text:'提交申请'},{text:'监理审批'},{text:'结束'}],
+ active: 2
},
/**
diff --git a/miniprogram/pages/project_approve/approveMaterialSeal/index.json b/miniprogram/pages/project_approve/approveMaterialSeal/index.json
index 9141ccc..427640e 100644
--- a/miniprogram/pages/project_approve/approveMaterialSeal/index.json
+++ b/miniprogram/pages/project_approve/approveMaterialSeal/index.json
@@ -3,6 +3,7 @@
"van-overlay": "@vant/weapp/overlay/index",
"van-popup": "@vant/weapp/popup/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom",
diff --git a/miniprogram/pages/project_approve/approveMaterialSeal/index.wxml b/miniprogram/pages/project_approve/approveMaterialSeal/index.wxml
index f4397dc..d942e33 100644
--- a/miniprogram/pages/project_approve/approveMaterialSeal/index.wxml
+++ b/miniprogram/pages/project_approve/approveMaterialSeal/index.wxml
@@ -12,6 +12,7 @@
+
diff --git a/miniprogram/pages/project_approve/approveMaterialSeal/index.wxss b/miniprogram/pages/project_approve/approveMaterialSeal/index.wxss
index 029322f..bc7a2b7 100644
--- a/miniprogram/pages/project_approve/approveMaterialSeal/index.wxss
+++ b/miniprogram/pages/project_approve/approveMaterialSeal/index.wxss
@@ -44,7 +44,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
diff --git a/miniprogram/pages/project_approve/approveMeasure/index.js b/miniprogram/pages/project_approve/approveMeasure/index.js
index 4e37909..653e55d 100644
--- a/miniprogram/pages/project_approve/approveMeasure/index.js
+++ b/miniprogram/pages/project_approve/approveMeasure/index.js
@@ -19,6 +19,8 @@ Page({
list:[{id:1,text:"合格"},{id:2,text:"不合格"}],
result:"1",
comment:"",
+ flowNodes:[{text:'开始'},{text:'提交申请'},{text:'监理审批'},{text:'结束'}],
+ active: 2
},
/**
diff --git a/miniprogram/pages/project_approve/approveMeasure/index.json b/miniprogram/pages/project_approve/approveMeasure/index.json
index 57590e4..cf036b0 100644
--- a/miniprogram/pages/project_approve/approveMeasure/index.json
+++ b/miniprogram/pages/project_approve/approveMeasure/index.json
@@ -2,6 +2,7 @@
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom"
diff --git a/miniprogram/pages/project_approve/approveMeasure/index.wxml b/miniprogram/pages/project_approve/approveMeasure/index.wxml
index ca04b11..163d27b 100644
--- a/miniprogram/pages/project_approve/approveMeasure/index.wxml
+++ b/miniprogram/pages/project_approve/approveMeasure/index.wxml
@@ -12,6 +12,7 @@
+
diff --git a/miniprogram/pages/project_approve/approveMeasure/index.wxss b/miniprogram/pages/project_approve/approveMeasure/index.wxss
index 029322f..bc7a2b7 100644
--- a/miniprogram/pages/project_approve/approveMeasure/index.wxss
+++ b/miniprogram/pages/project_approve/approveMeasure/index.wxss
@@ -44,7 +44,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
diff --git a/miniprogram/pages/project_approve/index.wxml b/miniprogram/pages/project_approve/index.wxml
index 79cdddd..79a871b 100644
--- a/miniprogram/pages/project_approve/index.wxml
+++ b/miniprogram/pages/project_approve/index.wxml
@@ -43,7 +43,7 @@
-
+
暂无数据
diff --git a/miniprogram/pages/project_flowable/approveLeaveTask/index.js b/miniprogram/pages/project_flowable/approveLeaveTask/index.js
index 1a5b8ae..8788863 100644
--- a/miniprogram/pages/project_flowable/approveLeaveTask/index.js
+++ b/miniprogram/pages/project_flowable/approveLeaveTask/index.js
@@ -29,6 +29,8 @@ Page({
taskName:"",
passState:true,
backName:"",
+ active: 100,
+ rejectNode:false,
},
/**
@@ -53,10 +55,10 @@ Page({
userId:res.data.userId,
loginName:res.data.loginName,
})
- this.initTargetKeyList();
- this.getFlowNodes();
this.getFlowRecordList();
+ this.getFlowNodes();
this.getFormDatasList();
+ this.initTargetKeyList();
}
})
},
@@ -66,20 +68,18 @@ Page({
for(let i=0;i 4 ? flowNodeList[i].name.substring(0, 4) : flowNodeList[i].name
+ });
this.setData({
- flowNodes:list
+ active:actNv,
+ flowNodes: list
})
if(flowNodeList[i].outgoingFlows && flowNodeList[i].outgoingFlows.length>0){
return this.getFlowNode(flowNodeList[i].outgoingFlows[0].targetRef);
@@ -106,9 +106,13 @@ Page({
})
if(res.data.length>0){
let list = that.data.flowNodes;
- list.push({id:res.data[0].id,name:res.data[0].name,state:'pass'});
+ list.push({
+ id: res.data[0].id,
+ name: res.data[0].name,
+ text: res.data[0].name
+ });
that.setData({
- flowNodes:list
+ flowNodes: list
})
return that.getFlowNode(res.data[0].outgoingFlows[0].targetRef);
}
@@ -138,7 +142,12 @@ Page({
flowRecordList:res.data
})
let list=[];
- res.data.forEach(item=>{
+ res.data.forEach((item,idx)=>{
+ if(idx==1 && item.commentType=="3"){
+ that.setData({
+ rejectNode:true
+ })
+ }
if(item.deleteReason){
item.deleteReason=that.getDeleteReason(item.deleteReason);
}
@@ -224,9 +233,9 @@ Page({
loadShow:true
})
let that = this
- let {taskId,procInsId,projectId,userId,loginName,comment,targetKey} = that.data;
+ let {taskId,userId,loginName,comment,targetKey} = that.data;
//数据效验
- if(projectId==""||loginName==""||taskId==""||userId==""||procInsId==""){
+ if(loginName==""||taskId==""||userId==""){
app.toast("数据异常,请刷新页面重试!")
that.setData({
loadShow:false
@@ -300,9 +309,9 @@ Page({
loadShow:true
})
let that = this
- let {taskId,procInsId,projectId,userId,loginName,comment} = that.data;
+ let {taskId,procInsId,userId,loginName,comment} = that.data;
//数据效验
- if(projectId==""||loginName==""||taskId==""||userId==""||procInsId==""){
+ if(loginName==""||taskId==""||userId==""||procInsId==""){
app.toast("数据异常,请刷新页面重试!")
that.setData({
loadShow:false
diff --git a/miniprogram/pages/project_flowable/approveLeaveTask/index.json b/miniprogram/pages/project_flowable/approveLeaveTask/index.json
index 5c42e53..804b5fd 100644
--- a/miniprogram/pages/project_flowable/approveLeaveTask/index.json
+++ b/miniprogram/pages/project_flowable/approveLeaveTask/index.json
@@ -2,6 +2,7 @@
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom"
diff --git a/miniprogram/pages/project_flowable/approveLeaveTask/index.wxml b/miniprogram/pages/project_flowable/approveLeaveTask/index.wxml
index 00fd2f6..5c6de6c 100644
--- a/miniprogram/pages/project_flowable/approveLeaveTask/index.wxml
+++ b/miniprogram/pages/project_flowable/approveLeaveTask/index.wxml
@@ -12,17 +12,18 @@
+
{{projectName}}
-
+
@@ -33,6 +34,7 @@
{{item.taskName}}{{item.commentResult}}
{{item.commentResult}}
{{item.commentResult}}
+ {{item.commentResult}}
diff --git a/miniprogram/pages/project_flowable/approveLeaveTask/index.wxss b/miniprogram/pages/project_flowable/approveLeaveTask/index.wxss
index 1e95f3c..55d69ee 100644
--- a/miniprogram/pages/project_flowable/approveLeaveTask/index.wxss
+++ b/miniprogram/pages/project_flowable/approveLeaveTask/index.wxss
@@ -57,7 +57,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
@@ -80,10 +81,4 @@
margin-right: 5rpx;
position: relative;
top: 5rpx;
- }
- .pass{
- background-color: #388a38;
- }
- .transact{
- background-color: #8e6424;
}
\ No newline at end of file
diff --git a/miniprogram/pages/project_flowable/approveTask/index.js b/miniprogram/pages/project_flowable/approveTask/index.js
index 1ab2128..8edc94a 100644
--- a/miniprogram/pages/project_flowable/approveTask/index.js
+++ b/miniprogram/pages/project_flowable/approveTask/index.js
@@ -33,6 +33,8 @@ Page({
backName:"",
imageType:["png","jpg","jpeg"],
fileType:["pdf"],
+ active: 100,
+ rejectNode:false
},
/**
@@ -57,10 +59,10 @@ Page({
userId:res.data.userId,
loginName:res.data.loginName,
})
- this.initTargetKeyList();
- this.getFlowNodes();
this.getFlowRecordList();
+ this.getFlowNodes();
this.getFormDatasList();
+ this.initTargetKeyList();
}
})
},
@@ -70,20 +72,18 @@ Page({
for(let i=0;i 4 ? flowNodeList[i].name.substring(0, 4) : flowNodeList[i].name
+ });
this.setData({
- flowNodes:list
+ active:actNv,
+ flowNodes: list
})
if(flowNodeList[i].outgoingFlows && flowNodeList[i].outgoingFlows.length>0){
return this.getFlowNode(flowNodeList[i].outgoingFlows[0].targetRef);
@@ -110,9 +110,13 @@ Page({
})
if(res.data.length>0){
let list = that.data.flowNodes;
- list.push({id:res.data[0].id,name:res.data[0].name,state:'pass'});
+ list.push({
+ id: res.data[0].id,
+ name: res.data[0].name,
+ text: res.data[0].name
+ });
that.setData({
- flowNodes:list
+ flowNodes: list
})
return that.getFlowNode(res.data[0].outgoingFlows[0].targetRef);
}
@@ -142,7 +146,12 @@ Page({
flowRecordList:res.data
})
let list=[];
- res.data.forEach(item=>{
+ res.data.forEach((item,idx)=>{
+ if(idx==1 && item.commentType=="3"){
+ that.setData({
+ rejectNode:true
+ })
+ }
if(item.deleteReason){
item.deleteReason=that.getDeleteReason(item.deleteReason);
}
@@ -186,7 +195,7 @@ Page({
res.data.files.split(',').forEach(element => {
let ft = element.split('.');
if(that.data.imageType.indexOf(ft[ft.length-1].toLowerCase())>-1){
- imageList.push({minPath:config.baseUrl+element,path:element});
+ imageList.push({minPath:config.baseUrl+element+'.min.jpg',path:config.baseUrl+element});
}else{
let it = element.split('/');
filesData.push({name:it[it.length-1],path:element});
@@ -246,9 +255,9 @@ Page({
loadShow:true
})
let that = this
- let {taskId,procInsId,projectId,userId,loginName,comment,targetKey} = that.data;
+ let {taskId,userId,loginName,comment,targetKey} = that.data;
//数据效验
- if(projectId==""||loginName==""||taskId==""||userId==""||procInsId==""){
+ if(loginName==""||taskId==""||userId==""){
app.toast("数据异常,请刷新页面重试!")
that.setData({
loadShow:false
@@ -322,9 +331,9 @@ Page({
loadShow:true
})
let that = this
- let {taskId,procInsId,projectId,userId,loginName,comment} = that.data;
+ let {taskId,procInsId,userId,loginName,comment} = that.data;
//数据效验
- if(projectId==""||loginName==""||taskId==""||userId==""||procInsId==""){
+ if(loginName==""||taskId==""||userId==""||procInsId==""){
app.toast("数据异常,请刷新页面重试!")
that.setData({
loadShow:false
@@ -530,8 +539,12 @@ Page({
//展示图片详细
showImg:function(e){
let {path} = e.currentTarget.dataset.set
+ let images = [];
+ this.data.imageList.forEach(img =>{
+ images.push(img.path);
+ });
wx.previewImage({
- urls: this.data.imageList,
+ urls: images,
current: path
})
},
diff --git a/miniprogram/pages/project_flowable/approveTask/index.json b/miniprogram/pages/project_flowable/approveTask/index.json
index 5c42e53..804b5fd 100644
--- a/miniprogram/pages/project_flowable/approveTask/index.json
+++ b/miniprogram/pages/project_flowable/approveTask/index.json
@@ -2,6 +2,7 @@
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom"
diff --git a/miniprogram/pages/project_flowable/approveTask/index.wxml b/miniprogram/pages/project_flowable/approveTask/index.wxml
index 4651115..05b537e 100644
--- a/miniprogram/pages/project_flowable/approveTask/index.wxml
+++ b/miniprogram/pages/project_flowable/approveTask/index.wxml
@@ -14,18 +14,19 @@
+
{{projectName}}
-
+
+
@@ -35,6 +36,7 @@
{{item.taskName}}{{item.commentResult}}
{{item.commentResult}}
{{item.commentResult}}
+ {{item.commentResult}}
diff --git a/miniprogram/pages/project_flowable/approveTask/index.wxss b/miniprogram/pages/project_flowable/approveTask/index.wxss
index 9df048b..441c149 100644
--- a/miniprogram/pages/project_flowable/approveTask/index.wxss
+++ b/miniprogram/pages/project_flowable/approveTask/index.wxss
@@ -81,7 +81,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
@@ -104,10 +105,4 @@
margin-right: 5rpx;
position: relative;
top: 5rpx;
- }
- .pass{
- background-color: #388a38;
- }
- .transact{
- background-color: #8e6424;
}
\ No newline at end of file
diff --git a/miniprogram/pages/project_flowable/await/index.js b/miniprogram/pages/project_flowable/await/index.js
index 3382c29..fb1fe2d 100644
--- a/miniprogram/pages/project_flowable/await/index.js
+++ b/miniprogram/pages/project_flowable/await/index.js
@@ -112,6 +112,76 @@ Page({
}else{
category = app.globalData.category;
}
+ if (options && options.barProId) {
+ //数据未加载完毕,从文件读取数据
+ if (app.globalData.projectInfoList.length == 0) {
+ wx.getStorage({
+ key: 'projectInfoList',
+ success: res => {
+ app.globalData.projectInfoList = res.data;
+ app.globalData.projectInfoList.forEach(item => {
+ if (item.projectId == options.barProId) {
+ app.globalData.projectId = item.projectId;
+ app.globalData.projectName = item.projectName;
+ }
+ });
+ //未查询到项目信息
+ if (!app.globalData.projectId) {
+ app.globalData.projectInfoList.push({
+ projectId: options.barProId,
+ projectId: options.barProName
+ });
+ app.globalData.projectId = options.barProId;
+ app.globalData.projectName = options.barProName;
+ }
+ //从缓存读取项目信息
+ this.setData({
+ initData: {
+ text: app.globalData.projectName,
+ id: app.globalData.projectId
+ }
+ })
+ },
+ fail: err => {
+ //未获取用户信息时,重新登录
+ wx.redirectTo({
+ url: '../pages/login/index',
+ })
+ }
+ })
+ } else {
+ app.globalData.projectInfoList.forEach(item => {
+ if (item.projectId == options.barProId) {
+ app.globalData.projectId = item.projectId;
+ app.globalData.projectName = item.projectName;
+ }
+ });
+ //未查询到项目信息
+ if (!app.globalData.projectId) {
+ app.globalData.projectInfoList.push({
+ projectId: options.barProId,
+ projectId: options.barProName
+ });
+ app.globalData.projectId = options.barProId;
+ app.globalData.projectName = options.barProName;
+ }
+ //从缓存读取项目信息
+ this.setData({
+ initData: {
+ text: app.globalData.projectName,
+ id: app.globalData.projectId
+ }
+ })
+ }
+ } else {
+ //从缓存读取项目信息
+ this.setData({
+ initData: {
+ text: app.globalData.projectName,
+ id: app.globalData.projectId
+ }
+ })
+ }
//获取缓存数据
wx.getStorage({
key: 'userinfo',
@@ -188,13 +258,18 @@ Page({
queryTaskCountByCategory(data).then(res =>{
let typeList = this.data.typeList;
typeList.forEach(type =>{
+ let nv = true;
res.data.forEach(item =>{
- if(type.id==item.category){
+ if(type.id==item.category){
if(item.total){
+ nv=false;
type.todoDB = item.total;
}
- }
+ }
})
+ if(nv){
+ type.todoDB = 0;
+ }
});
this.setData({
typeList
diff --git a/miniprogram/pages/project_flowable/await/index.wxml b/miniprogram/pages/project_flowable/await/index.wxml
index 0730f14..c24df87 100644
--- a/miniprogram/pages/project_flowable/await/index.wxml
+++ b/miniprogram/pages/project_flowable/await/index.wxml
@@ -80,7 +80,7 @@
-
+
暂无数据
diff --git a/miniprogram/pages/project_flowable/detailLeaveTask/index.js b/miniprogram/pages/project_flowable/detailLeaveTask/index.js
index 9581372..4c6aa0d 100644
--- a/miniprogram/pages/project_flowable/detailLeaveTask/index.js
+++ b/miniprogram/pages/project_flowable/detailLeaveTask/index.js
@@ -1,4 +1,4 @@
-// pageage/safetyManagement/addSafetyInspect/index.js
+import { allInstanceList } from '../../../api/flowable'
const app = getApp()
Page({
@@ -14,7 +14,6 @@ Page({
loginName:"",
projectId:"",
projectName:"",
- procInsId:"",
infoData:{},
procDefName:"",
deployId:"",
@@ -32,7 +31,9 @@ Page({
finishTime:"",
ret:"",
comment:"",
- stopBtnShow:false
+ stopBtnShow:false,
+ active: 100,
+ rejectNode:false
},
/**
@@ -60,8 +61,8 @@ Page({
myUserId:res.data.userId,
loginName:res.data.loginName,
})
- this.getFlowNodes();
this.getFlowRecordList();
+ this.getFlowNodes();
this.getFormDatasList();
}
})
@@ -72,20 +73,22 @@ Page({
for(let i=0;i 4 ? flowNodeList[i].name.substring(0, 4) : flowNodeList[i].name
+ });
this.setData({
- flowNodes:list
+ active:actNv,
+ flowNodes: list
})
if(flowNodeList[i].outgoingFlows && flowNodeList[i].outgoingFlows.length>0){
return this.getFlowNode(flowNodeList[i].outgoingFlows[0].targetRef);
@@ -112,9 +115,13 @@ Page({
})
if(res.data.length>0){
let list = that.data.flowNodes;
- list.push({id:res.data[0].id,name:res.data[0].name,state:'pass'});
+ list.push({
+ id: res.data[0].id,
+ name: res.data[0].name,
+ text: res.data[0].name
+ });
that.setData({
- flowNodes:list
+ flowNodes: list
})
return that.getFlowNode(res.data[0].outgoingFlows[0].targetRef);
}
@@ -144,7 +151,12 @@ Page({
flowRecordList:res.data
})
let list=[];
- res.data.forEach(item=>{
+ res.data.forEach((item,idx)=>{
+ if(idx==1 && (item.commentType=="3" || item.commentType=="2")){
+ that.setData({
+ rejectNode:true
+ })
+ }
if(item.deleteReason){
item.deleteReason=that.getDeleteReason(item.deleteReason);
}
diff --git a/miniprogram/pages/project_flowable/detailLeaveTask/index.json b/miniprogram/pages/project_flowable/detailLeaveTask/index.json
index 5c42e53..804b5fd 100644
--- a/miniprogram/pages/project_flowable/detailLeaveTask/index.json
+++ b/miniprogram/pages/project_flowable/detailLeaveTask/index.json
@@ -2,6 +2,7 @@
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom"
diff --git a/miniprogram/pages/project_flowable/detailLeaveTask/index.wxml b/miniprogram/pages/project_flowable/detailLeaveTask/index.wxml
index ad51270..1c0e8a3 100644
--- a/miniprogram/pages/project_flowable/detailLeaveTask/index.wxml
+++ b/miniprogram/pages/project_flowable/detailLeaveTask/index.wxml
@@ -12,17 +12,18 @@
+
{{projectName}}
-
+
@@ -33,6 +34,7 @@
{{item.taskName}}{{item.commentResult}}
{{item.commentResult}}
{{item.commentResult}}
+ {{item.commentResult}}
diff --git a/miniprogram/pages/project_flowable/detailLeaveTask/index.wxss b/miniprogram/pages/project_flowable/detailLeaveTask/index.wxss
index 1e95f3c..55d69ee 100644
--- a/miniprogram/pages/project_flowable/detailLeaveTask/index.wxss
+++ b/miniprogram/pages/project_flowable/detailLeaveTask/index.wxss
@@ -57,7 +57,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
@@ -80,10 +81,4 @@
margin-right: 5rpx;
position: relative;
top: 5rpx;
- }
- .pass{
- background-color: #388a38;
- }
- .transact{
- background-color: #8e6424;
}
\ No newline at end of file
diff --git a/miniprogram/pages/project_flowable/detailTask/index.js b/miniprogram/pages/project_flowable/detailTask/index.js
index 7d949be..39b10bc 100644
--- a/miniprogram/pages/project_flowable/detailTask/index.js
+++ b/miniprogram/pages/project_flowable/detailTask/index.js
@@ -24,7 +24,6 @@ Page({
imageList: [],
filesData: [],
taskId: "",
- procInsId: "",
taskName: "",
passState: true,
backName: "",
@@ -36,7 +35,10 @@ Page({
comment: "",
stopBtnShow: false,
imageType: ["png", "jpg", "jpeg"],
+ taskComType:"",
fileType: ["pdf"],
+ active: 100,
+ rejectNode:false
},
/**
@@ -54,7 +56,8 @@ Page({
projectName,
userId,
finishTime,
- ret
+ ret,
+ taskComType
} = options
//获取缓存数据
wx.getStorage({
@@ -73,11 +76,12 @@ Page({
userId,
finishTime,
ret,
+ taskComType,
myUserId: res.data.userId,
loginName: res.data.loginName,
})
- this.getFlowNodes();
this.getFlowRecordList();
+ this.getFlowNodes();
this.getFormDatasList();
}
})
@@ -88,31 +92,21 @@ Page({
for (let i = 0; i < flowNodeList.length; i++) {
if (flowNodeList[i].id == val) {
let list = this.data.flowNodes;
- if (this.data.passState) {
- if (flowNodeList[i].name == this.data.taskName) {
- list.push({
- id: flowNodeList[i].id,
- name: flowNodeList[i].name,
- state: 'transact'
- });
- this.setData({
- passState: false
- })
- } else {
- list.push({
- id: flowNodeList[i].id,
- name: flowNodeList[i].name,
- state: 'pass'
- });
+ let actNv = this.data.active;
+ if(flowNodeList[i].name==this.data.taskName){
+ if(this.data.taskComType=="2" || this.data.taskComType=="3"){
+ actNv = list.length-1;
+ }else{
+ actNv = list.length;
}
- } else {
- list.push({
- id: flowNodeList[i].id,
- name: flowNodeList[i].name,
- state: 'none'
- });
}
+ list.push({
+ id: flowNodeList[i].id,
+ name: flowNodeList[i].name,
+ text: flowNodeList[i].name.length > 4 ? flowNodeList[i].name.substring(0, 4) : flowNodeList[i].name
+ });
this.setData({
+ active:actNv,
flowNodes: list
})
if (flowNodeList[i].outgoingFlows && flowNodeList[i].outgoingFlows.length > 0) {
@@ -143,7 +137,7 @@ Page({
list.push({
id: res.data[0].id,
name: res.data[0].name,
- state: 'pass'
+ text: res.data[0].name
});
that.setData({
flowNodes: list
@@ -176,7 +170,12 @@ Page({
flowRecordList: res.data
})
let list = [];
- res.data.forEach(item => {
+ res.data.forEach((item,idx)=>{
+ if(idx==1 && (item.commentType=="3" || item.commentType=="2")){
+ that.setData({
+ rejectNode:true
+ })
+ }
if (item.deleteReason) {
item.deleteReason = that.getDeleteReason(item.deleteReason);
}
@@ -221,8 +220,8 @@ Page({
let ft = element.split('.');
if (that.data.imageType.indexOf(ft[ft.length - 1].toLowerCase()) > -1) {
imageList.push({
- minPath: config.baseUrl + element,
- path: element
+ minPath: config.baseUrl + element + '.min.jpg',
+ path: config.baseUrl + element
});
} else {
let it = element.split('/');
@@ -519,8 +518,12 @@ Page({
let {
path
} = e.currentTarget.dataset.set
+ let images = [];
+ this.data.imageList.forEach(img =>{
+ images.push(img.path);
+ });
wx.previewImage({
- urls: this.data.imageList,
+ urls: images,
current: path
})
},
diff --git a/miniprogram/pages/project_flowable/detailTask/index.json b/miniprogram/pages/project_flowable/detailTask/index.json
index 5c42e53..804b5fd 100644
--- a/miniprogram/pages/project_flowable/detailTask/index.json
+++ b/miniprogram/pages/project_flowable/detailTask/index.json
@@ -2,6 +2,7 @@
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom"
diff --git a/miniprogram/pages/project_flowable/detailTask/index.wxml b/miniprogram/pages/project_flowable/detailTask/index.wxml
index fb1ec82..f3e2324 100644
--- a/miniprogram/pages/project_flowable/detailTask/index.wxml
+++ b/miniprogram/pages/project_flowable/detailTask/index.wxml
@@ -14,17 +14,18 @@
+
{{projectName}}
-
+
@@ -35,6 +36,7 @@
{{item.taskName}}{{item.commentResult}}
{{item.commentResult}}
{{item.commentResult}}
+ {{item.commentResult}}
diff --git a/miniprogram/pages/project_flowable/detailTask/index.wxss b/miniprogram/pages/project_flowable/detailTask/index.wxss
index 9df048b..441c149 100644
--- a/miniprogram/pages/project_flowable/detailTask/index.wxss
+++ b/miniprogram/pages/project_flowable/detailTask/index.wxss
@@ -81,7 +81,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
@@ -104,10 +105,4 @@
margin-right: 5rpx;
position: relative;
top: 5rpx;
- }
- .pass{
- background-color: #388a38;
- }
- .transact{
- background-color: #8e6424;
}
\ No newline at end of file
diff --git a/miniprogram/pages/project_flowable/editLeaveTask/index.js b/miniprogram/pages/project_flowable/editLeaveTask/index.js
index d6dfe94..1711678 100644
--- a/miniprogram/pages/project_flowable/editLeaveTask/index.js
+++ b/miniprogram/pages/project_flowable/editLeaveTask/index.js
@@ -34,6 +34,8 @@ Page({
beginDate:"",
endDate:"",
day:0,
+ active: 100,
+ rejectNode:false
},
/**
@@ -59,10 +61,10 @@ Page({
userId:res.data.userId,
loginName:res.data.loginName,
})
- this.initTargetKeyList();
- this.getFlowNodes();
this.getFlowRecordList();
+ this.getFlowNodes();
this.getFormDatasList();
+ //this.initTargetKeyList();
}
})
},
@@ -72,20 +74,18 @@ Page({
for(let i=0;i 4 ? flowNodeList[i].name.substring(0, 4) : flowNodeList[i].name
+ });
this.setData({
- flowNodes:list
+ active:actNv,
+ flowNodes: list
})
if(flowNodeList[i].outgoingFlows && flowNodeList[i].outgoingFlows.length>0){
return this.getFlowNode(flowNodeList[i].outgoingFlows[0].targetRef);
@@ -112,9 +112,13 @@ Page({
})
if(res.data.length>0){
let list = that.data.flowNodes;
- list.push({id:res.data[0].id,name:res.data[0].name,state:'pass'});
+ list.push({
+ id: res.data[0].id,
+ name: res.data[0].name,
+ text: res.data[0].name
+ });
that.setData({
- flowNodes:list
+ flowNodes: list
})
return that.getFlowNode(res.data[0].outgoingFlows[0].targetRef);
}
@@ -144,7 +148,12 @@ Page({
flowRecordList:res.data
})
let list=[];
- res.data.forEach(item=>{
+ res.data.forEach((item,idx)=>{
+ if(idx==1 && (item.commentType=="3" || item.commentType=="2")){
+ that.setData({
+ rejectNode:true
+ })
+ }
if(item.deleteReason){
item.deleteReason=that.getDeleteReason(item.deleteReason);
}
diff --git a/miniprogram/pages/project_flowable/editLeaveTask/index.json b/miniprogram/pages/project_flowable/editLeaveTask/index.json
index 5c42e53..804b5fd 100644
--- a/miniprogram/pages/project_flowable/editLeaveTask/index.json
+++ b/miniprogram/pages/project_flowable/editLeaveTask/index.json
@@ -2,6 +2,7 @@
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom"
diff --git a/miniprogram/pages/project_flowable/editLeaveTask/index.wxml b/miniprogram/pages/project_flowable/editLeaveTask/index.wxml
index f6d8559..768d1a4 100644
--- a/miniprogram/pages/project_flowable/editLeaveTask/index.wxml
+++ b/miniprogram/pages/project_flowable/editLeaveTask/index.wxml
@@ -12,17 +12,18 @@
+
{{projectName}}
-
+
@@ -33,6 +34,7 @@
{{item.taskName}}{{item.commentResult}}
{{item.commentResult}}
{{item.commentResult}}
+ {{item.commentResult}}
diff --git a/miniprogram/pages/project_flowable/editLeaveTask/index.wxss b/miniprogram/pages/project_flowable/editLeaveTask/index.wxss
index 1e95f3c..55d69ee 100644
--- a/miniprogram/pages/project_flowable/editLeaveTask/index.wxss
+++ b/miniprogram/pages/project_flowable/editLeaveTask/index.wxss
@@ -57,7 +57,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
@@ -80,10 +81,4 @@
margin-right: 5rpx;
position: relative;
top: 5rpx;
- }
- .pass{
- background-color: #388a38;
- }
- .transact{
- background-color: #8e6424;
}
\ No newline at end of file
diff --git a/miniprogram/pages/project_flowable/editTask/index.js b/miniprogram/pages/project_flowable/editTask/index.js
index 3d594b0..6ef2860 100644
--- a/miniprogram/pages/project_flowable/editTask/index.js
+++ b/miniprogram/pages/project_flowable/editTask/index.js
@@ -37,6 +37,8 @@ Page({
imageType:["png","jpg","jpeg"],
imageInfoData:[],
isFiles: null,
+ active: 100,
+ rejectNode:false
},
/**
@@ -62,10 +64,10 @@ Page({
userId:res.data.userId,
loginName:res.data.loginName,
})
- this.initTargetKeyList();
- this.getFlowNodes();
this.getFlowRecordList();
+ this.getFlowNodes();
this.getFormDatasList();
+ //this.initTargetKeyList();
}
})
},
@@ -75,20 +77,18 @@ Page({
for(let i=0;i 4 ? flowNodeList[i].name.substring(0, 4) : flowNodeList[i].name
+ });
this.setData({
- flowNodes:list
+ active:actNv,
+ flowNodes: list
})
if(flowNodeList[i].outgoingFlows && flowNodeList[i].outgoingFlows.length>0){
return this.getFlowNode(flowNodeList[i].outgoingFlows[0].targetRef);
@@ -115,9 +115,13 @@ Page({
})
if(res.data.length>0){
let list = that.data.flowNodes;
- list.push({id:res.data[0].id,name:res.data[0].name,state:'pass'});
+ list.push({
+ id: res.data[0].id,
+ name: res.data[0].name,
+ text: res.data[0].name
+ });
that.setData({
- flowNodes:list
+ flowNodes: list
})
return that.getFlowNode(res.data[0].outgoingFlows[0].targetRef);
}
@@ -147,7 +151,12 @@ Page({
flowRecordList:res.data
})
let list=[];
- res.data.forEach(item=>{
+ res.data.forEach((item,idx)=>{
+ if(idx==1 && (item.commentType=="3" || item.commentType=="2")){
+ that.setData({
+ rejectNode:true
+ })
+ }
if(item.deleteReason){
item.deleteReason=that.getDeleteReason(item.deleteReason);
}
diff --git a/miniprogram/pages/project_flowable/editTask/index.json b/miniprogram/pages/project_flowable/editTask/index.json
index 5c42e53..804b5fd 100644
--- a/miniprogram/pages/project_flowable/editTask/index.json
+++ b/miniprogram/pages/project_flowable/editTask/index.json
@@ -2,6 +2,7 @@
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom"
diff --git a/miniprogram/pages/project_flowable/editTask/index.wxml b/miniprogram/pages/project_flowable/editTask/index.wxml
index 6e9a8b6..4621765 100644
--- a/miniprogram/pages/project_flowable/editTask/index.wxml
+++ b/miniprogram/pages/project_flowable/editTask/index.wxml
@@ -14,17 +14,18 @@
+
{{projectName}}
-
+
@@ -35,6 +36,7 @@
{{item.taskName}}{{item.commentResult}}
{{item.commentResult}}
{{item.commentResult}}
+ {{item.commentResult}}
diff --git a/miniprogram/pages/project_flowable/editTask/index.wxss b/miniprogram/pages/project_flowable/editTask/index.wxss
index 1e95f3c..ac9f5bd 100644
--- a/miniprogram/pages/project_flowable/editTask/index.wxss
+++ b/miniprogram/pages/project_flowable/editTask/index.wxss
@@ -57,7 +57,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
@@ -81,9 +82,3 @@
position: relative;
top: 5rpx;
}
- .pass{
- background-color: #388a38;
- }
- .transact{
- background-color: #8e6424;
- }
\ No newline at end of file
diff --git a/miniprogram/pages/project_flowable/finished/index.js b/miniprogram/pages/project_flowable/finished/index.js
index 953cc33..872e308 100644
--- a/miniprogram/pages/project_flowable/finished/index.js
+++ b/miniprogram/pages/project_flowable/finished/index.js
@@ -20,18 +20,18 @@ Page({
},
getInfo(e){
- let {deployId,procInsId,taskId,taskName,procDefKey,startDeptName,startUserName,procDefName,businessKeyName,finishTime} = e.currentTarget.dataset.set
+ let {deployId,procInsId,taskId,taskName,procDefKey,startDeptName,startUserName,procDefName,businessKeyName,finishTime,taskComType} = e.currentTarget.dataset.set
if(!finishTime){
finishTime="";
}
//根据不同业务跳转不同表单
if(procDefKey=="flow_xmglzdl_qjspb"){
wx.redirectTo({
- url: `../detailLeaveTask/index?deployId=${deployId}&procInsId=${procInsId}&nickName=${startUserName}&deptName=${startDeptName}&procDefName=${procDefName}&taskId=${taskId}&taskName=${taskName}&projectName=${businessKeyName}&finishTime=${finishTime}&ret=finished`,
+ url: `../detailLeaveTask/index?deployId=${deployId}&procInsId=${procInsId}&nickName=${startUserName}&deptName=${startDeptName}&procDefName=${procDefName}&taskId=${taskId}&taskName=${taskName}&projectName=${businessKeyName}&finishTime=${finishTime}&ret=finished&taskComType=${taskComType}`,
})
}else{
wx.redirectTo({
- url: `../detailTask/index?deployId=${deployId}&procInsId=${procInsId}&nickName=${startUserName}&deptName=${startDeptName}&procDefName=${procDefName}&taskId=${taskId}&taskName=${taskName}&projectName=${businessKeyName}&finishTime=${finishTime}&ret=finished`,
+ url: `../detailTask/index?deployId=${deployId}&procInsId=${procInsId}&nickName=${startUserName}&deptName=${startDeptName}&procDefName=${procDefName}&taskId=${taskId}&taskName=${taskName}&projectName=${businessKeyName}&finishTime=${finishTime}&ret=finished&taskComType=${taskComType}`,
})
}
},
diff --git a/miniprogram/pages/project_flowable/finished/index.wxml b/miniprogram/pages/project_flowable/finished/index.wxml
index 8ddecd2..3e12420 100644
--- a/miniprogram/pages/project_flowable/finished/index.wxml
+++ b/miniprogram/pages/project_flowable/finished/index.wxml
@@ -19,9 +19,12 @@
{{index < 9 ?'0'+(index+1):(index+1)}}
{{item.endTime}}
- 进行中
- 已完成
- 已终止
+ 已提交
+ 已完成
+ 已退回
+ 已终止
+ 已驳回
+ 已撤回
@@ -40,7 +43,7 @@
-
+
暂无数据
diff --git a/miniprogram/pages/project_flowable/initLeaveTask/index.js b/miniprogram/pages/project_flowable/initLeaveTask/index.js
index 4f5253b..8327b4c 100644
--- a/miniprogram/pages/project_flowable/initLeaveTask/index.js
+++ b/miniprogram/pages/project_flowable/initLeaveTask/index.js
@@ -25,6 +25,7 @@ Page({
beginDate:"",
endDate:"",
day:0,
+ active: 0,
},
/**
@@ -86,9 +87,13 @@ Page({
for(let i=0;i 4 ? flowNodeList[i].name.substring(0, 4) : flowNodeList[i].name
+ });
this.setData({
- flowNodes:list
+ flowNodes: list
})
if(flowNodeList[i].outgoingFlows && flowNodeList[i].outgoingFlows.length>0){
return this.getFlowNode(flowNodeList[i].outgoingFlows[0].targetRef);
@@ -115,9 +120,13 @@ Page({
})
if(res.data.length>0){
let list = that.data.flowNodes;
- list.push({id:res.data[0].id,name:res.data[0].name});
+ list.push({
+ id: res.data[0].id,
+ name: res.data[0].name,
+ text: res.data[0].name
+ });
that.setData({
- flowNodes:list
+ flowNodes: list
})
return that.getFlowNode(res.data[0].outgoingFlows[0].targetRef);
}
diff --git a/miniprogram/pages/project_flowable/initLeaveTask/index.json b/miniprogram/pages/project_flowable/initLeaveTask/index.json
index 5c42e53..804b5fd 100644
--- a/miniprogram/pages/project_flowable/initLeaveTask/index.json
+++ b/miniprogram/pages/project_flowable/initLeaveTask/index.json
@@ -2,6 +2,7 @@
"usingComponents": {
"van-overlay": "@vant/weapp/overlay/index",
"van-collapse": "@vant/weapp/collapse",
+ "van-steps": "@vant/weapp/steps/index",
"van-collapse-item": "@vant/weapp/collapse-item"
},
"navigationStyle":"custom"
diff --git a/miniprogram/pages/project_flowable/initLeaveTask/index.wxml b/miniprogram/pages/project_flowable/initLeaveTask/index.wxml
index fcfe241..a8a9dc3 100644
--- a/miniprogram/pages/project_flowable/initLeaveTask/index.wxml
+++ b/miniprogram/pages/project_flowable/initLeaveTask/index.wxml
@@ -12,11 +12,12 @@
+
{{projectName}}
-
+
发起单位
diff --git a/miniprogram/pages/project_flowable/initLeaveTask/index.wxss b/miniprogram/pages/project_flowable/initLeaveTask/index.wxss
index 7ac05d2..4194ddf 100644
--- a/miniprogram/pages/project_flowable/initLeaveTask/index.wxss
+++ b/miniprogram/pages/project_flowable/initLeaveTask/index.wxss
@@ -57,7 +57,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
diff --git a/miniprogram/pages/project_flowable/initTask/index.js b/miniprogram/pages/project_flowable/initTask/index.js
index 473208c..b25a2f1 100644
--- a/miniprogram/pages/project_flowable/initTask/index.js
+++ b/miniprogram/pages/project_flowable/initTask/index.js
@@ -1,4 +1,3 @@
-// pageage/safetyManagement/addSafetyInspect/index.js
const app = getApp()
Page({
@@ -26,7 +25,7 @@ Page({
flowNodes: [],
isFiles: false,
imageInfoData: [],
- active: "",
+ active: 0,
},
/**
diff --git a/miniprogram/pages/project_flowable/initTask/index.wxss b/miniprogram/pages/project_flowable/initTask/index.wxss
index 42b488b..4194ddf 100644
--- a/miniprogram/pages/project_flowable/initTask/index.wxss
+++ b/miniprogram/pages/project_flowable/initTask/index.wxss
@@ -57,7 +57,8 @@
}
.van-cell.van-cell--clickable{
background-color: #2b345b;
- margin-top: 30rpx;
+ margin-top: 5rpx;
+ margin-bottom: 5rpx;
color: #fff;
border-radius: 15rpx;
@@ -69,13 +70,4 @@
background-color: #1e2336;
color:#8ca4ec ;
border-width: 0px 0;
- }
- .van-steps{
- background-color: transparent !important;
- }
- .van-step--horizontal .van-step__circle-container{
- background-color: transparent !important;
- }
- .van-steps--horizontal{
- padding: 10px 20px !important;
}
\ No newline at end of file
diff --git a/miniprogram/pages/project_flowable/myFlowDefinition/index.wxml b/miniprogram/pages/project_flowable/myFlowDefinition/index.wxml
index 1f5beb5..e704177 100644
--- a/miniprogram/pages/project_flowable/myFlowDefinition/index.wxml
+++ b/miniprogram/pages/project_flowable/myFlowDefinition/index.wxml
@@ -32,7 +32,7 @@
-
+
暂无数据
diff --git a/miniprogram/pages/project_flowable/myProcessIns/index.js b/miniprogram/pages/project_flowable/myProcessIns/index.js
index a573091..adb8a15 100644
--- a/miniprogram/pages/project_flowable/myProcessIns/index.js
+++ b/miniprogram/pages/project_flowable/myProcessIns/index.js
@@ -49,7 +49,7 @@ Page({
},
getInfo(e){
- let {deployId,procInsId,taskId,taskName,procDefKey,startDeptName,startUserName,procDefName,businessKeyName,finishTime} = e.currentTarget.dataset.set
+ let {deployId,procInsId,taskId,taskName,procDefKey,startDeptName,startUserName,procDefName,businessKeyName,finishTime,taskComType} = e.currentTarget.dataset.set
if(!finishTime){
finishTime="";
}
@@ -67,11 +67,11 @@ Page({
//根据不同业务跳转不同表单
if(procDefKey=="flow_xmglzdl_qjspb"){
wx.redirectTo({
- url: `../detailLeaveTask/index?deployId=${deployId}&procInsId=${procInsId}&nickName=${startUserName}&deptName=${startDeptName}&procDefName=${procDefName}&taskId=${taskId}&taskName=${taskName}&projectName=${businessKeyName}&finishTime=${finishTime}&ret=myProcess`,
+ url: `../detailLeaveTask/index?deployId=${deployId}&procInsId=${procInsId}&nickName=${startUserName}&deptName=${startDeptName}&procDefName=${procDefName}&taskId=${taskId}&taskName=${taskName}&projectName=${businessKeyName}&finishTime=${finishTime}&ret=myProcess&taskComType=${taskComType}`,
})
}else{
wx.redirectTo({
- url: `../detailTask/index?deployId=${deployId}&procInsId=${procInsId}&nickName=${startUserName}&deptName=${startDeptName}&procDefName=${procDefName}&taskId=${taskId}&taskName=${taskName}&projectName=${businessKeyName}&finishTime=${finishTime}&ret=myProcess`,
+ url: `../detailTask/index?deployId=${deployId}&procInsId=${procInsId}&nickName=${startUserName}&deptName=${startDeptName}&procDefName=${procDefName}&taskId=${taskId}&taskName=${taskName}&projectName=${businessKeyName}&finishTime=${finishTime}&ret=myProcess&taskComType=${taskComType}`,
})
}
}
diff --git a/miniprogram/pages/project_flowable/myProcessIns/index.wxml b/miniprogram/pages/project_flowable/myProcessIns/index.wxml
index e92a6d7..822cd0f 100644
--- a/miniprogram/pages/project_flowable/myProcessIns/index.wxml
+++ b/miniprogram/pages/project_flowable/myProcessIns/index.wxml
@@ -25,15 +25,18 @@
{{index < 9 ?'0'+(index+1):(index+1)}}
{{item.createTime}}
进行中
- 已完成
- 已终止
+ 已完成
+ 已退回
+ 已终止
+ 已驳回
+ 已撤回
项目名称:{{item.businessKeyName}}
审批事项:{{item.procDefName}} {{' v'+item.procDefVersion}}
- 流程类别:程序及质量类安全类认价类图纸类项目管理制度类索赔类特殊事项确认类
+ 流程类别:程序及质量类安全类认价类图纸类项目管理制度类索赔类特殊事项确认类专项验收审批
当前节点:{{item.taskName}}
流程结束
@@ -44,7 +47,7 @@
-
+
暂无数据
diff --git a/miniprogram/pages/wx-auth/index.js b/miniprogram/pages/wx-auth/index.js
index ce4b7eb..8535fd8 100644
--- a/miniprogram/pages/wx-auth/index.js
+++ b/miniprogram/pages/wx-auth/index.js
@@ -5,15 +5,21 @@ Page({
* 页面的初始数据
*/
data: {
- url:""
+ url: ""
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
- this.setData({
- url:config.manageUrl+"/#/wxAuth?userOpenId=1111111111111111"
+ wx.getStorage({
+ key: 'userinfo',
+ success: res => {
+ //config.manageUrl +
+ this.setData({
+ url:"https://szgc.jhncidg.com/#/wxAuth?userOpenId=" + res.data.openId
+ })
+ }
})
},
@@ -40,9 +46,14 @@ Page({
/**
* 生命周期函数--监听页面卸载
+ * 查询当前用户是否已绑定公众号
*/
onUnload() {
-
+ console.log("我关闭了呀。。。。");
+ //重新登录
+ wx.redirectTo({
+ url: '../login/index',
+ })
},
/**
diff --git a/miniprogram/pages/xiangmugaikuang/index.js b/miniprogram/pages/xiangmugaikuang/index.js
index 02112e0..ed4a329 100644
--- a/miniprogram/pages/xiangmugaikuang/index.js
+++ b/miniprogram/pages/xiangmugaikuang/index.js
@@ -1,4 +1,8 @@
import * as echarts from '../../ec-canvas/echarts';
+import {
+ delOpenUserMsgId,
+ findOpenUserMsgId
+} from '../../api/login'
const app = getApp();
@@ -393,6 +397,10 @@ Page({
wx.getStorage({
key: 'userinfo',
success: function (res) {
+ if (options && options.showUser) {
+ //这里重新查询用户消息是否已授权
+ that.reUserOpenMsgId(res.data);
+ }
that.setData({
loginName: res.data.loginName,
nickName: res.data.nickName,
@@ -427,6 +435,23 @@ Page({
//this.getVideoList(app.globalData.projectId);
},
+ /**
+ * 查询公众号消息授权
+ */
+ reUserOpenMsgId(data){
+ findOpenUserMsgId(data.openId).then(res =>{
+ if(res.code==200 && res.data){
+ data.msgOpenId=res.data.msgOpenId;
+ wx.setStorage({
+ key: 'userinfo',
+ data: data
+ });
+ let userInfos = this.selectComponent("#userInfos");
+ userInfos.loadUserInfo();
+ }
+ });
+ },
+
// 底部导航
onChange(event) {
// event.detail 的值为当前选中项的索引
diff --git a/miniprogram/pages/xiangmugaikuang/index.wxml b/miniprogram/pages/xiangmugaikuang/index.wxml
index 6e67958..0fb383c 100644
--- a/miniprogram/pages/xiangmugaikuang/index.wxml
+++ b/miniprogram/pages/xiangmugaikuang/index.wxml
@@ -3,7 +3,7 @@