Browse Source

518合并代码

XMLWAN 2 years ago
parent
commit
84139f52fd

+ 14 - 38
src/api/data.js View File

10
 }
10
 }
11
 
11
 
12
 export function createChildConfig(params) {
12
 export function createChildConfig(params) {
13
-  console.log("parasms22222",params)
13
+  console.log('parasms22222', params)
14
   return request({
14
   return request({
15
     url: '/api/createchildconfig',
15
     url: '/api/createchildconfig',
16
     method: 'post',
16
     method: 'post',
138
   })
138
   })
139
 }
139
 }
140
 
140
 
141
-
142
-
143
-
144
-export function createMedicineInsurancePercent(params,module) {
141
+export function createMedicineInsurancePercent(params, module) {
145
   return request({
142
   return request({
146
-    url: '/api/medicineinsurancepercent/create?module='+module,
143
+    url: '/api/medicineinsurancepercent/create?module=' + module,
147
     method: 'post',
144
     method: 'post',
148
     data: params
145
     data: params
149
   })
146
   })
150
 }
147
 }
151
 
148
 
152
-
153
-export function getMedicineInsurancePercent(type_id,module) {
149
+export function getMedicineInsurancePercent(type_id, module) {
154
   return request({
150
   return request({
155
-    url: '/api/medicineinsurancepercent/get?type_id='+type_id+"&module="+module,
156
-    method: 'get',
151
+    url: '/api/medicineinsurancepercent/get?type_id=' + type_id + '&module=' + module,
152
+    method: 'get'
157
   })
153
   })
158
 }
154
 }
159
 
155
 
160
-
161
 export function createDrugUnitSafeguard(params) {
156
 export function createDrugUnitSafeguard(params) {
162
   return request({
157
   return request({
163
     url: '/api/drugunitsafeguard/create',
158
     url: '/api/drugunitsafeguard/create',
174
   })
169
   })
175
 }
170
 }
176
 
171
 
177
-
178
-
179
 export function createMZSick(params) {
172
 export function createMZSick(params) {
180
   return request({
173
   return request({
181
     url: '/api/mz/sick/create',
174
     url: '/api/mz/sick/create',
216
   })
209
   })
217
 }
210
 }
218
 
211
 
219
-
220
-
221
-
222
-
223
 export function createAddition(params) {
212
 export function createAddition(params) {
224
   return request({
213
   return request({
225
     url: '/api/addition/create',
214
     url: '/api/addition/create',
260
   })
249
   })
261
 }
250
 }
262
 
251
 
263
-
264
-
265
-
266
-
267
 export function createDiagnose(params) {
252
 export function createDiagnose(params) {
268
   return request({
253
   return request({
269
     url: '/api/diagnose/create',
254
     url: '/api/diagnose/create',
304
   })
289
   })
305
 }
290
 }
306
 
291
 
307
-export function getAllDrugList(params){
308
-  
292
+export function getAllDrugList(params) {
309
   return request({
293
   return request({
310
-    url:"/api/drug/getalldruglist",
311
-    method:"Get",
312
-    params:params
294
+    url: '/api/drug/getalldruglist',
295
+    method: 'Get',
296
+    params: params
313
   })
297
   })
314
 }
298
 }
315
 
299
 
316
-export function postSearchDrugList(keyword,params){
317
-  
300
+export function postSearchDrugList(keyword, storehouse_id, params) {
318
   return request({
301
   return request({
319
-    url:"/api/drug/postsearchdruglist?keyword="+keyword,
320
-    method:"get",
321
-    params:params
302
+    url: '/api/drug/postsearchdruglist?keyword=' + keyword + '&storehouse_id=' + storehouse_id,
303
+    method: 'get',
304
+    params: params
322
   })
305
   })
323
 }
306
 }
324
 
307
 
325
-
326
-
327
-
328
-
329
-
330
-
331
-

+ 7 - 0
src/api/drug/drug_stock.js View File

581
     params: params
581
     params: params
582
   })
582
   })
583
 }
583
 }
584
+
585
+export function GetAllConfigOne() {
586
+  return request({
587
+    url: '/api/drugstock/config/list',
588
+    method: 'get'
589
+  })
590
+}

+ 2 - 3
src/api/stock.js View File

56
   })
56
   })
57
 }
57
 }
58
 
