Преглед изворни кода

【修改】销售政策列表增加经销商编号查询条件

howie пре 2 година
родитељ
комит
53cc88ac8d
1 измењених фајлова са 28 додато и 11 уклоњено
  1. 28 11
      src/views/sales_policy/policy_list.vue

+ 28 - 11
src/views/sales_policy/policy_list.vue

@@ -136,6 +136,20 @@
                     </el-select>
                   </el-form-item>
                 </el-col>
+                <el-col :xs="24" :ms="6" :lg="6">
+                  <el-form-item label="经销商编码" prop="customerNumber">
+                    <el-select
+                      v-model="screenForm.customerNumber"
+                      size="mini"
+                      filterable
+                      clearable
+                      placeholder="经销商编码"
+                      class="select_height"
+                    >
+                      <el-option v-for="item in CrList" :key="item.id" :label="item.number" :value="item.number" />
+                    </el-select>
+                  </el-form-item>
+                </el-col>
 
                 <el-col :xs="24" :ms="6" :lg="6">
                   <el-form-item label="机型" prop="specification">
@@ -328,7 +342,8 @@ export default {
         title: '',
         type: '',
         customerId: '',
-        specification: ''
+        specification: '',
+        customerNumber: ''
       },
       fileList: [],
       statusOptions: [
@@ -414,6 +429,7 @@ export default {
         status: this.screenForm.status,
         title: this.screenForm.title,
         customerId: this.screenForm.customerId,
+        customerNumber: this.screenForm.customerNumber,
         specification: this.screenForm.specification
       }
       getList(params).then(res => {
@@ -422,16 +438,17 @@ export default {
         this.listTotal = res.data.total
         this.listLoading = false
       })
-      const paramsType = {
-        pageNum: 1,
-        pageSize: 10,
-        saleCdoe: '',
-        saleName: '',
-        stauts: ''
-      }
-      getTypeList(paramsType).then(res => {
-        this.typeList = res.data.records
-      })
+      // 产品类型
+      // const paramsType = {
+      //   pageNum: 1,
+      //   pageSize: 10,
+      //   saleCdoe: '',
+      //   saleName: '',
+      //   stauts: ''
+      // }
+      // getTypeList(paramsType).then(res => {
+      //   this.typeList = res.data.records
+      // })
     },
     hanleAbandon(id) {
       setAbandon({ policyId: id }).then(res => {