Ver código fonte

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

lazy 7 meses atrás
pai
commit
a885456380

+ 3 - 3
.env.development

@@ -4,12 +4,12 @@ ENV = 'development'
 # base api
 # VUE_APP_BASE_API = 'http://192.168.2.34:8888'
 # VUE_APP_BASE_API = 'http://192.168.2.52:8888'
-# VUE_APP_BASE_API = 'http://192.168.2.12:8888'
+VUE_APP_BASE_API = 'http://192.168.2.12:8888'
 # VUE_APP_BASE_API = 'http://192.168.2.46:8888'
 # VUE_APP_BASE_API = 'http://192.168.2.13:8888'
-VUE_APP_BASE_API = 'http://192.168.3.6:8888'
-# VUE_APP_BASE_API = 'http://192.168.2.13:8888'
 # VUE_APP_BASE_API = 'http://192.168.3.6:8888'
+# VUE_APP_BASE_API = 'http://192.168.2.13:8888'
+ VUE_APP_BASE_API = 'http://192.168.3.6:8888'
 # VUE_APP_BASE_API = 'http://192.168.2.12:8888'
 # VUE_APP_BASE_API = 'http://192.168.2.13:8888'
 # VUE_APP_BASE_API = 'http://citp.changan-inkasso.com/tradeV4-backend'

+ 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
+        }
+      })
     }
   }
 }

+ 2 - 1
src/views/enterpriseManagement/index.vue

@@ -8,7 +8,8 @@
         <div class="tempalte-content">
           <div class="search">
             <div class="left">
-              <el-button v-if="activeName === 'pending' && btnPermission.includes('addSupplier')" type="primary" style="margin-bottom: 15px" @click="() => { this.$refs.tradePlatform.show = true }">新增贸易平台</el-button>
+              <!-- <el-button v-if="activeName === 'pending' && btnPermission.includes('addSupplier')" type="primary" style="margin-bottom: 15px" @click="() => { this.$refs.tradePlatform.show = true }">新增贸易平台</el-button> -->
+              <el-button v-if="activeName === 'pending'" type="primary" style="margin-bottom: 15px" @click="() => { this.$refs.tradePlatform.show = true }">新增贸易平台</el-button>
               <div v-if="activeName == 'all'" class="left" style="margin-bottom: 15px;">
                 <el-radio-group v-model="tableType" @change="changeSignType" class="other-radio">
                   <el-radio-button label="com">公司</el-radio-button>

+ 3 - 3
src/views/enterpriseManagement/indexTable.js

