Browse Source

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

yq1 1 day ago
parent
commit
85e65d9a44

+ 2 - 2
src/xt_pages/outpatientCharges/summary.vue View File

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

+ 9 - 6
src/xt_pages/outpatientTool/components/settle.vue View File

117
                   <div v-if="scope.row.med_type == '11'">普通门诊</div>
117
                   <div v-if="scope.row.med_type == '11'">普通门诊</div>
118
                   <div v-if="scope.row.med_type == '1112'">普通门诊</div>
118
                   <div v-if="scope.row.med_type == '1112'">普通门诊</div>
119
                   <div v-if="scope.row.med_type == '140104'">城乡门诊特殊病(140104)</div>
119
                   <div v-if="scope.row.med_type == '140104'">城乡门诊特殊病(140104)</div>
120
+                <div v-if="scope.row.med_type == '140201'">门诊特病(140201)</div>
120
                   <div v-if="scope.row.med_type == '992102'">单病种(992102)</div>
121
                   <div v-if="scope.row.med_type == '992102'">单病种(992102)</div>
121
               </template>
122
               </template>
122
           </el-table-column>
123
           </el-table-column>
297
           <div v-if="scope.row.med_type == '14'">门诊特殊病</div>
298
           <div v-if="scope.row.med_type == '14'">门诊特殊病</div>
298
           <div v-if="scope.row.med_type == '11'">普通门诊</div>
299
           <div v-if="scope.row.med_type == '11'">普通门诊</div>
299
           <div v-if="scope.row.med_type == '1112'">普通门诊</div>
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
         </template>
304
         </template>
302
       </el-table-column>
305
       </el-table-column>
303
       <el-table-column align="center" prop="medfee_sumamt" label="医疗费总额">
306
       <el-table-column align="center" prop="medfee_sumamt" label="医疗费总额">
689
             return
692
             return
690
           }
693
           }
691
           const values = data.map(item => Number(item[column.property]))
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
               column.property === 'jifen_pay' || column.property === 'cash_pay' || column.property ==='card_desc'
700
               column.property === 'jifen_pay' || column.property === 'cash_pay' || column.property ==='card_desc'
