XMLWAN 3 år sedan
förälder
incheckning
b02f4602dc

+ 1 - 1
src/xt_pages/data/components/drugs.vue Visa fil

17
             :value="item.id">
17
             :value="item.id">
18
           </el-option>
18
           </el-option>
19
         </el-select>
19
         </el-select>
20
-        <label class="title"><span class="name">是否收费</span> : </label>
20
+        <label class="title"><span class="name">是否备案</span> : </label>
21
         <el-select v-model="is_charge" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeCharge">
21
         <el-select v-model="is_charge" style="width:140px;margin-right:10px;" placeholder="请选择" @change="changeCharge">
22
           <el-option
22
           <el-option
23
             v-for="item in options"
23
             v-for="item in options"

+ 3 - 5
src/xt_pages/stock/Dialog/goodInfoDailog.vue Visa fil

93
             <el-form-item label="包装零售价 : " prop="retail_price">
93
             <el-form-item label="包装零售价 : " prop="retail_price">
94
               <el-input v-model="form.packing_price" style="width:160px;" placeholder="" maxlength="30"></el-input>
94
               <el-input v-model="form.packing_price" style="width:160px;" placeholder="" maxlength="30"></el-input>
95
             </el-form-item>
95
             </el-form-item>
96
-            <el-form-item label="拆零零售价 : " prop="retail_price">
96
+            <!-- <el-form-item label="拆零零售价 : " prop="retail_price">
97
               <el-input v-model="form.retail_price" style="width:160px;" placeholder="" maxlength="30"></el-input>
97
               <el-input v-model="form.retail_price" style="width:160px;" placeholder="" maxlength="30"></el-input>
98
-            </el-form-item>
98
+            </el-form-item> -->
99
 
99
 
100
             <el-form-item label="进货价 : " prop="buy_price">
100
             <el-form-item label="进货价 : " prop="buy_price">
101
               <el-input v-model="form.buy_price" style="width:160px;" placeholder="" maxlength="30"></el-input>
101
               <el-input v-model="form.buy_price" style="width:160px;" placeholder="" maxlength="30"></el-input>
349
           statistics_category: '',
349
           statistics_category: '',
350
           agent: '',
350
           agent: '',
351
           good_status: '',
351
           good_status: '',
352
-          default_count: '',
352
+          default_count:1,
353
           sign: '',
353
           sign: '',
354
           is_default: '',
354
           is_default: '',
355
           is_charge_use: '',
355
           is_charge_use: '',
389
             { required: true, message: '请选择生产厂商', trigger: 'blur' }
389
             { required: true, message: '请选择生产厂商', trigger: 'blur' }
390
           ], good_unit: [
390
           ], good_unit: [
391
             { required: true, message: '请选择单位', trigger: 'blur' }
391
             { required: true, message: '请选择单位', trigger: 'blur' }
392
-          ], retail_price: [
393
-            { required: true, message: '请输入零价', trigger: 'blur' }
394
           ], stock_warn_count: [
392
           ], stock_warn_count: [
395
             { required: true, message: '请输入库存警戒', trigger: 'blur' }
393
             { required: true, message: '请输入库存警戒', trigger: 'blur' }
396
           ],social_security_directory_code:[
394
           ],social_security_directory_code:[

+ 8 - 8
src/xt_pages/stock/Dialog/goodTypeDialog.vue Visa fil

71
       },
71
       },
72
        out_stock: '1',
72
        out_stock: '1',
73
        stock_attribute:"1",
73
        stock_attribute:"1",
74
-       showAttribute:false
74
+       showAttribute:true
75
     };
75
     };
76
   },
76
   },
77
   props: {
77
   props: {
89
   },
89
   },
