浏览代码

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

csx 3 年前
父节点
当前提交
5941d1b63a

+ 1 - 1
src/api/supply.js 查看文件

147
 
147
 
148
 export function saveGoodReturnOrder(data, warehouse_out_id, start_time, rate_of_concession, discount_amount, arrearage, payment, supplier_id) {
148
 export function saveGoodReturnOrder(data, warehouse_out_id, start_time, rate_of_concession, discount_amount, arrearage, payment, supplier_id) {
149
   return request({
149
   return request({
150
-    url: '/api/supply/savegoodreturnOrder?warehouse_out_id=' + warehouse_out_id + '&start_time=' + start_time + '&rate_of_concession=' + rate_of_concession + '&discount_amount=' + discount_amount + '&arrearage=' + arrearage + '&payment=' + payment + '&supplier_id=' + supplier_id,
150
+    url: '/api/supply/savegoodreturnOrder?warehouse_out_id=' + warehouse_out_id + '&start_time=' + start_time + '&rate_of_concession=' + rate_of_concession + '&discount_amount=' + discount_amount + '&arrerage=' + arrearage + '&payment=' + payment + '&supplier_id=' + supplier_id,
151
     method: 'post',
151
     method: 'post',
152
     data: data
152
     data: data
153
   })
153
   })

+ 2 - 2
src/views/layout/Layout.vue 查看文件

17
           <p>透析管理</p>
17
           <p>透析管理</p>
18
         </div>
18
         </div>
19
 
19
 
20
-         <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">
20
+         <!-- <div v-if="caigouShow" :class="index == 5 ? 'navOne navActive' : 'navOne'" @click="clickActive(5,'采购管理')">
21
            <i class="iconfont icon-kccx navIcon"></i>
21
            <i class="iconfont icon-kccx navIcon"></i>
22
            <p>采购管理</p>
22
            <p>采购管理</p>
23
-        </div>
23
+        </div> -->
24
         
24
         
25
         <div v-if="kucunShow" :class="index == 3 ? 'navOne navActive' : 'navOne'" @click="clickActive(3,'库房管理')">
25
         <div v-if="kucunShow" :class="index == 3 ? 'navOne navActive' : 'navOne'" @click="clickActive(3,'库房管理')">
26
           <i class="iconfont icon-kccx navIcon"></i>
26
           <i class="iconfont icon-kccx navIcon"></i>

+ 3 - 0
src/xt_pages/data/components/consumables.vue 查看文件

335
               register_number:"",
335
               register_number:"",
336
               is_user:"2",
336
               is_user:"2",
337
               number:"",
337
               number:"",
338
+              is_warehouse:"1",
338
             },
339
             },
339
             isVisibility: false,
340
             isVisibility: false,
340
           }
341
           }
733
             this.goodInfo.goodInfoDialog.formValue.number = response.data.data.goodInfo.number
734
             this.goodInfo.goodInfoDialog.formValue.number = response.data.data.goodInfo.number
734
            
735
            
735
             this.goodInfo.goodInfoDialog.formValue.is_user = response.data.data.goodInfo.is_user.toString()
736
             this.goodInfo.goodInfoDialog.formValue.is_user = response.data.data.goodInfo.is_user.toString()
737
+
738
+            this.goodInfo.goodInfoDialog.formValue.is_warehouse = response.data.data.goodInfo.is_warehouse.toString()
736
             
739
             
737
             this.$refs.addConsumable.show(row.id, this.goodInfo.goodInfoDialog.formValue)
740
             this.$refs.addConsumable.show(row.id, this.goodInfo.goodInfoDialog.formValue)
738
 
741
 

+ 4 - 4
src/xt_pages/dialysis/details/DialysisPrescription.vue 查看文件

147
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span>
147
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_shouji != "0" ? anticoagulant_shouji : "" }}</span>
148
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
148
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
149
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
149
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" ></span>
150
-            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38" >{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
151
-            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38)" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
150
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && this.$store.getters.xt_user.template_info.template_id != 13  && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38  && this.$store.getters.xt_user.template_info.template_id != 45">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
151
+            <span class="unit"  v-if="getValueStr('anticoagulant', 'anticoagulant') == 2  && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38  || this.$store.getters.xt_user.template_info.template_id == 45)" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
152
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
152
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_shouji != "0" ? "iu" : "" }}</span>
153
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
153
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span>
154
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span >
154
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4" >{{ anticoagulant_shouji != "0" ? "mg" : "" }}</span >
243
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span>
243
           <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') != 1">{{ anticoagulant_weichi != "0" ? anticoagulant_weichi : "" }}</span>
244
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
244
           <span v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
245
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
245
             <span class="content" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1"></span>
246
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
247
-            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38)">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
246
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && this.$store.getters.xt_user.template_info.template_id != 13 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 40 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.template_id != 45">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
247
+            <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 2 && (this.$store.getters.xt_user.template_info.template_id == 13 ||  this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 40 || this.$store.getters.xt_user.template_info.template_id == 38 ||  this.$store.getters.xt_user.template_info.template_id == 45)">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
248
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
248
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 3">{{ anticoagulant_weichi != "0" ? "iu/h" : "" }}</span>
249
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
249
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 1">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
250
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>
250
             <span class="unit" v-if="getValueStr('anticoagulant', 'anticoagulant') == 4">{{ anticoagulant_weichi != "0" ? "mg/h" : "" }}</span>

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

203
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
203
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
204
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
204
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
205
                             <el-form-item
205
                             <el-form-item
206
-                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 '
206
+                                    v-if='this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987  && this.$store.getters.xt_user.template_info.template_id != 45'
207
                                     :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
207
                                     :label="'首剂(' + anticoagulant.shouji_unit + ') : '">
208
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
208
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
209
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
209
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
212
                             </el-form-item>
212
                             </el-form-item>
213
 
213
 
214
                             <el-form-item
214
                             <el-form-item
215
-                                    v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987'
215
+                                    v-if='this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.template_id == 45 || this.$store.getters.xt_user.template_info.org_id == 9987'
216
                                     :label="'首剂(mg) : '">
216
                                     :label="'首剂(mg) : '">
217
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
217
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
218
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
218
                                           v-model="dialysisPrescription.anticoagulant_shouji"></el-input>
257
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
257
                         <div v-if="this.$store.getters.xt_user.template_info.org_id != 10157">
258
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
258
                           <div v-if="this.$store.getters.xt_user.template_info.org_id != 10101">
259
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
259
                             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '"
260
-                                          v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987">
260
+                                          v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id != 21 && this.$store.getters.xt_user.template_info.template_id != 23 && this.$store.getters.xt_user.template_info.template_id != 38 && this.$store.getters.xt_user.template_info.org_id != 9987 && this.$store.getters.xt_user.template_info.template_id != 45">
261
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
261
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
262
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
262
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
263
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
263
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
264
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
264
                                           v-model="dialysisPrescription.no_anticoagulant_weichi"></el-input>
265
                             </el-form-item>
265
                             </el-form-item>
266
                             <el-form-item :label="'维持(mg/h) : '"
266
                             <el-form-item :label="'维持(mg/h) : '"
267
-                                          v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987">
267
+                                          v-if="anticoagulant.weichi != -1 && this.$store.getters.xt_user.template_info.template_id == 21 || this.$store.getters.xt_user.template_info.template_id == 23 || this.$store.getters.xt_user.template_info.template_id == 38 || this.$store.getters.xt_user.template_info.org_id == 9987 ||  this.$store.getters.xt_user.template_info.template_id == 45">
268
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
268
                                 <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1"
269
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
269
                                           v-model="dialysisPrescription.anticoagulant_weichi"></el-input>
270
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"
270
                                 <el-input type="number" disabled v-if="dialysisPrescription.anticoagulant == 1"

+ 19 - 13
src/xt_pages/dialysis/dialysisPrintOrder.vue 查看文件

65
           >打印</el-button
65
           >打印</el-button
66
         >
66
         >
67
       </template>
67
       </template>
68
-
68
+      <template v-if="org_template_info.template_id == 46">
69
+        <el-button
70
+          :loading="loading"
71
+          size="small"
72
+          icon="el-icon-printer"
73
+          @click="printThisPage"
74
+          type="primary"
75
+          >打印</el-button
76
+        >
77
+      </template>
69
       <template v-if="org_template_info.template_id == 5">
78
       <template v-if="org_template_info.template_id == 5">
70
         <div>
79
         <div>
71
           <el-button
80
           <el-button
614
           >打印</el-button
623
           >打印</el-button
615
         >
624
         >
616
       </template>
625
       </template>
617
-      <template v-if="org_template_info.template_id == 46">
618
-        <el-button
619
-          :loading="loading"
620
-          size="small"
621
-          icon="el-icon-printer"
622
-          @click="printThisPage"
623
-          type="primary"
624
-          >打印</el-button
625
-        >
626
-      </template>
627
     </div>
626
     </div>
628
     <div class="app-container" style="min-height: 0">
627
     <div class="app-container" style="min-height: 0">
629
       <!--<div class="order-print-btn"-->
628
       <!--<div class="order-print-btn"-->
979
             v-if="org_template_info.template_id == 46"
978
             v-if="org_template_info.template_id == 46"
980
           >
979
           >
981
           </DialysisPrintOrderFortySix>
980
           </DialysisPrintOrderFortySix>
981
+
982
+          <DialysisPrintOrderFortySeven
983
+            v-bind:childResponse="childResponse"
984
+            v-if="org_template_info.template_id == 47"
985
+          >
986
+          </DialysisPrintOrderFortySeven>
982
         </div>
987
         </div>
983
       </el-container>
988
       </el-container>
984
     </div>
989
     </div>
1043
 import DialysisPrintOrderFortyFour from "./template/DialysisPrintOrderFortyFour";
1048
 import DialysisPrintOrderFortyFour from "./template/DialysisPrintOrderFortyFour";
1044
 import DialysisPrintOrderFortyFive from "./template/DialysisPrintOrderFortyFive";
1049
 import DialysisPrintOrderFortyFive from "./template/DialysisPrintOrderFortyFive";
1045
 import DialysisPrintOrderFortySix from "./template/DialysisPrintOrderFortySix";
1050
 import DialysisPrintOrderFortySix from "./template/DialysisPrintOrderFortySix";
