Browse Source

518合并代码

XMLWAN 2 years ago
parent
commit
7d4b00c5a5

+ 2 - 2
src/xt_pages/data/basicConfig.vue View File

39
             <p style="margin-top:20px;">耗材先出库再执行:
39
             <p style="margin-top:20px;">耗材先出库再执行:
40
                 <el-switch v-model="is_open_is_type" @change="changeFuncType"></el-switch>
40
                 <el-switch v-model="is_open_is_type" @change="changeFuncType"></el-switch>
41
             </p>
41
             </p>
42
-            <p style="margin-top:20px;">药品在保存处方时出库:
42
+            <!-- <p style="margin-top:20px;">药品在保存处方时出库:
43
                 <el-switch v-model="drug_out_open" @change="changeDrugOpen"></el-switch>
43
                 <el-switch v-model="drug_out_open" @change="changeDrugOpen"></el-switch>
44
-            </p>
44
+            </p> -->
45
         </div>
45
         </div>
46
 
46
 
47
 
47
 

+ 1 - 1
src/xt_pages/data/components/drugs.vue View File

120
       </el-table-column>
120
       </el-table-column>
121
       <el-table-column prop="date" label="批准文号" width="100" align="center">
121
       <el-table-column prop="date" label="批准文号" width="100" align="center">
122
         <template slot-scope="scope">
122
         <template slot-scope="scope">
123
-          <div></div>
123
+          <div>{{scope.row.number}}</div>
124
         </template>
124
         </template>
125
       </el-table-column>
125
       </el-table-column>
126
       <el-table-column prop="date" label="药品本位码" width="100" align="center">
126
       <el-table-column prop="date" label="药品本位码" width="100" align="center">

+ 3 - 0
src/xt_pages/dialysis/details/assessmentAfter.vue View File

714
         case 2:
714
         case 2:
715
           return 'ml'
715
           return 'ml'
716
           break
716
           break
717
+        case 3:
718
+          return 'kg'
719
+          break
717
       }
720
       }
718
     },
721
     },
