| xqd
@@ -4,16 +4,33 @@
|
|
|
<u-popup v-model="formshow" mode="center" border-radius="14" :closeable="false">
|
|
|
<view style="width: 75vw;height: 60vh">
|
|
|
<view class="flex justify-center align-center" style="height: 15%;font-size: 34rpx;font-weight: bold;">填写意见单</view>
|
|
|
- <view style="height: 70%;padding: 0 30rpx;">
|
|
|
- <view class="flex align-center" style="margin-bottom: 10rpx;">
|
|
|
+ <view style="height: 70%;padding: 0 40rpx;">
|
|
|
+ <!-- 病症 -->
|
|
|
+ <view class="flex align-center" style="margin-bottom: 20rpx;">
|
|
|
<text style="margin-right: 20rpx;">病症:</text>
|
|
|
- <input placeholder="请填写病症名称" @blur="bzblur" style="border-bottom: 1rpx solid #666666;"/>
|
|
|
+ <input placeholder="请填写病症名称" @input="bzblur" style="border-bottom: 1rpx solid #666666;" />
|
|
|
</view>
|
|
|
- <view class="flex align-center" style="margin-bottom: 10rpx;">
|
|
|
+ <!-- 病因-->
|
|
|
+ <view class="flex align-center" style="margin-bottom: 20rpx;">
|
|
|
<text style="margin-right: 20rpx;">病因:</text>
|
|
|
- <input placeholder="请填写患病因素" @blur="byblur" style="border-bottom: 1rpx solid #666666;"/>
|
|
|
+ <input placeholder="请填写患病因素" @input="byblur" style="border-bottom: 1rpx solid #666666;" />
|
|
|
+ </view>
|
|
|
+ <!-- 结论 -->
|
|
|
+ <view>
|
|
|
+ <view style="margin-bottom: 20rpx;">结论因素:</view>
|
|
|
+ <view style="border: 1rpx solid #666666;border-radius: 15rpx;padding: 10rpx;">
|
|
|
+ <textarea @input="jlblur" placeholder="请填写病情情况、建议等" placeholder-style="color:#969696" style="width: auto;" />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <!-- 两个按钮 -->
|
|
|
+ <view style="height: 15%;display: flex;justify-content: center;align-items: center">
|
|
|
+ <view style="display:flex;justify-content: center;align-items: center;width: 50%;">
|
|
|
+ <u-button shape="shape" size="medium" @click="formshow = false,bz=null,by=null,jl=null">取消</u-button>
|
|
|
+ </view>
|
|
|
+ <view style="display:flex;justify-content: center;align-items: center ;width: 50%;">
|
|
|
+ <u-button shape="shape" size="medium" type="primary" @click="qr">确认</u-button>
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-popup>
|
| xqd
@@ -270,11 +287,48 @@
|
|
|
},
|
|
|
//病症提交
|
|
|
bzblur(e){
|
|
|
- e.datail.value = this.bz
|
|
|
+ this.bz = e.detail.value
|
|
|
},
|
|
|
byblur(e){
|
|
|
- e.datail.value = this.by
|
|
|
+ this.by =e.detail.value
|
|
|
+ },
|
|
|
+ jlblur(e){
|
|
|
+ this.jl = e.detail.value
|
|
|
+ },
|
|
|
+ //意见单 确认
|
|
|
+ qr(e){
|
|
|
+ console.log(this.bz)
|
|
|
+ console.log(this.by)
|
|
|
+ console.log(this.jl)
|
|
|
+
|
|
|
+ if(this.bz!=''){
|
|
|
+ if(this.by!=''){
|
|
|
+ if(this.jl!=''){
|
|
|
+ this.formshow = false
|
|
|
+ this.zt = 3
|
|
|
+ this.bz=''
|
|
|
+ this.by=''
|
|
|
+ this.jl=''
|
|
|
+ }else{
|
|
|
+ uni.showToast({
|
|
|
+ title:'请填写结论',
|
|
|
+ icon:'none'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ uni.showToast({
|
|
|
+ title:'请填写病因',
|
|
|
+ icon:'none'
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ uni.showToast({
|
|
|
+ title:'请填写病症',
|
|
|
+ icon:'none'
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
+ //意见单 取消
|
|
|
|
|
|
}
|
|
|
};
|