浏览代码

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

see999 3 年前
父节点
当前提交
e30e3f8862

+ 7 - 7
src/api/patient.js 查看文件

501
   })
501
   })
502
 }
502
 }
503
 
503
 
504
-export function saveCreation(params) {
505
-  console.log('中国龚3223呃3额', params)
504
+export function saveCreation(data) {
505
+  console.log('中国龚3223呃3额', data)
506
   return request({
506
   return request({
507
     url: '/api/patient/savecreationinspection',
507
     url: '/api/patient/savecreationinspection',
508
-    method: 'get',
509
-    params: params
508
+    method: 'post',
509
+    data: data
510
   })
510
   })
511
 }
511
 }
512
 
512
 
534
   })
534
   })
535
 }
535
 }
536
 
536
 
537
-export function UpdateTemplateSummary(params) {
537
+export function UpdateTemplateSummary(data) {
538
   return request({
538
   return request({
539
     url: '/api/patient/updatetemplatesummary',
539
     url: '/api/patient/updatetemplatesummary',
540
-    method: 'get',
541
-    params: params
540
+    method: 'post',
541
+    data: data
542
   })
542
   })
543
 }
543
 }
544
 
544
 

+ 2 - 2
src/api/stock.js 查看文件

835
   })
835
   })
836
 }
836
 }
837
 
837
 
838
-export function deleteStockPrice(id, params) {
838
+export function deleteStockPrice(params) {
839
   return request({
839
   return request({
840
-    url: '/api/stock/deletestockprice?id=' + id,
840
+    url: '/api/stock/deletestockprice',
841
     method: 'Get',
841
     method: 'Get',
842
     params: params
842
     params: params
843
   })
843
   })

+ 21 - 25
src/utils/tools.js 查看文件

153
 }
153
 }
154
 
154
 
155
 export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
155
 export function calculateAnticoagulantZL(type, shouji, shichang, weichi) {
156
- 
156
+  console.log('t', type)
157
   var t = 0.5
157
   var t = 0.5
158
   if (type == 1) {
158
   if (type == 1) {
159
     t = 0.5
159
     t = 0.5
168
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
168
   if (isNaN(shouji) || isNaN(shichang) || isNaN(weichi)) {
169
     return 0
169
     return 0
170
   }
170
   }
171
- console.log((shouji + (shichang - t) * weichi).toFixed(1))
171
+  console.log((shouji + (shichang - t) * weichi).toFixed(1))
172
   return (shouji + (shichang - t) * weichi).toFixed(1)
172
   return (shouji + (shichang - t) * weichi).toFixed(1)
173
 }
173
 }
174
 
174
 
175
-
176
-
177
-
178
-
179
-export function formatDate (date, format) {
175
+export function formatDate(date, format) {
180
   if (/(y+)/.test(format)) {
176
   if (/(y+)/.test(format)) {
181
-      format= format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length));
177
+    format = format.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length))
182
   }
178
   }
183
-  let o = {
184
-      'M+': date.getMonth() + 1,
185
-      'd+': date.getDate(),
186
-      'h+': date.getHours(),
187
-      'm+': date.getMinutes(),
188
-      's+': date.getSeconds()
189
-  };
190
-  for (let k in o) {
191
-      if (new RegExp(`(${k})`).test(format)) {
192
-          let str = o[k] + '';
193
-          format= format.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : padLeftZero(str));
194
-      }
179
+  const o = {
180
+    'M+': date.getMonth() + 1,
181
+    'd+': date.getDate(),
182
+    'h+': date.getHours(),
183
+    'm+': date.getMinutes(),
184
+    's+': date.getSeconds()
195
   }
185
   }
196
-  return format;
197
-};
186
+  for (const k in o) {
187
+    if (new RegExp(`(${k})`).test(format)) {
188
+      const str = o[k] + ''
189
+      format = format.replace(RegExp.$1, (RegExp.$1.length === 1) ? str : padLeftZero(str))
190
+    }
191
+  }
192
+  return format
193
+}
198
 
194
 
199
-function padLeftZero (str) {
200
-  return ('00' + str).substr(str.length);
201
-};
195
+function padLeftZero(str) {
196
+  return ('00' + str).substr(str.length)
197
+}

+ 8 - 5
src/xt_pages/data/components/addInspection.vue 查看文件

49
                     <el-select v-model="form.project_detail" filterable placeholder="请选择" @change="changeProject">
49
                     <el-select v-model="form.project_detail" filterable placeholder="请选择" @change="changeProject">
50
                         <el-option
50
                         <el-option
51
                                 v-for="item in projectList"
51
                                 v-for="item in projectList"
52
-                                :key="item.id"
52
+                                :key="item.new_id"
53
                                 :label="item.project_name"
53
                                 :label="item.project_name"
54
-                                :value="item.id">
54
+                                :value="item.new_id">
55
                         </el-option>
55
                         </el-option>
56
                     </el-select>
56
                     </el-select>
57
                 </el-form-item>
57
                 </el-form-item>
257
                 project_name: projectList[i].project_name,
257
                 project_name: projectList[i].project_name,
258
                 unit: projectList[i].unit,
258
                 unit: projectList[i].unit,
259
                 price: projectList[i].price,
259
                 price: projectList[i].price,
260
-                type: 2
260
+                type: 2,
261
+                new_id: Math.floor((Math.random() + Math.floor(Math.random() * 9 + 1)) * Math.pow(10, 10 - 1))
261
               }
262
               }
262
               this.projectList.push(obj)
263
               this.projectList.push(obj)
263
 
264
 
271
                 project_name: goodInfos[i].good_name,
272
                 project_name: goodInfos[i].good_name,
272
                 unit: goodInfos[i].good_unit,
273
                 unit: goodInfos[i].good_unit,
273
                 price: goodInfos[i].retail_price,
274
                 price: goodInfos[i].retail_price,
274
-                type: 3
275
+                type: 3,
276
+                new_id: Math.floor((Math.random() + Math.floor(Math.random() * 9 + 1)) * Math.pow(10, 10 - 1))
277
+
275
               }
278
               }
276
               this.projectList.push(obj)
279
               this.projectList.push(obj)
277
             }
280
             }
309
       addProjectList() {
312
       addProjectList() {
310
         console.log(this.projectList)
313
         console.log(this.projectList)
311
         for (let i = 0; i < this.projectList.length; i++) {
314
         for (let i = 0; i < this.projectList.length; i++) {
312
-          if (this.form.project_detail == this.projectList[i].id) {
315
+          if (this.form.project_detail == this.projectList[i].new_id) {
313
             this.projectList[i].number = this.form.number
316
             this.projectList[i].number = this.form.number
314
             this.projectList[i].number = this.projectList[i].number.toString()
317
             this.projectList[i].number = this.projectList[i].number.toString()
315
             this.tableData.push(this.projectList[i])
318
             this.tableData.push(this.projectList[i])

+ 8 - 4
src/xt_pages/data/components/editInspection.vue 查看文件

50
                                 v-for="item,index in projectList"
50
                                 v-for="item,index in projectList"
51
                                 :key="index"
51
                                 :key="index"
52
                                 :label="item.project_name"
52
                                 :label="item.project_name"
53
-                                :value="item.id">
53
+                                :value="item.new_id">
54
                         </el-option>
54
                         </el-option>
55
                     </el-select>
55
                     </el-select>
56
 
56
 
209
                 unit: projectList[i].unit,
209
                 unit: projectList[i].unit,
210
                 price: projectList[i].price,
210
                 price: projectList[i].price,
211
                 type: 2,
211
                 type: 2,
212
-                m_id: 0
212
+                m_id: 0,
213
+                new_id: Math.floor((Math.random() + Math.floor(Math.random() * 9 + 1)) * Math.pow(10, 10 - 1))
214
+
213
               }
215
               }
214
               this.projectList.push(obj)
216
               this.projectList.push(obj)
215
 
217
 
224
                 unit: goodInfos[i].good_unit,
226
                 unit: goodInfos[i].good_unit,
225
                 price: goodInfos[i].retail_price,
227
                 price: goodInfos[i].retail_price,
226
                 type: 3,
228
                 type: 3,
227
-                m_id: 0
229
+                m_id: 0,
230
+                new_id: Math.floor((Math.random() + Math.floor(Math.random() * 9 + 1)) * Math.pow(10, 10 - 1))
231
+
228
 
232
 
229
               }
233
               }
230
               this.projectList.push(obj)
234
               this.projectList.push(obj)
336
       },
340
       },
