Selaa lähdekoodia

前后:编码和准入范围查询

dubch 4 vuotta sitten
vanhempi
commit
98597d4aa4

+ 1 - 1
src/dashoo.cn/backend/api/controllers/oilsupplier/suppliercertsub.go

@@ -79,7 +79,7 @@ func (this *OilSupplierCertSubController) GetEntityList() {
 	}
 
 	if Code != "" {
-		where = where + " and Code like '" + Code + "%'"
+		where = where + " and (Code like '" + Code + "%' or Name like '%" + Code + "%')"
 	}
 
 	if Name != "" {

+ 2 - 2
src/dashoo.cn/frontend_web/src/components/oilsupplier/goodslist2.vue

@@ -5,8 +5,8 @@
            class="clearfix">
         <span style="font-weight: bold">准入范围<span v-if="needPayAmount > 0 && !['7', '8', '11'].includes(status)" style="font-size: 12px; font-weight: normal; color: red">&nbsp;(需交费:{{needPayAmount}}元)</span></span>
         <span style="margin-left: 600px">
-          准入编码&nbsp;
-          <el-input size="mini" v-model="Code" clearable style="width:10%" placeholder="准入编码"></el-input>
+          准入范围/编码&nbsp;
+          <el-input size="mini" v-model="Code" clearable style="width:10%" placeholder="准入范围/编码"></el-input>
           &nbsp;
           <el-button type="primary" size="mini" @click="handleSearch">查询</el-button>
         </span>