zhangxiaojun месяцев назад: 7
Родитель
Сommit
1c42434486

+ 0 - 75
src/views/creditManage/projectCredit/components/historyView/CompanyAdd.vue

@@ -1,75 +0,0 @@
-<template>
-  <div class="project-info">
-    <el-form
-      ref="ruleFormRef"
-      :model="ruleForm"
-      label-position="top"
-      label-width="150px"
-      class="rule-form-orange"
-    >
-      <cy-info-title>供应商信息</cy-info-title>
-      <el-form-item label="公司名称" prop="supplierEnterpriseName">
-        <el-input v-model="ruleForm.supplierEnterpriseName" placeholder="请输入公司名称" />
-      </el-form-item>
-      <cy-info-title>核心企业</cy-info-title>
-      <el-form-item label="核心企业名称">
-        <el-input v-model="ruleForm.corporateName" placeholder="请输入项目名称" disabled />
-      </el-form-item>
-      <el-form-item label="统一社会信用代码">
-        <el-input v-model="ruleForm.socialCreditCode" placeholder="请输入项目名称" disabled />
-      </el-form-item>
-      <el-form-item label="法人代表">
-        <el-input v-model="ruleForm.legalRepresentative" placeholder="请输入项目名称" disabled />
-      </el-form-item>
-      <el-form-item label="成立日期">
-        <el-input v-model="ruleForm.startSate" placeholder="请输入项目名称" disabled />
-      </el-form-item>
-      <el-form-item label="注册地址">
-        <el-input v-model="ruleForm.address" placeholder="请输入项目名称" disabled />
-      </el-form-item>
-    </el-form>
-  </div>
-</template>
-
-<script>
-export default {
-  props: {
-    detailsInfo: {
-      type: Object,
-      default: () => {}
-    }
-  },
-  data() {
-    return {
-      ruleForm: {
-        projectType: '',
-        projectName: ''
-      }
-    }
-  },
-  watch: {
-    detailsInfo: {
-      handler(newV) {
-        if (newV && Object.keys(newV).length) {
-          const {
-            projectType,
-            projectName
-          } = JSON.parse(JSON.stringify(newV))
-
-          this.ruleForm = { projectType, projectName }
-        }
-      },
-      immediate: true,
-      deep: true
-    }
-  }
-}
-</script>
-
-  <style lang="scss" scoped>
-  .project-info {
-  .el-form {
-    padding: 10px 20px;
-  }
-  }
-  </style>

+ 32 - 30
src/views/creditManage/projectCredit/components/historyView/CompanySupplement.vue

@@ -17,41 +17,43 @@
           <el-radio :label="0">否</el-radio>
         </el-radio-group>
       </el-form-item>
-      <el-form-item label="与供应商存在历史合作" prop="historicalCooperation" disabled>
-        <el-radio-group v-model="ruleForm.historicalCooperation">
+      <el-form-item label="与供应商存在历史合作" prop="historicalCooperation">
+        <el-radio-group v-model="ruleForm.historicalCooperation" disabled>
           <el-radio :label="1">是</el-radio>
           <el-radio :label="0">否</el-radio>
         </el-radio-group>
       </el-form-item>
 
-      <cy-info-title>历史合作情况</cy-info-title>
-      <el-form-item label="历史合作时间" prop="historicalCooperationDuration">
-        <el-input v-model="ruleForm.historicalCooperationDuration" placeholder="历史合作时间" disabled />
-      </el-form-item>
-      <el-form-item label="历史合作规模" prop="historicalCooperationScale">
-        <el-input v-model="ruleForm.historicalCooperationScale" placeholder="历史合作规模" disabled />
-      </el-form-item>
-      <el-form-item label="累计历史开票金额" prop="historicalCooperationInvoicingAmount">
-        <el-input v-model="ruleForm.historicalCooperationInvoicingAmount" placeholder="累计历史开票金额" disabled />
-      </el-form-item>
-      <el-form-item label="历史回款最长账期" prop="historicalCooperationMaximumAccountingPeriod">
-        <el-input v-model="ruleForm.historicalCooperationMaximumAccountingPeriod" placeholder="历史回款最长账期" disabled />
-      </el-form-item>
-      <el-form-item label="历史合作项目数量" prop="historicalCooperationTimes">
-        <el-input v-model="ruleForm.historicalCooperationMaximumAccountingPeriod" placeholder="历史合作项目数量" disabled />
-      </el-form-item>
-      <el-form-item label="历史合作资料上传" style="width: 100%;">
-        <template slot="label">
-          <span>*历史合作资料上传</span>
-          <span style="color: #A3A8AC; margin-left: 10px; font-weight: 500;">提供近一年与核心企业合作的相关项目,招投标文件、购销合同、订单、验收单、结算单、发票、回单,格式为:pdf</span>
-        </template>
-        <cy-comm-table
-          ref="commTable"
-          :columns="columns"
-          :data="tableData"
-          :count="0"
-        />
-      </el-form-item>
+      <template v-if="ruleForm.historicalCooperation">
+        <cy-info-title>历史合作情况</cy-info-title>
+        <el-form-item label="历史合作时间" prop="historicalCooperationDuration">
+          <el-input v-model="ruleForm.historicalCooperationDuration" placeholder="历史合作时间" disabled />
+        </el-form-item>
+        <el-form-item label="历史合作规模" prop="historicalCooperationScale">
+          <el-input v-model="ruleForm.historicalCooperationScale" placeholder="历史合作规模" disabled />
+        </el-form-item>
+        <el-form-item label="累计历史开票金额" prop="historicalCooperationInvoicingAmount">
+          <el-input v-model="ruleForm.historicalCooperationInvoicingAmount" placeholder="累计历史开票金额" disabled />
+        </el-form-item>
+        <el-form-item label="历史回款最长账期" prop="historicalCooperationMaximumAccountingPeriod">
+          <el-input v-model="ruleForm.historicalCooperationMaximumAccountingPeriod" placeholder="历史回款最长账期" disabled />
+        </el-form-item>
+        <el-form-item label="历史合作项目数量" prop="historicalCooperationTimes">
+          <el-input v-model="ruleForm.historicalCooperationMaximumAccountingPeriod" placeholder="历史合作项目数量" disabled />
+        </el-form-item>
+        <el-form-item label="历史合作资料上传" style="width: 100%;">
+          <template slot="label">
+            <span>*历史合作资料上传</span>
+            <span style="color: #A3A8AC; margin-left: 10px; font-weight: 500;">提供近一年与核心企业合作的相关项目,招投标文件、购销合同、订单、验收单、结算单、发票、回单,格式为:pdf</span>
+          </template>
+          <cy-comm-table
+            ref="commTable"
+            :columns="columns"
+            :data="tableData"
+            :count="0"
+          />
+        </el-form-item>
+      </template>
     </el-form>
   </div>
 </template>

