Browse Source

查询

Signed-off-by: lijunqing <lijunqing@dashoo.cn>
lijunqing 6 years ago
parent
commit
92b4674233

+ 17 - 11
src/dashoo.cn/backend/api/controllers/oilsupplier/select.go

@@ -39,6 +39,7 @@ type UpInfoSearch struct {
 
 type NeedFileTypeStruct struct {
 	NeedFileType []string
+	CertSubName string
 }
 
 // @Title 获取所有
@@ -162,17 +163,22 @@ func (this *SelectController) GetTList() {
 		where = where + " and ab.BusinessScope like '%" + model.BusinessScope + "%'"
 	}
 
-	//包含资质
-	if model2.NeedFileType != nil && len(model2.NeedFileType) > 0 {
-		pararm := ""
-		for i := 0; i < len(model2.NeedFileType); i++ {
-
-			pararm = pararm + "'" + model2.NeedFileType[i] + "',"
-
-		}
-		fmt.Println(pararm[0 : len(pararm)-1])
-		where = where + " and d.NeedFileType in (" + pararm[0:len(pararm)-1] + ")"
-	}
+	////包含资质(有问题)
+	//if model2.NeedFileType != nil && len(model2.NeedFileType) > 0 {
+	//	pararm := ""
+	//	for i := 0; i < len(model2.NeedFileType); i++ {
+	//
+	//		pararm = pararm + "'" + model2.NeedFileType[i] + "',"
+	//
+	//	}
+	//	fmt.Println(pararm[0 : len(pararm)-1])
+	//	where = where + " and d.NeedFileType in (" + pararm[0:len(pararm)-1] + ")"
+	//}
+	//
+	////包含准入范围(有问题)
+	//if model2.CertSubName!="" {
+	//
+	//}
 	svc := selectbusiness.GetSelectService(utils.DBE)
 	var list []supplier.OilSupplierView
 

+ 5 - 18
src/dashoo.cn/frontend_web/src/pages/select/companyselect/index.vue

@@ -636,27 +636,13 @@
             </el-form-item>
           </el-col>
         </el-row>
-        <!-- <el-row>
+        <el-row>
           <el-col :span="24">
             <el-form-item label="准入范围">
-              <el-select
-                size="mini"
-                style="width: 100%"
-                v-model="searchForm"
-                filterable
-                multiple
-                placeholder="请选择"
-              >
-                <el-option
-                  v-for="item in nftOptions"
-                  :key="item.Id"
-                  :label="item.Name"
-                  :value="item.Name"
-                ></el-option>
-              </el-select>
+              <el-input size="mini" v-model="searchForm.CerSubName" placeholder="请输入内容"></el-input>
             </el-form-item>
           </el-col>
-        </el-row> -->
+        </el-row>
       </el-form>
       <span slot="footer" class="dialog-footer">
         <el-button size="mini" @click="dialogVisible = false">取 消</el-button>
@@ -782,7 +768,8 @@ export default {
         BusinessScope: "",
         OldSupplierName: "",
         HseTraining: "", 
-        NeedFileType: []
+        NeedFileType: [],
+        CerSubName:""
       },
       //列表排序
       Column: {