337
       addProjectList() {
341
       addProjectList() {
338
         for (let i = 0; i < this.projectList.length; i++) {
342
         for (let i = 0; i < this.projectList.length; i++) {
339
-          if (this.form.project_detail == this.projectList[i].id) {
343
+          if (this.form.project_detail == this.projectList[i].new_id) {
340
             this.projectList[i].number = this.form.number
344
             this.projectList[i].number = this.form.number
341
             this.projectList[i].number = this.projectList[i].number.toString()
345
             this.projectList[i].number = this.projectList[i].number.toString()
342
             this.tableData.push(this.projectList[i])
346
             this.tableData.push(this.projectList[i])

+ 24 - 4
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue 查看文件

2118
         this.isVisibility = false
2118
         this.isVisibility = false
2119
       },
2119
       },
2120
       changeThisAnticoagulant: function(val) {
2120
       changeThisAnticoagulant: function(val) {
2121
-
2121
+        console.log("val",val)
2122
         var thismode = val
2122
         var thismode = val
2123
         if (isNaN(thismode) || thismode <= 0) {
2123
         if (isNaN(thismode) || thismode <= 0) {
2124
           return false
2124
           return false
2145
           this.anticoagulant.weichi_unit = 'ml'
2145
           this.anticoagulant.weichi_unit = 'ml'
2146
           this.anticoagulant.zongliang_unit = 'ml'
2146
           this.anticoagulant.zongliang_unit = 'ml'
2147
         }
2147
         }
2148
+
2149
+        console.log('首季9999', this.dialysisPrescription.anticoagulant_zongliang)
2150
+        console.log("收集",this.dialysisPrescription.anticoagulant_shouji)
2151
+        console.log("weichi",this.dialysisPrescription.anticoagulant_weichi)
2152
+        if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
2153
+          this.dialysisPrescription.anticoagulant_zongliang = ""
2154
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
2155
+        }
2156
+
2157
+
2148
       },
2158
       },
2149
       handleCommit: function() {
2159
       handleCommit: function() {
2150
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
2160
         if (this.dialysisPrescription.anticoagulant == '低分子肝素') {
3445
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3455
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3446
           this.dialysisPrescription.anticoagulant_zongliang = ''
3456
           this.dialysisPrescription.anticoagulant_zongliang = ''
3447
         }
3457
         }
3448
-
3458
+        
3449
       },
3459
       },
3450
       'dialysisPrescription.anticoagulant_shouji': function() {
3460
       'dialysisPrescription.anticoagulant_shouji': function() {
3451
         let dialysis_duration_minute = 0
3461
         let dialysis_duration_minute = 0
3477
           this.dialysisPrescription.anticoagulant_zongliang = ''
3487
           this.dialysisPrescription.anticoagulant_zongliang = ''
3478
         }
3488
         }
3479
 
3489
 
3490
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3491
+          this.dialysisPrescription.anticoagulant_zongliang = ""
3492
+          this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
3493
+       }
3494
+
3480
       },
3495
       },
3481
       'dialysisPrescription.anticoagulant_weichi': function() {
3496
       'dialysisPrescription.anticoagulant_weichi': function() {
3482
         let dialysis_duration_minute = 0
3497
         let dialysis_duration_minute = 0
3502
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3517
         if (isNaN(this.dialysisPrescription.anticoagulant_zongliang)) {
3503
           this.dialysisPrescription.anticoagulant_zongliang = ''
3518
           this.dialysisPrescription.anticoagulant_zongliang = ''
3504
         }
3519
         }
3505
-        console.log('首季', this.dialysisPrescription.anticoagulant_zongliang)
3506
-
3520
+        console.log('首季9999', this.dialysisPrescription.anticoagulant_zongliang)
3521
+        console.log("收集",this.dialysisPrescription.anticoagulant_shouji)
3522
+        console.log("weichi",this.dialysisPrescription.anticoagulant_weichi)
3523
+        if(this.$store.getters.xt_user.template_info.template_id == 41 && this.dialysisPrescription.anticoagulant == 2){
3524
+         this.dialysisPrescription.anticoagulant_zongliang = ""
3525
+         this.dialysisPrescription.anticoagulant_zongliang = parseInt(this.dialysisPrescription.anticoagulant_shouji) +  parseInt(this.dialysisPrescription.anticoagulant_weichi)
3526
+       }
3507
       },
3527
       },
3508
       'prescription.id': {
3528
       'prescription.id': {
3509
         immediate: true,
3529
         immediate: true,

+ 11 - 1
src/xt_pages/management/components/UserForm.vue 查看文件

1041
         { id: 1, name: "0.22%季铵盐" },
1041
         { id: 1, name: "0.22%季铵盐" },
1042
         { id: 2, name: "500mg/l含氯消毒剂" },
1042
         { id: 2, name: "500mg/l含氯消毒剂" },
1043
         { id: 3, name: "1000mg/l含氯消毒剂" },
1043
         { id: 3, name: "1000mg/l含氯消毒剂" },
1044
-        { id: 4, name: "1500mg/l含氯消毒剂" }
1044
+        { id: 4, name: "1500mg/l含氯消毒剂" },
1045
+        { id: 5, name: "消毒湿巾" }
1045
       ],
1046
       ],
1046
       // 夜路消毒方式
1047
       // 夜路消毒方式
