|
@@ -125,7 +125,7 @@
|
|
|
<block v-if="checkPermi(['system:application:cx'])&&stepval!=1&&stepval!=10">
|
|
|
<view class="fbtns bga" v-if="userId==datainfo.aUserId&&auditSchedule==3" @click="getCxFn">撤销</view>
|
|
|
<view class="fbtns bga" v-if="userId==datainfo.bUserId&&auditSchedule==4" @click="getCxFn">撤销</view>
|
|
|
- <view class="fbtns" :class="auditSchedule==5?'bga':'bgb'" v-if="(datainfo.auditType!=1||auditSchedule<6&&auditSchedule>4)" @click="getCxFn">撤销</view>
|
|
|
+ <view class="fbtns" :class="auditSchedule==5?'bga':'bgb'" v-if="(datainfo.auditType!=1||auditSchedule<7&&auditSchedule>4)" @click="getCxFn">撤销</view>
|
|
|
</block>
|
|
|
<!-- 回收站,暂存,归档不能撤 项目进度是申报提交-->
|
|
|
<!-- 撤销,管理员在 a待审核 可以撤,
|
|
@@ -188,7 +188,8 @@
|
|
|
</block>
|
|
|
<!-- 更多操作 -->
|
|
|
<block v-if="mtype=='fxmore'">
|
|
|
- <view @click="getShFn('fxbmsh')" v-if="auditSchedule==6&&checkPermi(['system:application:sh'])">审核</view>
|
|
|
+ <!-- auditSchedule==6&& -->
|
|
|
+ <view @click="getShFn('fxbmsh')" v-if="checkPermi(['system:application:sh'])">审核</view>
|
|
|
<view @click="getIssureFn(13)">出具材料合规表</view>
|
|
|
<!-- <view @click="getfjEdit('clhgb')">上传附件</view> -->
|
|
|
<view @click="getfjEdit('clhgb')">上传材料合规表</view>
|
|
@@ -248,6 +249,7 @@
|
|
|
import config from '@/config'
|
|
|
const baseUrl = config.baseUrl
|
|
|
const baseName = config.baseName
|
|
|
+ import { getToken } from '@/utils/auth'
|
|
|
import popUp from "@/work/components/popup/popup.vue"
|
|
|
import aqyxx from "@/work/components/business/aqyxx.vue"
|
|
|
import bfrxx from "@/work/components/business/bfrxx.vue"
|
|
@@ -373,6 +375,14 @@
|
|
|
mval:-1,
|
|
|
mite:"",
|
|
|
shtg:'',
|
|
|
+ textType:[
|
|
|
+ {tit:'文字',val:'w',children:['doc','docx','wps']},
|
|
|
+ {tit:'表格',val:'s',children:['xls','xlsx']},
|
|
|
+ {tit:'演示',val:'p',children:['ppt','pptx']},
|
|
|
+ {tit:'PDF',val:'f',children:['pdf','ofd']},
|
|
|
+ {tit:'智能文档',val:'o',children:['otl']},
|
|
|
+ {tit:'多维表格',val:'d',children:['dbt']},
|
|
|
+ ]
|
|
|
}
|
|
|
},
|
|
|
onUnload() {
|
|
@@ -386,12 +396,12 @@
|
|
|
this.init()
|
|
|
this.getDetail();
|
|
|
this.getScheduleList();
|
|
|
- // if(checkPermi(['system:hyperlink:list'])){
|
|
|
- // this.getHyperlinkList();//外部链接stepval==5
|
|
|
- // }
|
|
|
- // if(checkPermi(['system:user:noPageList'])){
|
|
|
- // this.getUsernoPageList();//获取用户列表stepval==2||stepval==6
|
|
|
- // }
|
|
|
+ if(checkPermi(['system:hyperlink:list'])){
|
|
|
+ this.getHyperlinkList();//外部链接stepval==5
|
|
|
+ }
|
|
|
+ if(checkPermi(['system:user:noPageList'])){
|
|
|
+ this.getUsernoPageList();//获取用户列表stepval==2||stepval==6
|
|
|
+ }
|
|
|
this.getCommentsList()//审核意见
|
|
|
},
|
|
|
mounted() {
|
|
@@ -404,7 +414,6 @@
|
|
|
setTimeout(function(){
|
|
|
that.getHeightFn()
|
|
|
},200)
|
|
|
-
|
|
|
},
|
|
|
onPageScroll(e) {
|
|
|
var scrollTop = Number(e.scrollTop);
|
|
@@ -650,6 +659,30 @@
|
|
|
// 出具
|
|
|
getIssureFn(type){
|
|
|
var that=this;
|
|
|
+ var data={
|
|
|
+ fileId: "ca2aa7e3743746e5a52b74aaa5f105e0",
|
|
|
+ fileName: "安徽中新云计算有限公司-担保意向函.docx",
|
|
|
+ path: "/profile/mb/temporarily/RZDB202405081023037034293/安徽中新云计算有限公司-担保意向函.docx",
|
|
|
+ }
|
|
|
+ // var data=res.data;
|
|
|
+ var path=data.path;
|
|
|
+ var name=data.fileName;
|
|
|
+ var fileName = name.replace(/.*(\/|\\)/, ""); // 获得文件名
|
|
|
+ var fileSuffix = (/[.]/.exec(fileName)) ? /[^.]+$/.exec(fileName.toLowerCase()) : ''; // 获得文件后缀
|
|
|
+ var texthz=fileSuffix[0];
|
|
|
+ var type=''
|
|
|
+ // 在线编辑
|
|
|
+ // 获取后缀
|
|
|
+ var textType=that.textType;
|
|
|
+ Object.keys(textType).some((key) => {
|
|
|
+ if (textType[key].children.indexOf(texthz)!=-1) {
|
|
|
+ type=`${textType[key].val}`
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ data.type=type
|
|
|
+ that.$tab.navigateTo('/pages/common/webview/weboffice?data='+encodeURIComponent(JSON.stringify(data)))
|
|
|
+ return
|
|
|
var params={
|
|
|
type:type,
|
|
|
loanApplicationId:this.id,
|
|
@@ -659,47 +692,72 @@
|
|
|
var data=res.data;
|
|
|
var path=data.path;
|
|
|
var name=data.fileName;
|
|
|
- this.getDown(path)
|
|
|
- // that.getDownloader(path,name)
|
|
|
+ var fileName = name.replace(/.*(\/|\\)/, ""); // 获得文件名
|
|
|
+ var fileSuffix = (/[.]/.exec(fileName)) ? /[^.]+$/.exec(fileName.toLowerCase()) : ''; // 获得文件后缀
|
|
|
+ var texthz=fileSuffix[0];
|
|
|
+ var type=''
|
|
|
+ // 在线编辑
|
|
|
+ // 获取后缀
|
|
|
+ var textType=that.textType;
|
|
|
+ Object.keys(textType).some((key) => {
|
|
|
+ if (textType[key].children.indexOf(texthz)!=-1) {
|
|
|
+ type=`${textType[key].val}`
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ data.type=type
|
|
|
+ that.$tab.navigateTo('/pages/common/webview/weboffice?data='+encodeURIComponent(JSON.stringify(data)))
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
getDownloader(path,name){
|
|
|
- console.log(url)
|
|
|
- var that=this;
|
|
|
- // var url='http://192.168.101.245:8056/profile/upload/RZDB202405101456481709599/上一年度财务报表_20240510151142A015.xlsx'
|
|
|
+ console.log(path,name)
|
|
|
// #ifdef APP-PLUS
|
|
|
- var url = baseUrl + path;
|
|
|
- let dtask = plus.downloader.createDownload(url, {
|
|
|
- filename: 'file://storage/emulated/0/'+baseName+'/' + name
|
|
|
- }, (d, status) => {
|
|
|
- //d为下载的文件对象
|
|
|
- if (status == 200) {
|
|
|
- uni.hideLoading();
|
|
|
- uni.showToast({
|
|
|
- icon: 'none',
|
|
|
- mask: true,
|
|
|
- title: '已保存到文件夹:/'+baseName+'/'+ name, //保存路径
|
|
|
- duration: 3000,
|
|
|
- });
|
|
|
-
|
|
|
- //下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
|
|
|
- let fileSaveUrl = plus.io.convertLocalFileSystemURL(d.filename);
|
|
|
- setTimeout(() => {
|
|
|
- plus.runtime.openFile(d.filename); //选择软件打开文件
|
|
|
- }, 1500)
|
|
|
- } else {
|
|
|
- //下载失败
|
|
|
- uni.hideLoading();
|
|
|
- plus.downloader.clear(); //清除下载任务
|
|
|
+ plus.android.requestPermissions([
|
|
|
+ 'android.permission.WRITE_EXTERNAL_STORAGE',
|
|
|
+ 'android.permission.READ_EXTERNAL_STORAGE',
|
|
|
+ 'android.permission.INTERNET',
|
|
|
+ 'android.permission.ACCESS_WIFI_STATE'
|
|
|
+ ], error => {
|
|
|
+ console.log(error,1)
|
|
|
+ var url = baseUrl + path;
|
|
|
+ let dtask = plus.downloader.createDownload(url, {
|
|
|
+ filename: 'file://storage/emulated/0/'+baseName+'/' + name
|
|
|
+ }, (d, status) => {
|
|
|
+ //d为下载的文件对象
|
|
|
+ if (status == 200) {
|
|
|
+ uni.hideLoading();
|
|
|
+ uni.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ mask: true,
|
|
|
+ title: '已保存到文件夹:/'+baseName+'/'+ name, //保存路径
|
|
|
+ duration: 3000,
|
|
|
+ });
|
|
|
+
|
|
|
+ //下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
|
|
|
+ let fileSaveUrl = plus.io.convertLocalFileSystemURL(d.filename);
|
|
|
+ setTimeout(() => {
|
|
|
+ plus.runtime.openFile(d.filename); //选择软件打开文件
|
|
|
+ }, 1500)
|
|
|
+ } else {
|
|
|
+ //下载失败
|
|
|
+ uni.hideLoading();
|
|
|
+ plus.downloader.clear(); //清除下载任务
|
|
|
+ uni.showToast({
|
|
|
+ icon: 'none',
|
|
|
+ mask: true,
|
|
|
+ title: '下载失败,请稍后重试',
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ dtask.start();
|
|
|
+ }, success=> {
|
|
|
+ console.log(error,2)
|
|
|
uni.showToast({
|
|
|
+ title: '无法获取权限,文件下载将出错!',
|
|
|
icon: 'none',
|
|
|
- mask: true,
|
|
|
- title: '下载失败,请稍后重试',
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
- dtask.start();
|
|
|
+ })
|
|
|
+ })
|
|
|
// #endif
|
|
|
},
|
|
|
getClose(){
|
|
@@ -799,6 +857,7 @@
|
|
|
confirmText: '确认',
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
+ that.mtype=''
|
|
|
var params={
|
|
|
loanApplicationId:that.id,
|
|
|
auditSchedule:that.auditSchedule,
|
|
@@ -940,14 +999,14 @@
|
|
|
this.basicFj=res.data.basicFj;
|
|
|
}
|
|
|
this.stepval=res.data.loanSchedule||0;
|
|
|
- var auditSchedule=res.data.auditSchedule
|
|
|
- if(checkPermi(['system:hyperlink:list'])&&auditSchedule==6){
|
|
|
- this.getHyperlinkList();//外部链接stepval==5
|
|
|
- }else if(auditSchedule==1||auditSchedule==7){
|
|
|
- if(checkPermi(['system:user:noPageList'])){
|
|
|
- this.getUsernoPageList();//获取用户列表stepval==2||stepval==6
|
|
|
- }
|
|
|
- }
|
|
|
+ // var auditSchedule=res.data.auditSchedule
|
|
|
+ // if(checkPermi(['system:hyperlink:list'])&&auditSchedule==6){
|
|
|
+ // this.getHyperlinkList();//外部链接stepval==5
|
|
|
+ // }else if(auditSchedule==1||auditSchedule==7){
|
|
|
+ // if(checkPermi(['system:user:noPageList'])){
|
|
|
+ // this.getUsernoPageList();//获取用户列表stepval==2||stepval==6
|
|
|
+ // }
|
|
|
+ // }
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -981,40 +1040,7 @@
|
|
|
// this.datainfo.zsyzFjList=JSON.parse(JSON.stringify(this.filelist))
|
|
|
},
|
|
|
getXzFn(ite){
|
|
|
- // 本地路径开头使用file://,跟上手机文件本地目录storage/emulated/0,
|
|
|
- // 后缀是用于文件命名和格式修改,大家可以使用变量。
|
|
|
- var url = baseUrl + ite.url;
|
|
|
- var name=ite.name;
|
|
|
- let dtask = plus.downloader.createDownload(url, {
|
|
|
- filename: 'file://storage/emulated/0/'+baseName+'/' + name
|
|
|
- }, (d, status) => {
|
|
|
- //d为下载的文件对象
|
|
|
- if (status == 200) {
|
|
|
- uni.hideLoading();
|
|
|
- uni.showToast({
|
|
|
- icon: 'none',
|
|
|
- mask: true,
|
|
|
- title: '已保存到文件夹:/'+baseName+'/'+ name, //保存路径
|
|
|
- duration: 3000,
|
|
|
- });
|
|
|
-
|
|
|
- //下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
|
|
|
- let fileSaveUrl = plus.io.convertLocalFileSystemURL(d.filename);
|
|
|
- setTimeout(() => {
|
|
|
- plus.runtime.openFile(d.filename); //选择软件打开文件
|
|
|
- }, 1500)
|
|
|
- } else {
|
|
|
- //下载失败
|
|
|
- uni.hideLoading();
|
|
|
- plus.downloader.clear(); //清除下载任务
|
|
|
- uni.showToast({
|
|
|
- icon: 'none',
|
|
|
- mask: true,
|
|
|
- title: '下载失败,请稍后重试',
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
- dtask.start();
|
|
|
+ this.getDownloader(ite.url,ite.name)
|
|
|
},
|
|
|
getDown(e){
|
|
|
uni.showLoading({
|