Ver código fonte

11月14日 库存扣减更新

XMLWAN 3 anos atrás
pai
commit
94eda78dd8

+ 11 - 0
src/router/modules/dialysis.js Ver arquivo

122
         noCache: true
122
         noCache: true
123
       }
123
       }
124
     },
124
     },
125
+    {
126
+      path: '/dialysis/allsummarydialog_print',
127
+      component: () => import('@/xt_pages/dialysis/allSummaryDialog_print'),
128
+      hidden: true,
129
+      is_menu: false,
130
+      name: 'allSummaryDialog_print',
131
+      meta: {
132
+        title: 'allSummaryDialog_print',
133
+        noCache: true
134
+      }
135
+    },
125
     {
136
     {
126
       path: '/dialysis/record/:id',
137
       path: '/dialysis/record/:id',
127
       component: () => import('@/xt_pages/dialysis/dialysisPage'),
138
       component: () => import('@/xt_pages/dialysis/dialysisPage'),

+ 24 - 46
src/xt_pages/data/components/addInspection.vue Ver arquivo

158
           //   pinyin: [{ required: true, message: '请填写拼音' , trigger: 'blur' }],
158
           //   pinyin: [{ required: true, message: '请填写拼音' , trigger: 'blur' }],
159
           //   wubi: [{ required: true, message: '请填写五笔' , trigger: 'blur' }],
159
           //   wubi: [{ required: true, message: '请填写五笔' , trigger: 'blur' }],
160
           price: [{ required: true, message: '请填写价格', trigger: 'change' }],
160
           price: [{ required: true, message: '请填写价格', trigger: 'change' }],
161
-          team_type: [{ required: true, message: '请填写组套类型', trigger: 'change' }]
161
+          //team_type: [{ required: true, message: '请填写组套类型', trigger: 'change' }]
162
         },
162
         },
163
         tableData: [],
163
         tableData: [],
164
         projectList: [],
164
         projectList: [],
