소스 검색

各模块详情返回按钮修改。融资申请,融资开立应收账款列表添加修改按钮

ch 4 년 전
부모
커밋
1d57da7432

+ 2 - 2
front-vue/src/views/service/bill/billDetail.vue

@@ -276,8 +276,8 @@
       <img width="100%" :src="invoiceImageUrl" alt="" />
     </el-dialog>
 
-    <div style="text-align: center">
-      <el-button type="primary" @click="submit()">取消</el-button>
+    <div style="margin-top: 100px; margin-left:45%">
+      <el-button type="info" @click="submit()">取消</el-button>
     </div>
   </div>
 </template>

+ 1 - 0
front-vue/src/views/service/bill/editBill.vue

@@ -75,6 +75,7 @@
             <el-select
               style="width: 300px"
               v-model="form.zbiPayerId"
+              :disabled="true"
               filterable
               clearable
               remote

+ 117 - 3
front-vue/src/views/service/companyInformation/companyInformation.vue

@@ -136,11 +136,14 @@
                         </div>
                     </el-upload>
                 </el-col>
-                <el-col :span="12"  style="margin-top:2%;margin-left:2%;line-height: 34px; text-align:left;">
+                <el-col :span="12" v-if="scyCfcaUserId" style="margin-top:2%;margin-left:2%;line-height: 34px; text-align:left;">
                    CFCA企业认证证书:<span>{{scyCfcaUserId}}</span>
                 </el-col>
             </el-row>
             <el-row>
+                <el-col :span="12" style="margin-top:2%;margin-left:2%;line-height: 34px; text-align:left;">
+                   CFCA授权编号:<span v-if="scyCfcaAuthNumber">{{scyCfcaAuthNumber}}</span><button v-else @click="openWindows">开炮</button>
+                </el-col>
                 <!-- <el-upload v-if="commitmentShow" ref="upload" class="upload-demo" action="" 
                 :on-preview="handleFilePreview" multiple :file-list="commitmentFileList" :auto-upload="false">
                 </el-upload> -->
@@ -334,11 +337,28 @@
         <el-dialog :visible.sync="dialogVisible">
             <img width="100%" :src="dialogImageUrl" alt="">
         </el-dialog>
