瀏覽代碼

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

csx 4 年之前
父節點
當前提交
7fcfbbbb2b

+ 35 - 2
src/xt_pages/data/components/addProject.vue 查看文件

@@ -135,6 +135,28 @@
135 135
                                 </el-option>
136 136
                             </el-select>
137 137
                         </el-form-item>
138
+                        <el-form-item label="特检项目:" prop="">
139
+                           <el-select v-model="form.specail_project" style="width:160px;" placeholder="请选择">
140
+                              <el-option
141
+                                v-for="(item,index) in specailProject"
142
+                                :key="index"
143
+                                :label="item.name"
144
+                                :value="item.id">
145
+                                </el-option>
146
+                            </el-select>
147
+                        </el-form-item>
148
+                         <el-form-item label="社保目录编码" >
149
+                            <el-input v-model="form.social_security_directory_code" style="width:180px"></el-input>
150
+                         </el-form-item>
151
+
152
+                        <el-form-item label="备案日期:" >
153
+                            <el-date-picker
154
+                                value-format="yyyy-MM-dd"
155
+                                v-model="form.record_date"
156
+                                type="date"
157
+                                placeholder="选择日期时间">
158
+                            </el-date-picker>
159
+                        </el-form-item>
138 160
                         <el-form-item label="备注 : " prop="remark" style="width:100%;">
139 161
                             <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
140 162
                         </el-form-item>
@@ -262,7 +284,11 @@ export default {
262 284
               delivery_way:"",
263 285
               execution_frequency:"",
264 286
               number_days:"",
265
-              total:""
287
+              total:"",
288
+              category:"",
289
+              specail_project:"",
290
+              social_security_directory_code:"",
291
+              record_date:""
266 292
             },
267 293
             rules: {
268 294
                 project_name: [{ required: true, message: '请填写项目名称', trigger: 'blur'  }],
@@ -276,6 +302,10 @@ export default {
276 302
              {id:1,name:"常规诊疗项目"},
277 303
              {id:4,name:"辅助器具项目"},
278 304
              {id:5,name:"加收项目"}
305
+           ],
306
+           specailProject:[
307
+             {id:1,name:"是"},
308
+             {id:2,name:"否"}
279 309
            ]
280 310
         }
281 311
     },
@@ -340,8 +370,11 @@ export default {
340 370
                     number_days:this.form.number_days,
341 371
                     total:this.form.total,
342 372
                     category:this.form.category,
373
+                    specail_project:this.form.specail_project,
374
+                    social_security_directory_code:this.form.social_security_directory_code,
375
+                    record_date:this.form.record_date
343 376
                }