90
   methods: {
90
   methods: {
91
     show:function(val){
91
     show:function(val){
92
-      console.log("val22222222",this.formValue)
93
-      if(this.formValue.stock_attribute == "1"){
94
-        this.showAttribute = false
95
-      }
96
-      if(this.formValue.stock_attribute == "2" || this.formValue.stock_attribute =="3"){
97
-        this.showAttribute = true
98
-      }
92
+      // console.log("val22222222",this.formValue)
93
+      // if(this.formValue.stock_attribute == "1"){
94
+      //   this.showAttribute = false
95
+      // }
96
+      // if(this.formValue.stock_attribute == "2" || this.formValue.stock_attribute =="3"){
97
+      //   this.showAttribute = true
98
+      // }
99
    
99
    
100
       this.visibility = true
100
       this.visibility = true
101
 
101
 

+ 15 - 15
src/xt_pages/stock/drugs/drugStockFlow.vue Visa fil

55
         :data="tableList"
55
         :data="tableList"
56
         border
56
         border
57
         style="width: 100%">
57
         style="width: 100%">
58
-        <el-table-column prop="date" label="序号" width="180">
58
+        <el-table-column prop="date" label="序号" width="180" align="center">
59
            <template  slot-scope="scope">
59
            <template  slot-scope="scope">
60
               {{scope.$index + 1}}
60
               {{scope.$index + 1}}
61
            </template>
61
            </template>
62
         </el-table-column>
62
         </el-table-column>
63
-        <el-table-column prop="drug_type" label="出入库方式" width="180">
63
+        <el-table-column prop="drug_type" label="出入库方式" width="180" align="center">
64
            <template slot-scope="scope">
64
            <template slot-scope="scope">
65
              <span v-if="scope.row.drug_way == 4">手动入库</span>
65
              <span v-if="scope.row.drug_way == 4">手动入库</span>
66
              <span v-if="scope.row.drug_way == 2">手动出库</span>
66
              <span v-if="scope.row.drug_way == 2">手动出库</span>
67
            </template>
67
            </template>
68
         </el-table-column>
68
         </el-table-column>
69
-        <el-table-column prop="drug_name" label="出/入库单据编码">
69
+        <el-table-column prop="drug_name" label="出/入库单据编码" align="center">
70
            <template slot-scope="scope">
70
            <template slot-scope="scope">
71
              <span v-if="scope.row.drug_way == 2"> {{scope.row.warehouse_out_order_number}}</span>
71
              <span v-if="scope.row.drug_way == 2"> {{scope.row.warehouse_out_order_number}}</span>
72
              <span v-if="scope.row.drug_way == 4">{{scope.row.warehousing_order}}</span>
72
              <span v-if="scope.row.drug_way == 4">{{scope.row.warehousing_order}}</span>
73
             
73
             
74
            </template>
74
            </template>
75
         </el-table-column>
75
         </el-table-column>
76
-        <el-table-column prop="drug_name" label="操作日期">
76
+        <el-table-column prop="drug_name" label="操作日期" align="center">
77
            <template slot-scope="scope">
77
            <template slot-scope="scope">
78
              {{getTime(scope.row.ctime)}}
78
              {{getTime(scope.row.ctime)}}
79
            </template>
79
            </template>
80
         </el-table-column>
80
         </el-table-column>
81
-         <el-table-column prop="drug_name" label="出入库数量">
81
+         <el-table-column prop="drug_name" label="出入库数量" align="center">
82
            <template slot-scope="scope">
82
            <template slot-scope="scope">
83
-             <span v-if="scope.row.drug_way == 4"> {{scope.row.warehouse_out_order_number}}</span>
84
-             <span v-if="scope.row.drug_way == 2">{{scope.row.warehousing_order}}</span>
83
+             <span v-if="scope.row.drug_way == 4"> {{scope.row.warehousing_count}}</span>
84
+             <span v-if="scope.row.drug_way == 2">{{scope.row.count}}</span>
85
            </template>
85
            </template>
86
         </el-table-column>
86
         </el-table-column>
87
-         <el-table-column prop="drug_name" label="剩余库存量">
87
+         <el-table-column prop="drug_name" label="剩余库存量" align="center">
88
            <template slot-scope="scope">
88
            <template slot-scope="scope">
89
              <!-- <span v-if="scope.row.drug_way == 4"> {{scope.row.stock_max_numbe}}{{scope.row.max_unit}}{{scope.row.stock_min_number}}{{scope.row.min_unit}}</span>
89
              <!-- <span v-if="scope.row.drug_way == 4"> {{scope.row.stock_max_numbe}}{{scope.row.max_unit}}{{scope.row.stock_min_number}}{{scope.row.min_unit}}</span>
90
              <span v-if="scope.row.drug_way == 2">{{scope.row.count}}</span> -->
90
              <span v-if="scope.row.drug_way == 2">{{scope.row.count}}</span> -->
92
              <span></span>
92
              <span></span>
93
            </template>
93
            </template>
94
         </el-table-column>
94
         </el-table-column>
95
-        <el-table-column prop="drug_name" label="进/出货单价">
95
+        <el-table-column prop="drug_name" label="进/出货单价" align="center">
96
            <template slot-scope="scope">
96
            <template slot-scope="scope">
97
              <span v-if="scope.row.drug_way == 4"> {{scope.row.price}}</span>
97
              <span v-if="scope.row.drug_way == 4"> {{scope.row.price}}</span>
98
              <span v-if="scope.row.drug_way == 2">{{scope.row.price}}</span>
98
              <span v-if="scope.row.drug_way == 2">{{scope.row.price}}</span>
99
            </template>
99
            </template>
100
         </el-table-column>
100
         </el-table-column>
101
-         <el-table-column prop="drug_name" label="有效期">
101
+         <el-table-column prop="drug_name" label="有效期" align="center">
102
            <template slot-scope="scope">
102
            <template slot-scope="scope">
103
              <span v-if="scope.row.drug_way == 4"> {{getTime(scope.row.expiry_date)}}</span>
103
              <span v-if="scope.row.drug_way == 4"> {{getTime(scope.row.expiry_date)}}</span>
104
              <span v-if="scope.row.drug_way == 2">{{getTime(scope.row.expiry_date)}}</span>
104
              <span v-if="scope.row.drug_way == 2">{{getTime(scope.row.expiry_date)}}</span>
105
            </template>
105
            </template>
106
         </el-table-column>
106
         </el-table-column>
107
-        <el-table-column prop="drug_name" label="批号">
107
+        <el-table-column prop="drug_name" label="批号" align="center">
108
            <template slot-scope="scope">
108
            <template slot-scope="scope">
109
              <span v-if="scope.row.drug_way == 2"> {{scope.row.number}}</span>
109
              <span v-if="scope.row.drug_way == 2"> {{scope.row.number}}</span>
110
              <span v-if="scope.row.drug_way == 4">{{scope.row.number}}</span>
110
              <span v-if="scope.row.drug_way == 4">{{scope.row.number}}</span>
111
            </template>
111
            </template>
112
         </el-table-column>
112
         </el-table-column>
113
-        <el-table-column prop="drug_name" label="供应商">
113
+        <el-table-column prop="drug_name" label="生产商" align="center">
114
            <template slot-scope="scope">
114
            <template slot-scope="scope">
115
              <span v-if="scope.row.drug_way == 4"> {{getManufacturer(scope.row.manufacturer)}}</span>
115
              <span v-if="scope.row.drug_way == 4"> {{getManufacturer(scope.row.manufacturer)}}</span>
116
              <span v-if="scope.row.drug_way == 2">{{getManufacturer(scope.row.manufacturer)}}</span>
116
              <span v-if="scope.row.drug_way == 2">{{getManufacturer(scope.row.manufacturer)}}</span>
219
          getDrugStockFlow(params).then(response=>{
219
          getDrugStockFlow(params).then(response=>{
220
            if(response.data.state == 1){
220
            if(response.data.state == 1){
221
             var list = response.data.data.list
221
             var list = response.data.data.list
222
-            console.log("入库数据",list)
222
+            console.log("入库数据0000",list)
223
             for(let i=0;i<list.length;i++){
223
             for(let i=0;i<list.length;i++){
224
                list[i].drug_way = 4
224
                list[i].drug_way = 4
225
                this.tableList.push(list[i])
225
                this.tableList.push(list[i])
286
        var name = ""
286
        var name = ""
287
        for(let i=0;i<this.manufacturerList.length;i++){
287
        for(let i=0;i<this.manufacturerList.length;i++){
288
          if(id == this.manufacturerList[i].id){
288
          if(id == this.manufacturerList[i].id){
289
-            name = this.manufacturerList[i].name
289
+            name = this.manufacturerList[i].manufacturer_name
290
          }
290
          }
291
        }
291
        }
292
        return name
292
        return name
314
             this.countList = countlist
314
             this.countList = countlist
315
             var outcountlist = response.data.data.outCountList
315
             var outcountlist = response.data.data.outCountList
316
             console.log("出库数据",outcountlist)
316
             console.log("出库数据",outcountlist)
317
-            this.outCountList = this.outCountList
317
+            this.outCountList = outcountlist
318
             var aucountlist = response.data.data.auCountList
318
             var aucountlist = response.data.data.auCountList
319
             console.log("自动数据",aucountlist)
319
             console.log("自动数据",aucountlist)
320
             this.autoCountList = aucountlist
320
             this.autoCountList = aucountlist

+ 11 - 9
src/xt_pages/stock/drugs/drugStockOutOrder.vue Visa fil

118
           </template>
118
           </template>
119
         </el-table-column>
119
         </el-table-column>
120
 
120
 
121
-        <el-table-column label="厂家" align="center">
121
+        <!-- <el-table-column label="厂家" align="center">
122
           <template slot-scope="scope">
122
           <template slot-scope="scope">
123
             {{scope.row.manufacturers ? scope.row.manufacturers.manufacturer_name:''}}
123
             {{scope.row.manufacturers ? scope.row.manufacturers.manufacturer_name:''}}
124
           </template>
124
           </template>
128
           <template slot-scope="scope">
128
           <template slot-scope="scope">
129
             {{scope.row.dealers ? scope.row.dealers.dealer_name:''}}
129
             {{scope.row.dealers ? scope.row.dealers.dealer_name:''}}
130
           </template>
130
           </template>
131
-        </el-table-column>
131
+        </el-table-column> -->
132
 
132
 
133
 
133
 
134
         <el-table-column label="操作" align="center" width="240">
134
         <el-table-column label="操作" align="center" width="240">
223
               {{scope.row.dose}}&nbsp;{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
223
               {{scope.row.dose}}&nbsp;{{scope.row.dose_unit}}*{{scope.row.min_number}}{{scope.row.min_unit}}/{{scope.row.max_unit}}
224
             </template>
224
             </template>
225
           </el-table-column>
225
           </el-table-column>
226
-          <el-table-column label="批号" align="center">
226
+          <!-- <el-table-column label="批号" align="center">
227
             <template slot-scope="scope">
227
             <template slot-scope="scope">
228
             {{scope.row.number}}
228
             {{scope.row.number}}
229
             </template>
229
             </template>
230
-          </el-table-column>
230
+          </el-table-column> -->
231
           <el-table-column label="出库数量" align="center">
231
           <el-table-column label="出库数量" align="center">
232
             <template slot-scope="scope">
232
             <template slot-scope="scope">
233
               {{scope.row.count}}
233
               {{scope.row.count}}
235
           </el-table-column>
235
           </el-table-column>
236
           <el-table-column label="进货价" align="center">
236
           <el-table-column label="进货价" align="center">
237
             <template slot-scope="scope">
237
             <template slot-scope="scope">
238
-              {{scope.row.price}}
238
+              {{scope.row.last_price}}
239
             </template>
239
             </template>
240
           </el-table-column>
240
           </el-table-column>
241
           <el-table-column label="总价" align="center">
241
           <el-table-column label="总价" align="center">
242
             <template slot-scope="scope">
242
             <template slot-scope="scope">
243
-              {{scope.row.total_price}}
243
+              {{scope.row.count * scope.row.last_price}}
244
             </template>
244
             </template>
245
           </el-table-column>
245
           </el-table-column>
246
           <el-table-column label="生产厂家" align="center">
246
           <el-table-column label="生产厂家" align="center">
258
               {{getTime(scope.row.expiry_date)}}
258
               {{getTime(scope.row.expiry_date)}}
259
             </template>
259
             </template>
260
           </el-table-column>
260
           </el-table-column>
261
-          <el-table-column label="批准文号" align="center">
261
+          <!-- <el-table-column label="批准文号" align="center">
262
             <template slot-scope="scope">
262
             <template slot-scope="scope">
263
               {{scope.row.number}}
263
               {{scope.row.number}}
264
             </template>
264
             </template>
265
-          </el-table-column>
265
+          </el-table-column> -->
266
           <el-table-column label="备注" align="center">
266
           <el-table-column label="备注" align="center">
267
             <template slot-scope="scope">
267
             <template slot-scope="scope">
268
               {{scope.row.remark}}
268
               {{scope.row.remark}}
756
               this.tableList.push(response.data.data.list[i])
756
               this.tableList.push(response.data.data.list[i])
757
 
757
 
758
             }
758
             }
759
-            console.log("详情",this.tableList)
759
+            console.log("详情222",this.tableList)
760
             this.warehousingOutInfo.info = response.data.data.info
760
             this.warehousingOutInfo.info = response.data.data.info
761
             var manulist = response.data.data.manulist
761
             var manulist = response.data.data.manulist
762
             this.manufacturerList = manulist
762
             this.manufacturerList = manulist
955
            var drugList = response.data.data.drugList
955
            var drugList = response.data.data.drugList
956
            console.log("药品列表",drugList)
956
            console.log("药品列表",drugList)
957
            this.drugList = drugList
957
            this.drugList = drugList
958
+           var manulist = response.data.data.manufacturerList
959
+           this.manufacturerList = manulist
958
          }
960
          }
959
       })
961
       })
960
     },
962
     },

+ 2 - 2
src/xt_pages/stock/drugs/query.vue Visa fil

118
         </el-table-column>
118
         </el-table-column>
119
         <el-table-column prop="drug_name" label="出库数量" align="center">
119
         <el-table-column prop="drug_name" label="出库数量" align="center">
120
            <template slot-scope="scope">
120
            <template slot-scope="scope">
121
-             {{getOutCount(scope.row.drug_id)}}
121
+             {{getOutCount(scope.row.drug_id) + getAutoCount(scope.row.drug_id)}}
122
            </template>
122
            </template>
123
         </el-table-column>
123
         </el-table-column>
124
         <el-table-column prop="drug_name" label="剩余库存量" align="center">
124
         <el-table-column prop="drug_name" label="剩余库存量" align="center">
512
             this.countList = countlist
512
             this.countList = countlist
513
             var outcountlist = response.data.data.outCountList
513
             var outcountlist = response.data.data.outCountList
514
             console.log("出库数据",outcountlist)
514
             console.log("出库数据",outcountlist)
515
-            this.outCountList = this.outCountList
515
+            this.outCountList = outcountlist
516
             var aucountlist = response.data.data.auCountList
516
             var aucountlist = response.data.data.auCountList
517
             console.log("自动数据",aucountlist)
517
             console.log("自动数据",aucountlist)
518
             this.autoCountList = aucountlist
518
             this.autoCountList = aucountlist

+ 23 - 9
src/xt_pages/stock/stockBatchNumber.vue Visa fil

38
               @change="endTimeChange"
38
               @change="endTimeChange"
39
           ></el-date-picker>
39
           ></el-date-picker>
40
 
40
 
41
-        <span>出入库方式:</span>
41
+        <!-- <span>出入库方式:</span>
42
         <el-select v-model="stock_type" style="width:160px;margin-right:10px;" placeholder="请选择" @change="changeDrug">
42
         <el-select v-model="stock_type" style="width:160px;margin-right:10px;" placeholder="请选择" @change="changeDrug">
43
             <el-option
43
             <el-option
44
               v-for="(item,index) in stockType"
44
               v-for="(item,index) in stockType"
46
               :label="item.name"
46
               :label="item.name"
47
               :value="item.id">
47
               :value="item.id">
48
             </el-option>
48
             </el-option>
49
-        </el-select>
49
+        </el-select> -->
50
         
50
         
51
         
51
         
52
       </div>
52
       </div>
79
         </el-table-column>
79
         </el-table-column>
80
          <el-table-column prop="drug_name" label="批号" align="center">
80
          <el-table-column prop="drug_name" label="批号" align="center">
81
            <template slot-scope="scope" >
81
            <template slot-scope="scope" >
82
-             <span v-if="scope.row.stock_way == 4 && scope.row.stock_count!=0">{{scope.row.stock_count}} </span>
82
+             <span v-if="scope.row.stock_way == 4">{{scope.row.number}} </span>
83
            </template>
83
            </template>
84
         </el-table-column>
84
         </el-table-column>
85
         <el-table-column prop="drug_name" label="入库数量" align="center">
85
         <el-table-column prop="drug_name" label="入库数量" align="center">
86
            <template slot-scope="scope">
86
            <template slot-scope="scope">
87
-             <span v-if="scope.row.stock_way == 4"> {{scope.row.price}}</span>
88
-             <span v-if="scope.row.stock_way == 2">{{scope.row.price}}</span>
87
+             <span v-if="scope.row.stock_way == 4"> {{scope.row.warehousing_count}}</span>
88
+             <span v-if="scope.row.stock_way == 2">{{scope.row.count}}</span>
89
            </template>
89
            </template>
90
         </el-table-column>
90
         </el-table-column>
91
-         <el-table-column prop="drug_name" label="进货价" align="center">
91
+         <el-table-column prop="drug_name" label="进货价" align="center">
92
            <template slot-scope="scope">
92
            <template slot-scope="scope">
93
-             <span v-if="scope.row.stock_way == 4"> {{getTime(scope.row.expiry_date)}}</span>
94
-             <span v-if="scope.row.stock_way == 2">{{getTime(scope.row.expiry_date)}}</span>
93
+             <span v-if="scope.row.stock_way == 4"> {{scope.row.price}}</span>
94
+             <span v-if="scope.row.stock_way == 2">{{scope.row.price}}</span>
95
            </template>
95
            </template>
96
         </el-table-column>
96
         </el-table-column>
97
        </el-table>
97
        </el-table>
114
 <script>
114
 <script>
115
   import { uParseTime } from '@/utils/tools'
115
   import { uParseTime } from '@/utils/tools'
116
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
116
   import BreadCrumb from '@/xt_pages/components/bread-crumb'
117
-  import {getStockInList,getStockOutList} from "@/api/drug/drug_stock";
117
+  import {getStockInList} from "@/api/drug/drug_stock";
118
   export default {
118
   export default {
119
     name: 'stockIn',
119
     name: 'stockIn',
120
     created() {
120
     created() {
227
          if(response.data.state == 1){
227
          if(response.data.state == 1){
228
            var list = response.data.data.list
228
            var list = response.data.data.list
229
            console.log("入库数据",list)
229
            console.log("入库数据",list)
230
+           for(let i=0;i<list.length;i++){
231
+             list[i].stock_way = 4
232
+           }
230
            this.tableList = list
233
            this.tableList = list
231
            var total = response.data.data.total
234
            var total = response.data.data.total
232
            this.total = total
235
            this.total = total
233
            console.log("入库数据",this.tableList)
236
            console.log("入库数据",this.tableList)
234
            var manufacturerList = response.data.data.manufacturerList
237
            var manufacturerList = response.data.data.manufacturerList
235
            this.manufacturerList = manufacturerList
238
            this.manufacturerList = manufacturerList
239
+
240
+          // var outlist =  response.data.data.outList
241
+          // console.log("outlist",outlist)
242
+          // for(let i=0;i<outlist.length;i++){
243
+          //     outlist[i].stock_way = 2
244
+          //     this.tableList.push(outlist[i])
245
+          // }
246
+          
247
+           
236
          }
248
          }
237
       })
249
       })
238
      },
250
      },
240
       // 把时间日期转成时间戳
252
       // 把时间日期转成时间戳
241
       return new Date(time).getTime() / 1000;
253
       return new Date(time).getTime() / 1000;
242
      },