232
           saveTeam(data, params).then(response => {
232
           saveTeam(data, params).then(response => {
233
             if (response.data.state == 1) {
233
             if (response.data.state == 1) {
234
               var projectTeam = response.data.data.projectTeam
234
               var projectTeam = response.data.data.projectTeam
235
-              console.log('projectTeam', projectTeam)
235
+              // console.log('projectTeam', projectTeam)
236
               this.$message.success('保存成功')
236
               this.$message.success('保存成功')
237
               this.visible = false
237
               this.visible = false
238
               this.form.project_team = '',
238
               this.form.project_team = '',
239
-                this.form.price = '',
240
-                this.form.pinyin = '',
241
-                this.form.wubi = '',
242
-                this.form.tube_color = '',
243
-                this.form.team_type = '',
244
-                this.form.remark = ''
239
+              this.form.price = '',
240
+              this.form.pinyin = '',
241
+              this.form.wubi = '',
242
+              this.form.tube_color = '',
243
+              this.form.team_type = '',
244
+              this.form.remark = ''
245
               this.tableData = []
245
               this.tableData = []
246
               this.form.number = ''
246
               this.form.number = ''
247
               this.$parent.getlist()
247
               this.$parent.getlist()
254
       getlist() {
254
       getlist() {
255
         let params = {
255
         let params = {
256
           keyword: ''
256
           keyword: ''
257
-
258
         }
257
         }
259
         getAllProjectList(params).then(response => {
258
         getAllProjectList(params).then(response => {
260
           if (response.data.state == 1) {
259
           if (response.data.state == 1) {
261
             var projectList = response.data.data.projectList
260
             var projectList = response.data.data.projectList
262
             var goodInfos = response.data.data.good_info
261
             var goodInfos = response.data.data.good_info
263
-
262
+            
264
             for (let i = 0; i < projectList.length; i++) {
263
             for (let i = 0; i < projectList.length; i++) {
264
+
265
               let obj = {
265
               let obj = {
266
                 id: projectList[i].id,
266
                 id: projectList[i].id,
267
                 statistical_classification: projectList[i].statistical_classification,
267
                 statistical_classification: projectList[i].statistical_classification,
270
                 unit: projectList[i].unit,
270
                 unit: projectList[i].unit,
271
                 price: projectList[i].price,
271
                 price: projectList[i].price,
272
                 type: 2,
272
                 type: 2,
273
-                new_id: Math.floor((Math.random() + Math.floor(Math.random() * 9 + 1)) * Math.pow(10, 10 - 1))
273
+                new_id: Math.floor((Math.random() + Math.floor(Math.random() * 9 + 1)) * Math.pow(10, 10 - 1)),
274
               }
274
               }
275
               this.projectList.push(obj)
275
               this.projectList.push(obj)
276
-
276
+             
277
             }
277
             }
278
 
278
 
279
             for (let i = 0; i < goodInfos.length; i++) {
279
             for (let i = 0; i < goodInfos.length; i++) {
281
                 id: goodInfos[i].id,
281
                 id: goodInfos[i].id,
282
                 statistical_classification: goodInfos[i].statistical_classification,
282
                 statistical_classification: goodInfos[i].statistical_classification,
283
                 number: '1',
283
                 number: '1',
284
-                project_name: goodInfos[i].good_name,
284
+                project_name: goodInfos[i].good_name + " " + goodInfos[i].specification_name,
285
                 unit: goodInfos[i].good_unit,
285
                 unit: goodInfos[i].good_unit,
286
                 price: goodInfos[i].retail_price,
286
                 price: goodInfos[i].retail_price,
287
                 type: 3,
287
                 type: 3,
288
-                new_id: Math.floor((Math.random() + Math.floor(Math.random() * 9 + 1)) * Math.pow(10, 10 - 1))
289
-
288
+                new_id: Math.floor((Math.random() + Math.floor(Math.random() * 9 + 1)) * Math.pow(10, 10 - 1)),
290
               }
289
               }
291
               this.projectList.push(obj)
290
               this.projectList.push(obj)
291
+              
292
             }
292
             }
293
 
293
 
294
-            console.log(this.projectList)
294
+            console.log("项目2323332",this.projectList)
295
 
295
 
296
-            // this.projectList = projectList
297
-            //    var hisprojectlist = response.data.data.hisprojectlist
298
-            //    console.log("hisprojectlist",hisprojectlist)
299
-            //    this.tableData = hisprojectlist
300
           }
296
           }
301
         })
297
         })
302
       },
298
       },
304
       getId(id) {
300
       getId(id) {
305
         var name = ''
301
         var name = ''
306
         var statistics_category = getDictionaryDataConfig('system', 'statistics_category')
302
         var statistics_category = getDictionaryDataConfig('system', 'statistics_category')
307
-        console.log('2235', statistics_category)
303
+       
308
         for (let i = 0; i < statistics_category.length; i++) {
304
         for (let i = 0; i < statistics_category.length; i++) {
309
           if (id == statistics_category[i].id) {
305
           if (id == statistics_category[i].id) {
310
             name = statistics_category[i].name
306
             name = statistics_category[i].name
316
         getProjectDetail(id).then(response => {
312
         getProjectDetail(id).then(response => {
317
           if (response.data.state == 1) {
313
           if (response.data.state == 1) {
318
             var projectdetail = response.data.data.projecDetail
314
             var projectdetail = response.data.data.projecDetail
319
-            console.log('projectdetail', projectdetail)
315
+        
320
             this.tableData.push(projectdetail)
316
             this.tableData.push(projectdetail)
321
           }
317
           }
322
         })
318
         })
323
       },
319
       },
324
       addProjectList() {
320
       addProjectList() {
325
-        console.log(this.projectList)
321
+        
326
         for (let i = 0; i < this.projectList.length; i++) {
322
         for (let i = 0; i < this.projectList.length; i++) {
327
           if (this.form.project_detail == this.projectList[i].new_id) {
323
           if (this.form.project_detail == this.projectList[i].new_id) {
328
             this.projectList[i].number = this.form.number
324
             this.projectList[i].number = this.form.number
329
             this.projectList[i].number = this.projectList[i].number.toString()
325
             this.projectList[i].number = this.projectList[i].number.toString()
326
+            
330
             this.tableData.push(this.projectList[i])
327
             this.tableData.push(this.projectList[i])
331
             this.form.project_detail = ''
328
             this.form.project_detail = ''
332
             this.form.number = 1
329
             this.form.number = 1
333
           }
330
           }
334
         }
331
         }
335
-        // console.log("33333",this.tableData)
336
-        //
337
-        //
338
-        //    const params = {
339
-        //      id:this.form.project_detail,
340
-        //      number:parseInt(this.form.number)
341
-        //    }
342
-        //   console.log("params",params)
343
-        //  addProjectList(params).then(response=>{
344
-        //     if(response.data.state == 1){
345
-        //       var projectList = response.data.data.projectList
346
-        //       var item = response.data.data.item
347
-        //       console.log("item22222",item)
348
-        //       this.itemList.push(item.id)
349
-        //       this.$message.success("保存成功")
350
-        //       this.form.project_detail = ""
351
-        //       this.form.number = ""
352
-        //    //    this.getlist()
353
-        //     }
354
-        //  })
332
+       
355
       },
333
       },
356
       DeleteProject(id, index) {
334
       DeleteProject(id, index) {
357
         this.$confirm('确认删除此项目吗?', '删除', {
335
         this.$confirm('确认删除此项目吗?', '删除', {
363
         })
341
         })
364
           .catch(() => {
342
           .catch(() => {
365
           })
343
           })
366
-      }
344
+      },
345
+     
367
     },
346
     },
368
     created() {
347
     created() {
369
       //获取所以的项目
348
       //获取所以的项目
376
         for (let i = 0; i < this.tableData.length; i++) {
355
         for (let i = 0; i < this.tableData.length; i++) {
377
           let a = parseFloat(this.tableData[i].number).toFixed(2)
356
           let a = parseFloat(this.tableData[i].number).toFixed(2)
378
           let b = parseFloat(this.tableData[i].price).toFixed(2)
357
           let b = parseFloat(this.tableData[i].price).toFixed(2)
379
-          console.log(a)
380
-          console.log(b)
358
+         
381
 
359
 
382
 
360
 
383
           c = c + this.form.price + (a * b)
361
           c = c + this.form.price + (a * b)

+ 1 - 1
src/xt_pages/data/components/consumables.vue Ver arquivo

7
         <el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search"
7
         <el-button style="margin-right:10px;" class="filter-item" type="primary" icon="el-icon-search"
8
                    @click="searchAction">搜索
8
                    @click="searchAction">搜索
9
         </el-button>
9
         </el-button>
10
-        <label class="title"><span class="name">是否用</span> : </label>
10
+        <label class="title"><span class="name">是否用</span> : </label>
11
         <el-select v-model="is_use" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeUser">
11
         <el-select v-model="is_use" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeUser">
12
           <el-option
12
           <el-option
13
             v-for="(item,z) in options"
13
             v-for="(item,z) in options"

+ 8 - 11
src/xt_pages/data/components/editInspection.vue Ver arquivo

161
           //   pinyin: [{ required: true, message: '请填写拼音' , trigger: 'blur' }],
161
           //   pinyin: [{ required: true, message: '请填写拼音' , trigger: 'blur' }],
162
           //   wubi: [{ required: true, message: '请填写五笔' , trigger: 'blur' }],
162
           //   wubi: [{ required: true, message: '请填写五笔' , trigger: 'blur' }],
163
           price: [{ required: true, message: '请填写价格', trigger: 'change' }],
163
           price: [{ required: true, message: '请填写价格', trigger: 'change' }],
164
-          team_type: [{ required: true, message: '请填写组套类型', trigger: 'change' }]
164
+          //team_type: [{ required: true, message: '请填写组套类型', trigger: 'change' }]
165
         },
165
         },
166
         tableData: [],
166
         tableData: [],
167
         item_id: [],
167
         item_id: [],
200
         this.formTitle = '编辑'
200
         this.formTitle = '编辑'
201
         this.getlist(id)
201
         this.getlist(id)
202
         this.getProjectTeamDetail(id)
202
         this.getProjectTeamDetail(id)
203
-
204
-      }, getlist(id) {
203
+        this.projectList = []
204
+      }, 
205
+      getlist(id) {
205
 
206
 
206
         getAllProjectList().then(response => {
207
         getAllProjectList().then(response => {
207
           if (response.data.state == 1) {
208
           if (response.data.state == 1) {
208
-            console.log(id)
209
-            console.log('!~~~~')
210
-
209
+         
211
             var projectList = response.data.data.projectList
210
             var projectList = response.data.data.projectList
212
             var goodInfos = response.data.data.good_info
211
             var goodInfos = response.data.data.good_info
213
 
212
 
233
                 id: goodInfos[i].id,
232
                 id: goodInfos[i].id,
234
                 statistical_classification: goodInfos[i].statistical_classification,
233
                 statistical_classification: goodInfos[i].statistical_classification,
235
                 number: '1',
234
                 number: '1',
236
-                project_name: goodInfos[i].good_name,
235
+                project_name:goodInfos[i].good_name + " " + goodInfos[i].specification_name,
237
                 unit: goodInfos[i].good_unit,
236
                 unit: goodInfos[i].good_unit,
238
                 price: goodInfos[i].retail_price,
237
                 price: goodInfos[i].retail_price,
239
                 type: 3,
238
                 type: 3,
244
               }
243
               }
245
               this.projectList.push(obj)
244
               this.projectList.push(obj)
246
             }
245
             }
247
-
246
+             console.log("编辑项目23332232323",this.projectList)
248
           }
247
           }
249
         })
248
         })
250
       },
249
       },
259
             var projectTeamDetail = response.data.data.projectTeamDetail
258
             var projectTeamDetail = response.data.data.projectTeamDetail
260
             var hisList = response.data.data.hisList
259
             var hisList = response.data.data.hisList
261
 
260
 
262
-            console.log(this.projectList)
263
-            console.log(hisList)
264
-
265
             for (let i = 0; i < hisList.length; i++) {
261
             for (let i = 0; i < hisList.length; i++) {
266
 
262
 
267
               let obj = {
263
               let obj = {
330
                 // var projectTeam = response.data.data.projectTeam
326
                 // var projectTeam = response.data.data.projectTeam
331
                 this.$message.success('保存成功')
327
                 this.$message.success('保存成功')
332
                 this.visible = false
328
                 this.visible = false
329
+                this.projectList = []
333
                 // this.$parent.getlist()
330
                 // this.$parent.getlist()
334
               }
331
               }
335
             })
332
             })

+ 1 - 1
src/xt_pages/data/components/inspection.vue Ver arquivo

139
           getProjectTeamList(params).then(response=>{
139
           getProjectTeamList(params).then(response=>{
140
              if(response.data.state == 1){
140
              if(response.data.state == 1){
141
                var projectTeamList =  response.data.data.projectTeamList
141
                var projectTeamList =  response.data.data.projectTeamList
142
-               console.log("projectteamlist",projectTeamList)
142
+            //    console.log("projectteamlist",projectTeamList)
143
                
143
                
144
                this.tableData = projectTeamList
144
                this.tableData = projectTeamList
145
                var total  =  response.data.data.total
145
                var total  =  response.data.data.total

+ 7 - 4
src/xt_pages/dialysis/components/allSummary.vue Ver arquivo

485
        return shouji
485
        return shouji
486
      },
486
      },
487
      getAnticoagulantWeichi(id){
487
      getAnticoagulantWeichi(id){
488
+   
488
         var weichi = ""
489
         var weichi = ""
489
         for(let i=0;i<this.prescriptionList.length;i++){
490
         for(let i=0;i<this.prescriptionList.length;i++){
490
-         if(this.prescriptionList[i].patient_id == id && this.prescriptionList[i].anticoagulant_weichi!=0){
491
-            weichi = "("+this.prescriptionList[i].anticoagulant_weichi
491
+         
492
+          if(id == this.prescriptionList[i].patient_id){
493
+             weichi =  "(" + this.prescriptionList[i].anticoagulant_weichi
494
+          } 
492
         }
495
         }
493
-       return weichi
494
-      }
496
+        return weichi
497
+     
495
      },
498
      },
496
      getAnticoagulantZongliang(id){
499
      getAnticoagulantZongliang(id){
497
        var zongliang = ""
500
        var zongliang = ""

+ 7 - 6
src/xt_pages/dialysis/components/consumablesDialog.vue Ver arquivo

113
                 this.tableData.push(obj)
113
                 this.tableData.push(obj)
114
               }
114
               }
115
             }
115
             }
116
+            console.log("表格23322332232323",response.data.data.stock_out)
116
           }
117
           }