+ 0 - 114
src/views/creditManage/projectCredit/components/historyView/ProjectAdd.vue

@@ -1,114 +0,0 @@
-<template>
-  <div class="project-info">
-
-    <el-form
-      ref="ruleFormRef"
-      :model="ruleForm"
-      label-position="top"
-      label-width="150px"
-      class="rule-form-orange"
-    >
-      <cy-info-title>供应商信息</cy-info-title>
-      <el-form-item label="公司名称" prop="supplierEnterpriseName">
-        <el-input :value="ruleForm.supplierEnterpriseName" placeholder="请输入公司名称" disabled />
-      </el-form-item>
-      <cy-info-title>项目信息</cy-info-title>
-      <el-form-item label="项目类型" prop="projectType">
-        <el-select v-model="ruleForm.projectType" placeholder="请选择项目类型" disabled>
-          <el-option
-            v-for="item in projectTypes"
-            :key="item.value"
-            :label="item.label"
-            :value="item.value"
-          />
-        </el-select>
-      </el-form-item>
-      <el-form-item label="项目名称" class="two-form-item" prop="projectName">
-        <el-input :value="ruleForm.projectName" placeholder="请输入项目名称" disabled />
-      </el-form-item>
-
-      <template v-if="ruleForm.projectType === 'c_project_type_1'">
-        <cy-info-title>项目业主方信息</cy-info-title>
-        <el-form-item label="项目业主方公司名称">
-          <el-input :value="ruleForm.corporateName" placeholder="请输入项目业主方公司名称" disabled />
-        </el-form-item>
-        <el-form-item label="统一社会信用代码">
-          <el-input :value="ruleForm.socialCreditCode" placeholder="请输入统一社会信用代码" disabled />
-        </el-form-item>
-        <el-form-item label="法人代表">
-          <el-input :value="ruleForm.legalRepresentative" placeholder="请输入法人代表" disabled />
-        </el-form-item>
-        <el-form-item label="成立日期">
-          <el-input :value="ruleForm.startSate" placeholder="请输入成立日期" disabled />
-        </el-form-item>
-        <el-form-item label="注册地址">
-          <el-input :value="ruleForm.address" placeholder="请输入注册地址" disabled />
-        </el-form-item>
-        <el-form-item label="是否为项目成立的公司" prop="companyForProject" class="industry">
-          <el-radio-group v-model="ruleForm.companyForProject" disabled>
-            <el-radio :label="1">是</el-radio>
-            <el-radio :label="0">否</el-radio>
-          </el-radio-group>
-        </el-form-item>
-      </template>
-
-    </el-form>
-  </div>
-</template>
-
-<script>
-export default {
-  props: {
-    detailsInfo: {
-      type: Object,
-      default: () => {}
-    }
-  },
-  data() {
-    return {
-      ruleForm: {
-        projectType: '',
-        projectName: ''
-      },
-      projectTypes: [
-        {
-          label: '固定项目',
-          value: 'c_project_type_1'
-        },
-        {
-          label: '集采项目',
-          value: 'c_project_type_2'
-        },
-        {
-          label: '无项目',
-          value: 'c_project_type_3'
-        }
-      ]
-    }
-  },
-  watch: {
-    detailsInfo: {
-      handler(newV) {
-        if (newV && Object.keys(newV).length) {
-          const {
-            projectType,
-            projectName
-          } = JSON.parse(JSON.stringify(newV))
-
-          this.ruleForm = { projectType, projectName }
-        }
-      },
-      immediate: true,
-      deep: true
-    }
-  }
-}
-</script>
-
-<style lang="scss" scoped>
-.project-info {
-.el-form {
-  padding: 10px 20px;
-}
-}
-</style>

+ 5 - 1
src/views/creditManage/projectCredit/dueReview/components/Company/Auditing.vue

@@ -19,7 +19,7 @@
         class="one-form-item"
         :rules="[{ required: ruleForm.enterpriseNature==='enterpriseNature_9', message: '请选择企业性质细分', trigger: 'change' }]"
       >
-        <el-select v-model="ruleForm.enterpriseNatureDetail" placeholder="请选择上市公司类型">
+        <el-select v-model="ruleForm.enterpriseNatureDetail" placeholder="请选择上市公司类型" :disabled="disabled">
           <el-option
             v-for="item in enterpriseNatureDetailList"
             :key="item.code"
@@ -156,6 +156,10 @@ export default {
     details: {
       type: Object,
       default: () => {}
+    },
+    disabled: {
+      type: Boolean,
+      default: false
     }
   },
   data() {