Commit 8d62356838048a8ef44bb78490f5119e44060f22

Authored by vking
1 parent c758e339

周到安排

@@ -65,11 +65,15 @@ Page({ @@ -65,11 +65,15 @@ Page({
65 async getDetail(id){ 65 async getDetail(id){
66 let res=await App.Reserve.Detail({rid: id, openid: ''}); 66 let res=await App.Reserve.Detail({rid: id, openid: ''});
67 this.bookInfo=res.data 67 this.bookInfo=res.data
68 - let tplMsg=await ST.getTplMsg(res.data,this.sc.setting.template_code,this.sc) 68 + if(res.data.operator_openid==2){//运营处理订单,强制使用运营短信
  69 + this.tplsIndex='SMS_173950289'
  70 + }
  71 + let tplMsg=await ST.getTplMsg(res.data,this.tplsIndex,this.sc)
69 this.setData({ 72 this.setData({
70 bookInfo: res.data, 73 bookInfo: res.data,
71 tplMsg: tplMsg 74 tplMsg: tplMsg
72 }) 75 })
  76 +
73 }, 77 },
74 sendsms(){ 78 sendsms(){
75 App.SendSMS.Message({ 79 App.SendSMS.Message({
@@ -119,7 +119,7 @@ module.exports ={ @@ -119,7 +119,7 @@ module.exports ={
119 case 'SMS_173950289'://运营安排包间 119 case 'SMS_173950289'://运营安排包间
120 smsData = { 120 smsData = {
121 seller_name: bookInfo.seller.sellername.substr(0, 20), 121 seller_name: bookInfo.seller.sellername.substr(0, 20),
122 - daotime: bookInfo.rdateStr.replace('日','日'+txa[tx.timeIndex]), 122 + shiduan: bookInfo.rdateStr.replace('日','日'+txa[tx.timeIndex]),
123 rooms: this.getTableNameOne(bookInfo.tables).substr(0, 20), 123 rooms: this.getTableNameOne(bookInfo.tables).substr(0, 20),
124 } 124 }
125 break; 125 break;