+        <!--短信-->
+        <el-dialog  :visible.sync="messageIsShow" width="800px"  append-to-body :before-close = "cancelMessage" center>
+            <el-form ref="messageForm"  :disabled="false" :model="messageForm"  v-if="messageIsShow" label-width="150px"  class="demo-form-inline" :inline="true" @submit.native.prevent>
+                    <el-form-item label="验证码" prop="validCode">
+                        <el-input v-model="messageForm.validCode" style="width: 200px" maxlength="6"  oninput="value=value.replace(/[^\d]/g,'')"/>
+                    </el-form-item>
+                    <el-form-item>
+                        <el-button  v-show="messShow"  type="success" @click="send">点击获取验证码</el-button>
+                        <el-button v-show="!messShow" type="success" disabled><span>{{timer}}</span>秒后重新获取</el-button>
+                    </el-form-item>
+
+            </el-form>
+            <div slot="footer" class="dialog-footer">
+                <el-button type="primary" @click="checkCode">确定</el-button>
+                <el-button @click="cancelMessage">取 消</el-button>
+            </div>
+        </el-dialog>
     </el-tabs>
 </template>
 <script>
 import {
-    companyQuery,listRel
+    companyQuery,listRel,sendMessage,checkCode
 } from "@/api/service/companyInformation/companyInformation";
 import { getToken } from "@/utils/auth";
 export default {
@@ -346,9 +366,18 @@ export default {
     components: {},
     data() {
         return {
-            scyCfcaUserId:"121212121212",
+            scyCfcaUserId:null,
+            scyCfcaAuthNumber:null,
             dialogImageUrl: "",
             dialogVisible: false,
+            //短信展示
+            messageIsShow:false,
+            //短信
+            messageForm:{validCode:""},
+            //控制短信验证码倒计时是否展示
+            messShow:true,
+            timer:60,
+            cfcaNumber:null,
             // 遮罩层
             loading: true,
             form: {
@@ -504,7 +533,88 @@ export default {
                 row.launchScrStatus
             );
         },
+        openWindows(){
+            this.messageIsShow = true;
+        },
+        //发送短信验证码
+        send(){
+            //发送
+            sendMessage().then((response) => {
+                if(response.data){
+                    //手机号
+                    var newIphone = response.data.newIphone;
+                    //结果
+                    var result = response.data.result;
+                    this.cfcaNumber = response.data.cfcaNumber;
+                    this.messShow = false;
+                    this.auth_timer = window.setInterval(() => {
+                        this.messShow = false;
+                        setTimeout(() => {
+                                this.timer--;
+                                if(this.timer <= 0 ){
+                                    this.messShow = true;
+                                    clearInterval(this.auth_timer);
+                                }
+                            }, 0)
+                        },1000)
+                    //成功
+                    if("60000000" == result){
+                        this.$message({
+                            message: "已向经办人手机号为"+newIphone+"发送短信验证码,请注意查收",
+                            type: 'warning'
+                        });
+                    }else{//失败
+                        this.$message({
+                            message: "短信发送失败",
+                            type: 'warning'
+                        });
+                    }
+
+                }
+            });
+        },
+        //校验验证码是否正确
+        checkCode(){
+                if(!this.messageForm.validCode){
+                        this.$message({
+                            message: "请输入验证码",
+                            type: 'warning'
+                        });
+                        return;
+                }
+                this.messageForm.cfcaNumber = this.cfcaNumber;
+                //校验验证码
+                checkCode(this.messageForm).then((response) => {
+                    if(response.data){
+                        //结果
+                        var verification = response.data.verification;
+                        //匹配
+                        if("60000000" == verification){
+                            this.messageIsShow = false;
+                            //激活成功
+                            this.getList()
+                            // this.contractSigning();
+                        }else{//不匹配
+                            this.$message({
+                                message: "验证有误,请重新输入",
+                                type: 'warning'
+                            });
+                        }
 
+                    }
+            });
+        },
+        //关闭短信
+        cancelMessage(){
+            this.messageIsShow = false;
+            this.resetMessage();
+        },
+        resetMessage() {
+            this.messageForm = {
+                validCode:""
+            };
+            this.resetForm("messageForm");
+        },
         getList() {
             this.loading = true;
             companyQuery().then((response) => {
@@ -512,6 +622,10 @@ export default {
                 if (response.data.basicList.length > 0) {
                     this.form = response.data.basicList[0];
                     this.scyCfcaUserId = this.form.scyCfcaUserId;
+                    if(response.data.basicList[0].scyCfcaAuthNumber){
+                       this.scyCfcaAuthNumber = this.form.scyCfcaAuthNumber;
+                    }
+                    
                 }
                 //经办人信息
                 if (response.data.contactsList) {

+ 3 - 2
front-vue/src/views/service/contract/detailContract.vue

@@ -174,9 +174,10 @@
 
     </el-form>
     <!-- 保存 -->
-    <div class="footer" style="margin-top: 100px; float: right">
+    <div style="margin-top: 100px; margin-left:45%">
       <el-button type="info" @click="cancel">取消</el-button>
-      <!-- <el-button type="success" @click="submitForm">提交</el-button> -->
+      <!-- <el-button type="success" @click="submitForm"
+          >提交</el-button> -->
     </div>
   </div>
 </template>

+ 14 - 1
front-vue/src/views/service/credit/creditApply.vue

@@ -34,6 +34,7 @@
                                 icon="el-icon-view"
                                 @click="handleDetail(scope.$index, ticketList)"
                             >详情</el-button>
+                            <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.$index, ticketList)">修改</el-button>
                             </template>
                         </el-table-column>
                     </el-table>
@@ -279,6 +280,11 @@
         <el-dialog title="详情" :visible.sync="openDetailBill" width="1120px" append-to-body>
             <detail-bill :zbiId="this.zbiId"   v-if="openDetailBill"></detail-bill>
         </el-dialog>
+         <!-- 修改往来账款 -->
+        <el-dialog title="修改往来账款" :visible.sync="openEditBill" width="1120px" append-to-body>
+            <edit-bill :zbiId="this.zbiId"  v-if="openEditBill"></edit-bill>
+        </el-dialog>
+
         <!--预览-->
         <el-dialog  :visible.sync="openFile" width="1000px" append-to-body>
             <img :src="wordUrl" v-if="show" width='450px' height='500px'/>
@@ -293,9 +299,10 @@ import {accAdd} from "@/utils/calculation";
 import {getToken} from "@/utils/auth";
 import AddBill from "@/views/service/bill/addBill";
 import DetailBill from "@/views/service/credit/billDetail";
+import EditBill from "@/views/service/bill/editBill";
 export default {
     name: "creditApply",
-    components: {AddBill,DetailBill},
+    components: {AddBill,DetailBill,EditBill},
     data() {
         return {
             //往来账款id
@@ -341,6 +348,7 @@ export default {
             open: false,
             openAddBill: false,
             openDetailBill: false,
+            openEditBill: false,
            //应付账款
            payList:[],
            //应付账款表格数据
@@ -559,6 +567,11 @@ export default {
         this.zbiId = rows[0].zbiId
         this.openDetailBill = true
     },
+    /* 修改按钮 */
+    handleUpdate(index, rows) {
+        this.zbiId = rows[0].zbiId;
+        this.openEditBill = true
+    },
     onSelectAll() {
         if(this.$refs.tablePay){
             this.$refs.tablePay.clearSelection();

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

@@ -266,7 +266,7 @@
         </el-dialog>
         <!-- 修改往来账款 -->
         <el-dialog title="修改往来账款" :visible.sync="openEditBill" width="1120px" append-to-body>
-            <edit-bill :zbiId="this.zbiId"  @addClick="emitAddClick" v-if="openEditBill"></edit-bill>
+            <edit-bill :zbiId="this.zbiId"  v-if="openEditBill"></edit-bill>
         </el-dialog>
 
          <!--预览-->

+ 2 - 2
front-vue/src/views/service/financeProduct/detailFinanceProduct.vue

@@ -238,10 +238,10 @@
       </span>
     </el-dialog>
     <!-- 保存 -->
-    <div class="footer" style="margin-top: 100px; float: right">
+    <div style="margin-top: 100px; margin-left:45%">
       <el-button type="info" @click="cancel">取消</el-button>
       <!-- <el-button type="success" @click="submitForm"
-        >提交</el-button> -->
+          >提交</el-button> -->
     </div>
   </div>
 </template>

+ 4 - 3
front-vue/src/views/service/financeRecord/detailFinanceRecord.vue

@@ -129,9 +129,10 @@
                       :title="dict.pfiFileName"
                   >
           </el-row>
-      <div slot="footer" class="dialog-footer" style="margin-top: 100px; float: right">
-        <!-- <el-button type="primary" @click="submitForm">确 定</el-button> -->
-        <el-button @click="cancel">取 消</el-button>
+      <div style="margin-top: 100px; margin-left:45%">
+        <el-button type="info" @click="cancel">取消</el-button>
+        <!-- <el-button type="success" @click="submitForm"
+            >提交</el-button> -->
       </div>
       <!--预览-->
       <el-dialog  :visible.sync="openFile" width="1000px" append-to-body>

+ 25 - 0
front-vue/src/views/service/rel/detailCompany.vue

@@ -49,6 +49,11 @@
                     <el-input v-model="form.scyLegalId" disabled />
                 </el-form-item>
             </el-form>
+            <div style="margin-top: 100px; margin-left:45%">
+                <el-button type="info" @click="cancel">取消</el-button>
+                <!-- <el-button type="success" @click="submitForm"
+                    >提交</el-button> -->
+            </div>
         </el-tab-pane>
         <!--————————————————————————————————————联系人信息————————————————————————————————————————————————-->
         <el-tab-pane label="联系人信息" name="second">
@@ -69,6 +74,11 @@
                     </el-col>
                 </el-row>
             </el-form>
+            <div style="margin-top: 100px; margin-left:45%">
+                <el-button type="info" @click="cancel">取消</el-button>
+                <!-- <el-button type="success" @click="submitForm"
+                    >提交</el-button> -->
+            </div>
         </el-tab-pane>
         <!--———————————————————————————————————— 发票信息 ————————————————————————————————————————————————-->
         <el-tab-pane label="发票信息" name="third">
@@ -115,6 +125,11 @@
                     </el-col>
                 </el-row>
             </el-form>
+            <div style="margin-top: 100px; margin-left:45%">
+                <el-button type="info" @click="cancel">取消</el-button>
+                <!-- <el-button type="success" @click="submitForm"
+                    >提交</el-button> -->
+            </div>
         </el-tab-pane>
         <!--———————————————————————————————————— 链属关系 ————————————————————————————————————————————————-->
         <el-tab-pane label="链属关系" name="Section">
@@ -172,6 +187,11 @@
             </el-table>
 
             <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getRelList" />
+            <div style="margin-top: 100px; margin-left:45%">
+                <el-button type="info" @click="cancel">取消</el-button>
+                <!-- <el-button type="success" @click="submitForm"
+                    >提交</el-button> -->
+            </div>
         </el-tab-pane>
         <!--———————————————————————————————————— 附件信息 ————————————————————————————————————————————————-->
         <el-tab-pane label="附件信息" name="eighth">
@@ -306,6 +326,11 @@
                 <!-- <el-upload v-if="commitmentShow" ref="upload" class="upload-demo" action="" :on-preview="handleFilePreview" multiple :file-list="commitmentFileList" :auto-upload="false">
                 </el-upload> -->
             </el-row>
+            <div style="margin-top: 100px; margin-left:45%">
+                <el-button type="info" @click="cancel">取消</el-button>
+                <!-- <el-button type="success" @click="submitForm"
+                    >提交</el-button> -->
+            </div>
         </el-tab-pane>
         <el-dialog :visible.sync="dialogVisible">
             <img width="100%" :src="dialogImageUrl" alt="">

+ 2 - 2
front-vue/src/views/service/repayment/detailRepayment.vue

@@ -107,10 +107,10 @@
       <el-table-column label="收款金额" align="center" prop="zfrLoanAmount" :show-overflow-tooltip="true" />
       </el-table>
     </el-form>
-    <div class="footer" style="margin-top: 100px; float: right">
+     <div style="margin-top: 100px; margin-left:45%">
       <el-button type="info" @click="cancel">取消</el-button>
       <!-- <el-button type="success" @click="submitForm"
-        >提交</el-button> -->
+          >提交</el-button> -->
     </div>
   </div>
 </template>