698
           ) {
701
           ) {
699
             sums[index] = values.reduce((prev, curr) => {
702
             sums[index] = values.reduce((prev, curr) => {

+ 70 - 2
src/xt_pages/stock/detail/cancelStockDetail.vue View File

82
         @click="getAllQuery"
82
         @click="getAllQuery"
83
         >查询</el-button
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
     </div>
110
     </div>
88
 
111
 
202
 <script>
225
 <script>
203
 import { uParseTime } from "@/utils/tools";
226
 import { uParseTime } from "@/utils/tools";
204
 import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
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
 export default {
230
 export default {
208
   name: "cancelStockDetail",
231
   name: "cancelStockDetail",
280
       storehouse_id:0,
303
       storehouse_id:0,
281
       manufacturerList:[],
304
       manufacturerList:[],
282
       dealerList:[],
305
       dealerList:[],
283
-      patientsList:[]
306
+      patientsList:[],
307
+      good_name:"",
308
+      good_id:0,
284
         
309
         
285
     };
310
     };
286
   },
311
   },
287
   methods: {
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
     PrintAction: function() {
355
     PrintAction: function() {
289
       window.sessionStorage.setItem('start_time_one',this.start_time)
356
       window.sessionStorage.setItem('start_time_one',this.start_time)
290
       window.sessionStorage.setItem('end_time_one',this.end_time)
357
       window.sessionStorage.setItem('end_time_one',this.end_time)
396
         dealer: this.dealer_id,
463
         dealer: this.dealer_id,
397
         keywords: this.searchKey,
464
         keywords: this.searchKey,
398
         storehouse_id:this.storehouse_id,
465
         storehouse_id:this.storehouse_id,
466
+        good_id:this.good_id,
399
       };
467
       };
400
       const loading = this.$loading({
468
       const loading = this.$loading({
401
           lock: true,
469
           lock: true,

+ 77 - 3
src/xt_pages/stock/detail/stockInDetail.vue View File

27
 
27
 
28
     <div class="cell clearfix">
28
     <div class="cell clearfix">
29
       <label class="title"><span class="name">仓库</span> :</label>
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
           <el-option
31
           <el-option
32
             v-for="(option, index) in houseList"
32
             v-for="(option, index) in houseList"
33
             :key="index"
33
             :key="index"
35
             :value="option.id">
35
             :value="option.id">
36
           </el-option>
36
           </el-option>
37
       </el-select>
37
       </el-select>
38
+
38
       <el-input
39
       <el-input
39
         size="small"
40
         size="small"
40
         style="width: 180px;"
41
         style="width: 180px;"
50
         @click="search"
51
         @click="search"
51
         >搜索</el-button
52
         >搜索</el-button
52
       >
53
       >
54
+    
55
+    
56
+      
57
+
58
+
53
 
59
 
54
         <label class="title"><span class="name">日期查询</span> : </label>
60
         <label class="title"><span class="name">日期查询</span> : </label>
55
         <el-date-picker
61
         <el-date-picker
88
         >
94
         >
89
     </div>
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
     <!-- <el-row :gutter="12" style="margin-top: 10px"> -->
117
     <!-- <el-row :gutter="12" style="margin-top: 10px"> -->
92
       <div style="width: 100%;">
118
       <div style="width: 100%;">
93
         <el-table
119
         <el-table
201
   GetAllConfig,
227
   GetAllConfig,
202
   getStockDetail,
228
   getStockDetail,
203
   getPrintStockGood,
229
   getPrintStockGood,
204
-  getGoodDetailPrintList
230
+  getGoodDetailPrintList,
231
+  postSearchGoodList
205
 } from "@/api/stock";
232
 } from "@/api/stock";
206
 
233
 
207
 export default {
234
 export default {
254
         { value: 2, label: "其他入库单" }
281
         { value: 2, label: "其他入库单" }
255
       ],
282
       ],
256
       newDate: [{ name: "合计", num: "111111" }],
283
       newDate: [{ name: "合计", num: "111111" }],
257
-
284
+      good_name:"",
258
       searchKey: "",
285
       searchKey: "",
259
       type: 1,
286
       type: 1,
260
       page: 1,
287
       page: 1,
287
       storehouse_id:0,
314
       storehouse_id:0,
288
       manufacturerList:[],
315
       manufacturerList:[],
289
       dealerList:[],
316
       dealerList:[],
317
+      currentIndex:0,
318
+      good_id:0,
290
     };
319
     };
291
   },
320
   },
292
   methods: {
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
     changeType: function(val) {
365
     changeType: function(val) {
294
       this.order_type = val;
366
       this.order_type = val;
295
       this.GetCancelStock();
367
       this.GetCancelStock();
407
         dealer: this.dealer_id,
479
         dealer: this.dealer_id,
408
         keywords: this.searchKey,
480
         keywords: this.searchKey,
409
         storehouse_id:this.storehouse_id,
481
         storehouse_id:this.storehouse_id,
482
+        good_id:this.good_id,
410
       };
483
       };
411
       this.cancelStockDate = [];
484
       this.cancelStockDate = [];
412
       const loading = this.$loading({
485
       const loading = this.$loading({
912
           end_time:this.end_time,
985
           end_time:this.end_time,
913
           type:1,
986
           type:1,
914
           storehouse_id:this.storehouse_id,
987
           storehouse_id:this.storehouse_id,
988
+          good_id:this.good_id,
915
         }
989
         }
916
       getGoodDetailPrintList(params).then(response=>{
990
       getGoodDetailPrintList(params).then(response=>{
917
         if(response.data.state == 1){
991
         if(response.data.state == 1){

+ 90 - 3
src/xt_pages/stock/detail/stockOutDetail.vue View File

97
 
97
 
98
     </div>
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
       <el-table class="table"
131
       <el-table class="table"
102
         :data="cancelStockDate"
132
         :data="cancelStockDate"
103
         :class="signAndWeighBoxPatients"
133
         :class="signAndWeighBoxPatients"
223
 <script>
253
 <script>
224
 import { uParseTime } from "@/utils/tools";
254
 import { uParseTime } from "@/utils/tools";
225
 import { fetchAllAdminUsers, fetchAllDoctorAndNurse } from "@/api/doctor";
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
 export default {
258
 export default {
229
   name: "stockOutDetail",
259
   name: "stockOutDetail",
276
         { value: 1, label: "耗材入库单" },
306
         { value: 1, label: "耗材入库单" },
277
         { value: 2, label: "其他入库单" }
307
         { value: 2, label: "其他入库单" }
278
       ],
308
       ],
309
+      orderWay:[
310
+        {value:0,label:"全部"},
311
+        {value:1,label:"手动出库"},
312
+        {value:2,label:"自动出库"},
313
+      ],
279
       manufacturer_id: "",
314
       manufacturer_id: "",
280
       dealer_id: "",
315
       dealer_id: "",
281
       order_type:"",
316
       order_type:"",
282
-
317
+      order_way:"",
283
       searchKey: "",
318
       searchKey: "",
284
       type: 2,
319
       type: 2,
285
       page: 1,
320
       page: 1,
313
       manufacturerList:[],
348
       manufacturerList:[],
314
       dealerList:[],
349
       dealerList:[],
315
       patientsList:[],
350
       patientsList:[],
351
+      good_id:0,
352
+      good_name:"",
316
     };
353
     };
317
   },
354
   },
318
   methods: {
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
     changeType: function(val) {
403
     changeType: function(val) {
320
       this.order_type = val;
404
       this.order_type = val;
321
       this.GetCancelStock();
405
       this.GetCancelStock();
432
         dealer: this.dealer_id,
516
         dealer: this.dealer_id,
433
         keywords: this.searchKey,
517
         keywords: this.searchKey,
434
         storehouse_id:this.storehouse_id,
518
         storehouse_id:this.storehouse_id,
519
+        good_id:this.good_id,
520
+        order_way:this.order_way
435
       };
521
       };
436
       this.cancelStockDate = [];
522
       this.cancelStockDate = [];
437
       const loading = this.$loading({
523
       const loading = this.$loading({
1100
           start_time:this.start_time,
1186
           start_time:this.start_time,
1101
           end_time:this.end_time,
1187
           end_time:this.end_time,
1102
           type:2,
1188
           type:2,
1189
+          good_id:this.good_id,
1103
         }
1190
         }
1104
       this.tableOut = []
1191
       this.tableOut = []
1105
       getGoodDetailPrintList(params).then(response=>{
1192
       getGoodDetailPrintList(params).then(response=>{

+ 19 - 9
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

294
                   list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
294
                   list[i].stockMoney = (list[i].buy_price * list[i].stockIn).toFixed(2)
295
                }else if(this.org_id == 0 || this.org_id == 10644){
295
                }else if(this.org_id == 0 || this.org_id == 10644){
296
                  list[i].stock_in_price = "/"
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
                }else{
308
                }else{
300
                 list[i].stock_in_price = "/"
309
                 list[i].stock_in_price = "/"
351
                 list[i].overMoney = (list[i].packing_price*list[i].overStock).toFixed(2)
360
                 list[i].overMoney = (list[i].packing_price*list[i].overStock).toFixed(2)
352
               }else if(this.org_id == 0 || this.org_id ==10644){
361
               }else if(this.org_id == 0 || this.org_id ==10644){
353
                 list[i].overPrice = "/"
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
                 list[i].overMoney = (parseFloat(list[i].stockMoney)  + parseFloat(list[i].saleStockMoney) - parseFloat(list[i].saleOutMoney)).toFixed(2)
366
                 list[i].overMoney = (parseFloat(list[i].stockMoney)  + parseFloat(list[i].saleStockMoney) - parseFloat(list[i].saleOutMoney)).toFixed(2)
358
                 // console.log("hahahha",list[i].overMoney)
367
                 // console.log("hahahha",list[i].overMoney)
359
               }else{
368
               }else{
1290
        if(total_price>0){
1299
        if(total_price>0){
1291
         return total_price.toFixed(2)
1300
         return total_price.toFixed(2)
1292
        }else{
1301
        }else{
1293
-        return ""
1302
+        return total_price
1294
        }
1303
        }
1295
       
1304
       
1296
     },
1305
     },
1314
        if(total_price>0){
1323
        if(total_price>0){
1315
         return total_price.toFixed(2)
1324
         return total_price.toFixed(2)
1316
        }else{
1325
        }else{
1317
-        return ""
1326
+        return total_price
1318
        }
1327
        }
1319
        
1328
        
1320
     },
1329
     },
1328
       return count
1337
       return count
1329
     },
1338
     },
1330
     getAllStockInFlowPrice(val){
1339
     getAllStockInFlowPrice(val){
1340
+     
1331
       var total_price = 0
1341
       var total_price = 0
1332
       if(val!=null && val.length>0){
1342
       if(val!=null && val.length>0){
1333
         for(let i=0;i<val.length;i++){
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
       if(total_price>0){
1347
       if(total_price>0){
1338
         return total_price.toFixed(2)
1348
         return total_price.toFixed(2)
1339
       }else{
1349
       }else{
1340
-        return ""
1350
+        return total_price
1341
       }
1351
       }
1342
      
1352
      
1343
     },
1353
     },
1360
       if(total_price>0){
1370
       if(total_price>0){
1361
          return total_price.toFixed(2)
1371
          return total_price.toFixed(2)
1362
       }else{
1372
       }else{
1363
-        return ""
1373
+        return total_price
1364
       }
1374
       }
1365
      
1375
      
1366
     },
1376
     },

+ 9 - 6
src/xt_pages/stock/query/purchaseNewStockQueryPrint.vue View File

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

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

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