117
         })
118
         })
118
       },
119
       },
121
         done()
122
         done()
122
       },
123
       },
123
       show() {
124
       show() {
124
-        // this.GetDialysisGoodStatistics()
125
+       
125
         this.getlist()
126
         this.getlist()
126
         this.visible = true
127
         this.visible = true
127
       },
128
       },
129
       selectStartime() {
130
       selectStartime() {
130
         this.start_time = parseTime(this.startTime, '{y}-{m}-{d}')
131
         this.start_time = parseTime(this.startTime, '{y}-{m}-{d}')
131
         this.query.start_time = parseTime(this.startTime, '{y}-{m}-{d}')
132
         this.query.start_time = parseTime(this.startTime, '{y}-{m}-{d}')
132
-        this.GetDialysisGoodStatistics()
133
+       // this.GetDialysisGoodStatistics()
134
+        this.getlist()
133
 
135
 
134
       },
136
       },
135
       selectEndtime() {
137
       selectEndtime() {
136
         this.end_time = parseTime(this.endTime, '{y}-{m}-{d}')
138
         this.end_time = parseTime(this.endTime, '{y}-{m}-{d}')
137
         this.query.end_time = parseTime(this.endTime, '{y}-{m}-{d}')
139
         this.query.end_time = parseTime(this.endTime, '{y}-{m}-{d}')
138
-        this.GetDialysisGoodStatistics()
139
-
140
+       // this.GetDialysisGoodStatistics()
141
+        this.getlist()
140
       },
142
       },
141
        getlist(){
143
        getlist(){
142
           var params = {
144
           var params = {
144
             end_time:this.endTime,
146
             end_time:this.endTime,
145
             type:3
147
             type:3
146
           }
148
           }
147
-          console.log("param2222222",params)
148
           getPrintStockGood(params).then(response=>{
149
           getPrintStockGood(params).then(response=>{
149
             var stockTotal = response.data.data.stockTotal
150
             var stockTotal = response.data.data.stockTotal
150
-            console.log("stocktOTl",stockTotal)
151
             this.stockTotal = stockTotal
151
             this.stockTotal = stockTotal
152
+            this.tableData = []
152
             for (let i = 0; i < response.data.data.list.length; i++) {
153
             for (let i = 0; i < response.data.data.list.length; i++) {
153
                if (response.data.data.list[i].query_warehouseout_info.length > 0) {
154
                if (response.data.data.list[i].query_warehouseout_info.length > 0) {
154
                   this.tableData.push(response.data.data.list[i])
155
                   this.tableData.push(response.data.data.list[i])

+ 88 - 18
src/xt_pages/dialysis/components/dialysisParameters.vue Ver arquivo

98
             </el-table-column>
98
             </el-table-column>
99
              <el-table-column align="center" label="抗凝剂(首剂)(维持)(总量)">
99
              <el-table-column align="center" label="抗凝剂(首剂)(维持)(总量)">
100
                 <template slot-scope="scope">
100
                 <template slot-scope="scope">
101
-                   <span v-if="getAnticoagulant(scope.row.patient_id) == 0"></span>
101
+                    <span v-if="getAnticoagulant(scope.row.patient_id) == 0"></span>
102
                     <span v-if="getAnticoagulant(scope.row.patient_id) == 1">无肝素</span>
102
                     <span v-if="getAnticoagulant(scope.row.patient_id) == 1">无肝素</span>
103
                     <span v-if="getAnticoagulant(scope.row.patient_id) == 2">普通肝素</span>
103
                     <span v-if="getAnticoagulant(scope.row.patient_id) == 2">普通肝素</span>
104
                     <span v-if="getAnticoagulant(scope.row.patient_id) == 3">低分子肝素</span>
104
                     <span v-if="getAnticoagulant(scope.row.patient_id) == 3">低分子肝素</span>
152
             </el-table-column>
152
             </el-table-column>
153
              <el-table-column align="center" label="透析器/灌流器" width="120">
153
              <el-table-column align="center" label="透析器/灌流器" width="120">
154
                <template slot-scope="scope">
154
                <template slot-scope="scope">
155
-                 {{getDialyzerPerfusionApparatus(scope.row.patient_id)?getDialyzerPerfusionApparatus(scope.row.patient_id):""}}
155
+                   {{getDialyzerPerfusionApparatus(scope.row.patient_id)?getDialyzerPerfusionApparatus(scope.row.patient_id):""}}
156
+                   {{getDialysisDialyzers(scope.row.patient_id)}} {{getDialysisIrrigation(scope.row.patient_id)}}
156
                </template>
157
                </template>
157
             </el-table-column>
158
             </el-table-column>
158
         </el-table>
159
         </el-table>
208
             start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
209
             start_time:moment(new Date()).add('year',0).format("YYYY-MM-DD"),
209
             selecting_schs: [],
210
             selecting_schs: [],
210
             prescriptionList:[],
211
             prescriptionList:[],
211
-            dialysisBefor:[]
212
+            dialysisBefor:[],
213
+            list:[],
212
         }
214
         }
213
     },
215
     },
214
     created(){
216
     created(){
323
                   if(patient[i].mode_id == 19){
325
                   if(patient[i].mode_id == 19){
324
                      patient[i].mode_id = "IUF+HD"
326
                      patient[i].mode_id = "IUF+HD"
325
                   }
327
                   }
328
+                  if(patient[i].mode_id == 20){
329
+                     patient[i].mode_id = "UF"
330
+                  }
331
+                  if(patient[i].mode_id == 21){
332
+                     patient[i].mode_id = "HD+"
333
+                  }
334
+                  if(patient[i].mode_id == 22){
335
+                     patient[i].mode_id = "血浆胆红素吸附+HDF"
336
+                  }
337
+                  if(patient[i].mode_id == 23){
338
+                     patient[i].mode_id = "血浆胆红素吸附"
339
+                  }
340
+                  if(patient[i].mode_id == 24){
341
+                     patient[i].mode_id = "I-HDF"
342
+                  }
343
+                  if(patient[i].mode_id == 25){
344
+                     patient[i].mode_id = "HD高通"
345
+                  }
346
+                  if(patient[i].mode_id == 26){
347
+                     patient[i].mode_id = "CVVH"
348
+                  }
349
+                  if(patient[i].mode_id == 27){
350
+                     patient[i].mode_id = "CVVHD"
351
+                  }
352
+                  if(patient[i].mode_id == 28){
353
+                     patient[i].mode_id = "CVVHDF"
354
+                  }
326
                 }
355
                 }
327
                 this.tableData = patient
356
                 this.tableData = patient
328
                 console.log("patient2222",patient)
357
                 console.log("patient2222",patient)
338
           // 把时间日期转成时间戳
367
           // 把时间日期转成时间戳
339
           return new Date(time).getTime() / 1000;
368
           return new Date(time).getTime() / 1000;
340
          },
369
          },
341
-        getlist(){
342
-            // if(this.selected_date==""){
343
-            //   this.start_time = moment(new Date()).add('year',0).format("YYYY-MM-DD")
344
-            // }
345
-            // if(this.selected_date!=''){
346
-            //   this.start_time = parseTime(this.selected_date, '{y}-{m}-{d}')
347
-            // }
348
-            
370
+        getlist(){   
349
             const params ={
371
             const params ={
350
               start_time:this.start_time,
372
               start_time:this.start_time,
351
               keyword:this.search_input,
373
               keyword:this.search_input,
359
              if(response.data.state == 1){
381
              if(response.data.state == 1){
360
                 var schedule = response.data.data.schedule
382
                 var schedule = response.data.data.schedule
361
               
383
               
362
-                // this.tableData = schedule
363
                 var total = response.data.data.total
384
                 var total = response.data.data.total
364
                 this.total = total
385
                 this.total = total
365
                 var prescription =  response.data.data.prescription
386
                 var prescription =  response.data.data.prescription
366
-            
387
+                console.log("处方233223233233223232323",prescription)
367
                 this.prescriptionList = prescription
388
                 this.prescriptionList = prescription
368
                 var dialysbefor = response.data.data.dialysbefor
389
                 var dialysbefor = response.data.data.dialysbefor
369
                 this.dialysisBefor = dialysbefor
390
                 this.dialysisBefor = dialysbefor
427
                   if(patient[i].mode_id == 19){
448
                   if(patient[i].mode_id == 19){
428
                      patient[i].mode_id = "IUF+HD"
449
                      patient[i].mode_id = "IUF+HD"
429
                   }
450
                   }
451
+                  if(patient[i].mode_id == 20){
452
+                     patient[i].mode_id = "UF"
453
+                  }
454
+                  if(patient[i].mode_id == 21){
455
+                     patient[i].mode_id = "HD+"
456
+                  }
457
+                  if(patient[i].mode_id == 22){
458
+                     patient[i].mode_id = "血浆胆红素吸附+HDF"
459
+                  }
460
+                  if(patient[i].mode_id == 23){
461
+                     patient[i].mode_id = "血浆胆红素吸附"
462
+                  }
463
+                  if(patient[i].mode_id == 24){
464
+                     patient[i].mode_id = "I-HDF"
465
+                  }
466
+                  if(patient[i].mode_id == 25){
467
+                     patient[i].mode_id = "HD高通"
468
+                  }
469
+                  if(patient[i].mode_id == 26){
470
+                     patient[i].mode_id = "CVVH"
471
+                  }
472
+                  if(patient[i].mode_id == 27){
473
+                     patient[i].mode_id = "CVVHD"
474
+                  }
475
+                  if(patient[i].mode_id == 28){
476
+                     patient[i].mode_id = "CVVHDF"
477
+                  }
430
                 }
478
                 }
431
-                console.log("patient",patient)
479
+                console.log("patient99999999999",patient)
432
                 this.tableData = patient
480
                 this.tableData = patient
433
              }
481
              }
434
           })
482
           })
538
             shouji = "("+this.prescriptionList[i].anticoagulant_shouji
586
             shouji = "("+this.prescriptionList[i].anticoagulant_shouji
539
           }
587
           }