1047
       sterilizeType: [
1048
       sterilizeType: [
1292
             if (information[index].disinfectant_type === 4) {
1293
             if (information[index].disinfectant_type === 4) {
1293
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
1294
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
1294
             }
1295
             }
1296
+            if (information[index].disinfectant_type === 5) {
1297
+               information[index].disinfectant_type = "消毒湿巾";
1298
+            }
1295
 
1299
 
1296
             if (information[index].disinfection === 1) {
1300
             if (information[index].disinfection === 1) {
1297
               information[index].disinfection = "已消毒";
1301
               information[index].disinfection = "已消毒";
1817
             if (information[index].disinfectant_type === 4) {
1821
             if (information[index].disinfectant_type === 4) {
1818
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
1822
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
1819
             }
1823
             }
1824
+            if (information[index].disinfectant_type === 5) {
1825
+              information[index].disinfectant_type = "消毒湿巾";
1826
+            }
1820
 
1827
 
1821
             if (information[index].disinfection === 0) {
1828
             if (information[index].disinfection === 0) {
1822
               information[index].disinfection = "";
1829
               information[index].disinfection = "";
2103
             if (information[index].disinfectant_type === 4) {
2110
             if (information[index].disinfectant_type === 4) {
2104
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
2111
               information[index].disinfectant_type = "1500mg/l含氯消毒剂";
2105
             }
2112
             }
2113
+           if (information[index].disinfectant_type === 5) {
2114
+              information[index].disinfectant_type = "消毒湿巾";
2115
+            }
2106
 
2116
 
2107
             if (information[index].disinfection === 0) {
2117
             if (information[index].disinfection === 0) {
2108
               information[index].disinfection = "";
2118
               information[index].disinfection = "";

+ 1 - 1
src/xt_pages/management/home.vue 查看文件

981
                                      </el-form-item>
981
                                      </el-form-item>
982
                                     </el-col>
982
                                     </el-col>
983
                                     <el-col :span="8">
983
                                     <el-col :span="8">
984
-                                       <el-form-item label="患者:" required prop ="patient_name">
984
+                                       <el-form-item label="患者:">
985
                                            <el-autocomplete
985
                                            <el-autocomplete
986
                                                style="width:150px"
986
                                                style="width:150px"
987
                                                popper-class="my-autocomplete"
987
                                                popper-class="my-autocomplete"

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

160
                 <el-input v-model="form.count"></el-input>
160
                 <el-input v-model="form.count"></el-input>
161
             </el-form-item>
161
             </el-form-item>
162
             <el-form-item label="库存">
162
             <el-form-item label="库存">
163
-                <el-input v-model="form.total"></el-input>
163
+                <el-input v-model="form.total" :disabled="true"></el-input>
164
             </el-form-item>
164
             </el-form-item>
165
             <el-form-item label="产地">
165
             <el-form-item label="产地">
166
                 <el-input v-model="form.drug_origin_place"></el-input>
166
                 <el-input v-model="form.drug_origin_place"></el-input>

+ 17 - 15
src/xt_pages/stock/drugs/drugModifyPrice.vue 查看文件

102
         </div>
102
         </div>
103
     </div>
103
     </div>
104
     <el-dialog
104
     <el-dialog
105
-        title="库房调价"
105
+        title="药品调价"
106
         :visible.sync="dialogVisible"
106
         :visible.sync="dialogVisible"
107
         width="1200px">
107
         width="1200px">
108
         <el-form :model="form" class="modifyDialog" label-width="120px">
108
         <el-form :model="form" class="modifyDialog" label-width="120px">
142
             </el-form-item>
142
             </el-form-item>
143
         </el-form>
143
         </el-form>
144
         <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
144
         <el-table :data="tableData" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }">
145
-            <el-table-column prop="date" label="单据编号" width="100">
145
+            <el-table-column prop="date" label="单据编号" width="100" align="center">
146
                <template slot-scope="scope">
146
                <template slot-scope="scope">
147
                  {{scope.row.warehousing_order}}
147
                  {{scope.row.warehousing_order}}
148
                 </template>  
148
                 </template>  
149
             </el-table-column>
149
             </el-table-column>
150
-            <el-table-column prop="date"label="药品名称" width="100">
150
+            <el-table-column prop="date"label="药品名称" width="100" align="center">
151
               <template slot-scope="scope">
151
               <template slot-scope="scope">
152
                  {{scope.row.drug_name}}
152
                  {{scope.row.drug_name}}
153
                 </template>  
153
                 </template>  
154
             </el-table-column>
154
             </el-table-column>
155
-            <el-table-column prop="name"label="规格" width="100">
155
+            <el-table-column prop="name"label="规格" width="100" align="center">
156
               <template slot-scope="scope">
156
               <template slot-scope="scope">
157
-                  {{scope.row.dose}}{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
157
+                 {{scope.row.specification_name}}
158
               </template>
158
               </template>
159
             </el-table-column>
159
             </el-table-column>
160
-            <el-table-column prop="name" label="单位" width="100">
160
+            <el-table-column prop="name" label="单位" width="100" align="center">
161
               <template slot-scope="scope">
161
               <template slot-scope="scope">
162
               {{scope.row.warehousing_unit}}
162
               {{scope.row.warehousing_unit}}
163
               </template>
163
               </template>
167
               {{scope.row.count}}
167
               {{scope.row.count}}
168
               </template>
168
               </template>
169
             </el-table-column> -->
169
             </el-table-column> -->
170
-            <el-table-column prop="name" label="原进货价" width="100">
170
+            <el-table-column prop="name" label="原进货价" width="100" align="center">
171
                 <template slot-scope="scope">
171
                 <template slot-scope="scope">
172
                 {{scope.row.retail_price}}
172
                 {{scope.row.retail_price}}
173
                 </template>
173
                 </template>
174
             </el-table-column>
174
             </el-table-column>
175
-            <el-table-column prop="name" label="原零售价" width="100">
175
+            <el-table-column prop="name" label="原零售价" width="100" align="center">
176
                  <template slot-scope="scope">
176
                  <template slot-scope="scope">
177
                   {{scope.row.retail_price}}
177
                   {{scope.row.retail_price}}
178
                 </template>
178
                 </template>
179
             </el-table-column>
179
             </el-table-column>
180
-            <el-table-column  prop="name" label="新零售价" width="100">
180
+            <el-table-column  prop="name" label="新零售价" width="100" align="center">
181
                 <template slot-scope="scope">
181
                 <template slot-scope="scope">
182
                   {{scope.row.new_price}}
182
                   {{scope.row.new_price}}
183
                 </template>  
183
                 </template>  
184
             </el-table-column>
184
             </el-table-column>
185
-            <el-table-column prop="name" label="生产厂商" width="100">
185
+            <el-table-column prop="name" label="生产厂商" width="100" align="center">
186
                 <template slot-scope="scope">
186
                 <template slot-scope="scope">
187
                   {{scope.row.manufacturer}}
187
                   {{scope.row.manufacturer}}
188
                 </template>   
188
                 </template>   
189
             </el-table-column>
189
             </el-table-column>
190
-            <el-table-column prop="name" label="批准文号" width="100">
190
+            <el-table-column prop="name" label="批准文号" width="100" align="center">
191
                  <template slot-scope="scope">
191
                  <template slot-scope="scope">
192
                   {{scope.row.number}}
192
                   {{scope.row.number}}
193
                 </template>    
193
                 </template>    
194
             </el-table-column>
194
             </el-table-column>
195
-            <el-table-column prop="name" label="供应商" width="100">
195
+            <el-table-column prop="name" label="供应商" width="100" align="center">
196
                 <template slot-scope="scope">
196
                 <template slot-scope="scope">
197
                   {{scope.row.manufacturer}}
197
                   {{scope.row.manufacturer}}
198
                 </template>    
198
                 </template>    
199
             </el-table-column>
199
             </el-table-column>
200
-            <el-table-column prop="name" label="备注"  width="100">
200
+            <el-table-column prop="name" label="备注"  width="100" align="center">
201
                <template slot-scope="scope">
201
                <template slot-scope="scope">
202
                   {{scope.row.remark}}
202
                   {{scope.row.remark}}
203
                 </template>      
203
                 </template>      
471
             dealer:this.form.dealer,
471
             dealer:this.form.dealer,
472
             last_price:this.form.last_price,
472
             last_price:this.form.last_price,
473
             start_time:this.getTime(new Date()),
473
             start_time:this.getTime(new Date()),
474
+            specification_name:this.form.specification_name,
474
             } 
475
             } 
475
           this.tableData.push(obj)     
476
           this.tableData.push(obj)     
476
         },
477
         },
525
             this.form.dealer = val.dealer
526
             this.form.dealer = val.dealer
526
             this.form.manufacturer = val.manufacturer
527
             this.form.manufacturer = val.manufacturer
527
             this.form.remark = val.remark
528
             this.form.remark = val.remark
528
-            this.form.warehousing_unit = val.warehouseing_unit  
529
+            this.form.warehousing_unit = val.max_unit  
529
             this.form.total = val.total
530
             this.form.total = val.total
530
             this.form.batch_number = val.batch_number
531
             this.form.batch_number = val.batch_number
531
             this.form.last_price = val.last_price
532
             this.form.last_price = val.last_price
533
+            this.form.specification_name =  val.dose + val.dose_unit +"*"+val.min_number+val.min_unit+"/"+val.max_unit
532
         },
534
         },
533
         getTime(val) {
535
         getTime(val) {
534
          if(val < 0){
536
          if(val < 0){
545
            this.tableData[i].retail_price = this.tableData[i].retail_price.toString()
547
            this.tableData[i].retail_price = this.tableData[i].retail_price.toString()
546
            this.tableData[i].last_price = this.tableData[i].last_price.toString()
548
            this.tableData[i].last_price = this.tableData[i].last_price.toString()
547
            this.tableData[i].new_price = this.tableData[i].new_price.toString()
549
            this.tableData[i].new_price = this.tableData[i].new_price.toString()
548
-           this.tableData[i].count =  parseInt(this.tableData[i].count)
550
+          //  this.tableData[i].count =  parseInt(this.tableData[i].count)
549
            if(this.tableData[i].dealer == 0){
551
            if(this.tableData[i].dealer == 0){
550
              this.tableData[i].dealer = ""
552
              this.tableData[i].dealer = ""
551
            }
553
            }

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

352
         var count = 0
352
         var count = 0
353
         for(let i=0;i<this.warehouseList.length;i++){
353
         for(let i=0;i<this.warehouseList.length;i++){
354
           if(id == this.warehouseList[i].warehousing_id){
354
           if(id == this.warehouseList[i].warehousing_id){
355
-             count +=this.warehouseList[i].warehousing_count * this.warehouseList[i].last_price
355
+             count +=this.warehouseList[i].warehousing_count * this.warehouseList[i].price
356
           }
356
           }
357
         }
357
         }
358
         return count
358
         return count

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

993
              warehouse_info_id:this.form.warehouse_info_id,
993
              warehouse_info_id:this.form.warehouse_info_id,
994
              total:this.total.toString(),
994
              total:this.total.toString(),
995
              remark:this.remark,
995
              remark:this.remark,
996
-             prof_count:parseInt(this.prof_count),
996
+             proof_count:parseInt(this.form.proof_count),
997
            }
997
            }
998
           console.log("params",params)
998
           console.log("params",params)
999
          SaveDrugProofInventory(params).then(response=>{
999
          SaveDrugProofInventory(params).then(response=>{

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

25
                 style="width: 200px;margin-left:10px;"
25
                 style="width: 200px;margin-left:10px;"
26
                 class="filter-item"
26
                 class="filter-item"
27
                 v-model.trim="searchKey"
27
                 v-model.trim="searchKey"
28
-                placeholder=""
28
+               placeholder="请输入单据编号或操作人姓名"
29
                 />
29
                 />
30
                 <el-button
30
                 <el-button
31
                 size="small"
31
                 size="small"

+ 49 - 10
src/xt_pages/stock/stockDamaged.vue 查看文件

108
         <el-form :model="form" class="modifyDialog" label-width="120px">
108
         <el-form :model="form" class="modifyDialog" label-width="120px">
109
           
109
           
110
             <el-form-item label="耗材ID">
110
             <el-form-item label="耗材ID">
111
-                <el-input v-model="form.good_id"></el-input>
111
+                <el-input v-model="form.good_id" :disabled="true"></el-input>
112
             </el-form-item>
112
             </el-form-item>
113
             <el-form-item label="耗材名称">
113
             <el-form-item label="耗材名称">
114
                   <el-autocomplete
114
                   <el-autocomplete
129
                  </el-autocomplete>
129
                  </el-autocomplete>
130
             </el-form-item>
130
             </el-form-item>
131
             <el-form-item label="规格">
131
             <el-form-item label="规格">
132
-                <el-input v-model="form.specification_name"></el-input>
132
+                <el-input v-model="form.specification_name" :disabled="true"></el-input>
133
             </el-form-item>
133
             </el-form-item>
134
             <el-form-item label="批号">
134
             <el-form-item label="批号">
135
                  <el-select v-model="form.number" filterable placeholder="请选择">
135
                  <el-select v-model="form.number" filterable placeholder="请选择">
142
                 </el-select>
142
                 </el-select>
143
             </el-form-item>
143
             </el-form-item>
144
             <el-form-item label="单位">
144
             <el-form-item label="单位">
145
-                <el-input v-model="form.warehousing_unit"></el-input>
145
+                <el-input v-model="form.warehousing_unit" :disabled="true"></el-input>
146
             </el-form-item>
146
             </el-form-item>
147
             <el-form-item label="进货价">
147
             <el-form-item label="进货价">
148
-                <el-input v-model="form.buy_price"></el-input>
148
+                <el-input v-model="form.buy_price" :disabled="true"></el-input>
149
             </el-form-item>
149
             </el-form-item>
150
             <el-form-item label="零售价">
150
             <el-form-item label="零售价">
151
-                <el-input v-model="form.packing_price"></el-input>
151
+                <el-input v-model="form.packing_price" :disabled="true"></el-input>
152
             </el-form-item>
152
             </el-form-item>
153
             <el-form-item label="报损数量">
153
             <el-form-item label="报损数量">
154
                 <el-input v-model="form.count"></el-input>
154
                 <el-input v-model="form.count"></el-input>
155
             </el-form-item>
155
             </el-form-item>
156
             <el-form-item label="库存">
156
             <el-form-item label="库存">
157
-                <el-input v-model="form.total"></el-input>
157
+                <el-input v-model="form.total" :disabled="true"></el-input>
158
             </el-form-item>
158
             </el-form-item>
159
             <el-form-item label="产地">
159
             <el-form-item label="产地">
160
                 <el-input v-model="form.good_origin_place"></el-input>
160
                 <el-input v-model="form.good_origin_place"></el-input>
161
             </el-form-item>
161
             </el-form-item>
162
             <el-form-item label="批准文号">
162
             <el-form-item label="批准文号">
163
-                <el-input v-model="form.license_number"></el-input>
163
+                <el-input v-model="form.license_number" :disabled="true"></el-input>
164
             </el-form-item>
164
             </el-form-item>
165
             <el-form-item label="生产厂商">
165
             <el-form-item label="生产厂商">
166
-                <el-input v-model="form.manufacturer"></el-input>
166
+                <el-input v-model="form.manufacturer" :disabled="true"></el-input>
167
+            </el-form-item>
168
+           <el-form-item label="供应商">
169
+                <el-input v-model="form.dealer" :disabled="true"></el-input>
167
             </el-form-item>
170
             </el-form-item>
168
             <el-form-item label="备注">
171
             <el-form-item label="备注">
169
                 <div style="display:flex;">
172
                 <div style="display:flex;">
309
                     </template>
312
                     </template>
310
                     </el-autocomplete>
313
                     </el-autocomplete>
311
                 </el-form-item>
314
                 </el-form-item>
312
-               <el-form-item label="报损数量:">
315
+               <el-form-item label="规格:">
316
+                 <el-input v-model="form.specification_name" style="width:200px"></el-input>
317
+               </el-form-item>
318
+               <el-form-item label="批号">
319
+                 <el-select v-model="form.number" filterable placeholder="请选择">
320
+                  <el-option
321
+                    v-for="(item,index) in numberList"
322
+                    :key="index"
323
+                    :label="item.number"
324
+                    :value="item.number">
325
+                  </el-option>
326
+                </el-select>
327
+              </el-form-item>
328
+              <el-form-item label="单位">
329
+                 <el-input v-model="form.warehousing_unit"></el-input>
330
+              </el-form-item>
331
+                <el-form-item label="报损数量:">
313
                  <el-input v-model="form.count" style="width:200px"></el-input>
332
                  <el-input v-model="form.count" style="width:200px"></el-input>
314
                </el-form-item>
333
                </el-form-item>
315
              </el-col> 
334
              </el-col> 
512
           this.form.product_date = val.product_date
531
           this.form.product_date = val.product_date
513
       },
532
       },
514
       addStock(){
533
       addStock(){
534
+
535
+        if(this.form.count == ""){
536
+          this.$message.error("请输入报损数量")
537
+          return 
538
+        }
515
         var obj = {
539
         var obj = {
516
           good_id:this.form.good_id,
540
           good_id:this.form.good_id,
517
           good_name:this.form.good_name,
541
           good_name:this.form.good_name,
674
        this.tableData.splice(index,1)
698
        this.tableData.splice(index,1)
675
      },
699
      },
676
      toEdit(row){
700
      toEdit(row){
701
+      console.log("row",row)
677
       this.form.good_name = row.good_name
702
       this.form.good_name = row.good_name
678
-      this.form.packing_unit = row.packing_unit
703
+      this.form.warehousing_unit = row.warehousing_unit
679
       this.form.packing_price = row.packing_price
704
       this.form.packing_price = row.packing_price
680
       this.form.count = row.count
705
       this.form.count = row.count
681
       this.form.remark = row.remark
706
       this.form.remark = row.remark
682
       this.form.id = row.id
707
       this.form.id = row.id
708
+      this.form.specification_name = row.specification_name
709
+      this.form.dealer = row.dealer
710
+      this.form.manufacturer = row.manufacturer
711
+      this.form.good_origin_place = row.good_origin_place
712
+      this.form.total = row.total
713
+      this.form.number = row.number
714
+      this.form.license_number = row.license_number
683
       this.editPriceDialogVisible = true  
715
       this.editPriceDialogVisible = true  
684
      },
716
      },
685
      upatePrice(){
717
      upatePrice(){
689
             this.tableData[i].packing_price = this.form.packing_price
721
             this.tableData[i].packing_price = this.form.packing_price
690
             this.tableData[i].count = this.form.count
722
             this.tableData[i].count = this.form.count
691
             this.tableData[i].remark = this.form.remark
723
             this.tableData[i].remark = this.form.remark
724
+            this.tableData[i].good_name = this.form.specification_name
725
+            this.tableData[i].warehousing_unit  = this.form.warehousing_unit
726
+            this.tableData[i].total = this.form.total
727
+            this.tableData[i].number = this.form.number
728
+            this.tableData[i].license_number = this.form.license_number
729
+            this.tableData[i].manufacturer = this.form.manufacturer
730
+            this.tableData[i].good_origin_place = this.form.good_origin_place
692
          }
731
          }
693
        }
732
        }
694
        this.editPriceDialogVisible = false
733
        this.editPriceDialogVisible = false

+ 73 - 32
src/xt_pages/stock/stockModifyPrice.vue 查看文件

26
             v-model="start_time"
26
             v-model="start_time"
27
             type="date"
27
             type="date"
28
             style="margin-left:5px;width:140px;"
28
             style="margin-left:5px;width:140px;"
29
-            placeholder="选择日期">
29
+            placeholder="选择日期"
30
+            @change="changeStartTime">
30
             </el-date-picker>
31
             </el-date-picker>
31
             <el-date-picker
32
             <el-date-picker
32
             size="small"
33
             size="small"
33
             v-model="end_time"
34
             v-model="end_time"
34
             type="date"
35
             type="date"
35
             style="margin-left:5px;width:140px;"
36
             style="margin-left:5px;width:140px;"
36
-            placeholder="选择日期">
37
+            placeholder="选择日期"
38
+            @change="changeEndTime">
37
             </el-date-picker>
39
             </el-date-picker>
38
         </div>
40
         </div>
39
         <div>
41
         <div>
168
                   </template>
170
                   </template>
169
                  </el-autocomplete>
171
                  </el-autocomplete>
170
             </el-form-item>
172
             </el-form-item>
173
+            <el-form-item label="规格">
174
+                <el-input v-model="form.specification_name" :disabled="true"></el-input>
175
+            </el-form-item>
171
             <el-form-item label="原价格">
176
             <el-form-item label="原价格">
172
-                <el-input v-model="form.packing_price"></el-input>
177
+                <el-input v-model="form.packing_price" :disabled="true"></el-input>
173
             </el-form-item>
178
             </el-form-item>
174
             <el-form-item label="现价格">
179
             <el-form-item label="现价格">
175
                 <el-input v-model="form.new_price"></el-input>
180
                 <el-input v-model="form.new_price"></el-input>
176
             </el-form-item>
181
             </el-form-item>
177
-            <!-- <el-form-item label="调价数量">
178
-                <el-input v-model="form.count" type="number"></el-input>
179
-            </el-form-item> -->
182
+            <el-form-item label="生产商">
183
+                <el-input v-model="form.manufacturer" :disabled="true"></el-input>
184
+            </el-form-item>
185
+            <el-form-item label="供应商">
186
+                <el-input v-model="form.dealer" :disabled="true"></el-input>
187
+            </el-form-item>
180
             <el-form-item label="备注" style="width:66%;">
188
             <el-form-item label="备注" style="width:66%;">
181
                 <div style="display:flex;">
189
                 <div style="display:flex;">
182
                     <el-input v-model="form.remark"></el-input>
190
                     <el-input v-model="form.remark"></el-input>
205
                {{scope.row.warehousing_unit}}
213
                {{scope.row.warehousing_unit}}
206
                </template>
214
                </template>
207
             </el-table-column>
215
             </el-table-column>
208
-            <!-- <el-table-column prop="name" label="调价数量" width="100" align="center">
209
-              <template slot-scope="scope">
210
-                {{scope.row.count}}
211
-              </template> 
212
-            </el-table-column> -->
213
             <el-table-column prop="name" label="原进货价" width="100" align="center">
216
             <el-table-column prop="name" label="原进货价" width="100" align="center">
214
                <template slot-scope="scope">
217
                <template slot-scope="scope">
215
                 {{scope.row.buy_price}}
218
                 {{scope.row.buy_price}}
288
                     </template>
291
                     </template>
289
                     </el-autocomplete>
292
                     </el-autocomplete>
290
                 </el-form-item>
293
                 </el-form-item>
294
+               <el-form-item label="规格">
295
+                 <el-input v-model="form.specification_name" style="width:200px" :disabled="true"></el-input>
296
+               </el-form-item>
297
+               <el-form-item label="生产厂商">
298
+                 <el-input v-model="form.manufacturer" style="width:200px" :disabled="true"></el-input>
299
+               </el-form-item>
300
+              <el-form-item label="供应商">
301
+                 <el-input v-model="form.dealer" style="width:200px" :disabled="true"></el-input>
302
+               </el-form-item>
291
                <el-form-item label="原价格:">
303
                <el-form-item label="原价格:">
292
-                 <el-input v-model="form.packing_price" style="width:200px"></el-input>
304
+                 <el-input v-model="form.packing_price" style="width:200px" :disabled="true"></el-input>
293
                </el-form-item>
305
                </el-form-item>
294
                <el-form-item label="现价格:">
306
                <el-form-item label="现价格:">
295
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
307
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
296
                 </el-form-item>
308
                 </el-form-item>
309
+               <el-form-item label="备注:">
310
+                    <el-input v-model="form.remark" style="width:200px"></el-input>
311
+                </el-form-item>
297
              </el-col> 
312
              </el-col> 
298
             </el-row>
313
             </el-row>
299
-            <!-- <el-row>
300
-             <el-col>
301
-               <el-form-item label="调价数量:">
302
-                    <el-input v-model="form.count"  style="width:200px"></el-input>
303
-                </el-form-item>
304
-                <el-form-item label="备注:">
305
-                    <div style="display:flex;">
306
-                        <el-input v-model="form.remark"  style="width:200px"></el-input>
307
-                    </div>
308
-                </el-form-item>
309
-              </el-col>  
310
-            </el-row> -->
311
           </el-form>
314
           </el-form>
312
         </span>
315
         </span>
313
         <span slot="footer" class="dialog-footer">
316
         <span slot="footer" class="dialog-footer">
379
                         placeholder="请输入耗材名称"
382
                         placeholder="请输入耗材名称"
380
                         @select="handleSelect"
383
                         @select="handleSelect"
381
                         @input="changeGoodName(scope.$index)"
384
                         @input="changeGoodName(scope.$index)"
382
-                        :disabled="true"
383
                         style="width:160px;"
385
                         style="width:160px;"
384
                     >
386
                     >
385
                         <i class="el-icon-search el-input__icon" slot="suffix"></i>
387
                         <i class="el-icon-search el-input__icon" slot="suffix"></i>
388
                     </template>
390
                     </template>
389
                     </el-autocomplete>
391
                     </el-autocomplete>
390
                 </el-form-item>
392
                 </el-form-item>
393
+               <el-form-item label="规格:">
394
+                 <el-input v-model="form.specification_name" style="width:200px" :disabled="true"></el-input>
395
+               </el-form-item>
391
                <el-form-item label="原价格:">
396
                <el-form-item label="原价格:">
392
-                 <el-input v-model="form.packing_price" style="width:200px"></el-input>
397
+                 <el-input v-model="form.packing_price" style="width:200px" :disabled="true"></el-input>
393
                </el-form-item>
398
                </el-form-item>
394
                <el-form-item label="现价格:">
399
                <el-form-item label="现价格:">
395
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
400
                     <el-input v-model="form.new_price" style="width:200px"></el-input>
396
                 </el-form-item>
401
                 </el-form-item>
402
+               <el-form-item label="生产商">
403
+                 <el-input v-model="form.manufacturer" style="width:200px" :disabled="true"></el-input>
404
+               </el-form-item>
405
+              <el-form-item label="供应商">
406
+                 <el-input v-model="form.dealer" style="width:200px" :disabled="true"></el-input>
407
+               </el-form-item>
397
                 <el-form-item label="备注:">
408
                 <el-form-item label="备注:">
398
                     <el-input v-model="form.remark" style="width:200px"></el-input>
409
                     <el-input v-model="form.remark" style="width:200px"></el-input>
399
                 </el-form-item>
410
                 </el-form-item>
534
           }else{
545
           }else{
535
             this.form.dealer = val.dealer
546
             this.form.dealer = val.dealer
536
           }
547
           }
537
-          if(this.form.manufacturer == 0){
538
-            this.form.manufacturer = ""
539
-          }else{
540
-            this.form.manufacturer = val.manufacturer
541
-          }
548
+          // if(this.form.manufacturer == 0){
549
+          //   this.form.manufacturer = ""
550
+          // }else{
551
+          //   this.form.manufacturer = val.manufacturer
552
+          // }
553
+          this.form.manufacturer = val.manufacturer
542
           this.form.specification_name = val.specification_name
554
           this.form.specification_name = val.specification_name
543
           this.form.remark = val.remark
555
           this.form.remark = val.remark
544
           this.form.buy_price = val.buy_price
556
           this.form.buy_price = val.buy_price
546
          
558
          
547
       },
559
       },
548
       addPrice(){
560
       addPrice(){
561
+        if(this.form.new_price == ""){
562
+           this.$message.error("请输入现价格")
563
+           return
564
+        }
549
         var obj = {
565
         var obj = {
550
          id:this.form.id,
566
          id:this.form.id,
551
          good_name:this.form.good_name,
567
          good_name:this.form.good_name,
601
       this.form.count = row.count
617
       this.form.count = row.count
602
       this.form.remark = row.remark
618
       this.form.remark = row.remark
603
       this.form.id = row.id
619
       this.form.id = row.id
620
+      this.form.specification_name = row.specification_name
621
+      this.form.manufacturer = row.manufacturer
622
+      this.form.dealer = row.dealer
604
       this.editPriceDialogVisible = true  
623
       this.editPriceDialogVisible = true  
605
      },
624
      },
606
      upatePrice(){
625
      upatePrice(){
626
+       if(this.form.new_price == ""){
627
+          this.$message.error("请输入现价格")
628
+          return false
629
+       }
607
        for(let i=0;i<this.tableData.length;i++){
630
        for(let i=0;i<this.tableData.length;i++){
608
          if(this.form.id == this.tableData[i].id){
631
          if(this.form.id == this.tableData[i].id){
609
             this.tableData[i].good_name = this.form.good_name
632
             this.tableData[i].good_name = this.form.good_name
769
            }else{
792
            }else{
770
              this.form.new_price = info.new_price
793
              this.form.new_price = info.new_price
771
            }
794
            }
772
-          
795
+           this.form.specification_name = info.specification_name
773
            this.form.packing_price = info.packing_price
796
            this.form.packing_price = info.packing_price
774
            this.form.remark = info.remark
797
            this.form.remark = info.remark
798
+           this.form.manufacturer = info.manufacturer
799
+           this.form.dealer = info.dealer
775
            this.modifyDialogVisible = true
800
            this.modifyDialogVisible = true
776
          }
801
          }
777
        })
802
        })
778
      },
803
      },
