Browse Source

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

csx 4 years ago
parent
commit
7fcfbbbb2b

+ 35 - 2
src/xt_pages/data/components/addProject.vue View File

135
                                 </el-option>
135
                                 </el-option>
136
                             </el-select>
136
                             </el-select>
137
                         </el-form-item>
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
                         <el-form-item label="备注 : " prop="remark" style="width:100%;">
160
                         <el-form-item label="备注 : " prop="remark" style="width:100%;">
139
                             <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
161
                             <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
140
                         </el-form-item>
162
                         </el-form-item>
262
               delivery_way:"",
284
               delivery_way:"",
263
               execution_frequency:"",
285
               execution_frequency:"",
264
               number_days:"",
286
               number_days:"",
265
-              total:""
287
+              total:"",
288
+              category:"",
289
+              specail_project:"",
290
+              social_security_directory_code:"",
291
+              record_date:""
266
             },
292
             },
267
             rules: {
293
             rules: {
268
                 project_name: [{ required: true, message: '请填写项目名称', trigger: 'blur'  }],
294
                 project_name: [{ required: true, message: '请填写项目名称', trigger: 'blur'  }],
276
              {id:1,name:"常规诊疗项目"},
302
              {id:1,name:"常规诊疗项目"},
277
              {id:4,name:"辅助器具项目"},
303
              {id:4,name:"辅助器具项目"},
278
              {id:5,name:"加收项目"}
304
              {id:5,name:"加收项目"}
305
+           ],
306
+           specailProject:[
307
+             {id:1,name:"是"},
308
+             {id:2,name:"否"}
279
            ]
309
            ]
280
         }
310
         }
281
     },
311
     },
340
                     number_days:this.form.number_days,
370
                     number_days:this.form.number_days,
341
                     total:this.form.total,
371
                     total:this.form.total,