58
 
59
-
60
 export function getManufacturerList(params) {
59
 export function getManufacturerList(params) {
61
   return request({
60
   return request({
62
     url: '/api/stock/manufacturer/list',
61
     url: '/api/stock/manufacturer/list',
611
   })
610
   })
612
 }
611
 }
613
 
612
 
614
-export function postSearchGoodList(keyword, params) {
613
+export function postSearchGoodList(keyword, storehouse_id, params) {
615
   return request({
614
   return request({
616
-    url: '/api/good/postsearchgoodlist?keyword=' + keyword,
615
+    url: '/api/good/postsearchgoodlist?keyword=' + keyword + '&storehouse_id=' + storehouse_id,
617
     method: 'Get',
616
     method: 'Get',
618
     params: params
617
     params: params
619
   })
618
   })

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

966
      },
966
      },
967
 
967
 
968
       handleSuccessTwo({ results, header }) {
968
       handleSuccessTwo({ results, header }) {
969
-         console.log("header22222",header)
970
         if (header != undefined && header.length > 0) {
969
         if (header != undefined && header.length > 0) {
971
 
970
 
972
           var isHasDrugName = header.includes('*药品名称');
971
           var isHasDrugName = header.includes('*药品名称');

+ 3 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue View File

2012
        if(arr[i] == "肝素4ml"){
2012
        if(arr[i] == "肝素4ml"){
2013
           strname = "肝素4ml"
2013
           strname = "肝素4ml"
2014
         }
2014
         }
2015
+       if(arr[i] == "肝素2ml"){
2016
+          strname = "肝素2ml"
2017
+        }
2015
       }
2018
       }
2016
       return strname
2019
       return strname
2017
     },
2020
     },

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

643
       if (keyword != undefined) {
643
       if (keyword != undefined) {
644
         key = keyword
644
         key = keyword
645
       }
645
       }