779
      updateStockPrice(){
804
      updateStockPrice(){
805
+         if(this.form.new_price == ""){
806
+           this.$message.error("请输入现价格")
807
+           return
808
+         }
780
          var params = {
809
          var params = {
810
+
781
            new_price:this.form.new_price.toString(),
811
            new_price:this.form.new_price.toString(),
782
            id:this.id,
812
            id:this.id,
783
            packing_price:this.form.packing_price.toString(),
813
            packing_price:this.form.packing_price.toString(),
784
            remark:this.form.remark,
814
            remark:this.form.remark,
785
            good_id:this.form.good_id,
815
            good_id:this.form.good_id,
786
            good_name:this.form.good_name,
816
            good_name:this.form.good_name,
817
+           manufacturer:this.form.manufacturer,
818
+           dealer:this.form.dealer,
787
          }
819
          }
788
          console.log("params",params)
820
          console.log("params",params)
789
        updateStockPrice(params).then(response=>{
821
        updateStockPrice(params).then(response=>{
808
           let params = {
840
           let params = {
809
             id:id,
841
             id:id,
810
           }
842
           }
843
+          console.log("id23232322332233223",id)
811
           deleteStockPrice(params).then(response => {
844
           deleteStockPrice(params).then(response => {
812
             if (response.data.state == 1) {
845
             if (response.data.state == 1) {
813
               var msg = response.data.data.msg
846
               var msg = response.data.data.msg
818
         }).catch(() => {
851
         }).catch(() => {
819
           this.loading = false
852
           this.loading = false
820
         });
853
         });
854
+     },
855
+     changeStartTime(val){
856
+       this.start_time = this.getTime(val)
857
+       this.getAllStockPrice()
858
+     },
859
+     changeEndTime(val){
860
+       this.end_time = this.getTime(val)
861
+       this.getAllStockPrice()
821
      }
862
      }
822
     },
863
     },
823
     created(){
864
     created(){

+ 1 - 0
src/xt_pages/user/courseOfDisease.vue 查看文件

330
 
330
 
331
       createAction: function() {
331
       createAction: function() {
332
         this.new_content = this.$refs.editor.content
332
         this.new_content = this.$refs.editor.content
333
+        console.log("hhhhh2h3h232323232",this.new_content)
333
         if (this.new_content.length == 0) {
334
         if (this.new_content.length == 0) {
334
           this.$message.error('请填写病程内容')
335
           this.$message.error('请填写病程内容')
335
           return
336
           return

+ 16 - 0
src/xt_pages/user/dialysisSolution.vue 查看文件

1063
         this.addPlan.dialysis_duration,
1063
         this.addPlan.dialysis_duration,
1064
         this.addPlan.anticoagulant_weichi
1064
         this.addPlan.anticoagulant_weichi
1065
       )
1065
       )
1066
+
1067
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1068
+         this.addPlan.anticoagulant_zongliang = ""
1069
+         this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1070
+      }
1071
+      
1066
     },
1072
     },
1067
     'addPlan.anticoagulant_weichi': function() {
1073
     'addPlan.anticoagulant_weichi': function() {
1068
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1074
       this.addPlan.anticoagulant_zongliang = calculateAnticoagulantZL(
1071
         this.addPlan.dialysis_duration,
1077
         this.addPlan.dialysis_duration,
1072
         this.addPlan.anticoagulant_weichi
1078
         this.addPlan.anticoagulant_weichi
1073
       )
1079
       )
1080
+
1081
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1082
+         this.addPlan.anticoagulant_zongliang = ""
1083
+         this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1084
+      }
1074
     }
1085
     }
1075
   },
1086
   },
1076
 
1087
 
1917
         return false
1928
         return false
1918
       }
