qymljy 1 год назад
Родитель
Сommit
c42bcae88b
1 измененных файлов с 8 добавлено и 5 удалено
  1. 8 5
      src/HDrpManagement/collectionRule/components/setInfo.vue

+ 8 - 5
src/HDrpManagement/collectionRule/components/setInfo.vue

@@ -4,13 +4,13 @@
       <span style="margin-left: 10px">后置天数:</span>
       <el-input type="number" style="width: 100px" v-model="item.days" placeholder="请输入"></el-input>
       <span style="margin-left: 5px">天</span>
-      <span style="margin-left: 50px">立账额度:</span>
-      <el-input type="number" style="width: 100px" v-model="item.amountrate" placeholder="请输入" :class="{ 'is-error': isErrorInvoiceapply }"  @change="checkAmountrate()"></el-input>
+      <span style="margin-left: 20px">立账额度:</span>
+      <el-input type="number" style="width: 100px" v-model="item.amountrate" placeholder="请输入" :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" >质保金</el-checkbox>
       <el-button v-if="index === list.length -1" type="text" icon="el-icon-plus" style="margin-left: 10px" @click="addList"></el-button>
       <el-button v-if="list.length !== 1" type="text" icon="el-icon-delete" style="margin-left: 10px;color: red;" @click="delList(index)"></el-button>
-      <p v-if="isErrorInvoiceapply" style="color: red;font-size: 12px">立账额度范围(0-100)</p>
-      <el-checkbox v-model="item.iswarranty" true-label="1" false-label="0" >质保金</el-checkbox>
+      <p v-if="item.isErrorInvoiceapply" style="color: red;font-size: 12px">立账额度范围(0-100)</p>
     </div>
   </div>
 </template>
@@ -28,16 +28,19 @@ export default {
         {
           days:'',
           amountrate:'',
+          isErrorInvoiceapply:false
         },
       ]
     }
   },
   methods:{
-    checkAmountrate(){},
+    checkAmountrate(val,index){
+    },
     addList(){
       this.list.push({
         days:'',
         amountrate:'',
+        isErrorInvoiceapply:false
       })
     },
     delList(index){