|
@@ -96,7 +96,7 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-view"
|
|
|
- @click="handleDetail(scope.row)"
|
|
|
+ @click="handleDownload(scope.row)"
|
|
|
>下载</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -111,7 +111,7 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-view"
|
|
|
- @click="handleDetail(scope.row)"
|
|
|
+ @click="handleDownload(scope.row)"
|
|
|
>下载</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -126,7 +126,7 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-view"
|
|
|
- @click="handleDetail(scope.row)"
|
|
|
+ @click="handleDownload(scope.row)"
|
|
|
>下载</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -134,7 +134,7 @@
|
|
|
<div class="footer" style="float: right;
|
|
|
margin-bottom:2px;">
|
|
|
<el-button type="success" @click="getContractFile">预览文件</el-button>
|
|
|
- <el-button type="primary" @click="selectType">确定</el-button>
|
|
|
+ <el-button type="primary" @click="selectType">签署</el-button>
|
|
|
<el-button @click="cancel">取消</el-button>
|
|
|
</div>
|
|
|
<el-dialog
|
|
@@ -187,6 +187,7 @@ import {accAdd} from "@/utils/calculation";
|
|
|
import {getContractFile} from "@/api/service/credit/creditHandle";
|
|
|
import {sendMessage,checkCode,faceAuth,checkFaceAuth,contractSigning} from "@/api/service/credit/message";
|
|
|
import pdfShow from "./pdfShow";
|
|
|
+import {getToken} from "@/utils/auth";
|
|
|
export default {
|
|
|
name: "addCredit",
|
|
|
components: {pdfShow},
|
|
@@ -249,7 +250,7 @@ export default {
|
|
|
authForm:{}
|
|
|
};
|
|
|
},
|
|
|
- created() {
|
|
|
+ activated() {
|
|
|
const zfiId = this.$route.params && this.$route.params.zfiId;
|
|
|
getCreditDetail(zfiId).then((response) => {
|
|
|
if(response.data){
|
|
@@ -480,6 +481,19 @@ export default {
|
|
|
}
|
|
|
|
|
|
},
|
|
|
+ //文件下载
|
|
|
+ handleDownload(row){
|
|
|
+ const pfiUrl = row.pfiUrl;
|
|
|
+ if(pfiUrl != null && pfiUrl != ''){
|
|
|
+ window.open(pfiUrl +"/"+ getToken());
|
|
|
+ }else{
|
|
|
+ this.$message({
|
|
|
+ message: '该附件不存在!',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ },
|
|
|
//确认选择
|
|
|
confirmSelect(){
|
|
|
if(!this.updateForm.radio){
|