719
     getSealingFluidDisposeName: function(id) {
722
     getSealingFluidDisposeName: function(id) {

+ 1 - 1
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

690
       symptomsOptions: [],
690
       symptomsOptions: [],
691
       internalFistulaOptions: [],
691
       internalFistulaOptions: [],
692
       vascularAccessOptions: [],
692
       vascularAccessOptions: [],
693
-      unit: [{ id: 1, name: 'g' }, { id: 2, name: 'ml' }],
693
+      unit: [{ id: 1, name: 'g' }, { id: 2, name: 'ml' },{ id: 3, name: 'kg' }],
694
       actualTreatmentHourShow: '',
694
       actualTreatmentHourShow: '',
695
       vascularAccessDescOptions: [],
695
       vascularAccessDescOptions: [],
696
       catheterOptions: [],
696
       catheterOptions: [],

+ 80 - 86
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

8
       type="primary"
8
       type="primary"
9
       >打印
9
       >打印
10
     </el-button>
10
     </el-button>
11
-    <el-button
12
-      style="float: right; margin-right: 10px"
11
+     <el-button
12
+      style="float: right;margin-right:10px"
13
       size="small"
13
       size="small"
14
       @click="exportListDetai"
14
       @click="exportListDetai"
15
       type="primary"
15
       type="primary"
16
       >明细导出
16
       >明细导出
17
     </el-button>
17
     </el-button>
18
-    <el-button
19
-      style="float: right; margin-right: 10px"
18
+     <el-button
19
+      style="float: right;margin-right:10px"
20
       size="small"
20
       size="small"
21
       @click="exportList"
21
       @click="exportList"
22
       type="primary"
22
       type="primary"
24
     </el-button>
24
     </el-button>
25
 
25
 
26
     <div class="cell clearfix">
26
     <div class="cell clearfix">
27
-      <label class="title"><span class="name">仓库</span> :</label>
28
-      <el-select
29
-        size="small"
30
-        v-model="storehouse_id"
31
-        filterable
32
-        placeholder="请选择仓库"
33
-        style="width: 200px"
34
-        @change="changeHouseList"
35
-      >
36
-        <el-option
37
-          v-for="(option, index) in houseList"
38
-          :key="index"
39
-          :label="option.storehouse_name"
40
-          :value="option.id"
41
-        >
42
-        </el-option>
27
+       <label class="title"><span class="name">仓库</span> :</label>
28
+      <el-select size="small" v-model="storehouse_id" filterable placeholder="请选择仓库" style="width:200px" @change="changeHouseList">
29
+          <el-option
30
+            v-for="(option, index) in houseList"
31
+            :key="index"
32
+            :label="option.storehouse_name"
33
+            :value="option.id">
34
+          </el-option>
43
       </el-select>
35
       </el-select>
44
       <el-input
36
       <el-input
45
         size="small"
37
         size="small"
46
-        style="width: 200px"
38
+        style="width: 200px;"
47
         class="filter-item"
39
         class="filter-item"
48
         v-model.trim="searchKey"
40
         v-model.trim="searchKey"
49
         placeholder="单据编码/制单人/药品名称"
41
         placeholder="单据编码/制单人/药品名称"
56
         @click="search"
48
         @click="search"
57
         >搜索</el-button
49
         >搜索</el-button
58
       >
50
       >
59
-      <label class="title"><span class="name">日期查询</span> : </label>
60
-      <el-date-picker
61
-        size="small"
62
-        v-model="start_time"
63
-        prefix-icon="el-icon-date"
64
-        :editable="false"
65
-        style="width: 150px"
66
-        type="date"
67
-        placeholder="选择日期时间"
68
-        align="right"
69
-        format="yyyy-MM-dd"
70
-        value-format="yyyy-MM-dd"
71
-        @change="startTimeChange"
72
-      ></el-date-picker>
73
-      <span class="cellLine"> - </span>
74
-      <el-date-picker
75
-        size="small"
76
-        v-model="end_time"
77
-        prefix-icon="el-icon-date"
78
-        :editable="false"
79
-        style="width: 150px"
80
-        type="date"
81
-        placeholder="选择日期时间"
82
-        align="right"
83
-        format="yyyy-MM-dd"
84
-        value-format="yyyy-MM-dd"
85
-        @change="endTimeChange"
86
-      ></el-date-picker>
51
+        <label class="title"><span class="name">日期查询</span> : </label>
52
+        <el-date-picker
53
+          size="small"
54
+          v-model="start_time"
55
+          prefix-icon="el-icon-date"
56
+          :editable="false"
57
+          style="width: 150px;"
58
+          type="date"
59
+          placeholder="选择日期时间"
60
+          align="right"
61
+          format="yyyy-MM-dd"
62
+          value-format="yyyy-MM-dd"
63
+          @change="startTimeChange"
64
+        ></el-date-picker>
65
+        <span class="cellLine"> - </span>
66
+        <el-date-picker
67
+          size="small"
68
+          v-model="end_time"
69
+          prefix-icon="el-icon-date"
70
+          :editable="false"
71
+          style="width: 150px;"
72
+          type="date"
73
+          placeholder="选择日期时间"
74
+          align="right"
75
+          format="yyyy-MM-dd"
76
+          value-format="yyyy-MM-dd"
77
+          @change="endTimeChange"
78
+        ></el-date-picker>
79
+
87
     </div>
80
     </div>
88
 
81
 
82
+
89
     <el-row :gutter="12" style="margin-top: 10px">
83
     <el-row :gutter="12" style="margin-top: 10px">
90
       <el-table
84
       <el-table
91
         :data="tableData"
85
         :data="tableData"
97
         :row-style="{ color: '#303133' }"
91
         :row-style="{ color: '#303133' }"
98
         :header-cell-style="{
92
         :header-cell-style="{
99
           backgroundColor: 'rgb(245, 247, 250)',
93
           backgroundColor: 'rgb(245, 247, 250)',
100
-          color: '#606266',
94
+          color: '#606266'
101
         }"
95
         }"
