Browse Source

融资管理 授信管理

peixh 3 năm trước cách đây
mục cha
commit
0306321c57

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

@@ -47,7 +47,7 @@
           <el-form-item label="授信额度:" prop="zfpcrAmount">
             <!-- <el-tooltip class="item" effect="light" :content= "zfpcrAmountFormat" placement="top-start"> -->
             <el-input v-model="form.zfpcrAmount" placeholder="请输入授信额度"  style="width:284px" maxlength="12">
-              <template slot="append">元</template>
+              <template slot="append">元</template>
             </el-input>
             <!-- </el-tooltip> -->
           </el-form-item>

+ 4 - 4
front-vue/src/views/service/creditLine/creditLine.vue

@@ -103,11 +103,11 @@
       <el-table-column label="融资产品" align="center" prop="zfpName" v-if="uncheckList.zfpName" show-overflow-tooltip/>
       <el-table-column label="企业名称" align="center" prop="scyName" v-if="uncheckList.scyName" show-overflow-tooltip/>
       <el-table-column label="企业代码" align="center" prop="scySocialCode" v-if="uncheckList.scySocialCode" show-overflow-tooltip/>
-      <el-table-column label="授信额度(万元)" :formatter="moneyFormat"  align="center" prop="zfpcrAmount" show-overflow-tooltip v-if="uncheckList.zfpcrAmount" width="120"/>
+      <el-table-column label="授信额度" :formatter="moneyFormat"  align="center" prop="zfpcrAmount" show-overflow-tooltip v-if="uncheckList.zfpcrAmount" width="120"/>
       <el-table-column label="利率(%)" align="center" prop="zfpcrRate" v-if="uncheckList.zfpcrRate" width="120" />
-      <el-table-column label="已分割额度(万元)" :formatter="moneyFormat"  align="center" prop="zfpcrDivisionAmount" v-if="uncheckList.zfpcrDivisionAmount" width="120"/>
-      <el-table-column label="已使用额度(万元)" :formatter="moneyFormat"  align="center" prop="zfiAmount" v-if="uncheckList.zfiAmount" width="120"/>
-      <el-table-column label="可用额度(万元)" :formatter="moneyFormat"  align="center" prop="usableAmount" v-if="uncheckList.usableAmount" width="120"/>
+      <el-table-column label="已分割额度" :formatter="moneyFormat"  align="center" prop="zfpcrDivisionAmount" v-if="uncheckList.zfpcrDivisionAmount" width="120"/>
+      <el-table-column label="已使用额度" :formatter="moneyFormat"  align="center" prop="zfiAmount" v-if="uncheckList.zfiAmount" width="120"/>
+      <el-table-column label="可用额度" :formatter="moneyFormat"  align="center" prop="usableAmount" v-if="uncheckList.usableAmount" width="120"/>
       <el-table-column label="开始日期" align="center" prop="zfpcrStartDate" v-if="uncheckList.zfpcrStartDate" show-overflow-tooltip/>
       <el-table-column label="结束日期" align="center" prop="zfpcrEndDate" v-if="uncheckList.zfpcrEndDate" show-overflow-tooltip/>
       <el-table-column label="授信状态" :formatter="statusFormat" align="center" prop="zfpcrStatus" v-if="uncheckList.zfpcrStatus" show-overflow-tooltip/>

+ 3 - 3
front-vue/src/views/service/creditLine/detailCreditLine.vue

@@ -51,14 +51,14 @@
         <el-col :span="8">
           <el-form-item label="已用授信额度:" prop="zfiAmount" >
             <el-input v-model="form.zfiAmount"   style="width:284px" disabled>
-              <template slot="append">元</template>
+              <template slot="append">元</template>
             </el-input>
           </el-form-item>
         </el-col>
         <el-col :span="8">
           <el-form-item label="剩余授信额度:" prop="usableAmount" >
             <el-input v-model="form.usableAmount"   style="width:284px" disabled>
-              <template slot="append">元</template>
+              <template slot="append">元</template>
             </el-input>
           </el-form-item>
         </el-col>
@@ -68,7 +68,7 @@
           <el-form-item label="授信额度:" prop="zfpcrAmount">
             <!-- <el-tooltip class="item" effect="light" :content= "zfpcrAmountFormat" placement="top-start"> -->
             <el-input v-model="form.zfpcrAmount" placeholder="请输入授信额度"  style="width:284px">
