作者 lihongjuan

1

要显示太多修改。

为保证性能只显示 17 of 17+ 个文件。

<script>
export default {
onLaunch: function() {
console.log('App Launch')
// plus.screen.lockOrientation('portrait-primary');
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
},
post: function(url, data,method) {
// (showLoad == undefined || showLoad) ?
// wx.showLoading({
// title: '加载中',
// }) : ''
// wx.showNavigationBarLoading()
var promise = new Promise((resolve, reject) => {
//init
let that = this,
token = uni.getStorageSync('token'),
header = {
token: token || ''
},
postData;
// console.log(token,"token")
//网络请求
uni.request({
url: this.globalData.baseUrl + url,
data: data,
method: method,
header: header,
success: function(res) {
// console.log(res)//返回取得的数据
// console.log(res)
if (res.statusCode == 200) {
resolve(res);
} else {
// uni.showToast({
// title: res.data.msg,
// icon: 'none',
// })
reject(res.data)
// if (res.data.code == '401') {}
}
// (showLoad || showLoad == undefined) ? wx.hideLoading(): "";
// wx.hideNavigationBarLoading()
},
fail: function(e) {
console.log(e)
reject('网络出错');
// (showLoad || showLoad == undefined) ? wx.hideLoading() : "";
wx.hideNavigationBarLoading()
},
complete: function(daa) {
// console.log(daa)
}
})
});
return promise;
},
globalData: {
userInfo: null,
// baseUrl: 'http://icrgangjuren.w.brotop.cn/'
// baseUrl:'http://39.105.61.115:1912/api/'
baseUrl:'https://www.bjzha.net/api/'
}
}
</script>
<style>
/*每个页面公共css */
.register {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 5;
/* display:none */
}
.taizhangwrap{
width:750rpx;
height:664rpx;
background: #fff;
position: absolute;
top:0rpx;
left:0;
padding: 0 32rpx;
box-sizing: border-box;
}
.zibot{
display:flex;
align-items: center;
justify-content: center;
margin:100rpx;
}
.reset{
width:200rpx;
height:64rpx;
background:rgba(232,80,0,1);
opacity:1;
border-radius:8rpx;
color:#fff;
font-size: 24rpx;
text-align: center;
line-height: 64rpx;
margin-right:24rpx;
}
.nodata{
color:#999;
font-size: 32rpx;
text-align: center;
margin-top:200rpx;
}
/* 评审类型 */
.wrapitem {
display: flex;
align-items: center;
margin-top: 40rpx;
}
.wrapitemleft {
width: 120rpx;
}
.wrapitemleft {
color: #06121E;
font-size: 28rpx
}
.wrapitemright {
width: 544rpx;
height: 76rpx;
background: rgba(238, 238, 238, 1);
opacity: 1;
border-radius: 8rpx;
margin-left: 18rpx;
display: flex;
align-items: center;
padding: 20rpx;
box-sizing: border-box;
}
.wrapitemright input {
width: 100%;
color: #8C9198;
font-size: 28rpx;
}
.nianduright {
width: 14rpx;
height: 22rpx;
font-size: 0;
}
.nianduleft {
width: 500rpx;
}
.nianduright image {
width: 100%;
height: 100%;
}
.time {
display: flex;
align-items: center;
margin-left: 18rpx;
}
.timeleft {
width: 232rpx;
height: 76rpx;
background: rgba(238, 238, 238, 1);
opacity: 1;
border-radius: 8rpx;
padding: 15rpx 20rpx;
box-sizing: border-box;
color: #8C9198;
font-size: 28rpx;
}
.timeleft input {
width: 100%;
color: #8C9198;
fotn-size: 28rpx;
}
.timemiddle {
width: 39rpx;
background: rgba(189, 196, 206, 1);
border: 1rpx solid rgba(189, 196, 206, 1);
opacity: 1;
margin: 0 20rpx;
}
.chaxun {
width: 200rpx;
height: 64rpx;
background: rgba(0, 147, 255, 1);
opacity: 1;
border-radius: 8rpx;
color: #F9F9F9;
font-size: 24rpx;
text-align: center;
line-height: 64rpx;
}
.projectname {
color: #8C9198;
font-size: 28rpx;
}
.detailname{
color:#0093FF;
font-size: 24rpx;
margin-left:20rpx;
}
.headleft input{
width:100%;
height:100%;
}
.tabfooter{
display:flex;
align-items: center;
justify-content: space-between;
position:fixed;
height:110rpx;
width:750rpx;
bottom:0;
left:0;
padding: 14rpx 48rpx;
box-sizing: border-box;
background: #fff;
border-top:1rpx solid #F5F5F5;
}
.tabfooteritem{
width:200rpx;
display:flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.tabfooteritemimg{
width:45rpx;
height:48rpx;
font-size: 0;
}
.tabfooteritemimg image{
width:100%;
height:100%;
}
.tabfooteritemtop{
width:100rpx;
color:#BDC4CE;
font-size: 22rpx;
text-align: center;
}
.tabfooteritemtopactive{
color:#2E85ED
}
</style>
... ...
page{
background: #F9F9F9;
}
.head{
display:flex;
align-items: center;
background: #fff;
box-sizing: border-box;
position: fixed;
top:0;
left:0
}
.headitem{
color:#3D444D;
font-size: 28rpx;
width:250rpx;
text-align: center;
padding: 28rpx 0;
box-sizing: border-box;
border-bottom: 1rpx solid #fff;
}
.selactive{
color:#0093FF;
font-size: 28rpx;
border-bottom: 1rpx solid #0093FF;
}
.daibanlist{
padding: 0 32rpx;
box-sizing: border-box;
margin-top:100rpx;
padding-bottom: 50rpx;
margin-bottom: 150rpx;
}
.daibanlistitem{
padding:32rpx 0;
box-sizing: border-box;
border-bottom: 1rpx solid #EEEEEE;
}
.daibanlsis{
color:#3D444D;
font-size: 24rpx;
}
.daibanm{
display:flex;
align-items: center;
justify-content: flex-end;
/* margin-top:12rpx; */
}
.daibanmleft{
color:#3D444D;
font-size: 28rpx;
font-weight: bold;
}
.daibanmright{
color:#0093FF;
font-size: 24rpx;
}
.daibanbottom{
color:#3D444D;
font-size: 24rpx;
margin-top:12rpx;
letter-spacing: 2rpx;
}
.yidu{
color:#BDC4CE;
font-size: 24rpx;
}
.datetop{
display:flex;
align-items: center;
justify-content: space-between;
}
... ...
module.exports = {
error:'',
isJSON : function (str){
if (typeof str == 'string') {
try {
var obj=JSON.parse(str);
if(typeof obj == 'object' && obj ){
return true;
}else{
return false;
}
} catch(e) {
console.log('error:'+str+'!!!'+e);
return false;
}
}
},
isNumber : function (checkVal){
var reg = /^-?[1-9][0-9]?.?[0-9]*$/;
return reg.test(checkVal);
},
}
\ No newline at end of file
... ...
const change= function(num) {
var result = '';
var counter = 0;
num = (num || 0).toString();
for (var i = num.length - 1; i >= 0; i--) {
counter++;
result = num.charAt(i) + result;
if (!(counter % 3) && i != 0) {
result = ',' + result
}
}
return result
};
export default {
change
}
... ...
此 diff 太大无法显示。
import Vue from 'vue'
import App from './App'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
...App
})
app.$mount()
... ...
{
"name" : "touzimanager",
"appid" : "__UNI__83059CA",
"description" : "",
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,
/* 5+App特有相关 */
"app-plus" : {
"usingComponents" : true,
"nvueCompiler" : "uni-app",
"compilerVersion" : 3,
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
"autoclose" : true,
"delay" : 0
},
/* 模块配置 */
"modules" : {},
/* 应用发布信息 */
"distribute" : {
/* android打包配置 */
"android" : {
"permissions" : [
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
},
/* ios打包配置 */
"ios" : {},
/* SDK配置 */
"sdkConfigs" : {}
}
},
/* 快应用特有相关 */
"quickapp" : {},
/* 小程序特有相关 */
"mp-weixin" : {
"appid" : "wxf7da30b9dfb07870",
"setting" : {
"urlCheck" : false,
"minified" : true
},
"usingComponents" : true
},
"mp-alipay" : {
"usingComponents" : true
},
"mp-baidu" : {
"usingComponents" : true
},
"mp-toutiao" : {
"usingComponents" : true
}
}
... ...
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
"navigationStyle":"custom"
}
},
{
"path": "pages/daiban/daiban",
"style": {
"navigationBarTitleText": "投资项目评审管理平台",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white"
}
},
{
"path": "pages/yinsi/yinsi",
"style": {
"navigationBarTitleText": "隐私协议",
"navigationBarTextStyle": "black",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/zhugauntaidetail/zhugauntaidetail",
"style": {
"navigationBarTitleText": "项目组台账",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/zhuanjiahuidetail/zhuanjiahuidetail",
"style": {
"navigationBarTitleText": "专家分类台账明细",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12",
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "筛选"
}]
}
}
}
},
{
"path": "pages/xiangmuleixinghuidetail/xiangmuleixinghuidetail",
"style": {
"navigationBarTitleText": "项目类型分类台账明细",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12",
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "筛选"
}]
}
}
}
},
{
"path": "pages/songshenjinedetail/songshenjinedetail",
"style": {
"navigationBarTitleText": "送审金额分类台账明细",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12",
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "筛选"
}]
}
}
}
},
{
"path": "pages/shenjianhuidetail/shenjianhuidetail",
"style": {
"navigationBarTitleText": "审减率分类台账明细",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12",
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "筛选"
}]
}
}
}
},
{
"path": "pages/zixundanweihuitail/zixundanweihuidetail",
"style": {
"navigationBarTitleText": "咨询单位分类台账明细",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12",
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "筛选"
}]
}
}
}
},
{
"path": "pages/zhuanjiahui/zhuanjiahui",
"style": {
"navigationBarTitleText": "专家分类台帐",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12",
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "筛选"
}]
}
}
}
},
{
"path": "pages/xiangmuleixinghui/xiangmuleixinghui",
"style": {
"navigationBarTitleText": "项目类型分类汇总",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12",
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "筛选"
}]
}
}
}
},
{
"path": "pages/songshenjine/songshenjine",
"style": {
"navigationBarTitleText": "送审金额分类汇总",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12",
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "筛选"
}]
}
}
}
},
{
"path": "pages/shenjianhuizong/shenjianhuizong",
"style": {
"navigationBarTitleText": "审减率分类汇总",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12",
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "筛选"
}]
}
}
}
},
{
"path": "pages/xiangmuzutaizhang/xiangmuzutaizhang",
"style": {
"navigationBarTitleText": "项目组台账",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12",
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "筛选"
}]
}
}
}
},
{
"path": "pages/zhuguantaizhang/zhugauntaizhang",
"style": {
"navigationBarTitleText": "主管部门台账",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12",
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "筛选"
}]
}
}
}
},
{
"path": "pages/yusuantaidetail/yusuantaidetail",
"style": {
"navigationBarTitleText": "预算项目台账",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/yusuantaizhang/yusuantaizhang",
"style": {
"navigationBarTitleText": "预算项目台账",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12",
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "筛选"
}]
}
}
}
},
{
"path": "pages/danweitaizhang/danweitaizhang",
"style": {
"navigationBarTitleText": "咨询单位分类台帐",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/xiangmutaizhang/xiangmutaizhang",
"style": {
"navigationBarTitleText": "项目台帐",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12",
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "筛选"
}]
}
}
}
},
{
"path": "pages/zixundanweihuizong/zixundanweihuizong",
"style": {
"navigationBarTitleText": "咨询单位分类台帐",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12",
"buttons": [{
"float": "right",
"fontSize": "12",
"text": "筛选"
}]
}
}
}
},
{
"path": "pages/tubiao/tubiao",
"style": {
"navigationBarTitleText": "项目趋势台帐",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/xiangmuprogress/xiangmuprogress",
// "navigationStyle": "custom"
"style": {
"navigationBarTitleText": "项目在审过程表",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/jieduantaizhang/jieduantaizhang",
"style": {
"navigationBarTitleText": "项目组台账",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/zhuanjiafenpeisec/zhuanjiafenpeisec",
"style": {
"navigationBarTitleText": "专家分配",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/zhuanjiafenpei/zhuanjiafenpei",
"style": {
"navigationBarTitleText": "专家分配",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/zixundanweifen/zixundanweifen",
"style": {
"navigationBarTitleText": "咨询单位分配",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/zixunfenpei/zixunfenpei",
"style": {
"navigationBarTitleText": "项目组分配",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/danweivote/danweivote",
"style": {
"navigationBarTitleText": "咨询单位投票日志",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/danweizixun/danweizixun",
"style": {
"navigationBarTitleText": "咨询单位分配",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/zixunfen/zixunfen",
"style": {
"navigationBarTitleText": "项目组分配",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/taizhang/taizhang",
"style": {
"navigationBarTitleText": "投资项目评审管理平台",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/guocheng/guocheng",
"style": {
"navigationBarTitleText": "投资项目评审管理平台",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
},
{
"path": "pages/renwu/renwu",
"style": {
"navigationBarTitleText": "投资项目评审管理平台",
"navigationBarBackgroundColor": "#0093FF",
"navigationBarTextStyle": "white",
"app-plus": {
"titleNView": {
"titleSize": "12"
}
}
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
}
}
... ...
<template>
<view class="box">
<view class="head">
<view class="headitem" :class="sel==0?'selactive':''" @click="xuanze" data-index="0">待办任务</view>
<view class="headitem" :class="sel==1?'selactive':''" @click="xuanze" data-index="1">已办任务</view>
<view class="headitem" :class="sel==2?'selactive':''" @click="xuanze" data-index="2">全部任务</view>
</view>
<view >
<view class="nodata" v-if="daibanlist.length==0">暂无数据</view>
<view class="daibanlist" v-else>
<view class="daibanlistitem" v-for="(item,index) in daibanlist" :key="index" @click="govoice" :data-id="item.fprojectid"
:data-disid="item.fdisid" :data-item="item">
<view class="datetop">
<view class="daibanlsis">{{item.fcreatedate}}</view>
<view class="daibanm">
<!-- <view class="daibanmleft">任务编号:{{item.fid}}</view> -->
<view class="daibanmright" v-if="item.ftmstatus==0">待办</view>
<view class="daibanmright yidu" v-else>已办</view>
</view>
</view>
<!-- <view class="daibanm">
<view class="daibanmright" v-if="item.ftmstatus==0">待办</view>
<view class="daibanmright yidu" v-else>已办</view>
</view> -->
<view class="daibanbottom">{{item.ftitle}}</view>
</view>
<!-- <view class="daibanlistitem">
<view class="daibanlsis">2019.10.10 10:10:25</view>
<view class="daibanm">
<view class="daibanmleft">任务编号:No.0000000166</view>
<view class="daibanmright">未读</view>
</view>
<view class="daibanbottom">项目分配</view>
</view>
<view class="daibanlistitem">
<view class="daibanlsis">2019.10.10 10:10:25</view>
<view class="daibanm">
<view class="daibanmleft">任务编号:No.0000000166</view>
<view class="daibanmright">未读</view>
</view>
<view class="daibanbottom">项目分配</view>
</view>
<view class="daibanlistitem">
<view class="daibanlsis">2019.10.10 10:10:25</view>
<view class="daibanm">
<view class="daibanmleft">任务编号:No.0000000166</view>
<view class="daibanmright yidu">已读</view>
</view>
<view class="daibanbottom">项目分配</view>
</view>
<view class="daibanlistitem">
<view class="daibanlsis">2019.10.10 10:10:25</view>
<view class="daibanm">
<view class="daibanmleft">任务编号:No.0000000166</view>
<view class="daibanmright yidu">已读</view>
</view>
<view class="daibanbottom">项目分配</view>
</view>
<view class="daibanlistitem">
<view class="daibanlsis">2019.10.10 10:10:25</view>
<view class="daibanm">
<view class="daibanmleft">任务编号:No.0000000166</view>
<view class="daibanmright yidu">已读</view>
</view>
<view class="daibanbottom">项目分配</view>
</view>
<view class="daibanlistitem">
<view class="daibanlsis">2019.10.10 10:10:25</view>
<view class="daibanm">
<view class="daibanmleft">任务编号:No.0000000166</view>
<view class="daibanmright yidu">已读</view>
</view>
<view class="daibanbottom">项目分配</view>
</view>
<view class="daibanlistitem"> -->
<!-- <view class="daibanlsis">2019.10.10 10:10:25</view>
<view class="daibanm">
<view class="daibanmleft">任务编号:No.0000000166</view>
<view class="daibanmright yidu">已读</view>
</view>
<view class="daibanbottom">项目分配</view>
</view> -->
</view>
</view>
<view class="tabfooter" >
<view class="tabfooteritem" v-if="showhide[3].status==0">
<view class="tabfooteritemimg" >
<image src='../../static/img/daibanactive.png'></image>
</view>
<view class="tabfooteritemtop tabfooteritemtopactive">
我的任务
</view>
</view>
<view class="tabfooteritem" @click="gocenter" >
<view class="tabfooteritemimg">
<image src='../../static/img/renwu.png'></image>
</view>
<view class="tabfooteritemtop">
功能中心
</view>
</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
sel: 0,
status: 0,
daibanlist: [],
showhide:[]
}
},
onshow() {
},
onNavigationBarButtonTap() {
// 点击筛选
},
onResize() {
// 监听屏幕缩放
},
methods: {
xuanze(e) {
let index = e.currentTarget.dataset.index;
console.log(index)
this.sel = index;
if (index == 0) {
this.status = 0
} else if (index == 1) {
this.status = 1
} else if (index == 2) {
this.status = 2
}
this.getdaibanlist();
},
unction(num) {
var result = '',
counter = 0;
num = (num || 0).toString();
for (var i = num.length - 1; i >= 0; i--) {
counter++;
result = num.charAt(i) + result;
if (!(counter % 3) && i != 0) {
result = ',' + result;
}
}
return result;
},
getdaibanlist() {
let that = this;
let url = "project/Get_Agencymatters";
let Userid = uni.getStorageSync('userid')
let param = {
Userid: Userid,
status: that.status
};
console.log('8888',param)
app.post(url, param, 'get').then(r => {
console.log('99988000',JSON.stringify(r.data))
this.daibanlist = r.data;
console.log(this.daibanlist)
let newdaibanlist = this.daibanlist;
for (var obj of newdaibanlist) {
obj.fcreatedate = obj.fcreatedate.split("T");
obj.fcreatedate = obj.fcreatedate[0]
}
this.daibanlist = newdaibanlist;
}).catch(err => {
console.log(err)
})
},
// 跳到投票详情
govoice(e) {
console.log(e)
// let disid=e.target.dataset.disid;
// let item=e.currentTarget.dataset.item;
// console.log('999',item)
// let fteamid=item.ftemid;
// let fprojectid=item.fprojectid;
// console.log(fprojectid)
// item=JSON.stringify(item);
// console.log(item)
// uni.navigateTo({
// url: '../zixundanweifen/zixundanweifen?disid='+disid+'&item='+item+'&fteamid='+fteamid+'&fprojectid='+fprojectid
// })
let id = e.currentTarget.dataset.id;
let disid = e.currentTarget.dataset.disid
uni.navigateTo({
url: '../zixundanweifen/zixundanweifen?dfprojectid=' + id + '&disid=' + disid
})
},
gocenter(){
uni.navigateTo({
url:'../taizhang/taizhang'
})
},
// 是否显示我的任务
isshowrenwu(){
let that = this;
let url = "project/Get_Menuhiding";
let param = {
fuserid: uni.getStorageSync("userid"),
role: uni.getStorageSync("role")
}
app.post(url, param, 'get').then(r => {
console.log(r)
this.showhide=r.data
if(that.showhide[3].status==1){
console.log(9090)
uni.navigateTo({
url:'../taizhang/taizhang'
})
}
// this.daibanlist = r.data;
// let newdaibanlist = this.daibanlist;
// for (var obj of newdaibanlist) {
// obj.fcreatedate = obj.fcreatedate.split("T");
// obj.fcreatedate = obj.fcreatedate[0]
// }
// this.daibanlist = newdaibanlist
}).catch(err => {
console.log(err)
})
}
},
onLoad(options) {
this.getdaibanlist();
console.log(988766)
console.log('转数字', this.unction(452369874))
uni.setNavigationBarTitle({
title: '投资项目管理平台' + '(' + uni.getStorageSync("name") + ')'
});
this.isshowrenwu()
},
}
</script>
<style>
@import url("../../comment/index.css");
</style>
... ...
<template>
<view class="box">
<view class="headbox">
<view class="headboxleft" :class="selact==1?'headactive':''" @click="fenhui" data-id="1">分类汇总</view>
<view class="headboxleft" :class="selact==2?'headactive':''" @click="fenhui" data-id="2">分类明细</view>
</view>
<view class="taizhang">
<view class="taizhanghead">
<view class="taizhangitem">项目编号</view>
<view class="taizhangitem">项目名称</view>
<view class="taizhangitem">操作</view>
</view>
<view class="taizhangbox">
<view class="taiboxitem">
<view class="taizhangleft">2019114004</view>
<view class="taizhangmiddle">机关服务中心会务处保安
服务项目</view>
<view class="taizhangright">详情</view>
</view>
<view class="taiboxitem">
<view class="taizhangleft">2019114004</view>
<view class="taizhangmiddle">机关服务中心会务处保安
服务项目</view>
<view class="taizhangright">详情</view>
</view>
<view class="taiboxitem">
<view class="taizhangleft">2019114004</view>
<view class="taizhangmiddle">机关服务中心会务处保安
服务项目</view>
<view class="taizhangright">详情</view>
</view>
</view>
</view>
<!-- 底部 -->
<view class="dibu">
<view class="dibuleft">
<view class="dibuliteml">上一页</view>
<view class="dibulitemm">
<view class="di">第</view>
<view class="dishu">
<input type="number">
</view>
<view class="ye">页</view>
</view>
<view class="dibulitemx ">下一页</view>
</view>
<view class="diburight">
共30页
</view>
</view>
<view class="register" @click="hidefenlei" v-if="showping">
<view class="taizhangwrap">
<view class="wrapbox">
<view class="wrapitem">
<view class="wrapitemleft">评审类型</view>
<view class="wrapitemright">
<input type="text" />
</view>
</view>
<view class="wrapitem">
<view class="wrapitemleft">项目类型</view>
<view class="wrapitemright">
<input type="text" />
</view>
</view>
<view class="wrapitem">
<view class="wrapitemleft">年度</view>
<view class="wrapitemright">
<view class="nianduleft">
<input type="text" />
</view>
<view class="nianduright">
<image src="../../static/img/number.png" mode=""></image>
</view>
</view>
</view>
<view class="wrapitem">
<view class="wrapitemleft">时间</view>
<view class="time">
<view class="timeleft">
<input type="text" placeholder="">
</view>
<view class="timemiddle"></view>
<view class="timeleft">
<input type="text" placeholder="">
</view>
</view>
</view>
</view>
<view class="chaxun">查询</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
selact: 1,
showping:false
}
},
onLoad() {
},
methods: {
fenhui(e) {
console.log(e)
let id = e.currentTarget.dataset.id;
console.log(id)
this.selact = id;
},
// 横屏显示
screenheng() {
console.log(999)
// plus.screen.lockOrientation('landscape-primary');
},
hidefenlei(){
this.showping=false
}
},
}
</script>
<style>
.headbox {
background: #fff;
height: 100rpx;
display: flex;
align-items: center;
}
.headboxleft {
width: 350rpx;
height: 100rpx;
line-height: 100rpx;
text-align: center;
color: #06121E;
font-size: 28rpx;
}
.headactive {
color: #0093FF;
border-bottom: 1rpx solid #0093FF;
}
page {
background: #F9F9F9;
}
.head {
display: flex;
align-items: center;
padding: 32rpx 0;
box-sizing: border-box;
}
.headitem {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 0 50rpx;
box-sizing: border-box;
border-right: 1rpx solid #BDC4CE;
}
.headitem:last-child {
border-right: none
}
.headitemtop {
color: #06121E;
font-size: 28rpx;
}
.headitembot {
color: #0093FF;
font-size: 32rpx;
margin-top: 15rpx;
}
.taizhangbox {
padding: 0 34rpx;
box-sizing: border-box;
}
.taizhang {
/* padding: 32rpx;
box-sizing: border-box; */
width: 686rpx;
margin: 32rpx auto 0;
background: #fff;
box-shadow: 0px 6px 6px rgba(0, 0, 0, 0.03);
opacity: 1;
border-radius: 20px;
padding-bottom: 28rpx;
box-sizing: border-box;
}
.taizhanghead {
display: flex;
align-items: center;
justify-content: space-between;
padding: 28rpx 50rpx;
box-sizing: border-box;
border-bottom: 1rpx solid #BDC4CE;
}
.taizhangitem {
color: #06121E;
font-size: 28rpx;
font-weight: bold;
}
.taiboxitem {
display: flex;
align-items: center;
padding: 20rpx 0;
box-sizing: border-box;
border-bottom: 1rpx solid #BDC4CE
}
.taiboxitem:last-child {
border-bottom: none
}
.taizhangleft {
color: #06121E;
font-size: 28rpx;
}
.taizhangmiddle {
color: #06121E;
font-size: 28rpx;
width: 284rpx;
margin-left: 62rpx;
line-height: 1.3;
text-align: center;
}
.taizhangright {
color: #0093FF;
font-size: 28rpx;
margin-left: 56rpx;
}
.dibu {
display: flex;
align-items: center;
justify-content: flex-end;
width: 750rpx;
height: 104rpx;
padding: 0 32rpx;
box-sizing: border-box;
background: #fff;
position: fixed;
bottom: 0;
left: 0
}
.dibuleft {
display: flex;
align-items: center;
margin-right: 72rpx;
}
.dibulitemm {
display: flex;
align-items: center;
}
.dishu {
width: 40rpx;
height: 30rpx;
border: 1rpx solid #707070;
border-radius: 4rpx;
margin: 0 6rpx;
font-size: 0;
display: flex;
align-items: center;
justify-content: center;
}
.dishu input {
width: 100%;
height: 30rpx;
line-height: 30rpx;
padding: 5rpx 0;
box-sizing: border-box;
text-align: center;
font-size: 26rpx;
color: #8C9198;
/* height:20rpx; */
}
.dibuliteml,
.di,
.ye,
.dibulitemx,
.diburight {
color: #06121E;
font-size: 28rpx;
}
.dibuliteml {
margin-right: 36rpx
}
.dibulitemx {
margin-left: 36rpx
}
/* 评审类型 */
.wrapitem {
display: flex;
align-items: center;
margin-top: 40rpx;
}
.wrapitemleft {
width: 120rpx;
}
.wrapitemleft {
color: #06121E;
font-size: 28rpx
}
.wrapitemright {
width: 544rpx;
height: 76rpx;
background: rgba(238, 238, 238, 1);
opacity: 1;
border-radius: 8rpx;
margin-left: 18rpx;
display: flex;
align-items: center;
padding: 20rpx;
box-sizing: border-box;
}
.wrapitemright input{
width:100%;
color:#8C9198;
font-size: 28rpx;
}
.nianduright {
width: 14rpx;
height: 22rpx;
font-size: 0;
}
.nianduleft {
width: 500rpx;
}
.nianduright image {
width: 100%;
height: 100%;
}
.time {
display: flex;
align-items: center;
margin-left: 18rpx;
}
.timeleft {
width: 232rpx;
height: 76rpx;
background: rgba(238, 238, 238, 1);
opacity: 1;
border-radius: 8rpx;
padding: 15rpx 20rpx;
box-sizing: border-box;
}
.timeleft input{
width:100%;
color:#8C9198;
fotn-size:28rpx;
}
.timemiddle {
width: 39rpx;
height: 0rpx;
border: 1rpx solid rgba(189, 196, 206, 1);
opacity: 1;
margin: 0 20rpx;
}
.chaxun {
width: 200rpx;
height: 64rpx;
background: rgba(0, 147, 255, 1);
opacity: 1;
border-radius: 8rpx;
color:#F9F9F9;
font-size: 24rpx;
text-align: center;
line-height: 64rpx;
margin:100rpx auto 0;
}
</style>
... ...
<template>
<view class="box">
<view class='head'>
<view class="headitem">编号</view>
<view class="headitem ">操作人</view>
<view class="headitem">操作时间</view>
<view class="headitem caozuoshuo">操作说明</view>
</view>
<view class="xiangmlist">
<view class="xiangmulistitem" v-for="(item,index) in rizhilist" :key="index">
<view class="xiangmuhao">{{index+1}}</view>
<view class="xiangming">{{item.username}}</view>
<view class="pingshen">{{item.fcreatedate}}</view>
<view class="state">{{item.fdescription}}</view>
</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
rizhilist: [],
fprojectid: ''
}
},
onLoad(options) {
console.log('参数', options)
this.fprojectid = options.id;
console.log('111', this.fprojectid)
this.getrizhilist()
},
methods: {
getrizhilist() {
console.log(999)
let that = this;
let url = "project/Get_viewloglist";
let param = {
fprojectid: this.fprojectid,
}
app.post(url, param, 'get').then(r => {
console.log(r)
// console.log('1234567890',JSON.stringify(r))
that.rizhilist = r.data;
let newrizhilist = this.rizhilist;
for (var obj of newrizhilist) {
obj.fcreatedate = obj.fcreatedate.split("T");
obj.fcreatedate = obj.fcreatedate[0]
}
that.rizhilist = newrizhilist;
}).catch(err => {
console.log(err)
})
},
enterxiangmu(e) {
console.log(e)
this.keyword = e.target.value;
},
}
}
</script>
<style>
.box {
background: #fff;
padding: 0 32rpx;
box-sizing: border-box;
}
page {
background: #fff;
}
.head {
display: flex;
align-items: center;
padding: 32rpx 0 16rpx;
box-sizing: border-box;
justify-content: space-between;
border-bottom: 2rpx solid #BDC4CE;
}
.headitem {
color: #06121E;
font-size: 28rpx;
font-weight: bold;
}
.xiangmulistitem {
display: flex;
align-items: center;
padding: 22rpx 0 34rpx;
box-sizing: border-box;
border-bottom: 1rpx solid #EEEEEE;
background: #fff;
}
.xiangmuhao {
width: 76rpx;
color: #06121E;
font-size: 24rpx;
text-align: center;
}
.xiangming {
width: 150rpx;
color: #06121E;
font-size: 24rpx;
margin-left: 4rpx;
text-align: center;
line-height: 1.5;
/* overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; */
}
.pingshen {
color: #06121E;
font-size: 24rpx;
margin-left: 10rpx;
width: 240rpx;
text-align: center;
}
.state {
width: 240rpx;
color: #06121E;
font-size: 24rpx;
margin-left: 30rpx;
line-height: 1.4;
/* margin-left: 18rpx; */
}
.caozuoshuo {
width: 240rpx;
text-align: center;
}
</style>
... ...
<template>
<view class="box">
<view class="head">
<view class="headleft">
<input type="text" placeholder="输入项目名称查询" @input="enterxiangmu" />
</view>
<view class="headright" @click="chaxun">查询</view>
</view>
<view class="nodata" v-if="xiangmulist.length==0">暂无数据</view>
<view class="fenzulist" v-else>
<view class="fenzuitem" v-for="(item,index) in xiangmulist" :key="index">
<view class="fenzutop">
<view class="fenzutopleft">
<view class="fenzutopshang">
<text class="bianhao">项目编号:</text><text class="bianhaonum"> {{item.fnumber}}</text>
</view>
</view>
<view class="fenzutopright">
<view class="fenzunoimg">
<image src="../../static/img/toupiao.png" mode="" v-if="item.fadvisorystatus=='投票中'"></image>
<image src="../../static/img/yifen.png" mode="" v-else></image>
</view>
<view class="fenzunoname">{{item.fadvisorystatus}}</view>
</view>
</view>
<view class="fenzuobottom">
<view class="fenzutopshang">
<text class="bianhao">项目名称:</text><text class="bianhaonum">
{{item.fname}}
</text>
</view>
<!-- <view class="fenzutopshang" v-if="item.fprojecttype==null">
<text class="bianhao">项目类型:</text><text class="bianhaonum"> 暂无</text>
</view>
<view class="fenzutopshang" v-else>
<text class="bianhao">项目类型:</text><text class="bianhaonum"> {{item.fprojecttype}}</text>
</view>
-->
<!-- <view class="fenzutopshang">
<text class="bianhao">项目组:</text><text class="bianhaonum">{{item.fteam==null?'':item.fteam}}</text>
</view>
-->
<view class="fenzubottom">
<view class="fenzubtn" @click="zixundanweifen" :data-item="item" :data-disid="item.disid" >咨询单位分配</view>
<view class="fenzubtn" @click="vote" :data-itemid="item.fprojectid">投票日志{{item.fprojectid}}</view>
</view>
</view>
</view>
<!-- <view class="fenzuitem">
<view class="fenzutop">
<view class="fenzutopleft">
<view class="fenzutopshang">
<text class="bianhao">项目编号:</text><text class="bianhaonum"> 20191115001</text>
</view>
<view class="fenzutopshang">
<text class="bianhao">任务编号:</text><text class="bianhaonum"> 20191115001</text>
</view>
</view>
<view class="fenzutopright">
<view class="fenzunoimg">
<image src="../../static/img/yifen.png" mode=""></image>
</view>
<view class="fenzunoname">分配成功</view>
</view>
</view>
<view class="fenzuobottom">
<view class="fenzutopshang">
<text class="bianhao">项目名称:</text><text class="bianhaonum">
机关服务中心会务处保安服务项目
</text>
</view>
<view class="fenzutopshang">
<text class="bianhao">项目类型:</text><text class="bianhaonum"> 预算</text>
</view>
<view class="fenzutopshang">
<text class="bianhao">项目组:</text><text class="bianhaonum"> </text>
</view>
<view class="fenzubottom">
<view class="fenzubtn">咨询单位分配</view>
<view class="fenzubtn">投票日志</view>
</view>
</view>
</view>
-->
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
selshow: false,
xiangmulist: [],
keyword: '',
end:"",
querylist:[]
}
},
onLoad() {
this.getzixunlist()
},
methods: {
// 咨询单位分配
zixundanweifen(e) {
console.log(e)
let disid=e.target.dataset.disid;
let item=e.target.dataset.item;
console.log('999',item)
let fteamid=item.ftemid;
let fprojectid=item.fprojectid;
console.log(fprojectid)
item=JSON.stringify(item);
console.log(item)
uni.navigateTo({
url: '../zixundanweifen/zixundanweifen?disid='+disid+'&item='+item+'&fteamid='+fteamid+'&fprojectid='+fprojectid+'&status='+this.end[0].status
})
},
vote(e) {
let id=e.target.dataset.itemid
console.log('lalal',id)
// let id=e.target.value;
// console.log('lalalal',id)
uni.navigateTo({
url: '../danweivote/danweivote?id='+id
})
},
getzixunlist() {
console.log(999)
let that = this;
let url = "project/Get_advisory";
let param={
fuserid:uni.getStorageSync("userid"),
role:uni.getStorageSync("role"),
fprojectid:''
}
app.post(url, param, 'get').then(r => {
console.log(r)
// console.log(r)
// console.log('1234567890',JSON.stringify(r))
that.xiangmulist = r.data;
that.querylist=r.data
let end=that.xiangmulist.splice(-1);
that.end=end
console.log(that.end[0].status)
console.log(JSON.stringify(end))
console.log(that.xiangmulist)
}).catch(err => {
console.log(err)
})
},
enterxiangmu(e) {
console.log(e)
this.keyword = e.target.value;
},
chaxun() {
if(this.keyword==''){
this.getzixunlist();
}else{
let newxiangmuarr = [];
let newxiangmulist = this.querylist;
let name=[]
for (var obj of newxiangmulist) {
name.push(obj.fname)
}
console.log('名称',name)
for(var i=0;i<newxiangmulist.length;i++){
for(var j=0;j<name.length;j++){
if (name[j].indexOf(this.keyword)>=0) {
if(j==i){
newxiangmuarr.push(newxiangmulist[i])
}
// console.log(9999)
}
}
}
console.log('9999000777',newxiangmuarr);
this.xiangmulist = newxiangmuarr;
}
}
}
}
</script>
<style>
page {
background: #F9F9F9;
}
.head {
display: flex;
align-items: center;
padding: 20rpx 32rpx;
box-sizing: border-box;
background: #fff;
position: fixed;
top: 0;
left: 0
}
.fenzulist {
margin-top: 100rpx;
padding-bottom: 50rpx;
}
.headleft {
width: 572rpx;
height: 60rpx;
background: rgba(238, 238, 238, 1);
opacity: 1;
border-radius: 8rpx;
padding: 10rpx 24rpx;
box-sizing: border-box;
display:flex;
align-items: center;
}
.headleft input {
color: #BDC4CE;
font-size: 28rpx;
}
.headright {
width: 98rpx;
height: 60rpx;
background: rgba(0, 147, 255, 1);
opacity: 1;
border-radius: 8rpx;
color: #fff;
font-size: 22rpx;
text-align: center;
line-height: 60rpx;
margin-left: 16rpx;
}
.fenzuitem {
width: 686rpx;
/* height: 484rpx; */
background: rgba(255, 255, 255, 1);
box-shadow: 0px 6rpx 6rpx rgba(0, 0, 0, 0.03);
opacity: 1;
border-radius: 20rpx;
margin: 20rpx auto 0;
padding: 28rpx 32rpx 40rpx;
box-sizing: border-box;
}
.fenzunoimg {
width: 28rpx;
height: 28rpx;
font-size: 0;
margin-right: 10rpx;
}
.fenzunoimg image {
width: 100%;
height: 100%;
}
.bianhao {
color: #8C9198;
font-size: 24rpx;
}
.bianhaonum {
color: #06121E;
font-size: 24rpx;
letter-spacing: 2rpx;
}
.fenzunoname {
color: #3D444D;
font-size: 24rpx;
}
.fenzutopright {
display: flex;
align-items: center;
/* width: 126rpx; */
height: 48rpx;
border: 1rpx solid rgba(189, 196, 206, 1);
opacity: 1;
border-radius: 8rpx;
padding: 0 5rpx;
box-sizing: border-box;
}
.fenzutop {
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 16rpx;
border-bottom: 1rpx solid #f5f5f5;
}
.fenzuobottom {
margin-top: 16rpx
}
.fenzubottom {
display: flex;
justify-content: flex-end;
margin-top: 16rpx
}
.fenzubtn {
width: 200rpx;
height: 64rpx;
background: rgba(0, 147, 255, 1);
opacity: 1;
border-radius: 8rpx;
color: #F9F9F9;
font-size: 24rpx;
text-align: center;
line-height: 64rpx;
margin-right: 24rpx;
}
.fenzubtn:last-child {
margin-right: 0
}
</style>
... ...
<template>
<view class="box">
<view class='head'>
<view class="headitem">项目编号</view>
<view class="headitem minghcengx">项目名称</view>
<view class="headitem">当前评审节点</view>
<view class="headitem">项目状态</view>
</view>
<view class="xiangmlist">
<view class="xiangmulistitem" v-for="(item,index) in list" :key="index" @click="detail" :data-item="item" >
<view class="xiangmuhao">{{item.fnumber}}</view>
<view class="xiangming">{{item.fname}}</view>
<view class="pingshen">{{item.fcurrentname}}</view>
<view :class="item.ffinauditstatus=='审核中'?'state':'finish'">{{item.ffinauditstatus }}</view>
</view>
<!-- <view class="xiangmulistitem">
<view class="xiangmuhao">20191112011</view>
<view class="xiangming">运动场维修及
附属工程</view>
<view class="pingshen">待审结</view>
<view class="state">审核中</view>
</view>
<view class="xiangmulistitem">
<view class="xiangmuhao">20191112011</view>
<view class="xiangming">运动场维修及
附属工程</view>
<view class="pingshen">待审结</view>
<view class="state">审核中</view>
</view>
<view class="xiangmulistitem">
<view class="xiangmuhao">20191112011</view>
<view class="xiangming">运动场维修及
附属工程</view>
<view class="pingshen">待审结</view>
<view class="state">审核中</view>
</view>
<view class="xiangmulistitem">
<view class="xiangmuhao">20191112011</view>
<view class="xiangming">运动场维修及
附属工程</view>
<view class="pingshen">待审结</view>
<view class="state">审核中</view>
</view>
<view class="xiangmulistitem">
<view class="xiangmuhao">20191112011</view>
<view class="xiangming">运动场维修及
附属工程</view>
<view class="pingshen">待审结</view>
<view class="state">审核中</view>
</view>
<view class="xiangmulistitem">
<view class="xiangmuhao">20191112011</view>
<view class="xiangming">运动场维修及
附属工程</view>
<view class="pingshen">待审结</view>
<view class="state">审核中</view>
</view>
<view class="xiangmulistitem">
<view class="xiangmuhao">20191112011</view>
<view class="xiangming">运动场维修及
附属工程</view>
<view class="pingshen">待审结</view>
<view class="state">审核中</view>
</view>
<view class="xiangmulistitem">
<view class="xiangmuhao">20191112011</view>
<view class="xiangming">运动场维修及
附属工程</view>
<view class="pingshen">待审结</view>
<view class="state">审核中</view>
</view>
<view class="xiangmulistitem">
<view class="xiangmuhao">20191112011</view>
<view class="xiangming">运动场维修及
附属工程</view>
<view class="pingshen">待审结</view>
<view class="state">审核中</view>
</view>
<view class="xiangmulistitem"> -->
<!-- <view class="xiangmuhao">20191112011</view>
<view class="xiangming">运动场维修及
附属工程</view>
<view class="pingshen">待审结</view>
<view class="state">审核中</view> -->
</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
list: []
}
},
onLoad() {
// 获取台账列表
},
onShow() {
this.getlist()
},
methods: {
getlist() {
let that = this;
console.log(9988776655)
let url = "project/Get_Processtime";
// console.log('8877665544',param)
app.post(url, '', 'get').then(r => {
// console.log(r)
// console.log(JSON.stringify(r.data));
that.list = r.data
}).catch(err => {
console.log(err)
})
},
// 项目过程详情
detail(e){
console.log(e)
console.log(e)
let item=e.currentTarget.dataset.item;
item=JSON.stringify(item)
console.log(item)
// uni.navigateTo({
// url:'../xiangmuprogress/xiangmuprogress'
// })
uni.navigateTo({
url:'../xiangmuprogress/xiangmuprogress?item='+item
})
}
}
}
</script>
<style>
.box {
background: #F9F9F9;
padding: 0 32rpx;
box-sizing: border-box;
}
.head {
width: 750rpx;
background: #fff;
display: flex;
align-items: center;
padding: 32rpx;
box-sizing: border-box;
justify-content: space-between;
border-bottom: 2rpx solid #BDC4CE;
position: fixed;
left: 0;
top: 0
}
.headitem {
color: #06121E;
font-size: 28rpx;
font-weight: bold;
}
.xiangmulistitem {
display: flex;
align-items: center;
padding: 22rpx 0 34rpx;
box-sizing: border-box;
border-bottom: 1rpx solid #EEEEEE
}
.xiangmuhao {
width: 140rpx;
color: #06121E;
font-size: 24rpx;
}
.xiangming {
width: 144rpx;
color: #06121E;
font-size: 24rpx;
margin-left: 37rpx;
text-align: center;
line-height: 1.5;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.pingshen {
color: #06121E;
font-size: 24rpx;
margin-left: 78rpx;
width:80rpx;;
}
.state {
color: #D12324;
font-size: 24rpx;
margin-left: 128rpx;
}
.finish{
color: #00AC00;
font-size: 24rpx;
margin-left: 128rpx;
}
.xiangmlist{
margin-top:100rpx;
}
</style>
... ...
<template>
<view class="box">
<view class="tpouziname">大足投资项目评审管理平台</view>
<view class="zhuanjia">含专家</view>
<view class="shrumima zhanghao">
<input type="text" placeholder="请输入登录账号/手机号" placeholder-class="entershouji" :value="phone" @input="onKeyInput">
</view>
<view class="shrumima mima">
<input type="password" placeholder="请输入密码" placeholder-class="entershouji" :value="password" @input="enterpass">
</view>
<view class="yanzheng">
<view class="yanzhengleft">
<input type="text" placeholder="验证码" placeholder-class="yan" @input="enteryanzheng">
</view>
<view class="yanzhenghao" @click="changenum">{{rangenum}}</view>
</view>
<view class="select" @click="selectxuan">
<view class="selectleft" v-if="selshow">
<image src="../../static/img/selectone.png" mode=""></image>
</view>
<view class="selectleft" v-else>
<image src="../../static/img/select.png" mode=""></image>
</view>
<view class="selectright">记住用户名</view>
</view>
<view class="denglu" :class="seldeng==1?'dengactive':''" @click="login">
<text v-if="seldengk==1">登录中...</text>
<text v-else>登录</text>
</view>
<!-- <view class="biaoshi">
登录即表示 <text class="xieyi" @click="zhengce" data-id="1">用户协议</text>和 <text class="xieyi" @click="zhengce" data-id="2">隐私政策</text>
</view> -->
<!-- 弹出弹层 -->
<view class="pop" v-if="tanceng">
网络出错
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
selshow: true,
phone: '',
password: '',
rangenum: '',
yanzhengcode: '',
tanceng: false,
seldeng: 0,
seldengk: 0
}
},
onLoad() {
// 生成随机验证码
var randomNum = ('000000' + Math.floor(Math.random() * 999999)).slice(-6);
this.rangenum = randomNum;
// 记住用户名和密码
let username = uni.getStorageSync("username");
let password = uni.getStorageSync("password")
console.log('用户名', username)
if (username != '') {
this.phone = username;
this.password = password
this.selshow = true
}
},
methods: {
zhengce(e){
let id=e.currentTarget.dataset.id;
uni.navigateTo({
url:'../yinsi/yinsi?id='+id
})
},
selectxuan() {
console.log(888)
this.selshow = !this.selshow;
if (this.selshow == true) {
uni.setStorageSync('username', this.phone);
uni.setStorageSync('password', this.password)
} else {
uni.setStorageSync('username', '')
}
},
changenum() {
var randomNum = ('000000' + Math.floor(Math.random() * 999999)).slice(-6);
this.rangenum = randomNum;
},
// 输入验证码
enteryanzheng(e) {
this.yanzhengcode = e.target.value;
},
// 输入手机号
onKeyInput: function(event) {
console.log(event)
this.phone = event.target.value
},
// 输入密码
enterpass(e) {
this.password = e.target.value;
},
// 登录
login() {
let that = this;
that.seldeng = 1;
console.log(666)
console.log(this.phone);
console.log(this.password)
if (this.phone == '') {
uni.showToast({
title: '请输入登录账号',
icon: 'none'
})
that.seldeng = 0
return false
}
if (this.password == '') {
uni.showToast({
title: '请输入密码',
icon: 'none'
})
that.seldeng = 0
return false
}
if (this.yanzhengcode == '') {
uni.showToast({
title: '请输入验证码',
icon: 'none'
})
that.seldeng = 0
return false
}
if (this.yanzhengcode != '') {
if (this.yanzhengcode != this.rangenum) {
uni.showToast({
title: '验证码输入错误',
icon: 'none'
})
that.seldeng = 0
return false
}
}
let url = "project/Login";
let param = {
username: that.phone,
password: that.password
};
console.log('8877665544', param)
app.post(url, param,"post").then(r => {
that.seldengk = 1
console.log('1234567890', r)
let data = r.data
if (r.data[0].status == 1) {
if (r.data[0].username == null) {
that.seldengk = 0
} else {
that.seldengk = 1
}
uni.showToast({
title: r.data[0].message,
icon: "none",
})
} else {
uni.setStorageSync('username', this.phone);
uni.setStorageSync('password', this.password)
let role = data[0].role;
let userid = data[0].userid;
let username = data[0].username;
uni.setStorageSync('role', role);
uni.setStorageSync('userid', userid);
uni.setStorageSync('name', username);
console.log('打印', uni.getStorageSync('role'));
console.log('打印', uni.getStorageSync('name'));
uni.showToast({
title: "登录成功",
icon: 'none'
})
setTimeout(function() {
console.log(8800)
uni.navigateTo({
url: '../daiban/daiban'
})
// uni.switchTab({
// url: '/pages/daiban/daiban'
// })
}, 500)
}
// if(data[0].role==null){
// uni.showToast({
// title:'登录失败',
// icon:"none",
// })
// }else{
// }
// uni.setStorageSync('re_id',1)
}).catch(err => {
console.log(err)
that.seldengk = 0
that.tanceng = true;
setTimeout(function() {
that.tanceng = false
}, 1500)
})
// uni.switchTab({
// url: '../daiban/daiban'
// })
}
},
}
</script>
<style>
page {
width: 100%;
height: 100%;
}
.biaoshi {
color: #fff;
font-size: 28rpx;
margin-top: 20rpx;
display:flex;
justify-content: center;
}
.xieyi {
color: #FF9417;
font-size: 28rpx;
}
.box {
width: 750rpx;
height: 100%;
/* background: url(../../static/img/bag.png); */
background: url('http://39.105.61.115:1912/scripts/yemian.png') no-repeat center;
background-size: cover;
overflow: hidden
}
.tpouziname {
color: #F9F9F9;
font-size: 56rpx;
text-align: center;
margin-top: 278rpx;
font-weight: bold;
}
.zhuanjia {
color: #F9F9F9;
font-size: 40rpx;
text-align: center;
font-weight: bold;
}
.shrumima {
width: 438rpx;
height: 68rpx;
background: rgba(238, 238, 238, 1);
opacity: 1;
border-radius: 8rpx;
color: #BDC4CE;
font-size: 24rpx;
padding: 18rpx 24rpx;
box-sizing: border-box;
margin: 232rpx auto 0;
display: flex;
align-items: center;
}
.shrumima input {
width: 100%;
/* height:18rpx; */
}
.entershouji {
color: #BDC4CE;
font-size: 24rpx;
}
.mima {
margin: 32rpx auto 0;
}
.yanzheng {
display: flex;
align-items: center;
}
.yanzheng {
width: 438rpx;
margin: 32rpx auto 0;
}
.yanzhengleft {
width: 256rpx;
height: 68rpx;
border-radius: 8rpx;
background: #fff;
padding: 18rpx 24rpx;
box-sizing: border-box;
display: flex;
align-items: center;
background: #EEEEEE;
color: #BDC4CE;
font-size: 24rpx
}
.yanzhengleft input {
width: 100%;
height: 100%;
}
.yanzhenghao {
width: 162rpx;
height: 68rpx;
background: rgba(255, 255, 255, 1);
opacity: 1;
border-radius: 8rpx;
margin-left: 20rpx;
color: #169BD5;
font-size: 24rpx;
text-align: center;
line-height: 68rpx;
letter-spacing: 6rpx;
font-weight: bold;
background: #EEEEEE;
}
.yanzhenghao input {
color: #BDC4CE;
font-size: 24rpx;
}
.yan {
color: #BDC4CE;
font-size: 24rpx;
}
.select {
width: 438rpx;
margin: 20rpx auto 0;
display: flex;
align-items: center;
}
.selectleft {
width: 20rpx;
height: 20rpx;
font-size: 0;
}
.selectleft image {
width: 100%;
height: 100%;
}
.selectright {
color: #fff;
font-size: 20rpx;
margin-left: 10rpx;
}
.denglu {
width: 438rpx;
height: 76rpx;
/* background: rgba(0, 147, 255, 1); */
opacity: 1;
background: #007AFF;
opacity: 0.9;
color: #fff;
font-size: 24rpx;
text-align: center;
line-height: 76rpx;
margin: 52rpx auto 0;
border-radius: 8rpx;
}
.dengactive {
opacity: 0.9;
background: #738DFA;
}
.pop {
width: 200rpx;
height: 80rpx;
background-color: rgba(0, 0, 0, 0.5);
border-radius: 16rpx;
color: #fff;
font-size: 30rpx;
text-align: center;
line-height: 80rpx;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%)
}
/* .zhanghao {
margin-top: 280rpx;
} */
</style>
... ...
<template>
<view class="box">
<view class="renyuan">
<view class="projectlist">
<view class="projectitem">
<view class="projectitemleft">项目编号:</view>
<view class="projectitemright">{{item.fnumber}}</view>
</view>
<view class="projectitem">
<view class="projectitemleft">项目名称:</view>
<view class="projectitemright xiangmuname">{{item.fname}}</view>
</view>
<!-- <view class="projectitem">
<view class="projectitemleft">评审金额:</view>
<view class="projectitemright">预算</view>
</view> -->
<view class="projectitem">
<view class="projectitemleft">项目类型:</view>
<view class="projectitemright">{{item.fprojecttype}}</view>
</view>
<view class="projectitem">
<view class="projectitemleft">送审单位:</view>
<view class="projectitemright">{{item.fdevorgid}}</view>
</view>
<view class="projectitem">
<view class="projectitemleft">送审时间:</view>
<view class="projectitemright">{{item.fsubmitfindate}}</view>
</view>
<view class="projectitem">
<view class="projectitemleft">送审金额:</view>
<view class="projectitemright">{{item.ftoauditamt}}</view>
</view>
<view class="projectitem">
<view class="projectitemleft">审定金额:</view>
<view class="projectitemright">{{item.fauditamount}}</view>
</view>
<view class="projectitem">
<view class="projectitemleft">审减金额:</view>
<view class="projectitemright">{{item.fshenjianmoney}}</view>
</view>
<view class="projectitem">
<view class="projectitemleft">审减率:</view>
<view class="projectitemright">{{item.fshenjianrate}}</view>
</view>
<view class="projectitem">
<view class="projectitemleft">咨询单位:</view>
<view class="projectitemright">{{item.flordintorgid}}</view>
</view>
<view class="projectitem">
<view class="projectitemleft">评审类型:</view>
<view class="projectitemright">{{item.freviewtype}}</view>
</view>
<view class="projectitem">
<view class="projectitemleft">送审年度:</view>
<view class="projectitemright">{{item.fyear}}</view>
</view>
<!-- <view class="projectitem">
<view class="projectitemleft">咨询单位项目审核员:</view>
<view class="projectitemright">{{item.flordintorgid}}</view>
</view> -->
</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
import helper from '../../common/help.js';
export default {
data() {
return {
item:''
}
},
onLoad(options) {
console.log(options)
this.item=JSON.parse(options.item);
let newitem=this.item;
newitem.fsubmitfindate=newitem.fsubmitfindate.split("T");
newitem.fsubmitfindate=newitem.fsubmitfindate[0]
newitem.fauditamount=helper.change(newitem.fauditamount);
newitem.ftoauditamt=helper.change(newitem.ftoauditamt);
newitem.fshenjianmoney=helper.change(newitem.fshenjianmoney);
this.item=newitem
console.log(this.item)
// 获取台账列表
},
methods: {
}
}
</script>
<style>
page{
background: #f9f9f9;
}
.box {
background: #fff;
}
.projectinfo {
display: flex;
align-items: center;
}
.projectinfoname {
width: 44rpx;
height: 44rpx;
font-size: 0;
}
.projectinfoname image {
width: 100%;
height: 100%
}
.projectname {
color: #3D444D;
font-size: 28rpx;
font-weight: bold;
margin-left: 16rpx;
}
.xiangmuname{
width:550rpx;
text-align: right;
}
.projectinfo {
padding: 36rpx 32rpx 16rpx;
box-sizing: border-box;
border-bottom: 1rpx solid #BDC4CE;
}
.projectlist {
padding: 0 32rpx;
box-sizing: border-box;
}
.projectitem {
background: #fff;
display: flex;
align-items: center;
justify-content: space-between;
padding: 32rpx 0;
box-sizing: border-box;
border-bottom: 1rpx solid #EEEEEE
}
.projectitemleft {
color: #8C9198;
font-size: 28rpx;
}
.projectitemright {
color: #3D444D;
font-size: 28rpx;
}
.renyuanleft {
color: #8C9198;
font-size: 28rpx;
}
.renyuanright {
width: 300rpx;
height: 60rpx;
background: #EEEEEE;
padding: 14rpx 28rpx;
box-sizing: border-box;
display: flex;
align-items: center;
}
.renyuanright input {
width: 100%;
height: 40rpx;
color: #8C9198;
font-size: 24rpx;
}
.xiangmuyuan {
color: #8C9198;
font-size: 24rpx;
}
.zixunbottom {
display: flex;
align-items: center;
padding: 28rpx 32rpx 34rpx;
}
.zixunbotleft {
width: 130rpx;
height: 80rpx;
background: rgba(232, 80, 0, 1);
opacity: 1;
border-radius: 8rpx;
color: #fff;
font-size: 28rpx;
text-align: center;
line-height: 80rpx;
}
.zixunbotright {
width: 532rpx;
height: 80rpx;
background: rgba(0, 147, 255, 1);
opacity: 1;
border-radius: 8rpx;
color: #fff;
font-size: 28rpx;
text-align: center;
line-height: 80rpx;
margin-left: 24rpx;
}
/* .renyuan{
border-bottom:16rpx solid #f9f9f9;
} */
.renyaoqiu {
margin-top: 12rpx;
}
.zixundan {
display: flex;
align-items: center;
justify-content: space-between;
padding: 44rpx 42rpx 16rpx 0;
box-sizing: border-box;
border-bottom: 1rpx solid #BDC4CE;
}
.zixundanitem {
color: #06121E;
font-size: 28rpx;
}
.zixunbox {
padding: 0 32rpx;
box-sizing: border-box;
}
.zixundanboxlist {
display: flex;
align-items: center;
padding: 20rpx 0;
box-sizing: border-box;
/* justify-content: space-between; */
}
.zixunname {
width: 320rpx;
color: #06121E;
font-size: 24rpx;
line-height: 1.5;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap
}
.zixunshu {
width: 105rpx;
/* margin-left: 52rpx; */
text-align: center;
color: #06121E;
font-size: 24rpx;
}
.zixuntou {
width: 108rpx;
height: 40rpx;
background: rgba(0, 147, 255, 1);
opacity: 1;
border-radius: 8rpx;
color: #F9F9F9;
font-size: 24rpx;
text-align: center;
line-height: 40rpx;
margin-left: 140rpx
}
.zuxiangmu {
color: #3D444D;
font-size: 28rpx;
font-weight: bold;
}
.querenfen {
width: 686rpx;
height: 80rpx;
background: rgba(0, 147, 255, 1);
opacity: 1;
border-radius: 8rpx;
color:#fff;
font-size: 28rpx;
text-align: center;
line-height: 80rpx;
}
</style>
... ...
<template>
<view class='box'>
<view class="renwulist">
<!-- v-if="showhide[0].status==1" -->
<view class="renwulistitem" @click="xiangmufen" >
<view class="renwuleft">
<view class="renwulimg">
<image src="../../static/img/fenpei.png" mode=""></image>
</view>
<view class="renwuname">项目组分配</view>
</view>
<view class="renwuright">
<image src="../../static/img/yourow.png" mode=""></image>
</view>
</view>
<view class="renwulistitem" @click="zhuanjia" >
<!-- v-if="showhide[1].status==1" -->
<view class="renwuleft">
<view class="renwulimg">
<image src="../../static/img/zhuanjia.png" mode=""></image>
</view>
<view class="renwuname">专家分配</view>
</view>
<view class="renwuright">
<image src="../../static/img/yourow.png" mode=""></image>
</view>
</view>
<!-- v-if="showhide[2].status==1" -->
<view class="renwulistitem" @click="danweifen" >
<view class="renwuleft">
<view class="renwulimg">
<image src="../../static/img/danwei.png" mode=""></image>
</view>
<view class="renwuname">咨询单位分配</view>
</view>
<view class="renwuright">
<image src="../../static/img/yourow.png" mode=""></image>
</view>
</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
export default {
data() {
return {
selshow: false,
showhide:''
}
},
onLoad() {
this.showhideproject()
},
methods: {
xiangmufen(){
uni.navigateTo({
url:'../zixunfen/zixunfen'
})
},
// 咨询单位
danweifen(){
uni.navigateTo({
url:'../danweizixun/danweizixun'
})
},
// 专家分配
zhuanjia(){
uni.navigateTo({
url:'../zhuanjiafenpei/zhuanjiafenpei'
})
},
},
}
</script>
<style>
.renwulimg{
width:68rpx;
height:68rpx;
font-size: 0;
}
.renwulimg image{
width:100%;
height:100%;
}
.renwuright{
width:13rpx;
height:23rpx;
font-size: 0;
}
.renwuright image{
width:100%;
height:100%;
}
.renwulist{
padding: 0 32rpx;
box-sizing: border-box;
}
.renwulistitem{
display:flex;
align-items: center;
justify-content: space-between;
padding: 32rpx 0;
box-sizing: border-box;
border-bottom:1rpx solid #EEEEEE;
}
.renwuleft{
display:flex;
align-items: center;
}
.renwuname{
color:#3D444D;
font-size: 28rpx;
margin-left:20rpx;
letter-spacing: 2rpx;
}
</style>
... ...
<template>
<view class="box">
<!-- <view class="headbox">
<view class="headboxleft" :class="selact==1?'headactive':''" @click="fenhui" data-id="1">分类汇总</view>
<view class="headboxleft" :class="selact==2?'headactive':''" @click="fenhui" data-id="2">分类明细</view>
</view> -->
<!-- <view class="hengping" @click="screenheng">点击横屏显示</view> -->
<view class="nodata" v-if="huizonglist.length==0">暂无数据</view>
<!-- <view class="nodata" v-if="huizonglist.length==1">暂无数据</view> -->
<block v-else>
<!-- 分类台账汇总 -->
<view class="taizhangbox" v-if="huizong">
<view class="taizhanghead">
<view class="taizhangitem">审减率区间</view>
<view class="taizhangitem">
<view class="shunum">项目数量</view>
<view class="shenjie">(已审结)</view>
</view>
<view class="taizhangitem">总送审题</view>
<view class="taizhangitem">总审定题</view>
<view class="taizhangitem">总审减额</view>
<view class="taizhangitem">综合审减率</view>
<view class="taizhangitem">操作</view>
</view>
<view class="taizhanglist">
<view class="taizhangflistitem" v-for="(item,index) in huizonglist" :key="index">
<view class="taiitem itemname">{{item.fname}}
</view>
<view class="taiitem itemshu">{{item.prjnum}}</view>
<view class="taiitem songshen">{{item.auduitsum}}</view>
<view class="taiitem shending">{{item.amountsum}}</view>
<view class="taiitem shenjian">{{item.freesum}}</view>
<view class="taiitem shenlv">{{item.freerate}}</view>
<view class="taiitem detailname" @click="detail" :data-id="item.fid">详情</view>
</view>
</view>
</view>
<!-- 分类台账明细 -->
<view class="taizhangbox" v-else>
<view class="taizhanghead taizhangheadde">
<view class="taizhangitem">项目编号</view>
<!-- <view class="taizhangitem">
<view class="shunum">项目名称</view>
<view class="shenjie">(已审结)</view>
</view> -->
<view class="taizhangitem">项目名称</view>
<!-- <view class="taizhangitem">送审年度</view> -->
<view class="taizhangitem">送审金额</view>
<view class="taizhangitem">评审类型</view>
<view class="taizhangitem">送审单位</view>
<view class="taizhangitem">项目类型</view>
<view class="taizhangitem">送审时间</view>
<view class="taizhangitem">审定金额</view>
<view class="taizhangitem">审减率</view>
<view class="taizhangitem">审减金额</view>
<view class="taizhangitem">咨询单位</view>
<view class="taizhangitem">送审年度</view>
<view class="taizhangitem">咨询单位项目审核负责人</view>
</view>
<view class="taizhanglist">
<view class="taizhangflistitem taizhangflistitemde" v-for="(item,index) in huizonglist" :key="index">
<view class="taiitem itemname">{{item.fprjnumber}}
</view>
<view class="taiitem itemshu">{{item.fprjname}}</view>
<view class="taiitem songshen">{{item.ftoauditamt}}</view>
<view class="taiitem leixing">{{item.freviewtype}}</view>
<view class="taiitem danwei">{{item.fdevorgid}}</view>
<view class="taiitem shenlv">{{item.fprojecttype}}</view>
<view class="taiitem date">{{item.fsubmitfindate}}
</view>
<!-- <view class="taiitem itemname">{{item.fsubmitfindate}}
</view> -->
<view class="taiitem jine">{{item.fauditamount}}</view>
<view class="taiitem songshenlv">{{item.fauditratio}}</view>
<view class="taiitem shending">{{item.fshenjianmoney}}</view>
<view class="taiitem shenjian">{{item.flordintorgid}}</view>
<view class="taiitem shenyear">{{item.fyear}}</view>
<view class="taiitem shenlvze">{{item.fauditledername==null?'':item.fauditledername}}</view>
</view>
</view>
</view>
</block>
<!-- 分类台账明细 -->
<!-- 底部 -->
<!-- <view class="dibu">
<view class="dibuleft">
<view class="dibuliteml">上一页</view>
<view class="dibulitemm">
<view class="di">第</view>
<view class="dishu">
<input type="number">
</view>
<view class="ye">页</view>
</view>
<view class="dibulitemx ">下一页</view>
</view>
<view class="diburight">
共30页
</view>
</view>
-->
<view class="register" v-if="tizhangshow">
<view class="taizhangwrap xiangmuzi">
<view class="wrapbox">
<view class="wrapitem">
<view class="wrapitemleft">项目类型</view>
<picker @change="bindPickerChange" :value="index" :range="projectlist" range-key="fname">
<view class="wrapitemright">
<view class="uni-input projectname">{{projectname}}</view>
<!-- <input type="text" /> -->
</view>
</picker>
</view>
<view class="wrapitem">
<view class="wrapitemleft">评审类型</view>
<picker @change="danweichange" :value="danweiindex" :range="danweilist" range-key="fname">
<view class="wrapitemright">
<view class="uni-input projectname">{{danweiname}}</view>
<!-- <input type="text" /> -->
</view>
</picker>
</view>
<!-- <view class="wrapitem">
<view class="wrapitemleft">咨询单位</view>
<picker @change="danweichangez" :value="danweiindexz" :range="danweilistz" range-key="fname">
<view class="wrapitemright">
<view class="uni-input projectname">{{danweinamez}}</view>
</view>
</picker>
</view> -->
<view class="wrapitem">
<view class="wrapitemleft">年度</view>
<picker @change="yearchange" :value="yearindex" :range="yeararr">
<view class="wrapitemright">
<view class="nianduleft">
<view class="uni-input projectname">{{yeararr[yearindex]}}</view>
<!-- <input type="text" /> -->
</view>
<view class="nianduright">
<image src="../../static/img/number.png" mode=""></image>
</view>
</view>
</picker>
</view>
<view class="wrapitem">
<view class="wrapitemleft">时间</view>
<view class="time">
<picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindDateChange">
<view class="timeleft">
{{startdate}}
<!-- <input placeholder="" /> -->
<!-- <input type="text" placeholder="" /> -->
</view>
</picker>
<view class="timemiddle"></view>
<picker mode="date" :value="date" :start="startDate" :end="endDate" @change="endDateChange">
<view class="timeleft">
{{endate}}
<!-- <input placeholder="" /> -->
<!-- <input type="text" placeholder="" /> -->
</view>
</picker>
</view>
</view>
</view>
<view class="zibot">
<view class="reset" @click="reset">重置</view>
<!-- <view class="chaxun" @click="search" v-if="huizong">查询</view> -->
<view class="chaxun" @click="searchdetail">查询</view>
</view>
</view>
</view>
</view>
</template>
<script>
import app from "../../App.vue";
import helper from '../../common/help.js';
export default {
data() {
return {
selact: 1,
tizhangshow: false,
danweiindex: 0,
danweiname: '评审类型',
danweilist: [],
projectlist: [],
projectname: '项目类型',
index: 0,
yeararr: [],
yearindex: -1,
startdate: '开始时间',
endate: '结束时间',
danweilistz: [],
danweiindexz: 0,
danweinamez: '咨询单位',
toaudit: '',
fintorg: '',
fprojectcategory: '',
submitdateone: '',
submitdatetwo: '',
sendyear: '',
huizonglist: [],
type: '',
huizong: false,
fid: ''
}
},
onLoad(options) {
this.fid = options.fid
// 获取今年
var date = new Date();
var jinyear = date.getFullYear();
console.log(jinyear);
var qianyear = jinyear - 19
for (var i = qianyear; i <= jinyear; i++) {
this.yeararr.push(i)
}
// 获取评审类型
this.getpingtype();
// 获取项目类型
this.getprojectkind();
// 获取咨询单位
this.getzixundanwei();
// 获取分类汇总数据
// this.getfenhuilist()
this.getdetail()
},
methods: {
reset() {
this.danweiname = '评审类型';
this.projectname = '项目类型';
this.startdate = '开始时间';
this.endate = '结束时间';
this.yearindex = -1;
this.toaudit = '';
this.fprojectcategory = '';
this.sendyear = '';
this.submitdateone = '';
this.submitdatetwo = ''
},
// 筛选
onNavigationBarButtonTap() {
this.tizhangshow = !this.tizhangshow
// 点击筛选
},
// 年改变
yearchange(e) {
this.yearindex = e.target.value;
this.sendyear = this.yeararr[e.target.value]
},
// 修改日期
bindDateChange: function(e) {
this.startdate = e.target.value;
this.submitdateone = e.target.value;
},
endDateChange(e) {
this.endate = e.target.value;
this.submitdatetwo = e.target.value;
},
fenhui(e) {
console.log(e)
let id = e.currentTarget.dataset.id;
console.log(id)
this.selact = id;
},
// 横屏显示
screenheng() {
console.log(999)
// plus.screen.lockOrientation('landscape-primary');
},
//获取咨询单位
getzixundanwei() {
let that = this;
console.log(9988776655)
let url = "project/Get_IntermediaryOrg";
app.post(url, '', 'get').then(r => {
console.log(r);
that.danweilistz = r.data;
}).catch(err => {
console.log(err)
})
},
danweichangez: function(e) {
console.log('picker发送选择改变,携带值为', e);
console.log('998877654', this.danweilistz);
console.log('09988776545', this.danweilistz[e.target.value].fname)
this.danweiindexz = e.target.value;
this.fintorg = this.danweilistz[e.target.value].fname;
this.danweinamez = this.danweilistz[e.target.value].fname;
},
// 获取评审类型
getpingtype() {
let that = this;
console.log(9988776655)
let url = "project/Get_ToAuditType";
// console.log('8877665544',param)
app.post(url, '', 'get').then(r => {
console.log(r)
that.danweilist = r.data;
// that.ftrialnumber = r.data[0].ftrialnumber;
// that.fconcludenumber = r.data[0].fconcludenumber;
// console.log('1234567890',JSON.stringify(r))
// that.rizhilist = r.data;
// console.log(that.rizhilist)
}).catch(err => {
console.log(err)
})
},
danweichange: function(e) {
console.log('picker发送选择改变,携带值为', e.target.value)
this.danweiindex = e.target.value;
this.toaudit = this.danweilist[e.target.value].fname;
this.danweiname = this.danweilist[e.target.value].fname;
},
// 显示项目类型
getprojectkind() {
let url = "project/Get_ProjectType";
app.post(url, '', 'get').then(r => {
console.log(r)
this.projectlist = r.data;
console.log(this.projectlist);
// this.xiangmulist=r.data;
// console.log(this.xiangmulist)
}).catch(err => {
console.log(err)
})
},
// 选择项目
bindPickerChange: function(e) {
console.log('picker发送选择改变,携带值为', e.target.value)
this.index = e.target.value;
this.fprojectcategory = this.projectlist[e.target.value].fname;
this.projectname = this.projectlist[e.target.value].fname
},
// 获取分类汇总的数据
getfenhuilist() {
let that = this;
console.log(9988776655)
let url = "project/Get_Descpercategorysum";
let param = {
toaudit: that.toaudit,
fprojectcategory: that.fprojectcategory,
sendyear: that.sendyear,
submitdateone: that.submitdateone,
submitdatetwo: that.submitdatetwo,
}
console.log(param)
// console.log('8877665544',param)
app.post(url, param, 'get').then(r => {
console.log(r);
that.huizonglist = r.data;
// that.ftrialnumber = r.data[0].ftrialnumber;
// that.fconcludenumber = r.data[0].fconcludenumber;
// console.log('1234567890',JSON.stringify(r))
// that.rizhilist = r.data;
// console.log(that.rizhilist)
}).catch(err => {
console.log(err)
})
},
detail(e) {
this.fid = e.target.dataset.id;
uni.navigateTo({
url: '../shenjianhuidetail/shenjianhuidetail?fid=' + this.fid
})
// this.huizong=false;
// this.getdetailist()
},
getdetailist() {
let that = this;
console.log(9988776655)
let url = "project/Get_Descpercategory";
let param = {
fid: that.fid,
toaudit: that.toaudit,
fprojectcategory: that.fprojectcategory,
sendyear: that.sendyear,
submitdateone: that.submitdateone,
submitdatetwo: that.submitdatetwo,
}
console.log(param)
// console.log('8877665544',param)
app.post(url, param, 'get').then(r => {
console.log(r);
that.huizonglist = r.data;
// that.ftrialnumber = r.data[0].ftrialnumber;
// that.fconcludenumber = r.data[0].fconcludenumber;
// console.log('1234567890',JSON.stringify(r))
// that.rizhilist = r.data;
// console.log(that.rizhilist)
}).catch(err => {
console.log(err)
})
},
getdetail() {
let that = this;
console.log(9988776655)
let url = "project/Get_Descpercategory";
let param = {
fid: that.fid,
toaudit: that.toaudit,
fprojectcategory: that.fprojectcategory,
sendyear: that.sendyear,
submitdateone: that.submitdateone,
submitdatetwo: that.submitdatetwo,
}
console.log(param)
// console.log('8877665544',param)
app.post(url, param, 'get').then(r => {
console.log(r);
that.huizonglist = r.data;
let newhuizonglist = that.huizonglist;
for (var obj of newhuizonglist) {
obj.fauditamount = helper.change(obj.fauditamount);
obj.fshenjianmoney = helper.change(obj.fshenjianmoney);
obj.ftoauditamt = helper.change(obj.ftoauditamt);
obj.fsubmitfindate=obj.fsubmitfindate.split("T");
obj.fsubmitfindate=obj.fsubmitfindate[0]
}
this.huizonglist = newhuizonglist
// that.ftrialnumber = r.data[0].ftrialnumber;
// that.fconcludenumber = r.data[0].fconcludenumber;
// console.log('1234567890',JSON.stringify(r))
// that.rizhilist = r.data;
// console.log(that.rizhilist)
}).catch(err => {
console.log(err)
})
},
search() {
this.getfenhuilist();
this.tizhangshow = false
},
searchdetail() {
this.getdetail();
this.tizhangshow = false
}
},
}
</script>
<style>
page {
background: #f9f9f9;
}
.headbox {
background: #fff;
height: 100rpx;
display: flex;
align-items: center;
}
.headboxleft {
width: 350rpx;
height: 100rpx;
line-height: 100rpx;
text-align: center;
color: #06121E;
font-size: 28rpx;
}
.headactive {
color: #0093FF;
border-bottom: 1rpx solid #0093FF;
}
.hengping {
width: 144rpx;
color: #0093FF;
font-size: 24rpx;
border-bottom: 1rpx solid #0093FF;
margin: 34rpx auto 0;
}
.taizhangbox {
width: 700rpx;
overflow-x: scroll;
margin: 28rpx;
padding: 0 20rpx;
box-sizing: border-box;
background: #fff;
}
.taizhangitem {
color: #06121E;
font-size: 22rpx;
margin-right: 118rpx;
font-weight: bold;
}
.shenjie {
text-align: center;
margin-top: 5rpx;
font-size: 20rpx;
}
.taiitem {
color: #06121E;
font-size: 24rpx;
}
.itemname {
width: 96rpx;
margin-left: 10rpx;
}
.itemshu {
width: 150rpx;
text-align: center;
margin-left: 72rpx
}
.songshen {
width: 200rpx;
text-align: center;
margin-left: 30rpx;
}
.shending {
width: 200rpx;
text-align: center;
margin-left: 5rpx
}
.leixing {
width: 180rpx;
text-align: center;
margin-left: 5rpx
}
.shenjian {
width: 200rpx;
text-align: center;
margin-left: 10rpx
}
.shenlv {
width: 200rpx;
text-align: center;
margin-left: 15rpx
}
.dibu {
display: flex;
align-items: center;
justify-content: flex-end;
width: 750rpx;
height: 104rpx;
padding: 0 32rpx;
box-sizing: border-box;
background: #fff;
position: fixed;
bottom: 0;
left: 0
}
.dibuleft {
display: flex;
align-items: center;
margin-right: 72rpx;
}
.dibulitemm {
display: flex;
align-items: center;
}
.dishu {
width: 40rpx;
height: 30rpx;
border: 1rpx solid #707070;
border-radius: 4rpx;
margin: 0 6rpx;
font-size: 0;
display: flex;
align-items: center;
justify-content: center;
}
.dishu input {
width: 100%;
height: 30rpx;
line-height: 30rpx;
padding: 5rpx 0;
box-sizing: border-box;
text-align: center;
font-size: 26rpx;
color: #8C9198;
/* height:20rpx; */
}
.dibuliteml,
.di,
.ye,
.dibulitemx,
.diburight {
color: #06121E;
font-size: 28rpx;
}
.dibuliteml {
margin-right: 36rpx
}
.dibulitemx {
margin-left: 36rpx
}
.xiangmuzi {
height: 784rpx;
}
.taizhangflistitem {
width: 1500rpx;
overflow-x: scroll;
padding: 18rpx 0;
box-sizing: border-box;
display: flex;
align-items: center;
border-bottom: 1rpx solid #BDC4CE
}
.taizhanghead {
width: 1500rpx;
overflow-x: scroll;
display: flex;
align-items: center;
padding: 16rpx 0;
box-sizing: border-box;
border-bottom: 1rpx solid #BDC4CE
}
.taizhangheadde {
width: 3200rpx;
overflow-x: scroll;
display: flex;
align-items: center;
padding: 16rpx 0;
box-sizing: border-box;
border-bottom: 1rpx solid #BDC4CE
}
.taizhangflistitemde {
width: 3200rpx;
overflow-x: scroll;
padding: 18rpx 0;
box-sizing: border-box;
display: flex;
align-items: center;
border-bottom: 1rpx solid #BDC4CE
}
.detailname {
width: 120rpx;
text-align: center;
color: #0093FF;
fotn-size: 24rpx;
margin-left: 20rpx;
}
.danwei {
width: 200rpx;
text-align: center;
margin-left: 5rpx;
}
.date {
width: 200rpx;
text-align: center;
}
.jine {
width: 200rpx;
text-align: center;
}
.songshenlv {
width: 200rpx;
text-align: center;
margin-left: 10rpx;
}
.shenyear {
width: 120rpx;
text-align: center;
margin-left: 1rpx;
}
.shenlvze {
width: 320rpx;
text-align: center;
margin-left: 20rpx;
}
</style>
... ...