102
       >
96
       >
103
         <el-table-column label="单据编号" align="center" width="200">
97
         <el-table-column label="单据编号" align="center" width="200">
115
           </template>
109
           </template>
116
         </el-table-column>
110
         </el-table-column>
117
 
111
 
118
-        <el-table-column label="药品名称" align="center">
112
+         <el-table-column label="药品名称" align="center">
119
           <template slot-scope="scope">
113
           <template slot-scope="scope">
120
-            {{ scope.row.drug_name }}
114
+            {{scope.row.drug_name}}
121
           </template>
115
           </template>
122
         </el-table-column>
116
         </el-table-column>
123
 
117
 
124
         <el-table-column label="规格型号" align="center">
118
         <el-table-column label="规格型号" align="center">
125
           <template slot-scope="scope">
119
           <template slot-scope="scope">
126
-            <!-- {{scope.row.drug_spec}} -->
127
-            {{ scope.row.specification_name }}
120
+           <!-- {{scope.row.drug_spec}} -->
121
+           {{scope.row.specification_name}}
128
           </template>
122
           </template>
129
         </el-table-column>
123
         </el-table-column>
130
 
124
 
125
+
131
         <el-table-column label="操作时间" align="center">
126
         <el-table-column label="操作时间" align="center">
132
           <template slot-scope="scope">
127
           <template slot-scope="scope">
133
-            <span>{{ getTime(scope.row.ctime) }}</span>
128
+           <span>{{getTime(scope.row.ctime)}}</span>
134
           </template>
129
           </template>
135
         </el-table-column>
130
         </el-table-column>
136
         <el-table-column label="制单人" align="center">
131
         <el-table-column label="制单人" align="center">
137
           <template slot-scope="scope">
132
           <template slot-scope="scope">
138
-            {{ getAdminUser(scope.row.creater) }}
133
+           {{getAdminUser(scope.row.creater)}}
139
           </template>
134
           </template>
140
         </el-table-column>
135
         </el-table-column>
141
         <el-table-column label="仓库名称" align="center">
136
         <el-table-column label="仓库名称" align="center">
142
           <template slot-scope="scope">
137
           <template slot-scope="scope">
143
-            {{ getStorehouseName(scope.row.storehouse_id) }}
138
+           {{getStorehouseName(scope.row.storehouse_id)}}
144
           </template>
139
           </template>
145
         </el-table-column>
140
         </el-table-column>
146
         <el-table-column label="出货价" align="center">
141
         <el-table-column label="出货价" align="center">
147
           <template slot-scope="scope">
142
           <template slot-scope="scope">
148
-            <span v-if="org_id == 9919">{{ scope.row.last_price }} </span>
149
-            <span v-else>
150
-              <span v-if="scope.row.price > 0"> {{ scope.row.price }}</span>
151
-              <span v-if="scope.row.price == 0">
152
-                {{ getPrice(scope.row.drug_id) }}</span
153
-              >
154
-            </span>
143
+           <span v-if="org_id == 9919">{{scope.row.last_price}} </span>
144
+           <span v-else>
145
+             <span v-if="scope.row.price >0"> {{scope.row.price}}</span>
146
+            <span v-if="scope.row.price  == 0"> {{getPrice(scope.row.drug_id)}}</span>
147
+           </span>
155
           </template>
148
           </template>
156
         </el-table-column>
149
         </el-table-column>
157
         <el-table-column label="数量" align="center">
150
         <el-table-column label="数量" align="center">
158
           <template slot-scope="scope">
151
           <template slot-scope="scope">
159
-            {{ scope.row.count }}
152
+            {{scope.row.count}}
160
           </template>
153
           </template>
