提交代码

main
姜玉琦 2023-09-17 18:10:31 +08:00
parent f3c3daa5e6
commit ad09ede70a
22 changed files with 293 additions and 210 deletions

View File

@ -14,6 +14,7 @@ Page({
detectionImageList:[], detectionImageList:[],
minDetectionFileImages:[], minDetectionFileImages:[],
detectionFiles:[], detectionFiles:[],
fileUrls:[],
request:app.globalData.reqUrl request:app.globalData.reqUrl
}, },
@ -55,6 +56,7 @@ Page({
let imageUrls = []; let imageUrls = [];
let minImageUrls = []; let minImageUrls = [];
let fileUrls = []; let fileUrls = [];
let fileNames = [];
//判断附件 //判断附件
if(res.data.detectionFile){ if(res.data.detectionFile){
res.data.detectionFile.split(',').forEach(element => { res.data.detectionFile.split(',').forEach(element => {
@ -65,6 +67,8 @@ Page({
imageUrls.push(that.data.request+element); imageUrls.push(that.data.request+element);
minImageUrls.push(that.data.request+element+'.min.jpg'); minImageUrls.push(that.data.request+element+'.min.jpg');
}else{ }else{
let it = element.split('/');
fileNames.push(it[it.length-1]);
fileUrls.push(element); fileUrls.push(element);
} }
}); });
@ -73,7 +77,8 @@ Page({
infoData:res.data, infoData:res.data,
detectionImageList:imageUrls, detectionImageList:imageUrls,
minDetectionFileImages:minImageUrls, minDetectionFileImages:minImageUrls,
detectionFiles:fileUrls, detectionFiles:fileNames,
fileUrls,
loadShow:false loadShow:false
}) })
//判断当前能否删除 //判断当前能否删除
@ -132,6 +137,27 @@ Page({
}) })
}, },
downFile:function(e){
let that = this;
wx.downloadFile({
// 示例 url并非真实存在
url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.fileUrls[0],
success: function (res) {
const filePath = res.tempFilePath
wx.openDocument({
filePath: filePath,
success: function (res) {
console.log('打开文档成功')
},
fail:function(res) {
console.log(res)
}
})
}
})
//app.toast("暂不支持下载!如需下载请前往后台管理系统!!")
},
returnToPage: function () { returnToPage: function () {
/*关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面*/ /*关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面*/
wx.redirectTo({ wx.redirectTo({

View File

@ -102,11 +102,10 @@ Page({
}, },
downFile:function(e){ downFile:function(e){
let idx = e.currentTarget.dataset['index'];
let that = this; let that = this;
wx.downloadFile({ wx.downloadFile({
// 示例 url并非真实存在 // 示例 url并非真实存在
url: that.data.request+that.imageList[idx], url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.infoData.insuranceFile,
success: function (res) { success: function (res) {
const filePath = res.tempFilePath const filePath = res.tempFilePath
wx.openDocument({ wx.openDocument({

View File

@ -30,7 +30,7 @@
<van-row> <van-row>
<van-col span="6"><text class="color_purple">保险合同</text></van-col> <van-col span="6"><text class="color_purple">保险合同</text></van-col>
<view class="problem_list_info_con in-img-max"> <view class="problem_list_info_con in-img-max">
<view class="in-img-div"> <view class="in-img-div" wx:if="{{infoData.insuranceFile!=null}}">
<image src='https://cf.makalu.cc/profile/wechat/icon/pdf.png'></image> <image src='https://cf.makalu.cc/profile/wechat/icon/pdf.png'></image>
<text class="files" style="color:#89a3ed;margin-left:50rpx;" bindtap='downFile' data-index="{{0}}" >下载附件</text> <text class="files" style="color:#89a3ed;margin-left:50rpx;" bindtap='downFile' data-index="{{0}}" >下载附件</text>
</view> </view>

View File

@ -19,6 +19,8 @@ Page({
alterationFileNames:[], alterationFileNames:[],
minAlterationFileImages:[], minAlterationFileImages:[],
alterationFileImages:[], alterationFileImages:[],
fileUrls:[],
fileUrls2:[],
request:app.globalData.reqUrl request:app.globalData.reqUrl
}, },
@ -68,6 +70,7 @@ Page({
let fileNames = []; let fileNames = [];
let minFileImages = []; let minFileImages = [];
let fileImages = []; let fileImages = [];
let fileUrls = [];
//判断附件 //判断附件
if(res.data.signFiles){ if(res.data.signFiles){
res.data.signFiles.split(',').forEach(element => { res.data.signFiles.split(',').forEach(element => {
@ -78,13 +81,16 @@ Page({
fileImages.push(that.data.request+element); fileImages.push(that.data.request+element);
minFileImages.push(that.data.request+element+'.min.jpg'); minFileImages.push(that.data.request+element+'.min.jpg');
}else{ }else{
fileNames.push(element); let it = element.split('/');
fileNames.push(it[it.length-1]);
fileUrls.push(element);
} }
}); });
} }
let fileNames2 = []; let fileNames2 = [];
let minFileImages2 = []; let minFileImages2 = [];
let fileImages2 = []; let fileImages2 = [];
let fileUrls2 = [];
//判断附件 //判断附件
if(res.data.alterationFiles){ if(res.data.alterationFiles){
res.data.alterationFiles.split(',').forEach(element => { res.data.alterationFiles.split(',').forEach(element => {
@ -95,11 +101,15 @@ Page({
fileImages2.push(that.data.request+element); fileImages2.push(that.data.request+element);
minFileImages2.push(that.data.request+element+'.min.jpg'); minFileImages2.push(that.data.request+element+'.min.jpg');
}else{ }else{
fileNames2.push(element); let it = element.split('/');
fileNames2.push(it[it.length-1]);
fileUrls2.push(element);
} }
}); });
} }
that.setData({ that.setData({
fileUrls,
fileUrls2,
signFileNames:fileNames, signFileNames:fileNames,
minSignFileImages:minFileImages, minSignFileImages:minFileImages,
signFileImages:fileImages, signFileImages:fileImages,
@ -186,49 +196,49 @@ Page({
}) })
}, },
downFile:function(e){ downFile:function(e){
let idx = e.currentTarget.dataset['index']; let idx = e.currentTarget.dataset['index'];
let that = this; let that = this;
wx.downloadFile({ wx.downloadFile({
// 示例 url并非真实存在 // 示例 url并非真实存在
url: that.data.request+that.data.signFileNames[idx], url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.fileUrls[idx],
success: function (res) { success: function (res) {
const filePath = res.tempFilePath const filePath = res.tempFilePath
wx.openDocument({ wx.openDocument({
filePath: filePath, filePath: filePath,
success: function (res) { success: function (res) {
console.log('打开文档成功') console.log('打开文档成功')
}, },
fail:function(res) { fail:function(res) {
console.log(res) console.log(res)
} }
}) })
} }
}) })
//app.toast("暂不支持下载!如需下载请前往后台管理系统!!") //app.toast("暂不支持下载!如需下载请前往后台管理系统!!")
}, },
downFile2:function(e){ downFile2:function(e){
let idx = e.currentTarget.dataset['index']; let idx = e.currentTarget.dataset['index'];
let that = this; let that = this;
wx.downloadFile({ wx.downloadFile({
// 示例 url并非真实存在 // 示例 url并非真实存在
url: that.data.request+that.alterationFileNames[idx], url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.fileUrls2[idx],
success: function (res) { success: function (res) {
const filePath = res.tempFilePath const filePath = res.tempFilePath
wx.openDocument({ wx.openDocument({
filePath: filePath, filePath: filePath,
success: function (res) { success: function (res) {
console.log('打开文档成功') console.log('打开文档成功')
}, },
fail:function(res) { fail:function(res) {
console.log(res) console.log(res)
} }
}) })
} }
}) })
//app.toast("暂不支持下载!如需下载请前往后台管理系统!!") //app.toast("暂不支持下载!如需下载请前往后台管理系统!!")
}, },
returnToPage: function () { returnToPage: function () {
/*关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面*/ /*关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面*/

View File

@ -82,7 +82,7 @@
</view> </view>
<view class="in-img-div" wx:if="{{alterationFileNames.length>0}}"> <view class="in-img-div" wx:if="{{alterationFileNames.length>0}}">
<image src='https://cf.makalu.cc/profile/wechat/icon/pdf.png'></image> <image src='https://cf.makalu.cc/profile/wechat/icon/pdf.png'></image>
<text class="files" style="color:#89a3ed;margin-left:50rpx;" bindtap='downFile' data-index="{{0}}" >下载附件</text> <text class="files" style="color:#89a3ed;margin-left:50rpx;" bindtap='downFile2' data-index="{{0}}" >下载附件</text>
</view> </view>
</van-col> </van-col>
</van-row> </van-row>

View File

@ -127,7 +127,7 @@ Page({
let that = this; let that = this;
wx.downloadFile({ wx.downloadFile({
// 示例 url并非真实存在 // 示例 url并非真实存在
url: that.data.request+that.imageList[idx], url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.imageList[idx],
success: function (res) { success: function (res) {
const filePath = res.tempFilePath const filePath = res.tempFilePath
wx.openDocument({ wx.openDocument({

View File

@ -185,7 +185,7 @@ Page({
let that = this; let that = this;
wx.downloadFile({ wx.downloadFile({
// 示例 url并非真实存在 // 示例 url并非真实存在
url: app.globalData.uploadUrl+'/common/upload/'+that.fileUrls[idx], url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.fileUrls[idx],
success: function (res) { success: function (res) {
const filePath = res.tempFilePath const filePath = res.tempFilePath
wx.openDocument({ wx.openDocument({

View File

@ -11,8 +11,8 @@
</van-row> </van-row>
</view> </view>
</view> </view>
<view class="max_content"> <view class="max_content inspect_overview_max">
<view class="inspect_info"> <view class="inspect_overview">
<view class="module_title module_title_flex"> <view class="module_title module_title_flex">
<view>{{projectName}}</view> <view>{{projectName}}</view>
</view> </view>
@ -52,55 +52,55 @@
</van-collapse-item> </van-collapse-item>
</van-collapse> </van-collapse>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起单位</view> <van-row>
<view class="inspect_info_content color_blue"> <van-col span="6"><text class="color_purple">发起单位</text></van-col>
{{deptName}} <van-col span="18" class="color_blue">{{deptName}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起用户</view> <van-row>
<view class="inspect_info_content"> <van-col span="6"><text class="color_purple">发起用户</text></van-col>
{{nickName}} <van-col span="18">{{nickName}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批事项</view> <van-row>
<view class="inspect_info_content"> <van-col span="6"><text class="color_purple">审批事项</text></van-col>
{{procDefName}} <van-col span="18">{{procDefName}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">申请日期</view> <van-row>
<view class="inspect_info_content"> <van-col span="6"><text class="color_purple">申请日期</text></van-col>
{{infoData.date}} <van-col span="18">{{infoData.date}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list" style="width: 100%;"> <view class="inspect_overview_list" style="width: 100%;">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">请假时间</view> <van-row>
<view class="problem_list_info_con color_blue"> <van-col span="6"><text class="color_purple">请假时间</text></van-col>
{{infoData.beginDate}}<text style="padding: 0 20rpx;">至</text>{{infoData.endDate}} <van-col span="18">{{infoData.beginDate}}<text style="padding: 0 20rpx;">至</text>{{infoData.endDate}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">请假事由</view> <van-row>
<view class="inspect_info_content"> <van-col span="6"><text class="color_purple">请假事由</text></van-col>
{{infoData.remark}} <van-col span="18">{{infoData.remark}}</van-col>
</view> </van-row>
</view> </view>
<view class="safety_inspect_title module_title_flex"> <view class="safety_inspect_title module_title_flex">
<text class="color_orange">共请假{{' '+infoData.day+' '}}天</text> <text class="color_orange">共请假{{' '+infoData.day+' '}}天</text>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批意见</view> <view class="inspect_overview_title" style="padding: 20rpx 0 10rpx;">审批意见</view>
<view class="inspect_info_content"> <view class="inspect_overview_content">
<textarea class="add_textarea" placeholder="请填写审批意见500字内" <textarea class="add_textarea" placeholder="请填写审批意见500字内"
placeholder-style="color:#6777aa;" maxlength="500" bindinput="commentInput"/> placeholder-style="color:#6777aa;" maxlength="500" bindinput="commentInput"/>
</view> </view>
</view> </view>
<view class="inspect_info_list" wx:if="{{backShow}}"> <view class="inspect_overview_list" wx:if="{{backShow}}">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">退回节点</view> <view class="inspect_overview_title" style="padding: 20rpx 0 10rpx;">退回节点</view>
<view class="inspect_info_content"> <view class="inspect_overview_content">
<voucher-select columns="{{targetKeyList}}" placeholder="请选择退回节点" bindchange="onSelectTargetKey"></voucher-select> <voucher-select columns="{{targetKeyList}}" placeholder="请选择退回节点" bindchange="onSelectTargetKey"></voucher-select>
</view> </view>
</view> </view>

View File

@ -521,6 +521,28 @@ Page({
}) })
}, },
downFile:function(e){
let idx = e.currentTarget.dataset['index'];
let that = this;
wx.downloadFile({
// 示例 url并非真实存在
url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.fileUrls[idx],
success: function (res) {
const filePath = res.tempFilePath
wx.openDocument({
filePath: filePath,
success: function (res) {
console.log('打开文档成功')
},
fail:function(res) {
console.log(res)
}
})
}
})
//app.toast("暂不支持下载!如需下载请前往后台管理系统!!")
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */

View File

@ -11,8 +11,8 @@
</van-row> </van-row>
</view> </view>
</view> </view>
<view class="max_content"> <view class="max_content inspect_overview_max">
<view class="inspect_info"> <view class="inspect_overview">
<view class="module_title module_title_flex"> <view class="module_title module_title_flex">
<view>{{projectName}}</view> <view>{{projectName}}</view>
</view> </view>
@ -52,48 +52,50 @@
</van-collapse-item> </van-collapse-item>
</van-collapse> </van-collapse>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起单位</view> <van-row>
<view class="inspect_info_content color_blue"> <van-col span="6"><text class="color_purple">发起单位</text></van-col>
{{deptName}} <van-col span="18" class="color_blue">{{deptName}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起用户</view> <van-row>
<view class="inspect_info_content"> <van-col span="6"><text class="color_purple">发起用户</text></van-col>
{{nickName}} <van-col span="18">{{nickName}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批事项</view> <van-row>
<view class="inspect_info_content"> <van-col span="6"><text class="color_purple">审批事项</text></van-col>
{{procDefName}} <van-col span="18">{{procDefName}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list" style="width: 100%;"> <view class="inspect_overview_list" style="width: 100%;">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批内容</view> <van-row>
<view class="problem_list_info_con color_blue"> <van-col span="6"><text class="color_purple">审批内容</text></van-col>
<view class="files" wx:for="{{fileNames}}" wx:key="index"> <van-col span="18" class="color_blue">
<text data-index="{{index}}" style="word-wrap: break-word;">{{item}}</text> <view class="files" wx:for="{{fileNames}}" wx:key="index">
</view> <text data-index="{{index}}" style="word-wrap: break-word;" bindtap='downFile'>{{item}}</text>
</view> </view>
</van-col>
</van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">申请说明</view> <van-row>
<view class="inspect_info_content"> <van-col span="6"><text class="color_purple">申请说明</text></van-col>
{{infoData.remark}} <van-col span="18">{{infoData.remark}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批意见</view> <view class="inspect_overview_title" style="padding: 20rpx 0 10rpx;">审批意见</view>
<view class="inspect_info_content"> <view class="inspect_overview_content">
<textarea class="add_textarea" placeholder="请填写审批意见500字内" <textarea class="add_textarea" placeholder="请填写审批意见500字内"
placeholder-style="color:#6777aa;" maxlength="500" bindinput="commentInput"/> placeholder-style="color:#6777aa;" maxlength="500" bindinput="commentInput"/>
</view> </view>
</view> </view>
<view class="inspect_info_list" wx:if="{{backShow}}"> <view class="inspect_overview_list" wx:if="{{backShow}}">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">退回节点</view> <view class="inspect_overview_title" style="padding: 20rpx 0 10rpx;">退回节点</view>
<view class="inspect_info_content"> <view class="inspect_overview_content">
<voucher-select columns="{{targetKeyList}}" placeholder="请选择退回节点" bindchange="onSelectTargetKey"></voucher-select> <voucher-select columns="{{targetKeyList}}" placeholder="请选择退回节点" bindchange="onSelectTargetKey"></voucher-select>
</view> </view>
</view> </view>

View File

@ -5,7 +5,7 @@
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view> <view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
</van-col> </van-col>
<van-col span="15"> <van-col span="15">
<view class="header_name">工程审批管理</view> <view class="header_name">审批管理</view>
</van-col> </van-col>
</van-row> </van-row>
</view> </view>
@ -17,7 +17,7 @@
<van-col span="8"> <van-col span="8">
<view class="gd_min" bindtap="goFQLC"> <view class="gd_min" bindtap="goFQLC">
<image src="http://fileimg.makalu.cc/7e859556435e41ecb48664347c4b9c86.png"></image> <image src="http://fileimg.makalu.cc/7e859556435e41ecb48664347c4b9c86.png"></image>
<view>发起流程</view> <view>发起审批</view>
</view> </view>
</van-col> </van-col>
<van-col span="8"> <van-col span="8">
@ -48,7 +48,7 @@
</view> </view>
</view> </view>
<view class="inspect_list_info"> <view class="inspect_list_info">
<view class="inspect_list_info_data_prop color_type">项目名称:{{item.businessKeyName}}</view> <view class="inspect_list_info_data_prop color_purple">项目名称:{{item.businessKeyName}}</view>
<view class="inspect_list_info_data_prop color_blue">审批事项:{{item.procDefName}}</view> <view class="inspect_list_info_data_prop color_blue">审批事项:{{item.procDefName}}</view>
<view class="inspect_list_info_data_prop color_purple">接收时间:{{item.createTime}}</view> <view class="inspect_list_info_data_prop color_purple">接收时间:{{item.createTime}}</view>
<view class="inspect_list_info_data_prop">申请用户:{{item.startUserName}}</view> <view class="inspect_list_info_data_prop">申请用户:{{item.startUserName}}</view>

View File

@ -6,13 +6,13 @@
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view> <view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
</van-col> </van-col>
<van-col span="15"> <van-col span="15">
<view class="header_name">流程申请详情</view> <view class="header_name">审批申请详情</view>
</van-col> </van-col>
</van-row> </van-row>
</view> </view>
</view> </view>
<view class="max_content"> <view class="max_content">
<view class="inspect_info"> <view class="inspect_overview inspect_overview_max">
<view class="module_title module_title_flex"> <view class="module_title module_title_flex">
<view>{{projectName}}</view> <view>{{projectName}}</view>
</view> </view>
@ -52,48 +52,48 @@
</van-collapse-item> </van-collapse-item>
</van-collapse> </van-collapse>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起单位</view> <van-row>
<view class="inspect_info_content color_blue"> <van-col span="6"><text class="color_purple">发起单位</text></van-col>
{{deptName}} <van-col span="18" class="color_blue">{{deptName}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起用户</view> <van-row>
<view class="inspect_info_content"> <van-col span="6"><text class="color_purple">发起用户</text></van-col>
{{nickName}} <van-col span="18">{{nickName}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批事项</view> <van-row>
<view class="inspect_info_content"> <van-col span="6"><text class="color_purple">审批事项</text></van-col>
{{procDefName}} <van-col span="18">{{procDefName}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">申请日期</view> <van-row>
<view class="inspect_info_content"> <van-col span="6"><text class="color_purple">申请日期</text></van-col>
{{infoData.date}} <van-col span="18">{{infoData.date}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list" style="width: 100%;"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">请假时间</view> <van-row>
<view class="problem_list_info_con color_blue"> <van-col span="6"><text class="color_purple">请假时间</text></van-col>
{{infoData.beginDate}}<text style="padding: 0 20rpx;">至</text>{{infoData.endDate}} <van-col span="18">{{infoData.beginDate}}<text style="padding: 0 20rpx;">至</text>{{infoData.endDate}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">请假事由</view> <van-row>
<view class="inspect_info_content"> <van-col span="6"><text class="color_purple">请假事由</text></van-col>
{{infoData.remark}} <van-col span="18">{{infoData.remark}}</van-col>
</view> </van-row>
</view> </view>
<view class="safety_inspect_title module_title_flex"> <view class="safety_inspect_title module_title_flex">
<text class="color_orange">共请假{{' '+infoData.day+' '}}天</text> <text class="color_orange">共请假{{' '+infoData.day+' '}}天</text>
</view> </view>
<view class="inspect_info_list" wx:if="{{stopBtnShow}}"> <view class="inspect_overview_list" wx:if="{{stopBtnShow}}">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">终止原因</view> <view class="inspect_overview_title" style="padding: 20rpx 0 10rpx;">终止原因</view>
<view class="inspect_info_content"> <view class="inspect_overview_content">
<textarea class="add_textarea" placeholder="请填写终止原因500字内" <textarea class="add_textarea" placeholder="请填写终止原因500字内"
placeholder-style="color:#6777aa;" maxlength="500" bindinput="commentblur"/> placeholder-style="color:#6777aa;" maxlength="500" bindinput="commentblur"/>
</view> </view>

View File

@ -474,6 +474,28 @@ Page({
} }
}, },
downFile:function(e){
let idx = e.currentTarget.dataset['index'];
let that = this;
wx.downloadFile({
// 示例 url并非真实存在
url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.fileUrls[idx],
success: function (res) {
const filePath = res.tempFilePath
wx.openDocument({
filePath: filePath,
success: function (res) {
console.log('打开文档成功')
},
fail:function(res) {
console.log(res)
}
})
}
})
//app.toast("暂不支持下载!如需下载请前往后台管理系统!!")
},
//终止原因 //终止原因
commentblur: function (options) { commentblur: function (options) {
this.data.comment = options.detail.value; this.data.comment = options.detail.value;

View File

@ -6,13 +6,13 @@
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view> <view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
</van-col> </van-col>
<van-col span="15"> <van-col span="15">
<view class="header_name">流程申请详情</view> <view class="header_name">审批申请详情</view>
</van-col> </van-col>
</van-row> </van-row>
</view> </view>
</view> </view>
<view class="max_content"> <view class="max_content inspect_overview_max">
<view class="inspect_info"> <view class="inspect_overview">
<view class="module_title module_title_flex"> <view class="module_title module_title_flex">
<view>{{projectName}}</view> <view>{{projectName}}</view>
</view> </view>
@ -52,41 +52,43 @@
</van-collapse-item> </van-collapse-item>
</van-collapse> </van-collapse>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起单位</view> <van-row>
<view class="inspect_info_content color_blue"> <van-col span="6"><text class="color_purple">发起单位</text></van-col>
{{deptName}} <van-col span="18" class="color_blue">{{deptName}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起用户</view> <van-row>
<view class="inspect_info_content"> <van-col span="6"><text class="color_purple">发起用户</text></van-col>
{{nickName}} <van-col span="18">{{nickName}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批事项</view> <van-row>
<view class="inspect_info_content"> <van-col span="6"><text class="color_purple">审批事项</text></van-col>
{{procDefName}} <van-col span="18">{{procDefName}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list" style="width: 100%;"> <view class="inspect_overview_list" style="width: 100%;">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批内容</view> <van-row>
<view class="problem_list_info_con color_blue"> <van-col span="6"><text class="color_purple">审批内容</text></van-col>
<view class="files" wx:for="{{fileNames}}" wx:key="index"> <van-col span="18" class="color_blue">
<text data-index="{{index}}" style="word-wrap: break-word;">{{item}}</text> <view class="files" wx:for="{{fileNames}}" wx:key="index">
</view> <text data-index="{{index}}" style="word-wrap: break-word;" bindtap='downFile'>{{item}}</text>
</view> </view>
</van-col>
</van-row>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_overview_list">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">申请说明</view> <van-row>
<view class="inspect_info_content"> <van-col span="6"><text class="color_purple">申请说明</text></van-col>
{{infoData.remark}} <van-col span="18">{{infoData.remark}}</van-col>
</view> </van-row>
</view> </view>
<view class="inspect_info_list" wx:if="{{stopBtnShow}}"> <view class="inspect_overview_list" wx:if="{{stopBtnShow}}">
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">终止原因</view> <view class="inspect_overview_title" style="padding: 20rpx 0 10rpx;">终止原因</view>
<view class="inspect_info_content"> <view class="inspect_overview_content">
<textarea class="add_textarea" placeholder="请填写终止原因500字内" <textarea class="add_textarea" placeholder="请填写终止原因500字内"
placeholder-style="color:#6777aa;" maxlength="500" bindinput="commentblur"/> placeholder-style="color:#6777aa;" maxlength="500" bindinput="commentblur"/>
</view> </view>

View File

@ -6,7 +6,7 @@
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view> <view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
</van-col> </van-col>
<van-col span="15"> <van-col span="15">
<view class="header_name">修改流程申请</view> <view class="header_name">修改审批申请</view>
</van-col> </van-col>
</van-row> </van-row>
</view> </view>

View File

@ -199,7 +199,9 @@ Page({
that.setData({ that.setData({
fileNames, fileNames,
fileUrls, fileUrls,
fileUrlArray fileUrlArray,
remark:res.data.remark,
filesData:fileUrlArray
}) })
}else{ }else{
app.toast(res.msg); app.toast(res.msg);

View File

@ -6,7 +6,7 @@
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view> <view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
</van-col> </van-col>
<van-col span="15"> <van-col span="15">
<view class="header_name">修改流程申请</view> <view class="header_name">修改审批申请</view>
</van-col> </van-col>
</van-row> </van-row>
</view> </view>
@ -74,10 +74,8 @@
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批内容 <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批内容
<text style="font-size: small;">[可上传PDF/图片/WORD/PPT/XLS格式]</text> <text style="font-size: small;">[可上传PDF/图片/WORD/PPT/XLS格式]</text>
</view> </view>
<view class="problem_list_info_con color_blue"> <view class="inspect_info_content color_blue">
<view class="problem_list_info_con"> <file-uploader-all bindfiles="fileUpload" limit="{{limit}}" fileUrlArray="{{fileUrlArray}}"></file-uploader-all>
<file-uploader-all bindfiles="fileUpload" limit="{{limit}}" fileUrlArray="{{fileUrlArray}}"></file-uploader-all>
</view>
</view> </view>
</view> </view>
<view class="inspect_info_list"> <view class="inspect_info_list">

View File

@ -5,7 +5,7 @@
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view> <view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
</van-col> </van-col>
<van-col span="15"> <van-col span="15">
<view class="header_name">流程办理完成</view> <view class="header_name">审批办理完成</view>
</van-col> </van-col>
</van-row> </van-row>
</view> </view>

View File

@ -6,7 +6,7 @@
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view> <view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
</van-col> </van-col>
<van-col span="15"> <van-col span="15">
<view class="header_name">发起流程申请</view> <view class="header_name">发起审批申请</view>
</van-col> </van-col>
</van-row> </van-row>
</view> </view>

View File

@ -6,7 +6,7 @@
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view> <view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
</van-col> </van-col>
<van-col span="15"> <van-col span="15">
<view class="header_name">发起流程申请</view> <view class="header_name">发起审批申请</view>
</van-col> </van-col>
</van-row> </van-row>
</view> </view>
@ -47,7 +47,7 @@
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批内容 <view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批内容
<text style="font-size: small;">[可上传PDF/图片/WORD/PPT/XLS格式]</text> <text style="font-size: small;">[可上传PDF/图片/WORD/PPT/XLS格式]</text>
</view> </view>
<view class="problem_list_info_con"> <view class="inspect_info_content">
<file-uploader-all bindfiles="fileUpload" limit="{{limit}}"></file-uploader-all> <file-uploader-all bindfiles="fileUpload" limit="{{limit}}"></file-uploader-all>
</view> </view>
</view> </view>

View File

@ -5,7 +5,7 @@
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view> <view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
</van-col> </van-col>
<van-col span="15"> <van-col span="15">
<view class="header_name">发起流程申请</view> <view class="header_name">发起审批申请</view>
</van-col> </van-col>
</van-row> </van-row>
</view> </view>

View File

@ -5,7 +5,7 @@
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view> <view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
</van-col> </van-col>
<van-col span="15"> <van-col span="15">
<view class="header_name">我发起的流程</view> <view class="header_name">我发起的审批</view>
</van-col> </van-col>
</van-row> </van-row>
</view> </view>