Просмотр исходного кода

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

csx 4 лет назад
Родитель
Сommit
631fcbcf54
28 измененных файлов: 2408 добавлений и 126 удалений
  1. 1 5
      src/api/drug/drug_stock.js
  2. 4 3
      src/api/role/admin.js
  3. 12 0
      src/router/modules/dialysis.js
  4. 4 3
      src/xt_pages/data/components/addDrugs.vue
  5. 1 0
      src/xt_pages/data/components/drugTable.vue
  6. 26 2
      src/xt_pages/data/components/drugTableSon.vue
  7. 2 0
      src/xt_pages/data/components/drugs.vue
  8. 1 1
      src/xt_pages/device/airDisinfect.vue
  9. 1 1
      src/xt_pages/device/objectTableDisinfect.vue
  10. 2104 0
      src/xt_pages/dialysis/batch_print/batch_print_order_seventeen.vue
  11. 1 1
      src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue
  12. 12 0
      src/xt_pages/dialysis/bloodPresssWatch.vue
  13. 13 9
      src/xt_pages/dialysis/dialysisDoctorAdvice.vue
  14. 1 1
      src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue
  15. 2 2
      src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue
  16. 2 1
      src/xt_pages/home/index.vue
  17. 2 2
      src/xt_pages/outpatientCharges/summary.vue
  18. 30 75
      src/xt_pages/role/components/AdminInfoForm.vue
  19. 2 2
      src/xt_pages/stock/Dialog/goodInfoDailog.vue
  20. 1 1
      src/xt_pages/stock/detail/stockOutDetail.vue
  21. 2 1
      src/xt_pages/stock/drugs/drugStockInOrder.vue
  22. 5 2
      src/xt_pages/stock/drugs/drugStockInOrderAdd.vue
  23. 3 0
      src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue
  24. 1 0
      src/xt_pages/user/patients.vue
  25. 153 11
      src/xt_pages/user/vascularAccess.vue
  26. 1 1
      src/xt_pages/workforce/components/nextTableWeeks.vue
  27. 18 1
      src/xt_pages/workforce/next_remind_print.vue
  28. 3 1
      src/xt_pages/workforce/remind_print.vue

+ 1 - 5
src/api/drug/drug_stock.js Просмотреть файл

1
 import request from '@/utils/request'
1
 import request from '@/utils/request'
2
 
2
 
3
 export function postDrugWarehouse(params, warehousing_time, manufacturer_id, dealer_id, type) {
3
 export function postDrugWarehouse(params, warehousing_time, manufacturer_id, dealer_id, type) {
4
-  console.log("params----",params)
5
-  console.log("warehousintg",warehousing_time)
6
-  console.log("manufactureer_id",manufacturer_id)
7
-  console.log("dealer_id",dealer_id)
8
-  console.log("type",type)
4
+
9
   return request({
5
   return request({
10
     url: '/api/drugwarehouse/create?warehousing_time=' + warehousing_time + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id + '&type=' + type,
6
     url: '/api/drugwarehouse/create?warehousing_time=' + warehousing_time + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id + '&type=' + type,
11
     method: 'post',
7
     method: 'post',

+ 4 - 3
src/api/role/admin.js Просмотреть файл

39
     department_id:department_id,
39
     department_id:department_id,
40
   }
40
   }
41
   console.log("epa",department_id,department)
41
   console.log("epa",department_id,department)
42
-  
42
+
43
   return request({
43
   return request({
44
     url: '/api/admin/add',
44
     url: '/api/admin/add',
45
     method: 'post',
45
     method: 'post',
72
     department:department,
72
     department:department,
73
     department_id:department_id
73
     department_id:department_id
74
   }
74
   }
75
- 
76
- 
75
+
76
+
77
   return request({
77
   return request({
78
     url: '/api/admin/edit',
78
     url: '/api/admin/edit',
79
     method: 'post',
79
     method: 'post',
110
     params: params
110
     params: params
111
   })
111
   })
112
 }
112
 }
113
+

+ 12 - 0
src/router/modules/dialysis.js Просмотреть файл

292
         noCache: true
292
         noCache: true
293
       }
293
       }
294
     },
294
     },
295
+    {
296
+      path: '/dialysis/print/batch/seventeen',
297
+      component: () =>
298
+        import('@/xt_pages/dialysis/batch_print/batch_print_order_seventeen'),
299
+      hidden: true,
300
+      is_menu: false,
301
+      name: 'dialysis_batch_seventeen',
302
+      meta: {
303
+        title: '批量打印',
304
+        noCache: true
305
+      }
306
+    },
295
     {
307
     {
296
       path: '/dialysis/print/batch/twenty',
308
       path: '/dialysis/print/batch/twenty',
297
       component: () =>
309
       component: () =>

+ 4 - 3
src/xt_pages/data/components/addDrugs.vue Просмотреть файл

212
               <el-input v-model="form.agent" style="width:160px;" placeholder="" maxlength="30"></el-input>
212
               <el-input v-model="form.agent" style="width:160px;" placeholder="" maxlength="30"></el-input>
213
             </el-form-item> -->
213
             </el-form-item> -->
214
 
214
 
215
-          <el-form-item label="经销商 : " prop="manufacturer" style="width:100%">
215
+          <el-form-item label="经销商 : " prop="dealer" style="width:100%">
216
              
216
              
217
                <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
217
                <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
218
                   <el-option
218
                   <el-option
446
           last_price: [{ required: true, message: '请填写上次进价',trigger: 'blur'  }],
446
           last_price: [{ required: true, message: '请填写上次进价',trigger: 'blur'  }],
447
           drug_classify: [{ required: true, message: '请选择药物分类',trigger: 'change'  }],
447
           drug_classify: [{ required: true, message: '请选择药物分类',trigger: 'change'  }],
448
           drug_dose: [{ required: true, message: '请填写剂量',trigger: 'blur'  }],
448
           drug_dose: [{ required: true, message: '请填写剂量',trigger: 'blur'  }],
449
-          manufacturer: [{ required: true, message: '请选择生产产商',trigger: 'change'  }]
449
+          manufacturer: [{ required: true, message: '请选择生产产商',trigger: 'change'  }],
450
+          dealer:[{required:true,message:'请选择经销商',trigger:'change'}]
450
         },
451
         },
451
         page:1,
452
         page:1,
452
         limit:500,
453
         limit:500,
598
         form['is_charge_use'] = this.form.is_charge_use
599
         form['is_charge_use'] = this.form.is_charge_use
599
         form['drug_code'] = this.form.drug_code
600
         form['drug_code'] = this.form.drug_code
600
         form['drug_classify'] = this.form.drug_classify
601
         form['drug_classify'] = this.form.drug_classify
601
-
602
+        form['dealer'] = this.form.dealer
602
 
603
 
603
 
604
 
604
         return form
605
         return form

+ 1 - 0
src/xt_pages/data/components/drugTable.vue Просмотреть файл

199
         this.temp.config_field = newValue.replace(/[^A-Za-z]/g, "");
199
         this.temp.config_field = newValue.replace(/[^A-Za-z]/g, "");
200
       },
200
       },