-              <template slot="append">元</template>
+              <template slot="append">元</template>
             </el-input>
             <!-- </el-tooltip> -->
           </el-form-item>

+ 4 - 4
front-vue/src/views/service/creditLine/editCreditLine.vue

@@ -46,21 +46,21 @@
         <el-col :span="8">
           <el-form-item label="原授信额度:" prop="zfpcrOldAmount" >
             <el-input v-model="form.zfpcrOldAmount"   style="width:284px" disabled>
-              <template slot="append">元</template>
+              <template slot="append">元</template>
             </el-input>
           </el-form-item>
         </el-col>
         <el-col :span="8">
           <el-form-item label="已用授信额度:" prop="zfiAmount" >
             <el-input v-model="form.zfiAmount"   style="width:284px" disabled>
-              <template slot="append">元</template>
+              <template slot="append">元</template>
             </el-input>
           </el-form-item>
         </el-col>
         <el-col :span="8">
           <el-form-item label="剩余授信额度:" prop="usableAmount" >
             <el-input v-model="form.usableAmount"   style="width:284px" disabled>
-              <template slot="append">元</template>
+              <template slot="append">元</template>
             </el-input>
           </el-form-item>
         </el-col>
@@ -70,7 +70,7 @@
           <el-form-item label="授信额度:" prop="zfpcrAmount">
             <!-- <el-tooltip class="item" effect="light" :content= "zfpcrAmountFormat" placement="top-start"> -->
             <el-input v-model="form.zfpcrAmount" placeholder="请输入授信额度"  style="width:284px">
-              <template slot="append">元</template>
+              <template slot="append">元</template>
             </el-input>
             <!-- </el-tooltip> -->
           </el-form-item>

+ 81 - 22
front-vue/src/views/service/financeRecord/addFinanceRecord.vue

@@ -20,7 +20,7 @@
           <el-col :span="8">
             <el-form-item label="融资金额:" prop="zfrAmount">
               <el-input v-model="form.zfrAmount" placeholder="请输入融资金额"  style="width: 284px;" readonly>
-              <template slot="append">元</template>
+              <template slot="append">元</template>
               </el-input>
             </el-form-item>
           </el-col>
@@ -74,7 +74,7 @@
           <el-table-column label="应收企业" align="center" prop="payee" />
           <el-table-column label="应付企业" align="center" prop="payer" />
           <el-table-column label="还款时间" align="center" prop="zbiPayDate" />
-          <el-table-column label="金额(万元)" align="center" prop="zbiAmount" />
+          <el-table-column label="金额" align="center" prop="zbiAmount" />
         </el-table>
         <!-- 发票附件 -->
         <el-divider content-position="left">发票附件</el-divider>
@@ -82,12 +82,12 @@
             <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
                 <template slot-scope="scope">
-                    <el-button
-                        size="mini"
-                        type="text"
-                        icon="el-icon-view"
-                        @click="handleDetail(scope.row)"
-                    >下载</el-button>
+                  <el-button
+                    size="mini"
+                    type="text"
+                    icon="el-icon-view"
+                    @click="handlePreview(scope.row)"
+                  >预览</el-button>
                 </template>
             </el-table-column>
           </el-table>
@@ -97,12 +97,12 @@
             <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
                 <template slot-scope="scope">
-                    <el-button
-                        size="mini"
-                        type="text"
-                        icon="el-icon-view"
-                        @click="handleDetail(scope.row)"
-                    >下载</el-button>
+                  <el-button
+                    size="mini"
+                    type="text"
+                    icon="el-icon-view"
+                    @click="handlePreview(scope.row)"
+                  >预览</el-button>
                 </template>
             </el-table-column>
           </el-table>
@@ -112,12 +112,12 @@
             <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
                 <template slot-scope="scope">
-                    <el-button
-                        size="mini"
-                        type="text"
-                        icon="el-icon-view"
-                        @click="handleDetail(scope.row)"
-                    >下载</el-button>
+                  <el-button
+                    size="mini"
+                    type="text"
+                    icon="el-icon-view"
+                    @click="handlePreview(scope.row)"
+                  >预览</el-button>
                 </template>
             </el-table-column>
           </el-table>
@@ -125,6 +125,11 @@
         <el-button type="primary" @click="submitForm">确 定</el-button>
         <!-- <el-button @click="cancel">取 消</el-button> -->
       </div>