254
      },
255
+     
256
+
243
     }
257
     }
244
   }
258
   }
245
 </script>
259
 </script>

+ 4 - 4
src/xt_pages/stock/stockFlow.vue Visa fil

79
              {{getTime(scope.row.ctime)}}
79
              {{getTime(scope.row.ctime)}}
80
            </template>
80
            </template>
81
         </el-table-column>
81
         </el-table-column>
82
-         <el-table-column prop="drug_name" label="入库数量"  align="center">
82
+         <el-table-column prop="drug_name" label="入库数量"  align="center">
83
            <template slot-scope="scope">
83
            <template slot-scope="scope">
84
              <span v-if="scope.row.stock_way == 4 && scope.row.warehousing_count!=0"> {{scope.row.warehousing_count}}</span>
84
              <span v-if="scope.row.stock_way == 4 && scope.row.warehousing_count!=0"> {{scope.row.warehousing_count}}</span>
85
              <span v-if="scope.row.stock_way == 2 && scope.row.count!=0">{{scope.row.count}}</span>
85
              <span v-if="scope.row.stock_way == 2 && scope.row.count!=0">{{scope.row.count}}</span>
109
              <span v-if="scope.row.stock_way == 4">{{scope.row.number}}</span>
109
              <span v-if="scope.row.stock_way == 4">{{scope.row.number}}</span>
