浏览代码

新增授信

peixh 3 年之前
父节点
当前提交
6791b76a4d
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      front-vue/src/views/service/creditLine/addCreditLine.vue

+ 9 - 1
front-vue/src/views/service/creditLine/addCreditLine.vue

@@ -563,6 +563,7 @@ export default {
           this.$set(this.form, "zfcSubject", this.ticketList[0].zfcSubject);
           this.$set(this.form, "zfcId", this.ticketList[0].zfcId);
           this.open = false
+          this.queryParamsContract.zfcName = null
       }else{
         this.$message({
           message: '请选择合同',
@@ -577,6 +578,7 @@ export default {
         this.$refs.tableContract.clearSelection();
       }
       this.open = false;
+      this.queryParamsContract.zfcName = null
     },
     /** 清空选择发票信息 */
     deleteTicekt() {
@@ -602,7 +604,7 @@ export default {
       if (row.pfiUrl) {
           if (pfiFileName.substr(-3) == "pdf") {
               this.wordUrl = pfiUrl + "/" + getToken();
-          } else {
+          } else if(pfiFileName.substr(-3) == "doc" || pfiFileName.substr(-3) == "docx"){
               this.wordUrl =
                   "https://view.officeapps.live.com/op/view.aspx?src=" +
                   pfiUrl +
@@ -610,6 +612,12 @@ export default {
                   getToken() +
                   "/" +
                   pfiFileName;
+          }else{
+            this.$message({
+              message: "暂不支持该类型文件预览",
+              type: "warning",
+            });
+            return;
           }
       }