【修改】项目字段修改
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 9.4 KiB |
@@ -60,15 +60,15 @@ const UserApi = {
|
|||||||
// 工作组分页
|
// 工作组分页
|
||||||
workList: (params) => http.get(`${URL_CONFIG}project/payWorkingGroupSubitem/queryCompanyPageList`, params),
|
workList: (params) => http.get(`${URL_CONFIG}project/payWorkingGroupSubitem/queryCompanyPageList`, params),
|
||||||
// 分标委列表
|
// 分标委列表
|
||||||
committeeList: (params) => http.get(`${URL_CONFIG}payCaseCommittee/payCaseCommittee/list`, params),
|
committeeList: (params) => http.get(`${URL_CONFIG}payCaseCommitteeSubitem/payCaseCommitteeSubitem/findTwo`, params),
|
||||||
// 分标委详情
|
// 分标委详情
|
||||||
committeeDetail: (params) => http.get(`${URL_CONFIG}payCaseCommittee/payCaseCommittee/detail`, params),
|
committeeDetail: (params) => http.get(`${URL_CONFIG}payCaseCommittee/payCaseCommittee/detail`, params),
|
||||||
// 资料网员分页接口
|
// 资料网员分页接口
|
||||||
queryDataMemberList: (params) => http.get(`${URL_CONFIG}jero/memberProjectSubitem/pageCompany`, params),
|
queryDataMemberList: (params) => http.get(`${URL_CONFIG}jero/memberProjectSubitem/pageCompany`, params),
|
||||||
// 获取用户的信息
|
// 获取用户的信息
|
||||||
getUserInfo: (params) => http.get(`${URL_CONFIG}/sys/user/queryById`, params),
|
getUserInfo: (params) => http.get(`${URL_CONFIG}sys/user/queryById`, params),
|
||||||
// 注册
|
// 注册
|
||||||
registerUser: (params) => http.post(`${URL_CONFIG}/sys/user/register`, params),
|
registerUser: (params) => http.post(`${URL_CONFIG}sys/user/register`, params),
|
||||||
}
|
}
|
||||||
|
|
||||||
export default UserApi
|
export default UserApi
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
<view>
|
<view>
|
||||||
<view class="item" wx:for="{{list}}" wx:key="item" bindtap="detail" data-committee="{{item}}">
|
<view class="item" wx:for="{{list}}" wx:key="item" bindtap="detail" data-committee="{{item}}">
|
||||||
<text>{{item.name}}</text>
|
<text>{{item.name}}</text>
|
||||||
|
<view>项目负责人:{{item.principal}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text class="no-data" wx:if="{{list.length == 0}}">暂无数据</text>
|
<text class="no-data" wx:if="{{list.length == 0}}">暂无数据</text>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ page{
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 80px;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
|
|||||||
@@ -4,6 +4,14 @@
|
|||||||
<text>项目名称</text>
|
<text>项目名称</text>
|
||||||
<text>{{name}}</text>
|
<text>{{name}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="meeting-name">
|
||||||
|
<text>项目负责人</text>
|
||||||
|
<text>{{form.principal}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="remark">
|
||||||
|
<text>目标简介</text>
|
||||||
|
<text>{{form.remarks}}</text>
|
||||||
|
</view>
|
||||||
<view style="height: auto !important;">
|
<view style="height: auto !important;">
|
||||||
<text>项目资料</text>
|
<text>项目资料</text>
|
||||||
<view class="info-file" wx:if="{{form.files && form.files.length}}">
|
<view class="info-file" wx:if="{{form.files && form.files.length}}">
|
||||||
@@ -27,3 +35,5 @@
|
|||||||
<text wx:if="{{meetingList.length == 0}}" class="no-data" style="height: 40px;">暂无会议记录!</text>
|
<text wx:if="{{meetingList.length == 0}}" class="no-data" style="height: 40px;">暂无会议记录!</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class="tips"> 更多功能和信息请到pc端操作</view>
|
||||||
|
|||||||
@@ -274,3 +274,16 @@ page{
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.remark {
|
||||||
|
height: auto!important;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tips {
|
||||||
|
margin-top: 20px;
|
||||||
|
color: #000;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 14px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|||||||
@@ -5,7 +5,9 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="empty_custom" style="padding-top:{{statusBarHeight}}px"></view><!-- 空view用来填充自定义头部的padding-top -->
|
<view class="empty_custom" style="padding-top:{{statusBarHeight}}px"></view><!-- 空view用来填充自定义头部的padding-top -->
|
||||||
<!-- 自定义头部end -->
|
<!-- 自定义头部end -->
|
||||||
<view>
|
<view class="base">
|
||||||
|
<!-- 作废的图标 -->
|
||||||
|
<image src="../../assets/images/zuofei.png" class="zuofei" wx:if="{{form.status === 6}}"></image>
|
||||||
<view class="basic-info">
|
<view class="basic-info">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<text>基本信息</text>
|
<text>基本信息</text>
|
||||||
@@ -22,10 +24,22 @@
|
|||||||
<text>负责人</text>
|
<text>负责人</text>
|
||||||
<text>{{form.principalName}}</text>
|
<text>{{form.principalName}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view>
|
||||||
|
<text>签订单位</text>
|
||||||
|
<text>{{form.signedCompanyTemporaryName}}</text>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<text>签订联系人</text>
|
||||||
|
<text>{{form.signedContactsTemporaryName}}</text>
|
||||||
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text>合同金额</text>
|
<text>合同金额</text>
|
||||||
<text>{{form.contractAmount ? form.contractAmount + '元' : ''}}</text>
|
<text>{{form.contractAmount ? form.contractAmount + '元' : ''}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view>
|
||||||
|
<text>创建时间</text>
|
||||||
|
<text>{{form.createTime}}</text>
|
||||||
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text>关联项目</text>
|
<text>关联项目</text>
|
||||||
<view class="ass-project">
|
<view class="ass-project">
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
page{
|
page{
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
.base {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
.basic-info .title{
|
.basic-info .title{
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
@@ -74,4 +77,15 @@ page{
|
|||||||
display: block;
|
display: block;
|
||||||
line-height: 25px;
|
line-height: 25px;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
/* 作废的图标 */
|
||||||
|
.zuofei {
|
||||||
|
position: absolute;
|
||||||
|
width: 70rpx;
|
||||||
|
height: 60rpx;
|
||||||
|
transform: scale(1.5);
|
||||||
|
top: 6%;
|
||||||
|
right: 20%;
|
||||||
|
z-index: 2;
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -69,7 +69,7 @@
|
|||||||
<view class="modal-mask" bindtap="hideModal" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view>
|
<view class="modal-mask" bindtap="hideModal" catchtouchmove="preventTouchMove" wx:if="{{showModal}}"></view>
|
||||||
<view class="modal-dialog" wx:if="{{showModal}}">
|
<view class="modal-dialog" wx:if="{{showModal}}">
|
||||||
<view class="modal-content">
|
<view class="modal-content">
|
||||||
<image src="../../assets/images/msg.png" style="width:200rpx;height:200rpx; position: absolute;top: 50%;left: 50%;transform: translate(-50%,-186%);"></image>
|
<image src="../../assets/images/msg.png" style="width:200rpx;height:200rpx; position: absolute;top: 50%;left: 50%;transform: translate(-50%,-146%);"></image>
|
||||||
<!-- {{content}} -->
|
<!-- {{content}} -->
|
||||||
<view class="title">{{clickItem.currentTarget.dataset.message.titile_dictText}}</view>
|
<view class="title">{{clickItem.currentTarget.dataset.message.titile_dictText}}</view>
|
||||||
<!-- rich-text 会解析html模板中的html标签 -->
|
<!-- rich-text 会解析html模板中的html标签 -->
|
||||||
|
|||||||
@@ -74,6 +74,7 @@ Page({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
loadData(){
|
loadData(){
|
||||||
|
const that = this
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: '加载中...',
|
title: '加载中...',
|
||||||
icon: 'loading'
|
icon: 'loading'
|
||||||
@@ -82,14 +83,14 @@ Page({
|
|||||||
UserApi.projectList(this.data.searchParams).then(res=>{
|
UserApi.projectList(this.data.searchParams).then(res=>{
|
||||||
if(res.success){
|
if(res.success){
|
||||||
// 搜索时,把原数据清空,重新筛选
|
// 搜索时,把原数据清空,重新筛选
|
||||||
if(this.data.searchParams.pageNo === 1) {
|
if(that.data.searchParams.pageNo === 1) {
|
||||||
this.setData({
|
that.setData({
|
||||||
list: []
|
list: []
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if(res.result.records && res.result.records.length){
|
if(res.result.records && res.result.records.length){
|
||||||
this.setData({
|
that.setData({
|
||||||
list: [...this.data.list, ...res.result.records]
|
list: [...that.data.list, ...res.result.records]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -103,17 +104,27 @@ Page({
|
|||||||
}else if(this.data.type == 'work'){
|
}else if(this.data.type == 'work'){
|
||||||
UserApi.workList(this.data.searchParams).then(res=>{
|
UserApi.workList(this.data.searchParams).then(res=>{
|
||||||
if(res.success){
|
if(res.success){
|
||||||
|
// 这里没有返回负责人的id
|
||||||
|
// 后端直接返回
|
||||||
|
// res.result.records.map(async tt => {
|
||||||
|
// // tt.principalIdA
|
||||||
|
// let userInfo = await this.getUserInfoById('1432214744864772098')
|
||||||
|
// tt.userInfo = userInfo
|
||||||
|
// tt.name = userInfo.username
|
||||||
|
// })
|
||||||
|
console.log(res.result.records);
|
||||||
// 搜索时,把原数据清空,重新筛选
|
// 搜索时,把原数据清空,重新筛选
|
||||||
if(this.data.searchParams.pageNo === 1) {
|
if(that.data.searchParams.pageNo === 1) {
|
||||||
this.setData({
|
that.setData({
|
||||||
list: []
|
list: []
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if(res.result.records && res.result.records.length){
|
if(res.result.records && res.result.records.length){
|
||||||
this.setData({
|
that.setData({
|
||||||
list: [...this.data.list, ...res.result.records]
|
list: [...that.data.list, ...res.result.records]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
console.log(that.data.list,'this.data.list');
|
||||||
}
|
}
|
||||||
}).catch(err=>{
|
}).catch(err=>{
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
@@ -146,6 +157,23 @@ Page({
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* @description 通过用户id获取用户信息
|
||||||
|
* @param: id 用户id
|
||||||
|
*/
|
||||||
|
getUserInfoById(id){
|
||||||
|
return new Promise(resolve => {
|
||||||
|
let result = {}
|
||||||
|
UserApi.getUserInfoNolimit({id:id}).then(res => {
|
||||||
|
if(res.success){
|
||||||
|
result = res.result
|
||||||
|
}
|
||||||
|
}).finally( () => {
|
||||||
|
resolve(result)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -38,12 +38,22 @@
|
|||||||
<text>{{item.chargeProject || item.projectName}}</text>
|
<text>{{item.chargeProject || item.projectName}}</text>
|
||||||
<text>{{item.year || item.particularYear}}年</text>
|
<text>{{item.year || item.particularYear}}年</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="content-text">
|
<!-- 工作组项目展示begin -->
|
||||||
|
<block>
|
||||||
|
<view class="item-content">项目负责人:{{item.name || item.directorName}}</view>
|
||||||
|
<view class="item-content">负责人电话:{{item.phone}}</view>
|
||||||
|
<view class="item-content">负责人邮箱:{{item.userInfo.email}}</view>
|
||||||
|
<view class="item-content">运行周期:</view>
|
||||||
|
<view class="item-content">缴费凭证:</view>
|
||||||
|
</block>
|
||||||
|
<!-- 工作组项目展示end -->
|
||||||
|
<!-- 应该是不要了 -->
|
||||||
|
<!-- <view class="content-text">
|
||||||
<text class="{{item.needInvoice === 0 ? '' : 'all'}}">{{item.needInvoice === 0 ? '不需要发票' : '需要发票'}}</text>
|
<text class="{{item.needInvoice === 0 ? '' : 'all'}}">{{item.needInvoice === 0 ? '不需要发票' : '需要发票'}}</text>
|
||||||
<text class="{{item.inAccount === 0 ? '' : item.inAccount === 2 ? 'half' : 'all'}}">到账</text>
|
<text class="{{item.inAccount === 0 ? '' : item.inAccount === 2 ? 'half' : 'all'}}">到账</text>
|
||||||
<text class="{{item.makeInvoice === 0 ? '' : item.makeInvoice === 2 ? 'half' : 'all'}}">开票</text>
|
<text class="{{item.makeInvoice === 0 ? '' : item.makeInvoice === 2 ? 'half' : 'all'}}">开票</text>
|
||||||
<text class="{{item.mail === 0 ? '' : 'all'}}">邮寄</text>
|
<text class="{{item.mail === 0 ? '' : 'all'}}">邮寄</text>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view wx:if="{{list.length === 0}}" class="no-data">
|
<view wx:if="{{list.length === 0}}" class="no-data">
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ page {
|
|||||||
padding: 15px;
|
padding: 15px;
|
||||||
}
|
}
|
||||||
.list-item{
|
.list-item{
|
||||||
height: 90px;
|
height: auto;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
padding: 10px 15px;
|
padding: 10px 15px;
|
||||||
@@ -63,6 +63,12 @@ page {
|
|||||||
text-align: right;
|
text-align: right;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
.item-content {
|
||||||
|
width: 100%;
|
||||||
|
padding: 10rpx 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
.content-text{
|
.content-text{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: #999;
|
color: #999;
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ Page({
|
|||||||
*/
|
*/
|
||||||
data: {
|
data: {
|
||||||
statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'],
|
statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'],
|
||||||
|
type:'',//区别是哪个项目的项目详情 work工作组
|
||||||
form: {},
|
form: {},
|
||||||
id: '', // 在工作组id,项目id
|
id: '', // 在工作组id,项目id
|
||||||
workingGroupId: '', //工作组id
|
workingGroupId: '', //工作组id
|
||||||
@@ -105,6 +106,11 @@ Page({
|
|||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
onLoad: function (options) {
|
onLoad: function (options) {
|
||||||
|
if(options.type){
|
||||||
|
this.setData({
|
||||||
|
type:options.type
|
||||||
|
})
|
||||||
|
}
|
||||||
if(options.type === 'ziliao'){
|
if(options.type === 'ziliao'){
|
||||||
this.setData({
|
this.setData({
|
||||||
showProjectData:false
|
showProjectData:false
|
||||||
|
|||||||
@@ -44,6 +44,11 @@
|
|||||||
<text>打包</text>
|
<text>打包</text>
|
||||||
<text>{{form.pack_dictText}}</text>
|
<text>{{form.pack_dictText}}</text>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 工作组项目展示 -->
|
||||||
|
<view style="height:auto" wx:if="{{type === 'work' }}">
|
||||||
|
<text>任务及目标</text>
|
||||||
|
<text></text>
|
||||||
|
</view>
|
||||||
<view>
|
<view>
|
||||||
<text>需要发票</text>
|
<text>需要发票</text>
|
||||||
<text>{{form.needInvoice_dictText}}</text>
|
<text>{{form.needInvoice_dictText}}</text>
|
||||||
@@ -56,7 +61,8 @@
|
|||||||
<view wx:if="{{form.chargeWay === 2}}">
|
<view wx:if="{{form.chargeWay === 2}}">
|
||||||
<text>合同</text>
|
<text>合同</text>
|
||||||
<!-- 跳转到合同详情 -->
|
<!-- 跳转到合同详情 -->
|
||||||
<text class="color-green" bindtap="contractDetail">{{form.contractNum}}</text>
|
<!-- class="color-green" bindtap="contractDetail" 去掉跳转 -->
|
||||||
|
<text>{{form.contractNum}}</text>
|
||||||
</view>
|
</view>
|
||||||
<!-- 付款方式为收费通知才有 -->
|
<!-- 付款方式为收费通知才有 -->
|
||||||
<view wx:if="{{form.chargeWay === 3}}">
|
<view wx:if="{{form.chargeWay === 3}}">
|
||||||
@@ -99,6 +105,8 @@
|
|||||||
<view class="basic-info" style="margin-top: 10px;">
|
<view class="basic-info" style="margin-top: 10px;">
|
||||||
<view class="title">
|
<view class="title">
|
||||||
<text>到账信息</text>
|
<text>到账信息</text>
|
||||||
|
<!-- 工作组显示 -->
|
||||||
|
<view class="tip" wx:if="{{type === 'work' || type === 'project' }}">请到pc端进行相关缴费操作</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="padding: 0 15px;" wx:for="{{form.paymentRecord}}" wx:key="item">
|
<view style="padding: 0 15px;" wx:for="{{form.paymentRecord}}" wx:key="item">
|
||||||
<text wx:if="{{form.paymentRecord && form.paymentRecord.length}}">{{item.paymentDate}}到账{{item.amountReceived}}元</text>
|
<text wx:if="{{form.paymentRecord && form.paymentRecord.length}}">{{item.paymentDate}}到账{{item.amountReceived}}元</text>
|
||||||
@@ -146,3 +154,5 @@
|
|||||||
<text class="no-data" style="height: 50px;" wx:if="{{!form.mailBill}}">暂无邮寄记录!</text>
|
<text class="no-data" style="height: 50px;" wx:if="{{!form.mailBill}}">暂无邮寄记录!</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 工作组展示 -->
|
||||||
|
<view class="tip" wx:if="{{type === 'work' }}">在研项目和各种分发资料请到pc端查看</view>
|
||||||
|
|||||||
@@ -298,3 +298,10 @@ page{
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 40px;
|
line-height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tip {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 700;
|
||||||
|
color: #000;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user