Преглед изворни кода

第二次选择收付款清空搜索条件,确权融信额度查询修改

xuefy пре 4 година
родитељ
комит
939f297e6a

+ 3 - 0
front-vue/src/views/service/credit/addCredit.vue

@@ -448,6 +448,9 @@ export default {
         },
         //打开应付账款选择列表
         openTicket() {
+            //清空搜索条件
+            this.queryParamsPay.zbiName = "";
+            this.queryParamsPay.receiveName = "";
             this.getAccountsPay();
             this.open = true;
             this.payTitle = "应付账款";

+ 1 - 0
front-vue/src/views/service/credit/addInformation.vue

@@ -425,6 +425,7 @@ export default {
         },
         //打开应收账款选择列表
         openTicket() {
+            this.queryParamsPay.zbiName = "";
             this.getAccountsCollection();
             this.open = true;
             this.payTitle = "应收账款";

+ 3 - 0
front-vue/src/views/service/credit/applyCreditEdit.vue

@@ -471,6 +471,9 @@ export default {
         },
         //打开应付账款选择列表
         openTicket() {
+            //清空搜索条件
+            this.queryParamsPay.zbiName = "";
+            this.queryParamsPay.payName = "";
             this.getAccountsCollection();
             this.open = true;
             this.payTitle = "应收账款";

+ 54 - 58
front-vue/src/views/service/credit/confirmationAudit.vue

@@ -84,21 +84,11 @@
                     </el-form-item>
                 </el-col>
                 <el-col :span="8" v-if="this.zfiCreateType == 0">
-                    <el-form-item label="授信额度" prop="zfiSupplierQuotaId" >
-                        <el-select
-                            style="width: 200px"
-                            v-model="form.zfiSupplierQuotaId"
-                            filterable
-                            clearable
-                            remote
-                            >
-                            <el-option
-                            v-for="item in creditLineList"
-                            :key="item.value"
-                            :label="item.label+item.remaining"
-                            :value="item.value">
+                    <el-form-item label="授信额度" prop="zfiCoreQuotaId">
+                        <el-select style="width: 200px" v-model="form.zfiCoreQuotaId" filterable clearable remote>
+                            <el-option v-for="item in creditLineList" :key="item.value" :label="item.label+item.remaining" :value="item.value">
                             </el-option>
-                            </el-select>
+                        </el-select>
                     </el-form-item>
                 </el-col>
                 <el-col :span="8" v-if="this.zfiCreateType != 0">
@@ -276,7 +266,7 @@
   </div>
 </template>
 <script>
-import {listSupplierCreditLine,getCreditDetail,getAccountsCollection,getSupplierAvailableBalance,getFile} from "@/api/service/credit/credit";
+import {listCreditLine,getCreditDetail,getAccountsCollection,getAvailableBalance,getFile} from "@/api/service/credit/credit";
 import {approveCredit} from "@/api/service/credit/creditHandle";
 import {accAdd} from "@/utils/calculation";
 import {getToken} from "@/utils/auth";
@@ -293,7 +283,8 @@ export default {
                 pageSize: 10,
             },
             creditParams: {
-                zfsqId:null
+                zfsqId:null,
+                type: "1",
             },
             supplierCreditParams: {
                  zfsqId:null
@@ -365,13 +356,32 @@ export default {
         };
     },
     watch:{
-        'form.zfiSupplierQuotaId':'change'
+        'form.zfiCoreQuotaId':'change'
     },
     created() {
         const zfiId = this.$route.params && this.$route.params.zfiId;
         getCreditDetail(zfiId).then((response) => {
              if(response.data){
-                this.listSupplierCreditLine(response.data);
+                this.form = response.data.financeInf;
+                //融信类型
+                this.zfiCreateType = response.data.financeInf.zfiCreateType;
+
+                //供应商开立
+                if(this.zfiCreateType == '2'){
+                        this.isUpdate = true;
+                }else{
+                      this.isUpdate = false;
+                }
+                //接收方
+                this.form.receiveName = response.data.receiveName;
+                //产品
+                this.form.zfpName = response.data.zfpName;
+                //开立方
+                this.form.openName = response.data.openName;
+                //创建人
+                this.form.createName = response.data.createName;
+                //签发金额大写
+                this.issuedAmount = this.smallToBig(this.form.zfiAmount);
              }
              if(response.data.payList){
                  this.ticketList = response.data.payList.records;
@@ -381,6 +391,8 @@ export default {
              }
              
         })
+        //授信额度
+        this.listCreditLine();
     },
     methods: {
 
@@ -394,41 +406,22 @@ export default {
             return row.cciId;
         },
         //供应商授信额度    
-        listSupplierCreditLine(data){
-              this.supplierCreditParams.zfsqId = data.financeInf.zfiSupplierQuotaId;
-              listSupplierCreditLine(this.supplierCreditParams).then((response) => {
-                this.creditLineList = response.data.map(item => {
-                      return { 
-                        value: item.zfsqId, 
-                        label: item.zfpName,
-                        zfpcrDateType: item.zfpcrDateType,
-                        zfpcrEndDate: item.zfpcrEndDate,
-                        zfpcrLoanType: item.zfpcrLoanType,
-                        zfpSplit: item.zfpSplit,
-                        zfpId: item.zfpId,
-                        zfpcrRate:item.zfpcrRate,
-                        remaining:item.remaining};
-                }); 
-                this.form = data.financeInf;
-                //融信类型
-                this.zfiCreateType = data.financeInf.zfiCreateType;
-
-                //供应商开立
-                if(this.zfiCreateType == '2'){
-                        this.isUpdate = true;
-                }else{
-                      this.isUpdate = false;
-                }
-                //接收方
-                this.form.receiveName = data.receiveName;
-                //产品
-                this.form.zfpName = data.zfpName;
-                //开立方
-                this.form.openName = data.openName;
-                //创建人
-                this.form.createName = data.createName;
-                //签发金额大写
-                this.issuedAmount = this.smallToBig(this.form.zfiAmount);
+        listCreditLine(){
+                listCreditLine(this.creditParams).then((response) => {
+                    this.creditLineList = response.data.map((item) => {
+                        return {
+                            value: item.zfpcrId,
+                            label: item.zfpName,
+                            zfpcrDateType: item.zfpcrDateType,
+                            zfpcrEndDate: item.zfpcrEndDate,
+                            zfpcrLoanType: item.zfpcrLoanType,
+                            zfpSplit: item.zfpSplit,
+                            zfpId: item.zfpId,
+                            zfpcrRate:item.zfpcrRate,
+                            zfpAuthType:item.zfpAuthType,
+                            remaining:item.remaining
+                        };
+                    });
               });
         },
         //应收账款查询列表
@@ -462,6 +455,9 @@ export default {
         },
         //打开应付账款选择列表
         openTicket() {
+            //清空搜索条件
+            this.queryParamsPay.zbiName = "";
+            this.queryParamsPay.payName = "";
             this.getAccountsCollection();
             this.open = true;
             this.payTitle = "应收账款";
@@ -631,16 +627,16 @@ export default {
          //利率
          this.zfpcrRate = obj.zfpcrRate;
         //长期
-        if("0"== this.zfsqDateType){
+        if("0"== this.zfpcrDateType){
             this.validityDate = "长期";
         }else{
              this.validityDate = obj.zfpcrEndDate;
         }
         var lineQueryParam = {};
-        lineQueryParam.zfsqId = val;
+        lineQueryParam.zfpcrId = val;
         //获取可用额度
-        getSupplierAvailableBalance(lineQueryParam).then((response) => {
-             this.availableAmt = response.data.remaining;
+        getAvailableBalance(lineQueryParam).then((response) => {
+            this.availableAmt = response.data.remaining;
         });
     },
     //格式化金额 
@@ -737,7 +733,7 @@ export default {
       this.$refs["form"].validate(valid => {
                //通过
               if("00" == param){
-                  if(!this.form.zfiSupplierQuotaId){
+                  if(!this.form.zfiCoreQuotaId){
                             this.$message({
                                 message: '请选择授信额度',
                                 type: 'warning'

+ 3 - 0
front-vue/src/views/service/credit/creditApply.vue

@@ -355,6 +355,9 @@ export default {
         },
         //打开应付账款选择列表
         openTicket() {
+            //清空搜索条件
+            this.queryParamsPay.zbiName = "";
+            this.queryParamsPay.payName = "";
             this.getAccountsCollection();
             this.open = true;
             this.payTitle = "应收账款";

+ 3 - 0
front-vue/src/views/service/credit/creditUpdate.vue

@@ -462,6 +462,9 @@ export default {
         },
         //打开应付账款选择列表
         openTicket() {
+            //搜索条件清空
+            this.queryParamsPay.zbiName = "";
+            this.queryParamsPay.receiveName = "";
             this.getAccountsPay();
             this.open = true;
             this.payTitle = "应付账款";

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

@@ -440,6 +440,9 @@ export default {
         },
         //打开应付账款选择列表
         openTicket() {
+            //清空搜索条件
+            this.queryParamsPay.zbiName = "";
+            this.queryParamsPay.payName = "";
             this.getAccountsCollection();
             this.open = true;
             this.payTitle = "应收账款";
@@ -613,7 +616,7 @@ export default {
          //利率
          this.zfpcrRate = obj.zfpcrRate;
         //长期
-        if("0"== this.zfsqDateType){
+        if("0"== this.zfpcrDateType){
             this.validityDate = "长期";
         }else{
              this.validityDate = obj.zfpcrEndDate;

+ 4 - 1
front-vue/src/views/service/credit/financeOpenUpdate.vue

@@ -486,6 +486,9 @@ export default {
         },
         //打开应付账款选择列表
         openTicket() {
+            //清空搜搜索条件
+            this.queryParamsPay.zbiName = "";
+            this.queryParamsPay.payName = "";
             this.getAccountsCollection();
             this.open = true;
             this.payTitle = "应收账款";
@@ -655,7 +658,7 @@ export default {
          //利率
          this.zfpcrRate = obj.zfpcrRate;
         //长期
-        if("0"== this.zfsqDateType){
+        if("0"== this.zfpcrDateType){
             this.validityDate = "长期";
         }else{
              this.validityDate = obj.zfpcrEndDate;

+ 2 - 0
front-vue/src/views/service/credit/signFor.vue

@@ -343,6 +343,8 @@ export default {
         },
         //打开应收账款选择列表
         openTicket() {
+            //清空搜索条件
+            this.queryParamsPay.zbiName = "";
             this.getAccountsCollection();
             this.open = true;
             this.payTitle = "应收账款";