646
-    postSearchGoodList(key).then(response => {
646
+    postSearchGoodList(key,this.storehouse_id).then(response => {
647
         if (response.data.state == 1) {
647
         if (response.data.state == 1) {
648
             var list = response.data.data.list
648
             var list = response.data.data.list
649
            
649
            

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

643
         if (keyword != undefined) {
643
         if (keyword != undefined) {
644
           key = keyword
644
           key = keyword
645
         }
645
         }
646
-        postSearchGoodList(key).then(response => {
646
+        postSearchGoodList(key,this.storehouse_id).then(response => {
647
           if (response.data.state == 1) {
647
           if (response.data.state == 1) {
648
            
648
            
649
              var list = response.data.data.list
649
              var list = response.data.data.list

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

640
           key = keyword
640
           key = keyword
641
         }
641
         }
642
         let searchArray = [];
642
         let searchArray = [];
643
-        postSearchDrugList(key).then(response => {
643
+        postSearchDrugList(key,this.storehouse_id).then(response => {
644
           if (response.data.state == 1) {
644
           if (response.data.state == 1) {
645
             searchArray = response.data.data.list;
645
             searchArray = response.data.data.list;
646
             
646
             

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

641
           key = keyword
641
           key = keyword
642
         }
642
         }
643
         let searchArray = [];
643
         let searchArray = [];
644
-        postSearchDrugList(key).then(response => {
644
+        postSearchDrugList(key,this.storehouse_id).then(response => {
645
           if (response.data.state == 1) {
645
           if (response.data.state == 1) {
646
             searchArray = response.data.data.list;
646
             searchArray = response.data.data.list;
647
             
647
             

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

132
                 style="padding-top: 10px"
132
                 style="padding-top: 10px"
133
               >
133
               >
134
               <div style="display:flex;">
134
               <div style="display:flex;">
135
-                <el-input
135
+                <!-- <el-input
136
                   oninput="value=value.replace(/\D|^0/g,'')"
136
                   oninput="value=value.replace(/\D|^0/g,'')"
137
                   placeholder="请输入入库数量"
137
                   placeholder="请输入入库数量"
138
                   type="number"
138
                   type="number"
139
                   v-model="scope.row.warehousing_count"
139
                   v-model="scope.row.warehousing_count"
140
                   style="width:120px"
140
                   style="width:120px"
141
-                ></el-input>
142
-                 <!-- <el-input
141
+                ></el-input> -->
142
+                 <el-input
143
                   placeholder="请输入入库数量"
143
                   placeholder="请输入入库数量"
144
                   v-model="scope.row.warehousing_count"
144
                   v-model="scope.row.warehousing_count"
145
                   style="width:120px"
145
                   style="width:120px"
146
-                ></el-input> -->
146
+                ></el-input>
147
                  <!-- {{scope.row.max_unit}} -->
147
                  <!-- {{scope.row.max_unit}} -->
148
                   <el-select v-model="scope.row.max_unit" filterable placeholder="请选择单位" style="width:80px">
148
                   <el-select v-model="scope.row.max_unit" filterable placeholder="请选择单位" style="width:80px">
149
                     <el-option
149
                     <el-option
829
           key = keyword
829
           key = keyword
830
         }
830
         }
831
         let searchArray = [];
831
         let searchArray = [];
832
-        postSearchDrugList(key).then(response => {
832
+        postSearchDrugList(key,this.storehouse_id).then(response => {
833
           if (response.data.state == 1) {
833
           if (response.data.state == 1) {
834
             searchArray = response.data.data.list;
834
             searchArray = response.data.data.list;
835
             
835
             

+ 5 - 5
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue View File

163
                 style="padding-top: 10px;"
163
                 style="padding-top: 10px;"
164
               >
164
               >
165
                 <div style="display:flex;">
165
                 <div style="display:flex;">
166
-                  <el-input
166
+                  <!-- <el-input
167
                    :disabled="disabled"
167
                    :disabled="disabled"
168
                     oninput="value=value.replace(/\D|^0/g,'')"
168
                     oninput="value=value.replace(/\D|^0/g,'')"
169
                     placeholder="请输入入库数量"
169
                     placeholder="请输入入库数量"
170
                     type="number"
170
                     type="number"
171
                     v-model="scope.row.warehousing_count"
171
                     v-model="scope.row.warehousing_count"
172
                     style="width:80px"
172
                     style="width:80px"
173
-                  ></el-input>
174
-                   <!-- <el-input
173
+                  ></el-input> -->
174
+                   <el-input
175
                    :disabled="disabled"
175
                    :disabled="disabled"
176
                     placeholder="请输入入库数量"
176
                     placeholder="请输入入库数量"
177
                     v-model="scope.row.warehousing_count"
177
                     v-model="scope.row.warehousing_count"
178
                     style="width:80px"
178
                     style="width:80px"
179
-                  ></el-input> -->
179
+                  ></el-input>
180
                    <!-- {{scope.row.max_unit}} -->
180
                    <!-- {{scope.row.max_unit}} -->
181
                    <el-select v-model="scope.row.max_unit" filterable placeholder="请选择单位" style="width:80px"  :disabled="disabled">
181
                    <el-select v-model="scope.row.max_unit" filterable placeholder="请选择单位" style="width:80px"  :disabled="disabled">
182
                     <el-option
182
                     <el-option
848
           key = keyword
848
           key = keyword
849
         }
849
         }
850
         let searchArray = [];
850
         let searchArray = [];
851
-        postSearchDrugList(key).then(response => {
851
+        postSearchDrugList(key,this.storehouse_id).then(response => {
852
           if (response.data.state == 1) {
852
           if (response.data.state == 1) {
853
              searchArray = response.data.data.list;
853
              searchArray = response.data.data.list;
854
              var list = response.data.data.list
854
              var list = response.data.data.list

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

119
           </el-table-column>
119
           </el-table-column>
120
 
120
 
121
 
121
 
122
-          <!-- <el-table-column width="150" align="center">
122
+          <el-table-column width="150" align="center">
123
             <template slot="header" slot-scope="scope">
123
             <template slot="header" slot-scope="scope">
124
               <span>剩余库存</span>
124
               <span>剩余库存</span>
125
             </template>
125
             </template>
138
                 </div>
138
                 </div>
139
               </el-form-item>
139
               </el-form-item>
140
             </template>
140
             </template>
141
-          </el-table-column> -->
141
+          </el-table-column>
142
           
142
           
143
           <el-table-column width="200" align="center">
143
           <el-table-column width="200" align="center">
144
             <template slot="header" slot-scope="scope">
144
             <template slot="header" slot-scope="scope">
152
               >
152
               >
153
                 <div style="display:flex;">
153
                 <div style="display:flex;">
154
                   <el-input
154
                   <el-input
155
+                   @input="getSupplyCount(scope.row.count,scope.row.max_unit,scope.row.min_unit,scope.$index,scope.row.total_count,scope.row.max_unit_fisrt,scope.row.min_unit_fisrt)"
155
                     oninput="value=value.replace(/\D|^0/g,'')"
156
                     oninput="value=value.replace(/\D|^0/g,'')"
156
                     style="width:80px"
157
                     style="width:80px"
157
                     placeholder="请输入出库数量"
158
                     placeholder="请输入出库数量"
709
           key = keyword
710
           key = keyword
710
         }
711
         }
711
         let searchArray = [];
712
         let searchArray = [];
712
-        postSearchDrugList(key).then(response => {
713
+        postSearchDrugList(key,this.storehouse_id).then(response => {
713
           if (response.data.state == 1) {
714
           if (response.data.state == 1) {
714
             searchArray = response.data.data.list;
715
             searchArray = response.data.data.list;
715
              var list = response.data.data.list
716
              var list = response.data.data.list

+ 25 - 17
src/xt_pages/stock/drugs/drugStockOutOrderEdit.vue View File

126
                   </el-form-item>
126
                   </el-form-item>
127
               </template>
127
               </template>
128
           </el-table-column> -->
128
           </el-table-column> -->
129
-<!--          
129
+         
130
          <el-table-column width="150" align="center">
130
          <el-table-column width="150" align="center">
131
             <template slot="header" slot-scope="scope">
131
             <template slot="header" slot-scope="scope">
132
               <span>剩余库存</span>
132
               <span>剩余库存</span>
146
                 </div>
146
                 </div>
147
               </el-form-item>
147
               </el-form-item>
148
             </template>
148
             </template>
149
-          </el-table-column> -->
149
+          </el-table-column> 
150
            <el-table-column width="200" align="center">
150
            <el-table-column width="200" align="center">
151
             <template slot="header" slot-scope="scope">
151
             <template slot="header" slot-scope="scope">
152
               <span>出库数量<span style="color: red">*</span></span>
152
               <span>出库数量<span style="color: red">*</span></span>
165
                     placeholder="请输入出库数量"
165
                     placeholder="请输入出库数量"
166
                     type="number"
166
                     type="number"
167
                     v-model="scope.row.count"
167
                     v-model="scope.row.count"
168
-
168
+                    @input="getSupplyCount(scope.row.count,scope.row.max_unit,scope.row.min_unit,scope.$index,scope.row.total_count,scope.row.max_unit_fisrt,scope.row.min_unit_fisrt)"
169
                   ></el-input>
169
                   ></el-input>
170
                   <el-select v-model="scope.row.count_unit" filterable placeholder="请选择单位" style="width:80px" :disabled="unitShow">
170
                   <el-select v-model="scope.row.count_unit" filterable placeholder="请选择单位" style="width:80px" :disabled="unitShow">
171
                     <el-option
171
                     <el-option
340
 <script>
340
 <script>
341
   import { uParseTime } from '@/utils/tools'
341
   import { uParseTime } from '@/utils/tools'
342
 
342
 
343
-  import { deleteDrugWarehouseOutInfo, editDrugWarehouseoutInfo, getDrugWarehouseOutInfo,GetAllConfig,GetAllDrugInfoByID,getDrugBatchNumber } from '@/api/drug/drug_stock'
343
+  import { deleteDrugWarehouseOutInfo, editDrugWarehouseoutInfo, getDrugWarehouseOutInfo,GetAllConfigOne,GetAllDrugInfoByID,getDrugBatchNumber } from '@/api/drug/drug_stock'
344
   import BreadCrumb from '../../components/bread-crumb'
344
   import BreadCrumb from '../../components/bread-crumb'
345
   import DrugsStockDialog from './drugsStockDialog/index'
345
   import DrugsStockDialog from './drugsStockDialog/index'
346
   import {postSearchDrugList } from "@/api/data"
346
   import {postSearchDrugList } from "@/api/data"
469
           spinner: "el-icon-loading",
469
           spinner: "el-icon-loading",
470
           background: "rgba(0, 0, 0, 0.7)"
470
           background: "rgba(0, 0, 0, 0.7)"
471
         });
471
         });
472
-        GetAllConfig().then(response => {
472
+        GetAllConfigOne().then(response => {
473
           if (response.data.state == 0) {
473
           if (response.data.state == 0) {
474
             this.$message.error(response.data.msg);
474
             this.$message.error(response.data.msg);
475
             return false;
475
             return false;
476
           } else {
476
           } else {
477
             this.manufacturer = response.data.data.manufacturer;
477
             this.manufacturer = response.data.data.manufacturer;
478
             this.dealer = response.data.data.dealer;
478
             this.dealer = response.data.data.dealer;
479
-            for(let i = 0; i<  response.data.data.drugs.length;i++){
480
-              this.goodType.push(response.data.data.drugs[i])
481
-              if(response.data.data.drugs[i].drug_specs != null) {
482
-                for (let b = 0; b < response.data.data.drugs[i].drug_specs.length; b++) {
483
-                  this.goodInfo.push(response.data.data.drugs[i].drug_specs[b])
484
-                }
485
-              }
486
-            }
479
+            // for(let i = 0; i<  response.data.data.drugs.length;i++){
480
+            //   this.goodType.push(response.data.data.drugs[i])
481
+            //   if(response.data.data.drugs[i].drug_specs != null) {
482
+            //     for (let b = 0; b < response.data.data.drugs[i].drug_specs.length; b++) {
483
+            //       this.goodInfo.push(response.data.data.drugs[i].drug_specs[b])
484
+            //     }
485
+            //   }
486
+            // }
487
             this.manufacturer.splice(0, 0, { id: 0, manufacturer_name: "全部" });
487
             this.manufacturer.splice(0, 0, { id: 0, manufacturer_name: "全部" });
488
             this.dealer.splice(0, 0, { id: 0, dealer_name: "全部" });
488
             this.dealer.splice(0, 0, { id: 0, dealer_name: "全部" });
489
           }
489
           }
752
             var manulist = response.data.data.manulist
752
             var manulist = response.data.data.manulist
753
             this.manufacturerList = manulist
753
             this.manufacturerList = manulist
754
             this.dealerList =  response.data.data.dealerList
754
             this.dealerList =  response.data.data.dealerList
755
+           
755
             for (let i = 0; i < response.data.data.list.length; i++) {
756
             for (let i = 0; i < response.data.data.list.length; i++) {
757
+
756
               response.data.data.list[i].drug_name = response.data.data.list[i].drug.drug_name,
758
               response.data.data.list[i].drug_name = response.data.data.list[i].drug.drug_name,
757
               response.data.data.list[i].drug_type = response.data.data.list[i].drug.drug_type
759
               response.data.data.list[i].drug_type = response.data.data.list[i].drug.drug_type
758
               response.data.data.list[i].name = response.data.data.list[i].drug.dose + response.data.data.list[i].drug.dose_unit +"*"+response.data.data.list[i].drug.min_number+response.data.data.list[i].drug.min_unit + "/" + response.data.data.list[i].drug.max_unit
760
               response.data.data.list[i].name = response.data.data.list[i].drug.dose + response.data.data.list[i].drug.dose_unit +"*"+response.data.data.list[i].drug.min_number+response.data.data.list[i].drug.min_unit + "/" + response.data.data.list[i].drug.max_unit
759
-              if(response.data.data.list[i].number == "0" || response.data.data.list[i].number == 0){
761
+              if(response.data.data.list[i].count%response.data.data.list[i].drug.min_number == 0){
762
+                 response.data.data.list[i].count = response.data.data.list[i].count/response.data.data.list[i].drug.min_number
763
+                 response.data.data.list[i].count_unit = response.data.data.list[i].drug.max_unit
764
+              }
765
+             if(response.data.data.list[i].number == "0" || response.data.data.list[i].number == 0){
760
                   response.data.data.list[i].number = ""
766
                   response.data.data.list[i].number = ""
761
               }else{
767
               }else{
762
                 response.data.data.list[i].number = response.data.data.list[i].number
768
                 response.data.data.list[i].number = response.data.data.list[i].number
786
               response.data.data.list[i].last_price = response.data.data.list[i].last_price
792
               response.data.data.list[i].last_price = response.data.data.list[i].last_price
787
               this.recordInfo.recordData.push(response.data.data.list[i])
793
               this.recordInfo.recordData.push(response.data.data.list[i])
788
             }
794
             }
795
+            console.log("我爱的我的2级大风32323232323",this.recordInfo.recordData)
789
              for(let j=0;j<this.recordInfo.recordData.length;j++){
796
              for(let j=0;j<this.recordInfo.recordData.length;j++){
790
                for(let i=0;i<manulist.length;i++){
797
                for(let i=0;i<manulist.length;i++){
791
                   if(this.recordInfo.recordData[j].manufacturer == manulist[i].id){
798
                   if(this.recordInfo.recordData[j].manufacturer == manulist[i].id){
798
                  }
805
                  }
799
                }
806
                }
800
               }
807
               }
801
-
808
+            console.log("wode 23232323232322323",this.recordInfo.recordData)
802
             this.warehouseOut = response.data.data.info
809
             this.warehouseOut = response.data.data.info
803
             this.storehouse_id = response.data.data.info.storehouse_id
810
             this.storehouse_id = response.data.data.info.storehouse_id
804
             this.warehouse_out_time = this.getTime(this.warehouseOut.warehouse_out_time, '{y}-{m}-{d}')
811
             this.warehouse_out_time = this.getTime(this.warehouseOut.warehouse_out_time, '{y}-{m}-{d}')
835
           key = keyword
842
           key = keyword
836
         }
843
         }
837
         let searchArray = [];
844
         let searchArray = [];
838
-        postSearchDrugList(key).then(response => {
845
+      
846
+        postSearchDrugList(key,this.storehouse_id).then(response => {
839
           if (response.data.state == 1) {
847
           if (response.data.state == 1) {
840
             searchArray = response.data.data.list;
848
             searchArray = response.data.data.list;
841
 
849
 
995
     },
1003
     },
996
     created() {
1004
     created() {
997
       this.drugTypeList = getDictionaryDataConfig('system','drug_type')
1005
       this.drugTypeList = getDictionaryDataConfig('system','drug_type')
998
-      this.GetConfigInfo()
1006
+      // this.GetConfigInfo()
999
       this.propForm.goodUnit = this.$store.getters.good_unit
1007
       this.propForm.goodUnit = this.$store.getters.good_unit
1000
       const order_id = this.$route.query.id
1008
       const order_id = this.$route.query.id
1001
       this.GetOrderDetail(order_id)
1009
       this.GetOrderDetail(order_id)

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

110
             <template slot-scope="scope">
110
             <template slot-scope="scope">
111
               <el-form-item :prop="'recordData.' + scope.$index + '.warehousing_count'"
111
               <el-form-item :prop="'recordData.' + scope.$index + '.warehousing_count'"
112
                             :rules='tableRules.warehousing_count' style="padding-top: 20px">
112
                             :rules='tableRules.warehousing_count' style="padding-top: 20px">
113
-                <el-input placeholder="请输入入库数量" type="number" v-model="scope.row.warehousing_count"  oninput="value=value.replace(/\D|^0/g,'')"></el-input>
114
-                <!-- <el-input placeholder="请输入入库数量" v-model="scope.row.warehousing_count"></el-input> -->
113
+                <!-- <el-input placeholder="请输入入库数量" type="number" v-model="scope.row.warehousing_count"  oninput="value=value.replace(/\D|^0/g,'')"></el-input> -->
114
+                <el-input placeholder="请输入入库数量" v-model="scope.row.warehousing_count"></el-input>
115
                   {{scope.row.min_unit}}
115
                   {{scope.row.min_unit}}
116
               </el-form-item>
116
               </el-form-item>
117
             
117
             
759
         if (keyword != undefined) {
759
         if (keyword != undefined) {
760
           key = keyword
760
           key = keyword
761
         }
761
         }
762
-        postSearchGoodList(key).then(response => {
762
+        postSearchGoodList(key,this.storehouse_id).then(response => {
763
           if (response.data.state == 1) {
763
           if (response.data.state == 1) {
764
            
764
            
765
              var list = response.data.data.list
765
              var list = response.data.data.list

+ 5 - 5
src/xt_pages/stock/stockInOrderEdit.vue View File

179
                 :rules="tableRules.warehousing_count"
179
                 :rules="tableRules.warehousing_count"
180
                 style="padding-top: 20px"
180
                 style="padding-top: 20px"
181
               >
181
               >
182
-                <el-input
182
+                <!-- <el-input
183
                   oninput="value=value.replace(/\D|^0/g,'')"
183
                   oninput="value=value.replace(/\D|^0/g,'')"
184
                   placeholder="请输入入库数量"
184
                   placeholder="请输入入库数量"
185
                   type="number"
185
                   type="number"
186
                   v-model="scope.row.warehousing_count"
186
                   v-model="scope.row.warehousing_count"
187
                    :disabled ="disabled"
187
                    :disabled ="disabled"
188
-                ></el-input>
189
-                 <!-- <el-input
188
+                ></el-input> -->
189
+                 <el-input
190
                   placeholder="请输入入库数量"
190
                   placeholder="请输入入库数量"
191
                   v-model="scope.row.warehousing_count"
191
                   v-model="scope.row.warehousing_count"
192
                    :disabled ="disabled"
192
                    :disabled ="disabled"
193
-                ></el-input> -->
193
+                ></el-input>
194
                 {{scope.row.min_unit}}
194
                 {{scope.row.min_unit}}
195
               </el-form-item>
195
               </el-form-item>
196
             </template>
196
             </template>
795
         if (keyword != undefined) {
795
         if (keyword != undefined) {
796
           key = keyword
796
           key = keyword
797
         }
797
         }
798
-        postSearchGoodList(key).then(response => {
798
+        postSearchGoodList(key,this.storehouse_id).then(response => {
799
           if (response.data.state == 1) {
799
           if (response.data.state == 1) {
800
           
800
           
801
             var list = response.data.data.list
801
             var list = response.data.data.list

+ 4 - 3
src/xt_pages/stock/stockOutOrderAdd.vue View File

127
             </template>
127
             </template>
128
           </el-table-column>
128
           </el-table-column>
129
           
129
           
130
-          <!-- <el-table-column  width="150" align="center">
130
+          <el-table-column  width="150" align="center">
131
             <template slot="header" slot-scope="scope">
131
             <template slot="header" slot-scope="scope">
132
               <span>剩余库存</span>
132
               <span>剩余库存</span>
133
             </template>
133
             </template>
145
               </el-form-item>
145
               </el-form-item>
146
             </template>
146
             </template>
147
           </el-table-column>
147
           </el-table-column>
148
-       -->
148
+      
149
 
149
 
150
          <el-table-column  width="150" align="center">
150
          <el-table-column  width="150" align="center">
151
             <template slot="header" slot-scope="scope">
151
             <template slot="header" slot-scope="scope">
158
                 style="padding-top: 17px"
158
                 style="padding-top: 17px"
159
               >
159
               >
160
                 <el-input
160
                 <el-input
161
+                 @input="getSupplyCount(scope.row.count,scope.row.stock_count,scope.$index)"
161
                  oninput="value=value.replace(/\D|^0/g,'')"
162
                  oninput="value=value.replace(/\D|^0/g,'')"
162
                   placeholder="请输入出库数量"
163
                   placeholder="请输入出库数量"
163
                   type="number"
164
                   type="number"
732
         key = keyword
733
         key = keyword
733
       }
734
       }
734
 
735
 
735
-      postSearchGoodList(key).then(response => {
736
+      postSearchGoodList(key,this.storehouse_id).then(response => {
736
         if (response.data.state == 1) {
737
         if (response.data.state == 1) {
737
             var list = response.data.data.list
738
             var list = response.data.data.list
738
           
739
           

+ 4 - 4
src/xt_pages/stock/stockOutOrderEdit.vue View File

161
             </template>
161
             </template>
162
           </el-table-column>
162
           </el-table-column>
163
 
163
 
164
-          <!-- <el-table-column  width="150" align="center">
164
+           <el-table-column  width="150" align="center">
165
             <template slot="header" slot-scope="scope">
165
             <template slot="header" slot-scope="scope">
166
               <span>剩余库存</span>
166
               <span>剩余库存</span>
167
             </template>
167
             </template>
178
                 ></el-input>
178
                 ></el-input>
179
               </el-form-item>
179
               </el-form-item>
180
             </template>
180
             </template>
181
-          </el-table-column> -->
181
+          </el-table-column> 
182
 
182
 
183
           <el-table-column width="150" align="center">
183
           <el-table-column width="150" align="center">
184
             <template slot="header" slot-scope="scope">
184
             <template slot="header" slot-scope="scope">
187
             <template slot-scope="scope">
187
             <template slot-scope="scope">
188
               <el-form-item :prop="'recordData.' + scope.$index + '.count'" :rules='tableRules.count'
188
               <el-form-item :prop="'recordData.' + scope.$index + '.count'" :rules='tableRules.count'
189
                             style="padding-top: 17px">
189
                             style="padding-top: 17px">
190
-                <el-input type="number" v-model="scope.row.count"  :disabled="stockShow"   oninput="value=value.replace(/\D|^0/g,'')"></el-input>
190
+                <el-input type="number" v-model="scope.row.count"  :disabled="stockShow"   oninput="value=value.replace(/\D|^0/g,'')"  @input="getSupplyCount(scope.row.count,scope.row.stock_count,scope.$index)"></el-input>
191
               </el-form-item>
191
               </el-form-item>
192
             </template>
192
             </template>
193
           </el-table-column>
193
           </el-table-column>
729
         key = keyword
729
         key = keyword
730
       }
730
       }
731
 
731
 
732
-      postSearchGoodList(key).then(response => {
732
+      postSearchGoodList(key,this.storehouse_id).then(response => {
733
         if (response.data.state == 1) {
733
         if (response.data.state == 1) {
734
 
734
 
735
             var list = response.data.data.list
735
             var list = response.data.data.list

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

148
        </el-table-column>
148
        </el-table-column>
149
        <el-table-column label="出库数量" align="center">
149
        <el-table-column label="出库数量" align="center">
150
          <template slot-scope="scope">
150
          <template slot-scope="scope">
151
-          <span v-if="org_id == 9675 || org_id == 3907 || org_id == 9583">{{ getAutoCount(scope.row.id) + getOutCount(scope.row.id) }}</span>
152
-          <span v-if="org_id!=9675 && org_id!=3907 && org_id!=9583">
151
+          <span v-if="org_id == 3907 || org_id == 9583">{{ getAutoCount(scope.row.id) + getOutCount(scope.row.id) }}</span>
152
+          <span v-if="org_id!=3907 && org_id!=9583">
153
              <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
153
              <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
154
               <td style="border-right: none; border-inline-end: none;text-align: center">
154
               <td style="border-right: none; border-inline-end: none;text-align: center">
155
               {{getWareInfoCount(scope.row.xt_warehouse_info,item.storehouse_id) - getWareInfoCountOne(scope.row.xt_warehouse_info,item.storehouse_id)}}&nbsp;
155
               {{getWareInfoCount(scope.row.xt_warehouse_info,item.storehouse_id) - getWareInfoCountOne(scope.row.xt_warehouse_info,item.storehouse_id)}}&nbsp;
161
 
161
 
162
         <el-table-column label="剩余库存量" align="center">
162
         <el-table-column label="剩余库存量" align="center">
163
          <template slot-scope="scope">
163
          <template slot-scope="scope">
164
-           <span v-if="org_id == 9675 || org_id == 3907 || org_id == 9583">
164
+           <span v-if="org_id == 3907 || org_id == 9583">
165
              {{
165
              {{
166
               getWareInfo(scope.row.xt_warehouse_info) -
166
               getWareInfo(scope.row.xt_warehouse_info) -
167
               getAutoCount(scope.row.id) -
167
               getAutoCount(scope.row.id) -
169
               getCancelCount(scope.row.id)
169
               getCancelCount(scope.row.id)
170
               }}
170
               }}
171
           </span>
171
           </span>
172
-          <span v-if="org_id!=9675 && org_id!=3907 && org_id!=9583">
172
+          <span v-if="org_id!=3907 && org_id!=9583">
173
              <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
173
              <tr style="background: none" v-for="(item,index) in scope.row.warehouse_info" :key="index">
174
               <td style="border-right: none; border-inline-end: none;text-align: center">
174
               <td style="border-right: none; border-inline-end: none;text-align: center">
175
                {{getWareInfoCountOne(scope.row.xt_warehouse_info,item.storehouse_id)}}&nbsp;&nbsp;
175
                {{getWareInfoCountOne(scope.row.xt_warehouse_info,item.storehouse_id)}}&nbsp;&nbsp;