Commit cbbdc13bb028d189d285b6583d6e4fafc5956d09

Authored by wuxuehong
1 parent c55fa8f60b

儿童建档增加社保卡和就诊卡

Showing 6 changed files with 66 additions and 6 deletions

littleApp_child/packageA/pages/preDocumented/preDocumented.js View file @ cbbdc13
... ... @@ -424,6 +424,34 @@
424 424 };
425 425 },
426 426 submitData () {
  427 + let that = this;
  428 + if (that.data.postObj!==undefined&&that.data.postObj!==null&&that.data.postObj!=='') {
  429 + if ((that.data.postObj.sINCard===undefined||that.data.postObj.sINCard===null||that.data.postObj.sINCard==='')&&(that.data.postObj.vcCardNo===undefined||that.data.postObj.vcCardNo===null||that.data.postObj.vcCardNo==='')) {
  430 + wx.showModal({
  431 + title: '提示',
  432 + content: '社保卡和就诊卡尽量填写一项!',
  433 + confirmText: '填写卡号',
  434 + cancelText: '直接保存',
  435 + success (res) {
  436 + if (res.confirm) {
  437 + console.log('用户点击确定')
  438 + } else if (res.cancel) {
  439 + that.submitDataArchives()
  440 + }
  441 + }
  442 + })
  443 + } else {
  444 + that.submitDataArchives()
  445 + }
  446 + }else {
  447 + wx.showToast({
  448 + title: '请填写表单!',
  449 + icon: 'error',
  450 + duration: 2000
  451 + })
  452 + }
  453 + },
  454 + submitDataArchives() {
427 455 let hospital = this.data.queryData.hospital;
428 456 let postData = this.data.postObj;
429 457 postData.liveType = liveType;
littleApp_child/packageA/pages/preDocumented/preDocumented.json View file @ cbbdc13
1 1 {
2   - "navigationBarTitleText": "儿童预约建档",
  2 + "navigationBarTitleText": "儿童建档",
3 3 "navigationBarBackgroundColor": "#48C17B",
4 4 "navigationBarTextStyle": "white",
5 5 "backgroundColor": "#d8dbd4",
littleApp_child/packageA/pages/preDocumented/preDocumented.wxml View file @ cbbdc13
... ... @@ -227,6 +227,22 @@
227 227 <input bindinput="bindKeyInput" value="{{postObj.address}}" id="address" type="text" placeholder="输入街道门牌" />
228 228 </view>
229 229 </view>
  230 + <view class="weui-cell">
  231 + <view class="weui-cell__hd">
  232 + <view class="weui-label line-tt">社保卡</view>
  233 + </view>
  234 + <view class="weui-cell__bd">
  235 + <input bindinput="bindKeyInput" value="{{postObj.sINCard}}" id="sINCard" type="text" placeholder="输入社保卡" />
  236 + </view>
  237 + </view>
  238 + <view class="weui-cell">
  239 + <view class="weui-cell__hd">
  240 + <view class="weui-label line-tt">就诊卡</view>
  241 + </view>
  242 + <view class="weui-cell__bd">
  243 + <input bindinput="bindKeyInput" value="{{postObj.vcCardNo}}" id="vcCardNo" type="text" placeholder="输入就诊卡" />
  244 + </view>
  245 + </view>
230 246 </view>
231 247 <view>
232 248 <button class="we_button archives" disabled="{{submiting}}" bindtap="submitData">提交建档</button>
... ... @@ -399,6 +415,22 @@
399 415 </view>
400 416 <view class="weui-cell__bd">
401 417 <text>{{babyInfo.address?babyInfo.address:''}}</text>
  418 + </view>
  419 + </view>
  420 + <view class="weui-cell">
  421 + <view class="weui-cell__hd">
  422 + <view class="weui-label line-tt">社保卡</view>
  423 + </view>
  424 + <view class="weui-cell__bd">
  425 + <text>{{babyInfo.sINCard?babyInfo.sINCard:''}}</text>
  426 + </view>
  427 + </view>
  428 + <view class="weui-cell">
  429 + <view class="weui-cell__hd">
  430 + <view class="weui-label line-tt">就诊卡</view>
  431 + </view>
  432 + <view class="weui-cell__bd">
  433 + <text>{{babyInfo.vcCardNo?babyInfo.vcCardNo:''}}</text>
402 434 </view>
403 435 </view>
404 436 <view class="weui-cell">
littleApp_child/pages/home/home.wxml View file @ cbbdc13
... ... @@ -211,7 +211,7 @@
211 211 <!-- <button class="we_button checkinput" bindtap="toQuickArchives">儿童建档</button>
212 212 <button class="we_button ilnessArchives" bindtap="toIllnessArchives">儿童疾病建档</button>-->
213 213 <!-- <button class="we_button checkinput" bindtap="toCheckInput">问诊录入</button> -->
214   - <button class="we_button archives" bindtap="toPreDoc">儿童预约建档</button>
  214 + <button class="we_button archives" bindtap="toPreDoc">儿童建档</button>
215 215 </view>
216 216  
217 217 <!-- <view style='height:108px;'></view> -->
littleApp_child/project.config.json View file @ cbbdc13
... ... @@ -10,7 +10,7 @@
10 10 "postcss": true,
11 11 "preloadBackgroundData": false,
12 12 "minified": true,
13   - "newFeature": true,
  13 + "newFeature": false,
14 14 "coverView": true,
15 15 "nodeModules": false,
16 16 "autoAudits": false,
... ... @@ -30,7 +30,6 @@
30 30 "disablePlugins": [],
31 31 "outputPath": ""
32 32 },
33   - "enableEngineNative": false,
34 33 "useIsolateContext": true,
35 34 "userConfirmedBundleSwitch": false,
36 35 "packNpmManually": false,
... ... @@ -39,7 +38,8 @@
39 38 "disableUseStrict": false,
40 39 "minifyWXML": true,
41 40 "showES6CompileOption": false,
42   - "useCompilerPlugins": false
  41 + "useCompilerPlugins": false,
  42 + "ignoreUploadUnusedFiles": true
43 43 },
44 44 "compileType": "miniprogram",
45 45 "libVersion": "2.15.0",
littleApp_child/utils/network_util.js View file @ cbbdc13
... ... @@ -4,7 +4,7 @@
4 4 // 18382670036 多层次
5 5 // 18328537371 陈云 666666
6 6 // 0测试环境 1正式环境 2演示环境 3衡水
7   -var Builing_Release_AppStore = 1;
  7 +var Builing_Release_AppStore = 0;
8 8 // 获取服务器地址
9 9 function kServerBaseUrl() {
10 10 switch (Builing_Release_AppStore) {