阿拉蕾 1 year ago
parent
commit
981495507f
2 changed files with 15 additions and 1 deletions
  1. 7 0
      src/api/store/storeOrder.js
  2. 8 1
      src/views/store/components/productOrder.vue

+ 7 - 0
src/api/store/storeOrder.js

@@ -32,6 +32,13 @@ export function getStoreOrder(id) {
     method: 'get'
     method: 'get'
   })
   })
 }
 }
+// 查询电话
+export function getUserPhone(id) {
+  return request({
+    url: '/store/storeOrder/queryPhone/' + id,
+    method: 'get'
+  })
+}
 
 
 // 查询订单详细
 // 查询订单详细
 export function getStoreOrderAddress(id) {
 export function getStoreOrderAddress(id) {

+ 8 - 1
src/views/store/components/productOrder.vue

@@ -68,6 +68,7 @@
                 </span>
                 </span>
                 <el-button type="text" size="mini" @click="callNumber(0,0,orderId)"  v-hasPermi="['store:storeOrder:callNumber']">拨号</el-button>
                 <el-button type="text" size="mini" @click="callNumber(0,0,orderId)"  v-hasPermi="['store:storeOrder:callNumber']">拨号</el-button>
                 <el-button type="text" size="mini" @click="handleSms(order.userPhone)" v-hasPermi="['store:storeOrder:sendSms']">短信</el-button>
                 <el-button type="text" size="mini" @click="handleSms(order.userPhone)" v-hasPermi="['store:storeOrder:sendSms']">短信</el-button>
+                <el-button icon="el-icon-search" size="mini" @click="handlePhone()" style="margin-left: 20px;" circle v-hasPermi="['store:storeOrder:queryPhone']"></el-button>
             </el-descriptions-item>
             </el-descriptions-item>
             <el-descriptions-item label="收货地址"  >
             <el-descriptions-item label="收货地址"  >
               <el-popover
               <el-popover
@@ -461,7 +462,7 @@ import { getTcmScheduleList } from "@/api/company/tcmScheduleReport";
 import {getCustomerListBySearch } from "@/api/crm/customer";
 import {getCustomerListBySearch } from "@/api/crm/customer";
 import ImageUpload from '@/components/ImageUpload'
 import ImageUpload from '@/components/ImageUpload'
 import Material from '@/components/Material'
 import Material from '@/components/Material'
-import {bindCustomer,getExpress, listStoreOrder, getStoreOrder, delStoreOrder, addStoreOrder, updateStoreOrder, exportStoreOrder,uploadCredentials, getStoreOrderAddress} from "@/api/store/storeOrder";
+import {bindCustomer,getExpress, listStoreOrder, getStoreOrder, delStoreOrder, addStoreOrder, updateStoreOrder, exportStoreOrder,uploadCredentials, getStoreOrderAddress,getUserPhone} from "@/api/store/storeOrder";
 import {getAllList} from "@/api/store/city";
 import {getAllList} from "@/api/store/city";
 import customerDetails from '../../crm/components/customerDetails.vue';
 import customerDetails from '../../crm/components/customerDetails.vue';
 import addSms from '../../crm/components/addSms.vue';
 import addSms from '../../crm/components/addSms.vue';
@@ -598,6 +599,12 @@ export default {
         }, 500);
         }, 500);
         
         
     },
     },
+    handlePhone(){
+      const id = this.order.id;
+        getUserPhone(id).then(response =>{
+          this.order.userPhone = response.userPhone;
+        })
+      },
     handleAddress(){
     handleAddress(){
       const id = this.order.id;
       const id = this.order.id;
       getStoreOrderAddress(id).then(response =>{
       getStoreOrderAddress(id).then(response =>{