201
       handleRowChange(currentRow, oldCurrentRow) {
201
       handleRowChange(currentRow, oldCurrentRow) {
202
+       
202
         if (currentRow != undefined) {
203
         if (currentRow != undefined) {
203
           this.currentId = currentRow.id;
204
           this.currentId = currentRow.id;
204
           bus.$emit("drugParentChangeId", currentRow);
205
           bus.$emit("drugParentChangeId", currentRow);

+ 26 - 2
src/xt_pages/data/components/drugTableSon.vue Просмотреть файл

84
             </el-form-item>
84
             </el-form-item>
85
           </el-col>
85
           </el-col>
86
         </el-row>
86
         </el-row>
87
+        <el-row>
88
+          <el-col :span="12">
89
+             <el-form-item label="代码" prop="order" v-show="showOne">
90
+              <el-input
91
+                type="age"
92
+                v-model="temp.code"
93
+                placeholder="请输入代码"
94
+              ></el-input>
95
+            </el-form-item>
96
+          </el-col>
97
+        </el-row>
87
         <el-form-item :label="$t('data_config.remark')">
98
         <el-form-item :label="$t('data_config.remark')">
88
           <el-input
99
           <el-input
89
             type="textarea"
100
             type="textarea"
203
           field_name: undefined,
214
           field_name: undefined,
204
           value: "",
215
           value: "",
205
           remark: "",
216
           remark: "",
206
-          orders: 0
217
+          orders: 0,
218
+          code:""
207
         },
219
         },
208
         dialogFormVisible: false,
220
         dialogFormVisible: false,
209
         dialogStatus: "",
221
         dialogStatus: "",
223
         },
235
         },
224
         downloadLoading: false,
236
         downloadLoading: false,
225
         parentConfig: undefined,
237
         parentConfig: undefined,
226
-        addState: true
238
+        addState: true,
239
+        showOne:false
227
       };
240
       };
228
     },
241
     },
229
     computed: {
242
     computed: {
260
     mounted() {
273
     mounted() {
261
       var _this = this;
274
       var _this = this;
262
       bus.$on("drugParentChangeId", function(parentData) {
275
       bus.$on("drugParentChangeId", function(parentData) {
276
+        console.log("parentData22222",parentData)
277
+         if(parentData.name == "药品剂型"){
278
+           console.log("333333")
279
+           _this.showOne = true
280
+         }else{
281
+           _this.showOne = false
282
+         }
283
+
263
         _this.parentConfig = parentData;
284
         _this.parentConfig = parentData;
264
         // _this.list = parentData.childs
285
         // _this.list = parentData.childs
265
         console.log(parentData)
286
         console.log(parentData)
368
         });
389
         });
369
       },
390
       },
370
       createData() {
391
       createData() {
392
+        
371
         this.$refs["dataForm"].validate(valid => {
393
         this.$refs["dataForm"].validate(valid => {
372
           if (valid) {
394
           if (valid) {
395
+            console.log("33333333",this.temp)
396
+           
373
             createDictionaryChildConfig(this.temp).then(response => {
397
             createDictionaryChildConfig(this.temp).then(response => {
374
               if (!response.data) {
398
               if (!response.data) {
375
                 // 由于mockjs 不支持自定义状态码只能这样hack
399
                 // 由于mockjs 不支持自定义状态码只能这样hack

+ 2 - 0
src/xt_pages/data/components/drugs.vue Просмотреть файл

332
           })
332
           })
333
         } else if (val.id == 0) {
333
         } else if (val.id == 0) {
334
           //新增
334
           //新增
335
+          console.log("vale222222",val)
336
+         
335
           createBaseDrugLib(val).then(response => {
337
           createBaseDrugLib(val).then(response => {
336
             if (response.data.state == 0) {
338
             if (response.data.state == 0) {
337
               this.$message.error(response.data.msg)
339
               this.$message.error(response.data.msg)

+ 1 - 1
src/xt_pages/device/airDisinfect.vue Просмотреть файл

48
                   {{getName(scope.row.creator)}}
48
                   {{getName(scope.row.creator)}}
49
                 </template>
49
                 </template>
50
             </el-table-column>
50
             </el-table-column>
51
-            <el-table-column label="检查结果" width="180">
51
+            <el-table-column label="检查结果" min-width="180">
52
                 <template slot-scope="scope">
52
                 <template slot-scope="scope">
53
                    {{scope.row.detection_result}}
53
                    {{scope.row.detection_result}}
54
                 </template>
54
                 </template>

+ 1 - 1
src/xt_pages/device/objectTableDisinfect.vue Просмотреть файл

49
                   {{getName(scope.row.creator)}}
49
                   {{getName(scope.row.creator)}}
50
                 </template>
50
                 </template>
51
             </el-table-column>
51
             </el-table-column>
52
-            <el-table-column label="检查结果" width="180">
52
+            <el-table-column label="检查结果" min-width="180">
53
                 <template slot-scope="scope">
53
                 <template slot-scope="scope">
54
                    {{scope.row.detection_result}}
54
                    {{scope.row.detection_result}}
55
                 </template>
55
                 </template>

Разница между файлами не показана из-за своего большого размера
+ 2104 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_seventeen.vue


+ 1 - 1
src/xt_pages/dialysis/batch_print/batch_print_order_thirteen.vue Просмотреть файл

387
                   </div>
387
                   </div>
388
                   出血
388
                   出血
389
                   <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
389
                   <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
390
-                    {{ record.assessment_before_dislysis.is_hemorrhage == 1 && record.assessment_before_dislysis.hemorrhage ? record.assessment_before_dislysis.hemorrhage : "" }}
390
+                    {{ record.assessment_before_dislysis.is_hemorrhage == 1 && (record.assessment_before_dislysis.hemorrhage || record.assessment_before_dislysis.hemorrhage_other)? record.assessment_before_dislysis.hemorrhage + " " + record.assessment_before_dislysis.hemorrhage_other : "" }}
391
                   </div>
391
                   </div>
392
                   跌倒风险预防措施
392
                   跌倒风险预防措施
393
                   <div class="inline_block under_line" style="width:100px;text-align: center;">
393
                   <div class="inline_block under_line" style="width:100px;text-align: center;">

+ 12 - 0
src/xt_pages/dialysis/bloodPresssWatch.vue Просмотреть файл

160
           >批量打印</el-button
160
           >批量打印</el-button
161
         >
161
         >
162
       </template>
162
       </template>
163
+      <template v-if="this.template_id == 17">
164
+        <el-button
165
+          size="small"
166
+          icon="el-icon-printer"
167
+          :disabled="selecting_schs.length == 0"
168
+          @click="batchPrintAction"
169
+          type="primary"
170
+          >批量打印</el-button
171
+        >
172
+      </template>
163
       <template v-if="this.template_id == 20">
173
       <template v-if="this.template_id == 20">
164
         <el-button
174
         <el-button
165
           size="small"
175
           size="small"
801
         this.$router.push({ path: "/dialysis/print/batch/thirteen" });
811
         this.$router.push({ path: "/dialysis/print/batch/thirteen" });
802
       } else if (this.template_id == 15) {
812
       } else if (this.template_id == 15) {
803
         this.$router.push({ path: "/dialysis/print/batch/fifteen" });
813
         this.$router.push({ path: "/dialysis/print/batch/fifteen" });
814
+      } else if (this.template_id == 17) {
815
+        this.$router.push({ path: "/dialysis/print/batch/seventeen" });
804
       } else if (this.template_id == 20) {
816
       } else if (this.template_id == 20) {
805
         this.$router.push({ path: "/dialysis/print/batch/twenty" });
817
         this.$router.push({ path: "/dialysis/print/batch/twenty" });
806
       } else if (this.template_id == 22) {
818
       } else if (this.template_id == 22) {

+ 13 - 9
src/xt_pages/dialysis/dialysisDoctorAdvice.vue Просмотреть файл

434
      
434
      
435
       this.schedulType = scheduleType;
435
       this.schedulType = scheduleType;
436
       this.listQuery.schedul_type = scheduleType;
436
       this.listQuery.schedul_type = scheduleType;
437
+      console.log("班次",this.listQuery.schedul_type)
437
       this.requestSchedualDoctors(this.time);
438
       this.requestSchedualDoctors(this.time);
438
     },
439
     },
439
     selectPartitionType(partitionType) {
440
     selectPartitionType(partitionType) {
440
       this.partitionType = partitionType;
441
       this.partitionType = partitionType;
441
       this.listQuery.partition_type = partitionType;
442
       this.listQuery.partition_type = partitionType;
443
+      console.log("分区",this.listQuery.partition_type)
442
       this.requestSchedualDoctors(this.time);
444
       this.requestSchedualDoctors(this.time);
443
     },
445
     },
444
     
446
     
480
         }
482
         }
481
 
483
 
482
         let newTime =  moment(time).format('YYYY-MM-DD')
484
         let newTime =  moment(time).format('YYYY-MM-DD')
483
-        getSchedualDoctors({
484
-        date: newTime,
485
-        patient_type: 0,
486
-        advice_type: 2,
487
-        delivery_way:name}).then(rs => {
485
+       
486
+         var schedule_type = this.listQuery.schedul_type
487
+         var partition_type = this.listQuery.partition_type
488
+        
489
+        console.log("班次",schedule_type,"分区",partition_type)
490
+        getSchedualDoctors({date: newTime,patient_type: 0,advice_type: 2,delivery_way:name,schedule_type:schedule_type,partition_type:partition_type}).then(rs => {
488
         var resp = rs.data
491
         var resp = rs.data
489
         if (resp.state == 1) {
492
         if (resp.state == 1) {
490
             this.admin_users = resp.data.adminUser
493
             this.admin_users = resp.data.adminUser
491
             var schedules = resp.data.scheduals
494
             var schedules = resp.data.scheduals
492
-            console.log("schedules",schedules)
495
+            console.log("列表数据",schedules)
493
             var config = resp.data.config
496
             var config = resp.data.config
497
+            console.log("config222222",config.is_open)
494
            if(config.is_open == 0){
498
            if(config.is_open == 0){
495
             this.show = true
499
             this.show = true
496
             this.showOne = false
500
             this.showOne = false
512
                     arr.push(it)
516
                     arr.push(it)
513
                 })
517
                 })
514
             })
518
             })
519
+            console.log("班次3333333",this.schedulType)
515
             if(this.schedulType == 0){
520
             if(this.schedulType == 0){
516
                 newSchedules = arr
521
                 newSchedules = arr
517
             }else{
522
             }else{
522
                 })
527
                 })
523
             }
528
             }
524
             
529
             
525
-            
530
+            console.log("分区",this.partitionType)
526
             if(this.partitionType == 0){
531
             if(this.partitionType == 0){
527
                 this.scheduleMap = newSchedules
532
                 this.scheduleMap = newSchedules
528
             }else {
533
             }else {
609
             })
614
             })
610
             this.indexInfoList = newArr
615
             this.indexInfoList = newArr
611
            }
616
            }
612
-         
613
-  
614
          }
617
          }
618
+         console.log("列表22222",this.scheduleMap)
615
         })
619
         })