110
            </template>
110
            </template>
111
         </el-table-column>
111
         </el-table-column>
112
-        <el-table-column prop="drug_name" label="供应商" align="center">
112
+        <el-table-column prop="drug_name" label="生产商" align="center">
113
            <template slot-scope="scope">
113
            <template slot-scope="scope">
114
              <span v-if="scope.row.stock_way == 4"> {{getManufacturer(scope.row.manufacturer)}}</span>
114
              <span v-if="scope.row.stock_way == 4"> {{getManufacturer(scope.row.manufacturer)}}</span>
115
              <span v-if="scope.row.stock_way == 2">{{getManufacturer(scope.row.manufacturer)}}</span>
115
              <span v-if="scope.row.stock_way == 2">{{getManufacturer(scope.row.manufacturer)}}</span>
228
        var name = ""
228
        var name = ""
229
        for(let i=0;i<this.manufacturerList.length;i++){
229
        for(let i=0;i<this.manufacturerList.length;i++){
230
          if(id == this.manufacturerList[i].id){
230
          if(id == this.manufacturerList[i].id){
231
-            name = this.manufacturerList[i].name
231
+            name = this.manufacturerList[i].manufacturer_name
232
          }
232
          }
233
        }
233
        }
234
        return name
234
        return name
310
         var count= ""
310
         var count= ""
311
         for(let i=0;i<this.autoCountList.length;i++){
311
         for(let i=0;i<this.autoCountList.length;i++){
312
           if(id == this.autoCountList[i].good_id){
312
           if(id == this.autoCountList[i].good_id){
313
-            count = this.outCountList[i].count
313
+            count = this.autoCountList[i].count
314
           }
314
           }
315
         }
315
         }
316
         return count
316
         return count

+ 21 - 5
src/xt_pages/stock/stockInOrderAdd.vue Visa fil

188
           </el-table-column>
188
           </el-table-column>
189
            <el-table-column label="经销商" align="center" width="150">
189
            <el-table-column label="经销商" align="center" width="150">
190
              <template slot-scope="scope">
190
              <template slot-scope="scope">
191
-               <el-select size="small" v-model="scope.row.manufacturer" filterable placeholder="请选择厂商">
191
+               <el-select size="small" v-model="scope.row.dealer" filterable placeholder="请选择厂商">
192
                 <el-option
