Browse Source

批量打印

XMLWAN 4 years ago
parent
commit
0b280f0145

+ 1 - 1
src/api/his/his.js View File

@@ -21,7 +21,7 @@ export function getPatientInfo(params) {
21 21
 
22 22
 
23 23
 export function createCaseHistory(params) {
24
-  // console.log("params",params)
24
+  console.log("params",params)
25 25
   return request({
26 26
     url: "/api/doctorworkstation/casehistory/create",
27 27
     method: "get",

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

@@ -270,6 +270,7 @@
270 270
             }
271 271
           })
272 272
         } else if (val.isCreated == 1) {
273
+          console.log("val00000",val)
273 274
           //新增
274 275
           createAddition(val).then(response => {
275 276
             if (response.data.state == 0) {

+ 4 - 2
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -1011,14 +1011,14 @@
1011 1011
             }
1012 1012
 
1013 1013
             for (let b = 0; b < this.prescriptions[i].project.length; b++) {
1014
-              this.prescriptions[i].project[b].price = parseFloat(this.prescriptions[i].project[b].price)
1014
+              this.prescriptions[i].project[b].price = this.prescriptions[i].project[b].price.toString()
1015 1015
               this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
1016 1016
             }
1017 1017
 
1018 1018
             for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
1019 1019
               this.prescriptions[i].addition[b].id = parseInt(this.prescriptions[i].addition[b].id)
1020 1020
               this.prescriptions[i].addition[b].item_id = parseInt(this.prescriptions[i].addition[b].item_id)
1021
-              this.prescriptions[i].addition[b].price = parseFloat(this.prescriptions[i].addition[b].price)
1021
+              this.prescriptions[i].addition[b].price = this.prescriptions[i].addition[b].price.toString()
1022 1022
               this.prescriptions[i].addition[b].count = this.prescriptions[i].addition[b].count.toString()
1023 1023
             }
1024 1024
           }
@@ -1026,6 +1026,8 @@
1026 1026
             'prescriptions': this.prescriptions
1027 1027
           }
1028 1028
           isLoading = true
1029
+          console.log("prescriptions9999",this.prescriptions)
1030
+          console.log("params---",params)
1029 1031
           createHisPrescription(data, params).then(response => {
1030 1032
             if (response.data.state == 1) {
1031 1033
               this.$emit("change")

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

@@ -147,7 +147,7 @@
147 147
             </template>
148 148
           </el-table-column>
149 149
 
150
-          <el-table-column label="零价" align="center" width="150">
150
+          <el-table-column label="零价" align="center" width="150">
151 151
             <template slot-scope="scope">
152 152
               {{ scope.row.retail_price }}
153 153
             </template>

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

@@ -182,7 +182,7 @@
182 182
           </el-table-column>
183 183
 
184 184
 
185
-          <el-table-column label="零价" align="center" width="150">
185
+          <el-table-column label="零价" align="center" width="150">
186 186
             <template slot-scope="scope">
187 187
               {{ scope.row.retail_price }}
188 188
             </template>

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

@@ -157,7 +157,7 @@
157 157
       <el-pagination
158 158
         @size-change="handleSizeChange"
159 159
         @current-change="handleCurrentChange"
160
-        :page-sizes="[10, 50, 100]"
160
+        :page-sizes="[10, 50, 100,200,500,1000]"
161 161
         :page-size="10"
162 162
         background
163 163
         align="right"

+ 15 - 2
src/xt_pages/workforce/components/nextTableWeeks.vue View File

@@ -221,6 +221,13 @@ export default {
221 221
         path: "/schedule/remind/print/next?week_type=" + this.week_type+"&week_time="+this.week_time
222 222
       });
223 223
     },
224
+   compare(property) {
225
+       return function (a, b) {
226
+          var value1 = a[property];
227
+          var value2 = b[property];
228
+          return value1 - value2;
229
+      }
230
+     },
224 231
     getNextScheduleWeekDay() {
225 232
         const params = {
226 233
           start_time:moment().week(moment().week() + 1).startOf('week').unix(),
@@ -232,8 +239,14 @@ export default {
232 239
       getNextScheduleWeekDay(params).then(response => {
233 240
         this.scheduleData = [];
234 241
         if (response.data.state == 1) {
235
-          this.scheduleData = response.data.data.schedule;
236
-          console.log("下周数据",response.data.data.schedule)
242
+          var scheduleData = response.data.data.schedule;
243
+          for(let i=0;i<scheduleData.length;i++){
244
+             scheduleData[i].sort = scheduleData[i].number.sort
245
+           }
246
+          var arr =   scheduleData.sort(this.compare('sort'))
247
+          // console.log("元旦快乐",arr)
248
+          this.scheduleData = arr
249
+        
237 250
          
238 251
         } else {
239 252
           this.$message.error("网络错误");

+ 14 - 2
src/xt_pages/workforce/components/tableWeeks.vue View File

@@ -220,6 +220,13 @@ export default {
220 220
         path: "/schedule/remind/print?week_type=" + this.week_type+"&week_time="+this.week_time
221 221
       });
222 222
     },
223
+    compare(property) {
224
+       return function (a, b) {
225
+          var value1 = a[property];
226
+          var value2 = b[property];
227
+          return value1 - value2;
228
+      }
229
+     },
223 230
     getScheduleWeekDay() {
224 231
         const params = {
225 232
           week_type:this.week_type,
@@ -229,8 +236,13 @@ export default {
229 236
       getScheduleWeekDay(params).then(response => {
230 237
         this.scheduleData = [];
231 238
         if (response.data.state == 1) {
232
-          this.scheduleData = response.data.data.schdules;
233
-         
239
+           var scheduleData = response.data.data.schdules;
240
+           for(let i=0;i<scheduleData.length;i++){
241
+             scheduleData[i].sort = scheduleData[i].number.sort
242
+           }
243
+          var arr =   scheduleData.sort(this.compare('sort'))
244
+          // console.log("元旦快乐",arr)
245
+          this.scheduleData = arr
234 246
         } else {
235 247
           this.$message.error("网络错误");
236 248
           return false;