342
                     category:this.form.category,
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
               saveProject(params).then(response=>{
378
               saveProject(params).then(response=>{
346
                  if(response.data.state == 1){
379
                  if(response.data.state == 1){
347
                    var hisProject = response.data.data.hisProject
380
                    var hisProject = response.data.data.hisProject

+ 5 - 2
src/xt_pages/data/components/consumables.vue View File

859
             console.log('ids222222222',ids)
859
             console.log('ids222222222',ids)
860
             var idss = ids.join(',')
860
             var idss = ids.join(',')
861
             let params = {
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
             var that = this
867
             var that = this
866
             axios.get('http://127.0.0.1:9532/sz/api/goods/get',{ params: params }).then(function(response) {
868
             axios.get('http://127.0.0.1:9532/sz/api/goods/get',{ params: params }).then(function(response) {
881
          let params = {
883
          let params = {
882
              'id':id,
884
              'id':id,
883
              'type_id':3,
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
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
889
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
887
           if (response.data.state == 0) {
890
           if (response.data.state == 0) {

+ 4 - 2
src/xt_pages/data/components/drugTableSon.vue View File

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

+ 17 - 15
src/xt_pages/data/components/drugs.vue View File

591
      getDataConfig(module, filed_name){
591
      getDataConfig(module, filed_name){
592
         return getDataConfig(module, filed_name)
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
       toReturn(id,isMark){
607
       toReturn(id,isMark){
608
         console.log("id2222",id)
608
         console.log("id2222",id)
609
          var that = this
609
          var that = this
611
              'id':id,
611
              'id':id,
612
              'type_id':1,
612
              'type_id':1,
613
              'is_mark':isMark,
613
              'is_mark':isMark,
614
+             'admin_user_id':this.$store.getters.xt_user.user.id
614
           }
615
           }
615
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
616
          axios.get('http://127.0.0.1:9532/sz/api/revocation/get',{params:params}).then(function(response) {
616
           if (response.data.state == 0) {
617
           if (response.data.state == 0) {
670
         console.log('ids222222222',ids)
671
         console.log('ids222222222',ids)
671
         var idss = ids.join(',')
672
         var idss = ids.join(',')
672
         let params = {
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
         var that = this
678
         var that = this
677
         axios.get('http://127.0.0.1:9532/sz/api/drug/get',{ params: params }).then(function(response) {
679
         axios.get('http://127.0.0.1:9532/sz/api/drug/get',{ params: params }).then(function(response) {
678
          if (response.data.state == 0) {
680
          if (response.data.state == 0) {

+ 48 - 2
src/xt_pages/data/components/editProject.vue View File

134
                                 :value="item.id">
134
                                 :value="item.id">
135
                                 </el-option>
135
                                 </el-option>
136
                             </el-select>
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
                         </el-form-item>
162
                         </el-form-item>
138
                         <el-form-item label="备注 : " prop="remark" style="width:100%;">
163
                         <el-form-item label="备注 : " prop="remark" style="width:100%;">
139
                             <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
164
                             <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
222
 </template>
247
 </template>
223
 
248
 
224
 <script>
249
 <script>
250
+import { uParseTime } from '@/utils/tools'
225
 import { getDictionaryDataConfig,getDataConfig } from "@/utils/data";
251
 import { getDictionaryDataConfig,getDataConfig } from "@/utils/data";
226
 import { getProjectDetail,updatedProject } from "@/api/project/project"
252
 import { getProjectDetail,updatedProject } from "@/api/project/project"
227
 export default {
253
 export default {
267
               execution_frequency:"",
293
               execution_frequency:"",
268
               number_days:"",
294
               number_days:"",
269
               total:"",
295
               total:"",
270
-              category:""
296
+              category:"",
297
+              specail_project:"",
298
+              social_security_directory_code:"",
299
+              record_date:"",
271
             },
300
             },
272
             rules: {
301
             rules: {
273
                 project_name: [{ required: true, message: '请填写项目名称', trigger: 'blur'  }],
302
                 project_name: [{ required: true, message: '请填写项目名称', trigger: 'blur'  }],
283
              {id:1,name:"常规诊疗项目"},
312
              {id:1,name:"常规诊疗项目"},
284
              {id:4,name:"辅助器具项目"},
313
              {id:4,name:"辅助器具项目"},
285
              {id:5,name:"加收项目"}
314
              {id:5,name:"加收项目"}
315
+           ],
316
+         specailProject:[
317
+             {id:1,name:"是"},
318
+             {id:2,name:"否"}
286
            ]
319
            ]
287
         }
320
         }
288
     },
321
     },
289
     methods:{
322
     methods:{
323
+        getTime(val) {
324
+         if(val == ""){
325
+          return ""
326
+         }else {
327
+          return uParseTime(val, '{y}-{m}-{d}')
328
+         }
329
+      },
290
         _close: function(done) {
330
         _close: function(done) {
291
             done()
331
             done()
292
         },
332
         },
346
               this.form.number_days = projecDetail.number_days
386
               this.form.number_days = projecDetail.number_days
347
               this.form.total = projecDetail.total
387
               this.form.total = projecDetail.total
348
               this.form.category = projecDetail.category
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
                     execution_frequency:this.form.execution_frequency,
427
                     execution_frequency:this.form.execution_frequency,
385
                     number_days:this.form.number_days,
428
                     number_days:this.form.number_days,
386
                     total:this.form.total,
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
               updatedProject(params).then(response=>{
436
               updatedProject(params).then(response=>{

+ 4 - 2
src/xt_pages/data/components/project.vue View File

259
              'id':id,
259
              'id':id,
260
              'type_id':2,
260
              'type_id':2,
261
              'is_mark':isMark,
261
              'is_mark':isMark,
262
+             'admin_user_id':this.$store.getters.xt_user.user.id,
262
           }
263
           }
263
           console.log("params22222222",params)
264
           console.log("params22222222",params)
264
          
265
          
304
         console.log('ids222222222',ids)
305
         console.log('ids222222222',ids)
305
         var idss = ids.join(',')
306
         var idss = ids.join(',')
306
         let params = {
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
         var that = this
312
         var that = this
311
         axios.get('http://127.0.0.1:9532/sz/api/treatment/get',{ params: params }).then(function(response) {
313
         axios.get('http://127.0.0.1:9532/sz/api/treatment/get',{ params: params }).then(function(response) {
312
          if (response.data.state == 0) {
314
          if (response.data.state == 0) {

+ 4 - 4
src/xt_pages/dialysis/batch_print/batch_print_order.vue View File

249
                         <!--"-->
249
                         <!--"-->
250
                         <!--&gt;</check-box>-->
250
                         <!--&gt;</check-box>-->
251
                       </div>
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
                           <span class="under_line" style="width:50px;">
254
                           <span class="under_line" style="width:50px;">
255
                               &nbsp;{{ record.assessment_before_dislysis.systolic_blood_pressure ? record.assessment_before_dislysis.systolic_blood_pressure : ""}}
255
                               &nbsp;{{ record.assessment_before_dislysis.systolic_blood_pressure ? record.assessment_before_dislysis.systolic_blood_pressure : ""}}
946
                       </div>
946
                       </div>
947
                       <div class="inline_block" style="float: right;">
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
                         </div>
952
                         </div>
953
                         <div class="under_line" v-else style="width: 100px;">
953
                         <div class="under_line" v-else style="width: 100px;">
954
                           <span
954
                           <span

+ 1 - 1
src/xt_pages/outpatientDoctorStation/treatTemplate/printOne.vue View File

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

+ 12 - 11
src/xt_pages/role/admin.vue View File

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

+ 1 - 1
src/xt_pages/stock/Dialog/goodInfoDailog.vue View File

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

+ 36 - 29
src/xt_pages/stock/detail/stockInDetail.vue View File

723
         r2 = Number(total.toString().replace('.', ''))
723
         r2 = Number(total.toString().replace('.', ''))
724
         return r1 * r2 / Math.pow(10, m)
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
      formatJson(filterVal, jsonData) {
763
      formatJson(filterVal, jsonData) {
757
         return jsonData.map(v => filterVal.map(j => v[j]));
764
         return jsonData.map(v => filterVal.map(j => v[j]));
758
      },
765
      },

+ 7 - 1
src/xt_pages/stock/detail/stockOutDetail.vue View File

709
         r2 = Number(total.toString().replace('.', ''))
709
         r2 = Number(total.toString().replace('.', ''))
710
         return r1 * r2 / Math.pow(10, m)
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
      exportList(){
717
      exportList(){
715
 
718
 
723
         this.tableList[i].total = (this.getStockCount(this.tableList[i].id) * this.tableList[i].query_warehouseout_info[0].price).toFixed(2)
726
         this.tableList[i].total = (this.getStockCount(this.tableList[i].id) * this.tableList[i].query_warehouseout_info[0].price).toFixed(2)
724
         this.tableList[i].remark = this.tableList[i].query_warehouseout_info[0].remark
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
        this.tableList.push(obj)
732
        this.tableList.push(obj)
727
        import('@/vendor/Export2Excel').then(excel => {
733
        import('@/vendor/Export2Excel').then(excel => {
728
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']
734
        const tHeader = ['序号','耗材名称', '规格型号', '单位','数量','出货价','总价','备注']

+ 1 - 1
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

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