1929
       }
1919
       this.anticoagulant = this.anticoagulantsConfit[thismode]
1930
       this.anticoagulant = this.anticoagulantsConfit[thismode]
1931
+
1932
+      if(this.$store.getters.xt_user.template_info.template_id == 41 && this.addPlan.anticoagulant == 2 ){
1933
+         this.addPlan.anticoagulant_zongliang = ""
1934
+         this.addPlan.anticoagulant_zongliang = parseInt(this.addPlan.anticoagulant_shouji) + parseInt(this.addPlan.anticoagulant_weichi)
1935
+      }
1920
     },
1936
     },
1921
 
1937
 
1922
     addPlanModeChange() {
1938
     addPlanModeChange() {

+ 83 - 17
src/xt_pages/user/templateSummary.vue 查看文件

60
             <el-col :span="14">
60
             <el-col :span="14">
61
               <div class="record_content_panel">
61
               <div class="record_content_panel">
62
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
62
                 <div style="background-color:rgb(245, 247, 250)" class="title">阶段小结内容</div>
63
-                <div style="padding:10px;border-bottom:1px solid #DCDFE6;"><span v-if="editObj.record_time!=''">阶段小结时间:{{getTime(editObj.record_time)}}</span></div>
63
+                <div style="padding:10px;border-bottom:1px solid #DCDFE6;">阶段小结时间:<span v-if="editObj.record_time!=''">{{getTime(editObj.record_time)}}</span></div>
64
                 <!-- <div style="padding: 10px 10px 0;">阶段小结概要:</div>
64
                 <!-- <div style="padding: 10px 10px 0;">阶段小结概要:</div>
65
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
65
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;">
66
                   <span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
66
                   <span style="margin-right:10px;line-height:30px;">干体重(kg):{{editObj.dry_weight}}</span>
87
                   <span style="margin-right:10px;line-height:30px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
87
                   <span style="margin-right:10px;line-height:30px;">透后血压(mmHg):{{editObj.after_pressure}}</span>
88
                 </div> -->
88
                 </div> -->
89
                  <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
89
                  <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结总结:
90
-                   {{editObj.template_summary_content}}
90
+                   <span v-html="editObj.template_summary_content"></span>
91
                  </div>
91
                  </div>
92
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
92
                 <div style="padding:10px;border-bottom:1px solid #DCDFE6;line-height:20px;">阶段小结化验结果:
93
                   <div>
93
                   <div>
109
                   </div>
109
                   </div>
110
                 </div>
110
                 </div>
111
 
111
 
112
-                <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:{{editObj.template_plan_content}}</div>
112
+                <div style="padding:10px;line-height:20px;">阶段小结个体化透析方案:
113
+                  <!-- {{editObj.template_plan_content}} -->
114
+                  <span v-html="editObj.template_plan_content"></span>
115
+                </div>
113
               </div>
116
               </div>
114
             </el-col>
117
             </el-col>
115
           </el-row>
118
           </el-row>
303
                         :value="item.value">
306
                         :value="item.value">
304
                         </el-option>
307
                         </el-option>
305
                      </el-select>
308
                      </el-select>
306
-                     <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input>
309
+                     <keep-alive>
310
+                        <editor ref="edit_neditor"
311
+                                id="edit_editor1"
312
+                                style="width: 800px"
313
+                                v-bind:r_content="form.template_summary_content">
314
+                        </editor>
315
+                    </keep-alive>
316
+                     <!-- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input> -->
307
                   </el-row>
317
                   </el-row>
308
                   <el-row>
318
                   <el-row>
309
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
319
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
315
                         :value="item.value">
325
                         :value="item.value">
316
                         </el-option>
326
                         </el-option>
317
                      </el-select>
327
                      </el-select>
318
-                     <el-input style="margin:10px 0;" type="textarea"  autosize v-model="form.template_plan_content"></el-input>
328
+                     <keep-alive>
329
+                        <editor ref="edit_neditorOne"
330
+                                id="edit_editor"
331
+                                style="width: 800px"
332
+                                v-bind:r_content="form.template_plan_content">
333
+                        </editor>
334
+                    </keep-alive>
335
+                     <!-- <el-input style="margin:10px 0;" type="textarea"  autosize v-model="form.template_plan_content"></el-input> -->
319
                   </el-row>
336
                   </el-row>
320
                   <el-row>
337
                   <el-row>
321
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
338
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
561
                         :value="item.value">
578
                         :value="item.value">
562
                         </el-option>
579
                         </el-option>
563
                      </el-select>
580
                      </el-select>
564
-                     <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input>
581
+                      <keep-alive>
582
+                        <editor ref="editor"
583
+                                id="edit_editor1"
584
+                                style="width: 800px"
585
+                                v-bind:r_content="form.template_summary_content">
586
+                        </editor>
587
+                    </keep-alive>
588
+                     <!-- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_summary_content"></el-input> -->
565
                   </el-row>
589
                   </el-row>
566
                   <el-row>
590
                   <el-row>
567
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
591
                     <label class="title"><span class="name">阶段小结个体化透析方案</span> : </label>
573
                         :value="item.value">
597
                         :value="item.value">
574
                         </el-option>
598
                         </el-option>
575
                      </el-select>
599
                      </el-select>
576
-                     <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_plan_content"></el-input>
600
+                      <keep-alive>
601
+                        <editor ref="editorOne"
602
+                                id="edit_editor"
603
+                                style="width: 800px"
604
+                                v-bind:r_content="form.template_plan_content">
605
+                        </editor>
606
+                    </keep-alive>
607
+                     <!-- <el-input style="margin:10px 0;" type="textarea" autosize v-model="form.template_plan_content"></el-input> -->
577
                   </el-row>
608
                   </el-row>
578
                   <el-row>
609
                   <el-row>
579
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
610
                     <label class="title"><span class="name">阶段小结化验结果</span> : </label>
850
           template_summary_id:"",
881
           template_summary_id:"",
851
           template_summary_content:"",
882
           template_summary_content:"",
852
           template_plan_id:"",
883
           template_plan_id:"",
853
-          template_summary_content:"",
854
           template_inspection_id:0,
884
           template_inspection_id:0,
855
           template_inspection_content:"",
885
           template_inspection_content:"",
856
           admin_user_id:this.$store.getters.xt_user.user.id,
886
           admin_user_id:this.$store.getters.xt_user.user.id,
960
     },
990
     },
