Forráskód Böngészése

Merge branch 'dev1.0' of http://192.168.0.200:3000/suf/factoring-trade-front-end-v2 into chang

changjiaming 7 hónapja%!(EXTRA string=óta)
szülő
commit
9c0b859cf8

+ 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() {

+ 71 - 52
src/views/divideAccountsManage/edit.vue

@@ -7,8 +7,8 @@
       </el-form-item>
       <el-form-item label="标签">
         <el-radio-group v-model="ledgerAccountBasicInfo.label" disabled>
-          <el-radio :label="1">下游回款</el-radio>
-          <el-radio :label="0">上游回购</el-radio>
+          <el-radio :label="0">下游回款</el-radio>
+          <el-radio :label="1">上游回购</el-radio>
         </el-radio-group>
       </el-form-item>
       <el-form-item label="分账单号">
@@ -29,13 +29,13 @@
           <cy-amount-input v-model="ledgerAccountBasicInfo.discountCharge" disabled placeholder="请输入贴现费用" />
         </el-form-item>
         <el-form-item label="说明" class="two-form-item">
-          <el-input v-model="ruleForm.remark" placeholder="请输入说明" />
+          <el-input v-model="ruleForm.remark" placeholder="请输入说明" :disabled="disabled" />
         </el-form-item>
       </template>
 
       <cy-info-title>
         货款分配
-        <div slot="right">
+        <div v-if="!disabled" slot="right">
           <el-button type="text" @click="oneCalc('click')">一键计算</el-button>
           <el-button type="primary" @click="financingGoods">选择已融资货物</el-button>
           <el-button type="primary" @click="acceptanceGoods">选择已验收货物</el-button>
@@ -75,10 +75,10 @@
         <cy-amount-input v-model="goodsMoney" disabled placeholder="请输入货款金额" />
       </el-form-item>
       <el-form-item v-if="ledgerAccountBasicInfo.ledgerTypeDict.code === 'entryType_bills_discounted'" label="贴现费用" class="one-form-item">
-        <cy-amount-input v-model="ruleForm.name" disabled placeholder="请输入贴现费用" />
+        <cy-amount-input v-model="ledgerAccountBasicInfo.discountCharge" disabled placeholder="请输入贴现费用" />
       </el-form-item>
     </el-form>
-    <div class="submit-btn">
+    <div v-if="!disabled" class="submit-btn">
       <el-button @click="() => { this.$router.go(-1) }">取消</el-button>
       <el-button type="primary" @click="submit">提交</el-button>
     </div>
@@ -153,7 +153,8 @@ export default {
       selectFinancingGoodsList: [],
       selectAcceptanceGoodsList: [],
       oneCalcStatus: false,
-      incomePlanData: {}
+      incomePlanData: {},
+      disabled: false
     }
   },
   computed: {
@@ -244,7 +245,7 @@ export default {
           prop: 'currentAssignAmount',
           width: '160',
           render: (h, row) => {
-            return <cy-amount-input v-model={row.currentAssignAmount} placeholder='请输入本次分配金额' onBlur={ this.oneCalc }></cy-amount-input>
+            return <cy-amount-input disabled={this.disabled} v-model={row.currentAssignAmount} placeholder='请输入本次分配金额' onBlur={ this.oneCalc }></cy-amount-input>
           }
         },
         {
@@ -253,7 +254,19 @@ export default {
           showTooltip: true,
           width: '80',
           render: (h, row) => {
-            return <el-select v-model={ row.accrual } onChange={() => { this.oneCalc('click') }} placeholder='请选择是否计提'>
+            return <el-select v-model={ row.accrual } disabled={this.disabled} onChange={() => { this.oneCalc('click') }} placeholder='请选择是否计提'>
+              <el-option label='是' value={true}></el-option>
+              <el-option label='否' value={false}></el-option>
+            </el-select>
+          }
+        },
+        {
+          label: '是否分配逾期利息',
+          prop: 'hasAssignOverdueInterest',
+          showTooltip: true,
+          width: '80',
+          render: (h, row) => {
+            return <el-select disabled={this.disabled} v-model={ row.hasAssignOverdueInterest } onChange={() => { this.oneCalc('click') }} placeholder='请选择是否'>
               <el-option label='是' value={true}></el-option>
               <el-option label='否' value={false}></el-option>
             </el-select>
@@ -266,16 +279,19 @@ export default {
           show: this.oneCalcStatus,
           width: '120',
           render: (h, row) => {
-            const data = this.handlerMoneyEmpty(row.financingOverdueInterest)
-            let list = []
-            if (row.financingOverdueInterestList.length) {
-              list = row.financingOverdueInterestList.map(item => {
-                return <el-option label={ item.label } value={ item.value }></el-option>
-              })
-            }
-            return row.financingOverdueInterestList.length ? <el-select v-model={ row.financingOverdueInterest }>
-              { list }
-            </el-select> : data
+            return <span> { this.handlerMoneyEmpty(row.financingOverdueInterest) }</span>
+          }
+        },
+        {
+          label: '是否分配融资利息',
+          prop: 'hasAssignInterest',
+          showTooltip: true,
+          width: '80',
+          render: (h, row) => {
+            return <el-select disabled={this.disabled} v-model={ row.hasAssignInterest } onChange={() => { this.oneCalc('click') }} placeholder='请选择是否'>
+              <el-option label='是' value={true}></el-option>
+              <el-option label='否' value={false}></el-option>
+            </el-select>
           }
         },
         {
@@ -285,16 +301,19 @@ export default {
           show: this.oneCalcStatus,
           width: '120',
           render: (h, row) => {
-            const data = this.handlerMoneyEmpty(row.financingInterest)
-            let list = []
-            if (row.financingInterestList.length) {
-              list = row.financingInterestList.map(item => {
-                return <el-option label={ item.label } value={ item.value }></el-option>
-              })
-            }
-            return row.financingInterestList.length ? <el-select v-model={ row.financingInterest }>
-              { list }
-            </el-select> : data
+            return <span> { this.handlerMoneyEmpty(row.financingInterest) }</span>
+          }
+        },
+        {
+          label: '是否分配管理费',
+          prop: 'hasAssignManagementFee',
+          showTooltip: true,
+          width: '80',
+          render: (h, row) => {
+            return <el-select disabled={this.disabled} v-model={ row.hasAssignManagementFee } onChange={() => { this.oneCalc('click') }} placeholder='请选择是否'>
+              <el-option label='是' value={true}></el-option>
+              <el-option label='否' value={false}></el-option>
+            </el-select>
           }
         },
         {
@@ -304,16 +323,7 @@ export default {
           showTooltip: true,
           show: this.oneCalcStatus,
           render: (h, row) => {
-            const data = this.handlerMoneyEmpty(row.financingManagementFee)
-            let list = []
-            if (row.financingManagementFeeList.length) {
-              list = row.financingManagementFeeList.map(item => {
-                return <el-option label={ item.label } value={ item.value }></el-option>
-              })
-            }
-            return row.financingManagementFeeList.length ? <el-select v-model={ row.financingManagementFee }>
-              { list }
-            </el-select> : data
+            return <span> { this.handlerMoneyEmpty(row.financingManagementFee) }</span>
           }
 
         },
@@ -389,6 +399,7 @@ export default {
         {
           label: '操作',
           width: '100',
+          show: !this.disabled,
           render: (h, row, index) => {
             const btnList = [
               { msg: '删除', icon: 'el-icon-delete', category: 'delete' }
@@ -413,6 +424,10 @@ export default {
   },
   created() {
     this.getDetails()
+    const { type } = this.$route.query
+    if (type === 'see') {
+      this.disabled = true
+    }
   },
   methods: {
     getDetails() {
@@ -487,6 +502,9 @@ export default {
       ]
       this.loanTableData = this.loanTableData.map(item => {
         if (!item.accrual) item.accrual = false
+        if (!item.hasAssignInterest) item.hasAssignInterest = true
+        if (!item.hasAssignManagementFee) item.hasAssignManagementFee = true
+        if (!item.hasAssignOverdueInterest) item.hasAssignOverdueInterest = true
         return item
       })
       this.paymentAccountClick()
@@ -510,22 +528,23 @@ export default {
         const params = {
           Loading: true,
           ledgerAccountBasicInfo: this.ledgerAccountBasicInfo,
-          goodsAssignList: this.loanTableData.map(item => {
-            delete item.financingOverdueInterestList
-            delete item.financingInterestList
-            delete item.financingManagementFeeList
-            return item
-          })
+          goodsAssignList: this.loanTableData
+          // this.loanTableData.map(item => {
+          //   delete item.financingOverdueInterestList
+          //   delete item.financingInterestList
+          //   delete item.financingManagementFeeList
+          //   return item
+          // })
         }
         getCalculateAssign(params).then(({ data }) => {
           const { goodsAssignList } = data
-          const goodsAssignListDeep = goodsAssignList.map(item => {
-            item.financingOverdueInterestList = this.handlerGoodsData(item.financingOverdueInterest)
-            item.financingInterestList = this.handlerGoodsData(item.financingInterest)
-            item.financingManagementFeeList = this.handlerGoodsData(item.financingManagementFee)
-            return item
-          })
-          this.loanTableData = JSON.parse(JSON.stringify(goodsAssignListDeep))
+          // const goodsAssignListDeep = goodsAssignList.map(item => {
+          //   item.financingOverdueInterestList = this.handlerGoodsData(item.financingOverdueInterest)
+          //   item.financingInterestList = this.handlerGoodsData(item.financingInterest)
+          //   item.financingManagementFeeList = this.handlerGoodsData(item.financingManagementFee)
+          //   return item
+          // })
+          this.loanTableData = JSON.parse(JSON.stringify(goodsAssignList))
           this.oneCalcStatus = true
           resolve()
         })

+ 9 - 8
src/views/divideAccountsManage/index.vue

@@ -264,14 +264,15 @@ export default {
       })
     },
     handlerOperate(type, row) {
-      if (type === 'edit') {
-        this.$router.push({
-          name: 'DivideAccountEdit',
-          params: {
-            id: row.id
-          }
-        })
-      }
+      this.$router.push({
+        name: 'DivideAccountEdit',
+        params: {
+          id: row.id
+        },
+        query: {
+          type
+        }
+      })
     }
   }
 }