+      <!--预览-->
+      <el-dialog  :visible.sync="openFile" width="1000px" append-to-body>
+        <img :src="wordUrl" v-if="show" width='450px' height='500px'/>
+        <iframe :src="wordUrl" width='800px' height='600px' frameborder='1' v-if="heid"/>
+      </el-dialog>
   </div>
 </template>
 
@@ -132,6 +137,7 @@
 import {addRecord,listBillInf} from "@/api/service/financeRecord/record";
 import { listFinanceInf } from "@/api/common/financeInf";
 import { getFile } from "@/api/service/credit/credit";
+import {getToken} from "@/utils/auth";
 export default {
   name: "financeRecord",
   components: {
@@ -196,7 +202,9 @@ export default {
         zfrAmount: [
           { required: true, message: "融资金额不能为空", trigger: "blur" }
         ],
-      }
+      },
+      openFile:false,
+      wordUrl: "",
     };
   },
   created() {
@@ -326,11 +334,62 @@ export default {
       this.invoiceFileList = [];
       this.otherFileList = [];
     },
+    //预览
+    handlePreview(row) {
+      const pfiUrl = row.pfiUrl;
+      const pfiFileName = row.pfiFileName;
+      if (row.pfiUrl) {
+          console.log(pfiFileName.substr(-3));
+          if (pfiFileName.substr(-3) == "pdf") {
+              this.wordUrl = pfiUrl + "/" + getToken();
+              this.show=false;
+              this.heid=true;
+          } else if (
+              pfiFileName.substr(-3) == "jpg" ||
+              pfiFileName.substr(-3) == "png" ||
+              pfiFileName.substr(-3) == "JPG" ||
+              pfiFileName.substr(-3) == "PNG" ||
+              pfiFileName.substr(-4) == "jpeg" ||
+              pfiFileName.substr(-3) == "JPEG" 
+          ) {
+              this.wordUrl =
+                  pfiUrl +
+                  "/" +
+                  getToken();
+                  this.show=true;
+                  this.heid=false;
+                    console.log("====>",this.wordUrl);
+          } else if (
+              pfiFileName.substr(-3) == "doc" ||
+              pfiFileName.substr(-3) == "DOC"||
+              pfiFileName.substr(-4) == "docx" ||
+              pfiFileName.substr(-3) == "DOCX"
+          ) {
+              this.wordUrl =
+                  "https://view.officeapps.live.com/op/view.aspx?src=" +
+                  pfiUrl +
+                  "/" +
+                  getToken() +
+                  "/" +
+                  pfiFileName;
+                  this.show=false;
+                  this.heid=true;
+                  console.log("====>",this.wordUrl);
+          } else {
+              this.$message({
+                  message: "暂不支持该类型文件预览",
+                  type: "warning",
+              });
+              return;
+          }
+      }
+      this.openFile = true;
+    },
     //应收账款合计
     allAmount() {
       var strarr = [0.00];
       for (let i in this.billInfList) {
-        strarr.push((this.billInfList[i]["zbiAmount"] * '10000'));
+        strarr.push(this.billInfList[i]["zbiAmount"]);
       }
       return Math.floor(eval(strarr.join("+")) * 100) / 100; //结果
     },

+ 77 - 19
front-vue/src/views/service/financeRecord/approvalRecordDetail.vue

@@ -78,12 +78,12 @@
             <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
                 <template slot-scope="scope">
-                    <el-button
-                        size="mini"
-                        type="text"
-                        icon="el-icon-view"
-                        @click="handleDetail(scope.row)"
-                    >下载</el-button>
+                  <el-button
+                    size="mini"
+                    type="text"
+                    icon="el-icon-view"
+                    @click="handlePreview(scope.row)"
+                  >预览</el-button>
                 </template>
             </el-table-column>
           </el-table>
@@ -93,12 +93,12 @@
             <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
                 <template slot-scope="scope">
-                    <el-button
-                        size="mini"
-                        type="text"
-                        icon="el-icon-view"
-                        @click="handleDetail(scope.row)"
-                    >下载</el-button>
+                  <el-button
+                    size="mini"
+                    type="text"
+                    icon="el-icon-view"
+                    @click="handlePreview(scope.row)"
+                  >预览</el-button>
                 </template>
             </el-table-column>
           </el-table>
@@ -108,12 +108,12 @@
             <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
                 <template slot-scope="scope">
-                    <el-button
-                        size="mini"
-                        type="text"
-                        icon="el-icon-view"
-                        @click="handleDetail(scope.row)"
-                    >下载</el-button>
+                  <el-button
+                    size="mini"
+                    type="text"
+                    icon="el-icon-view"
+                    @click="handlePreview(scope.row)"
+                  >预览</el-button>
                 </template>
             </el-table-column>
           </el-table>
@@ -121,6 +121,11 @@
         <el-button type="primary" @click="submitForm">确 定</el-button>
         <!-- <el-button @click="cancel">取 消</el-button> -->
       </div>
+      <!--预览-->
+      <el-dialog  :visible.sync="openFile" width="1000px" append-to-body>
+        <img :src="wordUrl" v-if="show" width='450px' height='500px'/>
+        <iframe :src="wordUrl" width='800px' height='600px' frameborder='1' v-if="heid"/>
+      </el-dialog>
   </div>
 </template>
 
@@ -197,7 +202,9 @@ export default {
         zfrAmount: [
           { required: true, message: "融资金额不能为空", trigger: "blur" }
         ],
-      }
+      },
+      openFile:false,
+      wordUrl: "",
     };
   },
   created() {
@@ -357,6 +364,57 @@ export default {
       this.invoiceFileList = [];
       this.otherFileList = [];
     },
+    //预览
+    handlePreview(row) {
+      const pfiUrl = row.pfiUrl;
+      const pfiFileName = row.pfiFileName;
+      if (row.pfiUrl) {
+          console.log(pfiFileName.substr(-3));
+          if (pfiFileName.substr(-3) == "pdf") {
+              this.wordUrl = pfiUrl + "/" + getToken();
+              this.show=false;
+              this.heid=true;
+          } else if (
+              pfiFileName.substr(-3) == "jpg" ||
+              pfiFileName.substr(-3) == "png" ||
+              pfiFileName.substr(-3) == "JPG" ||
+              pfiFileName.substr(-3) == "PNG" ||
+              pfiFileName.substr(-4) == "jpeg" ||
+              pfiFileName.substr(-3) == "JPEG" 
+          ) {
+              this.wordUrl =
+                  pfiUrl +
+                  "/" +
+                  getToken();
+                  this.show=true;
+                  this.heid=false;
+                    console.log("====>",this.wordUrl);
+          } else if (
+              pfiFileName.substr(-3) == "doc" ||
+              pfiFileName.substr(-3) == "DOC"||
+              pfiFileName.substr(-4) == "docx" ||
+              pfiFileName.substr(-3) == "DOCX"
+          ) {
+              this.wordUrl =
+                  "https://view.officeapps.live.com/op/view.aspx?src=" +
+                  pfiUrl +
+                  "/" +
+                  getToken() +
+                  "/" +
+                  pfiFileName;
+                  this.show=false;
+                  this.heid=true;
+                  console.log("====>",this.wordUrl);
+          } else {
+              this.$message({
+                  message: "暂不支持该类型文件预览",
+                  type: "warning",
+              });
+              return;
+          }
+      }
+      this.openFile = true;
+    },
     //应收账款合计
     allAmount() {
       var strarr = [0.00];

+ 80 - 22
front-vue/src/views/service/financeRecord/detailFinanceRecord.vue

@@ -23,7 +23,7 @@
           <el-col :span="8">
             <el-form-item label="融资金额" prop="zfrAmount" >
               <el-input v-model="form.zfrAmount" placeholder="请输入融资金额"  style="width: 284px;" readonly>
-              <template slot="append">元</template>
+              <template slot="append">元</template>
               </el-input>
             </el-form-item>
           </el-col>
@@ -72,7 +72,7 @@
           <el-table-column label="应收企业" align="center" prop="payee" />
           <el-table-column label="应付企业" align="center" prop="payer" />
           <el-table-column label="还款时间" align="center" prop="zbiPayDate" />
-          <el-table-column label="金额(万元)" align="center" prop="zbiAmount" />
+          <el-table-column label="金额" align="center" prop="zbiAmount" />
         </el-table>
         <!-- 发票附件 -->
         <el-divider content-position="left">发票附件</el-divider>
@@ -80,12 +80,12 @@
             <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
                 <template slot-scope="scope">
-                    <el-button
-                        size="mini"
-                        type="text"
-                        icon="el-icon-view"
-                        @click="handleDetail(scope.row)"
-                    >下载</el-button>
+                  <el-button
+                    size="mini"
+                    type="text"
+                    icon="el-icon-view"
+                    @click="handlePreview(scope.row)"
+                  >预览</el-button>
                 </template>
             </el-table-column>
           </el-table>
@@ -95,12 +95,12 @@
             <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
                 <template slot-scope="scope">
-                    <el-button
-                        size="mini"
-                        type="text"
-                        icon="el-icon-view"
-                        @click="handleDetail(scope.row)"
-                    >下载</el-button>
+                  <el-button
+                    size="mini"
+                    type="text"
+                    icon="el-icon-view"
+                    @click="handlePreview(scope.row)"
+                  >预览</el-button>
                 </template>
             </el-table-column>
           </el-table>
@@ -110,12 +110,12 @@
             <el-table-column label="文件名称" align="center" prop="pfiFileName" show-overflow-tooltip />
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
                 <template slot-scope="scope">
-                    <el-button
-                        size="mini"
-                        type="text"
-                        icon="el-icon-view"
-                        @click="handleDetail(scope.row)"
-                    >下载</el-button>
+                  <el-button
+                  size="mini"
+                  type="text"
+                  icon="el-icon-view"
+                  @click="handlePreview(scope.row)"
+                  >预览</el-button>
                 </template>
             </el-table-column>
           </el-table>
@@ -123,6 +123,11 @@
         <el-button type="primary" @click="submitForm">确 定</el-button>
         <!-- <el-button @click="cancel">取 消</el-button> -->
       </div>
+      <!--预览-->
+      <el-dialog  :visible.sync="openFile" width="1000px" append-to-body>
+        <img :src="wordUrl" v-if="show" width='450px' height='500px'/>
+        <iframe :src="wordUrl" width='800px' height='600px' frameborder='1' v-if="heid"/>
+      </el-dialog>
   </div>
 </template>
 
@@ -199,7 +204,9 @@ export default {
         zfrAmount: [
           { required: true, message: "融资金额不能为空", trigger: "blur" }
         ],
-      }
+      },
+      openFile:false,
+      wordUrl: "",
     };
   },
   created() {
@@ -359,11 +366,62 @@ export default {
       this.invoiceFileList = [];
       this.otherFileList = [];
     },
+    //预览
+    handlePreview(row) {
+      const pfiUrl = row.pfiUrl;
+      const pfiFileName = row.pfiFileName;
+      if (row.pfiUrl) {
+          console.log(pfiFileName.substr(-3));
+          if (pfiFileName.substr(-3) == "pdf") {
+              this.wordUrl = pfiUrl + "/" + getToken();
+              this.show=false;
+              this.heid=true;
+          } else if (
+              pfiFileName.substr(-3) == "jpg" ||
+              pfiFileName.substr(-3) == "png" ||
+              pfiFileName.substr(-3) == "JPG" ||
+              pfiFileName.substr(-3) == "PNG" ||
+              pfiFileName.substr(-4) == "jpeg" ||
+              pfiFileName.substr(-3) == "JPEG" 
+          ) {
+              this.wordUrl =
+                  pfiUrl +
+                  "/" +
+                  getToken();
+                  this.show=true;
+                  this.heid=false;
+                    console.log("====>",this.wordUrl);
+          } else if (
+              pfiFileName.substr(-3) == "doc" ||
+              pfiFileName.substr(-3) == "DOC"||
+              pfiFileName.substr(-4) == "docx" ||
+              pfiFileName.substr(-3) == "DOCX"
+          ) {
+              this.wordUrl =
+                  "https://view.officeapps.live.com/op/view.aspx?src=" +
+                  pfiUrl +
+                  "/" +
+                  getToken() +
+                  "/" +
+                  pfiFileName;
+                  this.show=false;
+                  this.heid=true;
+                  console.log("====>",this.wordUrl);
+          } else {
+              this.$message({
+                  message: "暂不支持该类型文件预览",
+                  type: "warning",
+              });
+              return;
+          }
+      }
+      this.openFile = true;
+    },
     //应收账款合计
     allAmount() {
       var strarr = [0.00];
       for (let i in this.billInfList) {
-        strarr.push((this.billInfList[i]["zbiAmount"] * '10000'));
+        strarr.push(this.billInfList[i]["zbiAmount"]);
       }
       return Math.floor(eval(strarr.join("+")) * 100) / 100; //结果
     },

+ 13 - 39
front-vue/src/views/service/financeRecord/financeRecord.vue

@@ -64,12 +64,12 @@
         <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfiNumner"/>
         <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrNumber"/>
         <el-table-column label="开立方" align="center" prop="coreScyName" v-if="uncheckList.coreScyName"/>
-        <el-table-column label="融资金额(万元)" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
+        <el-table-column label="融资金额" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
         <el-table-column label="融资利率(%)" align="center" prop="zfrRate" v-if="uncheckList.zfrRate"/>
         <el-table-column label="经办人" align="center" prop="nickName" v-if="uncheckList.nickName"/>
         <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrExpireDate"/>
         <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrApplyDate"/>
-        <el-table-column label="实际放款金额(万元)" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
+        <el-table-column label="实际放款金额" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
         <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrLoanDate"/>
         <el-table-column label="融资状态" :formatter="statusFormat" align="center"  prop="zfrStatus" v-if="uncheckList.zfrStatus"/>
         <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
@@ -99,21 +99,22 @@
               v-hasPermi="['finance:record:export']"
               >导出</el-button
             >
-            <el-button
+            <!-- <el-button
               size="mini"
               type="text"
               icon="el-icon-edit"
               @click="handleApprove(scope.row)"
               v-hasPermi="['finance:record:approve']"
-              v-if="scope.row.zfrApproveStt == '03'&&scope.row.zfrStatus != '01'"
+              v-if="scope.row.zfrApproveStt == '03' && scope.row.zfrStatus != '01'"
               >提交审批</el-button
-            >
+            > -->
             <el-button
             size="mini"
             type="text"
             icon="el-icon-edit"
             @click="seal(scope.row)"
             v-hasPermi="['finance:record:seal']"
+            v-if="scope.row.zfrApproveStt == '01'"
           >盖章</el-button>
           </template>
         </el-table-column>
@@ -186,12 +187,12 @@
         <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfiNumner"/>
         <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrNumber"/>
         <el-table-column label="开立方" align="center" prop="coreScyName" v-if="uncheckList.coreScyName"/>
-        <el-table-column label="融资金额(万元)" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
+        <el-table-column label="融资金额" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
         <el-table-column label="融资利率(%)" align="center" prop="zfrRate" v-if="uncheckList.zfrRate"/>
         <el-table-column label="经办人" align="center" prop="nickName" v-if="uncheckList.nickName"/>
         <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrExpireDate"/>
         <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrApplyDate"/>
-        <el-table-column label="实际放款金额(万元)" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
+        <el-table-column label="实际放款金额" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
         <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrLoanDate"/>
         <el-table-column label="融资状态" :formatter="statusFormat" align="center"  prop="zfrStatus" v-if="uncheckList.zfrStatus"/>
         <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
@@ -220,15 +221,6 @@
               v-hasPermi="['finance:record:export']"
               >导出</el-button
             >
-            <el-button
-              size="mini"
-              type="text"
-              icon="el-icon-edit"
-              @click="handleApprove(scope.row)"
-              v-hasPermi="['finance:record:approve']"
-              v-if="scope.row.zfrApproveStt == '03'&&scope.row.zfrStatus != '01'"
-              >提交审批</el-button
-            >
           </template>
         </el-table-column>
       </el-table>
@@ -306,12 +298,12 @@
         <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfiNumner"/>
         <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrNumber"/>
         <el-table-column label="开立方" align="center" prop="coreScyName" v-if="uncheckList.coreScyName"/>
-        <el-table-column label="融资金额(万元)" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
+        <el-table-column label="融资金额" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
         <el-table-column label="融资利率(%)" align="center" prop="zfrRate" v-if="uncheckList.zfrRate"/>
         <el-table-column label="经办人" align="center" prop="nickName" v-if="uncheckList.nickName"/>
         <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrExpireDate"/>
         <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrApplyDate"/>
-        <el-table-column label="实际放款金额(万元)" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
+        <el-table-column label="实际放款金额" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
         <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrLoanDate"/>
         <el-table-column label="融资状态" :formatter="statusFormat" align="center"  prop="zfrStatus" v-if="uncheckList.zfrStatus"/>
         <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
@@ -332,15 +324,6 @@
               v-hasPermi="['finance:record:export']"
               >导出</el-button
             >
-            <el-button
-              size="mini"
-              type="text"
-              icon="el-icon-edit"
-              @click="handleApprove(scope.row)"
-              v-hasPermi="['finance:record:approve']"
-              v-if="scope.row.zfrApproveStt == '03'&&scope.row.zfrStatus != '01'"
-              >提交审批</el-button
-            >
           </template>
         </el-table-column>
       </el-table>
@@ -411,12 +394,12 @@
         <el-table-column label="融信编号" align="center" prop="zfiNumner" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfiNumner"/>
         <el-table-column label="融资编号" align="center" prop="zfrNumber" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrNumber"/>
         <el-table-column label="开立方" align="center" prop="coreScyName" v-if="uncheckList.coreScyName"/>
-        <el-table-column label="融资金额(万元)" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
+        <el-table-column label="融资金额" :formatter="moneyFormat" align="center" prop="zfrAmount" v-if="uncheckList.zfrAmount"/>
         <el-table-column label="融资利率(%)" align="center" prop="zfrRate" v-if="uncheckList.zfrRate"/>
         <el-table-column label="经办人" align="center" prop="nickName" v-if="uncheckList.nickName"/>
         <el-table-column label="承诺还款时间" align="center" prop="zfrExpireDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrExpireDate"/>
         <el-table-column label="融资申请日期" align="center" prop="zfrApplyDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrApplyDate"/>
-        <el-table-column label="实际放款金额(万元)" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
+        <el-table-column label="实际放款金额" :formatter="moneyFormat" align="center" prop="zfrLoanAmount" v-if="uncheckList.zfrLoanAmount"/>
         <el-table-column label="融资放款日期" align="center" prop="zfrLoanDate" width="180" :show-overflow-tooltip="true" v-if="uncheckList.zfrLoanDate"/>
         <el-table-column label="融资状态" :formatter="statusFormat" align="center"  prop="zfrStatus" v-if="uncheckList.zfrStatus"/>
         <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
@@ -437,15 +420,6 @@
               v-hasPermi="['finance:record:export']"
               >导出</el-button
             >
-            <el-button
-              size="mini"
-              type="text"
-              icon="el-icon-edit"
-              @click="handleApprove(scope.row)"
-              v-hasPermi="['finance:record:approve']"
-              v-if="scope.row.zfrApproveStt == '03'&&scope.row.zfrStatus != '01'"
-              >提交审批</el-button
-            >
           </template>
         </el-table-column>
       </el-table>
@@ -463,7 +437,7 @@
       <el-form ref="form" :model="form" :rules="rules" label-width="80px">
         <el-form-item label="实际放款金额" prop="zfrLoanAmount" label-width="100px" >
           <el-input v-model="form.zfrLoanAmount" placeholder="实际放款金额" style="width: 284px">
-            <template slot="append">元</template>
+            <template slot="append">元</template>
           </el-input>
         </el-form-item>
         <el-form-item label="上传附件">

+ 76 - 18
front-vue/src/views/service/financeRecord/recordSeal.vue

@@ -69,7 +69,7 @@
           <el-table-column label="应收企业" align="center" prop="payee" />
           <el-table-column label="应付企业" align="center" prop="payer" />
           <el-table-column label="还款时间" align="center" prop="zbiPayDate" />
-          <el-table-column label="金额(万元)" align="center" prop="zbiAmount" />
+          <el-table-column label="金额" align="center" prop="zbiAmount" />
         </el-table>
         <!-- 发票附件 -->
         <el-divider content-position="left">发票附件</el-divider>
@@ -78,11 +78,11 @@
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
                 <template slot-scope="scope">
                     <el-button
-                        size="mini"
-                        type="text"
-                        icon="el-icon-view"
-                        @click="handleDetail(scope.row)"
-                    >下载</el-button>
+                    size="mini"
+                    type="text"
+                    icon="el-icon-view"
+                    @click="handlePreview(scope.row)"
+                    >预览</el-button>
                 </template>
             </el-table-column>
           </el-table>
@@ -93,11 +93,11 @@
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
                 <template slot-scope="scope">
                     <el-button
-                        size="mini"
-                        type="text"
-                        icon="el-icon-view"
-                        @click="handleDetail(scope.row)"
-                    >下载</el-button>
+                    size="mini"
+                    type="text"
+                    icon="el-icon-view"
+                    @click="handlePreview(scope.row)"
+                    >预览</el-button>
                 </template>
             </el-table-column>
           </el-table>
@@ -108,11 +108,11 @@
             <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width='300' fixed="right" >
                 <template slot-scope="scope">
                     <el-button
-                        size="mini"
-                        type="text"
-                        icon="el-icon-view"
-                        @click="handleDetail(scope.row)"
-                    >下载</el-button>
+                    size="mini"
+                    type="text"
+                    icon="el-icon-view"
+                    @click="handlePreview(scope.row)"
+                    >预览</el-button>
                 </template>
             </el-table-column>
           </el-table>
@@ -164,6 +164,11 @@
         <el-dialog  :visible.sync="faceIsShow" width="500px"  append-to-body :before-close = "cancelFace" center>
              <img :src="'data:image/jpeg;base64,' + this.fileUrl" style="overflow: auto; width: 100%; height: 100%;"/>
         </el-dialog>
+        <!--预览-->
+      <el-dialog  :visible.sync="openFile" width="1000px" append-to-body>
+        <img :src="wordUrl" v-if="show" width='450px' height='500px'/>
+        <iframe :src="wordUrl" width='800px' height='600px' frameborder='1' v-if="heid"/>
+      </el-dialog>
   </div>
 </template>
 <script>
@@ -263,6 +268,8 @@ export default {
                 zfpcrLoantype: null,
                 zfiProductId: null
             },
+            openFile:false,
+            wordUrl: "",
         };
     },
     activated() {
@@ -350,11 +357,62 @@ export default {
         return $1 + ',';
       }).replace(/\.$/, '');
     },
