Commit 492044211937e9ecc5e59b9fda3378ed60484f93

Authored by changpengfei
1 parent b8e4016cc4

修改儿童归档添加字段

Showing 2 changed files with 128 additions and 2 deletions

littleApp_child/pages/quickArchives/quickArchives.js View file @ 4920442
... ... @@ -23,6 +23,18 @@
23 23 checked:false
24 24 },
25 25 ],
  26 + deliveryList:[
  27 + {
  28 + name:"顺产",
  29 + value: 'shun',
  30 + checked:true
  31 + },
  32 + {
  33 + name:"剖宫产",
  34 + value: 'pao',
  35 + checked:false
  36 + },
  37 + ],
26 38 selectedChild:{},
27 39 isChooseBox:true,
28 40 //页面显示 1 新增建档 2 查看建档
... ... @@ -96,6 +108,19 @@
96 108 ['postObj.birth']: value
97 109 })
98 110 },
  111 + bindMomDateChange(e){
  112 + let value = e.detail.value;
  113 + this.setData({
  114 + ['postObj.mBirth']: value
  115 + })
  116 + },
  117 + radioDeliveryChange (e) {
  118 + let value = e.detail.value;
  119 + console.log(value)
  120 + this.setData({
  121 + ['postObj.fmtype']: value
  122 + })
  123 + },