1051
+import DialysisPrintOrderFortySeven from "./template/DialysisPrintOrderFortySeven";
1046
 export default {
1052
 export default {
1047
   name: "dialysisPrintOrder",
1053
   name: "dialysisPrintOrder",
1048
   components: {
1054
   components: {
1055
+    DialysisPrintOrderFortySeven,
1049
     DialysisPrintOrderFortySix,
1056
     DialysisPrintOrderFortySix,
1050
     DialysisPrintOrderFortyFive,
1057
     DialysisPrintOrderFortyFive,
1051
     DialysisPrintOrderFortyFour,
1058
     DialysisPrintOrderFortyFour,
1312
       } else if (
1319
       } else if (
1313
         this.org_template_info.template_id == 6 ||
1320
         this.org_template_info.template_id == 6 ||
1314
         this.org_template_info.template_id == 10 ||
1321
         this.org_template_info.template_id == 10 ||
1315
-        this.org_template_info.template_id == 11 ||
1316
-        this.org_template_info.template_id == 46
1322
+        this.org_template_info.template_id == 11
1317
       ) {
1323
       ) {
1318
         printJS({
1324
         printJS({
1319
           printable: "dialysis-print-box-1",
1325
           printable: "dialysis-print-box-1",

+ 70 - 19
src/xt_pages/dialysis/template/DialysisPrintOrderFortySix.vue 查看文件

86
           </div>
86
           </div>
87
           <div class="inline_block" style="margin-left: 5px">
87
           <div class="inline_block" style="margin-left: 5px">
88
             住院号/门诊号:
88
             住院号/门诊号:
89
-            <div
90
-              class="under_line"
91
-              style="width: 70px; text-align: left"
92
-            >
89
+            <div class="under_line" style="width: 70px; text-align: left">
93
               {{ patientInfo.admission_number }}
90
               {{ patientInfo.admission_number }}
94
             </div>
91
             </div>
95
           </div>
92
           </div>
761
                     class="row"
758
                     class="row"
762
                     style="padding: 2px 0; line-height: 23px; display: flex"
759
                     style="padding: 2px 0; line-height: 23px; display: flex"
763
                   >
760
                   >
761
+                    <div class="inline_block" style="flex: 1">
762
+                      干体重:
763
+                      <div
764
+                        class="under_line"
765
+                        style="width: 100px; text-align: center"
766
+                      >
767
+                        {{
768
+                          predialysis.dry_weight ? predialysis.dry_weight : "/"
769
+                        }}
770
+                      </div>
771
+                      kg
772
+                    </div>
764
                     <div class="inline_block" style="flex: 1">
773
                     <div class="inline_block" style="flex: 1">
765
                       上次透后体重:
774
                       上次透后体重:
766
                       <div
775
                       <div
797
                       kg
806
                       kg
798
                     </div>
807
                     </div>
799
                     <div class="inline_block" style="flex: 1">
808
                     <div class="inline_block" style="flex: 1">
800
-                      计划超滤量:
809
+                      目标超滤量:
801
                       <div
810
                       <div
802
                         class="under_line"
811
                         class="under_line"
803
                         style="width: 100px; text-align: center"
812
                         style="width: 100px; text-align: center"
810
                       </div>
819
                       </div>
811
                       L
820
                       L
812
                     </div>
821
                     </div>
813
-                    <div class="inline_block" style="flex: 1">
814
-                      干体重:
815
-                      <div
816
-                        class="under_line"
817
-                        style="width: 100px; text-align: center"
818
-                      >
819
-                        {{
820
-                          predialysis.dry_weight ? predialysis.dry_weight : "/"
821
-                        }}
822
+                  </div>
823
+
824
+                  <div class="row" style="padding:2px 0;line-height: 23px">
825
+                    <div class="inline_block" style="flex:1;">
826
+                      透后体重:
827
+                      <div class="under_line" style="width: 70px;text-align: center">
828
+                        {{ afterdialysis.weight_after ? parseFloat(afterdialysis.weight_after - afterdialysis.additional_weight).toFixed(1) : "/" }}
822
                       </div>
829
                       </div>
823
                       kg
830
                       kg
824
                     </div>
831
                     </div>
1569
             </div>
1576
             </div>
1570
             <div class="inline_block" style="margin-left: 5px">
1577
             <div class="inline_block" style="margin-left: 5px">
1571
               住院号/门诊号:
1578
               住院号/门诊号:
1572
-              <div
1573
-                class="under_line"
1574
-                style="width: 70px; text-align: left"
1575
-              >
1579
+              <div class="under_line" style="width: 70px; text-align: left">
1576
                 {{ patientInfo.admission_number }}
1580
                 {{ patientInfo.admission_number }}
1577
               </div>
1581
               </div>
1578
-             
1579
             </div>
1582
             </div>
1580
           </div>
1583
           </div>
1581
         </template>
1584
         </template>
1695
                   </td>
1698
                   </td>
1696
                 </tr>
1699
                 </tr>
1697
               </template>
1700
               </template>
1701
+              <tr>
1702
+                <td
1703
+                  colspan="7"
1704
+                  style="
1705
+                    letter-spacing: 5px;
1706
+                    text-align: center;
1707
+                    font-weight: 520;
1708
+                    font-size: 16px;
1709
+                    padding: 6px 8px;
1710
+                    line-height: 30px;
1711
+                  "
1712
+                >
1713
+                  透析后情况
1714
+                </td>
1715
+              </tr>
1716
+              <tr>
1717
+                <td colspan="7">
1718
+                  <div
1719
+                    class="row"
1720
+                    style="padding: 2px 0; line-height: 23px; display: flex"
1721
+                  >
1722
+                    <div
1723
+                      class="inline_block"
1724
+                      style="flex: 1; display: inline-block"
1725
+                    >
1726
+                      治疗小结:
1727
+                      <div
1728
+                        class="under_line"
1729
+                        style="
1730
+                          width: 860px;
1731
+                          line-height: 25px;
1732
+                          text-align: left;
1733
+                          margin-left: 2px;
1734
+                          display: inline-block;
1735
+                          white-space: normal;
1736
+                        "
1737
+                      >
1738
+                        {{
1739
+                          summary.dialysis_summary
1740
+                            ? summary.dialysis_summary
1741
+                            : "/"
1742
+                        }}
1743
+                      </div>
1744
+                    </div>
1745
+                  </div>
1746
+                </td>
1747
+              </tr>
1748
+
1698
               <tr>
1749
               <tr>
1699
                 <td colspan="7">
1750
                 <td colspan="7">
1700
                   <div
1751
                   <div

+ 1 - 1
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 查看文件

176
     <el-dialog
176
     <el-dialog
177
         title="打印"
177
         title="打印"
178
         :visible.sync="centerDialogVisible"
178
         :visible.sync="centerDialogVisible"
179
-        width="600px"
179
+        width="620px"
180
         center>
180
         center>
181
       <el-button @click="allCheck">全选</el-button>
181
       <el-button @click="allCheck">全选</el-button>
182
       <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">处方笺打印</div>
182
       <div style="text-align:center;margin-top:10px;font-weight:bold;font-size:20px;">处方笺打印</div>

+ 74 - 57
src/xt_pages/outpatientDoctorStation/template/printSix.vue 查看文件

13
           {{ orgname }}第二类精神处方笺
13
           {{ orgname }}第二类精神处方笺
14
         </div>
14
         </div>
15
         <div
15
         <div
16
-            v-if="prescriptions[index].med_type != '1112' && prescriptions[index].med_type != '1111'"
16
+          v-if="
17
+            prescriptions[index].med_type != '1112' &&
18
+            prescriptions[index].med_type != '1111'
19
+          "
17
           class="printTitle"
20
           class="printTitle"
18
         >
21
         >
19
-          {{ orgname }}处方笺  普通
20
-<!--        <div v-else style="line-height: 60px;font-size: 30px;">{{ orgname }}处方笺</div>-->
21
-<!--          <img class="logo" src="../assets/shuiyin.jpg" alt="加载失败..">-->
22
+          {{ orgname }}处方笺 普通
23
+          <!--        <div v-else style="line-height: 60px;font-size: 30px;">{{ orgname }}处方笺</div>-->
24
+          <!--          <img class="logo" src="../assets/shuiyin.jpg" alt="加载失败..">-->
22
         </div>
25
         </div>
23
 
26
 
27
+        <div class="infoTitle" style="border-bottom: 1px solid #000">
28
+          <p style="width: 174px">科室:{{ item.info ? getDepart(item.info.departments) : "" }}</p>
29
+          <p style="width: 176px">费别:</p>
30
+          <p style="width: 198px" v-if="hisPatient.number.length <= 12">
31
+            门诊号:{{ hisPatient.number ? hisPatient.number : "" }}
32
+          </p>
24
 
33
 
25
-
26
-        <div class="infoTitle" style="border-bottom:1px solid #000;">
27
-          <p>科室:{{ item.info ? getDepart(item.info.departments) : "" }}</p>
28
-          <p>费别:</p>
29
-          <p>门诊号:{{ hisPatient.number ? hisPatient.number : "" }}</p>
30
-          <p>
31
-            <span>{{record_date.split("-")[0]}}年</span> <span>{{record_date.split("-")[1]}}月</span> <span>{{record_date.split("-")[2]}}日</span>
34
+          <p style="text-align: right; width: 155px">
35
+            <span>{{ record_date.split("-")[0] }}年</span
36
+            ><span>{{ record_date.split("-")[1] }}月</span
37
+            ><span>{{ record_date.split("-")[2] }}日</span>
32
             <!-- {{getTime(item.ctime)?getTime(item.ctime):""}} -->
38
             <!-- {{getTime(item.ctime)?getTime(item.ctime):""}} -->
33
           </p>
39
           </p>
34
         </div>
40
         </div>
35
-
36
-        <div class="infoTitle" style="border-bottom:1px solid #000;">
41
+        <div
42
+          class="infoTitle"
43
+          style="border-bottom: 1px solid #000"
44
+          v-if="hisPatient.number.length > 12"
45
+        >
46
+          <p>
47
+            门诊号:{{
48
+              hisPatient.number ? hisPatient.number : ""
49
+            }}
50
+          </p>
51
+        </div>
52
+        <div class="infoTitle" style="border-bottom: 1px solid #000">
37
           <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
53
           <p>姓名:{{ item.patient.name ? item.patient.name : "" }}</p>
38
           <p>
54
           <p>
39
             性别:
55
             性别:
41
             <span v-if="item.patient.gender == 2">女</span>
57
             <span v-if="item.patient.gender == 2">女</span>
42
           </p>
58
           </p>
43
           <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
59
           <p>年龄:{{ getAge(item.patient) ? getAge(item.patient) : "" }}岁</p>
44
-          <p>电话:{{item.patient.phone}}</p>
60
+          <p>电话:{{ item.patient.phone }}</p>
45
         </div>
61
         </div>
46
-        <div class="infoTitle" style="border-bottom:1px solid #000;">
47
-          <p>地址:{{ item.patient.home_address }}</p>
62
+        <div class="infoTitle" style="border-bottom: 1px solid #000">
63
+          <p style="width:100%">地址:{{ item.patient.home_address }}</p>
48
         </div>
64
         </div>
49
         <div class="infoTitle">
65
         <div class="infoTitle">
50
-          <p>诊断:{{ getDiagnosis(item.info.diagnosis) }}</p>
66
+          <p style="width:100%">诊断:{{ getDiagnosis(item.info.diagnosis) }}</p>
51
         </div>
67
         </div>
52
 
68
 
53
         <div class="prescriptionBox">
69
         <div class="prescriptionBox">
59
           >
75
           >
60
             <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
76
             <!-- <div class="drugsOne"><span style="font-weight:bold;">{{ index+1 + '.' }}</span>{{it.advice_name?it.advice_name:""}}&nbsp;&nbsp;{{it.single_dose}}{{it.single_dose_unit}}&nbsp;×&nbsp; {{it.prescribing_number}}{{it.prescribing_number_unit}}</div> -->
61
             <div class="drugsOne">
77
             <div class="drugsOne">
62
-              <span style="font-weight: bold">{{ index + 1 + "." }}</span
63
-              >{{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
78
+              <!-- <span style="font-weight: bold">{{ index + 1 + "." }}</span> -->
79
+              {{ it.advice_name ? it.advice_name : "" }}&nbsp;&nbsp;<span
64
                 v-if="it.drug.min_unit != it.drug.dose_unit"
80
                 v-if="it.drug.min_unit != it.drug.dose_unit"
65
                 >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
81
                 >{{ it.drug.dose }}{{ it.drug.dose_unit }}&nbsp;* &nbsp;</span
66
               >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
82
               >{{ it.drug.min_number }}{{ it.drug.min_unit }}/{{
95
             :key="index"
111
             :key="index"
96
           >
112
           >
97
             <div class="drugsOne">
113
             <div class="drugsOne">
98
-              <span style="font-weight: bold">{{ index + 1 + "." }}</span
99
-              >{{
114
+              <!-- <span style="font-weight: bold">{{ index + 1 + "." }}</span> -->
115
+              {{
100
                 it.type == 2
116
                 it.type == 2
101
                   ? getProjectName(it.project_id)
117
                   ? getProjectName(it.project_id)
102
                     ? getProjectName(it.project_id)
118
                     ? getProjectName(it.project_id)
128
         <div class="infoTitle"></div>
144
         <div class="infoTitle"></div>
129
         <div class="actionBar" v-if="org_id != 10188">
145
         <div class="actionBar" v-if="org_id != 10188">
130
           <div class="actionBar_list">
146
           <div class="actionBar_list">
131
-            医师:
132
-           <span>{{ item.doctor ? item.doctor : "" }}
133
-             </span>
134
-
135
-            <!-- <p class="actionBar_val" style="border-bottom:3px solid red">
136
-
137
-            </p> -->
147
+            <div style="width:120px;">
148
+                医师:
149
+            <span>{{ item.doctor ? item.doctor : "" }} </span>
150
+            </div>
151
+          
138
           </div>
152
           </div>
139
           <div class="actionBar_list">
153
           <div class="actionBar_list">
140
-            审核:{{
154
+            <div style="width:120px;">
155
+              审核:{{
141
               getDoctor(item.advices[0].checker)
156
               getDoctor(item.advices[0].checker)
142
                 ? getDoctor(item.advices[0].checker)
157
                 ? getDoctor(item.advices[0].checker)
143
                 : ""
158
                 : ""
144
             }}
159
             }}
145
-            <!-- <div class="actionBar_val">
146
-
147
-            </div> -->
160
+            </div>
161
+            
148
           </div>
162
           </div>
149
 
163
 
150
           <div class="actionBar_list">
164
           <div class="actionBar_list">
151
-            金额:
165
+            <div style="width:120px;">
166
+                金额:
152
             {{
167
             {{
153
               getTotalOne(item.id).toFixed(2)
168
               getTotalOne(item.id).toFixed(2)
154
                 ? getTotalOne(item.id).toFixed(2)
169
                 ? getTotalOne(item.id).toFixed(2)
155
                 : 0
170
                 : 0
156
             }}
171
             }}
172
+            </div>
173
+          
157
             <!-- <div class="actionBar_val">
174
             <!-- <div class="actionBar_val">
158
 
175
 
159
             </div> -->
176
             </div> -->
161
         </div>
178
         </div>
162
         <div class="actionBar">
179
         <div class="actionBar">
163
           <div class="actionBar_list">
180
           <div class="actionBar_list">
164
-            <div>调配:</div>
181
+            <div style="width:120px;">调配:</div>
165
             <!-- <div class="actionBar_val"></div> -->
182
             <!-- <div class="actionBar_val"></div> -->
166
           </div>
183
           </div>
167
           <div class="actionBar_list">
184
           <div class="actionBar_list">
168
-            <div>
185
+            <div style="width:120px;">
169
               核对:{{
186
               核对:{{
170
                 getDoctor(item.advices[0].checker)
187
                 getDoctor(item.advices[0].checker)
171
                   ? getDoctor(item.advices[0].checker)
188
                   ? getDoctor(item.advices[0].checker)
177
             </div> -->
194
             </div> -->
178
           </div>
195
           </div>
179
           <div class="actionBar_list">
196
           <div class="actionBar_list">
180
-            <div>
197
+            <div style="width:120px;">
181
               发药:{{
198
               发药:{{
182
                 getDoctor(item.advices[0].execution_staff)
199
                 getDoctor(item.advices[0].execution_staff)
183
                   ? getDoctor(item.advices[0].execution_staff)
200
                   ? getDoctor(item.advices[0].execution_staff)
184
                   : ""
201
                   : ""
185
               }}
202
               }}
203
+
204
+              <!-- <span>占位符</span> -->
186
             </div>
205
             </div>
187
             <!-- <div class="actionBar_val">
206
             <!-- <div class="actionBar_val">
188
 
207
 
265
     },
284
     },
266
     getTime(value, temp) {
285
     getTime(value, temp) {
267
       if (value != undefined) {
286
       if (value != undefined) {
268
-
269
         return uParseTime(value, temp);
287
         return uParseTime(value, temp);
270
       }
288
       }
271
       return "";
289
       return "";
394
       return project_name;
412
       return project_name;
395
     },
413
     },
396
 
414
 
397
-    getDiagnosis(id){
398
-        let ids = id.split(",")
399
-        var name = ""
400
-        for(let i = 0; i < ids.length; i++){
401
-
402
-          for(let b=0;b<this.diagnoses.length;b++){
403
-            if(parseInt(ids[i]) == this.diagnoses[b].id){
404
-              if(name.length == 0){
405
-                name = this.diagnoses[b].class_name
406
-              }else{
407
-                name = name +"," + this.diagnoses[b].class_name
408
-
409
-              }
415
+    getDiagnosis(id) {
416
+      let ids = id.split(",");
417
+      var name = "";
418
+      for (let i = 0; i < ids.length; i++) {
419
+        for (let b = 0; b < this.diagnoses.length; b++) {
420
+          if (parseInt(ids[i]) == this.diagnoses[b].id) {
421
+            if (name.length == 0) {
422
+              name = this.diagnoses[b].class_name;
423
+            } else {
424
+              name = name + "," + this.diagnoses[b].class_name;
410
             }
425
             }
411
           }
426
           }
412
         }
427
         }
413
-        return name
414
       }
428
       }
429
+      return name;
430
+    },
415
   },
431
   },
416
   created() {
432
   created() {
417
     this.getAllDoctorList();
433
     this.getAllDoctorList();
447
   text-align: center;
463
   text-align: center;
448
   font-weight: bold;
464
   font-weight: bold;
449
   display: flex;
465
   display: flex;
450
-    position: relative;
451
-    left: 50%;
452
-    transform: translateX(-50px);
466
+  position: relative;
467
+  left: 50%;
468
+  transform: translateX(-50px);
453
 }
469
 }
454
 .infoTitle_thin {
470
 .infoTitle_thin {
455
   display: flex;
471
   display: flex;
459
   padding: 0 10px;
475
   padding: 0 10px;
460
 }
476
 }
461
 .infoTitle_thin p {
477
 .infoTitle_thin p {
462
-  width: 200px;
478
+  width: 250px;
463
 }
479
 }
464
 .infoTitle {
480
 .infoTitle {
465
   display: flex;
481
   display: flex;
469
   padding: 0 10px;
485
   padding: 0 10px;
470
 }
486
 }
471
 .infoTitle p {
487
 .infoTitle p {
472
-  width: 200px;
488
+  width: 165px;
473
 }
489
 }
474
 .infoMain {
490
 .infoMain {
475
   display: flex;
491
   display: flex;
538
   width: 150px;
554
   width: 150px;
539
 }
555
 }
540
 
556
 
541
-.logo{}
557
+.logo {
558
+}
542
 </style>
559
 </style>

+ 25 - 4
src/xt_pages/stock/Dialog/goodInfoDailog.vue 查看文件

201
             
201
             
202
             <el-form-item label="是否零用:">
202
             <el-form-item label="是否零用:">
203
 
203
 
204
-              <el-select v-model="form.is_user" style="width:160px" filterable placeholder="请选择">
204
+              <el-select v-model="form.is_user" style="width:160px" filterable placeholder="请选择" @change="changeUse">
205
                   <el-option
205
                   <el-option
206
                           v-for="(item,index) in userList"
206
                           v-for="(item,index) in userList"
207
                           :key="index"
207
                           :key="index"
210
                   </el-option>
210
                   </el-option>
211
               </el-select>
211
               </el-select>
212
              </el-form-item>
212
              </el-form-item>
213
-
213
+           
214
+            <el-form-item label="是否自动出库:" v-if="form.is_user == 1">
215
+              <el-select v-model="form.is_warehouse" style="width:160px" filterable placeholder="请选择">
216
+                  <el-option
217
+                          v-for="(item,index) in userList"
218
+                          :key="index"
219
+                          :label="item.name"
220
+                          :value="item.id">
221
+                  </el-option>
222
+              </el-select>
223
+             </el-form-item>
224
+ 
225
+          
214
             <el-form-item label="批准文号:" >
226
             <el-form-item label="批准文号:" >
215
               <el-input v-model="form.number" style="width:180px"></el-input>
227
               <el-input v-model="form.number" style="width:180px"></el-input>
216
             </el-form-item>
228
             </el-form-item>
217
 
229
 
230
+   
231
+
218
 
232
 
219
             <el-form-item label="备注 : " prop="name" style="width:100%;">
233
             <el-form-item label="备注 : " prop="name" style="width:100%;">
220
               <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
234
               <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="form.remark"></el-input>
388
           register_number:"",
402
           register_number:"",
389
           is_user:"2",
403
           is_user:"2",
390
           number:"",
404
           number:"",
405
+          is_warehouse:"1",
391
         },
406
         },
392
 
407
 
393
         rules: {
408
         rules: {
616
         form["register_number"] = this.form.register_number
631
         form["register_number"] = this.form.register_number
617
         form["is_user"] = this.form.is_user
632
         form["is_user"] = this.form.is_user
618
         form["number"] = this.form.number
633
         form["number"] = this.form.number
619
-
634
+        form["is_warehouse"] = this.form.is_warehouse
620
         return form
635
         return form
621
       }, changeSelected: function(val) {
636
       }, changeSelected: function(val) {
622
         console.log(val)
637
         console.log(val)
690
         }
705
         }
691
       },
706
       },
692
      changeDefaultCountUnit(val){
707
      changeDefaultCountUnit(val){
693
-       console.log("val2222",val)
708
+      
694
        this.form.default_count_unit = ''
709
        this.form.default_count_unit = ''
695
         this.form.default_count_unit = val
710
         this.form.default_count_unit = val
711
+      },
712
+      changeUse(val){
713
+        console.log("val2222",val)
714
+        if(val == 1){
715
+         this.form.is_user = val
716
+        }
696
       }
717
       }
697
     },
718
     },
698
     watch: {
719
     watch: {

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

32
       placeholder="选择日期"
32
       placeholder="选择日期"
33
       @change="changeEndTime">
33
       @change="changeEndTime">
34
       </el-date-picker>
34
       </el-date-picker>
35
-    </div> 
35
+    </div>
36
     <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" >
36
     <el-table :data="tableList" border :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }" >
37
         <el-table-column type="selection" width="55" align="center"> </el-table-column>
37
         <el-table-column type="selection" width="55" align="center"> </el-table-column>
38
         <el-table-column  prop="date" label="报损日期" align="center">
38
         <el-table-column  prop="date" label="报损日期" align="center">
91
           <el-row>
91
           <el-row>
92
             <el-col :span="8">
92
             <el-col :span="8">
93
               <el-form-item label="入库单号:">
93
               <el-form-item label="入库单号:">
94
-                 <el-input v-model ="form.warehouseing_order" style="width:200px"></el-input>
94
+                 <el-input v-model ="form.warehousing_order" style="width:200px"></el-input>
95
               </el-form-item>
95
               </el-form-item>
96
             </el-col>
96
             </el-col>
97
             <el-col :span="8">
97
             <el-col :span="8">
140
               </el-table-column>
140
               </el-table-column>
141
               <el-table-column prop="address" label="报损金额" align="center">
141
               <el-table-column prop="address" label="报损金额" align="center">
142
                 <template slot-scope="scope">
142
                 <template slot-scope="scope">
143
-                  <span v-if="scope.row.XtBaseDrug.min_price!=0">{{scope.row.XtBaseDrug.min_price}} </span> 
143
+                  <span v-if="scope.row.XtBaseDrug.min_price!=0">{{scope.row.XtBaseDrug.min_price}} </span>
144
                 </template>
144
                 </template>
145
               </el-table-column>
145
               </el-table-column>
146
 
146
 
147
               <el-table-column prop="address" label="盘点原因" align="center">
147
               <el-table-column prop="address" label="盘点原因" align="center">
148
                 <template slot-scope="scope">
148
                 <template slot-scope="scope">
149
-                  <span v-if="scope.row.type == 6">默认</span> 
150
-                  <span v-if="scope.row.type == 1">到期退货</span> 
151
-                  <span v-if="scope.row.type == 2">异常退货</span> 
152
-                  <span v-if="scope.row.type == 3">退货</span> 
153
-                  <span v-if="scope.row.type == 4">人为损坏</span> 
154
-                  <span v-if="scope.row.type == 5">不计入报损分析</span> 
149
+                  <span v-if="scope.row.type == 6">默认</span>
150
+                  <span v-if="scope.row.type == 1">到期退货</span>
151
+                  <span v-if="scope.row.type == 2">异常退货</span>
152
+                  <span v-if="scope.row.type == 3">退货</span>
153
+                  <span v-if="scope.row.type == 4">人为损坏</span>
154
+                  <span v-if="scope.row.type == 5">不计入报损分析</span>
155
                 </template>
155
                 </template>
156
               </el-table-column>
156
               </el-table-column>
157
             </el-table>
157
             </el-table>
261
         }
261
         }
262
     },
262
     },
263
     methods:{
263
     methods:{
264
-      
264
+
265
         search(){
265
         search(){
266
           this.getlist()
266
           this.getlist()
267
         },
267
         },
273
           this.page = val
273
           this.page = val
274
           this.getlist()
274
           this.getlist()
275
         },
275
         },
276
-       
276
+
277
         getTime(val) {
277
         getTime(val) {
278
          if(val < 0){
278
          if(val < 0){
279
             return ""
279
             return ""
291
       getlist(){
291
       getlist(){
292
         var params = {
292
         var params = {
293
           limit:this.limit,
293
           limit:this.limit,
294
-          page:this.page, 
294
+          page:this.page,
295
           start_time:this.start_time,
295
           start_time:this.start_time,
296
           end_time:this.end_time,
296
           end_time:this.end_time,
297
           keyword:this.searchKey,
297
           keyword:this.searchKey,
298
         }
298
         }
299
-       
299
+
300
         getDrugDamageList(params).then(response=>{
300
         getDrugDamageList(params).then(response=>{
301
            if(response.data.state == 1){
301
            if(response.data.state == 1){
302
              this.tableList = response.data.data.list
302
              this.tableList = response.data.data.list
313
           if(id == this.doctorList[i].admin_user_id){
313
           if(id == this.doctorList[i].admin_user_id){
314
             user_name = this.doctorList[i].user_name
314
             user_name = this.doctorList[i].user_name
315
           }
315
           }
316
-        } 
316
+        }
317
         return user_name
317
         return user_name
318
      },
318
      },
319
      changeStartTime(){
319
      changeStartTime(){
325
        this.getlist()
325
        this.getlist()
326
      },
326
      },
327
      getTotalCount(drugid,max_unit,min_unit,min_number){
327
      getTotalCount(drugid,max_unit,min_unit,min_number){
328
-        
328
+
329
         var total = 0
329
         var total = 0
330
         var str = ""
330
         var str = ""
331
         var str_min = ""
331
         var str_min = ""
343
         return str+str_min
343
         return str+str_min
344
      },
344
      },
345
      getTotalPrice(drugid,minprice){
345
      getTotalPrice(drugid,minprice){
346
-        var total = 0 
346
+        var total = 0
347
         for(let i=0;i<this.datamageList.length;i++){
347
         for(let i=0;i<this.datamageList.length;i++){
348
           if(drugid == this.datamageList[i].drug_id){
348
           if(drugid == this.datamageList[i].drug_id){
349
             total+=this.datamageList[i].count
349
             total+=this.datamageList[i].count
358
            warehouseing_order:this.form.warehousing_order,
358
            warehouseing_order:this.form.warehousing_order,
359
            type:this.form.type,
359
            type:this.form.type,
360
          }
360
          }
361
-        
361
+
362
         this.dialogVisible = true
362
         this.dialogVisible = true
363
         getDamagedByDrugId(params).then(response=>{
363
         getDamagedByDrugId(params).then(response=>{
364
            if(response.data.state ==1){
364
            if(response.data.state ==1){
368
                list[i].min_number == list[i].XtBaseDrug.min_number
368
                list[i].min_number == list[i].XtBaseDrug.min_number
369
                list[i].total = 0
369
                list[i].total = 0
370
              }
370
              }
371
-            
371
+
372
 
372
 
373
              for(let i=0;i<list.length;i++){
373
              for(let i=0;i<list.length;i++){
374
                this.drug_name = list[0].drug_name
374
                this.drug_name = list[0].drug_name
388
         })
388
         })
389
      },
389
      },
390
      getDamagedCount(total){
390
      getDamagedCount(total){
391
-     
391
+
392
       var str = ""
392
       var str = ""
393
       var min_str = ""
393
       var min_str = ""
394
       if(total< this.min_number){
394
       if(total< this.min_number){
406
       return str + min_str
406
       return str + min_str
407
      },
407
      },
408
     getDamagedCountOne(total){
408
     getDamagedCountOne(total){
409
-     
409
+
410
       var str = ""
410
       var str = ""
411
       var min_str = ""
411
       var min_str = ""
412
       if(total< this.min_number){
412
       if(total< this.min_number){
413
         str = ""
413
         str = ""
414
-        min_str = total 
414
+        min_str = total
415
       }
415
       }
416
      if(total >= this.min_number){
416
      if(total >= this.min_number){
417
         if(parseInt(total/this.min_number)!=0){
417
         if(parseInt(total/this.min_number)!=0){
430
        var total_count =  this.getDamagedCountOne(this.total_count)
430
        var total_count =  this.getDamagedCountOne(this.total_count)
431
        var all_count = 0
431
        var all_count = 0
432
        all_count =  total_count * this.min_number
432
        all_count =  total_count * this.min_number
433
-      
433
+
434
        return (count / all_count).toFixed(2)*100
434
        return (count / all_count).toFixed(2)*100
435
      }
435
      }
436
     },
436
     },

+ 6 - 1
src/xt_pages/supply/components/addGoodOrder.vue 查看文件

801
       for (let i = 0; i < arr.length; i++) {
801
       for (let i = 0; i < arr.length; i++) {
802
         total_count += arr[i].stock_count;
802
         total_count += arr[i].stock_count;
803
       }
803
       }
804
-      return total_count;
804
+      if(total_count >0){
805
+        return total_count;
806
+      }else{
807
+        return ""
808
+      }
809
+     
805
     },
810
     },
806
 
811
 
807
     calculate: function (val) {
812
     calculate: function (val) {

+ 59 - 9
src/xt_pages/supply/components/addGoodReturn.vue 查看文件

133
             </template>
133
             </template>
134
           </el-table-column>
134
           </el-table-column>
135
 
135
 
136
+          <el-table-column label="批号" align="center" width="200px">
137
+            <template slot-scope="scope">
138
+              <el-input
139
+                v-model="scope.row.supply_batch_number"
140
+                style="width: 150px"
141
+                :disabled="true"
142
+                placeholder="批号"
143
+              ></el-input>
144
+               <div style="visibility: hidden">/</div>
145
+            </template>
146
+          </el-table-column>
147
+
136
           <el-table-column label="单位" align="center" width="120px">
148
           <el-table-column label="单位" align="center" width="120px">
137
             <template slot="header" slot-scope="scope">
149
             <template slot="header" slot-scope="scope">
138
               <span>单位<span style="color: red">*</span></span>
150
               <span>单位<span style="color: red">*</span></span>
677
       var min_str = "";
689
       var min_str = "";
678
       if (arr.length > 0) {
690
       if (arr.length > 0) {
679
         for (let i = 0; i < arr.length; i++) {
691
         for (let i = 0; i < arr.length; i++) {
680
-          total += parseInt(arr[i].stock_max_number);
692
+          total += parseInt(arr[i].stock_max_number+ arr[i].stock_min_number);
681
         }
693
         }
682
       }
694
       }
683
       if (total < min_number) {
695
       if (total < min_number) {
702
       for (let i = 0; i < arr.length; i++) {
714
       for (let i = 0; i < arr.length; i++) {
703
         total_count += arr[i].stock_count;
715
         total_count += arr[i].stock_count;
704
       }
716
       }
705
-      return total_count;
717
+      if(total_count > 0){
718
+       return total_count;
719
+      }else{
720
+        return ""
721
+      }
722
+      
706
     },
723
     },
707
     calculate: function (val) {
724
     calculate: function (val) {
708
       if (isNaN(val)) {
725
       if (isNaN(val)) {
795
           var drugList = response.data.data.drugList;
812
           var drugList = response.data.data.drugList;
796
           var goodList = response.data.data.goodList;
813
           var goodList = response.data.data.goodList;
797
           for (let i = 0; i < orderInfo.length; i++) {
814
           for (let i = 0; i < orderInfo.length; i++) {
815
+            if(orderInfo[i].is_source == 1){
816
+              for(let j=0;j<orderInfo[i].drug_warehouse_info.length;j++){
817
+                 if(orderInfo[i].drug_warehouse_info[j].max_unit == orderInfo[i].drug.max_unit){
818
+                    orderInfo[i].drug_warehouse_info[j].stock_max_number =  orderInfo[i].drug_warehouse_info[j].stock_max_number * orderInfo[i].drug.min_number
819
+                 }
820
+              }
821
+              orderInfo[i].supply_total = this.getWarehoseInfo(orderInfo[i].drug_warehouse_info,orderInfo[i].drug.max_unit,orderInfo[i].drug.min_unit,orderInfo[i].drug.min_number)
822
+            }
823
+            if(orderInfo[i].is_source == 2){
824
+               orderInfo[i].supply_total = this.getTotalStockCount(orderInfo[i].good_warehouse_info)
825
+            }
798
             orderInfo[i].id = orderInfo[i].id;
826
             orderInfo[i].id = orderInfo[i].id;
799
-            orderInfo[i].supply_count = orderInfo[i].count;
827
+            orderInfo[i].supply_count = orderInfo[i].supply_count;
800
             orderInfo[i].count = orderInfo[i].count
828
             orderInfo[i].count = orderInfo[i].count
801
             orderInfo[i].supply_price = orderInfo[i].price;
829
             orderInfo[i].supply_price = orderInfo[i].price;
802
             orderInfo[i].supply_remake = orderInfo[i].remark;
830
             orderInfo[i].supply_remake = orderInfo[i].remark;
1015
      }
1043
      }
1016
      checkReturnOrder(params).then(response=>{
1044
      checkReturnOrder(params).then(response=>{
1017
        if(response.data.state == 1){
1045
        if(response.data.state == 1){
1018
-        this.loading = false
1019
-        this.showThree = false
1020
-        this.disabled = true
1021
-        this.is_check = 1
1046
+      
1022
         var msg = response.data.data.msg
1047
         var msg = response.data.data.msg
1023
-        this.Reviewed = true
1024
-        this.$message.success("审核成功!")
1048
+        if(msg == 1){
1049
+          this.loading = false
1050
+          this.showThree = false
1051
+          this.disabled = true
1052
+          this.is_check = 1
1053
+          this.Reviewed = true
1054
+          this.$message.success("审核成功!")
1055
+        }
1056
+
1057
+         if(msg == 2){
1058
+            var good_name = response.data.data.good_name
1059
+            var specification_name = response.data.data.specification_name
1060
+            var str = good_name +"*" + specification_name +"库存不足,审核失败!"
1061
+            this.$message.error(str)
1062
+
1063
+          }
1064
+          if(msg == 3){
1065
+              var drug_name =  response.data.data.drug_name
1066
+              var dose = response.data.data.dose
1067
+              var dose_unit = response.data.data.dose_unit
1068
+              var min_number = response.data.data.min_number
1069
+              var min_unit =  response.data.data.min_unit
1070
+              var max_unit =  response.data.data.max_unit
1071
+              var str = drug_name + " " + dose + dose_unit + "*" + min_number + min_unit+"/"+max_unit
1072
+              this.$message.error(str + "库存不足,审核失败!")
1073
+          }
1074
+       
1025
        }
1075
        }
1026
      })
1076
      })
1027
     },
1077
     },

+ 6 - 1
src/xt_pages/supply/components/editGoodOrder.vue 查看文件

849
       for (let i = 0; i < arr.length; i++) {
849
       for (let i = 0; i < arr.length; i++) {
850
         total_count += arr[i].stock_count;
850
         total_count += arr[i].stock_count;
851
       }
851
       }
852
-      return total_count;
852
+      if(total_count >0){
853
+         return total_count;
854
+      }else{
855
+        return ""
856
+      }
857
+      
853
     },
858
     },
854
     calculate: function (val) {
859
     calculate: function (val) {
855
       if (isNaN(val)) {
860
       if (isNaN(val)) {

+ 27 - 2
src/xt_pages/supply/components/editGoodReturn.vue 查看文件

18
             v-model="supplier_name"
18
             v-model="supplier_name"
19
             style="width: 140px; margin-right: 10px"
19
             style="width: 140px; margin-right: 10px"
20
             placeholder="请选择"
20
             placeholder="请选择"
21
+            :disabled ="disabled"
21
           >
22
           >
22
             <el-option
23
             <el-option
23
               v-for="item in supplyList"
24
               v-for="item in supplyList"
145
             </template>
146
             </template>
146
           </el-table-column>
147
           </el-table-column>
147
 
148
 
149
+         <el-table-column label="批号" align="center" width="200px">
150
+            <template slot-scope="scope">
151
+              <el-input
152
+                v-model="scope.row.supply_batch_number"
153
+                style="width: 150px"
154
+                :disabled="true"
155
+                placeholder="批号"
156
+              ></el-input>
157
+               <div style="visibility: hidden">/</div>
158
+            </template>
159
+          </el-table-column>
160
+
148
           <el-table-column label="单位" align="center" width="120px">
161
           <el-table-column label="单位" align="center" width="120px">
149
             <template slot="header" slot-scope="scope">
162
             <template slot="header" slot-scope="scope">
150
               <span>单位<span style="color: red">*</span></span>
163
               <span>单位<span style="color: red">*</span></span>
333
       </el-form>
346
       </el-form>
334
       <div style="margin-top: 10px">
347
       <div style="margin-top: 10px">
335
         <el-input
348
         <el-input
349
+         :disabled ="disabled"
336
           type="textarea"
350
           type="textarea"
337
           :rows="2"
351
           :rows="2"
338
           placeholder="备注信息"
352
           placeholder="备注信息"
355
             v-model="rate_of_concession"
369
             v-model="rate_of_concession"
356
             @input="addressChange"
370
             @input="addressChange"
357
             placeholder="请输入优惠率"
371
             placeholder="请输入优惠率"
372
+            :disabled ="disabled"
358
           ></el-input
373
           ></el-input
359
           >%</span
374
           >%</span
360
         >
375
         >
365
             v-model="discount_amount"
380
             v-model="discount_amount"
366
             @input="count_discount"
381
             @input="count_discount"
367
             placeholder="请输入优惠金额"
382
             placeholder="请输入优惠金额"
383
+            :disabled ="disabled"
368
           ></el-input
384
           ></el-input
369
         ></span>
385
         ></span>
370
 
386
 
374
             v-model="payment"
390
             v-model="payment"
375
             @input="count_payment"
391
             @input="count_payment"
376
             placeholder="请输入本次退款"
392
             placeholder="请输入本次退款"
393
+            :disabled ="disabled"
377
           ></el-input
394
           ></el-input
378
         ></span>
395
         ></span>
379
 
396
 
383
             v-model="arrearage"
400
             v-model="arrearage"
384
             @input="count_arrearage"
401
             @input="count_arrearage"
385
             placeholder="请输入本次欠款"
402
             placeholder="请输入本次欠款"
403
+            :disabled ="disabled"
386
           ></el-input
404
           ></el-input
387
         ></span>
405
         ></span>
388
       </div>
406
       </div>
717
       var min_str = "";
735
       var min_str = "";
718
       if (arr.length > 0) {
736
       if (arr.length > 0) {
719
         for (let i = 0; i < arr.length; i++) {
737
         for (let i = 0; i < arr.length; i++) {
720
-          total += parseInt(arr[i].stock_max_number);
738
+          total += parseInt(arr[i].stock_max_number+ arr[i].stock_min_number);
721
         }
739
         }
722
       }
740
       }
723
       if (total < min_number) {
741
       if (total < min_number) {
742
       for (let i = 0; i < arr.length; i++) {
760
       for (let i = 0; i < arr.length; i++) {
743
         total_count += arr[i].stock_count;
761
         total_count += arr[i].stock_count;
744
       }
762
       }
745
-      return total_count;
763
+      if(total_count >0){
764
+        return total_count;
765
+      }else{
766
+        return ""
767
+      }
768
+    
746
     },
769
     },
747
     calculate: function (val) {
770
     calculate: function (val) {
748
       if (isNaN(val)) {
771
       if (isNaN(val)) {
873
           this.discount_amount = out.discount_amount;
896
           this.discount_amount = out.discount_amount;
874
           this.payment = out.payment;
897
           this.payment = out.payment;
875
           this.arrearage = out.arrearage;
898
           this.arrearage = out.arrearage;
899
+          this.return_remark = out.return_remark
876
           this.start_time = this.getTimes(out.document_date);
900
           this.start_time = this.getTimes(out.document_date);
877
           var orderInfo = response.data.data.orderCancelDetail;
901
           var orderInfo = response.data.data.orderCancelDetail;
878
           if (out.is_check == 1) {
902
           if (out.is_check == 1) {
879
             this.disabled = true;
903
             this.disabled = true;
904
+            this.Reviewed = true
880
           }
905
           }
881
           console.log("退库单详情", orderInfo);
906
           console.log("退库单详情", orderInfo);
882
           var drugList = response.data.data.drugList;
907
           var drugList = response.data.data.drugList;

+ 6 - 1
src/xt_pages/supply/components/editPurchaseOrder.vue 查看文件

715
       for (let i = 0; i < arr.length; i++) {
715
       for (let i = 0; i < arr.length; i++) {
716
         total_count += arr[i].stock_count;
716
         total_count += arr[i].stock_count;
717
       }
717
       }
718
-      return total_count;
718
+      if(total_count >0){
719
+        return total_count;
720
+      }else{
721
+        return ""
722
+      }
723
+     
719
     },
724
     },
720
     calculate: function (val) {
725
     calculate: function (val) {
721
       if (isNaN(val)) {
726
       if (isNaN(val)) {

+ 1 - 0
src/xt_pages/supply/goodOrderQuery.vue 查看文件

357
                 var msg = response.data.data.msg
357
                 var msg = response.data.data.msg
358
                 this.tableList.splice(index, 1);
358
                 this.tableList.splice(index, 1);
359
                 this.$message.success("删除成功")
359
                 this.$message.success("删除成功")
360
+                this.getlist()
360
             } else {
361
             } else {
361
                 this.$message.error("删除失败")
362
                 this.$message.error("删除失败")
362
             }
363
             }

+ 297 - 263
src/xt_pages/supply/goodreturn.vue 查看文件

3
     <div class="position">
3
     <div class="position">
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
4
       <bread-crumb :crumbs="crumbs"></bread-crumb>
5
     </div>
5
     </div>
6
-    <div class="app-container ">
7
-      <div style="justify-content: space-between;margin: 0px 0 12px 0;display: flex;align-items: center;">
6
+    <div class="app-container">
7
+      <div
8
+        style="
9
+          justify-content: space-between;
10
+          margin: 0px 0 12px 0;
11
+          display: flex;
12
+          align-items: center;
13
+        "
14
+      >
8
         <div>
15
         <div>
9
-        
10
           <el-date-picker
16
           <el-date-picker
11
             size="small"
17
             size="small"
12
             v-model="start_time"
18
             v-model="start_time"
13
             prefix-icon="el-icon-date"
19
             prefix-icon="el-icon-date"
14
             :editable="false"
20
             :editable="false"
15
-            style="width: 196px;"
21
+            style="width: 196px"
16
             type="date"
22
             type="date"
17
             placeholder="选择日期时间"
23
             placeholder="选择日期时间"
18
             align="right"
24
             align="right"
19
             format="yyyy-MM-dd"
25
             format="yyyy-MM-dd"
20
             value-format="yyyy-MM-dd"
26
             value-format="yyyy-MM-dd"
21
             @change="startTimeChange"
27
             @change="startTimeChange"
22
-           ></el-date-picker>-
23
-            <el-date-picker
24
-              size="small"
25
-              v-model="end_time"
26
-              prefix-icon="el-icon-date"
27
-              :editable="false"
28
-              style="width: 196px;"
29
-              type="date"
30
-              placeholder="选择日期时间"
31
-              align="right"
32
-              format="yyyy-MM-dd"
33
-              value-format="yyyy-MM-dd"
34
-              @change="endTimeChange"
28
+          ></el-date-picker
29
+          >-
30
+          <el-date-picker
31
+            size="small"
32
+            v-model="end_time"
33
+            prefix-icon="el-icon-date"
34
+            :editable="false"
35
+            style="width: 196px"
36
+            type="date"
37
+            placeholder="选择日期时间"
38
+            align="right"
39
+            format="yyyy-MM-dd"
40
+            value-format="yyyy-MM-dd"
41
+            @change="endTimeChange"
35
           ></el-date-picker>
42
           ></el-date-picker>
36
           <span>审核状态:</span>
43
           <span>审核状态:</span>
37
-           <el-select v-model="check_id" style="width:140px;margin-right:10px;" placeholder="请选择"
38
-            @change="changeTypeName">
44
+          <el-select
45
+            v-model="check_id"
46
+            style="width: 140px; margin-right: 10px"
47
+            placeholder="请选择"
48
+            @change="changeTypeName"
49
+          >
39
             <el-option
50
             <el-option
40
-                v-for="item in checkList"
41
-                :key="item.id"
42
-                :label="item.name"
43
-                :value="item.id">
51
+              v-for="item in checkList"
52
+              :key="item.id"
53
+              :label="item.name"
54
+              :value="item.id"
55
+            >
44
             </el-option>
56
             </el-option>
45
           </el-select>
57
           </el-select>
46
           <el-input
58
           <el-input
47
             size="small"
59
             size="small"
48
-            style="width: 200px;margin-left:10px;"
60
+            style="width: 200px; margin-left: 10px"
49
             class="filter-item"
61
             class="filter-item"
50
             v-model.trim="keywords"
62
             v-model.trim="keywords"
51
             placeholder="订单编号或供应商名称"
63
             placeholder="订单编号或供应商名称"
64
         </div>
76
         </div>
65
       </div>
77
       </div>
66
 
78
 
67
-
68
-       <el-table
69
-          :row-style="{ color: '#303133' }"
70
-          :header-cell-style="{
71
-              backgroundColor: 'rgb(245, 247, 250)',
72
-              color: '#606266'
73
-          }"
74
-          :data="tableList"
75
-          :class="signAndWeighBoxPatients"
76
-          border
77
-          style="width: 100%"
78
-          max-height="450"
79
-         
79
+      <el-table
80
+        :row-style="{ color: '#303133' }"
81
+        :header-cell-style="{
82
+          backgroundColor: 'rgb(245, 247, 250)',
83
+          color: '#606266',
84
+        }"
85
+        :data="tableList"
86
+        :class="signAndWeighBoxPatients"
87
+        border
88
+        style="width: 100%"
80
       >
89
       >
81
         <el-table-column label="单据日期" align="center" width="200">
90
         <el-table-column label="单据日期" align="center" width="200">
82
           <template slot-scope="scope">
91
           <template slot-scope="scope">
83
-            <span>{{getTimes(scope.row.document_date)}}</span>
84
-         </template>
92
+            <span>{{ getTimes(scope.row.document_date) }}</span>
93
+          </template>
85
         </el-table-column>
94
         </el-table-column>
86
         <el-table-column label="单据编号" align="center" width="200">
95
         <el-table-column label="单据编号" align="center" width="200">
87
           <template slot-scope="scope">
96
           <template slot-scope="scope">
88
-            <span>{{scope.row.number}}</span>
97
+            <span>{{ scope.row.number }}</span>
89
           </template>
98
           </template>
90
         </el-table-column>
99
         </el-table-column>
91
         <el-table-column label="供应商" align="center" width="200">
100
         <el-table-column label="供应商" align="center" width="200">
92
-            <template slot-scope="scope">
93
-              <span>{{getName(scope.row.supplier_id)}}</span>
94
-            </template>
95
-         </el-table-column>
101
+          <template slot-scope="scope">
102
+            <span>{{ getName(scope.row.supplier_id) }}</span>
103
+          </template>
104
+        </el-table-column>
96
         <el-table-column label="关联采购订单号" align="center" width="200">
105
         <el-table-column label="关联采购订单号" align="center" width="200">
97
           <template slot-scope="scope">
106
           <template slot-scope="scope">
98
-            <span v-if="scope.row.cancelOrder!=undefined && scope.row.cancelOrder.length >0">{{scope.row.cancelOrder[0].order_number}}</span>
107
+            <span
108
+              v-if="
109
+                scope.row.cancelOrder != undefined &&
110
+                scope.row.cancelOrder.length > 0
111
+              "
112
+              >{{ scope.row.cancelOrder[0].order_number }}</span
113
+            >
99
           </template>
114
           </template>
100
         </el-table-column>
115
         </el-table-column>
101
-           <el-table-column label="关联采购单号" align="center" width="200">
116
+        <el-table-column label="关联采购单号" align="center" width="200">
102
           <template slot-scope="scope">
117
           <template slot-scope="scope">
103
-             <span v-if="scope.row.cancelOrder!=undefined && scope.row.cancelOrder.length >0">{{scope.row.cancelOrder[0].good_number}}</span>
118
+            <span
119
+              v-if="
120
+                scope.row.cancelOrder != undefined &&
121
+                scope.row.cancelOrder.length > 0
122
+              "
123
+              >{{ scope.row.cancelOrder[0].good_number }}</span
124
+            >
104
           </template>
125
           </template>
105
         </el-table-column>
126
         </el-table-column>
106
         <el-table-column label="采购金额" align="center" width="200">
127
         <el-table-column label="采购金额" align="center" width="200">
107
           <template slot-scope="scope">
128
           <template slot-scope="scope">
108
-             <span v-if="getAllBuyPrice(scope.row.cancelOrder)>0">{{getAllBuyPrice(scope.row.cancelOrder)}}</span> 
129
+            <span v-if="getAllBuyPrice(scope.row.cancelOrder) > 0">{{
130
+              getAllBuyPrice(scope.row.cancelOrder)
131
+            }}</span>
109
           </template>
132
           </template>
110
         </el-table-column>
133
         </el-table-column>
111
         <el-table-column label="优惠后金额" align="center" width="200">
134
         <el-table-column label="优惠后金额" align="center" width="200">
112
-         <template slot-scope="scope">
113
-          <span v-if="getAllBuyPrice(scope.row.cancelOrder)>0">{{getAllBuyPriceOne(scope.row.cancelOrder,scope.row.discount_amount)}}</span> 
114
-         </template>
115
-       </el-table-column>
116
-        <!-- <el-table-column label="已退款" align="center" width="200">
117
-         <template slot-scope="scope">
118
-         
119
-         </template>
120
-       </el-table-column> -->
121
-       <el-table-column label="数量" align="center" width="200">
122
-         <template slot-scope="scope">
123
-           {{getCount(scope.row.cancelOrder)}}
124
-         </template>
125
-       </el-table-column>
135
+          <template slot-scope="scope">
136
+            <span v-if="getAllBuyPrice(scope.row.cancelOrder) > 0">{{
137
+              getAllBuyPriceOne(
138
+                scope.row.cancelOrder,
139
+                scope.row.discount_amount
140
+              )
141
+            }}</span>
142
+          </template>
143
+        </el-table-column>
144
+        <el-table-column label="已退款" align="center" width="200">
145
+          <template slot-scope="scope">
146
+            <span v-if="scope.row.payment > 0">{{ scope.row.payment }}</span>
147
+          </template>
148
+        </el-table-column>
149
+        <el-table-column label="数量" align="center" width="200">
150
+          <template slot-scope="scope">
151
+            {{ getCount(scope.row.cancelOrder) }}
152
+          </template>
153
+        </el-table-column>
126
 
154
 
127
-       <el-table-column label="退款状态" align="center" width="200">
128
-         <template slot-scope="scope">
129
-           <!-- <span v-if="scope.row.is_check == 2">未审核</span>
155
+        <el-table-column label="退款状态" align="center" width="200">
156
+          <template slot-scope="scope">
157
+            <!-- <span v-if="scope.row.is_check == 2">未审核</span>
130
            <span v-if="scope.row.is_check == 1">已审核</span> -->
158
            <span v-if="scope.row.is_check == 1">已审核</span> -->
131
-         </template>
132
-       </el-table-column>
133
-      
134
-          
135
-      <el-table-column label="制单人" align="center" width="200">
136
-         <template slot-scope="scope">
137
-          {{getDocName(scope.row.creater)}}
138
-         </template>
139
-       </el-table-column>
159
+          </template>
160
+        </el-table-column>
140
 
161
 
141
-      <el-table-column label="审核人" align="center" width="200">
142
-         <template slot-scope="scope">
143
-          {{getDocName(scope.row.checker)}}
144
-         </template>
145
-       </el-table-column>
162
+        <el-table-column label="制单人" align="center" width="200">
163
+          <template slot-scope="scope">
164
+            {{ getDocName(scope.row.creater) }}
165
+          </template>
166
+        </el-table-column>
167
+
168
+        <el-table-column label="审核人" align="center" width="200">
169
+          <template slot-scope="scope">
170
+            {{ getDocName(scope.row.checker) }}
171
+          </template>
172
+        </el-table-column>
146
 
173
 
147
-       <el-table-column label="操作" align="center" width="260"  fixed="right">
174
+        <el-table-column label="操作" align="center" width="260" fixed="right">
148
           <template slot-scope="scope">
175
           <template slot-scope="scope">
149
-              <el-button
150
-                icon="el-icon-edit-outline"
151
-                size="small"
152
-                type="primary"
153
-                @click="editGoodReturn(scope.row.id)"
176
+            <el-button
177
+              icon="el-icon-edit-outline"
178
+              size="small"
179
+              type="primary"
180
+              @click="editGoodReturn(scope.row.id)"
154
               >编辑
181
               >编辑
155
-              </el-button>
156
-              <el-button
157
-                icon="el-icon-delete"
158
-                size="small"
159
-                type="danger"
160
-                @click="toClickOne(scope.row,scope.$index)"
182
+            </el-button>
183
+            <el-button
184
+              icon="el-icon-delete"
185
+              size="small"
186
+              type="danger"
187
+              @click="toClickOne(scope.row, scope.$index)"
161
               >删除
188
               >删除
162
-              </el-button>
189
+            </el-button>
163
           </template>
190
           </template>
164
         </el-table-column>
191
         </el-table-column>
165
       </el-table>
192
       </el-table>
166
       <el-pagination
193
       <el-pagination
167
         @size-change="handleSizeChange"
194
         @size-change="handleSizeChange"
168
         @current-change="handleCurrentChange"
195
         @current-change="handleCurrentChange"
169
-        :page-sizes="[10, 50, 100,200,500,1000]"
196
+        :page-sizes="[10, 50, 100, 200, 500, 1000]"
170
         :page-size="10"
197
         :page-size="10"
171
         background
198
         background
172
         align="right"
199
         align="right"
173
-        style="margin-top:20px;"
200
+        style="margin-top: 20px"
174
         layout="total, sizes, prev, pager, next, jumper"
201
         layout="total, sizes, prev, pager, next, jumper"
175
         :total="total"
202
         :total="total"
176
       >
203
       >
177
       </el-pagination>
204
       </el-pagination>
178
-
179
     </div>
205
     </div>
180
   </div>
206
   </div>
181
 </template>
207
 </template>
183
 <script>
209
 <script>
184
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
210
 import BreadCrumb from "@/xt_pages/components/bread-crumb";
185
 
211
 
186
-import {getAllSupply,getAllGoodReturnOrderList,deleteReturnOrder} from "@/api/supply"
187
-import {uParseTime } from '@/utils/tools'
212
+import {
213
+  getAllSupply,
214
+  getAllGoodReturnOrderList,
215
+  deleteReturnOrder,
216
+} from "@/api/supply";
217
+import { uParseTime } from "@/utils/tools";
188
 export default {
218
 export default {
189
   name: "stockIn",
219
   name: "stockIn",
190
-   components: {
191
-     
192
-   },
220
+  components: {},
193
   components: {
221
   components: {
194
-    BreadCrumb
222
+    BreadCrumb,
195
   },
223
   },
196
   data() {
224
   data() {
197
     return {
225
     return {
198
       crumbs: [
226
       crumbs: [
199
         { path: false, name: "采购管理" },
227
         { path: false, name: "采购管理" },
200
-        { path: "/good/return/query", name: "退货单" }
228
+        { path: "/good/return/query", name: "退货单" },
201
       ],
229
       ],
202
       keywords: "",
230
       keywords: "",
203
       total: 0,
231
       total: 0,
204
       multipleSelection: [],
232
       multipleSelection: [],
205
       signAndWeighBoxPatients: "sign-and-weigh-box-patients",
233
       signAndWeighBoxPatients: "sign-and-weigh-box-patients",
206
       start_time: "",
234
       start_time: "",
207
-      end_time:"",
235
+      end_time: "",
208
       page: 1,
236
       page: 1,
209
       limit: 10,
237
       limit: 10,
210
       goodType: [],
238
       goodType: [],
211
       goodInfo: [],
239
       goodInfo: [],
212
-      org_id:0,
213
-      types:[],
214
-      tableList:[1],
215
-      type_name:"",
216
-      checkList:[
217
-        {id:0,name:"请选择"},
218
-        {id:1,name:"已审核"},
219
-        {id:2,name:"未审核"},
240
+      org_id: 0,
241
+      types: [],
242
+      tableList: [1],
243
+      type_name: "",
244
+      checkList: [
245
+        { id: 0, name: "请选择" },
246
+        { id: 1, name: "已审核" },
247
+        { id: 2, name: "未审核" },
220
       ],
248
       ],
221
-      supplyList:[],
222
-      check_id:0,
223
-      doctorList:[],
249
+      supplyList: [],
250
+      check_id: 0,
251
+      doctorList: [],
224
     };
252
     };
225
   },
253
   },
226
-  methods:{
227
-     toAdd(){
228
-       this.$router.push({path:"/good/return/add"})
229
-     },
230
-     changeTypeName(){
231
-       this.getlist()
232
-     },
233
-     startTimeChange(){
234
-       this.getlist()
235
-     },
236
-     endTimeChange(){
237
-      this.getlist()
238
-     },
239
-     search(){
240
-      this.getlist()
241
-     },
242
-     handleSizeChange(val){
243
-       this.limit = val
244
-       this.getlist()
245
-     },
246
-     handleCurrentChange(val){
247
-       this.page = val
248
-       this.getlist()
249
-     },
250
-     getAllSupply(){
251
-       getAllSupply().then(response=>{
252
-         if(response.data.state == 1){
253
-            var supplyList = response.data.data.supplyList
254
-            this.doctorList = response.data.data.doctorList
255
-            for(let i=0;i<supplyList.length;i++){
256
-              this.supplyList.push(supplyList[i])
257
-            }
258
-         }
259
-       })
260
-     },
261
-     getTimes(time) {
262
-      if (time === '') {
263
-      return ''
254
+  methods: {
255
+    toAdd() {
256
+      this.$router.push({ path: "/good/return/add" });
257
+    },
258
+    changeTypeName() {
259
+      this.getlist();
260
+    },
261
+    startTimeChange() {
262
+      this.getlist();
263
+    },
264
+    endTimeChange() {
265
+      this.getlist();
266
+    },
267
+    search() {
268
+      this.getlist();
269
+    },
270
+    handleSizeChange(val) {
271
+      this.limit = val;
272
+      this.getlist();
273
+    },
274
+    handleCurrentChange(val) {
275
+      this.page = val;
276
+      this.getlist();
277
+    },
278
+    getAllSupply() {
279
+      getAllSupply().then((response) => {
280
+        if (response.data.state == 1) {
281
+          var supplyList = response.data.data.supplyList;
282
+          this.doctorList = response.data.data.doctorList;
283
+          for (let i = 0; i < supplyList.length; i++) {
284
+            this.supplyList.push(supplyList[i]);
285
+          }
286
+        }
287
+      });
288
+    },
289
+    getTimes(time) {
290
+      if (time === "") {
291
+        return "";
264
       }
292
       }
265
-      return uParseTime(time, '{y}-{m}-{d}')
266
-     },
267
-     getlist(){
268
-        var params = {
269
-          check_id:this.check_id,
270
-          start_time:this.start_time,
271
-          end_time:this.end_time,
272
-          keyword:this.keywords,
273
-          page:this.page,
274
-          limit:this.limit,
293
+      return uParseTime(time, "{y}-{m}-{d}");
294
+    },
295
+    getlist() {
296
+      var params = {
297
+        check_id: this.check_id,
298
+        start_time: this.start_time,
299
+        end_time: this.end_time,
300
+        keyword: this.keywords,
301
+        page: this.page,
302
+        limit: this.limit,
303
+      };
304
+      console.log("param23232323", params);
305
+      getAllGoodReturnOrderList(params).then((response) => {
306
+        if (response.data.state == 1) {
307
+          var list = response.data.data.list;
308
+          console.log("list2332232323232", list);
309
+          this.tableList = list;
310
+          var total = response.data.data.total;
311
+          this.total = total;
275
         }
312
         }
276
-       console.log("param23232323",params)
277
-       getAllGoodReturnOrderList(params).then(response=>{
278
-          if(response.data.state == 1){
279
-            var list = response.data.data.list 
280
-            console.log("list2332232323232",list)
281
-            this.tableList = list
282
-            var total = response.data.data.total
283
-            this.total = total
284
-          }
285
-       })
286
-     },
287
-     getName(id){
288
-       var name = ""
289
-       for(let i=0;i<this.supplyList.length;i++){
290
-         if(id == this.supplyList[i].id){
291
-           name = this.supplyList[i].supplier_name
292
-         }
293
-       }
294
-       return name
295
-     },
296
-     getDocName(id){
297
-      var user_name = ""
298
-      for(let i=0;i<this.doctorList.length;i++){
299
-        if(id == this.doctorList[i].admin_user_id){
300
-          user_name = this.doctorList[i].user_name
313
+      });
314
+    },
315
+    getName(id) {
316
+      var name = "";
317
+      for (let i = 0; i < this.supplyList.length; i++) {
318
+        if (id == this.supplyList[i].id) {
319
+          name = this.supplyList[i].supplier_name;
320
+        }
321
+      }
322
+      return name;
323
+    },
324
+    getDocName(id) {
325
+      var user_name = "";
326
+      for (let i = 0; i < this.doctorList.length; i++) {
327
+        if (id == this.doctorList[i].admin_user_id) {
328
+          user_name = this.doctorList[i].user_name;
329
+        }
330
+      }
331
+      return user_name;
332
+    },
333
+    getAllBuyPrice(arr) {
334
+      var buy_price = 0;
335
+      if (arr != undefined && arr.length > 0) {
336
+        for (let i = 0; i < arr.length; i++) {
337
+          buy_price += arr[i].supply_count * arr[i].price;
301
         }
338
         }
302
       }
339
       }
303
-      return user_name
304
-     },
305
-     getAllBuyPrice(arr){
306
-       var buy_price = 0
307
-       if(arr!=undefined && arr.length > 0){
308
-          for(let i=0;i<arr.length;i++){
309
-            buy_price += (arr[i].count * arr[i].price)
310
-          }
311
-       }
312
 
340
 
313
-       return buy_price.toFixed(2)
314
-     },
315
-     getAllBuyPriceOne(arr,discount_amount){
316
-      
317
-       var buy_price = 0
318
-       if(arr!=undefined && arr.length > 0){
319
-          for(let i=0;i<arr.length;i++){
320
-            buy_price += (parseInt(arr[i].count) * arr[i].price)
321
-          }
322
-       }
323
-        console.log("discount233232232323",discount_amount)
324
-       return (buy_price-discount_amount).toFixed(2)
325
-     },
326
-     getAllCount(arr){
327
-       var count = ""
328
-        if(arr!=undefined && arr.length > 0){
329
-          for(let i=0;i<arr.length;i++){
330
-            count += arr[i].count
331
-          }
332
-       }
333
-       return count
334
-     },
335
-     editGoodReturn(id){
336
-       this.$router.push({path:"/good/return/edit?id="+id})
337
-     },
338
-     toClickOne(val,index){
339
-       console.log("val323232323232",val)
340
-       if(val.is_check == 1){
341
-         this.$message.error("已审核单据,不能删除!")
342
-         return false
343
-       }
341
+      return buy_price.toFixed(2);
342
+    },
343
+    getAllBuyPriceOne(arr, discount_amount) {
344
+      var buy_price = 0;
345
+      if (arr != undefined && arr.length > 0) {
346
+        for (let i = 0; i < arr.length; i++) {
347
+          buy_price += parseInt(arr[i].supply_count) * arr[i].price;
348
+        }
349
+      }
350
+      return (buy_price - discount_amount).toFixed(2);
351
+    },
352
+    getAllCount(arr) {
353
+      var count = "";
354
+      if (arr != undefined && arr.length > 0) {
355
+        for (let i = 0; i < arr.length; i++) {
356
+          count += arr[i].supply_count;
357
+        }
358
+      }
359
+      return count;
360
+    },
361
+    editGoodReturn(id) {
362
+      this.$router.push({ path: "/good/return/edit?id=" + id });
363
+    },
364
+    toClickOne(val, index) {
365
+      console.log("val323232323232", val);
366
+      if (val.is_check == 1) {
367
+        this.$message.error("已审核单据,不能删除!");
368
+        return false;
369
+      }
344
       //  if(val.cancelOrder.length >0 ){
370
       //  if(val.cancelOrder.length >0 ){
345
       //    this.$message.error("已关联单据,不能删除!")
371
       //    this.$message.error("已关联单据,不能删除!")
346
       //    return false
372
       //    return false
347
       //  }
373
       //  }
348
-       this.$confirm('确认删除吗?', '删除', {
349
-          confirmButtonText: '确 定',
350
-          cancelButtonText: '取 消',
351
-          type: 'warning'
352
-        }).then(() => {
353
-          deleteReturnOrder(val.id).then(response => {
374
+      this.$confirm("确认删除吗?", "删除", {
375
+        confirmButtonText: "确 定",
376
+        cancelButtonText: "取 消",
377
+        type: "warning",
378
+      })
379
+        .then(() => {
380
+          deleteReturnOrder(val.id).then((response) => {
354
             if (response.data.state == 1) {
381
             if (response.data.state == 1) {
355
-                var msg = response.data.data.msg
356
-                this.tableList.splice(index, 1);
357
-                this.$message.success("删除成功")
382
+              var msg = response.data.data.msg;
383
+              this.tableList.splice(index, 1);
384
+              this.getlist();
385
+              this.$message.success("删除成功");
358
             } else {
386
             } else {
359
-                this.$message.error("删除失败")
387
+              this.$message.error("删除失败");
360
             }
388
             }
361
-          })
362
-        }).catch(() => {
363
-       }) 
364
-     },
365
-     getCount(val){
366
-       var total = 0
367
-       for(let i=0;i<val.length;i++){
368
-         total += val[i].count
369
-       }
370
-       if(total >0){
371
-         return total
372
-       }else{
373
-         return ""
374
-       }
375
-      
376
-     }
389
+          });
390
+        })
391
+        .catch(() => {});
392
+    },
393
+    getCount(val) {
394
+      console.log("val323223322323", val);
395
+      var total = 0;
396
+      if (val != undefined) {
397
+        for (let i = 0; i < val.length; i++) {
398
+          total += val[i].supply_count;
399
+        }
400
+        if (total > 0) {
401
+          return total;
402
+        } else {
403
+          return "";
404
+        }
405
+      }
406
+    },
377
   },
407
   },
378
   created() {
408
   created() {
379
-    var now = new Date(); //当前日期 
380
-    var nowMonth = now.getMonth(); //当前月 
381
-    var nowYear = now.getFullYear(); //当前年 
409
+    var now = new Date(); //当前日期
410
+    var nowMonth = now.getMonth(); //当前月
411
+    var nowYear = now.getFullYear(); //当前年
382
     //本月的开始时间
412
     //本月的开始时间
383
-    var monthStartDate = new Date(nowYear, nowMonth, 1); 
384
-    this.start_time = monthStartDate
413
+    var monthStartDate = new Date(nowYear, nowMonth, 1);
414
+    this.start_time = this.getTimes(monthStartDate);
385
     this.end_time = this.getTimes(new Date());
415
     this.end_time = this.getTimes(new Date());
386
-    this.org_id =  this.$store.getters.xt_user.org_id
387
-    this.getAllSupply()
388
-    this.getlist()
416
+    this.org_id = this.$store.getters.xt_user.org_id;
417
+    this.getAllSupply();
418
+    this.getlist();
389
   },
419
   },
390
- 
391
 };
420
 };
392
 </script>
421
 </script>
393
 
422
 
449
 .el-table__fixed-right {
478
 .el-table__fixed-right {
450
   width: 150px;
479
   width: 150px;
451
   bottom: 20px;
480
   bottom: 20px;
481
+  height: 100% !important;
482
+}
483
+.el-table__fixed-body-wrapper {
452
   height: 100%;
484
   height: 100%;
453
 }
485
 }
454
-
486
+.el-table__body-wrapper.is-scrolling-left {
487
+  max-height: 100% !important;
488
+}
455
 </style>
489
 </style>

+ 1 - 0
src/xt_pages/supply/purchaseOrderQuery.vue 查看文件

357
             if (response.data.state == 1) {
357
             if (response.data.state == 1) {
358
               var msg = response.data.data.msg;
358
               var msg = response.data.data.msg;
359
               this.tableList.splice(index, 1);
359
               this.tableList.splice(index, 1);
360
+              this.getlist()
360
               this.$message.success("删除成功");
361
               this.$message.success("删除成功");
361
             } else {
362
             } else {
362
               this.$message.error("删除失败");
363
               this.$message.error("删除失败");