616
     },
620
     },
617
     getValue: function(val) {
621
     getValue: function(val) {

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderThirteen.vue Просмотреть файл

305
         </div>
305
         </div>
306
         出血
306
         出血
307
         <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
307
         <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
308
-          {{ predialysis.is_hemorrhage == 1 && predialysis.hemorrhage ? predialysis.hemorrhage : "" }}
308
+          {{ predialysis.is_hemorrhage == 1 && (predialysis.hemorrhage || predialysis.hemorrhage_other) ? predialysis.hemorrhage + " " + predialysis.hemorrhage_other : "" }}
309
         </div>
309
         </div>
310
         跌倒风险预防措施
310
         跌倒风险预防措施
311
         <div class="inline_block under_line" style="width:100px;text-align: center;">
311
         <div class="inline_block under_line" style="width:100px;text-align: center;">

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue Просмотреть файл

204
                     </td>
204
                     </td>
205
                     <td width="50">
205
                     <td width="50">
206
                       <div>
206
                       <div>
207
-                        <label-box :isChecked="predialysis.hemorrhage_other != '' ? true : false" showValue="其他"></label-box>
207
+                        <label-box :isChecked="predialysis.is_hemorrhage == 1 && predialysis.hemorrhage_other != '' ? true : false" showValue="其他"></label-box>
208
                       </div>
208
                       </div>
209
                     </td>
209
                     </td>
210
                     <td width="100">
210
                     <td width="100">
211
-                        <div class="under-line">&nbsp;{{ predialysis.hemorrhage_other ? predialysis.hemorrhage_other : '' }}</div>
211
+                        <div class="under-line">&nbsp;{{ predialysis.is_hemorrhage == 1 && predialysis.hemorrhage_other ? predialysis.hemorrhage_other : '' }}</div>
212
                     </td>
212
                     </td>
213
                     <td></td>
213
                     <td></td>
214
                   </tr>
214
                   </tr>

+ 2 - 1
src/xt_pages/home/index.vue Просмотреть файл

201
       }
201
       }
202
     },
202
     },
203
     jump(id) {
203
     jump(id) {
204
-      this.$router.push({ path: "patients/inspection?id=" + id });
204
+      // this.$router.push({ path: "patients/inspection?id=" + id });
205
+      this.$router.push({path:"/patients/patients/"+id+"/inspectionInfectious"})
205
     },
206
     },
206
     handleSizeChange(val) {},
207
     handleSizeChange(val) {},
