Przeglądaj źródła

融信按钮根据条件展示,发票增加下载

xuefy 4 lat temu
rodzic
commit
dd1b37e4eb

+ 16 - 2
front-vue/src/views/service/credit/credit.vue

@@ -176,6 +176,12 @@
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
             v-hasPermi="['credit:credit:update']"
+            v-if="(scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiCoreStatus == '03') 
+                  || (scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' && scope.row.zfiSupplierStatus == '03')
+                  ||(scope.row.zfiCreateType == '0' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '03')
+                  ||(scope.row.zfiCreateType == '0' && scope.row.zfiStatus =='00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null'))
+                  ||(scope.row.zfiCreateType == '0' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '03')
+                  ||(scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '03')"
           >修改</el-button>
            <el-button
             size="mini"
@@ -183,6 +189,7 @@
             icon="el-icon-edit"
             @click="handleApprove(scope.row)"
             v-hasPermi="['credit:credit:approve']"
+            v-if="scope.row.zfiCreateType == '0' && scope.row.zfiStatus == '00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null')"
           >确权</el-button>
           <el-button
             size="mini"
@@ -190,7 +197,7 @@
             icon="el-icon-edit"
             @click="handleAddInformation(scope.row)"
             v-hasPermi="['credit:credit:addInfor']"
-            v-if="scope.row.zfiCreateType == '1' && scope.row.zfiSupplierStatus=='03'"
+            v-if="scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null')"
           >补充资料</el-button>
           <el-button
             size="mini"
@@ -198,6 +205,7 @@
             icon="el-icon-edit"
             @click="handleSignFor(scope.row)"
             v-hasPermi="['credit:credit:signFor']"
+            v-if="scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') "
           >签收</el-button>
           <el-button
             size="mini"
@@ -205,7 +213,7 @@
             icon="el-icon-edit"
             @click="handleGoFinance(scope.row)"
             v-hasPermi="['credit:credit:goFinance']"
-            v-if="scope.row.zfiStatus == '02'"
+            v-if="(scope.row.zfiCreateType == '1' ||scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2') && scope.row.zfiStatus == '02'"
           >去融资</el-button>
           <el-button
             size="mini"
@@ -213,6 +221,12 @@
             icon="el-icon-edit"
             @click="seal(scope.row)"
             v-hasPermi="['credit:credit:seal']"
+            v-if="(scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiCoreStatus == '01') 
+                  ||(scope.row.zfiCreateType == '1' &&  scope.row.zfiStatus =='01' &&  scope.row.zfiSupplierStatus == '01') 
+                  ||(scope.row.zfiCreateType == '0' &&  scope.row.zfiStatus =='00' &&  scope.row.zfiCoreStatus == '01')
+                  ||(scope.row.zfiCreateType == '0' &&  scope.row.zfiStatus =='01' &&  scope.row.zfiSupplierStatus == '01')
+                  ||(scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '01')
+                  ||(scope.row.zfiCreateType == '2' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '01')"
           >盖章</el-button>
           <el-button
            v-if="(scope.row.zfiCreateType == '1') &&

+ 1 - 1
front-vue/src/views/service/credit/creditSeal.vue

@@ -189,7 +189,7 @@ import {sendMessage,checkCode,faceAuth,checkFaceAuth,contractSigning} from "@/ap
 import pdfShow from "./pdfShow";
 import {getToken} from "@/utils/auth";
 export default {
-    name: "addCredit",
+    name: "CreditSeal",
     components: {pdfShow},
     data() {
         return {

+ 14 - 0
front-vue/src/views/service/invoice/invoice.vue

@@ -175,6 +175,7 @@ import { listInvoice,getInvoiceDetail} from "@/api/service/invoice/invoice";
 import Editor from '@/components/Editor';
 import {columnQuery,columnfilter} from "@/api/common/columnSetting";
 import ColumnSetting from '../../../components/Table/columnSetting.vue';
+import {getToken} from "@/utils/auth";
 export default {
   name: "invoice",
   components: {
@@ -300,6 +301,19 @@ export default {
       }
       columnfilter(this.selfDom);
     },
+    //文件下载
+    handleDownload(row){
+        const pfiUrl = row.pfiUrl;
+        if(pfiUrl != null && pfiUrl != ''){
+        window.open(pfiUrl +"/"+ getToken());
+        }else{
+            this.$message({
+            message: '该附件不存在!',
+            type: 'warning'
+            });
+            return;
+        }
+    },
     /** 查询收开票信息列表 */
     getList() {
       this.loading = true;