|
@@ -66,7 +66,8 @@
|
|
|
<span v-if="order!=null ">
|
|
|
{{order.userPhone }}
|
|
|
</span>
|
|
|
- <el-button type="text" size="mini" @click="callNumber(null,null,order.orderId)">拨号</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-descriptions-item>
|
|
|
<el-descriptions-item label="收货地址" >
|
|
|
<el-popover
|
|
@@ -448,6 +449,9 @@
|
|
|
>
|
|
|
<customer-details ref="customerDetails" />
|
|
|
</el-drawer>
|
|
|
+ <el-dialog :title="addSms.title" :visible.sync="addSms.open" width="800px" append-to-body>
|
|
|
+ <add-sms ref="sms" @close="closeSms()"></add-sms>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -460,10 +464,11 @@ import Material from '@/components/Material'
|
|
|
import {bindCustomer,getExpress, listStoreOrder, getStoreOrder, delStoreOrder, addStoreOrder, updateStoreOrder, exportStoreOrder,uploadCredentials, getStoreOrderAddress} from "@/api/store/storeOrder";
|
|
|
import {getAllList} from "@/api/store/city";
|
|
|
import customerDetails from '../../crm/components/customerDetails.vue';
|
|
|
+import addSms from '../../crm/components/addSms.vue';
|
|
|
export default {
|
|
|
name: "order",
|
|
|
components: {customerDetails,
|
|
|
- ImageUpload,Material },
|
|
|
+ ImageUpload,Material ,addSms},
|
|
|
data() {
|
|
|
return {
|
|
|
scheduleOptions:[],
|
|
@@ -482,6 +487,10 @@ export default {
|
|
|
orderCode:null,
|
|
|
certificates:null,
|
|
|
},
|
|
|
+ addSms:{
|
|
|
+ open:false,
|
|
|
+ title:"发短信"
|
|
|
+ },
|
|
|
certificateRules:{
|
|
|
certificates:[
|
|
|
{ required: true, message: "凭证不能为空", trigger: "change" }
|
|
@@ -578,6 +587,17 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
methods: {
|
|
|
+ closeSms(){
|
|
|
+ this.addSms.open=false;
|
|
|
+ },
|
|
|
+ handleSms(mobile){
|
|
|
+ this.addSms.open=true;
|
|
|
+ var that=this;
|
|
|
+ setTimeout(() => {
|
|
|
+ that.$refs.sms.getOrderId(this.orderId,mobile,2);
|
|
|
+ }, 500);
|
|
|
+
|
|
|
+ },
|
|
|
handleAddress(){
|
|
|
const id = this.order.id;
|
|
|
getStoreOrderAddress(id).then(response =>{
|