首页消息,首页来款项目,工作组,列表详情
This commit is contained in:
@@ -1,18 +1,34 @@
|
||||
// pages/meeting/meeting.js
|
||||
import UserApi from '../../assets/js/http/userApi'
|
||||
import { previewFile, initFileList } from '../../assets/js/preview'
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
form: {},
|
||||
noticeFileList: [] // 通知文件
|
||||
},
|
||||
// 预览
|
||||
preview(e){
|
||||
const fileObj = e.currentTarget.dataset.file
|
||||
previewFile(fileObj.id,fileObj.name)
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
UserApi.projectDetail({id: options.id}).then(res=>{
|
||||
this.setData({
|
||||
form: res.result
|
||||
})
|
||||
// 获取通知文件list
|
||||
initFileList(this.data.form.files).then(res => {
|
||||
this.setData({
|
||||
noticeFileList:res
|
||||
})
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -26,7 +42,7 @@ Page({
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -63,4 +79,4 @@ Page({
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -2,116 +2,111 @@
|
||||
<view class="basic-info">
|
||||
<view class="meeting-name">
|
||||
<text>项目名称</text>
|
||||
<text>会议名称会议名称</text>
|
||||
<text>{{form.chargeProject}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>款项用途</text>
|
||||
<text>arff4ds8a3s6651</text>
|
||||
<!-- 需求文档上写的固定的 资料网费-->
|
||||
<text>{{form.chargeUse_dictText}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>运行年份</text>
|
||||
<text>找找</text>
|
||||
<text>{{form.year}}年</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>企业负责人</text>
|
||||
<text>张三</text>
|
||||
<text>项目负责人</text>
|
||||
<text>{{form.principalName}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>应付金额</text>
|
||||
<text>500元</text>
|
||||
<text>{{form.receivableAmount ? form.receivableAmount + '元' : '0'}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>实付金额</text>
|
||||
<text>500元</text>
|
||||
<text>{{form.paidAmount ? form.paidAmount + '元' : '0'}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>经办人</text>
|
||||
<text>500元</text>
|
||||
<text>企业联系人</text>
|
||||
<text>{{form.contactsTemporaryName}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>是否打包</text>
|
||||
<text>500元</text>
|
||||
<text>邮寄联系人</text>
|
||||
<text>{{form.mailContactsTemporaryName}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>打包</text>
|
||||
<text>{{form.pack_dictText}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>需要发票</text>
|
||||
<text>500元</text>
|
||||
<text>{{form.needInvoice_dictText}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>付款方式</text>
|
||||
<text>500元</text>
|
||||
<text>{{form.chargeWay_dictText}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>备注</text>
|
||||
<text>500元</text>
|
||||
<!-- 付款方式为合同才有 -->
|
||||
<view wx:if="{{form.chargeWay === 2}}">
|
||||
<text>合同</text>
|
||||
<!-- 跳转到合同详情 -->
|
||||
<text class="color-green" bindtap="contractDetail">{{form.contractNo}}</text>
|
||||
</view>
|
||||
<!-- 付款方式为收费通知才有 -->
|
||||
<view wx:if="{{form.chargeWay === 3}}">
|
||||
<text>收费通知号</text>
|
||||
<text>{{form.chargeNoticeNo}}</text>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{form.chargeWay === 3}}" style="height: auto !important;">
|
||||
<text>通知文件</text>
|
||||
<view class="info-file">
|
||||
<text class='color-green' data-file="{{item}}" wx:for="{{noticeFileList}}" wx:key='item'
|
||||
bindtap="preview">{{item.name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="basic-info" style="margin-top: 10px;">
|
||||
<view class="title">
|
||||
<text>到账信息</text>
|
||||
</view>
|
||||
<view style="padding: 0 15px;">
|
||||
<text>2021年到账12021元</text>
|
||||
<view style="padding: 0 15px;" wx:for="{{form.paymentRecord}}" wx:key="item">
|
||||
<text>{{item.paymentDate}}到账{{item.amountReceived}}元</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="basic-info" style="margin-top: 10px;">
|
||||
<view class="title">
|
||||
<text>开票邮寄信息</text>
|
||||
</view>
|
||||
<view class="way">
|
||||
<image src="../../assets/images/sf.png"></image>
|
||||
<text>顺丰速递</text>
|
||||
</view>
|
||||
<view class="way-info">
|
||||
<view class="way-left">
|
||||
<text class="way-left-text green">票</text>
|
||||
<view class="way-center">
|
||||
<text>开票人:张三</text>
|
||||
<text>开票时间:2021年10月9日</text>
|
||||
</view>
|
||||
<view wx:for="{{form.mailBill}}" wx:key='item' class="way-box">
|
||||
<view class="title">
|
||||
<text>开票邮寄信息</text>
|
||||
</view>
|
||||
<text class="way-right">开票号5465</text>
|
||||
</view>
|
||||
<view class="way-info">
|
||||
<view class="way-left">
|
||||
<text class="way-left-text blue">票</text>
|
||||
<view class="way-center">
|
||||
<text>开票人:张三</text>
|
||||
<text>开票时间:2021年10月9日</text>
|
||||
</view>
|
||||
<view class="way">
|
||||
<image wx:if='{{item.sendMethod === 2}}' src="../../assets/images/sf.png"></image>
|
||||
<image wx:if='{{item.sendMethod === 1}}' src="../../assets/images/ems.png"></image>
|
||||
<text>{{item.sendMethod_dictText}}</text>
|
||||
</view>
|
||||
<text class="way-right">开票号5465</text>
|
||||
</view>
|
||||
<view class="look-progress">
|
||||
<text>金额:200元</text>
|
||||
<text>查看物流</text>
|
||||
</view>
|
||||
<view class="way" style="margin-top: 10px;">
|
||||
<image src="../../assets/images/ems.png"></image>
|
||||
<text>EMS速运</text>
|
||||
</view>
|
||||
<view class="way-info">
|
||||
<view class="way-left">
|
||||
<text class="way-left-text green">票</text>
|
||||
<view class="way-center">
|
||||
<text>开票人:张三</text>
|
||||
<text>开票时间:2021年10月9日</text>
|
||||
<view class="way-info">
|
||||
<view class="way-left">
|
||||
<text class="way-left-text green">票</text>
|
||||
<view class="way-center">
|
||||
<text>开票人:{{item.createBy}}</text>
|
||||
<text>开票时间:{{item.billDate}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="way-right">开票号{{item.billNo}}</text>
|
||||
</view>
|
||||
<text class="way-right">开票号5465</text>
|
||||
</view>
|
||||
<view class="way-info">
|
||||
<view class="way-left">
|
||||
<text class="way-left-text blue">票</text>
|
||||
<view class="way-center">
|
||||
<text>开票人:张三</text>
|
||||
<text>开票时间:2021年10月9日</text>
|
||||
<view class="way-info">
|
||||
<view class="way-left">
|
||||
<text class="way-left-text blue">邮</text>
|
||||
<view class="way-center">
|
||||
<text>邮寄人:{{item.createBy}}</text>
|
||||
<text>邮寄时间:{{item.sendDate}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="way-right">快递号:{{item.postNo}}</text>
|
||||
</view>
|
||||
<view class="look-progress">
|
||||
<text>金额:{{item.invoiceAmount}}元</text>
|
||||
<text wx:if="{{item.postStatus == 1}}">查看物流</text>
|
||||
</view>
|
||||
<text class="way-right">开票号5465</text>
|
||||
</view>
|
||||
<view class="look-progress">
|
||||
<text>金额:200元</text>
|
||||
<text>查看物流</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -125,6 +125,18 @@ page{
|
||||
top: -3px;
|
||||
right: -3px;
|
||||
}
|
||||
.way-box{
|
||||
display: block !important;
|
||||
padding: 0 !important;
|
||||
height: auto !important;
|
||||
}
|
||||
.info-file{
|
||||
padding: 0 !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end !important;
|
||||
height: auto !important;
|
||||
}
|
||||
.basic-info .way{
|
||||
padding: 0 15px;
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user