344
-           
377
+             console.log("params222222",params)
345 378
               saveProject(params).then(response=>{
346 379
                  if(response.data.state == 1){
347 380
                    var hisProject = response.data.data.hisProject

+ 5 - 2
src/xt_pages/data/components/consumables.vue 查看文件

@@ -859,8 +859,10 @@
859 859
             console.log('ids222222222',ids)
860 860
             var idss = ids.join(',')
861 861
             let params = {
862
-              ids:idss
862
+              ids:idss,
863
+              admin_user_id:this.$store.getters.xt_user.user.id
863 864
             }
865
+            console.log("paramsw2",params)
864 866
         
865 867
             var that = this
866 868
             axios.get('http://127.0.0.1:9532/sz/api/goods/get',{ params: params }).then(function(response) {
@@ -881,7 +883,8 @@
881 883
          let params = {
882 884
              'id':id,
883 885
              'type_id':3,
884
-             'is_mark':isMark
886
+             'is_mark':isMark,
887
+             'admin_user_id':this.$store.getters.xt_user.user.id,
885 888
           }
886 889
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
887 890
           if (response.data.state == 0) {

+ 4 - 2
src/xt_pages/data/components/drugTableSon.vue 查看文件

@@ -389,11 +389,13 @@
389 389
         });
390 390
       },
391 391
       createData() {
392
-        
392
+        if(this.temp.code == undefined){
393
+           this.temp.code = ""
394
+        }
393 395
         this.$refs["dataForm"].validate(valid => {
394 396
           if (valid) {
395 397
             console.log("33333333",this.temp)
396
-           
398
+            
397 399
             createDictionaryChildConfig(this.temp).then(response => {
398 400
               if (!response.data) {
399 401
                 // 由于mockjs 不支持自定义状态码只能这样hack

+ 17 - 15
src/xt_pages/data/components/drugs.vue 查看文件

@@ -591,19 +591,19 @@
591 591
      getDataConfig(module, filed_name){
592 592
         return getDataConfig(module, filed_name)
593 593
       },
594
-      toRecord(){
595
-         var that = this
596
-         axios.get('http://127.0.0.1:9532/sz/api/drug/get').then(function(response) {
597
-          if (response.data.state == 0) {
598
-               that.$message.error(response.data.msg)
599
-               return false
600
-            } else {
601
-              that.$message({ message: '备案成功', type: 'success' })
602
-               that.getList()
603
-             }
604
-           }).catch(function(error) {
605
-        })
606
-      },
594
+      // toRecord(){
595
+      //    var that = this
596
+      //    axios.get('http://127.0.0.1:9532/sz/api/drug/get').then(function(response) {
597
+      //     if (response.data.state == 0) {
598
+      //          that.$message.error(response.data.msg)
599
+      //          return false
600
+      //       } else {
601
+      //         that.$message({ message: '备案成功', type: 'success' })
602
+      //          that.getList()
603
+      //        }
604
+      //      }).catch(function(error) {
605
+      //   })
606
+      // },
607 607
       toReturn(id,isMark){
608 608
         console.log("id2222",id)
609 609
          var that = this
@@ -611,6 +611,7 @@
611 611
              'id':id,
612 612
              'type_id':1,
613 613
              'is_mark':isMark,
614
+             'admin_user_id':this.$store.getters.xt_user.user.id
614 615
           }
615 616
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
616 617
           if (response.data.state == 0) {
@@ -670,9 +671,10 @@
670 671
         console.log('ids222222222',ids)
671 672
         var idss = ids.join(',')
672 673
         let params = {
673
-          ids:idss
674
+          ids:idss,
675
+          admin_user_id:this.$store.getters.xt_user.user.id
674 676
         }
675
-     
677
+        console.log("params2222")
676 678
         var that = this
677 679
         axios.get('http://127.0.0.1:9532/sz/api/drug/get',{ params: params }).then(function(response) {
678 680
          if (response.data.state == 0) {

+ 48 - 2
src/xt_pages/data/components/editProject.vue 查看文件

@@ -134,6 +134,31 @@
134 134
                                 :value="item.id">
135 135
                                 </el-option>
136 136
                             </el-select>
137
+                        </el-form-item>
138
+                         <el-form-item label="特检项目:" prop="">
139
+                           <el-select v-model="form.specail_project" style="width:160px;" placeholder="请选择">
140
+                              <el-option
141
+                                v-for="(item,index) in specailProject"
142
+                                :key="index"
143
+                                :label="item.name"
144
+                                :value="item.id">
145
+                                </el-option>
146
+                            </el-select>
147
+                        </el-form-item>
148
+                         <el-form-item label="社保目录编码" >
149
+                            <el-input v-model="form.social_security_directory_code" style="width:180px"></el-input>
150
+                         </el-form-item>
151
+
152
+                        <el-form-item label="备案日期:" >
153
+                            <el-date-picker
154
+                                value-format="yyyy-MM-dd"
155
+                                v-model="form.record_date"
156
+                                type="date"
157
+                                placeholder="选择日期时间">
158
+                            </el-date-picker>
159
+                        </el-form-item>
160
+                        <el-form-item label="备注 : " prop="remark" style="width:100%;">
161
+                            <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
137 162
                         </el-form-item>
138 163
                         <el-form-item label="备注 : " prop="remark" style="width:100%;">
139 164
                             <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
@@ -222,6 +247,7 @@
222 247
 </template>
223 248
 
224 249
 <script>
250
+import { uParseTime } from '@/utils/tools'
225 251
 import { getDictionaryDataConfig,getDataConfig } from "@/utils/data";
226 252
 import { getProjectDetail,updatedProject } from "@/api/project/project"
227 253
 export default {
@@ -267,7 +293,10 @@ export default {
267 293
               execution_frequency:"",
268 294
               number_days:"",
269 295
               total:"",
270
-              category:""
296
+              category:"",
297
+              specail_project:"",
298
+              social_security_directory_code:"",
299
+              record_date:"",
271 300
             },
272 301
             rules: {
273 302
                 project_name: [{ required: true, message: '请填写项目名称', trigger: 'blur'  }],
@@ -283,10 +312,21 @@ export default {
283 312
              {id:1,name:"常规诊疗项目"},
284 313
              {id:4,name:"辅助器具项目"},
285 314
              {id:5,name:"加收项目"}
315
+           ],
316
+         specailProject:[
317
+             {id:1,name:"是"},
318
+             {id:2,name:"否"}
286 319
            ]
287 320
         }
288 321
     },
289 322
     methods:{
323
+        getTime(val) {
324
+         if(val == ""){
325
+          return ""
326
+         }else {
327
+          return uParseTime(val, '{y}-{m}-{d}')
328
+         }
329
+      },
290 330
         _close: function(done) {
291 331
             done()
292 332
         },
@@ -346,6 +386,9 @@ export default {
346 386
               this.form.number_days = projecDetail.number_days
347 387
               this.form.total = projecDetail.total
348 388
               this.form.category = projecDetail.category
389
+              this.form.specail_project = projecDetail.specail_project
390
+              this.form.social_security_directory_code = projecDetail.social_security_directory_code
391
+              this.form.record_date = this.getTime(projecDetail.record_date)
349 392
             }
350 393
          })
351 394
        },
@@ -384,7 +427,10 @@ export default {
384 427
                     execution_frequency:this.form.execution_frequency,
385 428
                     number_days:this.form.number_days,
386 429
                     total:this.form.total,
387
-                    category:this.form.category
430
+                    category:this.form.category,
431
+                     specail_project:this.form.specail_project,
432
+                    social_security_directory_code:this.form.social_security_directory_code,
433
+                    record_date:this.form.record_date
388 434
                }
389 435
               
390 436
               updatedProject(params).then(response=>{

+ 4 - 2
src/xt_pages/data/components/project.vue 查看文件

@@ -259,6 +259,7 @@ export default {
259 259
              'id':id,
260 260
              'type_id':2,
261 261
              'is_mark':isMark,
262
+             'admin_user_id':this.$store.getters.xt_user.user.id,
262 263
           }
263 264
           console.log("params22222222",params)
264 265
          
@@ -304,9 +305,10 @@ export default {
304 305
         console.log('ids222222222',ids)
305 306
         var idss = ids.join(',')
306 307
         let params = {
307
-          ids:idss
308
+          ids:idss,
309
+          admin_user_id:this.$store.getters.xt_user.user.id
308 310
         }
309
-     
311
+       console.log("prams22",params)
310 312
         var that = this
311 313
         axios.get('http://127.0.0.1:9532/sz/api/treatment/get',{ params: params }).then(function(response) {
312 314
          if (response.data.state == 0) {

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order.vue 查看文件

@@ -249,7 +249,7 @@
249 249
                         <!--"-->
250 250
                         <!--&gt;</check-box>-->
251 251
                       </div>
252
-                      <div v-if="org_id == 9987" class="inline_block" style="width:200px;margin-left: 30px;">
252
+                      <div v-if="org_id == 9987" class="inline_block" style="margin-left: 30px;">
253 253
                           透前血压:
254 254
                           <span class="under_line" style="width:50px;">
255 255
                               &nbsp;{{ record.assessment_before_dislysis.systolic_blood_pressure ? record.assessment_before_dislysis.systolic_blood_pressure : ""}}
@@ -946,9 +946,9 @@
946 946
                       </div>
947 947
                       <div class="inline_block" style="float: right;">
948 948
                         医生签名:
949
-                        <div class="under-line" v-if="org_id == 9987">
950
-                          <span v-if="setAdminUserES(record.prescription==null?0:(record.prescription.prescription_doctor?record.prescription.prescription_doctor:record.prescription.creater)) == ''">{{getAdminUser(record.prescription==null?0:(record.prescription.prescription_doctor?record.prescription.prescription_doctor:record.prescription.creater))}}</span>
951
-                          <img v-else style="height:30px;" :src="setAdminUserES(record.prescription==null?0:(record.prescription.prescription_doctor?record.prescription.prescription_doctor:record.prescription.creater))" alt="" srcset="">
949
+                        <div class="under_line" v-if="org_id == 9987">
950
+                          <span v-if="setAdminUserES(record.prescription, record.prescription.prescription_doctor ? 'prescription_doctor' : 'creater') == ''">{{getAdminUser(record.prescription, record.prescription.prescription_doctor ? 'prescription_doctor' : 'creater')}}</span>
951
+                          <img class="es-img" :src="setAdminUserES(record.prescription, record.prescription.prescription_doctor ? 'prescription_doctor' : 'creater')" alt="" srcset="" v-else style="height: 30px;">
952 952
                         </div>
953 953
                         <div class="under_line" v-else style="width: 100px;">
954 954
                           <span

+ 1 - 1
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue 查看文件

@@ -460,4 +460,4 @@ export default {
460 460
 .actionBar div{
461 461
     width:150px;
462 462
 }
463
-</style>
463
+</style>

+ 12 - 11
src/xt_pages/role/admin.vue 查看文件

@@ -3,24 +3,21 @@
3 3
     <div class="position">
4 4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5 5
      
6
-       <div style="position: fixed;margin-left:950px">
6
+       <div>
7 7
         <el-button
8 8
           type="primary"
9 9
           size="small"
10 10
           icon="el-icon-circle-plus-outline"
11 11
           style="float:left"
12 12
           @click="openForm(0)">新增</el-button>
13
-     </div>
14
-      <!-- <el-button
15
-        type="primary"
16
-        size="small"
17
-        @click="toLogin"
18
-        >医药师登记</el-button> -->
19 13
         <el-button
20 14
         type="primary"
21 15
         size="small"
22 16
         @click="BatchDelete"
23 17
         >医药师登记</el-button>
18
+     </div>
19
+    
20
+      
24 21
     </div>
25 22
     <div class="app-container">
26 23
       <el-table
@@ -141,7 +138,7 @@
141 138
             </el-tooltip>
142 139
             <span v-if="scope.row.user_type == 2">
143 140
               <el-button type="primary" size="small" icon="el-icon-refresh-left" @click="toReturn(scope.row.user_id,scope.row.is_mark)">
144
-                    <span v-if="scope.row.is_mark ==0">登记</span>
141
+                    <span v-if="scope.row.is_mark ==0">登记</span>
145 142
                     <span v-if="scope.row.is_mark ==1">撤销</span>
146 143
               </el-button>
147 144
             </span>
@@ -402,9 +399,10 @@ export default {
402 399
         console.log('ids222222222',ids)
403 400
         var idss = ids.join(',')
404 401
         let params = {
405
-          ids:idss
402
+          ids:idss,
403
+          admin_user_id:this.$store.getters.xt_user.user.id
406 404
         }
407
-     
405
+        console.log("prams222",params)
408 406
         var that = this
409 407
         axios.get('http://127.0.0.1:9532/sz/api/doctor/get',{ params: params }).then(function(response) {
410 408
          if (response.data.state == 0) {
@@ -423,13 +421,16 @@ export default {
423 421
          let params = {
424 422
            'id':id,
425 423
            "is_mark":is_mark,
424
+           "admin_user_id":this.$store.getters.xt_user.user.id
426 425
         }
426
+        console.log("params222222222",params)
427 427
          axios.get('http://127.0.0.1:9532/sz/api/medical/get',{params:params}).then(function(response) {
428 428
           if (response.data.state == 0) {
429 429
                that.$message.error(response.data.msg)
430 430
                return false
431 431
             } else {
432
-              that.$message({ message: '操作成功', type: 'success' })
432
+              // that.$message({ message: '操作成功', type: 'success' })
433
+              this.$message.error(response.data.msg)
433 434
               that.adminMainView()
434 435
              }
435 436
            }).catch(function(error) {

+ 1 - 1
src/xt_pages/stock/Dialog/goodInfoDailog.vue 查看文件

@@ -138,7 +138,7 @@
138 138
             <el-form-item label="生产地类别:">
139 139
               <el-select v-model="form.production_type" style="width:160px;" placeholder="请选择">
140 140
                 <el-option
141
-                  v-for="item in options"
141
+                  v-for="item in optionsOne"
142 142
                   :key="item.value"
143 143
                   :label="item.label"
144 144
                   :value="item.value">

+ 36 - 29
src/xt_pages/stock/detail/stockInDetail.vue 查看文件

@@ -723,36 +723,43 @@ export default {
723 723
         r2 = Number(total.toString().replace('.', ''))
724 724
         return r1 * r2 / Math.pow(10, m)
725 725
       },
726
-    
727
-    exportList(){
728
-       var obj = {index:"合计",total:0}
729
-       obj.total = this.calTotalPrice()
730
-      for(let i=0;i<this.tableList.length;i++){
731
-        this.tableList[i].index = i+1
732
-        this.tableList[i].min_unit = this.getUnit(this.tableList[i].good_unit)
733
-        this.tableList[i].count = this.calCount(this.tableList[i])
734
-        this.tableList[i].total = this.calTotal(this.tableList[i])
735
-        this.tableList[i].price = this.tableList[i].query_warehousing_info[0].price
736
-        this.tableList[i].remark = this.tableList[i].query_warehousing_info[0].remark
726
+      unique(arr) {
727
+        const res = new Map();
728
+        return arr.filter((arr) => !res.has(arr.specification_name) && res.set(arr.specification_name, 1));
729
+      },
730
+      exportList(){
731
+        var obj = {index:"合计",total:0}
732
+        obj.total = this.calTotalPrice()
733
+     
734
+        for(let i=0;i<this.tableList.length;i++){
735
+          this.tableList[i].index = i+1
736
+          this.tableList[i].min_unit = this.getUnit(this.tableList[i].good_unit)
737
+          this.tableList[i].count = this.calCount(this.tableList[i])
738
+          this.tableList[i].total = this.calTotal(this.tableList[i])
739
+          this.tableList[i].price = this.tableList[i].query_warehousing_info[0].price
740
+          this.tableList[i].remark = this.tableList[i].query_warehousing_info[0].remark
737 741
 
738
-       }
739
-       this.tableList.push(obj)
740
-       console.log("数据222222",this.tableList)
741
-    
742
-       import('@/vendor/Export2Excel').then(excel => {
743
-       const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
744
-       const filterVal = ['index','good_name', 'specification_name', 'min_unit','count','price','total','remark']
745
-       
746
-       const data = this.formatJson(filterVal, this.tableList)
747
-       
748
-        excel.export_json_to_excel({
749
-           header: tHeader,
750
-           data,
751
-           filename: '耗材入库明细'
752
-         })
753
-          this.downloadLoading = false
754
-        })
755
-       },
742
+        }
743
+        var arr = this.unique(this.tableList)
744
+        console.log("arrrr",arr)
745
+        this.tableList = arr
746
+        this.tableList.push(obj)
747
+        console.log("数据222222",this.tableList)
748
+      
749
+        import('@/vendor/Export2Excel').then(excel => {
750
+        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
751
+        const filterVal = ['index','good_name', 'specification_name', 'min_unit','count','price','total','remark']
752
+        
753
+        const data = this.formatJson(filterVal, this.tableList)
754
+        
755
+          excel.export_json_to_excel({
756
+            header: tHeader,
757
+            data,
758
+            filename: '耗材入库明细'
759
+          })
760
+            this.downloadLoading = false
761
+          })
762
+        },
756 763
      formatJson(filterVal, jsonData) {
757 764
         return jsonData.map(v => filterVal.map(j => v[j]));
758 765
      },

+ 7 - 1
src/xt_pages/stock/detail/stockOutDetail.vue 查看文件

@@ -709,7 +709,10 @@ export default {
709 709
         r2 = Number(total.toString().replace('.', ''))
710 710
         return r1 * r2 / Math.pow(10, m)
711 711
       },
712
-
712
+      unique(arr) {
713
+        const res = new Map();
714
+        return arr.filter((arr) => !res.has(arr.specification_name) && res.set(arr.specification_name, 1));
715
+      },
713 716
 
714 717
      exportList(){
715 718
 
@@ -723,6 +726,9 @@ export default {
723 726
         this.tableList[i].total = (this.getStockCount(this.tableList[i].id) * this.tableList[i].query_warehouseout_info[0].price).toFixed(2)
724 727
         this.tableList[i].remark = this.tableList[i].query_warehouseout_info[0].remark
725 728
        }
729
+       var arr = this.unique(this.tableList)
730
+       console.log("22222222222222222气",arr)
731
+       this.tableList = arr
726 732
        this.tableList.push(obj)
727 733
        import('@/vendor/Export2Excel').then(excel => {
728 734
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']

+ 1 - 1
src/xt_pages/stock/drugs/components/drugOutDetail.vue 查看文件

@@ -180,7 +180,7 @@
180 180
       <el-pagination
181 181
         @size-change="handleSizeChange"
182 182
         @current-change="handleCurrentChange"
183
-        :page-sizes="[10, 50, 100]"
183
+        :page-sizes="[10, 50, 100,1000]"
184 184
         :page-size="10"
185 185
         background
186 186
         style="margin-top:20px;float: right"