161
         </el-table-column>
154
         </el-table-column>
162
-        <el-table-column label="单位" align="center">
155
+         <el-table-column label="单位" align="center">
163
           <template slot-scope="scope">
156
           <template slot-scope="scope">
164
-            {{ scope.row.count_unit }}
157
+            {{scope.row.count_unit}}
165
           </template>
158
           </template>
166
         </el-table-column>
159
         </el-table-column>
167
         <el-table-column label="总价" align="center">
160
         <el-table-column label="总价" align="center">
168
           <template slot-scope="scope">
161
           <template slot-scope="scope">
169
-            <span v-if="scope.row.is_total != 1">
170
-              <span v-if="org_id == 9919"
171
-                >{{ (scope.row.last_price * scope.row.count).toFixed(2) }}
172
-              </span>
173
-              <span v-if="org_id == 10210"
174
-                >{{ (scope.row.price * scope.row.count).toFixed(2) }}
175
-              </span>
176
-              <span v-if="org_id == 9671"
177
-                >{{ (scope.row.price * scope.row.count).toFixed(2) }}
178
-              </span>
179
-              <span v-if="org_id != 9919 && org_id != 10210 && org_id != 9671">
180
-                {{ scope.row.total_price }}
181
-              </span>
162
+            <span v-if="scope.row.is_total !=1">
163
+              <span v-if="org_id == 9919">{{(scope.row.last_price * scope.row.count).toFixed(2)}} </span>
164
+              <span v-if="org_id == 10210 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span>
165
+              <span v-if="org_id == 9671 ">{{(scope.row.price * scope.row.count).toFixed(2)}} </span>
166
+              <span v-if ="org_id!=9919 && org_id!=10210 && org_id!=9671">
167
+                 {{scope.row.total_price}}
168
+               </span>
182
             </span>
169
             </span>
183
             <span v-if="scope.row.is_total == 1">
170
             <span v-if="scope.row.is_total == 1">
184
-              {{ scope.row.total_price }}
171
+              {{scope.row.total_price}}
185
             </span>
172
             </span>
186
           </template>
173
           </template>
187
         </el-table-column>
174
         </el-table-column>
190
       <el-pagination
177
       <el-pagination
191
         @size-change="handleSizeChange"
178
         @size-change="handleSizeChange"
192
         @current-change="handleCurrentChange"
179
         @current-change="handleCurrentChange"
193
-        :page-sizes="[10, 50, 100, 1000]"
180
+        :page-sizes="[10, 50, 100,1000]"
194
         :page-size="10"
181
         :page-size="10"
195
         background
182
         background
196
-        style="margin-top: 20px; float: right"
183
+        style="margin-top:20px;float: right"
197
         layout="total, sizes, prev, pager, next, jumper"
184
         layout="total, sizes, prev, pager, next, jumper"
198
         :total="total"
185
         :total="total"
199
       >
186
       >
476
                 }
463
                 }
477
                 total_price +=order[i].total_price
464
                 total_price +=order[i].total_price
478
                }
465
                }
466
+
479
              }
467
              }
468
+
480
           }
469
           }
470
+           console.log("toal_p3232332332233232",total_price)
481
            order.push({
471
            order.push({
482
             warehouse_out_order_number: "合计",
472
             warehouse_out_order_number: "合计",
483
             is_total: 1,
473
             is_total: 1,
489
           for(let i=0;i<order.length;i++){
479
           for(let i=0;i<order.length;i++){
490
             order[i].total_price = order[i].total_price.toFixed(2)
480
             order[i].total_price = order[i].total_price.toFixed(2)
491
           }
481
           }
482
+
483
+          console.log("233223322323322332232323",order)
492
           this.tableData = order
484
           this.tableData = order
493
 
485
 
494
            let objInfo = {}
486
            let objInfo = {}
542
               }
534
               }
543
             })
535
             })
544
           }
536
           }