540
         }
588
         }
589
+       
541
        return shouji
590
        return shouji
542
      },
591
      },
543
      getAnticoagulantWeichi(id){
592
      getAnticoagulantWeichi(id){
593
+   
544
         var weichi = ""
594
         var weichi = ""
545
         for(let i=0;i<this.prescriptionList.length;i++){
595
         for(let i=0;i<this.prescriptionList.length;i++){
546
-         if(this.prescriptionList[i].patient_id == id && this.prescriptionList[i].anticoagulant_weichi!=0 ){
547
-            weichi = "("+this.prescriptionList[i].anticoagulant_weichi
596
+         
597
+          if(id == this.prescriptionList[i].patient_id){
598
+             weichi =  "(" + this.prescriptionList[i].anticoagulant_weichi
599
+          } 
548
         }
600
         }
549
-       return weichi
550
-      }
601
+        return weichi
602
+     
551
      },
603
      },
552
      getAnticoagulantZongliang(id){
604
      getAnticoagulantZongliang(id){
553
        var zongliang = ""
605
        var zongliang = ""
557
           }
609
           }
558
         }
610
         }
559
        return zongliang
611
        return zongliang
612
+     },
613
+     getDialysisDialyzers(id){
614
+       var dialysis_dialyszers = ""
615
+       for(let i=0;i<this.prescriptionList.length;i++){
616
+         if(id == this.prescriptionList[i].patient_id){
617
+          dialysis_dialyszers = this.prescriptionList[i].dialysis_dialyszers
618
+         }
619
+       }
620
+       return dialysis_dialyszers
621
+     },
622
+     getDialysisIrrigation(id){
623
+        var dialysis_irrigation = ""
624
+        for(let i=0;i<this.prescriptionList.length;i++){
625
+          if(id == this.prescriptionList[i].patient_id){
626
+             dialysis_irrigation = this.prescriptionList[i].dialysis_irrigation
627
+          }
628
+        }
629
+        return dialysis_irrigation
560
      }
630
      }
561
     }
631
     }
562
 }
632
 }

+ 2 - 2
src/xt_pages/dialysis/details/assessmentAfter.vue Ver arquivo

318
         </li>
318
         </li>
319
       </ul>
319
       </ul>
320
     </div>
320
     </div>
321
-    <div class="note">
321
+    <!-- <div class="note">
322
       备注 : <span>{{ this.record.remark }}</span>
322
       备注 : <span>{{ this.record.remark }}</span>
323
-    </div>
323
+    </div> -->
324
     <div class="middleLine"></div>
324
     <div class="middleLine"></div>
325
   </div>
325
   </div>
326
 </template>
326
 </template>

+ 0 - 6
src/xt_pages/management/components/ManageForm.vue Ver arquivo

601
       var machine_statuss = parseInt(machine_status);
601
       var machine_statuss = parseInt(machine_status);
602
       this.form.machine_status = machine_statuss;
602
       this.form.machine_status = machine_statuss;
603
 
603
 
604
-      // if (this.form.bed_number === '') {
605
-      //  this.form.bed_number = 0
606
-      // }
607
-      // var bed_numbers = this.form.bed_number
608
-      // var bed_numberss = parseInt(bed_numbers)
609
-      // this.form.bed_number = bed_numberss
610
       console.log("购买日期", this.form.buy_date);
604
       console.log("购买日期", this.form.buy_date);
611
 
605
 
612
       if (this.form.Disinfection_mode === "") {
606
       if (this.form.Disinfection_mode === "") {

+ 24 - 5
src/xt_pages/management/components/MultipleForm.vue Ver arquivo

34
           </el-col>
34
           </el-col>
35
           <el-col :span="4">
35
           <el-col :span="4">
36
             <el-form-item label="设备类型:">
36
             <el-form-item label="设备类型:">
37
-              <el-select style="width: 110px;" v-model="form.device_type">
37
+              <el-select style="width: 110px;" v-model="form.device_type" @change="changeEquitmentType">
38
                 <el-option
38
                 <el-option
39
                   v-for="item in this.EquitmentType"
39
                   v-for="item in this.EquitmentType"
40
                   :key="item.id"
40
                   :key="item.id"
46
           </el-col>
46
           </el-col>
47
           <el-col :span="4">
47
           <el-col :span="4">
48
             <el-form-item label="设备型号:">
48
             <el-form-item label="设备型号:">
49
-              <el-select style="width: 110px;" v-model="form.device_model">
49
+              <el-select style="width: 110px;" v-model="form.device_model" @change="changeDevicemode">
50
                 <el-option
50
                 <el-option
51
-                  v-for="item in this.EquitmentName"
51
+                  v-for="item in this.deviceMode"
52
                   :key="item.id"
52
                   :key="item.id"
53
-                  :label="item.equitment_name"
53
+                  :label="item.device_mode"
54
                   :value="item.id"
54
                   :value="item.id"
55
                 ></el-option>
55
                 ></el-option>
56
               </el-select>
56
               </el-select>
326
       DeviceType: [{ id: 0, name: "不限" }],
326
       DeviceType: [{ id: 0, name: "不限" }],
327
       Numbers: [{ id: 0, number: "不限" }],
327
       Numbers: [{ id: 0, number: "不限" }],
328
       EquitmentName: [{ id: 0, equitment_name: "全部" }],
328
       EquitmentName: [{ id: 0, equitment_name: "全部" }],
329
+      deviceMode:[{id:0,device_mode:"全部"}],
329
       runOptions: [{ value: "1", label: "正常" }, { value: "2", label: "故障" }]
330
       runOptions: [{ value: "1", label: "正常" }, { value: "2", label: "故障" }]
330
     };
331
     };
