|
@@ -202,23 +202,28 @@
|
202
|
202
|
<view class="btn1" @click="scanDept()">送回病房</view>
|
203
|
203
|
<view class="btn2" @click="showAlert">知道了</view>
|
204
|
204
|
</view>
|
205
|
|
- <view class="foot_btn2" v-if="
|
|
205
|
+ <!-- <view class="foot_btn2" v-if="
|
206
|
206
|
workData && workData.length === 0 && isShow && wechatFocusSwitch == 1
|
|
207
|
+ "> -->
|
|
208
|
+ <view class="foot_btn2" v-if="
|
|
209
|
+ workData && workData.length === 0 && isShow
|
207
|
210
|
">
|
208
|
|
- <view class="btn1" @click="help">{{
|
|
211
|
+ <!-- <view class="btn1" @click="help">{{
|
209
|
212
|
infoDATA.focusPatient == 1 ? "无需帮助" : "需要帮助"
|
210
|
|
- }}</view>
|
211
|
|
- <view class="btn1" @click="scanDept()">送回病房</view>
|
212
|
|
- <view class="btn2" @click="showAlert">知道了</view>
|
|
213
|
+ }}</view> -->
|
|
214
|
+ <view class="btn3" @click="scanDept()">送回病房</view>
|
|
215
|
+ <view class="btn3" @click="showAlert">知道了</view>
|
213
|
216
|
</view>
|
214
|
217
|
<view class="foot_btn2" v-if="!isShow">
|
215
|
|
- <view class="btn1" @click="scanDept()">送回病房</view>
|
216
|
|
- <view class="btn2" @click="showAlert">知道了</view>
|
|
218
|
+ <view class="btn3" @click="scanDept()">送回病房</view>
|
|
219
|
+ <view class="btn3" @click="showAlert">知道了</view>
|
217
|
220
|
</view>
|
218
|
221
|
</view>
|
219
|
222
|
<!-- 弹窗 -->
|
|
223
|
+ <!-- <showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
|
|
224
|
+ @know="know" :operate="models.operate" @ok="ok" @cancel="cancel"></showModel> -->
|
220
|
225
|
<showModel :title="models.title" :icon="models.icon" :disjunctor="models.disjunctor" :content="models.content"
|
221
|
|
- @know="know" :operate="models.operate" @ok="ok" @cancel="cancel"></showModel>
|
|
226
|
+ @know="know" :operate="models.operate"></showModel>
|
222
|
227
|
<!-- 送回病房弹窗 -->
|
223
|
228
|
<showModel :title="models1.title" :icon="models1.icon" :disjunctor="models1.disjunctor" :content="models1.content"
|
224
|
229
|
:operate="models1.operate" @ok="ok1" @cancel="cancel1"></showModel>
|
|
@@ -242,7 +247,7 @@
|
242
|
247
|
data() {
|
243
|
248
|
return {
|
244
|
249
|
options: {},
|
245
|
|
- wechatFocusSwitch: 0,
|
|
250
|
+ // wechatFocusSwitch: 0,
|
246
|
251
|
hosId: "",
|
247
|
252
|
// 弹窗model
|
248
|
253
|
models: {
|
|
@@ -495,49 +500,49 @@
|
495
|
500
|
});
|
496
|
501
|
},
|
497
|
502
|
//需要帮助、无需帮助
|
498
|
|
- help() {
|
499
|
|
- this.models = {
|
500
|
|
- disjunctor: true,
|
501
|
|
- title: "提示",
|
502
|
|
- content: this.infoDATA.focusPatient == 1 ?
|
503
|
|
- "如设置为“无需帮助”则后期此患者检查将不会自动进行建单,可通过“需要帮助”设置自动建单" : "如设置为“需要帮助”则后期此患者检查会自动进行建单,可通过“无需帮助”取消设置",
|
504
|
|
- icon: "warn",
|
505
|
|
- operate: {
|
506
|
|
- ok: "确定",
|
507
|
|
- cancel: "取消",
|
508
|
|
- },
|
509
|
|
- };
|
510
|
|
- },
|
|
503
|
+ // help() {
|
|
504
|
+ // this.models = {
|
|
505
|
+ // disjunctor: true,
|
|
506
|
+ // title: "提示",
|
|
507
|
+ // content: this.infoDATA.focusPatient == 1 ?
|
|
508
|
+ // "如设置为“无需帮助”则后期此患者检查将不会自动进行建单,可通过“需要帮助”设置自动建单" : "如设置为“需要帮助”则后期此患者检查会自动进行建单,可通过“无需帮助”取消设置",
|
|
509
|
+ // icon: "warn",
|
|
510
|
+ // operate: {
|
|
511
|
+ // ok: "确定",
|
|
512
|
+ // cancel: "取消",
|
|
513
|
+ // },
|
|
514
|
+ // };
|
|
515
|
+ // },
|
511
|
516
|
//需要帮助,无需帮助确定
|
512
|
|
- ok() {
|
513
|
|
- this.models.disjunctor = false;
|
514
|
|
- post("/nurse/updData/patient", {
|
515
|
|
- patient: {
|
516
|
|
- id: this.infoDATA.id,
|
517
|
|
- focusPatient: this.infoDATA.focusPatient == 1 ? 0 : 1,
|
518
|
|
- },
|
519
|
|
- }).then((res) => {
|
520
|
|
- let msg = "设置失败";
|
521
|
|
- let icon = "error";
|
522
|
|
- if (res.status == 200) {
|
523
|
|
- msg = "设置成功";
|
524
|
|
- icon = "success";
|
525
|
|
- this.infoDATA.focusPatient = res.data.focusPatient;
|
526
|
|
- }
|
527
|
|
- this.models = {
|
528
|
|
- disjunctor: true,
|
529
|
|
- content: msg,
|
530
|
|
- icon: icon,
|
531
|
|
- operate: {
|
532
|
|
- know: "知道了",
|
533
|
|
- },
|
534
|
|
- };
|
535
|
|
- });
|
536
|
|
- },
|
|
517
|
+ // ok() {
|
|
518
|
+ // this.models.disjunctor = false;
|
|
519
|
+ // post("/nurse/updData/patient", {
|
|
520
|
+ // patient: {
|
|
521
|
+ // id: this.infoDATA.id,
|
|
522
|
+ // focusPatient: this.infoDATA.focusPatient == 1 ? 0 : 1,
|
|
523
|
+ // },
|
|
524
|
+ // }).then((res) => {
|
|
525
|
+ // let msg = "设置失败";
|
|
526
|
+ // let icon = "error";
|
|
527
|
+ // if (res.status == 200) {
|
|
528
|
+ // msg = "设置成功";
|
|
529
|
+ // icon = "success";
|
|
530
|
+ // this.infoDATA.focusPatient = res.data.focusPatient;
|
|
531
|
+ // }
|
|
532
|
+ // this.models = {
|
|
533
|
+ // disjunctor: true,
|
|
534
|
+ // content: msg,
|
|
535
|
+ // icon: icon,
|
|
536
|
+ // operate: {
|
|
537
|
+ // know: "知道了",
|
|
538
|
+ // },
|
|
539
|
+ // };
|
|
540
|
+ // });
|
|
541
|
+ // },
|
537
|
542
|
//需要帮助,无需帮助取消
|
538
|
|
- cancel() {
|
539
|
|
- this.models.disjunctor = false;
|
540
|
|
- },
|
|
543
|
+ // cancel() {
|
|
544
|
+ // this.models.disjunctor = false;
|
|
545
|
+ // },
|
541
|
546
|
//知道了
|
542
|
547
|
know() {
|
543
|
548
|
this.models.disjunctor = false;
|
|
@@ -690,28 +695,28 @@
|
690
|
695
|
}
|
691
|
696
|
},
|
692
|
697
|
// 获取需要帮助权限
|
693
|
|
- getWechatFocusSwitch() {
|
694
|
|
- let postData = {
|
695
|
|
- idx: 0,
|
696
|
|
- sum: 1,
|
697
|
|
- taskType: {
|
698
|
|
- hosIds: this.hosId,
|
699
|
|
- associationType: {
|
700
|
|
- id: 260,
|
701
|
|
- },
|
702
|
|
- },
|
703
|
|
- };
|
704
|
|
- post("/configuration/fetchDataList/taskType", postData).then((res) => {
|
705
|
|
- if (res.status == 200) {
|
706
|
|
- this.wechatFocusSwitch = res.list[0].wechatFocusSwitch || 0;
|
707
|
|
- } else {
|
708
|
|
- uni.showToast({
|
709
|
|
- icon: "none",
|
710
|
|
- title: "请求失败!",
|
711
|
|
- });
|
712
|
|
- }
|
713
|
|
- });
|
714
|
|
- },
|
|
698
|
+ // getWechatFocusSwitch() {
|
|
699
|
+ // let postData = {
|
|
700
|
+ // idx: 0,
|
|
701
|
+ // sum: 1,
|
|
702
|
+ // taskType: {
|
|
703
|
+ // hosIds: this.hosId,
|
|
704
|
+ // associationType: {
|
|
705
|
+ // id: 260,
|
|
706
|
+ // },
|
|
707
|
+ // },
|
|
708
|
+ // };
|
|
709
|
+ // post("/configuration/fetchDataList/taskType", postData).then((res) => {
|
|
710
|
+ // if (res.status == 200) {
|
|
711
|
+ // this.wechatFocusSwitch = res.list[0].wechatFocusSwitch || 0;
|
|
712
|
+ // } else {
|
|
713
|
+ // uni.showToast({
|
|
714
|
+ // icon: "none",
|
|
715
|
+ // title: "请求失败!",
|
|
716
|
+ // });
|
|
717
|
+ // }
|
|
718
|
+ // });
|
|
719
|
+ // },
|
715
|
720
|
},
|
716
|
721
|
onLoad(options) {
|
717
|
722
|
console.log(options);
|
|
@@ -722,7 +727,7 @@
|
722
|
727
|
}
|
723
|
728
|
// 送回病房建单 end
|
724
|
729
|
this.hosId = uni.getStorageSync("userData").infoPermission.hospitals[0].id;
|
725
|
|
- this.getWechatFocusSwitch();
|
|
730
|
+ // this.getWechatFocusSwitch();
|
726
|
731
|
this.infoDATA = JSON.parse(options.infoDATA);
|
727
|
732
|
console.log(this.infoDATA);
|
728
|
733
|
this.workData = JSON.parse(options.workData);
|
|
@@ -1178,8 +1183,7 @@
|
1178
|
1183
|
justify-content: space-between;
|
1179
|
1184
|
|
1180
|
1185
|
.btn1,
|
1181
|
|
- .btn2,
|
1182
|
|
- .btn3 {
|
|
1186
|
+ .btn2 {
|
1183
|
1187
|
height: 66rpx;
|
1184
|
1188
|
width: 32%;
|
1185
|
1189
|
background-image: linear-gradient(to right, #72c172, #3bb197);
|
|
@@ -1191,7 +1195,14 @@
|
1191
|
1195
|
}
|
1192
|
1196
|
|
1193
|
1197
|
.btn3 {
|
1194
|
|
- width: 100%;
|
|
1198
|
+ height: 66rpx;
|
|
1199
|
+ width: 48%;
|
|
1200
|
+ background-image: linear-gradient(to right, #72c172, #3bb197);
|
|
1201
|
+ color: #fff;
|
|
1202
|
+ border-radius: 8rpx;
|
|
1203
|
+ font-size: 32rpx;
|
|
1204
|
+ margin-top: 16rpx;
|
|
1205
|
+ text-align: center;
|
1195
|
1206
|
}
|
1196
|
1207
|
}
|
1197
|
1208
|
}
|