qymljy 2 лет назад
Родитель
Сommit
0c46dbdc06

+ 0 - 1
src/Form/marketing2/agent/add.vue

@@ -344,7 +344,6 @@ export default {
       }
     },
     chooseEnterprise (item) {
-      console.log(item,'已选企业')
       this.form.erpagentnum = item.erpagentnum
       this.form.grade = item.grade
       this.form.limitreturnday = item.limitreturnday

+ 9 - 6
src/HDrpManagement/ProductMag/modules/addClass.vue

@@ -2,6 +2,8 @@
   <div>
     <el-button type="primary" size="small" @click="dialogFormVisible=true" >设置分类</el-button>
     <el-dialog append-to-body title="设置分类" :visible.sync="dialogFormVisible" width="900px">
+      <el-input style="width:200px;" placeholder="搜索" :suffix-icon="condition?condition.length > 0?'':'':'el-icon-search'" v-model="condition" @keyup.native.enter="getClassList()" @clear="getClassList" size="small" class="input-with-select inline-16 layout_search__panel" clearable>
+      </el-input>
       <el-table
         :data="classList"
         stripe
@@ -53,7 +55,8 @@ export default {
       disabledId:[],
       tableList:[],
       tablecols:[],
-      result:[]
+      result:[],
+      condition:''
     }
   },
   methods:{
@@ -89,12 +92,12 @@ export default {
     async getClassList () {
       let res = await this.$api.requested({
           "id": "20230325141103",
-          "version":1,
           "content": {
             "sa_brandid":0,
             "itemid": this.$route.query.id,
             "where": {
-              istool: this.data.data.istool ? 1 : 0
+              istool: this.data.data.istool ? 1 : 0,
+              condition:this.condition
             }
           }
       })
@@ -120,7 +123,7 @@ export default {
     //     }
     //     if (node.subdep && node.subdep.length > 0) {
     //       for (let index = 0; index < node.subdep.length; index++) {
-    //         elNode.children.push(createNodes(node.subdep[index]))            
+    //         elNode.children.push(createNodes(node.subdep[index]))
     //       }
     //     }
     //     return elNode
@@ -143,7 +146,7 @@ export default {
         }
         if (node.subdep && node.subdep.length > 0) {
           for (let index = 0; index < node.subdep.length; index++) {
-            elNode.children.push(createNodes(node.subdep[index]))            
+            elNode.children.push(createNodes(node.subdep[index]))
           }
         }
         return elNode
@@ -167,4 +170,4 @@ export default {
 /deep/.el-dialog__body {
   padding-bottom: 0 !important;
 }
-</style>
+</style>