192
                 <el-option
193
-                  v-for="(option, index) in manufacturerList"
193
+                  v-for="(option, index) in dealerList"
194
                   :key="index"
194
                   :key="index"
195
-                  :label="option.manufacturer_name"
195
+                  :label="option.dealer_name"
196
                   :value="option.id">
196
                   :value="option.id">
197
                 </el-option>
197
                 </el-option>
198
                </el-select>
198
                </el-select>
667
                  }
667
                  }
668
               }
668
               }
669
             }
669
             }
670
+
671
+            for(let i=0;i<this.recordInfo.recordData.length;i++){
672
+              for(let j=0;j<this.dealerList.length;j++){
673
+                 if(this.recordInfo.recordData[i].dealer == this.dealerList[j].dealer_name){
674
+                    this.recordInfo.recordData[i].dealer = this.dealerList[j].id
675
+                 }
676
+              }
677
+            }
670
             const params = {
678
             const params = {
671
               'stockIn': this.recordInfo.recordData
679
               'stockIn': this.recordInfo.recordData
672
             }
680
             }
710
              this.goodList = list
718
              this.goodList = list
711
              var manufacturerList = response.data.data.manufacturerList
719
              var manufacturerList = response.data.data.manufacturerList
712
              this.manufacturerList = manufacturerList
720
              this.manufacturerList = manufacturerList
713
-             var dealer =  response.data.data.dealer
721
+             var dealer =  response.data.data.dealerList
714
              this.dealerList = dealer
722
              this.dealerList = dealer
715
              for(let i=0;i<this.goodList.length;i++){
723
              for(let i=0;i<this.goodList.length;i++){
716
                 for(let j=0;j<this.manufacturerList.length;j++){
724
                 for(let j=0;j<this.manufacturerList.length;j++){
719
                   }
727
                   }
720
                 }
728
                 }
721
              }
729
              }
730
+
731
+             for(let i=0;i<this.goodList.length;i++){
732
+               for(let j=0;j<this.dealerList.length;j++){
733
+                  if(this.goodList[i].dealer == this.dealerList[j].id){
734
+                    this.goodList[i].dealer = this.dealerList[j].dealer_name
735
+                  }
736
+               }
737
+             }
722
            
738
            
723
              cb(this.goodList)
739
              cb(this.goodList)
724
           } else {
740
           } else {
744
               this.recordInfo.recordData[i].specification_name = val.specification_name
760
               this.recordInfo.recordData[i].specification_name = val.specification_name
745
               this.recordInfo.recordData[i].good_id = val.id
761
               this.recordInfo.recordData[i].good_id = val.id
746
               this.recordInfo.recordData[i].packing_unit = val.packing_unit
762
               this.recordInfo.recordData[i].packing_unit = val.packing_unit
747
-
763
+              this.recordInfo.recordData[i].dealer = val.dealer
748
            }
764
            }
749
          }
765
          }
750
       }
766
       }

+ 57 - 25
src/xt_pages/stock/stockInOrderEdit.vue Visa fil

211
               {{ calculate(scope.row.price * scope.row.warehousing_count) }}
211
               {{ calculate(scope.row.price * scope.row.warehousing_count) }}
212
             </template>
212
             </template>
213
           </el-table-column>
213
           </el-table-column>
214
+          <el-table-column label="生产厂家" align="center" width="150">
215
+             <template slot-scope="scope">
216
+               <el-select size="small" v-model="scope.row.manufacturer" filterable placeholder="请选择厂商">
217
+                <el-option
218
+                  v-for="(option, index) in manufacturerList"
219
+                  :key="index"
220
+                  :label="option.manufacturer_name"
221
+                  :value="option.id">
222
+                </el-option>
223
+               </el-select>
224
+            </template>
225
+          </el-table-column>
214
 
226
 
215
           <el-table-column align="center" width="150">
227
           <el-table-column align="center" width="150">
216
             <template slot="header" slot-scope="scope">
228
             <template slot="header" slot-scope="scope">
228
 
240
 
229
           <el-table-column label="生产日期" width="180" align="center">
241
           <el-table-column label="生产日期" width="180" align="center">
230
             <template slot-scope="scope">
242
             <template slot-scope="scope">
231
-              <!--{{scope.row.product_date | parseTime("{y}-{m}-{d}")}}-->
232
               <el-date-picker
243
               <el-date-picker
233
                 prefix-icon="el-icon-date"
244
                 prefix-icon="el-icon-date"
234
                 style="width: 145px"
245
                 style="width: 145px"
242
           </el-table-column>
253
           </el-table-column>
243
           <el-table-column label="有效日期" width="180" align="center">
254
           <el-table-column label="有效日期" width="180" align="center">
244
             <template slot-scope="scope">
255
             <template slot-scope="scope">
245
-              <!--{{ scope.row.expiry_date | parseTime("{y}-{m}-{d}")}}-->
246
               <el-date-picker
256
               <el-date-picker
247
                 prefix-icon="el-icon-date"
257
                 prefix-icon="el-icon-date"
248
                 style="width: 145px"
258
                 style="width: 145px"
254
               ></el-date-picker>
264
               ></el-date-picker>
255
             </template>
265
             </template>
256
           </el-table-column>
266
           </el-table-column>
267
+          <el-table-column label="经销商" align="center" width="150">
268
+             <template slot-scope="scope">
269
+               <el-select size="small" v-model="scope.row.dealer" filterable placeholder="请选择厂商">
270
+                <el-option
271
+                  v-for="(option, index) in dealerList"
272
+                  :key="index"
273
+                  :label="option.dealer_name"
274
+                  :value="option.id">
275
+                </el-option>
276
+               </el-select>
277
+            </template>
278
+          </el-table-column>
257
           <el-table-column label="备注" width="150" align="center">
279
           <el-table-column label="备注" width="150" align="center">
258
             <template slot-scope="scope">
280
             <template slot-scope="scope">
259
               <el-input v-model="scope.row.remark"></el-input>
281
               <el-input v-model="scope.row.remark"></el-input>
311
   GetAllConfig,
333
   GetAllConfig,
312
   getWarehouseInfoList,
334
   getWarehouseInfoList,
313
   GetAllGoodInfoByID,
335
   GetAllGoodInfoByID,
314
-  getWarehouseInfoByOrdeNumber,
315
-  modifyWarehouseInfo,
316
-  deleteWarehouseInfo,
317
   DeleteWarehouseInfoItem,
336
   DeleteWarehouseInfoItem,
318
   EditWarehouse,
337
   EditWarehouse,
319
   postSearchGoodList
338
   postSearchGoodList
384
       },
403
       },
385
       warehouse: {},
404
       warehouse: {},
386
       manufacturer: [],
405
       manufacturer: [],
387
-      dealer: [],
388
-      goodType: []
406
+      dealerList: [],
407
+      goodType: [],
408
+      manufacturerList:[]
389
     };
409
     };
390
   },
410
   },
