lucky 2 gadi atpakaļ
vecāks
revīzija
3f5c97c944

+ 2 - 0
src/views/goodStore/dealGoodsPool/index.vue

@@ -41,6 +41,7 @@
                 style="100%"
                 v-model="parmValue.spuCode"
                 :maxlength="40"
+                clearable
                 placeholder="商品编码"
                 @blur="
                   pageInfo.curr = 1;
@@ -55,6 +56,7 @@
                 style="100%"
                 v-model="parmValue.good_name"
                 :maxlength="40"
+                clearable
                 placeholder="商品名称"
                 @blur="
                   pageInfo.curr = 1;

+ 6 - 1
src/views/goodStore/goodsOnline/detail.vue

@@ -356,6 +356,7 @@ import {
   options7,
   options8,
 } from "./columns";
+import { isArray } from '@/utils/validate';
 export default {
   name: "goodsOnlineDetail",
   mixins: [resToken],
@@ -519,7 +520,11 @@ export default {
           });
         }
         this.sitem.cat = cat;
-        this.sitem.good_info_img = this.sitem.good_info_img.split(",");
+        
+        if(!isArray(this.sitem.good_info_img)){
+          this.sitem.good_info_img = this.sitem.good_info_img.split(",");
+        }
+        
         this.status = exam_status;
         this.getNewTime();
       } else if (code >= 100 && code <= 104) {

+ 15 - 0
src/views/serviceParam/Invoicing/index.vue

@@ -376,7 +376,22 @@ export default {
     this.searchList();
   },
   methods: {
+    // 时间
+    async handleTime(e) {
+      this.parmValue.start = e.startTime || "";
+      this.parmValue.end = e.endTime || "";
+      if (
+        (this.parmValue.start !== "" && this.parmValue.end !== "") ||
+        (this.parmValue.start === "" && this.parmValue.end === "")
+      ) {
+        this.pageInfo.curr = 1;
+        this.parmValue.page = 1;
+        await this.searchList();
+      }
+    },
     restSearch() {
+      this.select = "invoice_code";
+      this.sinput = "";
       this.parmValue = {
         name: "", // 业务员名字
         username: "", // 账号

+ 4 - 1
src/views/serviceParam/business/index.vue

@@ -50,6 +50,7 @@
           <el-input
             v-model="sinput"
             :size="searchSize"
+            clearable
             @blur="searchList()"
             placeholder="关键字"
             maxlength="40"
@@ -334,7 +335,7 @@ export default {
       await this.searchList();
     },
     restSearch() {
-      this.titleList = [];
+      // this.titleList = [];
       this.parmValue = {
         name: "",
         pid: "",
@@ -343,6 +344,8 @@ export default {
         end: "",
         companyNo: "",
       };
+      this.select= "1";
+      this.sinput= "";
       this.searchList();
     },
     getNext(index) {

+ 28 - 4
src/views/serviceParam/storeSet/index.vue

@@ -90,15 +90,35 @@
             </el-row>
             <el-row style="padding: 0">
               <el-col :span="18" style="width: 340px; padding: 0">
+                <!-- <search-customer
+                  :value="supplierNo"
+                  :size="searchSize"
+                  :code="parmValue.supplierNo"
+                  :companyNo="parmValue.supplierNo"
+                  :placeholder="'供应商公司名称'"
+                  :is-detail="true"
+                  :disabled="false"
+                  :names="''"
+                  @searchChange="supplierChange"
+                /> -->
                 <search-customer
+                  :value="supplierNo"
                   :size="searchSize"
-                  :code="supplierNo"
+                  :code="parmValue.supplierNo"
                   :placeholder="'供应商公司名称'"
                   :is-detail="false"
                   :disabled="false"
                   :names="''"
                   @searchChange="supplierChange"
                 />
+                <!-- <search-customer
+                  :value="supplierNo"
+                  :size="searchSize"
+
+                  :placeholder="'供应商公司名称'"
+                  :disabled="false"
+                  @searchChange="supplierChange"
+                /> -->
               </el-col>
 
               <el-col
@@ -248,7 +268,7 @@ export default {
         start: "", //新建起始时间
         end: "", //新建结束时间
         mobile: "", //手机号
-        contactor: "", //联系人
+        contactor_name: "", //联系人
       },
       tableData: [],
       passwordModel: false,
@@ -333,10 +353,13 @@ export default {
 
   methods: {
     supplierChange(e) {
+      
       if (e && e.id) {
+        this.supplierNo = [e.code];
         this.parmValue.supplierNo = e.code; //供应商编码
       } else {
         this.parmValue.supplierNo = "";
+        this.supplierNo = [];
       }
       this.parmValue.page = 1;
       this.searchList();
@@ -374,7 +397,7 @@ export default {
         start: "", //新建起始时间
         end: "", //新建结束时间
         mobile: "", //手机号
-        contactor: "", //联系人
+        contactor_name: "", //联系人
         page: 1, // 页码
         size: 15, // 每页显示条数
       };
@@ -396,10 +419,11 @@ export default {
       }
       this.loading = true;
       this.parmValue.wsm_code = this.select === "1" ? this.input : "";
-      this.parmValue.contactor = this.select === "2" ? this.input : "";
+      this.parmValue.contactor_name = this.select === "2" ? this.input : "";
       this.parmValue.mobile = this.select === "3" ? this.input : "";
       const res = await asyncRequest.list(this.parmValue);
       if (res && res.code === 0 && res.data) {
+        console.log("aaaaaaaaaaaaaaaa",res)
         this.tableData = res.data.list;
         this.pageInfo.total = Number(res.data.count);
       } else if (res && res.code >= 100 && res.code <= 104) {