Преглед изворни кода

Merge branch '20200710_pc_vue_new_branch' into 20200916_pc_vue_new_branch

csx пре 4 година
родитељ
комит
f0727d4af0

+ 48 - 0
src/api/data.js Прегледај датотеку

@@ -176,4 +176,52 @@ export function createDrugUnitSafeguard(params) {
176 176
 
177 177
 
178 178
 
179
+export function createMZSick(params) {
180
+  return request({
181
+    url: '/api/stock/dealer/create',
182
+    method: 'post',
183
+    params: params
184
+  })
185
+}
186
+
187
+export function modifyMZSick(params) {
188
+  return request({
189
+    url: '/api/stock/dealer/modify',
190
+    method: 'post',
191
+    params: params
192
+  })
193
+}
194
+
195
+export function getMZSickList(params) {
196
+  return request({
197
+    url: '/api/stock/dealer/list',
198
+    method: 'get',
199
+    params: params
200
+  })
201
+}
202
+
203
+export function deleteMZSick(params) {
204
+  return request({
205
+    url: '/api/stock/dealer/delete',
206
+    method: 'post',
207
+    params: params
208
+  })
209
+}
210
+
211
+export function GetMZSickr(params) {
212
+  return request({
213
+    url: '/api/stock/dealer/get',
214
+    method: 'get',
215
+    params: params
216
+  })
217
+}
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
179 227
 

+ 5 - 0
src/xt_pages/data/specialDictionary.vue Прегледај датотеку

@@ -25,6 +25,11 @@
25 25
           <!--<supplier></supplier>-->
26 26
           <dealer></dealer>
27 27
         </el-tab-pane>
28
+
29
+        <el-tab-pane label="门诊大病" name="6">
30
+          <manufacturer></manufacturer>
31
+
32
+        </el-tab-pane>
28 33
         <el-tab-pane label="配置项字典" name="7">
29 34
           <configure></configure>
30 35
         </el-tab-pane>

+ 181 - 0
src/xt_pages/outpatientDoctorStation/components/newPrescriptionTable.vue Прегледај датотеку

@@ -0,0 +1,181 @@
1
+<template>
2
+  <div class="prescriptionTable">
3
+    <el-table v-if="prescription.type == 1" :data="prescription.advices" border style="width: 99%;"
4
+              :row-style="{ color: '#303133' }"
5
+              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
6
+      <el-table-column align="center" prop="name" label="名称">
7
+        <template slot-scope="scope">{{ scope.row.drug_name }}</template>
8
+      </el-table-column>
9
+
10
+      <el-table-column align="center" prop="name" width="50" :label="'单次\n用量'">
11
+        <template slot-scope="scope">
12
+          <el-input v-model="scope.row.single_dose" readonly></el-input>
13
+          <div> {{scope.row.min_unit}}</div>
14
+        </template>
15
+      </el-table-column>
16
+      <el-table-column align="center" prop="name" width="50" label="用法">
17
+        <template slot-scope="scope">
18
+          <el-input v-model="scope.row.delivery_way" readonly></el-input>
19
+
20
+        </template>
21
+      </el-table-column>
22
+      <el-table-column align="center" prop="name" width="50" label="频率">
23
+        <template slot-scope="scope">
24
+          <el-input v-model="scope.row.execution_frequency" readonly></el-input>
25
+        </template>
26
+      </el-table-column>
27
+
28
+      <el-table-column align="center" prop="name" width="100" label="总量">
29
+        <template slot-scope="scope">
30
+          <div style="display:flex;">
31
+            <el-input v-model="scope.row.prescribing_number" style="width:50%" readonly placeholder=""></el-input>
32
+            <div>{{scope.row.min_unit}}</div>
33
+          </div>
34
+        </template>
35
+      </el-table-column>
36
+      <el-table-column align="center" prop="name" width="50" label="单价">
37
+        <template slot-scope="scope">
38
+          <el-input v-model="scope.row.retail_price" placeholder="" readonly></el-input>
39
+        </template>
40
+      </el-table-column>
41
+      <el-table-column align="center" prop="name" width="50" label="备注">
42
+        <template slot-scope="scope">
43
+          <el-input v-model="scope.row.remark" style="width:50%" placeholder="" readonly></el-input>
44
+        </template>
45
+      </el-table-column>
46
+    </el-table>
47
+    <el-table v-if="prescription.type == 2" :data="prescription.project" border style="width: 99%;"
48
+              :row-style="{ color: '#303133' }"
49
+              :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}" highlight-current-row>
50
+
51
+      <el-table-column align="center" prop="project_name" label="名称">
52
+        <template slot-scope="scope">{{ scope.row.project_name }}</template>
53
+      </el-table-column>
54
+      <el-table-column align="center" prop="statistical_classification" width="50" label="组">
55
+        <template slot-scope="scope">
56
+          {{getGroup(scope.row.statistical_classification)}}
57
+        </template>
58
+      </el-table-column>
59
+      <el-table-column align="center" prop="single_dose" width="130" :label="'单次\n用量'">
60
+        <template slot-scope="scope">
61
+          <el-input v-model="scope.row.single_dose" placeholder="" readonly></el-input>
62
+        </template>
63
+      </el-table-column>
64
+      <el-table-column align="center" prop="delivery_way" width="130" label="用法">
65
+        <template slot-scope="scope">
66
+          <el-input v-model="scope.row.delivery_way" placeholder="" readonly></el-input>
67
+        </template>
68
+      </el-table-column>
69
+      <el-table-column align="center" prop="execution_frequency" width="130" label="频率">
70
+        <template slot-scope="scope">
71
+          <el-input v-model="scope.row.execution_frequency" placeholder="" readonly></el-input>
72
+        </template>
73
+      </el-table-column>
74
+      <el-table-column align="center" prop="number_days" width="130" label="天数">
75
+        <template slot-scope="scope">
76
+          <el-input v-model="scope.row.number_days" placeholder="" readonly></el-input>
77
+        </template>
78
+      </el-table-column>
79
+      <el-table-column align="center" prop="total" width="100" label="总量">
80
+        <template slot-scope="scope">
81
+          <div style="display:flex;">
82
+            <el-input v-model="scope.row.total" style="width:50" placeholder="" readonly></el-input>
83
+          </div>
84
+        </template>
85
+      </el-table-column>
86
+      <el-table-column align="center" prop="name" width="50" label="单价">
87
+        <template slot-scope="scope">
88
+          <el-input v-model="scope.row.price" placeholder="" readonly></el-input>
89
+        </template>
90
+      </el-table-column>
91
+      <el-table-column align="center" prop="name" width="120" label="备注">
92
+        <template slot-scope="scope">
93
+          <el-input v-model="scope.row.remark" readonly></el-input>
94
+        </template>
95
+      </el-table-column>
96
+    </el-table>
97
+  </div>
98
+
99
+
100
+
101
+
102
+
103
+</template>
104
+
105
+<script>
106
+  import { getInitData } from '@/api/his/his'
107
+  import { getDictionaryDataConfig} from "@/utils/data";
108
+
109
+  export default {
110
+    props: {
111
+      prescription: Object
112
+    },
113
+    data() {
114
+      return {
115
+        drugways: [],
116
+        efs: []
117
+      }
118
+    }, mounted() {
119
+      getInitData().then(response => {
120
+        if (response.data.state == 0) {
121
+          this.$message.error(response.data.msg)
122
+          return false
123
+        } else {
124
+          this.drugways = response.data.data.drugways
125
+          this.efs = response.data.data.efs
126
+        }
127
+      })
128
+    }, methods:  {
129
+
130
+
131
+      getGroup(id){
132
+        var name = ""
133
+        var statistics_category =  getDictionaryDataConfig('system','statistics_category')
134
+        console.log("2235",statistics_category)
135
+        for(let i=0;i<statistics_category.length;i++){
136
+          if(id == statistics_category[i].id){
137
+            name = statistics_category[i].name
138
+          }
139
+        }
140
+        return name
141
+      },
142
+
143
+
144
+    }
145
+  }
146
+</script>
147
+
148
+<style lang="scss">
149
+  .prescriptionTable{
150
+  .additionalBox{
151
+    margin-top: 20px;
152
+    display: flex;
153
+    flex-wrap: wrap;
154
+  .additionalOne{
155
+    margin-right:20px;
156
+    margin-bottom:10px;
157
+    display: flex;
158
+    align-items: center;
159
+  >span{
160
+    white-space: nowrap;
161
+    overflow: hidden;
162
+    text-overflow: ellipsis;
163
+    width:60px;
164
+    display: inline-block;
165
+    font-size: 14px;
166
+  }
167
+  }
168
+  .deleteIcon{
169
+    color:red;
170
+    margin-left:5px;
171
+  }
172
+  }
173
+  .el-table th .cell, .el-table td .cell{
174
+    padding: 0 2px;
175
+    white-space: pre-line;
176
+  }
177
+  .el-icon-delete{
178
+    color:red;
179
+  }
180
+  }
181
+</style>