提交代码
parent
f3c3daa5e6
commit
ad09ede70a
|
@ -14,6 +14,7 @@ Page({
|
|||
detectionImageList:[],
|
||||
minDetectionFileImages:[],
|
||||
detectionFiles:[],
|
||||
fileUrls:[],
|
||||
request:app.globalData.reqUrl
|
||||
},
|
||||
|
||||
|
@ -55,6 +56,7 @@ Page({
|
|||
let imageUrls = [];
|
||||
let minImageUrls = [];
|
||||
let fileUrls = [];
|
||||
let fileNames = [];
|
||||
//判断附件
|
||||
if(res.data.detectionFile){
|
||||
res.data.detectionFile.split(',').forEach(element => {
|
||||
|
@ -65,6 +67,8 @@ Page({
|
|||
imageUrls.push(that.data.request+element);
|
||||
minImageUrls.push(that.data.request+element+'.min.jpg');
|
||||
}else{
|
||||
let it = element.split('/');
|
||||
fileNames.push(it[it.length-1]);
|
||||
fileUrls.push(element);
|
||||
}
|
||||
});
|
||||
|
@ -73,7 +77,8 @@ Page({
|
|||
infoData:res.data,
|
||||
detectionImageList:imageUrls,
|
||||
minDetectionFileImages:minImageUrls,
|
||||
detectionFiles:fileUrls,
|
||||
detectionFiles:fileNames,
|
||||
fileUrls,
|
||||
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 () {
|
||||
/*关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面*/
|
||||
wx.redirectTo({
|
||||
|
|
|
@ -102,11 +102,10 @@ Page({
|
|||
},
|
||||
|
||||
downFile:function(e){
|
||||
let idx = e.currentTarget.dataset['index'];
|
||||
let that = this;
|
||||
wx.downloadFile({
|
||||
// 示例 url,并非真实存在
|
||||
url: that.data.request+that.imageList[idx],
|
||||
url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.infoData.insuranceFile,
|
||||
success: function (res) {
|
||||
const filePath = res.tempFilePath
|
||||
wx.openDocument({
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">保险合同</text></van-col>
|
||||
<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>
|
||||
<text class="files" style="color:#89a3ed;margin-left:50rpx;" bindtap='downFile' data-index="{{0}}" >下载附件</text>
|
||||
</view>
|
||||
|
|
|
@ -19,6 +19,8 @@ Page({
|
|||
alterationFileNames:[],
|
||||
minAlterationFileImages:[],
|
||||
alterationFileImages:[],
|
||||
fileUrls:[],
|
||||
fileUrls2:[],
|
||||
request:app.globalData.reqUrl
|
||||
},
|
||||
|
||||
|
@ -68,6 +70,7 @@ Page({
|
|||
let fileNames = [];
|
||||
let minFileImages = [];
|
||||
let fileImages = [];
|
||||
let fileUrls = [];
|
||||
//判断附件
|
||||
if(res.data.signFiles){
|
||||
res.data.signFiles.split(',').forEach(element => {
|
||||
|
@ -78,13 +81,16 @@ Page({
|
|||
fileImages.push(that.data.request+element);
|
||||
minFileImages.push(that.data.request+element+'.min.jpg');
|
||||
}else{
|
||||
fileNames.push(element);
|
||||
let it = element.split('/');
|
||||
fileNames.push(it[it.length-1]);
|
||||
fileUrls.push(element);
|
||||
}
|
||||
});
|
||||
}
|
||||
let fileNames2 = [];
|
||||
let minFileImages2 = [];
|
||||
let fileImages2 = [];
|
||||
let fileUrls2 = [];
|
||||
//判断附件
|
||||
if(res.data.alterationFiles){
|
||||
res.data.alterationFiles.split(',').forEach(element => {
|
||||
|
@ -95,11 +101,15 @@ Page({
|
|||
fileImages2.push(that.data.request+element);
|
||||
minFileImages2.push(that.data.request+element+'.min.jpg');
|
||||
}else{
|
||||
fileNames2.push(element);
|
||||
let it = element.split('/');
|
||||
fileNames2.push(it[it.length-1]);
|
||||
fileUrls2.push(element);
|
||||
}
|
||||
});
|
||||
}
|
||||
that.setData({
|
||||
fileUrls,
|
||||
fileUrls2,
|
||||
signFileNames:fileNames,
|
||||
minSignFileImages:minFileImages,
|
||||
signFileImages:fileImages,
|
||||
|
@ -191,7 +201,7 @@ Page({
|
|||
let that = this;
|
||||
wx.downloadFile({
|
||||
// 示例 url,并非真实存在
|
||||
url: that.data.request+that.data.signFileNames[idx],
|
||||
url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.fileUrls[idx],
|
||||
success: function (res) {
|
||||
const filePath = res.tempFilePath
|
||||
wx.openDocument({
|
||||
|
@ -213,7 +223,7 @@ Page({
|
|||
let that = this;
|
||||
wx.downloadFile({
|
||||
// 示例 url,并非真实存在
|
||||
url: that.data.request+that.alterationFileNames[idx],
|
||||
url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.fileUrls2[idx],
|
||||
success: function (res) {
|
||||
const filePath = res.tempFilePath
|
||||
wx.openDocument({
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
</view>
|
||||
<view class="in-img-div" wx:if="{{alterationFileNames.length>0}}">
|
||||
<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>
|
||||
</van-col>
|
||||
</van-row>
|
||||
|
|
|
@ -127,7 +127,7 @@ Page({
|
|||
let that = this;
|
||||
wx.downloadFile({
|
||||
// 示例 url,并非真实存在
|
||||
url: that.data.request+that.imageList[idx],
|
||||
url: app.globalData.uploadUrl+'/common/download/resource?resource='+that.data.imageList[idx],
|
||||
success: function (res) {
|
||||
const filePath = res.tempFilePath
|
||||
wx.openDocument({
|
||||
|
|
|
@ -185,7 +185,7 @@ Page({
|
|||
let that = this;
|
||||
wx.downloadFile({
|
||||
// 示例 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) {
|
||||
const filePath = res.tempFilePath
|
||||
wx.openDocument({
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
</van-row>
|
||||
</view>
|
||||
</view>
|
||||
<view class="max_content">
|
||||
<view class="inspect_info">
|
||||
<view class="max_content inspect_overview_max">
|
||||
<view class="inspect_overview">
|
||||
<view class="module_title module_title_flex">
|
||||
<view>{{projectName}}</view>
|
||||
</view>
|
||||
|
@ -52,55 +52,55 @@
|
|||
</van-collapse-item>
|
||||
</van-collapse>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起单位</view>
|
||||
<view class="inspect_info_content color_blue">
|
||||
{{deptName}}
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">发起单位</text></van-col>
|
||||
<van-col span="18" class="color_blue">{{deptName}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">发起用户</text></van-col>
|
||||
<van-col span="18">{{nickName}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起用户</view>
|
||||
<view class="inspect_info_content">
|
||||
{{nickName}}
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">审批事项</text></van-col>
|
||||
<van-col span="18">{{procDefName}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">申请日期</text></van-col>
|
||||
<van-col span="18">{{infoData.date}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批事项</view>
|
||||
<view class="inspect_info_content">
|
||||
{{procDefName}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">申请日期</view>
|
||||
<view class="inspect_info_content">
|
||||
{{infoData.date}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list" style="width: 100%;">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">请假时间</view>
|
||||
<view class="problem_list_info_con color_blue">
|
||||
{{infoData.beginDate}}<text style="padding: 0 20rpx;">至</text>{{infoData.endDate}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">请假事由</view>
|
||||
<view class="inspect_info_content">
|
||||
{{infoData.remark}}
|
||||
<view class="inspect_overview_list" style="width: 100%;">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">请假时间</text></van-col>
|
||||
<van-col span="18">{{infoData.beginDate}}<text style="padding: 0 20rpx;">至</text>{{infoData.endDate}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">请假事由</text></van-col>
|
||||
<van-col span="18">{{infoData.remark}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="safety_inspect_title module_title_flex">
|
||||
<text class="color_orange">共请假{{' '+infoData.day+' '}}天</text>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批意见</view>
|
||||
<view class="inspect_info_content">
|
||||
<view class="inspect_overview_list">
|
||||
<view class="inspect_overview_title" style="padding: 20rpx 0 10rpx;">审批意见</view>
|
||||
<view class="inspect_overview_content">
|
||||
<textarea class="add_textarea" placeholder="请填写审批意见(500字内)"
|
||||
placeholder-style="color:#6777aa;" maxlength="500" bindinput="commentInput"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list" wx:if="{{backShow}}">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">退回节点</view>
|
||||
<view class="inspect_info_content">
|
||||
<view class="inspect_overview_list" wx:if="{{backShow}}">
|
||||
<view class="inspect_overview_title" style="padding: 20rpx 0 10rpx;">退回节点</view>
|
||||
<view class="inspect_overview_content">
|
||||
<voucher-select columns="{{targetKeyList}}" placeholder="请选择退回节点" bindchange="onSelectTargetKey"></voucher-select>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -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("暂不支持下载!如需下载请前往后台管理系统!!")
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
|
|
|
@ -11,8 +11,8 @@
|
|||
</van-row>
|
||||
</view>
|
||||
</view>
|
||||
<view class="max_content">
|
||||
<view class="inspect_info">
|
||||
<view class="max_content inspect_overview_max">
|
||||
<view class="inspect_overview">
|
||||
<view class="module_title module_title_flex">
|
||||
<view>{{projectName}}</view>
|
||||
</view>
|
||||
|
@ -52,48 +52,50 @@
|
|||
</van-collapse-item>
|
||||
</van-collapse>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起单位</view>
|
||||
<view class="inspect_info_content color_blue">
|
||||
{{deptName}}
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">发起单位</text></van-col>
|
||||
<van-col span="18" class="color_blue">{{deptName}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">发起用户</text></van-col>
|
||||
<van-col span="18">{{nickName}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起用户</view>
|
||||
<view class="inspect_info_content">
|
||||
{{nickName}}
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">审批事项</text></van-col>
|
||||
<van-col span="18">{{procDefName}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批事项</view>
|
||||
<view class="inspect_info_content">
|
||||
{{procDefName}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list" style="width: 100%;">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批内容</view>
|
||||
<view class="problem_list_info_con color_blue">
|
||||
<view class="inspect_overview_list" style="width: 100%;">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">审批内容</text></van-col>
|
||||
<van-col span="18" class="color_blue">
|
||||
<view class="files" wx:for="{{fileNames}}" wx:key="index">
|
||||
<text data-index="{{index}}" style="word-wrap: break-word;">{{item}}</text>
|
||||
<text data-index="{{index}}" style="word-wrap: break-word;" bindtap='downFile'>{{item}}</text>
|
||||
</view>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">申请说明</text></van-col>
|
||||
<van-col span="18">{{infoData.remark}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">申请说明</view>
|
||||
<view class="inspect_info_content">
|
||||
{{infoData.remark}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批意见</view>
|
||||
<view class="inspect_info_content">
|
||||
<view class="inspect_overview_list">
|
||||
<view class="inspect_overview_title" style="padding: 20rpx 0 10rpx;">审批意见</view>
|
||||
<view class="inspect_overview_content">
|
||||
<textarea class="add_textarea" placeholder="请填写审批意见(500字内)"
|
||||
placeholder-style="color:#6777aa;" maxlength="500" bindinput="commentInput"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list" wx:if="{{backShow}}">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">退回节点</view>
|
||||
<view class="inspect_info_content">
|
||||
<view class="inspect_overview_list" wx:if="{{backShow}}">
|
||||
<view class="inspect_overview_title" style="padding: 20rpx 0 10rpx;">退回节点</view>
|
||||
<view class="inspect_overview_content">
|
||||
<voucher-select columns="{{targetKeyList}}" placeholder="请选择退回节点" bindchange="onSelectTargetKey"></voucher-select>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
|
||||
</van-col>
|
||||
<van-col span="15">
|
||||
<view class="header_name">工程审批管理</view>
|
||||
<view class="header_name">审批管理</view>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
|
@ -17,7 +17,7 @@
|
|||
<van-col span="8">
|
||||
<view class="gd_min" bindtap="goFQLC">
|
||||
<image src="http://fileimg.makalu.cc/7e859556435e41ecb48664347c4b9c86.png"></image>
|
||||
<view>发起流程</view>
|
||||
<view>发起审批</view>
|
||||
</view>
|
||||
</van-col>
|
||||
<van-col span="8">
|
||||
|
@ -48,7 +48,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<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_purple">接收时间:{{item.createTime}}</view>
|
||||
<view class="inspect_list_info_data_prop">申请用户:{{item.startUserName}}</view>
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
|
||||
</van-col>
|
||||
<van-col span="15">
|
||||
<view class="header_name">流程申请详情</view>
|
||||
<view class="header_name">审批申请详情</view>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
</view>
|
||||
<view class="max_content">
|
||||
<view class="inspect_info">
|
||||
<view class="inspect_overview inspect_overview_max">
|
||||
<view class="module_title module_title_flex">
|
||||
<view>{{projectName}}</view>
|
||||
</view>
|
||||
|
@ -52,48 +52,48 @@
|
|||
</van-collapse-item>
|
||||
</van-collapse>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起单位</view>
|
||||
<view class="inspect_info_content color_blue">
|
||||
{{deptName}}
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">发起单位</text></van-col>
|
||||
<van-col span="18" class="color_blue">{{deptName}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">发起用户</text></van-col>
|
||||
<van-col span="18">{{nickName}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起用户</view>
|
||||
<view class="inspect_info_content">
|
||||
{{nickName}}
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">审批事项</text></van-col>
|
||||
<van-col span="18">{{procDefName}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">申请日期</text></van-col>
|
||||
<van-col span="18">{{infoData.date}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批事项</view>
|
||||
<view class="inspect_info_content">
|
||||
{{procDefName}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">申请日期</view>
|
||||
<view class="inspect_info_content">
|
||||
{{infoData.date}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list" style="width: 100%;">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">请假时间</view>
|
||||
<view class="problem_list_info_con color_blue">
|
||||
{{infoData.beginDate}}<text style="padding: 0 20rpx;">至</text>{{infoData.endDate}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">请假事由</view>
|
||||
<view class="inspect_info_content">
|
||||
{{infoData.remark}}
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">请假时间</text></van-col>
|
||||
<van-col span="18">{{infoData.beginDate}}<text style="padding: 0 20rpx;">至</text>{{infoData.endDate}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">请假事由</text></van-col>
|
||||
<van-col span="18">{{infoData.remark}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="safety_inspect_title module_title_flex">
|
||||
<text class="color_orange">共请假{{' '+infoData.day+' '}}天</text>
|
||||
</view>
|
||||
<view class="inspect_info_list" wx:if="{{stopBtnShow}}">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">终止原因</view>
|
||||
<view class="inspect_info_content">
|
||||
<view class="inspect_overview_list" wx:if="{{stopBtnShow}}">
|
||||
<view class="inspect_overview_title" style="padding: 20rpx 0 10rpx;">终止原因</view>
|
||||
<view class="inspect_overview_content">
|
||||
<textarea class="add_textarea" placeholder="请填写终止原因(500字内)"
|
||||
placeholder-style="color:#6777aa;" maxlength="500" bindinput="commentblur"/>
|
||||
</view>
|
||||
|
|
|
@ -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) {
|
||||
this.data.comment = options.detail.value;
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
|
||||
</van-col>
|
||||
<van-col span="15">
|
||||
<view class="header_name">流程申请详情</view>
|
||||
<view class="header_name">审批申请详情</view>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
</view>
|
||||
<view class="max_content">
|
||||
<view class="inspect_info">
|
||||
<view class="max_content inspect_overview_max">
|
||||
<view class="inspect_overview">
|
||||
<view class="module_title module_title_flex">
|
||||
<view>{{projectName}}</view>
|
||||
</view>
|
||||
|
@ -52,41 +52,43 @@
|
|||
</van-collapse-item>
|
||||
</van-collapse>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起单位</view>
|
||||
<view class="inspect_info_content color_blue">
|
||||
{{deptName}}
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">发起单位</text></van-col>
|
||||
<van-col span="18" class="color_blue">{{deptName}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">发起用户</text></van-col>
|
||||
<van-col span="18">{{nickName}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">发起用户</view>
|
||||
<view class="inspect_info_content">
|
||||
{{nickName}}
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">审批事项</text></van-col>
|
||||
<van-col span="18">{{procDefName}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批事项</view>
|
||||
<view class="inspect_info_content">
|
||||
{{procDefName}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list" style="width: 100%;">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批内容</view>
|
||||
<view class="problem_list_info_con color_blue">
|
||||
<view class="inspect_overview_list" style="width: 100%;">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">审批内容</text></van-col>
|
||||
<van-col span="18" class="color_blue">
|
||||
<view class="files" wx:for="{{fileNames}}" wx:key="index">
|
||||
<text data-index="{{index}}" style="word-wrap: break-word;">{{item}}</text>
|
||||
<text data-index="{{index}}" style="word-wrap: break-word;" bindtap='downFile'>{{item}}</text>
|
||||
</view>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_overview_list">
|
||||
<van-row>
|
||||
<van-col span="6"><text class="color_purple">申请说明</text></van-col>
|
||||
<van-col span="18">{{infoData.remark}}</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">申请说明</view>
|
||||
<view class="inspect_info_content">
|
||||
{{infoData.remark}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list" wx:if="{{stopBtnShow}}">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">终止原因</view>
|
||||
<view class="inspect_info_content">
|
||||
<view class="inspect_overview_list" wx:if="{{stopBtnShow}}">
|
||||
<view class="inspect_overview_title" style="padding: 20rpx 0 10rpx;">终止原因</view>
|
||||
<view class="inspect_overview_content">
|
||||
<textarea class="add_textarea" placeholder="请填写终止原因(500字内)"
|
||||
placeholder-style="color:#6777aa;" maxlength="500" bindinput="commentblur"/>
|
||||
</view>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
|
||||
</van-col>
|
||||
<van-col span="15">
|
||||
<view class="header_name">修改流程申请</view>
|
||||
<view class="header_name">修改审批申请</view>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
|
|
|
@ -199,7 +199,9 @@ Page({
|
|||
that.setData({
|
||||
fileNames,
|
||||
fileUrls,
|
||||
fileUrlArray
|
||||
fileUrlArray,
|
||||
remark:res.data.remark,
|
||||
filesData:fileUrlArray
|
||||
})
|
||||
}else{
|
||||
app.toast(res.msg);
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
|
||||
</van-col>
|
||||
<van-col span="15">
|
||||
<view class="header_name">修改流程申请</view>
|
||||
<view class="header_name">修改审批申请</view>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
|
@ -74,12 +74,10 @@
|
|||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批内容
|
||||
<text style="font-size: small;">[可上传PDF/图片/WORD/PPT/XLS格式]</text>
|
||||
</view>
|
||||
<view class="problem_list_info_con color_blue">
|
||||
<view class="problem_list_info_con">
|
||||
<view class="inspect_info_content color_blue">
|
||||
<file-uploader-all bindfiles="fileUpload" limit="{{limit}}" fileUrlArray="{{fileUrlArray}}"></file-uploader-all>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="inspect_info_list">
|
||||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">申请说明</view>
|
||||
<view class="inspect_info_content">
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
|
||||
</van-col>
|
||||
<van-col span="15">
|
||||
<view class="header_name">流程办理完成</view>
|
||||
<view class="header_name">审批办理完成</view>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
|
||||
</van-col>
|
||||
<van-col span="15">
|
||||
<view class="header_name">发起流程申请</view>
|
||||
<view class="header_name">发起审批申请</view>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
|
||||
</van-col>
|
||||
<van-col span="15">
|
||||
<view class="header_name">发起流程申请</view>
|
||||
<view class="header_name">发起审批申请</view>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
|
@ -47,7 +47,7 @@
|
|||
<view class="inspect_info_title" style="padding: 20rpx 0 10rpx;">审批内容
|
||||
<text style="font-size: small;">[可上传PDF/图片/WORD/PPT/XLS格式]</text>
|
||||
</view>
|
||||
<view class="problem_list_info_con">
|
||||
<view class="inspect_info_content">
|
||||
<file-uploader-all bindfiles="fileUpload" limit="{{limit}}"></file-uploader-all>
|
||||
</view>
|
||||
</view>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
|
||||
</van-col>
|
||||
<van-col span="15">
|
||||
<view class="header_name">发起流程申请</view>
|
||||
<view class="header_name">发起审批申请</view>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<view class="header_img" bindtap="returnToPage"><image src="/images/left.png"></image></view>
|
||||
</van-col>
|
||||
<van-col span="15">
|
||||
<view class="header_name">我发起的流程</view>
|
||||
<view class="header_name">我发起的审批</view>
|
||||
</van-col>
|
||||
</van-row>
|
||||
</view>
|
||||
|
|
Loading…
Reference in New Issue