391
   methods: {
411
   methods: {
447
           return false;
467
           return false;
448
         } else {
468
         } else {
449
           this.manufacturer = response.data.data.manufacturer;
469
           this.manufacturer = response.data.data.manufacturer;
470
+          this.manufacturerList = response.data.data.manufacturer
471
+          this.dealerList = response.data.data.dealer
450
           this.dealer = response.data.data.dealer;
472
           this.dealer = response.data.data.dealer;
451
           this.goodType = response.data.data.goodType;
473
           this.goodType = response.data.data.goodType;
452
           this.goodInfo = response.data.data.goodInfo;
474
           this.goodInfo = response.data.data.goodInfo;
453
-          this.manufacturer.splice(0, 0, { id: 0, manufacturer_name: "全部" });
454
-          this.dealer.splice(0, 0, { id: 0, dealer_name: "全部" });
475
+          // this.manufacturer.splice(0, 0, { id: 0, manufacturer_name: "全部" });
476
+          // this.dealer.splice(0, 0, { id: 0, dealer_name: "全部" });
455
         }
477
         }
456
         loading.close();
478
         loading.close();
457
       });
479
       });
617
             stockIn: this.recordInfo.recordData
639
             stockIn: this.recordInfo.recordData
618
           };
640
           };
619
           console.log("params2222",params)
641
           console.log("params2222",params)
