瀏覽代碼

台账筛选条件变更

lucky 2 年之前
父節點
當前提交
320110a6f8
共有 2 個文件被更改,包括 14 次插入3 次删除
  1. 2 2
      src/views/standingBook/columns.js
  2. 12 1
      src/views/standingBook/index.vue

+ 2 - 2
src/views/standingBook/columns.js

@@ -99,13 +99,13 @@ const schTahead = [
   },
   {
     prop: "spuCode",
-    label: "成本商品编码",
+    label: "成本商品",
     t1:"方便统一修改、留存",
     minWidth:155,
   },
   {
     prop: "skuCode",
-    label: "上线商品编码",
+    label: "上线商品",
     t1:"方便统一修改、留存",
     minWidth:155,
   },

+ 12 - 1
src/views/standingBook/index.vue

@@ -93,7 +93,7 @@
           ></el-tooltip> -->
             <el-input v-model="parmValue[item.prop]" :placeholder="item.label+'编号'">
               <template slot="prepend">
-                <div style="width: 90px">{{ item.label }}</div>
+                <div style="width: 70px">{{ item.label }}</div>
               </template>
             </el-input>
           
@@ -212,6 +212,17 @@ export default {
   methods: {
     //搜索
     async search() {
+      let index = 0;
+      for(let item of this.schTahead){
+        if((this.parmValue[item.prop] ?? "") != ""){
+          index++
+        }
+      }
+      if(index>1){
+        this.$message.warning("只能同时搜索一条编号")
+        this.dialogFormVisible = false;
+        return;
+      }
       this.searchList();
       this.dialogFormVisible = false;
     },