@@ -102,9 +102,9 @@ export default {
     tablePower() {
       return ({ item, row }) => {
         const { rowPower, power } = item
-        if(power && !this.btnPermission.includes(power)) {
-          return false
-        }
+        // if(power && !this.btnPermission.includes(power)) {
+        //   return false
+        // }
         if(rowPower && (!row.authStatus || !rowPower.includes(row.authStatus))) {
           return false
         }

+ 3 - 3
src/views/enterpriseManagement/signComTable.js

@@ -94,9 +94,9 @@ export default {
     comTablePower() {
       return ({ item }) => {
         const { power } = item
-        if(power && !this.btnPermission.includes(power)) {
-          return false
-        }
+        // if(power && !this.btnPermission.includes(power)) {
+        //   return false
+        // }
         return true
       }
     }

+ 3 - 3
src/views/enterpriseManagement/signPersonTable.js

@@ -107,9 +107,9 @@ export default {
     personTablePower() {
       return ({ item }) => {
         const { power } = item
-        if(power && !this.btnPermission.includes(power)) {
-          return false
-        }
+        // if(power && !this.btnPermission.includes(power)) {
+        //   return false
+        // }
         return true
       }
     }

+ 1 - 1
src/views/purchaseContractManagement/components/PurchaseContractReviewContent.vue

@@ -175,7 +175,7 @@
           <el-table-column prop="name" label="操作" width="200" v-if="!isView">
             <template slot-scope="scope">
               <el-button type="text" @click="ruleForm.purchContractOtherClause.push({paymentCondition: ''})">增加</el-button>
-              <el-button v-if="scope.$index !== 0" type="text" @click="deleteCondition(scope.$index)">删除</el-button>
+              <el-button type="text" @click="deleteCondition(scope.$index)">删除</el-button>
             </template>
           </el-table-column>
         </el-table>

+ 6 - 6
src/views/purchaseContractManagement/stepComponents/PriceRules.vue

@@ -18,7 +18,7 @@
           <el-radio :label="1">固定差额</el-radio>
         </el-radio-group>
       </el-form-item>
-      <el-form-item label="贸易平台报价/年" prop="tradePlatformOffer" v-if="ruleForm.accrualMarginCalcMethod != 1">
+      <!-- <el-form-item label="贸易平台报价/年" prop="tradePlatformOffer" v-if="ruleForm.accrualMarginCalcMethod != 1">
         <el-input v-model="ruleForm.tradePlatformOffer" placeholder="请输入贸易平台报价" disabled>
           <template slot="append">%</template>
         </el-input>
@@ -27,7 +27,7 @@
         <el-input v-model="ruleForm.factoringOffer" placeholder="请输入保理报价" disabled>
           <template slot="append">%</template>
         </el-input>
-      </el-form-item>
+      </el-form-item> -->
       <el-form-item label="预估保理融资期限" prop="factoringFinanceDeadline">
         <el-input v-model="ruleForm.factoringFinanceDeadline" placeholder="请输入预估保理融资期限" disabled>
           <template slot="append">天</template>
@@ -63,8 +63,8 @@ export default {
     return {
       ruleForm: {
         accrualMarginCalcMethod: '',
-        tradePlatformOffer: '',
-        factoringOffer: '',
+        // tradePlatformOffer: '',
+        // factoringOffer: '',
         factoringFinanceDeadline: '',
         differAmount: '',
         monthlyInterestRate: '',
@@ -72,8 +72,8 @@ export default {
       },
       rules: {
         accrualMarginCalcMethod: [{ required: true, message: '请选择利差计算方式', trigger: 'change' }],
-        tradePlatformOffer: [{ required: true, message: '请输入贸易平台报价', trigger: 'blur' }],
-        factoringOffer: [{ required: true, message: '请输入保理报价', trigger: 'blur' }],
+        // tradePlatformOffer: [{ required: true, message: '请输入贸易平台报价', trigger: 'blur' }],
+        // factoringOffer: [{ required: true, message: '请输入保理报价', trigger: 'blur' }],
         factoringFinanceDeadline: [{ required: true, message: '请输入预估保理融资期限', trigger: 'blur' }],
         differAmount: [{ required: true, message: '请输入差额', trigger: 'blur' }],
         monthlyInterestRate: [{ required: true, message: '请输入月利率', trigger: 'blur' }]

+ 3 - 3
src/views/settlementManagement/components/add.vue

@@ -296,9 +296,9 @@ export default {
     calculateTotal() {
       let num = 0, price = 0, buyPrice = 0;
       this.goodsList.forEach(item => {
-        num = parseFloat(Number(num) + item.goodsQuantity).toFixed(4)
-        price = parseFloat(Number(price) + item.salesTotalPrice).toFixed(2)
-        buyPrice = parseFloat(Number(buyPrice) + item.purchaseTotalPrice).toFixed(2)
+        num = parseFloat(Number(num) + Number(item.goodsQuantity || 0)).toFixed(4)
+        price = parseFloat(Number(price) + Number(item.salesTotalPrice || 0)).toFixed(2)
+        buyPrice = parseFloat(Number(buyPrice) + Number(item.purchaseTotalPrice || 0)).toFixed(2)
       })
       this.ruleForm.countTheGoods = num
       this.ruleForm.settleTotalSalesPrice = price

+ 3 - 3
src/views/settlementManagement/components/edit.vue

@@ -127,9 +127,9 @@ export default {
     calculateTotal() {
       let num = 0, price = 0, buyPrice = 0;
       this.goodsList.forEach(item => {
-        num = parseFloat(Number(num) + item.goodsQuantity).toFixed(4)
-        price = parseFloat(Number(price) + item.salesTotalPrice).toFixed(2)
-        buyPrice = parseFloat(Number(buyPrice) + item.purchaseTotalPrice).toFixed(2)
+        num = parseFloat(Number(num) + Number(item.goodsQuantity || 0)).toFixed(4)
+        price = parseFloat(Number(price) + Number(item.salesTotalPrice || 0)).toFixed(2)
+        buyPrice = parseFloat(Number(buyPrice) + Number(item.purchaseTotalPrice || 0)).toFixed(2)
       })
       this.ruleForm.countTheGoods = num
       this.ruleForm.settleTotalSalesPrice = price

+ 39 - 0
src/views/settlementManagement/components/sign.vue

@@ -42,6 +42,21 @@
             签署状态:{{ detailInfo.signStatus ? '已签署' : '未签署' }}
           </td>
         </tr>
+        <tr>
+          <td>结算单附件</td>
+          <td style="padding-left: 0; width: 150px">
+            <cy-upload
+              :upload-params="{}"
+              :file-data="detailInfo.files"
+              :upload-from-orange-status="true"
+              placeholder="请上传附件"
+              :disabled="true"
+            />
+          </td>
+          <td>
+            <el-button type="primary" @click="downloadFile">下载</el-button>
+          </td>
+        </tr>
       </table>
 
       <!-- 签署结论 -->
@@ -60,6 +75,8 @@
 
 <script>
 import request from '@/utils/request'
+import { exportFile } from '@/utils/index'
+
 export default {
   name: 'PurchaseContractSign',
   components: {
@@ -144,6 +161,27 @@ export default {
           }
         }
       })
+    },
+    downloadFile() {
+      if(!this.detailInfo.files || this.detailInfo.files.length === 0) return
+      request({
+          url: '/bill/downloadPdfSign',
+          responseType: 'arraybuffer',
+          params: {
+            settlementBasicInfoId: this.detailInfo.settlementBasicInfoId
+          },
+          method: 'get'
+        }).then(res => {
+          exportFile(res)
+        })
+      // request({
+      //   url: '/bill/downloadPdfSign',
+      //   method: 'get',
+      //   responseType: 'arraybuffer',
+      //   params: { settlementBasicInfoId: this.detailInfo.settlementBasicInfoId }
+      // }).then(data => {
+      //   exportFile(data)
+      // })
     }
   },
   watch: {
@@ -151,6 +189,7 @@ export default {
       handler(newV) {
         if(newV) {
           this.detailInfo = { ...this.info }
+          this.detailInfo.files = [this.detailInfo.settlementSignedFile]
           this.ruleForm.signConclusion = this.info.signConclusion
           this.ruleForm.signComment = this.info.signComment
         }

Diferenças do arquivo suprimidas por serem muito extensas
+ 8317 - 11344
yarn.lock