99 124 fouseSearchHospital(e){
100 125 let resultArr = this.data.SearchHospitals
101 126 if(this.data.SearchHospitals.length == 0){
... ... @@ -186,6 +211,18 @@
186 211 if(!data.babyName){
187 212 flag = false;
188 213 value += "儿童姓名 "
  214 + }
  215 + if(!data.sex){
  216 + flag = false;
  217 + value += "儿童性别 "
  218 + }
  219 + if(!data.weight){
  220 + flag = false;
  221 + value += "儿童出生体重 "
  222 + }
  223 + if(!data.height){
  224 + flag = false;
  225 + value += "儿童出生身长 "
189 226 }
190 227 return {
191 228 flag:flag,
littleApp_child/pages/quickArchives/quickArchives.wxml View file @ 4920442
... ... @@ -25,6 +25,7 @@
25 25 <view class="weui-cell">
26 26 <view class="weui-cell__hd">
27 27 <view class="weui-label line-tt">
  28 + <text style="color:red">*</text>
28 29 身份证号码
29 30 </view>
30 31 </view>
31 32  
32 33  
... ... @@ -88,14 +89,22 @@
88 89 </view>
89 90 <view class="weui-cell">
90 91 <view class="weui-cell__hd">
91   - <view class="weui-label line-tt">母亲姓名</view>
  92 + <view class="weui-label line-tt"><text style="color:red">*</text>儿童出生体重</view>
92 93 </view>
93 94 <view class="weui-cell__bd">
94   - <input bindinput="bindKeyInput" value="{{postObj.mommyName}}" id="mommyName" type="text" placeholder="输入母亲姓名" />
  95 + <input bindinput="bindKeyInput" value="{{postObj.weight}}" id="weight" type="text" placeholder="输入儿童出生体重" />
95 96 </view>
96 97 </view>
97 98 <view class="weui-cell">
98 99 <view class="weui-cell__hd">
  100 + <view class="weui-label line-tt"><text style="color:red">*</text>儿童出生身长</view>
  101 + </view>
  102 + <view class="weui-cell__bd">
  103 + <input bindinput="bindKeyInput" value="{{postObj.height}}" id="height" type="text" placeholder="输入儿童出生身长" />
  104 + </view>
  105 + </view>
  106 + <view class="weui-cell">
  107 + <view class="weui-cell__hd">
99 108 <view class="weui-label line-tt">儿童就诊卡号</view>
100 109 </view>
101 110 <view class="weui-cell__bd">
... ... @@ -108,6 +117,86 @@
108 117 </view>
109 118 <view class="weui-cell__bd">
110 119 <input bindinput="bindKeyInput" value="{{postObj.sINCard}}" id="sINCard" type="text" placeholder="输入儿童社保卡号" />
  120 + </view>
  121 + </view>
  122 + <view class="weui-cell">
  123 + <view class="weui-cell__hd">
  124 + <view class="weui-label line-tt">母亲姓名</view>
  125 + </view>
  126 + <view class="weui-cell__bd">
  127 + <input bindinput="bindKeyInput" value="{{postObj.mommyName}}" id="mommyName" type="text" placeholder="输入母亲姓名" />
  128 + </view>
  129 + </view>
  130 + <view class="weui-cell">
  131 + <view class="weui-cell__hd">
  132 + <view class="weui-label line-tt">
  133 + 母亲出生日期
  134 + </view>
  135 + </view>
  136 + <view class="weui-cell__bd">
  137 + <picker mode="date" value="{{postObj.mBirth}}" start="2000-01-01" end="{{endDate}}" bindchange="bindMomDateChange">
  138 + <view class="picker-view">
  139 + <text style="color:#909090" wx:if="{{!postObj.mBirth}}">请选择出生日期</text>
  140 + <text wx:if="{{postObj.mBirth}}">{{postObj.mBirth}}</text>
  141 + </view>
  142 + </picker>
  143 + </view>
  144 + </view>
  145 + <view class="weui-cell">
  146 + <view class="weui-cell__hd">
  147 + <view class="weui-label line-tt">分娩孕周</view>
  148 + </view>
  149 + <view class="weui-cell__bd">
  150 + <input bindinput="bindKeyInput" value="{{postObj.dulWeek}}" id="dulWeek" type="text" placeholder="输入分娩孕周" />
  151 + </view>
  152 + </view>
  153 + <view class="weui-cell">
  154 +<!-- <view class="weui-cell__hd">-->
  155 +<!-- <view class="weui-label line-tt">第几胎第几产</view>-->
  156 +<!-- </view>-->
  157 +<!-- <view class="weui-cell__bd">-->
  158 +<!-- <input bindinput="bindKeyInput" value="{{postObj}}" id="" type="text" placeholder="输入母亲姓名" />-->
  159 +<!-- </view>-->
  160 + <view style="width: 10%;color: #505050;font-size: 14px;padding-left:5px;">第</view>
  161 + <view style="width: 30%">
  162 + <input bindinput="bindKeyInput" value="{{postObj.tai}}" id="tai" type="text" placeholder="输入第几胎" />
  163 + </view>
  164 + <view style="width: 15%;color: #505050;font-size: 14px;padding-left:5px;">胎, 第</view>
  165 + <view style="width: 30%">
  166 + <input bindinput="bindKeyInput" value="{{postObj.chan}}" id="chan" type="text" placeholder="输入第几产" />
  167 + </view>
  168 + <view style="width: 10%;color: #505050;font-size: 14px;padding-left:5px;">产</view>
  169 + </view>
  170 + <view class="weui-cell">
  171 + <view class="weui-cell__hd">
  172 + <view class="weui-label line-tt">
  173 + <text style="color:red">*</text>
  174 + 分娩方式
  175 + </view>
  176 + </view>
  177 + <view class="weui-cell__bd">
  178 + <radio-group class="radio-group" bindchange="radioDeliveryChange">
  179 + <label class="radio" wx:for="{{deliveryList}}">
  180 + <radio value="{{item.value}}" checked="{{postObj.fmtype == item.value}}"/>
  181 + {{item.name}}
  182 + </label>
  183 + </radio-group>
  184 + </view>
  185 + </view>
  186 + <view class="weui-cell">
  187 + <view class="weui-cell__hd">
  188 + <view class="weui-label line-tt">出院诊断内容</view>
  189 + </view>
  190 + <view class="weui-cell__bd">
  191 + <input bindinput="bindKeyInput" value="{{postObj.cyzdnr}}" id="cyzdnr" type="text" placeholder="输入出院诊断内容" />
  192 + </view>
  193 + </view>
  194 + <view class="weui-cell">
  195 + <view class="weui-cell__hd">
  196 + <view class="weui-label line-tt">家庭住址</view>
  197 + </view>
  198 + <view class="weui-cell__bd">
  199 + <input bindinput="bindKeyInput" value="{{postObj.addr}}" id="addr" type="text" placeholder="输入家庭住址" />
111 200 </view>
112 201 </view>
113 202 </view>