537
+
538
+
545
           for(let i=0;i<list.length;i++){
539
           for(let i=0;i<list.length;i++){
546
             for(let j=0;j<list[i].child.length;j++){
540
             for(let j=0;j<list[i].child.length;j++){
547
               if(list[i].child[j].count!=null || list[i].child[j].count != "" || list[i].child[j].count!=0){
541
               if(list[i].child[j].count!=null || list[i].child[j].count != "" || list[i].child[j].count!=0){
557
           this.tableList = list
551
           this.tableList = list
558
           var total = response.data.data.total
552
           var total = response.data.data.total
559
           this.total = total
553
           this.total = total
560
-          }}
561
-  )}
554
+        }
555
+      })
562
     },
556
     },
563
 
557
 
564
    select(){
558
    select(){
882
        this.houseList = []
876
        this.houseList = []
883
        this.getlist()
877
        this.getlist()
884
      }
878
      }
885
-  
879
+  }
886
 };
880
 };
887
 </script>
881
 </script>
888
 
882
 

+ 1 - 1
src/xt_pages/stock/drugs/inventoryDetails.vue View File

27
                 >
27
                 >
28
             </div>
28
             </div>
29
             <div>
29
             <div>
30
-               <el-button size="small" type="primary" @click="print_1">打印</el-button>
30
+               <!-- <el-button size="small" type="primary" @click="print_1">打印</el-button> -->
31
                <el-button size="small" type="primary" @click="print">盘点模版打印</el-button>
31
                <el-button size="small" type="primary" @click="print">盘点模版打印</el-button>
32
             </div>
32
             </div>
33
             <!-- <div>
33
             <!-- <div>

+ 1 - 1
src/xt_pages/stock/inventoryDetails.vue View File

26
                 @click="search">搜索</el-button>
26
                 @click="search">搜索</el-button>
27
             </div>
27
             </div>
28
             <div>
28
             <div>
29
-              <el-button type="primary" @click="toprint">打印</el-button>
29
+              <!-- <el-button type="primary" @click="toprint">打印</el-button> -->
30
               <el-button type="primary" @click="inventoryExportList">盘点模版打印</el-button>
30
               <el-button type="primary" @click="inventoryExportList">盘点模版打印</el-button>
31
             </div>
31
             </div>
32
             <!-- <div>
32
             <!-- <div>

+ 18 - 29
src/xt_pages/stock/stockOutOrder.vue View File

110
           >导出</el-button
110
           >导出</el-button
111
         >
111
         >
112
         <span>&nbsp;&nbsp;</span>
112
         <span>&nbsp;&nbsp;</span>
113
-        <!-- <el-button size="small" type="primary" @click="toExport">导出</el-button> -->
114
-        <!-- <span>&nbsp;&nbsp;</span> -->
115
         <label class="title"><span class="name">出库方式</span> :</label>
113
         <label class="title"><span class="name">出库方式</span> :</label>
116
         <el-select size="small" v-model="way_type" filterable placeholder="请选择仓库" style="width:200px" @change="changeWay">
114
         <el-select size="small" v-model="way_type" filterable placeholder="请选择仓库" style="width:200px" @change="changeWay">
117
             <el-option
115
             <el-option
122
             </el-option>
120
             </el-option>
123
         </el-select> 
121
         </el-select> 
124
 
122
 
125
-        <div style="margin-left: 10px">
126
-          <span>审核状态:</span>
127
-          <el-select
128
-            v-model="check_type"
129
-            style="width: 140px; margin-right: 10px"
130
-            placeholder="请选择"
131
-            @change="changeCheckList"
132
-          >
133
-            <el-option
134
-              v-for="item in checkList"
135
-              :key="item.id"
136
-              :label="item.name"
137
-              :value="item.id"
138
-            >
139
-            </el-option>
123
+       <span>&nbsp;&nbsp;</span>
124
+          <label class="title"><span class="name">审核状态</span> :</label>
125
+          <el-select size="small" v-model="check_type" filterable placeholder="请选择仓库" style="width:200px" @change="changeCheckType">
126
+              <el-option
127
+                v-for="(option, index) in checkList"
128
+                :key="index"
129
+                :label="option.name"
130
+                :value="option.id">
131
+              </el-option>
140
           </el-select>
