Parcourir la source

客户管理 订单查询改造

xgb il y a 1 jour
Parent
commit
ade6f89874

+ 1 - 1
src/api/store/storeOrder.js

@@ -209,7 +209,7 @@ export function myExportOrder(query) {
 
 export function getCustomerOrderList(query) {
   return request({
-    url: '/store/storeOrder/getCustomerOrderList',
+    url: '/store/store/storeOrder/getCustomerOrderList',
     method: 'get',
     params: query
   })

+ 2 - 2
src/views/crm/components/customerDetails.vue

@@ -369,13 +369,13 @@
                     this.$refs.voiceLogs.getData(this.item.customerId);
                 }
                 if(tab.name=="storeOrder"){
-                    this.$refs.storeOrder.getData(this.item.customerId);
+                    this.$refs.storeOrder.getData(this.item.userId);
                 }
                 if(tab.name=="smsLogs"){
                     this.$refs.smsLogs.getData(this.item.customerId);
                 }
                 if(tab.name=="hisOrder"){
-                    this.$refs.hisOrder.getData(this.item.customerId);
+                    this.$refs.hisOrder.getData(this.item.userId);
                 }
             },
             getDetails(customerId) {

+ 3 - 3
src/views/crm/components/customerHisOrderList.vue

@@ -94,7 +94,7 @@ export default {
       queryParams: {
         pageNum: 1,
         pageSize: 10,
-        customerId: null,
+        userId: null,
         customerCode: null,
         orderJson: null,
         itemJson: null,
@@ -110,8 +110,8 @@ export default {
     this.getList();
   },
   methods: {
-    getData(customerId){
-        this.queryParams.customerId=customerId;
+    getData(userId){
+        this.queryParams.userId=userId;
         this.queryParams.pageNum=1;
         this.getList();
     },

+ 4 - 4
src/views/crm/components/customerStoreOrderList.vue

@@ -84,7 +84,7 @@
 
 <script>
 import { getCustomerOrderList  } from "@/api/store/storeOrder";
-import productOrder from "../../store/components/productOrder";
+import productOrder from "../../hisStore/components/productOrder";
     export default {
         components: { productOrder  },
         name: "customerVisit",
@@ -108,7 +108,7 @@ import productOrder from "../../store/components/productOrder";
                 queryParams: {
                     pageNum: 1,
                     pageSize: 10,
-                    customerId: null,
+                    userId: null,
                 },
             };
         },
@@ -140,8 +140,8 @@ import productOrder from "../../store/components/productOrder";
                     this.$refs.order.getOrder(orderId);
                 }, 500);
             },
-            getData(customerId){
-                this.queryParams.customerId=customerId;
+            getData(userId){
+                this.queryParams.userId=userId;
                 this.queryParams.pageNum=1;
                 this.getList();
             },