642
+       
620
           EditWarehouse(
643
           EditWarehouse(
621
             params,
644
             params,
622
             this.warehousing_time,
645
             this.warehousing_time,
649
           return false;
672
           return false;
650
         } else {
673
         } else {
651
           console.log("列表2222222",response.data.data.info)
674
           console.log("列表2222222",response.data.data.info)
675
+         
652
           for (let i = 0; i < response.data.data.info.length; i++) {
676
           for (let i = 0; i < response.data.data.info.length; i++) {
653
             response.data.data.info[i].product_date = this.getTime(
677
             response.data.data.info[i].product_date = this.getTime(
654
               response.data.data.info[i].product_date,
678
               response.data.data.info[i].product_date,
661
             response.data.data.info[i].price = response.data.data.info[i].price.toString();
685
             response.data.data.info[i].price = response.data.data.info[i].price.toString();
662
             response.data.data.info[i].warehousing_count = response.data.data.info[i].warehousing_count.toString();
686
             response.data.data.info[i].warehousing_count = response.data.data.info[i].warehousing_count.toString();
663
             response.data.data.info[i].good_name = response.data.data.info[i].GoodInfo.good_name
687
             response.data.data.info[i].good_name = response.data.data.info[i].GoodInfo.good_name
664
-            response.data.data.info[i].name = response.data.data.info[i].GoodInfo.specification_name + "*" + response.data.data.info[i].GoodInfo.min_number+response.data.data.info[i].GoodInfo.min_unit
665
-            response.data.data.info[i].min_unit = response.data.data.info[i].GoodInfo.min_unit
688
+            response.data.data.info[i].name = response.data.data.info[i].GoodInfo.specification_name + "*" + response.data.data.info[i].GoodInfo.min_number+response.data.data.info[i].GoodInfo.packing_unit
689
+            response.data.data.info[i].packing_unit = response.data.data.info[i].GoodInfo.packing_unit
690
+            
691
+           
666
            
692
            
667
             this.recordInfo.recordData.push(response.data.data.info[i]);
693
             this.recordInfo.recordData.push(response.data.data.info[i]);
668
            
694
            
670
           }
696
           }
671
 
697
 
672
           this.warehouse = response.data.data.warehousing;
698
           this.warehouse = response.data.data.warehousing;
673
-          this.form.manufacturer = this.warehouse.manufacturer;
674
-          this.form.dealer = this.warehouse.dealer;
699
+        
675
 
700
 
676
           this.warehousing_time = this.getTime(
701
           this.warehousing_time = this.getTime(
677
             this.warehouse.warehousing_time,
702
             this.warehouse.warehousing_time,
701
         if (keyword != undefined) {
726
         if (keyword != undefined) {
702
           key = keyword
727
           key = keyword
703
         }
728
         }
704
-        console.log("keyrowrd",key)
705
         postSearchGoodList(key).then(response => {
729
         postSearchGoodList(key).then(response => {
706
           if (response.data.state == 1) {
730
           if (response.data.state == 1) {
707
           
731
           
708
             var list = response.data.data.list
732
             var list = response.data.data.list
709
             this.goodList = list
733
             this.goodList = list
710
-            var manufacturerList = response.data.data.manufacturerList
711
-            this.manufacturerList = manufacturerList
712
-            for(let i=0;i<this.goodList.length;i++){
713
-                for(let j=0;j<this.manufacturerList.length;j++){
714
-                  if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
715
-                    this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
716
-                  }
717
-                }
718
-            }
719
-          
734
+            // var manufacturerList = response.data.data.manufacturerList
735
+            // this.dealerList = response.data.data.dealerList
736
+            // this.manufacturerList = manufacturerList
737
+            // for(let i=0;i<this.goodList.length;i++){
738
+            //     for(let j=0;j<this.manufacturerList.length;j++){
739
+            //       if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
740
+            //         this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
741
+            //       }
742
+            //     }
743
+            // }
744
+            // for(let i=0;i<this.goodList.length;i++){
745
+            //    for(let j=0;j<this.dealerList.length;j++){
746
+            //       if(this.goodList[i].dealer == this.dealerList[j].id){
747
+            //         this.goodList[i].dealer = this.dealerList[j].dealer_name
748
+            //       }
749
+            //    }
750
+            //  }
720
             cb(this.goodList)
751
             cb(this.goodList)
721
           } else {
752
           } else {
722
             cb([])
753
             cb([])
740
             this.recordInfo.recordData[i].price = val.buy_price
771
             this.recordInfo.recordData[i].price = val.buy_price
741
             this.recordInfo.recordData[i].specification_name = val.specification_name
772
             this.recordInfo.recordData[i].specification_name = val.specification_name
742
             this.recordInfo.recordData[i].good_id = val.id
773
             this.recordInfo.recordData[i].good_id = val.id
743
-            this.recordInfo.recordData[i].min_unit = val.min_unit
774
+            this.recordInfo.recordData[i].packing_unit = val.packing_unit
775
+            this.recordInfo.recordData[i].dealer = val.dealer
744
           }
776
           }
745
         }
777
         }
746
     }
778
     }

+ 5 - 15
src/xt_pages/stock/stockOutOrder.vue Visa fil

107
             {{ getXuserName(scope.row.creater) }}
107
             {{ getXuserName(scope.row.creater) }}
108
           </template>
108
           </template>
109
         </el-table-column>
109
         </el-table-column>
110
-        <el-table-column label="厂家" align="center">
111
-          <template slot-scope="scope">
112
-            {{ getManufactuerName(scope.row.manufacturer) }}
113
-          </template>
114
-        </el-table-column>
115
-
116
-        <el-table-column label="经销商" align="center">
117
-          <template slot-scope="scope">
118
-            {{ getDealerName(scope.row.dealer) }}
119
-          </template>
120
-        </el-table-column>
110
+       
121
 
111
 
122
         <el-table-column label="操作" align="center" width="300px">
112
         <el-table-column label="操作" align="center" width="300px">
123
           <template slot-scope="scope">
113
           <template slot-scope="scope">
211
               {{ scope.row.specification_name}} * {{scope.row.min_number}}{{scope.row.min_unit}}
201
               {{ scope.row.specification_name}} * {{scope.row.min_number}}{{scope.row.min_unit}}
212
             </template>
202
             </template>
213
           </el-table-column>
203
           </el-table-column>
214
-          <el-table-column label="批号" align="center">
204
+          <!-- <el-table-column label="批号" align="center">
215
             <template slot-scope="scope">
205
             <template slot-scope="scope">
216
               {{ scope.row.number}}
206
               {{ scope.row.number}}
217
             </template>
207
             </template>
218
-          </el-table-column>
208
+          </el-table-column> -->
219
           <el-table-column label="出库数量" align="center">
209
           <el-table-column label="出库数量" align="center">
220
             <template slot-scope="scope">
210
             <template slot-scope="scope">
221
               <span v-if="scope.row.is_sys == 0">{{ scope.row.count}}</span> 
211
               <span v-if="scope.row.is_sys == 0">{{ scope.row.count}}</span> 
237
               {{ getManufactuerName(scope.row.manufacturer)}}
227
               {{ getManufactuerName(scope.row.manufacturer)}}
238
             </template>
228
             </template>
239
           </el-table-column>
229
           </el-table-column>
240
-          <el-table-column label="生产日期" align="center">
230
+          <!-- <el-table-column label="生产日期" align="center">
241
             <template slot-scope="scope">
231
             <template slot-scope="scope">
242
               {{ getTime(scope.row.product_date)}}
232
               {{ getTime(scope.row.product_date)}}
243
             </template>
233
             </template>
246
             <template slot-scope="scope">
236
             <template slot-scope="scope">
247
               {{ getTime(scope.row.expiry_date)}}
237
               {{ getTime(scope.row.expiry_date)}}
248
             </template>
238
             </template>
249
-          </el-table-column>
239
+          </el-table-column> -->
250
           <el-table-column label="备注" align="center">
240
           <el-table-column label="备注" align="center">
251
             <template slot-scope="scope">
241
             <template slot-scope="scope">
252
               {{ scope.row.remark }}
242
               {{ scope.row.remark }}

+ 16 - 10
src/xt_pages/stock/stockOutOrderAdd.vue Visa fil

54
         ></el-date-picker>
54
         ></el-date-picker>
55
       </div>
55
       </div>
56
 
56
 
57
-      <div class="cell clearfix">
57
+      <!-- <div class="cell clearfix">
58
         <label class="title"><span class="name">经销商</span> : </label>
58
         <label class="title"><span class="name">经销商</span> : </label>
59
         <el-select
59
         <el-select
60
           size="small"
60
           size="small"
72
           >
72
           >
73
           </el-option>
73
           </el-option>
74
         </el-select>
74
         </el-select>
75
-      </div>
75
+      </div> -->
76
 
76
 
77
-      <div class="cell clearfix">
77
+      <!-- <div class="cell clearfix">
78
         <label class="title"><span class="name">厂商</span> : </label>
78
         <label class="title"><span class="name">厂商</span> : </label>
79
         <el-select
79
         <el-select
80
           size="small"
80
           size="small"
92
           >
92
           >
93
           </el-option>
93
           </el-option>
94
         </el-select>
94
         </el-select>
95
-      </div>
95
+      </div> -->
96
 
96
 
97
       <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
97
       <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
98
         <el-table
98
         <el-table
159
             </template>
159
             </template>
160
           </el-table-column>
160
           </el-table-column>
161
           
161
           
162
-          <el-table-column  width="150" align="center">
162
+          <!-- <el-table-column  width="150" align="center">
163
              <template slot="header" slot-scope="scope">
163
              <template slot="header" slot-scope="scope">
164
-              <span>批号<span style="color: red">*</span></span>
164
+              <span>批号<span style="color: red"></span></span>
165
             </template>
165
             </template>
166
             <template slot-scope="scope">
166
             <template slot-scope="scope">
167
                <el-input placeholder="请输入批号" v-model="scope.row.number"></el-input>
167
                <el-input placeholder="请输入批号" v-model="scope.row.number"></el-input>
168
             </template>
168
             </template>
169
-          </el-table-column>
169
+          </el-table-column> -->
170
 
170
 
171
          <el-table-column  width="150" align="center">
171
          <el-table-column  width="150" align="center">
172
             <template slot="header" slot-scope="scope">
172
             <template slot="header" slot-scope="scope">
355
       },
355
       },
356
       warehouseInfoList: [],
356
       warehouseInfoList: [],
357
       manufacturer: [],
357
       manufacturer: [],
358
-      dealer: [],
358
+      dealerList: [],
359
       goodType: [],
359
       goodType: [],
360
       goodInfo:[],
360
       goodInfo:[],
361
       goodList:[],
361
       goodList:[],
579
           for(let i=0;i<this.recordInfo.recordData.length;i++){
579
           for(let i=0;i<this.recordInfo.recordData.length;i++){
580
              this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].price.toString()
580
              this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].price.toString()
581
           }
581
           }
582
+          for(let i=0;i<this.recordInfo.recordData.length;i++){
583
+            for(let j=0;j<this.manufacturerList.length;j++){
584
+              if(this.recordInfo.recordData[i].manufacturer == this.manufacturerList[j].manufacturer_name){
585
+                 this.recordInfo.recordData[i].manufacturer = this.manufacturerList[j].id
586
+              }
587
+            }
588
+          }
582
           const params = {
589
           const params = {
583
             stockOut: this.recordInfo.recordData
590
             stockOut: this.recordInfo.recordData
584
           };
591
           };
585
           console.log("2323223223",this.recordInfo.recordData);
592
           console.log("2323223223",this.recordInfo.recordData);
586
-          
593
+        
587
           postWarehouseOut(
594
           postWarehouseOut(
588
             params,
595
             params,
589
             this.warehouse_out_time,
596
             this.warehouse_out_time,
649
             this.recordInfo.recordData[i].good_name = val.good_name
656
             this.recordInfo.recordData[i].good_name = val.good_name
650
             this.recordInfo.recordData[i].good_type_id = val.good_type_id
657
             this.recordInfo.recordData[i].good_type_id = val.good_type_id
651
             this.recordInfo.recordData[i].name = val.specification_name + "*" + val.min_number+val.min_unit +"/"+val.packing_unit
658
             this.recordInfo.recordData[i].name = val.specification_name + "*" + val.min_number+val.min_unit +"/"+val.packing_unit
652
-            // this.recordInfo.recordData[i].number =  val.number
653
             this.recordInfo.recordData[i].manufacturer = val.manufacturer
659
             this.recordInfo.recordData[i].manufacturer = val.manufacturer
654
             this.recordInfo.recordData[i].remark = val.remark
660
             this.recordInfo.recordData[i].remark = val.remark
655
             this.recordInfo.recordData[i].price = val.buy_price
661
             this.recordInfo.recordData[i].price = val.buy_price

+ 31 - 15
src/xt_pages/stock/stockOutOrderEdit.vue Visa fil

164
               {{calculate(scope.row.price*scope.row.count)}}
164
               {{calculate(scope.row.price*scope.row.count)}}
165
             </template>
165
             </template>
166
           </el-table-column>
166
           </el-table-column>
167
+          <el-table-column label="生产厂商"  width="150" align="center">
168
+            <template slot-scope="scope">
169
+               <el-select size="small" v-model="scope.row.manufacturer" filterable placeholder="请选择厂商">
170
+                <el-option
171
+                  v-for="(option, index) in manufacturerList"
172
+                  :key="index"
173
+                  :label="option.manufacturer_name"
174
+                  :value="option.id">
175
+                </el-option>
176
+               </el-select>
177
+            </template>   
178
+          </el-table-column>
167
           <el-table-column label="备注" min-width="20" align="center">
179
           <el-table-column label="备注" min-width="20" align="center">
168
             <template slot-scope="scope">
180
             <template slot-scope="scope">
169
               <el-input v-model="scope.row.remark"></el-input>
181
               <el-input v-model="scope.row.remark"></el-input>
311
         this.propForm.goods = [];
323
         this.propForm.goods = [];
312
 
324
 
313
         this.propForm.goodType = [];
325
         this.propForm.goodType = [];
314
-      }, GetConfigInfo: function() {
326
+      }, 
327
+      GetConfigInfo: function() {
315
         const loading = this.$loading({
328
         const loading = this.$loading({
316
           lock: true,
329
           lock: true,
317
           text: "Loading",
330
           text: "Loading",
323
             this.$message.error(response.data.msg);
336
             this.$message.error(response.data.msg);
324
             return false;
337
             return false;
325
           } else {
338
           } else {
326
-            this.manufacturer = response.data.data.manufacturer;
339
+            this.manufacturerList = response.data.data.manufacturer;
327
             this.dealer = response.data.data.dealer;
340
             this.dealer = response.data.data.dealer;
328
             this.goodType = response.data.data.goodType;
341
             this.goodType = response.data.data.goodType;
329
             this.goodInfo = response.data.data.goodInfo;
342
             this.goodInfo = response.data.data.goodInfo;
330
-            this.manufacturer.splice(0, 0, { id: 0, manufacturer_name: "全部" });
331
-            this.dealer.splice(0, 0, { id: 0, dealer_name: "全部" });
343
+            // this.manufacturer.splice(0, 0, { id: 0, manufacturer_name: "全部" });
344
+            // this.dealer.splice(0, 0, { id: 0, dealer_name: "全部" });
332
           }
345
           }
333
           loading.close();
346
           loading.close();
334
         });
347
         });
477
             const params = {
490
             const params = {
478
               'stockOut': this.recordInfo.recordData
491
               'stockOut': this.recordInfo.recordData
479
             }
492
             }
480
-            
493
+           
481
             console.log("stockout",params)
494
             console.log("stockout",params)
495
+            
482
             editWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
496
             editWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
483
               if (response.data.state == 0) {
497
               if (response.data.state == 0) {
484
                 this.$message.error(response.data.msg)
498
                 this.$message.error(response.data.msg)
492
             return false
506
             return false
493
           }
507
           }
494
         })
