XMLWAN 3 anni fa
parent
commit
7d78c5081c

+ 3 - 1
src/lang/zh.js Vedi File

@@ -355,6 +355,8 @@ export default {
355 355
     rescue_record: '抢救记录',
356 356
     manage_ment: '设备管理',
357 357
     nursing_record: '透析护理记录',
358
-    special_record: '特殊记录'
358
+    special_record: '特殊记录',
359
+    template_summary: '治疗小结',
360
+    template_plan: '个性化方案'
359 361
   }
360 362
 }

+ 1 - 0
src/xt_pages/data/components/templateTable.vue Vedi File

@@ -354,6 +354,7 @@ export default {
354 354
         }
355 355
 
356 356
         if (valid) {
357
+           
357 358
           createConfig(this.temp).then(response => {
358 359
             if (!response.data) {
359 360
               // 由于mockjs 不支持自定义状态码只能这样hack

+ 3 - 1
src/xt_pages/data/template.vue Vedi File

@@ -45,7 +45,9 @@ export default {
45 45
         { label: this.$t("data_config.nursing_record"), key: "nursing_record" },
46 46
         { label: this.$t("data_config.special_record"), key: "special_record" },
47 47
         { label: this.$t("data_config.course_disease"), key: "course_disease" },
48
-        { label: this.$t("data_config.rescue_record"), key: "rescue_record" }
48
+        { label: this.$t("data_config.rescue_record"), key: "rescue_record" },
49
+        // { label: this.$t("data_config.template_summary"), key: "template_summary" },
50
+        // { label: this.$t("data_config.template_plan"), key: "template_plan" }
49 51
       ],
50 52
       activeName: "education",
51 53
       createdTimes: 0

+ 4 - 5
src/xt_pages/stock/drugs/drugStockInOrder.vue Vedi File

@@ -847,19 +847,18 @@ export default {
847 847
         console.log("hhh23",this.exportList)
848 848
          for(let i=0;i<this.exportList.length;i++){
849 849
            for(let j=0;j<this.drugTypeList.length;j++){
850
-             if(this.exportList[i].drug_type == this.drugTypeList[j].value){
850
+             if(this.exportList[i].drug_type == this.drugTypeList[j].id){
851 851
                this.exportList[i].drug_type = this.drugTypeList[j].name
852 852
              }
853 853
            }
854 854
          }
855
-       
856
-       
855
+              
857 856
         const tHeader = ['药品名称','药品类型','规格&单位', '批号','入库数量','进货价','总价','生产厂家','生产日期','有效日期','经销商','批注文号','备注']
858
-        const filterVal = ['drug_name', 'drug_type','unit','number','warehousing_count','price','total_price','manufacturer','product_date','expiry_date','dealer','batch_number','remark']
857
+        const filterVal = ['drug_name', 'drug_type','unit','batch_number','warehousing_count','price','total_price','manufacturer','product_date','expiry_date','dealer','number','remark']
859 858
          
860 859
      
861 860
         console.log("table",this.exportList)
862
-      
861
+        return
863 862
         const data = this.formatJson(filterVal, this.exportList)
864 863
         excel.export_json_to_excel({
865 864
           header: tHeader,

+ 23 - 19
src/xt_pages/stock/drugs/drugStockOutOrder.vue Vedi File

@@ -349,7 +349,7 @@
349 349
               <span>批次号</span>
350 350
             </template>
351 351
             <template slot-scope="scope">
352
-              <span>{{getDrugBatchNumber(scope.row.id)}}</span>
352
+              <span>{{getDrugBatchNumber(scope.row.drug_id)}}</span>
353 353
             </template>
354 354
           </el-table-column>
355 355
           
@@ -524,7 +524,8 @@ export default {
524 524
       drugOutList:[],
525 525
       outList:[],
526 526
       userListOne:[],
527
-      exportList:[]
527
+      exportList:[],
528
+      batchNumberList:[]
528 529
     };
529 530
   },
530 531
   methods: {
@@ -1002,6 +1003,7 @@ export default {
1002 1003
          this.userListOne = userListOne
1003 1004
          var  batchNumber = response.data.data.batchNumber
1004 1005
          console.log("出库详情",batchNumber)
1006
+         this.batchNumberList = batchNumber
1005 1007
        }
1006 1008
      })
1007 1009
    },
@@ -1153,26 +1155,28 @@ export default {
1153 1155
          return  total_price
1154 1156
       },
1155 1157
 
1156
-      getDrugBatchNumber(id){
1158
+      // getDrugBatchNumber(id){
1157 1159
         
1158
-        var arr= []
1159
-        var batchNumber =[]
1160
+      //   var arr= []
1161
+      //   var batchNumber =[]
1160 1162
         
1161
-        for(let i=0;i<this.userList.length;i++){
1162
-           if(id == this.userList[i].id){
1163
-             for(let j=0;j<this.userList[i].drugwarehouseoutinfo.length;j++){
1164
-                batchNumber.push(this.userList[i].drugwarehouseoutinfo[j].batch_number)
1165
-             }
1166
-           }
1163
+      //   for(let i=0;i<this.userList.length;i++){
1164
+      //      if(id == this.userList[i].id){
1165
+      //        for(let j=0;j<this.userList[i].drugwarehouseoutinfo.length;j++){
1166
+      //           batchNumber.push(this.userList[i].drugwarehouseoutinfo[j].batch_number)
1167
+      //        }
1168
+      //      }
1169
+      //   }
1170
+      //   return batchNumber.join(",")
1171
+      // },
1172
+      getDrugBatchNumber(drugid){
1173
+        var arr = []
1174
+        for(let i=0;i<this.batchNumberList.length;i++){
1175
+          if(drugid == this.batchNumberList[i].drug_id){
1176
+            arr.push(this.batchNumberList[i].batch_number)
1177
+          }
1167 1178
         }
1168
-        // console.log("arr",arr)
1169
-        // if(arr.length > 0 ){
1170
-        //  for(let j=0;j<arr.length;j++){
1171
-        //    batchNumber.push(arr[j].batch_number)
1172
-        //   }
1173
-        // }
1174
-        // console.log("hhhhhh",batchNumber)
1175
-        return batchNumber.join(",")
1179
+        return arr.join(",")
1176 1180
       },
1177 1181
     
1178 1182
       getExportOutOrderDrugList(){

+ 4 - 2
src/xt_pages/upload/fast/FastProvince.vue Vedi File

@@ -143,6 +143,7 @@
143 143
             <el-tab-pane label="抢救记录">
144 144
               <rescue-record :doctor_advices='doctor_advices' :patient='patient' :prescription='prescription'></rescue-record>
145 145
             </el-tab-pane>
146
+             
146 147
           </el-tabs>
147 148
         </div>
148 149
       </div>
@@ -160,7 +161,7 @@
160 161
   import dialysisParams from "../fast/dialysisParams"
161 162
   import dialysisSummary from "../fast/dialysisSummary"
162 163
   import rescueRecord from "../fast/rescueRecord"
163
-
164
+  
164 165
   import {
165 166
   getDialysisRecordInitData,
166 167
   getDialysisSchedules,
@@ -175,7 +176,8 @@ import { parseTime } from "@/utils";
175 176
       treatInfo,
176 177
       dialysisParams,
177 178
       dialysisSummary,
178
-      rescueRecord
179
+      rescueRecord,
180
+     
179 181
     },
180 182
     data() {
181 183
       return {