961
     methods: {
991
     methods: {
962
       getTime(val) {
992
       getTime(val) {
963
-         if(val == ""){
993
+         console.log("val2322332322323223",val)
994
+         if(val == "" || val == undefined){
964
           return ""
995
           return ""
965
          }else {
996
          }else {
966
           return uParseTime(val, '{y}-{m}-{d}')
997
           return uParseTime(val, '{y}-{m}-{d}')
1042
           start_time:this.start_date,
1073
           start_time:this.start_date,
1043
           end_time:this.end_date,
1074
           end_time:this.end_date,
1044
         }
1075
         }
1045
-        console.log("世纪时间",params)
1076
+        // console.log("世纪时间",params)
1046
         console.log(moment(moment(2020 + '-01-01').toDate()).quarter(2).format("YYYY-MM-DD"))
1077
         console.log(moment(moment(2020 + '-01-01').toDate()).quarter(2).format("YYYY-MM-DD"))
1047
         getInitDataList(params).then(response=>{
1078
         getInitDataList(params).then(response=>{
1048
           if(response.data.state == 1){
1079
           if(response.data.state == 1){
1253
         if(this.form.befor_pressure == ""){
1284
         if(this.form.befor_pressure == ""){
1254
           this.form.befor_pressure = 0
1285
           this.form.befor_pressure = 0
1255
         }
1286
         }
1287
+        if(this.form.template_plan_id == ""){
1288
+          this.form.template_plan_id = 0
1289
+        }
1290
+        if(this.form.template_summary_id == ""){
1291
+          this.form.template_summary_id = 0
1292
+        }
1256
         var year = this.form.start_year+"-"+"01"+"-"+"01"
1293
         var year = this.form.start_year+"-"+"01"+"-"+"01"
1257
         console.log("年",year)
1294
         console.log("年",year)
1258
         var month = this.form.start_year+"-"+this.form.start_month+"-"+"01"
1295
         var month = this.form.start_year+"-"+this.form.start_month+"-"+"01"
1259
-        console.log("月",month)
1296
+        console.log("月",this.$refs)
1297
+        console.log("hhhhhh",this.$refs.edit_neditor.content)
1298
+        console.log("ooooo",this.$refs.edit_neditorOne.content)
1299
+
1260
          var params = {
1300
          var params = {
1261
             title:this.form.title,
1301
             title:this.form.title,
1262
             dry_weight:this.form.dry_weight.toString(),
1302
             dry_weight:this.form.dry_weight.toString(),
1276
             befor_weight:this.form.befor_weight.toString(),
1316
             befor_weight:this.form.befor_weight.toString(),
1277
             after_weight:this.form.after_weight.toString(),
1317
             after_weight:this.form.after_weight.toString(),
1278
             befor_pressure:this.form.befor_pressure,
1318
             befor_pressure:this.form.befor_pressure,
1279
-            template_summary_content:this.form.template_summary_content,
1280
-            template_plan_content:this.form.template_plan_content,
1319
+            // template_plan_content:this.form.template_plan_content,
1320
+            template_plan_content:this.$refs.edit_neditor.content,
1281
             // template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1321
             // template_inspection_content:JSON.stringify(this.form.template_inspection_content),
1282
             admin_user_id:this.form.admin_user_id,
1322
             admin_user_id:this.form.admin_user_id,
1283
             record_time:this.form.record_time,
1323
             record_time:this.form.record_time,
1284
             after_pressure:this.form.after_pressure,
1324
             after_pressure:this.form.after_pressure,
1285
             template_summary_id:this.form.template_summary_id,
1325
             template_summary_id:this.form.template_summary_id,
1286
-            template_summary_content:this.form.template_summary_content,
1326
+            // template_summary_content:this.form.template_summary_content,
1327
+            template_summary_content:this.$refs.edit_neditorOne.content,
1287
             template_plan_id:this.form.template_plan_id,
1328
             template_plan_id:this.form.template_plan_id,
1288
             template_inspection_id:this.form.template_inspection_id,
1329
             template_inspection_id:this.form.template_inspection_id,
1289
             patient_id:parseInt(this.patient_id),
1330
             patient_id:parseInt(this.patient_id),
1292
             start_year:year,
1333
             start_year:year,
1293
             start_month:month,
1334
             start_month:month,
1294
             radio:this.form.radio,
1335
             radio:this.form.radio,
1336
+
1295
          }
1337
          }
1296
           console.log("parawm232323223",params)
1338
           console.log("parawm232323223",params)
1297
 
1339
 
1342
               var list = response.data.data.list
1384
               var list = response.data.data.list
1343
               this.inspectionList = list
1385
               this.inspectionList = list
1344
               this.$refs.inspection_table.setCurrentRow(this.inspectionList[0])
1386
               this.$refs.inspection_table.setCurrentRow(this.inspectionList[0])
1345
-              this.getCurrentRecordDetail(this.inspectionList[0].id)
1387
+              if (list.length > 0) {
1388
+               this.getCurrentRecordDetail(this.inspectionList[0].id)
1389
+              }
1390
+
1346
            }
1391
            }
1347
         })
1392
         })
1348
       },
1393
       },
1454
                this.form.minute = list.minute
1499
                this.form.minute = list.minute
1455
                this.form.natrium =list.natrium
1500
                this.form.natrium =list.natrium
1456
                this.form.perfusion_apparatus= list.perfusion_apparatus
1501
                this.form.perfusion_apparatus= list.perfusion_apparatus
1502
+               this.form.other_count = list.other_count
1457
                this.form.record_time = this.getTimeTwo(list.record_time)
1503
                this.form.record_time = this.getTimeTwo(list.record_time)
1458
                console.log("时间232233232",list.record_time)
1504
                console.log("时间232233232",list.record_time)
1459
                if(list.template_inspection_id == 0){
1505
                if(list.template_inspection_id == 0){
1504
        }
1550
        }
1505
       },
1551
       },
