手机端同步pc端查看重点工程的交互逻辑

dev-2024年1月8日
dearlin 2023-11-10 17:03:46 +08:00
parent 94d8533849
commit 6db77875a1
7 changed files with 375 additions and 337 deletions

View File

@ -81,6 +81,8 @@ export const setFinalCheck = (params) => post("/app/hidden/finalcheck", params)
export const getCorpinfoDeptListTree = (params) => post("/app/corpDepartment/listTree", params) //获取企业的 部门信息 export const getCorpinfoDeptListTree = (params) => post("/app/corpDepartment/listTree", params) //获取企业的 部门信息
export const getSafetyenvironmentalExplain = (params) => post("/app/safetyenvironmental/getExplain", params) //获取安全环保检查申辩流程列表 export const getSafetyenvironmentalExplain = (params) => post("/app/safetyenvironmental/getExplain", params) //获取安全环保检查申辩流程列表
export const getKeyProjectsListOutsourced = (params) => post("/app/keyProjects/listOutsourced", params) //获取重点工程管理被检查项目列表 export const getKeyProjectsListOutsourced = (params) => post("/app/keyProjects/listOutsourced", params) //获取重点工程管理被检查项目列表
export const getKeyProjectsListListByCorp = (params) => post("/api/outsourced/listByCorp", params) //获取重点工程管理按照公司分组
export const getKeyProjectsCheckList = (params) => post("/app/keyprojectcheck/list", params) //获取重点工程管理被检查项目检查列表 export const getKeyProjectsCheckList = (params) => post("/app/keyprojectcheck/list", params) //获取重点工程管理被检查项目检查列表
export const getKeyProjectsListAllUnits = (params) => post("/app/keyProjects/listAllUnits", params) //获取重点工程管理被检查项目检查被检查单位 export const getKeyProjectsListAllUnits = (params) => post("/app/keyProjects/listAllUnits", params) //获取重点工程管理被检查项目检查被检查单位
export const getKeyProjectsListAllPersonnel = (params) => post("/app/keyProjects/listAllPersonnel", params) //获取重点工程管理被检查项目检查被检查人 export const getKeyProjectsListAllPersonnel = (params) => post("/app/keyProjects/listAllPersonnel", params) //获取重点工程管理被检查项目检查被检查人

View File

