浏览代码

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

XMLWAN 4 年前
父节点
当前提交
01061ed0bf

+ 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

+ 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

+ 12 - 2
src/xt_pages/outpatientCharges/treatTemplate/printOne.vue 查看文件

@@ -117,8 +117,18 @@
117 117
                 <div style="display:flex;justify-content: space-between;">
118 118
                     <div style="width:20%;">
119 119
                         <div class="chargeUl" v-for="(item,index) in 1" :key="index">
120
-                            <p style="width:50%;">材料费</p>
121
-                            <p style="width:50%;"></p>
120
+                            <div>
121
+                                <p style="width:50%;">药品费</p>
122
+                                <p style="width:50%;"></p>
123
+                            </div>
124
+                            <div>
125
+                                <p style="width:50%;">材料费</p>
126
+                                <p style="width:50%;"></p>
127
+                            </div>
128
+                            <div>
129
+                                <p style="width:50%;">治疗费</p>
130
+                                <p style="width:50%;"></p>
131
+                            </div>
122 132
                         </div>
123 133
                         <div class="chargeUl" style="border-top:1px solid #000;">
124 134
                             <p style="width:50%;">费用合计</p>

+ 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>

+ 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"