소스 검색

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 일 전
부모
커밋
85e65d9a44

+ 2 - 2
src/xt_pages/outpatientCharges/summary.vue 파일 보기

@@ -296,7 +296,7 @@
296 296
             <div v-if="scope.row.order_status == 3">已退费</div>
297 297
           </template>
298 298
         </el-table-column>
299
-        <el-table-column align="center" width="" prop="name" label="操作">
299
+        <el-table-column align="center" width="" prop="name" label="操作"  fixed="right">
300 300
           <template slot-scope="scope">
301 301
             <el-button class="butt_1" size="mini" type="primary" @click="toDetail(scope.row)"
302 302
             >详情
@@ -2073,7 +2073,7 @@ export default {
2073 2073
           var tarList = []
2074 2074
           for (let i = 0; i < list.length; i++) {
2075 2075
             let obj = {
2076
-              '周期': '2024年第季度',
2076
+              '周期': '2024年第季度',
2077 2077
               '类别': '门诊',
2078 2078
               '医保目录编码': list[i].code,
2079 2079
               '医保目录名称': list[i].name,

+ 9 - 6
src/xt_pages/outpatientTool/components/settle.vue 파일 보기

@@ -117,6 +117,7 @@
117 117
                   <div v-if="scope.row.med_type == '11'">普通门诊</div>
118 118
                   <div v-if="scope.row.med_type == '1112'">普通门诊</div>
119 119
                   <div v-if="scope.row.med_type == '140104'">城乡门诊特殊病(140104)</div>
120
+                <div v-if="scope.row.med_type == '140201'">门诊特病(140201)</div>
120 121
                   <div v-if="scope.row.med_type == '992102'">单病种(992102)</div>
121 122
               </template>
122 123
           </el-table-column>
@@ -297,7 +298,9 @@
297 298
           <div v-if="scope.row.med_type == '14'">门诊特殊病</div>
298 299
           <div v-if="scope.row.med_type == '11'">普通门诊</div>
299 300
           <div v-if="scope.row.med_type == '1112'">普通门诊</div>
300
-
301
+          <div v-if="scope.row.med_type == '140104'">门诊特殊病(140104)</div>
302
+          <div v-if="scope.row.med_type == '140201'">门诊特病(140201)</div>
303
+          <div v-if="scope.row.med_type == '992102'">单病种(992102)</div>
301 304
         </template>
302 305
       </el-table-column>
303 306
       <el-table-column align="center" prop="medfee_sumamt" label="医疗费总额">
@@ -689,11 +692,11 @@ import { uParseTime } from '@/utils/tools'
689 692
             return
690 693
           }
691 694
           const values = data.map(item => Number(item[column.property]))
692
-          if (column.property === 'total' || column.property === 'medfee_sumamt'  || column.property === 'fund_pay_sumamt'  || 
693
-              column.property === 'acct_pay'  || column.property === 'maf_pay'  || column.property === 'psn_cash_pay'  || 
694
-              column.property === 'hifp_pay'  || column.property === 'hifob_pay' ||  column.property === 'hifes_pay' || 
695
-              column.property === 'hifmi_pay' || column.property === 'oth_pay' || column.property === 'cvlserv_pay' || 
696
-              column.property === 'wechat_pay' || column.property === 'ali_pay' || column.property === 'band_card_pay' || 
695
+          if (column.property === 'total' || column.property === 'medfee_sumamt'  || column.property === 'fund_pay_sumamt'  ||
696
+              column.property === 'acct_pay'  || column.property === 'maf_pay'  || column.property === 'psn_cash_pay'  ||
697
+              column.property === 'hifp_pay'  || column.property === 'hifob_pay' ||  column.property === 'hifes_pay' ||
698
+              column.property === 'hifmi_pay' || column.property === 'oth_pay' || column.property === 'cvlserv_pay' ||
699
+              column.property === 'wechat_pay' || column.property === 'ali_pay' || column.property === 'band_card_pay' ||
697 700
               column.property === 'jifen_pay' || column.property === 'cash_pay' || column.property ==='card_desc'
698 701
           ) {
699 702
             sums[index] = values.reduce((prev, curr) => {

+ 70 - 2
src/xt_pages/stock/detail/cancelStockDetail.vue 파일 보기

@@ -82,7 +82,30 @@
82 82
         @click="getAllQuery"
83 83
         >查询</el-button
84 84
       >
85
+    
86
+     
87
+
88
+    </div>
85 89
 
90
+    <div style="margin-bottom: 10px;">
91
+
92
+        <label class="title"><span class="name">耗材名称</span> : </label>
93
+        <el-autocomplete
94
+          class="checkSearch"
95
+          popper-class="my-autocomplete"
96
+          v-model="good_name"
97
+          :fetch-suggestions="querySearchAsync"
98
+          :trigger-on-focus="true"
99
+          placeholder="请输入耗材名称"
100
+          @select="handleSelect"
101
+          style="width:300px;"
102
+          :popper-append-to-body="true"
103
+        >
104
+          <i class="el-icon-search el-input__icon" slot="suffix"></i>
105
+        <template slot-scope="{ item }">
106
+          <div class="name">{{ item.good_name +"  " +item.specification_name + "  "+item.manufacturer }}</div>
107
+        </template>
108
+        </el-autocomplete>
86 109
 
87 110
     </div>
88 111
 
@@ -202,7 +225,7 @@
202 225
 <script>
203 226
 import { uParseTime } from "@/utils/tools";
204 227
 import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
205
-import { deleteCancelStock, GetAllConfig, getStockDetail } from "@/api/stock";
228
+import { deleteCancelStock, GetAllConfig, getStockDetail,postSearchGoodList } from "@/api/stock";
206 229
 
207 230
 export default {
208 231
   name: "cancelStockDetail",
@@ -280,11 +303,55 @@ export default {
280 303
       storehouse_id:0,
281 304
       manufacturerList:[],
282 305
       dealerList:[],
283
-      patientsList:[]
306
+      patientsList:[],
307
+      good_name:"",
308
+      good_id:0,
284 309
         
285 310
     };
286 311
   },
287 312
   methods: {
313
+    handleSelect(val){
314
+     this.good_name = val.good_name
315
+     this.good_id = val.id
316
+     this.GetCancelStock();
317
+    },
318
+    querySearchAsync(keyword, cb) {
319
+        let key = '';
320
+        if (keyword != undefined) {
321
+          key = keyword
322
+        }
323
+      postSearchGoodList(key,this.storehouse_id).then(response => {
324
+          if (response.data.state == 1) {
325
+
326
+             var list = response.data.data.list
327
+
328
+             this.goodList = list
329
+             var manufacturerList = response.data.data.manufacturerList
330
+             this.manufacturerList = manufacturerList
331
+             var dealer =  response.data.data.dealerList
332
+             this.dealerList = dealer
333
+             for(let i=0;i<this.goodList.length;i++){
334
+                for(let j=0;j<this.manufacturerList.length;j++){
335
+                  if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
336
+                     this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
337
+                  }
338
+                }
339
+             }
340
+
341
+             for(let i=0;i<this.goodList.length;i++){
342
+               for(let j=0;j<this.dealerList.length;j++){
343
+                  if(this.goodList[i].dealer == this.dealerList[j].id){
344
+                    this.goodList[i].dealer = this.dealerList[j].dealer_name
345
+                  }
346
+               }
347
+             }
348
+
349
+             cb(this.goodList)
350
+          } else {
351
+            cb([])
352
+          }
353
+        })
354
+     },
288 355
     PrintAction: function() {
289 356
       window.sessionStorage.setItem('start_time_one',this.start_time)
290 357
       window.sessionStorage.setItem('end_time_one',this.end_time)
@@ -396,6 +463,7 @@ export default {
396 463
         dealer: this.dealer_id,
397 464
         keywords: this.searchKey,
398 465
         storehouse_id:this.storehouse_id,
466
+        good_id:this.good_id,
399 467
       };
400 468
       const loading = this.$loading({
401 469
           lock: true,

+ 77 - 3
src/xt_pages/stock/detail/stockInDetail.vue 파일 보기

@@ -27,7 +27,7 @@
27 27
 
28 28
     <div class="cell clearfix">
29 29
       <label class="title"><span class="name">仓库</span> :</label>
30
-      <el-select size="small" v-model="storehouse_id" filterable placeholder="请选择仓库" style="width:200px" @change="changeHouseList">
30
+      <el-select size="small" v-model="storehouse_id" filterable placeholder="请选择仓库" style="width:100px" @change="changeHouseList">
31 31
           <el-option
32 32
             v-for="(option, index) in houseList"
33 33
             :key="index"
@@ -35,6 +35,7 @@
35 35
             :value="option.id">
36 36
           </el-option>
37 37
       </el-select>
38
+
38 39
       <el-input
39 40
         size="small"
40 41
         style="width: 180px;"
@@ -50,6 +51,11 @@
50 51
         @click="search"
51 52
         >搜索</el-button
52 53
       >
54
+    
55
+    
56
+      
57
+
58
+
53 59
 
54 60
         <label class="title"><span class="name">日期查询</span> : </label>
55 61
         <el-date-picker
@@ -88,6 +94,26 @@
88 94
         >
89 95
     </div>
90 96
 
97
+    <div style="margin-bottom: 10px;">
98
+      <label class="title"><span class="name">耗材名称</span> : </label>
99
+      <el-autocomplete
100
+        class="checkSearch"
101
+        popper-class="my-autocomplete"
102
+        v-model="good_name"
103
+        :fetch-suggestions="querySearchAsync"
104
+        :trigger-on-focus="true"
105
+        placeholder="请输入耗材名称"
106
+        @select="handleSelect"
107
+        style="width:300px;"
108
+        :popper-append-to-body="true"
109
+      >
110
+        <i class="el-icon-search el-input__icon" slot="suffix"></i>
111
+      <template slot-scope="{ item }">
112
+        <div class="name">{{ item.good_name +"  " +item.specification_name + "  "+item.manufacturer }}</div>
113
+      </template>
114
+    </el-autocomplete>
115
+    </div>
116
+
91 117
     <!-- <el-row :gutter="12" style="margin-top: 10px"> -->
92 118
       <div style="width: 100%;">
93 119
         <el-table
@@ -201,7 +227,8 @@ import {
201 227
   GetAllConfig,
202 228
   getStockDetail,
203 229
   getPrintStockGood,
204
-  getGoodDetailPrintList
230
+  getGoodDetailPrintList,
231
+  postSearchGoodList
205 232
 } from "@/api/stock";
206 233
 
207 234
 export default {
@@ -254,7 +281,7 @@ export default {
254 281
         { value: 2, label: "其他入库单" }
255 282
       ],
256 283
       newDate: [{ name: "合计", num: "111111" }],
257
-
284
+      good_name:"",
258 285
       searchKey: "",
259 286
       type: 1,
260 287
       page: 1,
@@ -287,9 +314,54 @@ export default {
287 314
       storehouse_id:0,
288 315
       manufacturerList:[],
289 316
       dealerList:[],
317
+      currentIndex:0,
318
+      good_id:0,
290 319
     };
291 320
   },
292 321
   methods: {
322
+    handleSelect(val){
323
+     this.good_name = val.good_name
324
+     this.good_id = val.id
325
+     this.GetCancelStock();
326
+     this.getGoodDetailPrintList()
327
+    },
328
+    querySearchAsync(keyword, cb) {
329
+        let key = '';
330
+        if (keyword != undefined) {
331
+          key = keyword
332
+        }
333
+        postSearchGoodList(key,this.storehouse_id).then(response => {
334
+          if (response.data.state == 1) {
335
+
336
+             var list = response.data.data.list
337
+
338
+             this.goodList = list
339
+             var manufacturerList = response.data.data.manufacturerList
340
+             this.manufacturerList = manufacturerList
341
+             var dealer =  response.data.data.dealerList
342
+             this.dealerList = dealer
343
+             for(let i=0;i<this.goodList.length;i++){
344
+                for(let j=0;j<this.manufacturerList.length;j++){
345
+                  if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
346
+                     this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
347
+                  }
348
+                }
349
+             }
350
+
351
+             for(let i=0;i<this.goodList.length;i++){
352
+               for(let j=0;j<this.dealerList.length;j++){
353
+                  if(this.goodList[i].dealer == this.dealerList[j].id){
354
+                    this.goodList[i].dealer = this.dealerList[j].dealer_name
355
+                  }
356
+               }
357
+             }
358
+
359
+             cb(this.goodList)
360
+          } else {
361
+            cb([])
362
+          }
363
+        })
364
+     },
293 365
     changeType: function(val) {
294 366
       this.order_type = val;
295 367
       this.GetCancelStock();
@@ -407,6 +479,7 @@ export default {
407 479
         dealer: this.dealer_id,
408 480
         keywords: this.searchKey,
409 481
         storehouse_id:this.storehouse_id,
482
+        good_id:this.good_id,
410 483
       };
411 484
       this.cancelStockDate = [];
412 485
       const loading = this.$loading({
@@ -912,6 +985,7 @@ export default {
912 985
           end_time:this.end_time,
913 986
           type:1,
914 987
           storehouse_id:this.storehouse_id,
988
+          good_id:this.good_id,
915 989
         }
916 990
       getGoodDetailPrintList(params).then(response=>{
917 991
         if(response.data.state == 1){

+ 90 - 3
src/xt_pages/stock/detail/stockOutDetail.vue 파일 보기

@@ -97,7 +97,37 @@
97 97
 
98 98
     </div>
99 99
 
100
-    <!-- <el-row :gutter="12" style="margin-top: 10px"> -->
100
+    <div style="margin-bottom: 10px;">
101
+      <label class="title"><span class="name">耗材名称</span> : </label>
102
+      <el-autocomplete
103
+        class="checkSearch"
104
+        popper-class="my-autocomplete"
105
+        v-model="good_name"
106
+        :fetch-suggestions="querySearchAsync"
107
+        :trigger-on-focus="true"
108
+        placeholder="请输入耗材名称"
109
+        @select="handleSelect"
110
+        style="width:300px;"
111
+        :popper-append-to-body="true"
112
+      >
113
+        <i class="el-icon-search el-input__icon" slot="suffix"></i>
114
+      <template slot-scope="{ item }">
115
+        <div class="name">{{ item.good_name +"  " +item.specification_name + "  "+item.manufacturer }}</div>
116
+      </template>
117
+    </el-autocomplete>
118
+
119
+    <label class="title"><span class="name">出库方式</span> : </label>
120
+    <el-select size="small" v-model="order_way" filterable placeholder="请选择仓库" style="width:200px" @change="changeOrderWayList">
121
+          <el-option
122
+            v-for="(option, index) in orderWay"
123
+            :key="index"
124
+            :label="option.label"
125
+            :value="option.value">
126
+          </el-option>
127
+      </el-select>
128
+    </div>
129
+
130
+   
101 131
       <el-table class="table"
102 132
         :data="cancelStockDate"
103 133
         :class="signAndWeighBoxPatients"
@@ -223,7 +253,7 @@
223 253
 <script>
224 254
 import { uParseTime } from "@/utils/tools";
225 255
 import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
226
-import { deleteCancelStock, GetAllConfig, getStockDetail,getPrintStockGood,getGoodInfoList,getGoodDetailPrintList } from "@/api/stock";
256
+import { deleteCancelStock, GetAllConfig, getStockDetail,getPrintStockGood,getGoodInfoList,getGoodDetailPrintList,postSearchGoodList } from "@/api/stock";
227 257
 
228 258
 export default {
229 259
   name: "stockOutDetail",
@@ -276,10 +306,15 @@ export default {
276 306
         { value: 1, label: "耗材入库单" },
277 307
         { value: 2, label: "其他入库单" }
278 308
       ],
309
+      orderWay:[
310
+        {value:0,label:"全部"},
311
+        {value:1,label:"手动出库"},
312
+        {value:2,label:"自动出库"},
313
+      ],
279 314
       manufacturer_id: "",
280 315
       dealer_id: "",
281 316
       order_type:"",
282
-
317
+      order_way:"",
283 318
       searchKey: "",
284 319
       type: 2,
285 320
       page: 1,
@@ -313,9 +348,58 @@ export default {
313 348
       manufacturerList:[],
314 349
       dealerList:[],
315 350
       patientsList:[],
351
+      good_id:0,
352
+      good_name:"",
316 353
     };
317 354
   },
318 355
   methods: {
356
+    changeOrderWayList(){
357
+      this.GetCancelStock();
358
+      this.getGoodDetailPrintList()
359
+    },
360
+    handleSelect(val){
361
+     this.good_name = val.good_name
362
+     this.good_id = val.id
363
+     this.GetCancelStock();
364
+     this.getGoodDetailPrintList()
365
+    },
366
+    querySearchAsync(keyword, cb) {
367
+        let key = '';
368
+        if (keyword != undefined) {
369
+          key = keyword
370
+        }
371
+        postSearchGoodList(key,this.storehouse_id).then(response => {
372
+          if (response.data.state == 1) {
373
+
374
+             var list = response.data.data.list
375
+
376
+             this.goodList = list
377
+             var manufacturerList = response.data.data.manufacturerList
378
+             this.manufacturerList = manufacturerList
379
+             var dealer =  response.data.data.dealerList
380
+             this.dealerList = dealer
381
+             for(let i=0;i<this.goodList.length;i++){
382
+                for(let j=0;j<this.manufacturerList.length;j++){
383
+                  if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
384
+                     this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
385
+                  }
386
+                }
387
+             }
388
+
389
+             for(let i=0;i<this.goodList.length;i++){
390
+               for(let j=0;j<this.dealerList.length;j++){
391
+                  if(this.goodList[i].dealer == this.dealerList[j].id){
392
+                    this.goodList[i].dealer = this.dealerList[j].dealer_name
393
+                  }
394
+               }
395
+             }
396
+
397
+             cb(this.goodList)
398
+          } else {
399
+            cb([])
400
+          }
401
+        })
402
+     },
319 403
     changeType: function(val) {
320 404
       this.order_type = val;
321 405
       this.GetCancelStock();
@@ -432,6 +516,8 @@ export default {
432 516
         dealer: this.dealer_id,
433 517
         keywords: this.searchKey,
434 518
         storehouse_id:this.storehouse_id,
519
+        good_id:this.good_id,
520
+        order_way:this.order_way
435 521
       };
436 522
       this.cancelStockDate = [];
437 523
       const loading = this.$loading({
@@ -1100,6 +1186,7 @@ export default {
1100 1186
           start_time:this.start_time,
1101 1187
           end_time:this.end_time,
1102 1188
           type:2,
1189
+          good_id:this.good_id,
1103 1190
         }
1104 1191
       this.tableOut = []
1105 1192
       getGoodDetailPrintList(params).then(response=>{

+ 19 - 9
src/xt_pages/stock/query/purchaseNewStockQuery.vue 파일 보기

@@ -294,7 +294,16 @@ export default {
294 294
                   list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
295 295
                }else if(this.org_id == 0 || this.org_id == 10644){
296 296
                  list[i].stock_in_price = "/"
297
-                list[i].stockMoney = this.getAllStockInPrice(list[i].StWarehousingInfoTwo) + this.getAllStockInFlowPrice(list[i].WareStartInStockFlow) - this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty) - this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow)
297
+                 console.log("val1",this.getAllStockInPrice(list[i].StWarehousingInfoTwo))
298
+                 console.log("val2",this.getAllStockInFlowPrice(list[i].WareStartInStockFlow))
299
+                 console.log("val3",this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty) )
300
+                 console.log("val4",this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow))
301
+
302
+                list[i].stockMoney = parseFloat(this.getAllStockInPrice(list[i].StWarehousingInfoTwo))  +parseFloat(this.getAllStockInFlowPrice(list[i].WareStartInStockFlow))  - parseFloat(this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty))  - parseFloat(this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow)) 
303
+                if(list[i].stockMoney>0){
304
+                  list[i].stockMoney = list[i].stockMoney.toFixed(2)
305
+                }
306
+                
298 307
                 
299 308
                }else{
300 309
                 list[i].stock_in_price = "/"
@@ -351,9 +360,9 @@ export default {
351 360
                 list[i].overMoney = (list[i].packing_price*list[i].overStock).toFixed(2)
352 361
               }else if(this.org_id == 0 || this.org_id ==10644){
353 362
                 list[i].overPrice = "/"
354
-                console.log("stockMoney-00000000000000",list[i].stockMoney)
355
-                console.log("saleStockMoney-00000000000000",list[i].saleStockMoney)
356
-                console.log("saleOutMoney-00000000000000",list[i].saleOutMoney)
363
+                // console.log("stockMoney-00000000000000",list[i].stockMoney)
364
+                // console.log("saleStockMoney-00000000000000",list[i].saleStockMoney)
365
+                // console.log("saleOutMoney-00000000000000",list[i].saleOutMoney)
357 366
                 list[i].overMoney = (parseFloat(list[i].stockMoney)  + parseFloat(list[i].saleStockMoney) - parseFloat(list[i].saleOutMoney)).toFixed(2)
358 367
                 // console.log("hahahha",list[i].overMoney)
359 368
               }else{
@@ -1290,7 +1299,7 @@ export default {
1290 1299
        if(total_price>0){
1291 1300
         return total_price.toFixed(2)
1292 1301
        }else{
1293
-        return ""
1302
+        return total_price
1294 1303
        }
1295 1304
       
1296 1305
     },
@@ -1314,7 +1323,7 @@ export default {
1314 1323
        if(total_price>0){
1315 1324
         return total_price.toFixed(2)
1316 1325
        }else{
1317
-        return ""
1326
+        return total_price
1318 1327
        }
1319 1328
        
1320 1329
     },
@@ -1328,16 +1337,17 @@ export default {
1328 1337
       return count
1329 1338
     },
1330 1339
     getAllStockInFlowPrice(val){
1340
+     
1331 1341
       var total_price = 0
1332 1342
       if(val!=null && val.length>0){
1333 1343
         for(let i=0;i<val.length;i++){
1334
-          total_price+= val[i].count * val[i].total_price
1344
+          total_price+= val[i].count * val[i].price
1335 1345
         }
1336 1346
       }
1337 1347
       if(total_price>0){
1338 1348
         return total_price.toFixed(2)
1339 1349
       }else{
1340
-        return ""
1350
+        return total_price
1341 1351
       }
1342 1352
      
1343 1353
     },
@@ -1360,7 +1370,7 @@ export default {
1360 1370
       if(total_price>0){
1361 1371
          return total_price.toFixed(2)
1362 1372
       }else{
1363
-        return ""
1373
+        return total_price
1364 1374
       }
1365 1375
      
1366 1376
     },

+ 9 - 6
src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue 파일 보기

@@ -189,7 +189,10 @@ export default {
189 189
                       list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
190 190
                     }else if(this.org_id == 0 || this.org_id == 10644){
191 191
                       list[i].stock_in_price = "/"
192
-                      list[i].stockMoney = (this.getAllStockInPrice(list[i].StWarehousingInfoTwo) + this.getAllStockInFlowPrice(list[i].WareStartInStockFlow) - this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty) - this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow))
192
+                      list[i].stockMoney = parseFloat(this.getAllStockInPrice(list[i].StWarehousingInfoTwo))  +parseFloat(this.getAllStockInFlowPrice(list[i].WareStartInStockFlow))  - parseFloat(this.getAllOutStockInPrice(list[i].WarehouseOutInfoTenty))  - parseFloat(this.getAllStockOutFlowPrice(list[i].WareStartOutStockFlow)) 
193
+                      if(list[i].stockMoney>0){
194
+                        list[i].stockMoney = list[i].stockMoney.toFixed(2)
195
+                      }
193 196
                     } else{
194 197
                       list[i].stock_in_price = "/"
195 198
                       list[i].stockMoney = "/"
@@ -826,7 +829,7 @@ export default {
826 829
        if(total_price>0){
827 830
         return total_price.toFixed(2)
828 831
        }else{
829
-        return ""
832
+        return total_price
830 833
        }
831 834
       
832 835
     },
@@ -843,13 +846,13 @@ export default {
843 846
       var total_price = 0
844 847
       if(val!=null && val.length>0){
845 848
         for(let i=0;i<val.length;i++){
846
-          total_price+= val[i].count * val[i].total_price
849
+          total_price+= val[i].count * val[i].price
847 850
         }
848 851
       }
849 852
       if(total_price>0){
850 853
         return total_price.toFixed(2)
851 854
       }else{
852
-        return ""
855
+        return total_price
853 856
       }
854 857
       
855 858
     },
@@ -881,7 +884,7 @@ export default {
881 884
        if(total_price>0){
882 885
         return total_price.toFixed(2)
883 886
       }else{
884
-        return ""
887
+        return total_price
885 888
       }
886 889
      
887 890
     },
@@ -895,7 +898,7 @@ export default {
895 898
       if(total_price>0){
896 899
         return total_price.toFixed(2)
897 900
       }else{
898
-        return ""
901
+        return total_price
899 902
       }
900 903
     
901 904
     },

+ 1 - 1
src/xt_pages/stock/stockInOrderAdd.vue 파일 보기

@@ -938,7 +938,7 @@
938 938
         this.currentIndex = val
939 939
       },
940 940
       handleSelect(val){
941
-        console.log("al32323232323223",val)
941
+        // console.log("al32323232323223",val)
942 942
          for(let i=0;i<this.recordInfo.recordData.length;i++){
943 943
            if(this.currentIndex == i){
944 944
               this.recordInfo.recordData[i].id = 0