207
     handleCurrentChange(val) {
208
     handleCurrentChange(val) {

+ 2 - 2
src/xt_pages/outpatientCharges/summary.vue Просмотреть файл

40
           <!--<el-radio v-model="radio" label="2">汇总</el-radio>-->
40
           <!--<el-radio v-model="radio" label="2">汇总</el-radio>-->
41
         </div>
41
         </div>
42
         <div>
42
         <div>
43
-          <el-popover
43
+          <!-- <el-popover
44
             placement="bottom"
44
             placement="bottom"
45
             width="210"
45
             width="210"
46
             trigger="click">
46
             trigger="click">
48
             <el-button size="small" ref="button_six" @click="open(2)">打印汇总</el-button>
48
             <el-button size="small" ref="button_six" @click="open(2)">打印汇总</el-button>
49
             <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
49
             <el-button slot="reference" style="margin:0 10px;" type="primary" size="small">打印</el-button>
50
 
50
 
51
-          </el-popover>
51
+          </el-popover> -->
52
           <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
52
           <el-button size="small" type="primary" @click="export_detail">报表下载</el-button>
53
         </div>
53
         </div>
54
       </div>
54
       </div>

+ 30 - 75
src/xt_pages/role/components/AdminInfoForm.vue Просмотреть файл

37
         </el-select>
37
         </el-select>
38
       </el-form-item>
38
       </el-form-item>
39
 
39
 
40
-
41
-      <el-form-item label="科室:">
42
-         <el-select v-model="form.department_id" placeholder="科室">
43
-          <el-option
44
-            v-for="item in departMent"
45
-            :label="item.name"
46
-            :value="item.id"
47
-            :key="item.id"
48
-          ></el-option>
49
-        </el-select>
50
-      </el-form-item>
51
-
52
       <el-form-item label="职位 : ">
40
       <el-form-item label="职位 : ">
53
         <el-input v-model="form.user_title_name" placeholder="输入职位"></el-input>
41
         <el-input v-model="form.user_title_name" placeholder="输入职位"></el-input>
54
       </el-form-item>
42
       </el-form-item>
55
 
43
 
56
-       
57
-
58
       <el-form-item label="介绍 : ">
44
       <el-form-item label="介绍 : ">
59
         <Tinymce :height="400" menubar ref="editor" v-model="form.intro" :show_upload_img="false"/>
45
         <Tinymce :height="400" menubar ref="editor" v-model="form.intro" :show_upload_img="false"/>
60
       </el-form-item>
46
       </el-form-item>
69
 <script>
55
 <script>
70
   import Tinymce from '@/components/Tinymce'
56
   import Tinymce from '@/components/Tinymce'
71
   import { addAdmin, getAddAdminInitData, getModifyAdminInitData, modifyAdmin } from '@/api/role/admin'
57
   import { addAdmin, getAddAdminInitData, getModifyAdminInitData, modifyAdmin } from '@/api/role/admin'
72
-  import { getAllDePartmentList } from "@/api/project/project"
58
+
73
   export default {
59
   export default {
74
     name: 'AdminInfoForm',
60
     name: 'AdminInfoForm',
75
     components: {
61
     components: {
132
           user_title: '',
118
           user_title: '',
133
           role: '', // 其实应该是 int 类型
119
           role: '', // 其实应该是 int 类型
134
           intro: '',
120
           intro: '',
135
-          department:'',
136
-          department_id:"",
137
         },
121
         },
138
-        departMent:[],
139
         rules: {
122
         rules: {
140
           mobile: [{ required: true, validator: checkMobile, trigger: 'blur' }],
123
           mobile: [{ required: true, validator: checkMobile, trigger: 'blur' }],
141
           name: [{ required: true, validator: checkName, trigger: 'blur' }],
124
           name: [{ required: true, validator: checkName, trigger: 'blur' }],
153
           this.loading = false
136
           this.loading = false
154
           return
137
           return
155
         }
138
         }
156
-         // let localthis.$store.getters.xt_user.user.id
139
+        // let localthis.$store.getters.xt_user.user.id
157
         let local_user_id = this.$store.getters.xt_user.user.id
140
         let local_user_id = this.$store.getters.xt_user.user.id
158
         this.form.id = this.admin_id
141
         this.form.id = this.admin_id
159
         if (this.admin_id === 0) {
142
         if (this.admin_id === 0) {
176
             .then(rs => {
159
             .then(rs => {
177
               this.loading = false
160
               this.loading = false
178
               var resp = rs.data
161
               var resp = rs.data
179
-              
162
+
180
               if (resp.state === 1) {
163
               if (resp.state === 1) {
181
                 // this.roles.push(...resp.data.roles)
164
                 // this.roles.push(...resp.data.roles)
182
                 this.roles = resp.data.roles
165
                 this.roles = resp.data.roles
226
                 }
209
                 }
227
                 this.form.user_title = admin.user_title
210
                 this.form.user_title = admin.user_title
228
                 this.form.role = admin.role_ids
211
                 this.form.role = admin.role_ids
229
-                this.form.department_id = admin.department_id
230
                 this.form.role_ids = []
212
                 this.form.role_ids = []
231
                 for (let i = 0; i < this.form.role.split(",").length; i++) {
213
                 for (let i = 0; i < this.form.role.split(",").length; i++) {
232
                   if (this.form.role.split(',')[i].length > 0) {
214
                   if (this.form.role.split(',')[i].length > 0) {
273
 
255
 
274
         this.dialogFormVisible = true
256
         this.dialogFormVisible = true
275
       },
257
       },
276
-      submitAction: function() {   
277
-       console.log("第是",this.form.department_id)  
278
-        var department = ""
279
-        for(let i=0;i<this.departMent.length;i++){
280
-          if(this.form.department_id == this.departMent[i].id){
281
-              department = this.departMent[i].name
282
-          }
283
-        }
284
-        this.form.department = department
285
-        
258
+      submitAction: function() {
286
         if (this.admin_id < 0) {
259
         if (this.admin_id < 0) {
287
           return
260
           return
288
         }
261
         }
294
             }
267
             }
295
 
268
 
296
             this.loading = true
269
             this.loading = true
297
-            console.log("id-----",this.form.id)
298
             if (this.form.id === 0) {
270
             if (this.form.id === 0) {
299
               this.form.role = this.form.role_ids.join(',')
271
               this.form.role = this.form.role_ids.join(',')
300
               addAdmin(
272
               addAdmin(
304
                 this.form.user_title,
276
                 this.form.user_title,
305
                 this.form.role,
277
                 this.form.role,
306
                 this.form.intro,
278
                 this.form.intro,
307
-                this.form.user_title_name,
308
-                this.form.department,
309
-                this.form.department_id,
279
+                this.form.user_title_name
310
               ).then(rs => {
280
               ).then(rs => {
311
-                  this.loading = false
312
-                  var resp = rs.data
313
-                  if (resp.state === 1) {
314
-                    this.$store.dispatch('DidChangeAdmins')
315
-                    var _this = this
316
-                    setTimeout(() => {
317
-                      _this.$store.dispatch('RecoverAdminsChangeState')
318
-                    }, 500)
319
-                    this.dialogFormVisible = false
320
-                  } else {
321
-                    this.$message.error(resp.msg)
322
-                  }
323
-                })
281
+                this.loading = false
282
+                var resp = rs.data
283
+                if (resp.state === 1) {
284
+                  this.$store.dispatch('DidChangeAdmins')
285
+                  var _this = this
286
+                  setTimeout(() => {
287
+                    _this.$store.dispatch('RecoverAdminsChangeState')
288
+                  }, 500)
289
+                  this.dialogFormVisible = false
290
+                } else {
291
+                  this.$message.error(resp.msg)
292
+                }
293
+              })
324
                 .catch(err => {
294
                 .catch(err => {
325
                   this.loading = false
295
                   this.loading = false
326
                   this.$message.error(err)
296
                   this.$message.error(err)
327
                 })
297
                 })
328
             } else {
298
             } else {
329
               this.form.role = this.form.role_ids.join(',')
299
               this.form.role = this.form.role_ids.join(',')
330
-             
331
-               var department = ""
332
-               for(let i=0;i<this.departMent.length;i++){
333
-                if(this.form.department_id == this.departMent[i].id){
334
-                    department = this.departMent[i].name
335
-                }
336
-              }
337
-              this.form.department = department
338
-           
339
-             
340
-              modifyAdmin(this.form.id,this.form.name,this.form.user_type,this.form.user_title,this.form.role,this.form.intro, this.form.user_title_name,this.form.sort,this.form.department,this.form.department_id).then(rs => {
300
+
301
+              modifyAdmin(
302
+                this.form.id,
303
+                this.form.name,
304
+                this.form.user_type,
305
+                this.form.user_title,
306
+                this.form.role,
307
+                this.form.intro,
308
+                this.form.user_title_name,
309
+              )
310
+                .then(rs => {
341
                   this.loading = false
311
                   this.loading = false
342
                   var resp = rs.data
312
                   var resp = rs.data
343
                   if (resp.state === 1) {
313
                   if (resp.state === 1) {
361
             return false
331
             return false
362
           }
332
           }
363
         })
333
         })
364
-      },
365
-
366
-      getlist(){
367
-        getAllDePartmentList().then(response=>{
368
-         if(response.data.state == 1){
369
-           var department =   response.data.data.departMent
370
-           console.log("department2222",department)
371
-           this.departMent = department
372
-         
373
-         }
374
-        })
375
       }
334
       }
376
-    },
377
-
378
-    created(){
379
-        //获取所有科室
380
-       this.getlist()
381
     }
335
     }
382
   }
336
   }
383
 </script>
337
 </script>
338
+

+ 2 - 2
src/xt_pages/stock/Dialog/goodInfoDailog.vue Просмотреть файл

131
               </el-checkbox-group>
131
               </el-checkbox-group>
132
             </el-form-item>
132
             </el-form-item>
133
 
133
 
134
-           <!-- <el-form-item label="经销商 : " prop="manufacturer" style="width:100%">
134
+           <el-form-item label="经销商 : " prop="manufacturer" style="width:100%">
135
              
135
              
136
                <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
136
                <el-select v-model="form.dealer" style="width:100%;" filterable placeholder="请选择">
137
                   <el-option
137
                   <el-option
141
                     :value="item.id">
141
                     :value="item.id">
142
                   </el-option>
142
                   </el-option>
143
               </el-select>
143
               </el-select>
144
-           </el-form-item> -->
144
+           </el-form-item>
145
 
145
 
146
 
146
 
147
             <el-form-item label="备注 : " prop="name" style="width:100%;">
147
             <el-form-item label="备注 : " prop="name" style="width:100%;">

+ 1 - 1
src/xt_pages/stock/detail/stockOutDetail.vue Просмотреть файл

638
             console.log("stockTotal",stockTotal)
638
             console.log("stockTotal",stockTotal)
639
             this.stockTotal = stockTotal
639
             this.stockTotal = stockTotal
640
             var list =  response.data.data.list
640
             var list =  response.data.data.list
641
-            console.log("导出数据",list)
641
+            // console.log("导出数据",list)
642
             for(let i=0;i<list.length;i++){
642
             for(let i=0;i<list.length;i++){
643
               if (list[i].query_warehouseout_info.length > 0) {
643
               if (list[i].query_warehouseout_info.length > 0) {
644
                 this.tableList.push(list[i])
644
                 this.tableList.push(list[i])

+ 2 - 1
src/xt_pages/stock/drugs/drugStockInOrder.vue Просмотреть файл

337
     //  this.start_time = agoDay
337
     //  this.start_time = agoDay
338
     //  console.log("333333332222",this.start_time)
338
     //  console.log("333333332222",this.start_time)
339
     this.GetWarehouse();
339
     this.GetWarehouse();
340
-    this.GetConfigInfo();
340
+    // this.GetConfigInfo();
341
     this.fetchAllAdminUsers();
341
     this.fetchAllAdminUsers();
342
   },
342
   },
343
   data() {
343
   data() {
485
         console.log(response);
485
         console.log(response);
486
         if (response.data.state == 1) {
486
         if (response.data.state == 1) {
487
           this.adminUserOptions = response.data.data.users;
487
           this.adminUserOptions = response.data.data.users;
488
+          console.log("制单人2222222",this.adminUserOptions)
488
           var alen = this.adminUserOptions.length;
489
           var alen = this.adminUserOptions.length;
489
           for (let index = 0; index < alen; index++) {
490
           for (let index = 0; index < alen; index++) {
490
             if (this.adminUserOptions[index].user_type == 2) {
491
             if (this.adminUserOptions[index].user_type == 2) {

+ 5 - 2
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue Просмотреть файл

567
           manufacturer_id: this.form.manufacturer,
567
           manufacturer_id: this.form.manufacturer,
568
           dealer_id: this.form.dealer
568
           dealer_id: this.form.dealer
569
         }
569
         }
570
+        console.log("2222",this.form.dealer)
570
         GetAllDrugInfoByID(params).then(response => {
571
         GetAllDrugInfoByID(params).then(response => {
571
           
572
           
572
             if (response.data.state == 0) {
573
             if (response.data.state == 0) {
581
                 this.$message.error('该厂商或经销商没有药品信息')
582
                 this.$message.error('该厂商或经销商没有药品信息')
582
                 return
583
                 return
583
               }
584
               }
584
-              this.$refs.dialog.show()
585
               for (let i = 0; i < response.data.data.drugs.length; i++) {
585
               for (let i = 0; i < response.data.data.drugs.length; i++) {
586
                 this.propForm.goods.push(
586
                 this.propForm.goods.push(
587
                   response.data.data.drugs[i]
587
                   response.data.data.drugs[i]
588
                 );
588
                 );
589
               }
589
               }
590
+              this.$refs.dialog.show()
590
               const obj = {};
591
               const obj = {};
591
               this.propForm.goods = this.propForm.goods.reduce(
592
               this.propForm.goods = this.propForm.goods.reduce(
592
                 (cur, next) => {
593
                 (cur, next) => {
595
                 },
596
                 },
596
                 []
597
                 []
597
               ); // 设置cur默认类型为数组,并且初始值为空的数组
598
               ); // 设置cur默认类型为数组,并且初始值为空的数组
599
+              
598
             }
600
             }
599
 
601
 
600
             for (let i = 0; i < this.propForm.goods.length; i++) {
602
             for (let i = 0; i < this.propForm.goods.length; i++) {
678
 
680
 
679
       }, 
681
       }, 
680
       changeDealer(val) {
682
       changeDealer(val) {
681
-
683
+        this.form.dealer = val;
684
+        this.propForm.goods= []
682
       },
685
       },
683
       getDataConfig(module, filed_name){
686
       getDataConfig(module, filed_name){
684
         return getDataConfig(module, filed_name)
687
         return getDataConfig(module, filed_name)

+ 3 - 0
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue Просмотреть файл

576
       this.propForm.manufacturer = val;
576
       this.propForm.manufacturer = val;
577
     },
577
     },
578
     changeDealer(val) {
578
     changeDealer(val) {
579
+      this.propForm.goods = []
579
       this.propForm.dealer = val;
580
       this.propForm.dealer = val;
581
+      this.form.dealer = val
582
+     
580
     },
583
     },
581
     getDataConfig(module, filed_name){
584
     getDataConfig(module, filed_name){
582
      return getDataConfig(module, filed_name)
585
      return getDataConfig(module, filed_name)

+ 1 - 0
src/xt_pages/user/patients.vue Просмотреть файл

1330
         this.getList()
1330
         this.getList()
1331
       },
1331
       },
1332
       getList() {
1332
       getList() {
1333
+        console.log("parasm2222",this.listQuery)
1333
         fetchList(this.listQuery).then(response => {
1334
         fetchList(this.listQuery).then(response => {
1334
           if (response.data.state === 0) {
1335
           if (response.data.state === 0) {
1335
             this.$message.error(response.data.msg)
1336
             this.$message.error(response.data.msg)

+ 153 - 11
src/xt_pages/user/vascularAccess.vue Просмотреть файл

55
            <span v-if="scope.row.stop_time>0&&(scope.row.stop_time - scope.row.start_time)/86400 != 0">{{(scope.row.stop_time - scope.row.start_time)/86400}}</span>
55
            <span v-if="scope.row.stop_time>0&&(scope.row.stop_time - scope.row.start_time)/86400 != 0">{{(scope.row.stop_time - scope.row.start_time)/86400}}</span>
56
           </template>
56
           </template>
57
       </el-table-column>
57
       </el-table-column>
58
+       
59
+      <el-table-column prop="date" label="导管感染转归" align="center" width="120">
60
+          <template slot-scope="scope">
61
+             <span v-if="scope.row.ci_type == 1">拔管</span>
62
+             <span v-if="scope.row.ci_type == 2">治愈</span>
63
+             <span v-if="scope.row.ci_type == 3">死亡</span>
64
+             <span v-if="scope.row.ci_type == 4">放弃</span>
65
+             <span v-if="scope.row.ci_type == 9">其它</span>
66
+          </template>
67
+      </el-table-column>
68
+       
69
+       <el-table-column prop="date" label="血培养检查结果" align="center" width="120">
70
+          <template slot-scope="scope">
71
+             <span v-if="scope.row.blood_cultupe == 0">阴性</span>
72
+             <span v-if="scope.row.blood_cultupe == 1">阳性</span>
73
+             <span v-if="scope.row.blood_cultupe == 9">未查</span>
74
+          </template>
75
+      </el-table-column>
76
+      
77
+     <el-table-column prop="date" label="患者导管转归类型" align="center" width="120">
78
+          <template slot-scope="scope">
79
+             <span v-if="scope.row.sequelae_type == 1">局部感染</span>
80
+             <span v-if="scope.row.sequelae_type == 2">静脉炎</span>
81
+             <span v-if="scope.row.sequelae_type == 3">导管细菌定植</span>
82
+             <span v-if="scope.row.sequelae_type == 4">导管相关血型感染</span>
83
+          </template>
84
+      </el-table-column>
58
        <el-table-column prop="date" label="备注" align="center" width="180">
85
        <el-table-column prop="date" label="备注" align="center" width="180">
59
           <template slot-scope="scope">
86
           <template slot-scope="scope">
60
              <span>{{scope.row.remark}}</span>
87
              <span>{{scope.row.remark}}</span>
105
          :visible.sync="dialogVisible"
132
          :visible.sync="dialogVisible"
106
          width="65%"
133
          width="65%"
107
          center>
134
          center>
108
-      <el-form label-width="120px" :model="form" ref="form" :rules="rules" >
135
+      <el-form label-width="150px" :model="form" ref="form" :rules="rules" >
109
          <el-row :gutter="24">
136
          <el-row :gutter="24">
110
             <el-col :span="24">
137
             <el-col :span="24">
111
                 <el-form-item label="通路项目:" :required="true" prop="access_project"  > 
138
                 <el-form-item label="通路项目:" :required="true" prop="access_project"  > 
125
                     value-format="yyyy-MM-dd"
152
                     value-format="yyyy-MM-dd"
126
                     placeholder="选择时间"
153
                     placeholder="选择时间"
127
                     v-model="form.start_time"
154
                     v-model="form.start_time"
128
-                    style="width:150px">
155
+                    style="width:200px">
129
                  </el-date-picker>
156
                  </el-date-picker>
130
                </el-form-item>
157
                </el-form-item>
131
             </el-col>
158
             </el-col>
132
              <el-col :span="8">
159
              <el-col :span="8">
133
                <el-form-item label="血管通路类型:" :required="true" prop="blood_access_part_opera_id">
160
                <el-form-item label="血管通路类型:" :required="true" prop="blood_access_part_opera_id">
134
-                 <el-select v-model="form.blood_access_part_opera_id" placeholder="请选择"  style="width:150px">
161
+                 <el-select v-model="form.blood_access_part_opera_id" placeholder="请选择"  style="width:200px">
135
                     <el-option
162
                     <el-option
136
                         v-for="item in blood_access_part_opera"
163
                         v-for="item in blood_access_part_opera"
137
                         :key="item.id"
164
                         :key="item.id"
144
             </el-col>
171
             </el-col>
145
              <el-col :span="8">
172
              <el-col :span="8">
146
                <el-form-item label="血管通路部位:" :required="true" prop="blood_access_part_id">
173
                <el-form-item label="血管通路部位:" :required="true" prop="blood_access_part_id">
147
-                  <el-input v-model="form.blood_access_part_id" readonly @focus="showInnerDialog('17')" style="width:150px"></el-input>
174
+                  <el-input v-model="form.blood_access_part_id" readonly @focus="showInnerDialog('17')" style="width:200px"></el-input>
148
                </el-form-item>
175
                </el-form-item>
149
             </el-col>
176
             </el-col>
150
          </el-row>
177
          </el-row>
159
                         :value="item.id">
186
                         :value="item.id">
160
                     </el-option>
187
                     </el-option>
161
                   </el-select> -->
188
                   </el-select> -->
162
-                  <el-input v-model="form.other_vascular" style="width:200"></el-input>
189
+                  <el-input v-model="form.other_vascular" style="width:200px"></el-input>
163
                </el-form-item>
190
                </el-form-item>
164
             </el-col>
191
             </el-col>
165
              <el-col :span="8">
192
              <el-col :span="8">
170
                     value-format="yyyy-MM-dd"
197
                     value-format="yyyy-MM-dd"
171
                     placeholder="选择时间"
198
                     placeholder="选择时间"
172
                     v-model="form.first_start_time"
199
                     v-model="form.first_start_time"
173
-                    style="width:150px">
200
+                    style="width:200px">
174
                  </el-date-picker>
201
                  </el-date-picker>
175
                </el-form-item>
202
                </el-form-item>
176
             </el-col>
203
             </el-col>
177
              <el-col :span="8">
204
              <el-col :span="8">
178
                <el-form-item label="使用状态:" :required="true" prop="user_status">
205
                <el-form-item label="使用状态:" :required="true" prop="user_status">
179
-                 <el-select v-model="form.user_status" placeholder="请选择" style="width:150px" @change="changeStatus">
206
+                 <el-select v-model="form.user_status" placeholder="请选择" style="width:200px" @change="changeStatus">
180
                     <el-option
207
                     <el-option
181
                         v-for="item in options"
208
                         v-for="item in options"
182
                         :key="item.id"
209
                         :key="item.id"
187
                </el-form-item>
214
                </el-form-item>
188
             </el-col>
215
             </el-col>
189
          </el-row>
216
          </el-row>
217
+         <el-row :gutter="24" v-show="showOne">
218
+            <el-col :span="8">
219
+               <el-form-item label="导管感染转归:">
220
+                  <el-select v-model="form.ci_type" placeholder="请选择" style="width:200px" @change="changeStatus">
221
+                     <el-option
222
+                           v-for="item in optionsTwo"
223
+                           :key="item.id"
224
+                           :label="item.name"
225
+                           :value="item.id">
226
+                     </el-option>
227
+                  </el-select>
228
+               </el-form-item>
229
+             </el-col>
230
+             <el-col :span="8">
231
+               <el-form-item label="血培养检查结果:">
232
+                  <el-select v-model="form.blood_cultupe" placeholder="请选择" style="width:200px" @change="changeStatus">
233
+                     <el-option
234
+                           v-for="item in optionsThree"
235
+                           :key="item.id"
236
+                           :label="item.name"
237
+                           :value="item.id">
238
+                     </el-option>
239
+                  </el-select>
240
+               </el-form-item>
241
+            </el-col>
242
+            <el-col :span="8">
243
+               <el-form-item label="患者导管转归类型:">
244
+                  <el-select v-model="form.sequelae_type" placeholder="请选择" style="width:200px" @change="changeStatus">
245
+                     <el-option
246
+                           v-for="item in optionsOne"
247
+                           :key="item.id"
248
+                           :label="item.name"
249
+                           :value="item.id">
250
+                     </el-option>
251
+                  </el-select>
252
+               </el-form-item>
253
+             </el-col>
254
+         </el-row>
190
          <el-row v-show="show">
255
          <el-row v-show="show">
191
             <el-col :span="8">
256
             <el-col :span="8">
192
                <el-form-item label="停用日期:">
257
                <el-form-item label="停用日期:">
196
                     value-format="yyyy-MM-dd"
261
                     value-format="yyyy-MM-dd"
197
                     placeholder="选择时间"
262
                     placeholder="选择时间"
198
                     v-model="form.stop_time"
263
                     v-model="form.stop_time"
199
-                    style="width:150px">
264
+                    style="width:200px">
200
                  </el-date-picker>
265
                  </el-date-picker>
201
                </el-form-item>
266
                </el-form-item>
202
             </el-col>
267
             </el-col>
320
                   </el-select>
385
                   </el-select>
321
                </el-form-item>
386
                </el-form-item>
322
             </el-col>
387
             </el-col>
388
+         </el-row>
389
+           <el-row v-show="showOne">
390
+            <el-col :span="8">
391
+               <el-form-item label="导管感染转归:">
392
+                  <el-select v-model="form.ci_type" placeholder="请选择" style="width:150px" @change="changeStatus">
393
+                     <el-option
394
+                           v-for="item in optionsTwo"
395
+                           :key="item.id"
396
+                           :label="item.name"
397
+                           :value="item.id">
398
+                     </el-option>
399
+                  </el-select>
400
+               </el-form-item>
401
+             </el-col>
402
+             <el-col :span="8">
403
+               <el-form-item label="血培养检查结果:">
404
+                  <el-select v-model="form.blood_cultupe" placeholder="请选择" style="width:150px" @change="changeStatus">
405
+                     <el-option
406
+                           v-for="item in optionsThree"
407
+                           :key="item.id"
408
+                           :label="item.name"
409
+                           :value="item.id">
410
+                     </el-option>
411
+                  </el-select>
412
+               </el-form-item>
413
+            </el-col>
414
+            <el-col :span="8">
415
+               <el-form-item label="患者导管转归类型:">
416
+                  <el-select v-model="form.sequelae_type" placeholder="请选择" style="width:150px" @change="changeStatus">
417
+                     <el-option
418
+                           v-for="item in optionsOne"
419
+                           :key="item.id"
420
+                           :label="item.name"
421
+                           :value="item.id">
422
+                     </el-option>
423
+                  </el-select>
424
+               </el-form-item>
425
+             </el-col>
323
          </el-row>
426
          </el-row>
324
          <el-row v-show="show">
427
          <el-row v-show="show">
325
             <el-col :span="8">
428
             <el-col :span="8">
411
          user_status:1,
514
          user_status:1,
412
          remark:"",
515
          remark:"",
413
          stop_time:"",
516
          stop_time:"",
414
-         other_vascular:""
517
+         other_vascular:"",
518
+         ci_type:"",//导管感染转归
519
+         blood_cultupe:"", //血培养检查结果
520
+         sequelae_type:"",//患者导管转归类型
415
         },
521
         },
416
         options:[
522
         options:[
417
          {id:1,name:"启用"},
523
          {id:1,name:"启用"},
421
           {id:1,name:"流入-动脉"},
527
           {id:1,name:"流入-动脉"},
422
           {id:2,name:"流出-静脉"},
528
           {id:2,name:"流出-静脉"},
423
         ],
529
         ],
530
+
424
         blood_access_part_opera:[],
531
         blood_access_part_opera:[],
425
         blood_access_part:[],
532
         blood_access_part:[],
426
         show:false,
533
         show:false,
435
         },
542
         },
436
         new_blood_access_part_opera:[],
543
         new_blood_access_part_opera:[],
437
         new_blood_access_part:[],
544
         new_blood_access_part:[],
545
+       // 导管感染类型
546
+        optionsOne:[
547
+           {id:1,name:"局部感染"},
548
+           {id:2,name:"静脉炎"},
549
+           {id:3,name:"导管细菌定植"},
550
+           {id:4,name:"导管相关血型感染"},
551
+        ],
552
+      //   导管转归类型
553
+        optionsTwo:[
554
+           {id:1,name:"拔管"},
555
+           {id:2,name:"治愈"},
556
+           {id:3,name:"死亡"},
557
+           {id:4,name:"放弃"},
558
+           {id:9,name:"其它"},
559
+        ],
560
+      //  血培养检查结果
561
+        optionsThree:[
562
+           {id:0,name:"阴性"},
563
+           {id:1,name:"阳性"},
564
+           {id:9,name:"未查"}
565
+        ],
566
+        showOne:false
438
       }
567
       }
439
     },
568
     },
440
     methods: {
569
     methods: {
497
                 remark:this.form.remark,
626
                 remark:this.form.remark,
498
                 stop_time:this.form.stop_time,
627
                 stop_time:this.form.stop_time,
499
                 other_vascular:this.form.other_vascular,
628
                 other_vascular:this.form.other_vascular,
629
+                ci_type:this.form.ci_type,
630
+                blood_cultupe:this.form.blood_cultupe,
631
+                sequelae_type:this.form.sequelae_type,
500
               }
632
               }
501
               console.log("params",params)
633
               console.log("params",params)
634
+            
502
              saveVasularAccess(params).then(response=>{
635
              saveVasularAccess(params).then(response=>{
503
                 if(response.data.state == 1){
636
                 if(response.data.state == 1){
504
                    var access =  response.data.data.access
637
                    var access =  response.data.data.access
576
               }
709
               }
577
 
710
 
578
               if(accessDetail.access_project == "2"){
711
               if(accessDetail.access_project == "2"){
712
+               this.showOne = true
579
                for(let i=0;i<this.new_blood_access_part_opera.length;i++){ 
713
                for(let i=0;i<this.new_blood_access_part_opera.length;i++){ 
580
                   if(this.new_blood_access_part_opera[i].field_type == 2){
714
                   if(this.new_blood_access_part_opera[i].field_type == 2){
581
                      arrOne.push(this.new_blood_access_part_opera[i])  
715
                      arrOne.push(this.new_blood_access_part_opera[i])  
620
  
754
  
621
              this.form.user_status = accessDetail.user_status
755
              this.form.user_status = accessDetail.user_status
622
              this.form.other_vascular = accessDetail.other_vascular
756
              this.form.other_vascular = accessDetail.other_vascular
757
+             this.form.ci_type = accessDetail.ci_type
758
+             this.form.blood_cultupe = accessDetail.blood_cultupe
759
+             this.form.sequelae_type = accessDetail.sequelae_type
623
              if(accessDetail.user_status == 1){
760
              if(accessDetail.user_status == 1){
624
                this.show = false
761
                this.show = false
625
              }
762
              }
693
                 remark:this.form.remark,
830
                 remark:this.form.remark,
694
                 stop_time:this.form.stop_time,
831
                 stop_time:this.form.stop_time,
695
                 patient_id:this.patientID,
832
                 patient_id:this.patientID,
696
-                other_vascular:this.form.other_vascular
833
+                other_vascular:this.form.other_vascular,
834
+                ci_type:this.form.ci_type,
835
+                blood_cultupe:this.form.blood_cultupe,
836
+                sequelae_type:this.form.sequelae_type
697
               }
837
               }
698
-              console.log("编辑",params)
838
+            
699
               updatedVasularAccess(params).then(response=>{
839
               updatedVasularAccess(params).then(response=>{
700
                 if(response.data.state == 1){
840
                 if(response.data.state == 1){
701
                   var access =  response.data.data.access
841
                   var access =  response.data.data.access
800
         if(val == 1){
940
         if(val == 1){
801
            this.blood_access_part_opera = arr
941
            this.blood_access_part_opera = arr
802
            this.blood_access_part = arrTwo
942
            this.blood_access_part = arrTwo
943
+           this.showOne = false
803
           
944
           
804
         }
945
         }
805
         if(val == 2){
946
         if(val == 2){
806
           this.blood_access_part_opera = arrOne
947
           this.blood_access_part_opera = arrOne
807
           this.blood_access_part = arrThree
948
           this.blood_access_part = arrThree
949
+          this.showOne = true
808
         }
950
         }
809
         
951
         
810
         console.log("arr",arr)
952
         console.log("arr",arr)

+ 1 - 1
src/xt_pages/workforce/components/nextTableWeeks.vue Просмотреть файл

249
         //   week_type:this.week_type,
249
         //   week_type:this.week_type,
250
         //   week_time:this.week_time,
250
         //   week_time:this.week_time,
251
         // }
251
         // }
252
-      
252
+     
253
       getNextScheduleWeekDay(params).then(response => {
253
       getNextScheduleWeekDay(params).then(response => {
254
         this.scheduleData = [];
254
         this.scheduleData = [];
255
         if (response.data.state == 1) {
255
         if (response.data.state == 1) {

+ 18 - 1
src/xt_pages/workforce/next_remind_print.vue Просмотреть файл

18
       <div id="print_content">
18
       <div id="print_content">
19
         <div class="print_main_content">
19
         <div class="print_main_content">
20
           <div class="order_title_panl">
20
           <div class="order_title_panl">
21
-            <span class="main_title">{{day}}排班提醒({{ currentDate }})</span>
21
+            <!-- <span class="main_title">{{day}}排班提醒({{ currentDate }})</span> -->
22
+            <span class="main_title">{{day}}排班提醒({{ getTime(now_time) }})</span>
22
           </div>
23
           </div>
23
           <div class="table_panel">
24
           <div class="table_panel">
24
             <table class="table">
25
             <table class="table">
94
 <script>
95
 <script>
95
   import { getNextScheduleWeekDay } from '@/api/schedule'
96
   import { getNextScheduleWeekDay } from '@/api/schedule'
96
   import { parseTime } from '@/utils'
97
   import { parseTime } from '@/utils'
98
+  import { uParseTime } from '@/utils/tools'
97
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
99
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
98
   import print from 'print-js'
100
   import print from 'print-js'
99
   const moment = require('moment') 
101
   const moment = require('moment') 
118
         start_time:moment().week(moment().week() + 1).startOf('week').unix(),
120
         start_time:moment().week(moment().week() + 1).startOf('week').unix(),
119
         end_time:moment().week(moment().week() + 1).endOf('week').unix(),
121
         end_time:moment().week(moment().week() + 1).endOf('week').unix(),
120
         org_id:0,
122
         org_id:0,
123
+        now_time:0
121
       }
124
       }
122
     },
125
     },
123
     components: {
126
     components: {
126
     created() {
129
     created() {
127
      this.org_id = this.$store.getters.xt_user.org.id
130
      this.org_id = this.$store.getters.xt_user.org.id
128
      this.currentDate = this.getCurrentDate()
131
      this.currentDate = this.getCurrentDate()
132
+   
129
       this.modeOptions = this.$store.getters.treatment_mode
133
       this.modeOptions = this.$store.getters.treatment_mode
130
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
134
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
131
       this.week_type = this.$route.query.week_type
135
       this.week_type = this.$route.query.week_type
145
         //   end_time:1610208000,
149
         //   end_time:1610208000,
146
         // }
150
         // }
147
       console.log("打印下周",params)
151
       console.log("打印下周",params)
152
+     
153
+      console.log("start",this.start_time)
148
       getNextScheduleWeekDay(params).then(rs => {
154
       getNextScheduleWeekDay(params).then(rs => {
149
         var resp = rs.data
155
         var resp = rs.data
150
         console.log(resp)
156
         console.log(resp)
163
       }).catch(err => {
169
       }).catch(err => {
164
         this.$message.error(err)
170
         this.$message.error(err)
165
       })
171
       })
172
+
173
+      var now_time = parseInt(this.week_type) * 86400 + this.start_time
174
+      console.log("now",now_time)
175
+      this.now_time = now_time
166
     },
176
     },
167
     methods: {
177
     methods: {
168
       getAdvice:function(doctor_advice) {
178
       getAdvice:function(doctor_advice) {
301
           return value1 - value2;
311
           return value1 - value2;
302
       }
312
       }
303
      },
313
      },
314
+     getTime(val) {
315
+         if(val == ""){
316
+          return ""
317
+         }else {
318
+          return uParseTime(val, '{y}-{m}-{d}')
319
+         }
320
+      },
304
     }
321
     }
305
   }
322
   }
306
 </script>
323
 </script>

+ 3 - 1
src/xt_pages/workforce/remind_print.vue Просмотреть файл

133
           week_type:this.week_type,
133
           week_type:this.week_type,
134
           week_time:this.week_time,
134
           week_time:this.week_time,
135
         }
135
         }
136
-
136
+       console.log("params",params)
137
       getScheduleWeekDay(params).then(rs => {
137
       getScheduleWeekDay(params).then(rs => {
138
         var resp = rs.data
138
         var resp = rs.data
139
         console.log(resp)
139
         console.log(resp)
140
+        
140
         if (resp.state == 1) {
141
         if (resp.state == 1) {
141
           var scheduleData = resp.data.schdules
142
           var scheduleData = resp.data.schdules
142
           let a = resp.data.day
143
           let a = resp.data.day
144
+          console.log("a",a)
143
           var myDate = new Date(a);
145
           var myDate = new Date(a);
144
           var year = myDate.getFullYear(); //年
146
           var year = myDate.getFullYear(); //年
145
           var month = myDate.getMonth() + 1; //月
147
           var month = myDate.getMonth() + 1; //月