+    //预览
+    handlePreview(row) {
+      const pfiUrl = row.pfiUrl;
+      const pfiFileName = row.pfiFileName;
+      if (row.pfiUrl) {
+          console.log(pfiFileName.substr(-3));
+          if (pfiFileName.substr(-3) == "pdf") {
+              this.wordUrl = pfiUrl + "/" + getToken();
+              this.show=false;
+              this.heid=true;
+          } else if (
+              pfiFileName.substr(-3) == "jpg" ||
+              pfiFileName.substr(-3) == "png" ||
+              pfiFileName.substr(-3) == "JPG" ||
+              pfiFileName.substr(-3) == "PNG" ||
+              pfiFileName.substr(-4) == "jpeg" ||
+              pfiFileName.substr(-3) == "JPEG" 
+          ) {
+              this.wordUrl =
+                  pfiUrl +
+                  "/" +
+                  getToken();
+                  this.show=true;
+                  this.heid=false;
+                    console.log("====>",this.wordUrl);
+          } else if (
+              pfiFileName.substr(-3) == "doc" ||
+              pfiFileName.substr(-3) == "DOC"||
+              pfiFileName.substr(-4) == "docx" ||
+              pfiFileName.substr(-3) == "DOCX"
+          ) {
+              this.wordUrl =
+                  "https://view.officeapps.live.com/op/view.aspx?src=" +
+                  pfiUrl +
+                  "/" +
+                  getToken() +
+                  "/" +
+                  pfiFileName;
+                  this.show=false;
+                  this.heid=true;
+                  console.log("====>",this.wordUrl);
+          } else {
+              this.$message({
+                  message: "暂不支持该类型文件预览",
+                  type: "warning",
+              });
+              return;
+          }
+      }
+      this.openFile = true;
+    },
     //应收账款合计
     allAmount() {
       var strarr = [0.00];
       for (let i in this.billInfList) {
-        strarr.push((this.billInfList[i]["zbiAmount"] * '10000'));
+        strarr.push(this.billInfList[i]["zbiAmount"]);
       }
       return Math.floor(eval(strarr.join("+")) * 100) / 100; //结果
     },
@@ -483,7 +541,7 @@ export default {
             if(response.data){
                 if(response.data[0].zciStatus == '00'){
                     this.$confirm(
-                        '请缴纳手续费'+ this.needPay + '元',
+                        '请缴纳手续费'+ this.needPay + '元',
                         "警告",
                         {
                         confirmButtonText: "去缴费",