508
         })
495
-      }, GetOrderDetail: function(order_id) {
509
+      }, 
510
+      GetOrderDetail: function(order_id) {
496
         const params = {
511
         const params = {
497
           'id': order_id
512
           'id': order_id
498
         }
513
         }
507
               response.data.data.list[i].count = response.data.data.list[i].count.toString()
522
               response.data.data.list[i].count = response.data.data.list[i].count.toString()
508
               response.data.data.list[i].good_name = response.data.data.list[i].GoodInfo.good_name
523
               response.data.data.list[i].good_name = response.data.data.list[i].GoodInfo.good_name
509
               response.data.data.list[i].name = response.data.data.list[i].GoodInfo.good_name + "*" + response.data.data.list[i].GoodInfo.specification_name
524
               response.data.data.list[i].name = response.data.data.list[i].GoodInfo.good_name + "*" + response.data.data.list[i].GoodInfo.specification_name
525
+
510
               this.recordInfo.recordData.push(response.data.data.list[i])
526
               this.recordInfo.recordData.push(response.data.data.list[i])
511
             }
527
             }
512
             this.warehouseOut = response.data.data.info
528
             this.warehouseOut = response.data.data.info
548
           
564
           
549
             var list = response.data.data.list
565
             var list = response.data.data.list
550
             this.goodList = list
566
             this.goodList = list
551
-            var manufacturerList = response.data.data.manufacturerList
552
-            this.manufacturerList = manufacturerList
553
-            for(let i=0;i<this.goodList.length;i++){
554
-              for(let j=0;j<this.manufacturerList.length;j++){
555
-                if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
556
-                    this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
557
-                }
558
-              }
559
-            }
567
+            // var manufacturerList = response.data.data.manufacturerList
568
+            // this.manufacturerList = manufacturerList
569
+            // for(let i=0;i<this.goodList.length;i++){
570
+            //   for(let j=0;j<this.manufacturerList.length;j++){
571
+            //     if(this.goodList[i].manufacturer == this.manufacturerList[j].id){
572
+            //         this.goodList[i].manufacturer = this.manufacturerList[j].manufacturer_name
573
+            //     }
574
+            //   }
575
+            // }
560
           
576
           
561
             cb(this.goodList)
577
             cb(this.goodList)
562
         } else {
578
         } else {

+ 2 - 2
src/xt_pages/stock/stockQuery.vue Visa fil

96
             {{scope.row.price}}
96
             {{scope.row.price}}
97
           </template>
97
           </template>
98
         </el-table-column>
98
         </el-table-column>
99
-        <el-table-column label="商" align="center">
99
+        <el-table-column label="生产商" align="center">
100
           <template slot-scope="scope">
100
           <template slot-scope="scope">
101
            {{getManufacture(scope.row.manufacturer)}}
101
            {{getManufacture(scope.row.manufacturer)}}
102
           </template>
102
           </template>
509
      var count= ""
509
      var count= ""
510
      for(let i=0;i<this.autoCountList.length;i++){
510
      for(let i=0;i<this.autoCountList.length;i++){
511
        if(id == this.autoCountList[i].good_id){
511
        if(id == this.autoCountList[i].good_id){
512
-         count = this.outCountList[i].count
512
+         count = this.autoCountList[i].count
513
        }
513
        }
514
      }
514
      }
515
      return count
515
      return count