mainqaq 3 年之前
父節點
當前提交
b2332790e1
共有 1 個文件被更改,包括 22 次插入22 次删除
  1. 22 22
      src/xt_pages/stock/drugs/drugDamaged.vue

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

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