|
...
|
...
|
@@ -4,7 +4,7 @@ import comm from '../../utils/bookCommon'; |
|
|
|
import App from '../../utils/api';
|
|
|
|
const {regeneratorRuntime} = global
|
|
|
|
const formTpl={
|
|
|
|
id:'',
|
|
|
|
rid:'',
|
|
|
|
date:0,
|
|
|
|
time:0,
|
|
|
|
pnum_str:'1-4',
|
|
...
|
...
|
@@ -249,11 +249,14 @@ Page({ |
|
|
|
form.rdate =rdate
|
|
|
|
App.Reserve.SetReserveInfo(form).then(res => {
|
|
|
|
if(res.ret==200){
|
|
|
|
let _id=(res.data.id || res.data)
|
|
|
|
this.setData({
|
|
|
|
form:JSON.parse(JSON.stringify(formTpl))
|
|
|
|
form:JSON.parse(JSON.stringify(formTpl)),
|
|
|
|
tablesed:null,
|
|
|
|
})
|
|
|
|
App.Reserve.Detail({rid:_id,openid:''},true)
|
|
|
|
wx.navigateTo({
|
|
|
|
url:'b_detail?id='+res.data.id,
|
|
|
|
url:'b_detail?id='+_id,
|
|
|
|
});
|
|
|
|
}else{
|
|
|
|
util.toast(res.msg,'none')
|
|
...
|
...
|
@@ -333,7 +336,7 @@ Page({ |
|
|
|
obj.form.phone=res.data.phone;
|
|
|
|
obj.form.sex=res.data.sex;
|
|
|
|
obj.form.cusdem=res.data.cusdem;
|
|
|
|
obj.form.id=id;
|
|
|
|
obj.form.rid=id;
|
|
|
|
obj.form.tid=[];
|
|
|
|
res.data.tables.forEach((t,ti)=>{
|
|
|
|
t.isselect=true
|
...
|
...
|
|