@ -536,6 +536,12 @@
"navigationBarTitleText": "重点工程管理" "navigationBarTitleText": "重点工程管理"
} }
}, },
{
"path": "pages/key-project-management/key-project-out/list",
"style": {
"navigationBarTitleText": "重点工程"
}
},
{ {
"path": "pages/key-project-management/safety-environmental-inspection/list", "path": "pages/key-project-management/safety-environmental-inspection/list",
"style": { "style": {

View File

@ -6,15 +6,15 @@
</view> </view>
<!-- #endif --> <!-- #endif -->
<view class="wui_banner"> <view class="wui_banner">
<!-- <view class="wui-bar">--> <!-- <view class="wui-bar">-->
<!-- <view class="search-form">--> <!-- <view class="search-form">-->
<!-- <text class="cuIcon-search"></text>--> <!-- <text class="cuIcon-search"></text>-->
<!-- <input type="text" placeholder-class="phcolor" placeholder="请输入关键词..." confirm-type="search"></input>--> <!-- <input type="text" placeholder-class="phcolor" placeholder="请输入关键词..." confirm-type="search"></input>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="icon-ui">--> <!-- <view class="icon-ui">-->
<!-- <text class="cuIcon-scan"></text>--> <!-- <text class="cuIcon-scan"></text>-->
<!-- </view>--> <!-- </view>-->
<!-- </view>--> <!-- </view>-->
<view class="banner_img"> <view class="banner_img">
<image src="../../static/home-bg.png" mode=""></image> <image src="../../static/home-bg.png" mode=""></image>
</view> </view>
@ -38,81 +38,81 @@
</view> </view>
</view> </view>
</view> </view>
<!-- <view class="home-message">--> <!-- <view class="home-message">-->
<!-- <view class="home-title">--> <!-- <view class="home-title">-->
<!-- <image src="../../static/message.png" mode=""></image>--> <!-- <image src="../../static/message.png" mode=""></image>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="home-content">--> <!-- <view class="home-content">-->
<!-- 站内信示例文字滚动显示最大--> <!-- 站内信示例文字滚动显示最大-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="home-more">--> <!-- <view class="home-more">-->
<!-- 更多--> <!-- 更多-->
<!-- </view>--> <!-- </view>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="home-letters">--> <!-- <view class="home-letters">-->
<!-- <view class="letters-title">--> <!-- <view class="letters-title">-->
<!-- <image src="../../static/stitle.png" mode=""></image>--> <!-- <image src="../../static/stitle.png" mode=""></image>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="letters-content">--> <!-- <view class="letters-content">-->
<!-- <view class="letters-item">--> <!-- <view class="letters-item">-->
<!-- <view class="letters-title">--> <!-- <view class="letters-title">-->
<!-- <view>--> <!-- <view>-->
<!-- <text class="lable">隐患来源</text>--> <!-- <text class="lable">隐患来源</text>-->
<!-- <text class="font">秦港一公司</text>--> <!-- <text class="font">秦港一公司</text>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="color-red">重大隐患</view>--> <!-- <view class="color-red">重大隐患</view>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="letters-sub-title">--> <!-- <view class="letters-sub-title">-->
<!-- <text class="lable">隐患描述</text>--> <!-- <text class="lable">隐患描述</text>-->
<!-- <text class="font">第二罐体出现不稳定情况第二罐体出现不稳定情况罐体...</text>--> <!-- <text class="font">第二罐体出现不稳定情况第二罐体出现不稳定情况罐体...</text>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="letters-date">--> <!-- <view class="letters-date">-->
<!-- <text class="lable">发现时间</text>--> <!-- <text class="lable">发现时间</text>-->
<!-- <text class="font">2022-10-31 10:33:20</text>--> <!-- <text class="font">2022-10-31 10:33:20</text>-->
<!-- </view>--> <!-- </view>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="letters-item">--> <!-- <view class="letters-item">-->
<!-- <view class="letters-title">--> <!-- <view class="letters-title">-->
<!-- <view>--> <!-- <view>-->
<!-- <text class="lable">隐患来源</text>--> <!-- <text class="lable">隐患来源</text>-->
<!-- <text class="font">秦港一公司</text>--> <!-- <text class="font">秦港一公司</text>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="color-org">较大隐患</view>--> <!-- <view class="color-org">较大隐患</view>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="letters-sub-title">--> <!-- <view class="letters-sub-title">-->
<!-- <text class="lable">隐患描述</text>--> <!-- <text class="lable">隐患描述</text>-->
<!-- <text class="font">第二罐体出现不稳定情况第二罐体出现不稳定情况罐体...</text>--> <!-- <text class="font">第二罐体出现不稳定情况第二罐体出现不稳定情况罐体...</text>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="letters-date">--> <!-- <view class="letters-date">-->
<!-- <text class="lable">发现时间</text>--> <!-- <text class="lable">发现时间</text>-->
<!-- <text class="font">2022-10-31 10:33:20</text>--> <!-- <text class="font">2022-10-31 10:33:20</text>-->
<!-- </view>--> <!-- </view>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="letters-item">--> <!-- <view class="letters-item">-->
<!-- <view class="letters-title">--> <!-- <view class="letters-title">-->
<!-- <view>--> <!-- <view>-->
<!-- <text class="lable">隐患来源</text>--> <!-- <text class="lable">隐患来源</text>-->
<!-- <text class="font">秦港一公司</text>--> <!-- <text class="font">秦港一公司</text>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="color-nomal">一般隐患</view>--> <!-- <view class="color-nomal">一般隐患</view>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="letters-sub-title">--> <!-- <view class="letters-sub-title">-->
<!-- <text class="lable">隐患描述</text>--> <!-- <text class="lable">隐患描述</text>-->
<!-- <text class="font">第二罐体出现不稳定情况第二罐体出现不稳定情况罐体...</text>--> <!-- <text class="font">第二罐体出现不稳定情况第二罐体出现不稳定情况罐体...</text>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="letters-date">--> <!-- <view class="letters-date">-->
<!-- <text class="lable">发现时间</text>--> <!-- <text class="lable">发现时间</text>-->
<!-- <text class="font">2022-10-31 10:33:20</text>--> <!-- <text class="font">2022-10-31 10:33:20</text>-->
<!-- </view>--> <!-- </view>-->
<!-- </view>--> <!-- </view>-->
<!-- </view>--> <!-- </view>-->
<!-- </view>--> <!-- </view>-->
<!-- <view class="home-line">--> <!-- <view class="home-line">-->
<!-- &#45;&#45;&#45;&#45;&#45;&#45; END &#45;&#45;&#45;&#45;&#45;&#45;--> <!-- &#45;&#45;&#45;&#45;&#45;&#45; END &#45;&#45;&#45;&#45;&#45;&#45;-->
<!-- </view>--> <!-- </view>-->
<u-modal :show="updateVersion.modalShow" title="温馨提示" :showConfirmButton="updateVersion.showConfirmButton" <u-modal :show="updateVersion.modalShow" title="温馨提示" :showConfirmButton="updateVersion.showConfirmButton"
:showCancelButton="updateVersion.showCancelButton" :confirmText="updateVersion.confirmText" :cancelText="updateVersion.cancelText" :showCancelButton="updateVersion.showCancelButton" :confirmText="updateVersion.confirmText"
@cancel="modalCancel" @confirm="modalConfirm"> :cancelText="updateVersion.cancelText" @cancel="modalCancel" @confirm="modalConfirm">
<view style="text-align: center;color:#606266"> <view style="text-align: center;color:#606266">
<rich-text :nodes="updateVersion.modalContent"></rich-text> <rich-text :nodes="updateVersion.modalContent"></rich-text>
</view> </view>
@ -124,14 +124,15 @@
</template> </template>
<script> <script>
import updateVersion from "../../utils/updateVersion"; import updateVersion from "../../utils/updateVersion";
import {getPromiseUnsigned} from "../../api"; import {
export default { getPromiseUnsigned
mixins:[updateVersion], } from "../../api";
export default {
mixins: [updateVersion],
data() { data() {
return { return {
baseList: [ baseList: [{
{
img: require('../../static/icon-apps/home-fgsxxgl.png'), img: require('../../static/icon-apps/home-fgsxxgl.png'),
title: '分公司信息管理', title: '分公司信息管理',
url: '/pages/branch-information-management/index/index' url: '/pages/branch-information-management/index/index'
@ -169,7 +170,8 @@ export default {
{ {
img: require('../../static/icon-apps/home-zdgcgl.png'), img: require('../../static/icon-apps/home-zdgcgl.png'),
title: '重点工程管理', title: '重点工程管理',
url: '/pages/key-project-management/index/index' url: '/pages/key-project-management/key-project-out/list',
// url: '/pages/key-project-management/index/index'
}, },
{ {
img: require('../../static/icon-apps/home-znx.png'), img: require('../../static/icon-apps/home-znx.png'),
@ -260,23 +262,23 @@ export default {
}) })
} }
}, },
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.page { .page {
background-color: #f7f9ff; background-color: #f7f9ff;
min-height: 100vh; min-height: 100vh;
} }
.about-infoer{ .about-infoer {
width: 100%; width: 100%;
position: relative; position: relative;
padding: 20rpx; padding: 20rpx;
box-sizing: border-box; box-sizing: border-box;
margin-top: -130rpx; margin-top: -130rpx;
.about-info{ .about-info {
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
padding: 20rpx; padding: 20rpx;
@ -286,23 +288,28 @@ export default {
align-items: center; align-items: center;
.about-info-main-tx{ .about-info-main-tx {
width: 100rpx; width: 100rpx;
height: 100rpx; height: 100rpx;
background: #ccc; background: #ccc;
border-radius: 100%; border-radius: 100%;
} }
.about-info-text{ .about-info-text {
margin-left: 20rpx; margin-left: 20rpx;
.title{ font-size: 32rpx; font-weight: bold;} .title {
font-size: 32rpx;
font-weight: bold;
}
.phone{ color: #999999; font-size: 26rpx;} .phone {
color: #999999;
font-size: 26rpx;
}
} }
} }
} }
</style> </style>

View File

@ -129,6 +129,7 @@ export default {
{name: '已验收隐患', id: '2'} {name: '已验收隐患', id: '2'}
], ],
tabsType: '1', tabsType: '1',
CORPINFO_ID: '',
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
totalPage: 0, totalPage: 0,
@ -165,6 +166,9 @@ export default {
onShow() { onShow() {
this.resetList() this.resetList()
}, },
onLoad() {
this.CORPINFO_ID = this.$route.query.CORPINFO_ID
},
computed: { computed: {
userInfo() { userInfo() {
return this.$store.getters.getUserInfo return this.$store.getters.getUserInfo
@ -176,6 +180,7 @@ export default {
showCount: this.pageSize, showCount: this.pageSize,
currentPage: this.currentPage, currentPage: this.currentPage,
CREATOR: this.userInfo.USER_ID, CREATOR: this.userInfo.USER_ID,
CORPINFO_ID: this.CORPINFO_ID,
ISCHECK: this.tabsType ISCHECK: this.tabsType
}); });
this.list = [...this.list,...resData.varList]; this.list = [...this.list,...resData.varList];

View File

@ -4,7 +4,8 @@
<u-cell v-for="(item,index) in baseList" :key="index" isLink :url="item.url"> <u-cell v-for="(item,index) in baseList" :key="index" isLink :url="item.url">
<view slot="title">{{ item.title }}</view> <view slot="title">{{ item.title }}</view>
<view slot="value"> <view slot="value">
<u-badge :value="item.NUM"></u-badge></view> <u-badge :value="item.NUM"></u-badge>
</view>
</u-cell> </u-cell>
</u-cell-group> </u-cell-group>
</view> </view>
@ -15,26 +16,30 @@
getkeyprojectcount, getkeyprojectcount,
} from "../../../api"; } from "../../../api";
export default { export default {
data() { data() {
return { return {
count : {}, count: {},
CORPINFO_ID: '',
baseList: [] baseList: []
} }
}, },
onLoad() {
this.CORPINFO_ID = this.$route.query.CORPINFO_ID
},
onShow(event) { onShow(event) {
this.baseList = [
{ this.baseList = [{
title: '安全环保检查管理', title: '安全环保检查管理',
url: '/pages/key-project-management/safety-environmental-inspection/list', url: '/pages/key-project-management/safety-environmental-inspection/list'+ '?CORPINFO_ID='+this.CORPINFO_ID,
}, },
{ {
title: '隐患管理', title: '隐患管理',
url: '/pages/key-project-management/hidden-management/list', url: '/pages/key-project-management/hidden-management/list'+'?CORPINFO_ID='+this.CORPINFO_ID,
}, },
{ {
title: '处罚管理', title: '处罚管理',
url: '/pages/key-project-management/penalty-management/list', url: '/pages/key-project-management/penalty-management/list'+'?CORPINFO_ID='+this.CORPINFO_ID,
}, },
// { // {
// title: 'AI', // title: 'AI',
@ -50,19 +55,22 @@ export default {
}, },
methods: { methods: {
fnNavigator(e) { fnNavigator(e) {
console.log(this.CORPINFO_ID)
uni.$u.route({ uni.$u.route({
url: this.baseList[e].url url: this.baseList[e].url+'?CORPINFO_ID'+this.CORPINFO_ID
}) })
}, },
async getData() { async getData() {
let resData = await getkeyprojectcount({ let resData = await getkeyprojectcount({
loginUserId: this.userInfo.USER_ID, loginUserId: this.userInfo.USER_ID,
CORPINFO_ID: this.CORPINFO_ID
}) })
this.$set(this.baseList[1], 'NUM', resData.pd.HIDDEN_COUNT) this.$set(this.baseList[1], 'NUM', resData.pd.HIDDEN_COUNT)
this.$set(this.baseList[2], 'NUM', resData.pd.CF_COUNT) this.$set(this.baseList[2], 'NUM', resData.pd.CF_COUNT)
} }
}, },
} }
</script> </script>
<style scoped> <style scoped>

View File

@ -119,6 +119,7 @@ export default {
RECTIFICATIONDEPT_NAME: '', RECTIFICATIONDEPT_NAME: '',
RECTIFICATIONOR_NAME: '', RECTIFICATIONOR_NAME: '',
REASON: '', REASON: '',
CORPINFO_ID: '',
AMOUT: '', AMOUT: '',
DATE: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'), DATE: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM'),
}, },
@ -128,6 +129,9 @@ export default {
onShow() { onShow() {
this.resetList() this.resetList()
}, },
onLoad() {
this.CORPINFO_ID = this.$route.query.CORPINFO_ID
},
computed: { computed: {
userInfo() { userInfo() {
return this.$store.getters.getUserInfo return this.$store.getters.getUserInfo
@ -138,6 +142,7 @@ export default {
let resData = await getKeyProjectsPunishList({ let resData = await getKeyProjectsPunishList({
showCount: this.pageSize, showCount: this.pageSize,
currentPage: this.currentPage, currentPage: this.currentPage,
CORPINFO_ID: this.CORPINFO_ID,
HANDLED: this.tabsType, HANDLED: this.tabsType,
loginUserId: this.userInfo.USER_ID loginUserId: this.userInfo.USER_ID
}); });

View File

@ -59,12 +59,16 @@ export default {
data() { data() {
return { return {
KEYWORDS: '', KEYWORDS: '',
CORPINFO_ID: '',
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
totalPage: 0, totalPage: 0,
list: [], list: [],
} }
}, },
onLoad() {
this.CORPINFO_ID = this.$route.query.CORPINFO_ID
},
onShow() { onShow() {
this.resetList() this.resetList()
}, },
@ -79,6 +83,7 @@ export default {
KEYWORDS: this.KEYWORDS, KEYWORDS: this.KEYWORDS,
showCount: this.pageSize, showCount: this.pageSize,
currentPage: this.currentPage, currentPage: this.currentPage,
CORPINFO_ID: this.CORPINFO_ID,
UserId: this.userInfo.USER_ID, UserId: this.userInfo.USER_ID,
STATE:'1' STATE:'1'
}); });