浏览代码

自备药出库处理

XMLWAN 4 年前
父节点
当前提交
f1b420d583

+ 14 - 23
src/api/data.js 查看文件

@@ -63,9 +63,6 @@ export function getPrintTemplate() {
63 63
   })
64 64
 }
65 65
 
66
-
67
-
68
-
69 66
 export function createDictionaryConfig(params) {
70 67
   console.log('params', params)
71 68
   return request({
@@ -108,7 +105,6 @@ export function updateDictionaryTemplate(params) {
108 105
   })
109 106
 }
110 107
 
111
-
112 108
 export function createBaseDrugLib(params) {
113 109
   return request({
114 110
     url: '/api/basedruglib/create',
@@ -117,16 +113,14 @@ export function createBaseDrugLib(params) {
117 113
   })
118 114
 }
119 115
 
120
-
121
-export function editBaseDrugLib(params,unit) {
116
+export function editBaseDrugLib(params, unit) {
122 117
   return request({
123
-    url: '/api/basedruglib/edit?unit='+unit,
118
+    url: '/api/basedruglib/edit?unit=' + unit,
124 119
     method: 'post',
125 120
     params: params
126 121
   })
127 122
 }
128 123
 
129
-
130 124
 export function getBaseDrugLib(params) {
131 125
   return request({
132 126
     url: '/api/basedruglib/get',
@@ -135,8 +129,6 @@ export function getBaseDrugLib(params) {
135 129
   })
136 130
 }
137 131
 
138
-
139
-
140 132
 export function getBaseDrugLibList(params) {
141 133
   return request({
142 134
     url: '/api/basedruglib/list',
@@ -145,26 +137,21 @@ export function getBaseDrugLibList(params) {
145 137
   })
146 138
 }
147 139
 
148
-
149
-
150
-
151
-export function createMedicineInsurancePercent(params,module) {
140
+export function createMedicineInsurancePercent(params, module) {
152 141
   return request({
153
-    url: '/api/medicineinsurancepercent/create?module='+module,
142
+    url: '/api/medicineinsurancepercent/create?module=' + module,
154 143
     method: 'post',
155 144
     data: params
156 145
   })
157 146
 }
158 147
 
159
-
160
-export function getMedicineInsurancePercent(type_id,module) {
148
+export function getMedicineInsurancePercent(type_id, module) {
161 149
   return request({
162
-    url: '/api/medicineinsurancepercent/get?type_id='+type_id+"&module="+module,
163
-    method: 'get',
150
+    url: '/api/medicineinsurancepercent/get?type_id=' + type_id + '&module=' + module,
151
+    method: 'get'
164 152
   })
165 153
 }
166 154
 
167
-
168 155
 export function createDrugUnitSafeguard(params) {
169 156
   return request({
170 157
     url: '/api/drugunitsafeguard/create',
@@ -173,7 +160,11 @@ export function createDrugUnitSafeguard(params) {
173 160
   })
174 161
 }
175 162
 
176
-
177
-
178
-
163
+export function deleteDurg(params) {
164
+  return request({
165
+    url: '/api/drug/basedruglib',
166
+    method: 'get',
167
+    params: params
168
+  })
169
+}
179 170
 

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

@@ -219,8 +219,6 @@ export function postTreatmentsummary(params) {
219 219
 }
220 220
 
221 221
 export function postAssessmentAfterDislysis(params, data) {
222
-  console.log('到了没有', data)
223
-  console.log('params', params)
224 222
   return request({
225 223
     url: '/api/dialysis/assessmentafterdislysis',
226 224
     method: 'Post',

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

@@ -385,9 +385,9 @@ export function DeleteWarehouseInfoItem(params) {
385 385
   })
386 386
 }
387 387
 
388
-export function EditWarehouse(params, warehousing_time, id,type,manufacturer_id,dealer_id) {
388
+export function EditWarehouse(params, warehousing_time, id, type, manufacturer_id, dealer_id) {
389 389
   return request({
390
-    url: '/api/warehouse/edit?warehousing_time=' + warehousing_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id+"&dealer_id="+dealer_id,
390
+    url: '/api/warehouse/edit?warehousing_time=' + warehousing_time + '&id=' + id + '&type=' + type + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id,
391 391
     method: 'post',
392 392
     data: params
393 393
   })
@@ -433,9 +433,9 @@ export function deleteSalesReturnInfo(params) {
433 433
   })
434 434
 }
435 435
 
436
-export function editSalesReturnInfo(params, return_time, id,type,manufacturer_id,dealer_id) {
436
+export function editSalesReturnInfo(params, return_time, id, type, manufacturer_id, dealer_id) {
437 437
   return request({
438
-    url: '/api/salesreturn/edit?return_time=' + return_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id+"&dealer_id="+dealer_id,
438
+    url: '/api/salesreturn/edit?return_time=' + return_time + '&id=' + id + '&type=' + type + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id,
439 439
     method: 'post',
440 440
     data: params
441 441
   })
@@ -473,9 +473,9 @@ export function getWarehouseOutInfo(params) {
473 473
   })
474 474
 }
475 475
 
476
-export function editWarehouseoutInfo(params, warehouse_out_time, id,type,manufacturer_id,dealer_id) {
476
+export function editWarehouseoutInfo(params, warehouse_out_time, id, type, manufacturer_id, dealer_id) {
477 477
   return request({
478
-    url: '/api/warehouseout/edit?warehouse_out_time=' + warehouse_out_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id+"&dealer_id="+dealer_id,
478
+    url: '/api/warehouseout/edit?warehouse_out_time=' + warehouse_out_time + '&id=' + id + '&type=' + type + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id,
479 479
     method: 'post',
480 480
     data: params
481 481
   })
@@ -489,9 +489,9 @@ export function getCancelStockList(params) {
489 489
   })
490 490
 }
491 491
 
492
-export function editCancelStockInfo(params, cancel_stock_time, id,type,manufacturer_id,dealer_id) {
492
+export function editCancelStockInfo(params, cancel_stock_time, id, type, manufacturer_id, dealer_id) {
493 493
   return request({
494
-    url: '/api/cancelstockinfo/edit?cancel_time=' + cancel_stock_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id+"&dealer_id=" + dealer_id,
494
+    url: '/api/cancelstockinfo/edit?cancel_time=' + cancel_stock_time + '&id=' + id + '&type=' + type + '&manufacturer_id=' + manufacturer_id + '&dealer_id=' + dealer_id,
495 495
     method: 'post',
496 496
     data: params
497 497
   })
@@ -544,8 +544,6 @@ export function getStockDetail(params) {
544 544
   })
545 545
 }
546 546
 
547
-
548
-
549 547
 export function getPrintStockGood(params) {
550 548
   return request({
551 549
     url: '/api/print/stock',
@@ -554,7 +552,6 @@ export function getPrintStockGood(params) {
554 552
   })
555 553
 }
556 554
 
557
-
558 555
 export function getWarehouseOutUser(params) {
559 556
   return request({
560 557
     url: '/api/warehouseout/user',
@@ -562,3 +559,4 @@ export function getWarehouseOutUser(params) {
562 559
     params: params
563 560
   })
564 561
 }
562
+

+ 2 - 4
src/xt_pages/data/components/addDrugs.vue 查看文件

@@ -14,10 +14,10 @@
14 14
             <el-form-item label="药品名称 : " prop="drug_name" >
15 15
               <el-input v-model="form.drug_name" style="width:160px;" placeholder="" maxlength="30"></el-input>
16 16
             </el-form-item>
17
-            <el-form-item label="拼音 : " prop="pinyin" >
17
+            <el-form-item label="拼音 : " >
18 18
               <el-input v-model="form.pinyin" style="width:160px;" placeholder="" maxlength="30"></el-input>
19 19
             </el-form-item>
20
-            <el-form-item label="五笔 : " prop="wubi">
20
+            <el-form-item label="五笔 : " >
21 21
               <el-input v-model="form.wubi" style="width:160px;" placeholder="" maxlength="30"></el-input>
22 22
             </el-form-item>
23 23
             <el-form-item label="药品别名 : " prop="drug_alias">
@@ -407,8 +407,6 @@
407 407
 
408 408
         rules: {
409 409
           drug_name: [{ required: true, message: '请填写药品名称', trigger: 'blur'  }],
410
-          pinyin: [{ required: true, message: '请填写拼音' , trigger: 'blur' }],
411
-          wubi: [{ required: true, message: '请填写五笔' , trigger: 'blur' }],
412 410
           drug_alias: [{ required: true, message: '请选择药品类别', trigger: 'change' }],
413 411
           drug_spec: [{ required: true, message: '请填写药品规格',trigger: 'blur' }],
414 412
           drug_type: [{ required: true, message: '请填写药品类型',trigger: 'blur' }],

+ 29 - 3
src/xt_pages/data/components/drugs.vue 查看文件

@@ -78,7 +78,7 @@
78 78
           <el-button @click="openForm(scope.row.id)" type="primary" size="small">编辑</el-button>
79 79
           <!--<el-button type="primary" size="small" @click="clickSelfPayment(scope.row.id)">自付比例</el-button>-->
80 80
           <!--<el-button type="primary" size="small" @click="clickMainTain">单位维护</el-button>-->
81
-          <!--<el-button type="danger" size="small">删除</el-button>-->
81
+          <el-button type="danger" size="small" @click="deleteDurg(scope.row.id,scope.$index)">删除</el-button>
82 82
         </template>
83 83
       </el-table-column>
84 84
     </el-table>
@@ -121,7 +121,8 @@
121 121
     createMedicineInsurancePercent,
122 122
     editBaseDrugLib,
123 123
     getBaseDrugLib,
124
-    getBaseDrugLibList
124
+    getBaseDrugLibList,
125
+    deleteDurg
125 126
   } from '@/api/data'
126 127
 
127 128
   export default {
@@ -460,7 +461,32 @@
460 461
           }
461 462
           this.$refs.addDrugs.show(0, this.formValue)
462 463
         }
463
-      }, getList() {
464
+      }, 
465
+
466
+       deleteDurg(id,index){
467
+         console.log("id",id)
468
+            this.$confirm('确认删除吗?', '删除', {
469
+            confirmButtonText: '确 定',
470
+            cancelButtonText: '取 消',
471
+            type: 'warning'
472
+         }).then(() => {
473
+              const params = {
474
+                id:id,
475
+              }
476
+            deleteDurg(params).then(response => {
477
+              if (response.data.state == 1) {
478
+                  var msg = response.data.data.msg
479
+                  this.list.splice(index, 1);
480
+                  this.$message.success("删除成功")
481
+              } else {
482
+                  this.$message.error("药品已经出库不能删除")
483
+              }
484
+            })
485
+          })
486
+          .catch(() => {
487
+          })
488
+        },
489
+      getList() {
464 490
         let params = {
465 491
           page: this.page,
466 492
           limit: this.limit,

+ 0 - 6
src/xt_pages/stock/Dialog/goodInfoDailog.vue 查看文件

@@ -301,12 +301,6 @@
301 301
           good_name: [
302 302
             { required: true, message: '请输入耗材名称', trigger: 'blur' }
303 303
           ],
304
-          pinyin: [
305
-            { required: true, message: '请输入拼音', trigger: 'blur' }
306
-          ],
307
-          wubi: [
308
-            { required: true, message: '请输入五笔', trigger: 'blur' }
309
-          ],
310 304
           good_kind: [
311 305
             { required: true, message: '请选择耗材种类', trigger: 'change' }
312 306
           ],

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

@@ -89,7 +89,7 @@
89 89
 
90 90
           <el-table-column align="center" width="150">
91 91
             <template slot="header" slot-scope="scope">
92
-              <span>价<span style="color: red">*</span></span>
92
+              <span>进货价<span style="color: red">*</span></span>
93 93
             </template>
94 94
             <template slot-scope="scope">
95 95
               <!--<el-input type="number" v-model="scope.row.price"  @blur="handleBlur(scope.$index, scope.row)"></el-input>-->

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

@@ -144,7 +144,7 @@
144 144
 
145 145
           <el-table-column min-width="23" align="center">
146 146
             <template slot="header" slot-scope="scope">
147
-              <span>价<span style="color: red">*</span></span>
147
+              <span>出货价<span style="color: red">*</span></span>
148 148
             </template>
149 149
             <template slot-scope="scope">
150 150
               <!--<el-input type="number" v-model="scope.row.price"  @blur="handleBlur(scope.$index, scope.row)"></el-input>-->

+ 7 - 2
src/xt_pages/stock/stockQuery.vue 查看文件

@@ -38,12 +38,17 @@
38 38
             {{ scope.row.good_code }}
39 39
           </template>
40 40
         </el-table-column>
41
-        <el-table-column label="商品类型" align="center">
41
+        <el-table-column label="耗材名称" align="center">
42
+          <template slot-scope="scope">
43
+            {{ scope.row.good_name }}
44
+          </template>
45
+        </el-table-column>
46
+        <el-table-column label="耗材类型" align="center">
42 47
           <template slot-scope="scope">
43 48
             <span>{{ scope.row.type.type_name }}</span>
44 49
           </template>
45 50
         </el-table-column>
46
-        <el-table-column label="规格名称" align="center">
51
+        <el-table-column label="规格型号" align="center">
47 52
           <template slot-scope="scope">
48 53
             <span>{{ scope.row.specification_name }}</span>
49 54
           </template>

+ 43 - 12
src/xt_pages/workforce/components/tableWeeks.vue 查看文件

@@ -25,6 +25,20 @@
25 25
           </li>
26 26
         </ul>
27 27
       </div>
28
+      
29
+      <div  class="title"><span class="name">班 次</span> :</div>
30
+      <div class="time">
31
+        <ul class>
32
+          <li
33
+            :class="item.id == week_time ? 'active' : ''"
34
+            @click="selectWeekTime(item.id)"
35
+            v-for="item in weekTimes"
36
+            :key="item.id"
37
+          >
38
+            {{ item.name }}
39
+          </li>
40
+        </ul>
41
+      </div>
28 42
     </div>
29 43
     <el-table
30 44
       :row-style="{ color: '#303133' }"
@@ -171,6 +185,13 @@ export default {
171 185
       anticoagulants_confit: null,
172 186
 
173 187
       week_type: "1",
188
+      week_time:0,
189
+      weekTimes:[
190
+        {id:0,name:"全部"},
191
+        {id:1,name:"上午"},
192
+        {id:2,name:"下午"},
193
+        {id:3,name:"晚上"},
194
+      ],
174 195
       weekTitle: ["", "", "", "", "", "", ""],
175 196
       weekData: {
176 197
         Monday: [],
@@ -195,15 +216,20 @@ export default {
195 216
   methods: {
196 217
     printAction() {
197 218
       this.$router.push({
198
-        path: "/schedule/remind/print?week_type=" + this.week_type
219
+        path: "/schedule/remind/print?week_type=" + this.week_type+"&week_time="+this.week_time
199 220
       });
200 221
     },
201
-    getScheduleWeekDay(weekType) {
202
-      getScheduleWeekDay(weekType).then(response => {
222
+    getScheduleWeekDay() {
223
+        const params = {
224
+          week_type:this.week_type,
225
+          week_time:this.week_time,
226
+        }
227
+        console.log("params------",params)
228
+      getScheduleWeekDay(params).then(response => {
203 229
         this.scheduleData = [];
204 230
         if (response.data.state == 1) {
205 231
           this.scheduleData = response.data.data.schdules;
206
-          //console.log("排班-----", this.scheduleData);
232
+          console.log("排班-----", this.scheduleData);
207 233
         } else {
208 234
           this.$message.error("网络错误");
209 235
           return false;
@@ -290,11 +316,16 @@ export default {
290 316
     },
291 317
     selectWeekType(type) {
292 318
       this.week_type = type;
293
-      let params = {
294
-        week_type: this.week_type
295
-      };
296
-      this.getScheduleWeekDay(params);
319
+      // let params = {
320
+      //   week_type: this.week_type
321
+      // };
322
+      this.getScheduleWeekDay();
297 323
     },
324
+    selectWeekTime(type){
325
+       this.week_time = type
326
+       this.getScheduleWeekDay()
327
+    },
328
+
298 329
     getSchedulesType: function(type) {
299 330
       let type_name = "";
300 331
       switch (type) {
@@ -401,10 +432,10 @@ export default {
401 432
     if (this.week_type == 0) {
402 433
       this.week_type = 7;
403 434
     }
404
-    let params = {
405
-      week_type: this.week_type
406
-    };
407
-    this.getScheduleWeekDay(params);
435
+    // let params = {
436
+    //   week_type: this.week_type
437
+    // };
438
+    this.getScheduleWeekDay();
408 439
   }
409 440
 };
410 441
 </script>

+ 7 - 3
src/xt_pages/workforce/remind_print.vue 查看文件

@@ -123,10 +123,14 @@
123 123
       this.modeOptions = this.$store.getters.treatment_mode
124 124
       this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
125 125
       this.week_type = this.$route.query.week_type
126
+      this.week_time  = this.$route.query.week_time
127
+      
128
+      const params = {
129
+          week_type:this.week_type,
130
+          week_time:this.week_time,
131
+        }
126 132
 
127
-
128
-
129
-      getScheduleWeekDay({week_type: this.week_type}).then(rs => {
133
+      getScheduleWeekDay(params).then(rs => {
130 134
         var resp = rs.data
131 135
         console.log(resp)
132 136
         if (resp.state == 1) {