Просмотр исходного кода

收款条件设置编辑调整

qymljy 1 год назад
Родитель
Сommit
0c8828b372

+ 1 - 1
src/HDrpManagement/collectionRule/components/edit.vue

@@ -206,7 +206,7 @@ export default {
       }
     },
     isUsedChange(value){
-      if (value === '订单'){
+      if (value === '审核'){
         if (this.auditIsUsed !== 1){
           this.$refs.audit.list = [{
             days:'',

+ 1 - 1
src/HDrpManagement/collectionRule/components/setInfo.vue

@@ -5,7 +5,7 @@
       <el-input type="number" style="width: 100px" v-model="item.days" :placeholder="$t(`请输入`)"></el-input>
       <span style="margin-left: 5px">{{$t(`天`)}}</span>
       <span style="margin-left: 20px">{{$t(`立账额度`)}}:</span>
-      <el-input type="number" style="width: 100px" v-model="item.amountrate" :placeholder="$t(`请输入`)" :class="{ 'is-error': isErrorInvoiceapply }"  @change="checkAmountrate"></el-input>
+<!--      <el-input type="number" style="width: 100px" v-model="item.amountrate" :placeholder="$t(`请输入`)" :class="{ 'is-error': isErrorInvoiceapply }"  @change="checkAmountrate"></el-input>-->
       <span style="margin-left: 5px">%</span>
       <el-checkbox style="margin-left: 20px" v-model="item.iswarranty" true-label="1" false-label="0" >{{$t(`质保金`)}}</el-checkbox>
       <el-button v-if="index === list.length -1" type="text" icon="el-icon-plus" style="margin-left: 10px" @click="addList"></el-button>

+ 9 - 3
src/HDrpManagement/collectionRule/index.vue

@@ -89,9 +89,15 @@ export default {
       this.currentPage = res.pageNumber
       this.list.forEach(item=>{
         if (item.accountingnodes){
-          item.accountingnodes.ordercheck.amountrate = Math.round((item.accountingnodes.ordercheck.amountrate * 100)*100)/100
-          item.accountingnodes.logisticscheck.amountrate = Math.round((item.accountingnodes.logisticscheck.amountrate * 100)*100)/100
-          item.accountingnodes.invoiceapplycheck.amountrate = Math.round((item.accountingnodes.invoiceapplycheck.amountrate * 100)*100)/100
+          if (item.accountingnodes.ordercheck && item.accountingnodes.ordercheck.length > 0){
+            item.accountingnodes.ordercheck.amountrate = Math.round((item.accountingnodes.ordercheck.amountrate * 100)*100)/100
+          }
+          if (item.accountingnodes.logisticscheck && item.accountingnodes.logisticscheck.length > 0){
+            item.accountingnodes.logisticscheck.amountrate = Math.round((item.accountingnodes.logisticscheck.amountrate * 100)*100)/100
+          }
+          if (item.accountingnodes.invoiceapplycheck && item.accountingnodes.invoiceapplycheck.length>0){
+            item.accountingnodes.invoiceapplycheck.amountrate = Math.round((item.accountingnodes.invoiceapplycheck.amountrate * 100)*100)/100
+          }
         }
       })
       console.log(this.list,'list')