1506
       editCreation(){
1552
       editCreation(){
1553
+        if(this.form.template_summary_id == ""){
1554
+           this.form.template_summary_id = 0
1555
+        }
1556
+        if(this.form.template_inspection_id == ""){
1557
+           this.form.template_inspection_id = 0
1558
+        }
1559
+        if(this.form.template_plan_id == ""){
1560
+           this.form.template_plan_id = 0
1561
+        }
1562
+        if(this.dialysis_count == ""){
1563
+            this.dialysis_count = 0
1564
+        }
1507
         var params = {
1565
         var params = {
1508
             id:this.form.id,
1566
             id:this.form.id,
1509
             title:this.form.title,
1567
             title:this.form.title,
1524
             befor_weight:this.form.befor_weight.toString(),
1582
             befor_weight:this.form.befor_weight.toString(),
1525
             after_weight:this.form.after_weight.toString(),
1583
             after_weight:this.form.after_weight.toString(),
1526
             befor_pressure:this.form.befor_pressure,
1584
             befor_pressure:this.form.befor_pressure,
1527
-            template_summary_content:this.form.template_summary_content,
1528
-            template_plan_content:this.form.template_plan_content,
1585
+            // template_summary_content:this.form.template_summary_content,
1586
+            // template_plan_content:this.form.template_plan_content,
1587
+            template_plan_content:this.$refs.editor.content,
1588
+            template_summary_content:this.$refs.editorOne.content,
1529
             admin_user_id:this.form.admin_user_id,
1589
             admin_user_id:this.form.admin_user_id,
1530
             record_time:this.form.record_time,
1590
             record_time:this.form.record_time,
1531
             after_pressure:this.form.after_pressure,
1591
             after_pressure:this.form.after_pressure,
1714
         console.log("val2323323223",val)
1774
         console.log("val2323323223",val)
1715
         if(val == "2021-02"){
1775
         if(val == "2021-02"){
1716
           this.startYear = val+"-" + "28"
1776
           this.startYear = val+"-" + "28"
1777
+        }else if(val == "2021-08"){
1778
+          this.startYear = val+"-" + "31"
1779
+        }else if(val == "2021-10"){
1780
+          this.startYear = val+"-" + "31"
1781
+        }else if(val == "2021-12"){
1782
+          this.startYear = val+"-" + "31"
1717
         }else{
1783
         }else{
1718
           this.startYear = val+"-" + "30"
1784
           this.startYear = val+"-" + "30"
1719
         }
1785
         }

+ 6 - 2
src/xt_pages/user/templateSummaryPrint.vue 查看文件

47
         </div>
47
         </div>
48
       </div> -->
48
       </div> -->
49
       <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
49
       <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
50
-        <span style="font-weight:bold;">阶段小结总结:</span><div style="line-height:24px;">{{patientList.template_summary_content}}</div>  
50
+        <span style="font-weight:bold;">阶段小结总结:</span><div style="line-height:24px;">
51
+          <!-- {{patientList.template_summary_content}} -->
52
+          <div v-html="patientList.template_summary_content"></div>
53
+        </div>  
51
       </div>
54
       </div>
52
      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:250px;">
55
      <div style="padding:20px 0;border-bottom:1px solid #000;min-height:250px;">
53
         <span style="font-weight:bold;">阶段小结化验结果:</span>
56
         <span style="font-weight:bold;">阶段小结化验结果:</span>
71
       </div>
74
       </div>
72
       <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
75
       <div style="padding:20px 0;border-bottom:1px solid #000;min-height:200px;">
73
         <span style="font-weight:bold;">阶段小结个性化方案:</span>
76
         <span style="font-weight:bold;">阶段小结个性化方案:</span>
74
-        <div style="line-height:24px;">{{patientList.template_plan_content}}</div>
77
+        <!-- <div style="line-height:24px;">{{patientList.template_plan_content}}</div> -->
78
+         <div v-html="patientList.template_plan_content"></div>
75
       </div>
79
       </div>
76
      <div style="margin-top:10px;">
80
      <div style="margin-top:10px;">
77
        <span>记录医生:{{getPatientList(patientList.admin_user_id)}}</span>  
81
        <span>记录医生:{{getPatientList(patientList.admin_user_id)}}</span>