wuguojie 1 éve
szülő
commit
e56fab82df
1 módosított fájl, 20 hozzáadás és 4 törlés
  1. 20 4
      src/views/PeopleManage/Agent/QuoteCountManagement.vue

+ 20 - 4
src/views/PeopleManage/Agent/QuoteCountManagement.vue

@@ -58,17 +58,18 @@
               <div>
                 <el-checkbox label="1" :disabled="!isEdit">
                   <div style="display: flex; align-items: center">
-                    单日报价,出单比不满<el-input size="small" v-model="quoteForm.orderRatio" :disabled="!isEdit" style="width: 100px; margin: 0 20px;">
+                    单日报价,出单比不满<el-input size="small" maxlength="2" v-model="quoteForm.orderRatio" :disabled="!isEdit" style="width: 150px; margin: 0 20px;">
                     <template slot="append">%</template>
                   </el-input>后,锁定代理人报价次数
                   </div>
                 </el-checkbox>
               </div>
+              <p style="font-size: 12px; color: #999; margin: 0">报价出单比=承保单数/报价单数*100% (四舍五入到小数点后两位)</p>
               <div>
                 <el-checkbox label="2" :disabled="!isEdit">
                   <div>单日最大报价次数</div>
                   <div style="display: flex; align-items: center">
-                    单日代理人报价满<el-input size="small" v-model="quoteForm.dayMaxQuoteNum" :disabled="!isEdit" style="width: 100px; margin: 0 20px;">
+                    单日代理人报价满<el-input size="small" maxlength="4" v-model="quoteForm.dayMaxQuoteNum" :disabled="!isEdit" style="width: 150px; margin: 0 20px;">
                     <template slot="append">次</template>
                   </el-input>后,锁定代理人报价次数
                   </div>
@@ -78,7 +79,7 @@
                 <el-checkbox label="3" :disabled="!isEdit">
                   <div>单日单车限制</div>
                   <div style="display: flex; align-items: center">
-                    单日代理人单车最多报价<el-input size="small" :disabled="!isEdit" v-model="quoteForm.carMaxQuoteNum" style="width: 100px; margin: 0 20px;">
+                    单日代理人单车最多报价<el-input size="small" maxlength="4" :disabled="!isEdit" v-model="quoteForm.carMaxQuoteNum" style="width: 150px; margin: 0 20px;">
                     <template slot="append">次</template>
                   </el-input>后,锁定代理人报价次数
                   </div>
@@ -139,6 +140,7 @@
         row-key="id"
         :reserve-selection="true"
         style="width: 100%"
+        @select-all="handleSelectAll"
         @selection-change="handleSelectChange"
       >
         <el-table-column type="selection"></el-table-column>
@@ -222,7 +224,7 @@ export default {
   methods: {
     checkChange() {
       if(!this.quoteForm.quoteLimit.includes('1')) {
-        this.$set(this.quoteForm, 'orderRadio', '')
+        this.$set(this.quoteForm, 'orderRatio', '')
       }
       if(!this.quoteForm.quoteLimit.includes('2')) {
         this.$set(this.quoteForm, 'dayMaxQuoteNum', '')
@@ -339,6 +341,20 @@ export default {
         }
       }
     },
+    // 手动点击全选
+    handleSelectAll(rows) {
+      console.log(123, rows)
+      console.log(456, this.selectedList)
+      if(rows.length===0) {
+        let list = [...this.selectedList]
+        if(list.length>0){
+          let arr = list.filter(item1 => !this.agentDataList.some(item2 => item1.id === item2.id))
+          this.selectedList = this.uniqueItems([...arr])
+          this.selectedLength = this.selectedList.length
+          console.log(789, this.selectedList)
+        }
+      }
+    },
     // 数组去重
     uniqueItems(arr) {
       const unique = [];