|
@@ -12,7 +12,7 @@
|
12
|
12
|
<view class="body_item" v-for="data in dataInfo.list" :key="data.id" @click="toDetail(data)">
|
13
|
13
|
<view class="body_item_head" @click.stop="changeCheckbox(data)">
|
14
|
14
|
<view class="patientName">
|
15
|
|
- <checkbox-group v-if="data.state.value === '4'">
|
|
15
|
+ <checkbox-group v-if="config.batchPatientBackDept == 1 && data.state.value === '4'">
|
16
|
16
|
<label>
|
17
|
17
|
<checkbox class="checkbox" :checked="data.checked" />
|
18
|
18
|
</label>
|
|
@@ -50,7 +50,7 @@
|
50
|
50
|
<text class="newicon newicon-zanwu"></text>
|
51
|
51
|
</view>
|
52
|
52
|
<view class="toolbar">
|
53
|
|
- <button @click="tagClickList()" type="default" class="primaryButton btn">批量回科</button>
|
|
53
|
+ <button @click="tagClickList()" type="default" class="primaryButton btn" v-if="config.batchPatientBackDept == 1">批量回科</button>
|
54
|
54
|
<view class="toolbar-btn btn" @click="scan()">
|
55
|
55
|
<text class="toolbar-icon newicon newicon-saoma"></text>
|
56
|
56
|
<text class="toolbar-sao">扫一扫</text>
|
|
@@ -76,6 +76,7 @@
|
76
|
76
|
},
|
77
|
77
|
data(){
|
78
|
78
|
return {
|
|
79
|
+ config: {},
|
79
|
80
|
selectData: {},
|
80
|
81
|
SMFlag: true,
|
81
|
82
|
loginUser: uni.getStorageSync('userData').user,
|
|
@@ -107,7 +108,7 @@
|
107
|
108
|
methods: {
|
108
|
109
|
// 多选框
|
109
|
110
|
changeCheckbox(data){
|
110
|
|
- if(data.state.value === '4'){
|
|
111
|
+ if(this.config.batchPatientBackDept == 1 && data.state.value === '4'){
|
111
|
112
|
this.$set(data, 'checked', !data.checked);
|
112
|
113
|
}
|
113
|
114
|
},
|
|
@@ -299,6 +300,36 @@
|
299
|
300
|
});
|
300
|
301
|
}
|
301
|
302
|
},
|
|
303
|
+ getConfig1(){
|
|
304
|
+ const postData = {
|
|
305
|
+ "idx":0,
|
|
306
|
+ "sum":1,
|
|
307
|
+ "taskTypeConfig":{
|
|
308
|
+ "taskTypeDTO":{
|
|
309
|
+ "hosId": {"id": this.hosId},
|
|
310
|
+ "associationType": {
|
|
311
|
+ "key": "association_types",
|
|
312
|
+ "value":"inspect",
|
|
313
|
+ },
|
|
314
|
+ },
|
|
315
|
+ },
|
|
316
|
+ };
|
|
317
|
+ post("/simple/data/fetchDataList/taskTypeConfig", postData).then((res) => {
|
|
318
|
+ if (res.status == 200) {
|
|
319
|
+ let list = res.list || [];
|
|
320
|
+ if(list.length){
|
|
321
|
+ this.config = res.list[0];
|
|
322
|
+ }else{
|
|
323
|
+ this.config = {};
|
|
324
|
+ }
|
|
325
|
+ } else {
|
|
326
|
+ uni.showToast({
|
|
327
|
+ icon: "none",
|
|
328
|
+ title: res.msg || "接口获取数据失败!",
|
|
329
|
+ });
|
|
330
|
+ }
|
|
331
|
+ })
|
|
332
|
+ },
|
302
|
333
|
// 标记回科
|
303
|
334
|
tagClick(data){
|
304
|
335
|
this.selectData = data;
|
|
@@ -379,6 +410,7 @@
|
379
|
410
|
},
|
380
|
411
|
},
|
381
|
412
|
onLoad(options){
|
|
413
|
+ this.getConfig1();
|
382
|
414
|
this.onLoadFn(uni.getStorageSync('patientInspectLogEvtFilter') && uni.getStorageSync('patientInspectLogTabActiveId'));
|
383
|
415
|
},
|
384
|
416
|
onTabItemTap(){
|