ソースを参照

fix(授信管理):授信功能修改

sufan 7 ヶ月 前
コミット
bd6567ffcf

BIN
dist.rar


+ 4 - 1
src/components/UpDownDrag/index.vue

@@ -97,7 +97,8 @@ export default {
     display: flex;
     justify-content: space-between;
     padding: 0 20px;
-    margin-bottom: 20px;
+    /* margin-bottom: 20px; */
+    z-index: 20;
   }
   .drag-container-bottom {
     width: 100%;
@@ -105,5 +106,7 @@ export default {
     background-color: #fff;
     height: calc(100vh - 560px);
     overflow-y: auto;
+    z-index: 20;
+    padding-top: 20px;
   }
 </style>

+ 13 - 0
src/utils/validate.js

@@ -55,3 +55,16 @@ export function validNumber(number) {
 export function validCharacter(character) {
   return /^[\u4E00-\u9FA5]+$/.test(character)
 }
+
+/**
+ * 校验是否是null undefined ''
+ * @param {null undefined '' } value
+ * @returns {Boolean}
+ */
+export function validSpecialEmpty(value) {
+  if (value === null || value === undefined || value === '') {
+    return true
+  } else {
+    return false
+  }
+}

+ 2 - 2
src/views/creditManage/supplierManage/admissionReport/components/CompanyBasicInfo/BusinessAddress.vue

@@ -46,7 +46,7 @@
         />
       </el-form-item>
       <el-form-item
-        label=" 办公环境"
+        label=" 办公环境"
         prop="resource"
       >
         <cy-upload
@@ -54,7 +54,7 @@
           :upload-params="{}"
           :file-data="ruleForm.fileStorageList"
           :upload-from-orange-status="true"
-          placeholder="请上 办公环境"
+          placeholder="请上 办公环境"
         />
       </el-form-item>
       <el-form-item

+ 1 - 1
src/views/creditManage/supplierManage/auditing/auditingMain.vue

@@ -7,7 +7,7 @@
         <main-enterprise :ref="'mainEnterprise'+index" :details-info="item" :disabled="disabled" type-name="主企业审核" />
       </div>
     </cy-info-title>
-    <cy-info-title type="collapse" name="企业商誉情况">
+    <cy-info-title type="collapse" name="企业商誉情况" style="margin-top: 20px">
       <corporate-goodwill ref="mainCorporate" :disabled="disabled" :details-info="detailsInfo.enterprise" />
     </cy-info-title>
     <cy-info-title v-if="detailsInfo.hasGuaranteeEnterprise" type="collapse" name="担保企业审核">

+ 1 - 1
src/views/creditManage/supplierManage/auditing/components/CorporateGoodwill/index.vue

@@ -144,7 +144,7 @@ export default {
             if (newsTable.length) {
               for (let i = 0; i < newsTable.length; i++) {
                 const { News } = newsTable[i]
-                if (News !== 1 || News !== 0) {
+                if (News !== 1 && News !== 0) {
                   this.$message.warning('请选择重大负面新闻舆情')
                   return
                 }

+ 31 - 1
src/views/creditManage/supplierManage/auditing/components/MainEnterprise.vue

@@ -53,6 +53,24 @@
           </el-form-item>
         </div>
       </div>
+      <el-form-item label="有无失信被执行记录" prop="recordOfDishonestyExecution">
+        <el-select v-model="ruleForm.recordOfDishonestyExecution" :disabled="disabled" placeholder="请选择有无失信被执行记录">
+          <el-option label="有" :value="1"></el-option>
+          <el-option label="无" :value="0"></el-option>
+        </el-select>
+      </el-form-item>
+      <el-form-item label="有无被执行记录" prop="executedRecord">
+        <el-select v-model="ruleForm.executedRecord" :disabled="disabled" placeholder="请选择有无被执行记录">
+          <el-option label="有" :value="1"></el-option>
+          <el-option label="无" :value="0"></el-option>
+        </el-select>
+      </el-form-item>
+      <el-form-item label="有无限高消费情况" prop="stCount">
+        <el-select v-model="ruleForm.stCount" :disabled="disabled" placeholder="请选择有无限高消费情况">
+          <el-option label="有" :value="1"></el-option>
+          <el-option label="无" :value="0"></el-option>
+        </el-select>
+      </el-form-item>
     </el-form>
   </div>
 </template>
@@ -84,7 +102,10 @@ export default {
         accumulatedOverdueTimes: '',
         numberOfApprovalQueries: '',
         amountOfGuaranteeLiability: '',
-        badRecords: ''
+        badRecords: '',
+        recordOfDishonestyExecution: '',
+        executedRecord: '',
+        stCount: ''
       },
       rules: {
         numberOfOverdueAccounts: [
@@ -110,6 +131,15 @@ export default {
         ],
         badRecords: [
           { required: true, message: '请选择关注类和不良类贷款记录', trigger: 'change' }
+        ],
+        recordOfDishonestyExecution: [
+          { required: true, message: '请选择有无信被执行记录', trigger: 'change' }
+        ],
+        executedRecord: [
+          { required: true, message: '请选择有无被执行记录', trigger: 'change' }
+        ],
+        stCount: [
+          { required: true, message: '请选择有无限高消费情况', trigger: 'change' }
         ]
       },
       tableData: [],

+ 15 - 15
src/views/creditManage/supplierManage/auditingTwo/auditingTwoMain.vue

@@ -23,6 +23,7 @@
 
 <script>
 import { getTwoReviewInfo, oneClickSecondEvaluationSubmit } from '@/api/creditManage/supplierManage'
+import { validSpecialEmpty } from '@/utils/validate'
 export default {
   components: {
     BasicInfo: () => import('./components/BasicInfo'),
@@ -100,27 +101,26 @@ export default {
     async oneClickCalculation() {
       const data = await this.getParams()
       const { scopeCompliance, mapFilesCompliance, rentalFilesCompliance, waterFilesCompliance, officeFilesCompliance } = data
-      if (scopeCompliance === undefined) {
+      if (validSpecialEmpty(scopeCompliance)) {
         this.$message.warning('请选择经营范围是否达标')
         return
       }
-      if (mapFilesCompliance === undefined || !mapFilesCompliance) {
+      if (validSpecialEmpty(mapFilesCompliance)) {
         this.$message.warning('请选择地点定位图是否达标')
         return
       }
-      if (rentalFilesCompliance === undefined || !rentalFilesCompliance) {
+      if (validSpecialEmpty(rentalFilesCompliance)) {
         this.$message.warning('请选择租房合同是否达标')
         return
       }
-      if (waterFilesCompliance === undefined || !waterFilesCompliance) {
-        this.$message.warning('请选择房缴纳流水是否达标')
+      if (validSpecialEmpty(waterFilesCompliance)) {
+        this.$message.warning('请选择房缴纳流水是否达标')
         return
       }
-      if (officeFilesCompliance === undefined || !officeFilesCompliance) {
-        this.$message.warning('请选择办公环境是否达标')
+      if (validSpecialEmpty(officeFilesCompliance)) {
+        this.$message.warning('请选择办公环境是否达标')
         return
       }
-      console.log(data, 8888)
       oneClickSecondEvaluationSubmit({ Loading: true, ...data }).then(({ data }) => {
         this.assessData = data
       })
@@ -130,24 +130,24 @@ export default {
       const auditConclusion = await this.$refs.auditConclusion.getParams()
       const assess = await this.$refs.assess.getParams()
       const { scopeCompliance, mapFilesCompliance, rentalFilesCompliance, waterFilesCompliance, officeFilesCompliance } = data
-      if (scopeCompliance === undefined) {
+      if (validSpecialEmpty(scopeCompliance)) {
         this.$message.warning('请选择经营范围是否达标')
         return false
       }
-      if (mapFilesCompliance === undefined || !mapFilesCompliance) {
+      if (validSpecialEmpty(mapFilesCompliance)) {
         this.$message.warning('请选择地点定位图是否达标')
         return
       }
-      if (rentalFilesCompliance === undefined || !rentalFilesCompliance) {
+      if (validSpecialEmpty(rentalFilesCompliance)) {
         this.$message.warning('请选择租房合同是否达标')
         return
       }
-      if (waterFilesCompliance === undefined || !waterFilesCompliance) {
-        this.$message.warning('请选择房缴纳流水是否达标')
+      if (validSpecialEmpty(waterFilesCompliance)) {
+        this.$message.warning('请选择房缴纳流水是否达标')
         return
       }
-      if (officeFilesCompliance === undefined || !officeFilesCompliance) {
-        this.$message.warning('请选择办公环境是否达标')
+      if (validSpecialEmpty(officeFilesCompliance)) {
+        this.$message.warning('请选择办公环境是否达标')
         return
       }
 

+ 2 - 2
src/views/creditManage/supplierManage/auditingTwo/components/BusinessAddress.vue

@@ -27,7 +27,7 @@
               />
             </div>
             <div class="address-box">
-              <div>房缴纳流水:</div>
+              <div>房缴纳流水:</div>
               <cy-upload
                 ref="fileStorage"
                 :upload-params="{}"
@@ -36,7 +36,7 @@
               />
             </div>
             <div class="address-box">
-              <div>办公环境:</div>
+              <div>办公环境:</div>
               <cy-upload
                 ref="fileStorage"
                 :upload-params="{}"

+ 35 - 34
src/views/creditManage/supplierManage/supplementaryInfo/components/AddInfo.vue

@@ -1,6 +1,5 @@
 <template>
   <div class="add-info">
-    <cy-info-title type="center">经营地址相关情况</cy-info-title>
     <el-form
       ref="ruleForm"
       :model="ruleForm"
@@ -8,6 +7,34 @@
       label-position="top"
       class="rule-form-orange"
     >
+      <cy-info-title type="center">征信信息</cy-info-title>
+      <el-form-item style="width: 100%">
+        <template slot="label">
+          <span>个人征信</span>
+          <span class="slot-name-desc">烦请本人线上查询个人征信,并填写我司邮箱作为央行等银行发送征信报告的指定邮箱operation@changan-inkasso.com</span>
+        </template>
+        <cy-comm-table
+          ref="commTable"
+          style="margin-top: 10px; width: 100%"
+          :columns="columns"
+          :data="tableData"
+          :count="0"
+        />
+      </el-form-item>
+      <el-form-item style="width: 100%">
+        <template slot="label">
+          <span>企业征信查询授权书</span>
+          <span class="slot-name-desc">必须已认证已签署才可提交</span>
+        </template>
+        <cy-comm-table
+          name="enterprise"
+          style="margin-top: 10px; width: 100%"
+          :columns="enterpriseColumns"
+          :data="enterpriseTableData"
+          :count="0"
+        />
+      </el-form-item>
+      <cy-info-title type="center">企业经营地址</cy-info-title>
       <el-form-item label="经营地址" style="width: 100%;" prop="businessAddress">
         <el-input v-model="ruleForm.businessAddress" placeholder="请输入经营地址" disabled />
       </el-form-item>
@@ -35,7 +62,7 @@
           disabled
         />
       </el-form-item>
-      <el-form-item label="房缴纳流水" class="one-form-item form-required">
+      <el-form-item label="房缴纳流水" class="one-form-item form-required">
         <cy-upload
           ref="waterElectricityFees"
           :upload-params="{
@@ -43,11 +70,11 @@
           }"
           :file-data="waterElectricityFees"
           :upload-from-orange-status="true"
-          placeholder="请上传房缴纳流水"
+          placeholder="请上传房缴纳流水"
           disabled
         />
       </el-form-item>
-      <el-form-item label="办公环境" class="one-form-item form-required">
+      <el-form-item label="办公环境" class="one-form-item form-required">
         <cy-upload
           ref="officeEnvironment"
           :upload-params="{
@@ -55,7 +82,7 @@
           }"
           :file-data="officeEnvironment"
           :upload-from-orange-status="true"
-          placeholder="请上传办公环境"
+          placeholder="请上传办公环境"
           disabled
         />
       </el-form-item>
@@ -110,33 +137,7 @@
           />
         </el-form-item>
       </template>
-      <cy-info-title type="center">征信相关情况111</cy-info-title>
-      <el-form-item style="width: 100%">
-        <template slot="label">
-          <span>个人征信</span>
-          <span class="slot-name-desc">烦请本人线上查询个人征信,并填写我司邮箱作为央行等银行发送征信报告的指定邮箱operation@changan-inkasso.com</span>
-        </template>
-        <cy-comm-table
-          ref="commTable"
-          style="margin-top: 10px; width: 100%"
-          :columns="columns"
-          :data="tableData"
-          :count="0"
-        />
-      </el-form-item>
-      <el-form-item style="width: 100%">
-        <template slot="label">
-          <span>企业征信查询授权书</span>
-          <span class="slot-name-desc">必须已认证已签署才可提交</span>
-        </template>
-        <cy-comm-table
-          name="enterprise"
-          style="margin-top: 10px; width: 100%"
-          :columns="enterpriseColumns"
-          :data="enterpriseTableData"
-          :count="0"
-        />
-      </el-form-item>
+
     </el-form>
   </div>
 </template>
@@ -352,11 +353,11 @@ export default {
             return
           }
           if (!waterElectricityFees.length) {
-            this.$message.warning('请上传房缴纳流水')
+            this.$message.warning('请上传房缴纳流水')
             return
           }
           if (!officeEnvironment.length) {
-            this.$message.warning('请上传办公环境')
+            this.$message.warning('请上传办公环境')
             return
           }
 

+ 2 - 2
src/views/creditManage/supplierManage/supplementaryInfo/components/BasicInfo.vue

@@ -6,8 +6,8 @@
       label-width="150px"
       class="rule-form-orange"
     >
-      <el-form-item label="公司名称" class="one-form-item">
-        <el-input v-model="ruleForm.corporateName" disabled placeholder="请输入公司名称" />
+      <el-form-item label="企业名称" class="one-form-item">
+        <el-input v-model="ruleForm.corporateName" disabled placeholder="请输入企业名称" />
       </el-form-item>
 
       <el-form-item label="公统一社会信用代码" class="one-form-item">

+ 35 - 33
src/views/creditManage/supplierManage/supplementaryInfo/components/GuaranteeAddInfo.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="guarantee-add-info">
-    <cy-info-title type="center">经营地址相关情况</cy-info-title>
+
     <el-form
       ref="ruleForm"
       :model="ruleForm"
@@ -9,6 +9,33 @@
       label-width="150px"
       class="rule-form-orange"
     >
+      <cy-info-title type="center">征信信息</cy-info-title>
+      <el-form-item style="width: 100%">
+        <template slot="label">
+          <span>个人征信</span>
+          <span class="slot-name-desc">烦请本人线上查询个人征信,并填写我司邮箱作为央行等银行发送征信报告的指定邮箱operation@changan-inkasso.com</span>
+        </template>
+        <cy-comm-table
+          ref="commTable"
+          style="margin-top: 10px; width: 100%"
+          :columns="columns"
+          :data="tableData"
+          :count="0"
+        />
+      </el-form-item>
+      <el-form-item style="width: 100%">
+        <template slot="label">
+          <span>企业征信查询授权书</span>
+          <span class="slot-name-desc">必须已认证已签署才可提交</span>
+        </template>
+        <cy-comm-table
+          style="margin-top: 10px; width: 100%"
+          :columns="enterpriseColumns"
+          :data="enterpriseTableData"
+          :count="0"
+        />
+      </el-form-item>
+      <cy-info-title type="center">企业经营地址</cy-info-title>
       <el-form-item label="经营地址" style="width: 100%;" prop="businessAddress">
         <el-input v-model="ruleForm.businessAddress" placeholder="请输入经营地址" disabled />
       </el-form-item>
@@ -36,7 +63,7 @@
           disabled
         />
       </el-form-item>
-      <el-form-item label="房缴纳流水" class="one-form-item form-required" prop="waterElectricityFees">
+      <el-form-item label="房缴纳流水" class="one-form-item form-required" prop="waterElectricityFees">
         <cy-upload
           ref="waterElectricityFees"
           :upload-params="{
@@ -44,11 +71,11 @@
           }"
           :file-data="waterElectricityFees"
           :upload-from-orange-status="true"
-          placeholder="请上传房缴纳流水"
+          placeholder="请上传房缴纳流水"
           disabled
         />
       </el-form-item>
-      <el-form-item label="办公环境" class="one-form-item form-required" prop="officeEnvironment">
+      <el-form-item label="办公环境" class="one-form-item form-required" prop="officeEnvironment">
         <cy-upload
           ref="officeEnvironment"
           :upload-params="{
@@ -56,7 +83,7 @@
           }"
           :file-data="officeEnvironment"
           :upload-from-orange-status="true"
-          placeholder="请上传办公环境"
+          placeholder="请上传办公环境"
           disabled
         />
       </el-form-item>
@@ -109,32 +136,7 @@
           disabled
         />
       </el-form-item>
-      <cy-info-title type="center">征信相关情况222</cy-info-title>
-      <el-form-item style="width: 100%">
-        <template slot="label">
-          <span>个人征信</span>
-          <span class="slot-name-desc">烦请本人线上查询个人征信,并填写我司邮箱作为央行等银行发送征信报告的指定邮箱operation@changan-inkasso.com</span>
-        </template>
-        <cy-comm-table
-          ref="commTable"
-          style="margin-top: 10px; width: 100%"
-          :columns="columns"
-          :data="tableData"
-          :count="0"
-        />
-      </el-form-item>
-      <el-form-item style="width: 100%">
-        <template slot="label">
-          <span>企业征信查询授权书</span>
-          <span class="slot-name-desc">必须已认证已签署才可提交</span>
-        </template>
-        <cy-comm-table
-          style="margin-top: 10px; width: 100%"
-          :columns="enterpriseColumns"
-          :data="enterpriseTableData"
-          :count="0"
-        />
-      </el-form-item>
+
     </el-form>
   </div>
 </template>
@@ -333,11 +335,11 @@ export default {
             return
           }
           if (!waterElectricityFees.length) {
-            this.$message.warning('请上传房缴纳流水')
+            this.$message.warning('请上传房缴纳流水')
             return
           }
           if (!officeEnvironment.length) {
-            this.$message.warning('请上传办公环境')
+            this.$message.warning('请上传办公环境')
             return
           }
           if (!businessLicense.length) {

+ 12 - 5
src/views/creditManage/supplierManage/videoDue/components/Assess.vue

@@ -13,8 +13,11 @@
       <el-form-item label="得分" prop="name">
         <el-input v-model="detailsInfo.score" disabled placeholder="请输入得分" />
       </el-form-item>
+      <el-form-item label="修改得分" prop="fixScore">
+        <el-input v-model="detailsInfo.fixScore" :disabled="disabled" placeholder="请输入修改得分" />
+      </el-form-item>
       <el-form-item label="授信额度" prop="name">
-        <el-input v-model="detailsInfo.creditLimit" disabled placeholder="请输入授信额度" >
+        <el-input v-model="detailsInfo.creditLimit" disabled placeholder="请输入授信额度">
           <template slot="append">万元</template>
         </el-input>
       </el-form-item>
@@ -43,11 +46,15 @@ export default {
   data() {
     return {
       ruleForm: {
-        evaluationOpinions: ''
+        evaluationOpinions: '',
+        fixScore: ''
       },
       rules: {
         evaluationOpinions: [
           { required: true, message: '请选择审批结论', trigger: 'change' }
+        ],
+        fixScore: [
+          { required: true, message: '请输入修改得分', trigger: 'blur' }
         ]
       }
     }
@@ -55,15 +62,15 @@ export default {
   watch: {
     detailsInfo: {
       handler(newV) {
-        console.log(newV)
-        const { revenueRating, admitted, score, creditLimit, guaranteeEnterpriseResult, evaluationOpinions } = newV
+        const { revenueRating, admitted, score, creditLimit, guaranteeEnterpriseResult, evaluationOpinions, fixScore } = JSON.parse(JSON.stringify(newV))
         this.ruleForm = {
           revenueRating,
           admitted,
           score,
           creditLimit,
           guaranteeEnterpriseResult,
-          evaluationOpinions
+          evaluationOpinions,
+          fixScore
         }
       },
       deep: true,

+ 2 - 2
src/views/creditManage/supplierManage/videoDue/components/CompanyBasicInfo/BusinessAddress.vue

@@ -44,14 +44,14 @@
           placeholder="请上水电费缴纳流水"
         />
       </el-form-item>
-      <el-form-item label="办公环境">
+      <el-form-item label="办公环境">
         <cy-upload
           ref="fileStorage"
           :upload-params="{}"
           :file-data="defaultDatailsInfo.officeFiles"
           disabled
           :upload-from-orange-status="true"
-          placeholder="请上传办公环境"
+          placeholder="请上传办公环境"
         />
       </el-form-item>
       <el-form-item label="标准分值">