331
   },
332
   },
358
       getAllEquimentName().then(response => {
359
       getAllEquimentName().then(response => {
359
         if (response.data.state == 1) {
360
         if (response.data.state == 1) {
360
           var equit = response.data.data.equit;
361
           var equit = response.data.data.equit;
362
+          console.log("equit23233232",equit)
363
+          var list = response.data.data.list
364
+          console.log("list23323000000000000000000",list)
365
+          var devices = [{id:0,device_mode:"全部"}]
361
           var equits = [{ id: 0, equitment_name: "全部" }];
366
           var equits = [{ id: 0, equitment_name: "全部" }];
362
           for (let index = 0; index < equit.length; index++) {
367
           for (let index = 0; index < equit.length; index++) {
363
             const item = equit[index];
368
             const item = equit[index];
364
             equits.push({ id: item.id, equitment_name: item.equitment_name });
369
             equits.push({ id: item.id, equitment_name: item.equitment_name });
365
           }
370
           }
371
+          for(let index = 0;index<list.length;index++){
372
+            const item = list[index]
373
+            devices.push({id:item.id,device_mode:item.device_mode})
374
+          }
366
           this.EquitmentName = equits;
375
           this.EquitmentName = equits;
376
+          this.deviceMode = devices
367
         }
377
         }
368
       });
378
       });
369
     },
379
     },