132
           </el-select>
141
-        </div>
142
       </div>
133
       </div>
143
 
134
 
144
       <el-table
135
       <el-table
191
           </template>
182
           </template>
192
         </el-table-column>
183
         </el-table-column>
193
 
184
 
194
-       <el-table-column label="审核状态" align="center">
185
+        <el-table-column label="审核状态" align="center">
195
           <template slot-scope="scope">
186
           <template slot-scope="scope">
196
             <span v-if="scope.row.is_check == 1">已审核</span>
187
             <span v-if="scope.row.is_check == 1">已审核</span>
197
             <span v-if="scope.row.is_check == 2">未审核</span>
188
             <span v-if="scope.row.is_check == 2">未审核</span>
872
     >
863
     >
873
     </stock-in-dialog>
864
     </stock-in-dialog>
874
   </div>
865
   </div>
875
-  </div>
876
 </template>
866
 </template>
877
 
867
 
878
 <script>
868
 <script>
1046
         keyword: this.keywords,
1036
         keyword: this.keywords,
1047
         page: this.page,
1037
         page: this.page,
1048
         limit: this.limit,
1038
         limit: this.limit,
1049
-        check_type:this.check_type,
1050
       };
1039
       };
1051
       getAllSecondOrderList(params).then((response) => {
1040
       getAllSecondOrderList(params).then((response) => {
1052
         if (response.data.state == 1) {
1041
         if (response.data.state == 1) {
1234
           row.is_sys +
1223
           row.is_sys +
1235
           "&supply_cancel_out_id=" +
1224
           "&supply_cancel_out_id=" +
1236
           row.supply_cancel_out_id+
1225
           row.supply_cancel_out_id+
1237
-          "&is_check="+row.is_check+"&type="+row.type,
1226
+          "&type="+row.type+"&is_check="+row.is_check,
1238
       });
1227
       });
1239
     },
1228
     },
1240
     handleDelete: function (index, row) {
1229
     handleDelete: function (index, row) {
1328
         }
1317
         }
1329
         if (this.selectedTableData[i].is_sys == 0) {
1318
         if (this.selectedTableData[i].is_sys == 0) {
1330
           ids.push(this.selectedTableData[i].id);
1319
           ids.push(this.selectedTableData[i].id);
1331
-          if(this.selectedTableData[i].supply_cancel_out_id > 0){
1320
+          if(this.selectedTableData[i].supply_cancel_out_id >0){
1332
             idOne.push(this.selectedTableData[i].supply_cancel_out_id);
1321
             idOne.push(this.selectedTableData[i].supply_cancel_out_id);
1333
           }
1322
           }
1334
-        
1323
+          
1335
         }
1324
         }
1336
       }
1325
       }
1337
       if (idOne.length > 0) {
1326
       if (idOne.length > 0) {
1369
               }
1358
               }
1370
             }
1359
             }
1371
           });
1360
           });
1372
-      })
1373
-        .catch(() => {})}
1361
+        })
1362
+        .catch(() => {});
1374
     },
1363
     },
1375
 
1364
 
1376
     handleSearch(val) {
1365
     handleSearch(val) {
2039
     changeWay() {
2028
     changeWay() {
2040
       this.GetWarehouseOut();
2029
       this.GetWarehouseOut();
2041
     },
2030
     },
2042
-    changeCheckList(){
2043
-      this.GetWarehouseOut();
2031
+    changeCheckType(){
2032
+      this.GetWarehouseOut()
2044
     }
2033
     }
2045
-  
2034
+  },
2046
 };
2035
 };
2047
 </script>
2036
 </script>
2048
 
2037