|
@@ -86,6 +86,7 @@ Page({ |
|
@@ -86,6 +86,7 @@ Page({ |
|
86
|
calendarMaskLoad:true,
|
86
|
calendarMaskLoad:true,
|
|
87
|
})
|
87
|
})
|
|
88
|
},1000);
|
88
|
},1000);
|
|
|
|
89
|
+ this.conditionInfo()
|
|
89
|
|
90
|
|
|
90
|
},
|
91
|
},
|
|
91
|
|
92
|
|
|
@@ -237,11 +238,14 @@ selectphone:function(e){ |
|
@@ -237,11 +238,14 @@ selectphone:function(e){ |
|
237
|
this.data.form.phone=e.detail.phone;
|
238
|
this.data.form.phone=e.detail.phone;
|
|
238
|
this.data.form.rname=e.detail.rname;
|
239
|
this.data.form.rname=e.detail.rname;
|
|
239
|
this.data.form.cusdem=e.detail.cusdem;
|
240
|
this.data.form.cusdem=e.detail.cusdem;
|
|
|
|
241
|
+ var form=this.data.form
|
|
240
|
this.data.form.sex=e.detail.sex;
|
242
|
this.data.form.sex=e.detail.sex;
|
|
241
|
this.setData({
|
243
|
this.setData({
|
|
242
|
form:this.data.form,
|
244
|
form:this.data.form,
|
|
243
|
- searchlist:null
|
245
|
+ searchlist:null,
|
|
|
|
246
|
+
|
|
244
|
})
|
247
|
})
|
|
|
|
248
|
+ this.conditionInfo();
|
|
245
|
},
|
249
|
},
|
|
246
|
calendarShow(){
|
250
|
calendarShow(){
|
|
247
|
this.setData({
|
251
|
this.setData({
|
|
@@ -272,4 +276,13 @@ async selectdesk(){ |
|
@@ -272,4 +276,13 @@ async selectdesk(){ |
|
272
|
url:'b_desk?rdate='+rdate+'&tid='+this.data.form.tabid+'&pnum_str='+this.data.form.pnum_str
|
276
|
url:'b_desk?rdate='+rdate+'&tid='+this.data.form.tabid+'&pnum_str='+this.data.form.pnum_str
|
|
273
|
})
|
277
|
})
|
|
274
|
},
|
278
|
},
|
|
|
|
279
|
+conditionInfo:function(){
|
|
|
|
280
|
+ var form=this.data.form
|
|
|
|
281
|
+ if(form.tid.length>0 && form.rname.length>0){
|
|
|
|
282
|
+ this.data.buttonhide=false;
|
|
|
|
283
|
+ }
|
|
|
|
284
|
+ this.setData({
|
|
|
|
285
|
+ buttonhide:this.data.buttonhide
|
|
|
|
286
|
+ })
|
|
|
|
287
|
+}
|
|
275
|
}) |
288
|
}) |