380
+   changeDevicemode(){
381
+     this.getComprehensive()
382
+   },
383
+   changeEquitmentType(){
384
+     console.log("hh233223",this.form.device_type)
385
+    this.getComprehensive()
386
+   },
370
     getComprehensive() {
387
     getComprehensive() {
371
       const params = {
388
       const params = {
372
         zone: this.form.zone,
389
         zone: this.form.zone,
374
         devicetype: this.form.device_type,
391
         devicetype: this.form.device_type,
375
         year: this.form.user_year,
392
         year: this.form.user_year,
376
         starttime: this.form.start_time,
393
         starttime: this.form.start_time,
377
-        endtime: this.form.end_time
394
+        endtime: this.form.end_time,
395
+        device_mode:this.form.device_model,
378
       };
396
       };
397
+      console.log("param23332323233223322323",params)
379
       getComprehensive(params).then(response => {
398
       getComprehensive(params).then(response => {
380
         if (response.data.state === 1) {
399
         if (response.data.state === 1) {
381
           var macher = response.data.data.macher;
400
           var macher = response.data.data.macher;

+ 138 - 3
src/xt_pages/management/components/UserForm.vue Ver arquivo

1010
         { id: 15, name: "HD前置换" },
1010
         { id: 15, name: "HD前置换" },
1011
         { id: 16, name: "HD后置换" },
1011
         { id: 16, name: "HD后置换" },
1012
         { id: 17, name: "HDF前置换" },
1012
         { id: 17, name: "HDF前置换" },
1013
-        { id: 18, name: "HDF后置换" }
1013
+        { id: 18, name: "HDF后置换" },
1014
+        { id:19, name:"IUF+HD"},
1015
+        { id:20, name:"UF"},
1016
+        { id:21, name:"HD+"},
1017
+        { id:22, name:"血浆胆红素吸附+HDF"},
1018
+        { id:23, name:"血浆胆红素吸附"},
1019
+        { id:24, name:"I-HDF"},
1020
+        { id:25, name:"HD高通"},
1021
+        { id:26, name:"CVVH"},
1022
+        { id:27, name:"CVVHD"},
1023
+        { id:28, name:"CVVHDF"},
1014
       ],
1024
       ],
1015
       // 基表消毒方式
1025
       // 基表消毒方式
1016
       disinfectType: [
1026
       disinfectType: [
1237
             if (information[index].dialysis_mode === 18) {
1247
             if (information[index].dialysis_mode === 18) {
1238
               information[index].dialysis_mode = "HDF后置换";
1248
               information[index].dialysis_mode = "HDF后置换";
1239
             }
1249
             }
1250
+            if (information[index].dialysis_mode === 19) {
1251
+              information[index].dialysis_mode = "IUF+HD";
1252
+            }
1253
+            
1254
+            if (information[index].dialysis_mode === 20) {
1255
+              information[index].dialysis_mode = "UF";
1256
+            }
1257
+            if (information[index].dialysis_mode === 21) {
1258
+              information[index].dialysis_mode = "HD+";
1259
+            }
1260
+
1261
+            if (information[index].dialysis_mode === 22) {
1262
+              information[index].dialysis_mode = "血浆胆红素吸附+HDF";
1263
+            }
1264
+
1265
+            if (information[index].dialysis_mode === 23) {
1266
+              information[index].dialysis_mode = "血浆胆红素吸附";
1267
+            }
1268
+
1269
+            if (information[index].dialysis_mode === 24) {
1270
+              information[index].dialysis_mode = "I-HDF";
1271
+            }
1272
+
1273
+            if (information[index].dialysis_mode === 25) {
1274
+              information[index].dialysis_mode = "HD高通";
1275
+            }
1276
+
1277
+            if (information[index].dialysis_mode === 26) {
1278
+              information[index].dialysis_mode = "CVVH";
1279
+            }
1280
+            if (information[index].dialysis_mode === 27) {
1281
+              information[index].dialysis_mode = "CVVHD";
1282
+            }
1283
+
1284
+            if (information[index].dialysis_mode === 28) {
1285
+              information[index].dialysis_mode = "CVVHDF";
1286
+            }
1240
 
1287
 
1241
             if (information[index].move === 0) {
1288
             if (information[index].move === 0) {
1242
               information[index].move = "";
1289
               information[index].move = "";
1690
       ).then(response => {
1737
       ).then(response => {
1691
         if (response.data.state === 1) {
1738
         if (response.data.state === 1) {
1692
           var information = response.data.data.infor;
1739
           var information = response.data.data.infor;
1693
-          // console.log("information", information);
1740
+        //  console.log("information", information);
1694
           for (let index = 0; index < information.length; index++) {
1741
           for (let index = 0; index < information.length; index++) {
1695
             if (information[index].class === 0) {
1742
             if (information[index].class === 0) {
1696
               information[index].class = "";
1743
               information[index].class = "";
1764
               information[index].dialysis_mode = "HDF后置换";
1811
               information[index].dialysis_mode = "HDF后置换";
1765
             }
1812
             }
1766
 
1813
 
1814
+            if (information[index].dialysis_mode === 19) {
1815
+              information[index].dialysis_mode = "IUF+HD";
1816
+            }
1817
+
1818
+           if (information[index].dialysis_mode === 20) {
1819
+              information[index].dialysis_mode = "UF";
1820
+            }
1821
+
1822
+            if (information[index].dialysis_mode === 21) {
1823
+              information[index].dialysis_mode = "HD+";
1824
+            }
1825
+
1826
+            if (information[index].dialysis_mode === 22) {
1827
+              information[index].dialysis_mode = "血浆胆红素吸附+HDF";
1828
+            }
1829
+
1830
+            if (information[index].dialysis_mode === 23) {
1831
+              information[index].dialysis_mode = "血浆胆红素吸附";
1832
+            }
1833
+
1834
+            if (information[index].dialysis_mode === 24) {
1835
+              information[index].dialysis_mode = "I-HDF";
1836
+            }
1837
+
1838
+            if (information[index].dialysis_mode === 25) {
1839
+              information[index].dialysis_mode = "HD高通";
1840
+            }
1841
+            
1842
+            if (information[index].dialysis_mode === 26) {
1843
+              information[index].dialysis_mode = "CVVH";
1844
+            }
1845
+
1846
+            if (information[index].dialysis_mode === 27) {
1847
+              information[index].dialysis_mode = "CVVHD";
1848
+            }
1849
+
1850
+            if (information[index].dialysis_mode === 28) {
1851
+              information[index].dialysis_mode = "CVVHDF";
1852
+            }
1853
+
1854
+           
1855
+ 
1767
             if (information[index].move === 0) {
1856
             if (information[index].move === 0) {
1768
               information[index].move = "";
1857
               information[index].move = "";
1769
             }
1858
             }
1935
               information[index].clean = "";
2024
               information[index].clean = "";
1936
             }
2025
             }
1937
           }
2026
           }
1938
-          // console.log('消毒时间', information)
2027
+
1939
           this.tableData = information;
2028
           this.tableData = information;
1940
           var total = response.data.data.total;
2029
           var total = response.data.data.total;
1941
           // console.log('total是什么', total)
2030
           // console.log('total是什么', total)
1985
           var addmacher = response.data.data.addmacher;
2074
           var addmacher = response.data.data.addmacher;
1986
           console.log("addmacher",addmacher)
2075
           console.log("addmacher",addmacher)
1987
           for (let index = 0; index < information.length; index++) {
2076
           for (let index = 0; index < information.length; index++) {
2077
+            if(information[index].class === 0){
2078
+              information[index].class = "";
2079
+            }
1988
             if (information[index].class === 1) {
2080
             if (information[index].class === 1) {
1989
               information[index].class = "上午";
2081
               information[index].class = "上午";
1990
             }
2082
             }
2053
               information[index].dialysis_mode = "HDF后置换";
2145
               information[index].dialysis_mode = "HDF后置换";
2054
             }
2146
             }
2055
 
2147
 
2148
+            if (information[index].dialysis_mode === 19) {
2149
+              information[index].dialysis_mode = "IUF+HD";
2150
+            }
2151
+
2152
+            if (information[index].dialysis_mode === 20) {
2153
+              information[index].dialysis_mode = "UF";
2154
+            }
2155
+
2156
+           if (information[index].dialysis_mode === 21) {
2157
+              information[index].dialysis_mode = "HD+";
2158
+            }
2159
+
2160
+           if (information[index].dialysis_mode === 22) {
2161
+              information[index].dialysis_mode = "血浆胆红素吸附+HDF";
2162
+            }
2163
+
2164
+            if (information[index].dialysis_mode === 23) {
2165
+              information[index].dialysis_mode = "血浆胆红素吸附";
2166
+            }
2167
+
2168
+           if (information[index].dialysis_mode === 24) {
2169
+              information[index].dialysis_mode = "I-HDF";
2170
+            }
2171
+
2172
+            if (information[index].dialysis_mode === 25) {
2173
+              information[index].dialysis_mode = "HD高通";
2174
+            }
2175
+            
2176
+           if (information[index].dialysis_mode === 26) {
2177
+              information[index].dialysis_mode = "CVVH";
2178
+            }
2179
+
2180
+            if (information[index].dialysis_mode === 27) {
2181
+              information[index].dialysis_mode = "CVVHD";
2182
+            }
2183
+
2184
+            if (information[index].dialysis_mode === 28) {
2185
+              information[index].dialysis_mode = "CVVHDF";
2186
+            }
2187
+
2056
             if (information[index].move === 0) {
2188
             if (information[index].move === 0) {
2057
               information[index].move = "";
2189
               information[index].move = "";
2058
             }
2190
             }
2173
             if (information[index].disinfectant === 9) {
2305
             if (information[index].disinfectant === 9) {
2174
               information[index].disinfectant = "5%次氯酸钠";
2306
               information[index].disinfectant = "5%次氯酸钠";
2175
             }
2307
             }
2308
+            if (information[index].disinfection_status === 0) {
2309
+              information[index].disinfection_status = "";
2310
+            }
2176
             if (information[index].disinfection_status === 1) {
2311
             if (information[index].disinfection_status === 1) {
2177
               information[index].disinfection_status = "已消毒";
2312
               information[index].disinfection_status = "已消毒";
2178
             }
2313
             }

+ 11 - 1
src/xt_pages/management/home.vue Ver arquivo

3012
           { id: 15, name: 'HD前置换' },
3012
           { id: 15, name: 'HD前置换' },
3013
           { id: 16, name: 'HD后置换' },
3013
           { id: 16, name: 'HD后置换' },
3014
           { id: 17, name: 'HDF前置换' },
3014
           { id: 17, name: 'HDF前置换' },
3015
-          { id: 18, name: 'HDF后置换' }
3015
+          { id: 18, name: 'HDF后置换' },
3016
+          { id:19, name:"IUF+HD"},
3017
+          { id:20, name:"UF"},
3018
+          { id:21, name:"HD+"},
3019
+          { id:22, name:"血浆胆红素吸附+HDF"},
3020
+          { id:23, name:"血浆胆红素吸附"},
3021
+          { id:24, name:"I-HDF"},
3022
+          { id:25, name:"HD高通"},
3023
+          { id:26, name:"CVVH"},
3024
+          { id:27, name:"CVVHD"},
3025
+          { id:28, name:"CVVHDF"},
3016
         ],
3026
         ],
3017
         disinfection: [
3027
         disinfection: [
3018
           { id: 0, name: '请选择' },
3028
           { id: 0, name: '请选择' },

+ 1 - 1
src/xt_pages/management/index.vue Ver arquivo

18
           style="width: 400px;"
18
           style="width: 400px;"
19
           v-model.trim="listQuery.searchKey"
19
           v-model.trim="listQuery.searchKey"
20
           class="filter-item"
20
           class="filter-item"
21
-          placeholder="输入序列号/设备名/型搜索"
21
+          placeholder="输入序列号/设备名/设备类型搜索"
22
           size="small"
22
           size="small"
23
           @keyup.enter.native='seahcerMacherInfo'
23
           @keyup.enter.native='seahcerMacherInfo'
24
         />
24
         />

+ 2 - 1
src/xt_pages/stock/drugs/drugStockFlow.vue Ver arquivo

68
              <span v-if="scope.row.consumable_type == 2">手动出库</span>
68
              <span v-if="scope.row.consumable_type == 2">手动出库</span>
69
              <span v-if="scope.row.consumable_type == 3">自动出库</span>
69
              <span v-if="scope.row.consumable_type == 3">自动出库</span>
70
              <span v-if="scope.row.consumable_type == 4">手动退库</span>
70
              <span v-if="scope.row.consumable_type == 4">手动退库</span>
71
+             <span v-if="scope.row.consumable_type == 7">自动退库</span>
71
              <span v-if="scope.row.consumable_type == 5">报损数量</span>
72
              <span v-if="scope.row.consumable_type == 5">报损数量</span>
72
              <span v-if="scope.row.consumable_type == 10">盘盈</span>
73
              <span v-if="scope.row.consumable_type == 10">盘盈</span>
73
             <span v-if="scope.row.consumable_type == 11">盘亏</span>
74
             <span v-if="scope.row.consumable_type == 11">盘亏</span>
77
            <template slot-scope="scope">
78
            <template slot-scope="scope">
78
              <span v-if="scope.row.consumable_type == 1">{{scope.row.warehousing_order}}</span>
79
              <span v-if="scope.row.consumable_type == 1">{{scope.row.warehousing_order}}</span>
79
               <span v-if="scope.row.consumable_type == 2 || scope.row.consumable_type == 3">{{scope.row.warehouse_out_order_number}}</span>
80
               <span v-if="scope.row.consumable_type == 2 || scope.row.consumable_type == 3">{{scope.row.warehouse_out_order_number}}</span>
80
-              <span v-if="scope.row.consumable_type == 4">{{scope.row.cancel_order_number}}</span>
81
+              <span v-if="scope.row.consumable_type == 4 || scope.row.consumable_type == 7">{{scope.row.cancel_order_number}}</span>
81
               <span v-if="scope.row.consumable_type == 5">{{scope.row.warehouse_out_order_number}}</span>
82
               <span v-if="scope.row.consumable_type == 5">{{scope.row.warehouse_out_order_number}}</span>
82
               <span v-if="scope.row.consumable_type == 10 || scope.row.consumable_type == 11">{{scope.row.warehousing_order}}</span>
83
               <span v-if="scope.row.consumable_type == 10 || scope.row.consumable_type == 11">{{scope.row.warehousing_order}}</span>
83
            </template>
84
            </template>

+ 2 - 1
src/xt_pages/stock/stockFlow.vue Ver arquivo

65
              <span v-if="scope.row.consumable_type == 2">手动出库</span>
65
              <span v-if="scope.row.consumable_type == 2">手动出库</span>
66
              <span v-if="scope.row.consumable_type == 3">自动出库</span>
66
              <span v-if="scope.row.consumable_type == 3">自动出库</span>
67
              <span v-if="scope.row.consumable_type == 4">手动退库</span>
67
              <span v-if="scope.row.consumable_type == 4">手动退库</span>
68
+             <span v-if="scope.row.consumable_type == 7">自动退库</span>
68
              <span v-if="scope.row.consumable_type == 10">盘盈</span>
69
              <span v-if="scope.row.consumable_type == 10">盘盈</span>
69
              <span v-if="scope.row.consumable_type == 11">盘亏</span>
70
              <span v-if="scope.row.consumable_type == 11">盘亏</span>
70
            </template>
71
            </template>
74
             <span v-if="scope.row.consumable_type == 1">{{scope.row.warehousing_order}}</span>
75
             <span v-if="scope.row.consumable_type == 1">{{scope.row.warehousing_order}}</span>
75
             <span v-if="scope.row.consumable_type == 2">{{scope.row.warehouse_out_order_number}}</span>  
76
             <span v-if="scope.row.consumable_type == 2">{{scope.row.warehouse_out_order_number}}</span>  
76
             <span v-if="scope.row.consumable_type == 3">{{scope.row.warehouse_out_order_number}}</span>  
77
             <span v-if="scope.row.consumable_type == 3">{{scope.row.warehouse_out_order_number}}</span>  
77
-            <span v-if="scope.row.consumable_type == 4">{{scope.row.cancel_order_number}}</span>  
78
+            <span v-if="scope.row.consumable_type == 4 || scope.row.consumable_type == 7">{{scope.row.cancel_order_number}}</span>  
78
             <span v-if="scope.row.consumable_type == 10">{{scope.row.warehouse_out_order_number}}</span>
79
             <span v-if="scope.row.consumable_type == 10">{{scope.row.warehouse_out_order_number}}</span>
79
             <span v-if="scope.row.consumable_type == 11">{{scope.row.warehouse_out_order_number}}</span>
80
             <span v-if="scope.row.consumable_type == 11">{{scope.row.warehouse_out_order_number}}</span>
80
            </template>
81
            </template>

+ 3 - 3
src/xt_pages/stock/stockOutOrderEdit.vue Ver arquivo

589
                 if(response.data.data.msg == 1){
589
                 if(response.data.data.msg == 1){
590
                   this.$message.success('保存成功')
590
                   this.$message.success('保存成功')
591
                   this.$router.back(-1)
591
                   this.$router.back(-1)
592
-                   loading.close()
592
+                  loading.close()
593
                 }
593
                 }
594
 
594
 
595
                 if(response.data.data.msg == 5){
595
                 if(response.data.data.msg == 5){
602
                   var str = good_name +"*" + specification_name +"无库存,请入库"
602
                   var str = good_name +"*" + specification_name +"无库存,请入库"
603
                 
603
                 
604
                   if(msg == 7){
604
                   if(msg == 7){
605
-                      this.$message.error(str)
605
+                    this.$message.error(str)
606
                   }
606
                   }
607
 
607
 
608
                 if(response.data.data.msg == 6){
608
                 if(response.data.data.msg == 6){
609
-                  this.$message.error("该耗材的退库数量大于入库数量,无法出库,请新增出库另一个批次")
609
+                  this.$message.error("该耗材的出库数量大于入库数量,无法出库")
610
                 }
610
                 }
611
                 loading.close()
611
                 loading.close()
612
               }
612
               }

+ 18 - 17
src/xt_pages/workforce/components/nextTableWeeks.vue Ver arquivo

361
         }
361
         }
362
 
362
 
363
         var now_time = parseInt(this.week_type) * 86400 + this.start_time
363
         var now_time = parseInt(this.week_type) * 86400 + this.start_time
364
-
365
-        const params = {
366
-          start_time:moment().week(moment().week() + 1).startOf('week').unix(),
367
-          end_time:moment().week(moment().week() + 1).endOf('week').unix(),
368
-          week_type:this.week_type,
369
-          week_time:this.week_time,
370
-          zone:str,
371
-          record_date:this.getTime(now_time)
372
-        }
364
+        
365
+        let weekOfDay = parseInt(moment().format('E'))
366
+        let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
367
+        console.log("卡 is h2323233232",new Date(next_monday))
368
+        let next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
369
+        console.log("下周日",next_sunday.valueOf())
373
         // const params = {
370
         // const params = {
374
-        //   start_time:1609603200,
375
-        //   end_time:1610208000,
371
+        //   start_time:moment().week(moment().week() + 1).startOf('week').unix(),
372
+        //   end_time:moment().week(moment().week() + 1).endOf('week').unix(),
376
         //   week_type:this.week_type,
373
         //   week_type:this.week_type,
377
         //   week_time:this.week_time,
374
         //   week_time:this.week_time,
375
+        //   zone:str,
376
+        //   record_date:this.getTime(now_time)
378
         // }
377
         // }
378
+       const params = {
379
+          start_time:next_monday,
380
+          end_time:next_sunday,
381
+          week_type:this.week_type,
382
+          week_time:this.week_time,
383
+          zone:str,
384
+          record_date:this.getTime(now_time)
385
+       }
379
       console.log("params0000000000",params)
386
       console.log("params0000000000",params)
380
       getNextScheduleWeekDay(params).then(response => {
387
       getNextScheduleWeekDay(params).then(response => {
381
         this.scheduleData = [];
388
         this.scheduleData = [];
683
   created() {
690
   created() {
684
     this.modeOptions = this.$store.getters.treatment_mode;
691
     this.modeOptions = this.$store.getters.treatment_mode;
685
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit;
692
     this.anticoagulants_confit = this.$store.getters.anticoagulants_confit;
686
-    // this.week_type = new Date().getDay();
687
-    // console.log("hhhh23232332",this.week_type)
688
-    // if (this.week_type == 0) {
689
-    //   this.week_type = 7;
690
-    // }
691
-
692
     this.getAllZoneList()
693
     this.getAllZoneList()
693
     this.org_id = this.$store.getters.xt_user.org.id
694
     this.org_id = this.$store.getters.xt_user.org.id
694
 
695
 

+ 38 - 31
src/xt_pages/workforce/next_remind_print.vue Ver arquivo

19
       <div id="print_content">
19
       <div id="print_content">
20
         <div class="print_main_content">
20
         <div class="print_main_content">
21
           <div class="order_title_panl">
21
           <div class="order_title_panl">
22
-            <!-- <span class="main_title">{{day}}排班提醒({{ currentDate }})</span> -->
23
-            <span class="main_title">{{day}}排班提醒({{ getTime(now_time) }})</span>
22
+            <span class="main_title" v-if="scheduleData.length >0">{{day}}排班提醒({{getTime(scheduleData[0].schedule_date) }})</span>
24
           </div>
23
           </div>
25
           <div class="table_panel">
24
           <div class="table_panel">
26
             <table class="table">
25
             <table class="table">
27
               <thead>
26
               <thead>
28
                 <tr>
27
                 <tr>
28
+                  <td width="50">序号</td>
29
                   <td width="100" v-if="printObj.week == 1">星期</td>
29
                   <td width="100" v-if="printObj.week == 1">星期</td>
30
                   <td width="100" v-if="printObj.name == 1">姓名</td>
30
                   <td width="100" v-if="printObj.name == 1">姓名</td>
31
                   <td width="70" v-if="printObj.zone == 1">分区</td>
31
                   <td width="70" v-if="printObj.zone == 1">分区</td>
40
               </thead>
40
               </thead>
41
               <tbody>
41
               <tbody>
42
               <tr v-for="(main_collection, index) in scheduleData" :key="index">
42
               <tr v-for="(main_collection, index) in scheduleData" :key="index">
43
+                <td :width="td_1_width">{{index + 1}}</td>
43
                 <td :width="td_1_width" v-if="printObj.week == 1">
44
                 <td :width="td_1_width" v-if="printObj.week == 1">
44
                   <span v-if="main_collection.schedule_week == 0">周日</span>
45
                   <span v-if="main_collection.schedule_week == 0">周日</span>
45
                   <span v-if="main_collection.schedule_week == 1">周一</span>
46
                   <span v-if="main_collection.schedule_week == 1">周一</span>
146
       BreadCrumb
147
       BreadCrumb
147
     },
148
     },
148
     created() {
149
     created() {
149
-     var now_time = parseInt(this.week_type) * 86400 + this.start_time
150
-     this.now_time = now_time
151
-     this.getPrintList()
152
-     this.org_id = this.$store.getters.xt_user.org.id
153
-     this.currentDate = this.getCurrentDate()
150
+   
151
+      this.getPrintList()
152
+      this.org_id = this.$store.getters.xt_user.org.id
153
+      this.currentDate = this.getCurrentDate()
154
 
154
 
155
       this.modeOptions = this.$store.getters.treatment_mode
155
       this.modeOptions = this.$store.getters.treatment_mode
156
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
156
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
157
       this.week_type = this.$route.query.week_type
157
       this.week_type = this.$route.query.week_type
158
+      var now_time = parseInt(this.week_type) * 86400 + this.start_time
159
+      console.log("now_time23233232322323",now_time)
160
+      this.now_time = now_time
158
       this.week_time  = this.$route.query.week_time
161
       this.week_time  = this.$route.query.week_time
159
       this.zone = this.$route.query.zone
162
       this.zone = this.$route.query.zone
160
       this.pre_status = this.$route.query.prestatus
163
       this.pre_status = this.$route.query.prestatus
161
       this.loading = true;
164
       this.loading = true;
165
+      let weekOfDay = parseInt(moment().format('E'))
166
+      let next_monday = moment().add((7 - weekOfDay) + 1, 'days').format('YYYY-MM-DD');
167
+      let next_sunday = moment().add((7 - weekOfDay) + 7, 'days').format('YYYY-MM-DD')
162
       const params = {
168
       const params = {
163
           week_type:this.week_type,
169
           week_type:this.week_type,
164
           week_time:this.week_time,
170
           week_time:this.week_time,
165
-          start_time:this.start_time,
166
-          end_time:this.end_time,
171
+          start_time:next_monday,
172
+          end_time:next_sunday,
167
           zone:this.zone,
173
           zone:this.zone,
168
           record_date:this.getTime(now_time)
174
           record_date:this.getTime(now_time)
169
         }
175
         }
170
-     console.log("prarms23232323",params)
171
-        //  const params = {
172
-        //   week_type:this.week_type,
173
-        //   week_time:this.week_time,
174
-        //   start_time:1609603200,
175
-        //   end_time:1610208000,
176
-        // }
177
-      // console.log("打印下周",params)
178
-
179
-      // console.log("start",this.start_time)
176
+     console.log("下周打印时间",params)
180
       getNextScheduleWeekDay(params).then(rs => {
177
       getNextScheduleWeekDay(params).then(rs => {
181
         var resp = rs.data
178
         var resp = rs.data
182
         console.log(resp)
179
         console.log(resp)
183
         if (resp.state == 1) {
180
         if (resp.state == 1) {
184
-        this.loading = false
185
          var scheduleData = resp.data.schedule
181
          var scheduleData = resp.data.schedule
186
 
182
 
187
           if(this.pre_status == 0){
183
           if(this.pre_status == 0){
189
               scheduleData[i].sort = scheduleData[i].number.sort
185
               scheduleData[i].sort = scheduleData[i].number.sort
190
             }
186
             }
191
             var arr =   scheduleData.sort(this.compare('sort'))
187
             var arr =   scheduleData.sort(this.compare('sort'))
192
-            // console.log("打印",arr)
188
+           
193
             this.scheduleData = arr
189
             this.scheduleData = arr
194
           }
190
           }
195
           if(this.pre_status == 1){
191
           if(this.pre_status == 1){
200
               }
196
               }
201
             }
197
             }
202
             var arr =   newList.sort(this.compare('sort'))
198
             var arr =   newList.sort(this.compare('sort'))
203
-            console.log("打印",arr)
199
+           
204
             this.scheduleData = arr
200
             this.scheduleData = arr
205
           }
201
           }
206
 
202
 
212
               }
208
               }
213
             }
209
             }
214
             var arr =   newList.sort(this.compare('sort'))
210
             var arr =   newList.sort(this.compare('sort'))
215
-            console.log("打印",arr)
216
-            this.scheduleData = arr
217
            
211
            
212
+            this.scheduleData = arr
213
+            
218
           }
214
           }
215
+          this.loading = false
219
         } else {
216
         } else {
220
           this.$message.error(resp.msg)
217
           this.$message.error(resp.msg)
221
         }
218
         }
396
       }
393
       }
397
      },
394
      },
398
      getTime(val) {
395
      getTime(val) {
399
-         if(val == ""){
400
-          return ""
401
-         }else {
402
-          return uParseTime(val, '{y}-{m}-{d}')
403
-         }
404
-      },
396
+        if(val == ""){
397
+        return ""
398
+        }else {
399
+         return uParseTime(val, '{y}-{m}-{d}')
400
+        }
401
+     },
405
      getPrintList(){
402
      getPrintList(){
406
       getPrintList().then(response=>{
403
       getPrintList().then(response=>{
407
          if(response.data.state == 1){
404
          if(response.data.state == 1){
432
 
429
 
433
           }
430
           }
434
         }
431
         }
435
-        console.log('name', name)
432
+      
436
         return name
433
         return name
437
       },
434
       },
435
+      getTimeOne(type){
436
+        console.log("typ323232232323",type)
437
+        var nowdate = ""
438
+        for(let i=0;i<this.scheduleData.length;i++){
439
+          if(type == this.scheduleData[i].schedule_week){
440
+             nowdate = this.getTime(this.scheduleData[i].schedule_date)
441
+          } 
442
+        }
443
+        return nowdate
444
+      }
438
     }
445
     }
439
   }
446
   }
440
 </script>
447
 </script>

+ 2 - 0
src/xt_pages/workforce/remind_print.vue Ver arquivo

24
             <table class="table">
24
             <table class="table">
25
               <thead>
25
               <thead>
26
                 <tr>
26
                 <tr>
27
+                  <td width="50">序号</td>
27
                   <td width="100" v-if="printObj.week == 1">星期</td>
28
                   <td width="100" v-if="printObj.week == 1">星期</td>
28
                   <td width="100" v-if="printObj.name == 1">姓名</td>
29
                   <td width="100" v-if="printObj.name == 1">姓名</td>
29
                   <td width="70" v-if="printObj.zone == 1">分区</td>
30
                   <td width="70" v-if="printObj.zone == 1">分区</td>
38
               </thead>
39
               </thead>
39
               <tbody>
40
               <tbody>
40
               <tr v-for="(main_collection, index) in scheduleData" :key="index">
41
               <tr v-for="(main_collection, index) in scheduleData" :key="index">
42
+                <td :width="td_1_width">{{index + 1}}</td>
41
                 <td :width="td_1_width" v-if="printObj.week == 1">
43
                 <td :width="td_1_width" v-if="printObj.week == 1">
42
                   <span v-if="main_collection.schedule_week == 0">周日</span>
44
                   <span v-if="main_collection.schedule_week == 0">周日</span>
43
                   <span v-if="main_collection.schedule_week == 1">周一</span>
45
                   <span v-if="main_collection.schedule_week == 1">周一</span>