XMLWAN il y a 3 ans
Parent
révision
522a6ba2a4

+ 8 - 0
src/api/stock.js Voir le fichier

633
     params: params
633
     params: params
634
   })
634
   })
635
 }
635
 }
636
+
637
+export function getOrderDetailByOrderId(params) {
638
+  return request({
639
+    url: '/api/good/getorderdetialbyorderid',
640
+    method: 'get',
641
+    params: params
642
+  })
643
+}

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderAdd.vue Voir le fichier

87
                   >
87
                   >
88
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
88
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
89
                   <template slot-scope="{ item }">
89
                   <template slot-scope="{ item }">
90
-                    <div class="name">{{ item.drug_name }}</div>
90
+                    <div class="name">{{ item.drug_name + item.dose + "*"+ item.dose_unit +item.min_number + item.min_unit +"/" + item.max_unit}}</div>
91
                   </template>
91
                   </template>
92
                  </el-autocomplete>
92
                  </el-autocomplete>
93
               </el-form-item>
93
               </el-form-item>

+ 1 - 1
src/xt_pages/stock/drugs/drugStockInOrderEdit.vue Voir le fichier

128
                   >
128
                   >
129
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
129
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
130
                   <template slot-scope="{ item }">
130
                   <template slot-scope="{ item }">
131
-                    <div class="name">{{ item.drug_name }}</div>
131
+                    <div class="name">{{ item.drug_name + item.dose + "*"+ item.dose_unit +item.min_number + item.min_unit +"/" + item.max_unit}}</div>
132
                   </template>
132
                   </template>
133
                  </el-autocomplete>
133
                  </el-autocomplete>
134
               </el-form-item>
134
               </el-form-item>

+ 1 - 1
src/xt_pages/stock/drugs/drugStockOutOrderAdd.vue Voir le fichier

126
                   >
126
                   >
127
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
127
                     <i class="el-icon-search el-input__icon" slot="suffix"></i>
128
                   <template slot-scope="{ item }">
128
                   <template slot-scope="{ item }">
129
-                    <div class="name">{{ item.drug_name }}</div>
129
+                    <div class="name">{{ item.drug_name + item.dose + "*"+ item.dose_unit +item.min_number + item.min_unit +"/" + item.max_unit}}</div>
130
                   </template>
130
                   </template>
131
                  </el-autocomplete>
131
                  </el-autocomplete>
132
               </el-form-item>
132
               </el-form-item>

+ 46 - 28
src/xt_pages/stock/stockOutOrder.vue Voir le fichier

206
 
206
 
207
        <el-table-column label="耗材名称" align="center">
207
        <el-table-column label="耗材名称" align="center">
208
           <template slot-scope="scope">
208
           <template slot-scope="scope">
209
-            {{ scope.row.GoodInfo.good_name }}
209
+            {{ scope.row.good_name }}
210
           </template>
210
           </template>
211
         </el-table-column>
211
         </el-table-column>
212
       
212
       
213
         <el-table-column label="耗材类型" align="center">
213
         <el-table-column label="耗材类型" align="center">
214
           <template slot-scope="scope">
214
           <template slot-scope="scope">
215
-            {{  getTypeName(scope.row.GoodInfo.good_type_id)}}
215
+            {{  getTypeName(scope.row.good_type_id)}}
216
           </template>
216
           </template>
217
         </el-table-column>
217
         </el-table-column>
218
 
218
 
219
 
219
 
220
        <el-table-column label="规格&单位" align="center">
220
        <el-table-column label="规格&单位" align="center">
221
           <template slot-scope="scope">
221
           <template slot-scope="scope">
222
-            {{ scope.row.GoodInfo.specification_name}} * {{scope.row.GoodInfo.min_number}}{{scope.row.GoodInfo.min_unit}}
222
+            {{ scope.row.specification_name}} * {{scope.row.min_number}}{{scope.row.min_unit}}
223
           </template>
223
           </template>
224
         </el-table-column>
224
         </el-table-column>
225
 
225
 
253
 
253
 
254
          <el-table-column label="生产厂家" align="center">
254
          <el-table-column label="生产厂家" align="center">
255
           <template slot-scope="scope">
255
           <template slot-scope="scope">
256
-            {{ getManufactuerName(scope.row.GoodInfo.manufacturer)}}
256
+            {{ getManufactuerName(scope.row.manufacturer)}}
257
           </template>
257
           </template>
258
         </el-table-column>
258
         </el-table-column>
259
 
259
 
604
   
604
   
605
     <el-dialog
605
     <el-dialog
606
       title="出库明细"
606
       title="出库明细"
607
-      :visible.sync="editdialogVisibleTwo"
607
+      :visible.sync="editdialogVisibleThree"
608
       width="60%">
608
       width="60%">
609
       <span>
609
       <span>
610
          <div class="app-container">
610
          <div class="app-container">
665
     </div>
665
     </div>
666
       </span>
666
       </span>
667
       <span slot="footer" class="dialog-footer">
667
       <span slot="footer" class="dialog-footer">
668
-        <el-button @click="editdialogVisibleTwo = false">取 消</el-button>
669
-        <el-button type="primary" @click="editdialogVisibleTwo = false">确 定</el-button>
668
+        <el-button @click="editdialogVisibleThree = false">取 消</el-button>
669
+        <el-button type="primary" @click="editdialogVisibleThree = false">确 定</el-button>
670
       </span>
670
       </span>
671
     </el-dialog>
671
     </el-dialog>
672
 
672
 
697
   deleteWarehouseOutInfo,
697
   deleteWarehouseOutInfo,
698
   GetAllGoodInfoByID,
698
   GetAllGoodInfoByID,
699
   editWarehouseoutInfo,
699
   editWarehouseoutInfo,
700
+  getOrderDetailByOrderId
700
 } from "@/api/stock";
701
 } from "@/api/stock";
701
 import BreadCrumb from "../components/bread-crumb";
702
 import BreadCrumb from "../components/bread-crumb";
702
 import StockInDialog from './Dialog/stockInDialog'
703
 import StockInDialog from './Dialog/stockInDialog'
812
       tableList:[],
813
       tableList:[],
813
       dialogVisibleTwo:false,
814
       dialogVisibleTwo:false,
814
       userList:[],
815
       userList:[],
815
-      editdialogVisibleTwo:false
816
+      editdialogVisibleTwo:false,
817
+      editdialogVisibleThree:false,
816
     };
818
     };
817
   },
819
   },
818
   methods: {
820
   methods: {
1086
 
1088
 
1087
     handleSearch(val){
1089
     handleSearch(val){
1088
       this.tableList = []
1090
       this.tableList = []
1091
+    
1092
+      this.editdialogVisibleThree = false
1089
       this.GetOrderDetailOne(val.id)
1093
       this.GetOrderDetailOne(val.id)
1090
       this.GetTotalCount(val.warehouse_out_time)
1094
       this.GetTotalCount(val.warehouse_out_time)
1091
     },
1095
     },
1092
   
1096
   
1093
     //获取出库单详情数据
1097
     //获取出库单详情数据
1094
-    GetOrderDetailOne(id) {
1098
+    // GetOrderDetailOne(id) {
1099
+    //     const params = {
1100
+    //       'id': id
1101
+    //     }
1102
+    //     console.log("#3333333",id)
1103
+    //   getWarehouseOutInfo(params).then(response => {
1104
+    //       if (response.data.state == 0) {
1105
+
1106
+    //         this.$message.error(response.data.msg)
1107
+    //         return false
1108
+    //       } else {
1109
+    //         this.tableShow = true
1110
+    //         for (let i = 0; i < response.data.data.list.length; i++) {
1111
+    //           this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
1112
+    //           console.log("表格00000000",this.tableList)
1113
+    //           this.tableList.push(response.data.data.list[i])
1114
+    //         }
1115
+    //         this.warehousingOutInfo.info = response.data.data.info
1116
+    //       }
1117
+    //     })
1118
+    //  }, 
1119
+     GetOrderDetailOne(id){
1095
         const params = {
1120
         const params = {
1096
           'id': id
1121
           'id': id
1097
         }
1122
         }
1098
-        console.log("#3333333",id)
1099
-      getWarehouseOutInfo(params).then(response => {
1100
-          if (response.data.state == 0) {
1101
-
1102
-            this.$message.error(response.data.msg)
1103
-            return false
1104
-          } else {
1105
-            this.tableShow = true
1106
-            for (let i = 0; i < response.data.data.list.length; i++) {
1107
-              this.warehousingOutInfo.warehousingOutData.push(response.data.data.list[i])
1108
-              console.log("表格00000000",this.tableList)
1109
-              this.tableList.push(response.data.data.list[i])
1110
-            }
1111
-            this.warehousingOutInfo.info = response.data.data.info
1112
-            // this.handleSpanTempArr()
1113
-          }
1123
+        getOrderDetailByOrderId(params).then(response=>{
1124
+           if(response.data.state == 1){
1125
+             this.tableShow = true
1126
+             var list = response.data.data.list
1127
+             console.log("list22222222",list)
1128
+             for(let i=0;i<list.length;i++){
1129
+               this.tableList.push(list[i])
1130
+             }
1131
+           }
1114
         })
1132
         })
1115
-     }, 
1133
+     },
1116
 
1134
 
1117
       getTypeName: function(id) {
1135
       getTypeName: function(id) {
1118
         let name = ''
1136
         let name = ''
1158
     },
1176
     },
1159
 
1177
 
1160
      GetOrderDetail: function(order_id) {
1178
      GetOrderDetail: function(order_id) {
1179
+       this.userList = []
1161
         const params = {
1180
         const params = {
1162
           'id': order_id
1181
           'id': order_id
1163
         }
1182
         }
1164
-      
1165
         getWarehouseOutUser(params).then(response => {
1183
         getWarehouseOutUser(params).then(response => {
1166
           if (response.data.state == 0) {
1184
           if (response.data.state == 0) {
1167
             this.$message.error(response.data.msg)
1185
             this.$message.error(response.data.msg)
1183
             // this.type_name = this.userList[0].type.type_name
1201
             // this.type_name = this.userList[0].type.type_name
1184
             // this.specification_name = this.userList[0].info.specification_name
1202
             // this.specification_name = this.userList[0].info.specification_name
1185
             console.log("详情数据区",this.userList)
1203
             console.log("详情数据区",this.userList)
1186
-            this.editdialogVisibleTwo = true
1204
+            this.editdialogVisibleThree = true
1187
           }
1205
           }
1188
         })
1206
         })
1189
       },
1207
       },

+ 9 - 6
src/xt_pages/stock/stockOutOrderEdit.vue Voir le fichier

32
       </div>
32
       </div>
33
 
33
 
34
 
34
 
35
-      <div class="cell clearfix">
35
+      <!-- <div class="cell clearfix">
36
         <label class="title"><span class="name">经销商</span> : </label>
36
         <label class="title"><span class="name">经销商</span> : </label>
37
         <el-select size="small" v-model="form.dealer" clearable placeholder="请选择经销商" @change="changeDealer" style="width: 200px;">
37
         <el-select size="small" v-model="form.dealer" clearable placeholder="请选择经销商" @change="changeDealer" style="width: 200px;">
38
           <el-option
38
           <el-option
42
             :value="option.id">
42
             :value="option.id">
43
           </el-option>
43
           </el-option>
44
         </el-select>
44
         </el-select>
45
-      </div>
45
+      </div> -->
46
 
46
 
47
 
47
 
48
-      <div class="cell clearfix">
48
+      <!-- <div class="cell clearfix">
49
         <label class="title"><span class="name">厂商</span> : </label>
49
         <label class="title"><span class="name">厂商</span> : </label>
50
         <el-select size="small" v-model="form.manufacturer" clearable placeholder="请选择厂商" @change="changeManufacturer" style="width: 200px;">
50
         <el-select size="small" v-model="form.manufacturer" clearable placeholder="请选择厂商" @change="changeManufacturer" style="width: 200px;">
51
           <el-option
51
           <el-option
55
             :value="option.id">
55
             :value="option.id">
56
           </el-option>
56
           </el-option>
57
         </el-select>
57
         </el-select>
58
-      </div>
58
+      </div> -->
59
 
59
 
60
       <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
60
       <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
61
         <el-table :data="recordInfo.recordData" :class="signAndWeighBoxPatients" style="width: 100%" border
61
         <el-table :data="recordInfo.recordData" :class="signAndWeighBoxPatients" style="width: 100%" border
471
                 return
471
                 return
472
               }
472
               }
473
             }
473
             }
474
-
474
+            for(let i=0;i<this.recordInfo.recordData.length;i++){
475
+               this.recordInfo.recordData[i].price = this.recordInfo.recordData[i].price.toString()
476
+            }
475
             const params = {
477
             const params = {
476
               'stockOut': this.recordInfo.recordData
478
               'stockOut': this.recordInfo.recordData
477
             }
479
             }
478
             
480
             
479
-           
481
+            console.log("stockout",params)
480
             editWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
482
             editWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type, this.form.manufacturer, this.form.dealer).then(response => {
481
               if (response.data.state == 0) {
483
               if (response.data.state == 0) {
482
                 this.$message.error(response.data.msg)
484
                 this.$message.error(response.data.msg)
579
             this.recordInfo.recordData[i].price = val.buy_price
581
             this.recordInfo.recordData[i].price = val.buy_price
580
             this.recordInfo.recordData[i].specification_name = val.specification_name
582
             this.recordInfo.recordData[i].specification_name = val.specification_name
581
             this.recordInfo.recordData[i].good_id = val.id
583
             this.recordInfo.recordData[i].good_id = val.id
584
+
582
          }
585
          }
583
       }
586
       }
584
     }
587
     }

+ 0 - 89
src/xt_pages/stock/stockQuery.vue Voir le fichier

64
       </div>
64
       </div>
65
 
65
 
66
 
66
 
67
-      <!-- <el-table
68
-        :row-style="{ color: '#303133' }"
69
-        :header-cell-style="{
70
-          backgroundColor: 'rgb(245, 247, 250)',
71
-          color: '#606266'
72
-        }"
73
-        :data="WarehouseInfo.warehouseInfoDate"
74
-        :class="signAndWeighBoxPatients"
75
-        border
76
-        v-loading="WarehouseInfo.loading"
77
-      >
78
-        <el-table-column label="商品编码" align="center">
79
-          <template slot-scope="scope">
80
-            {{ scope.row.good_code }}
81
-          </template>
82
-        </el-table-column>
83
-        <el-table-column label="耗材名称" align="center">
84
-          <template slot-scope="scope">
85
-            {{ scope.row.good_name }}
86
-          </template>
87
-        </el-table-column>
88
-        <el-table-column label="耗材类型" align="center">
89
-          <template slot-scope="scope">
90
-            <span>{{ scope.row.type.type_name }}</span>
91
-          </template>
92
-        </el-table-column>
93
-        <el-table-column label="规格型号" align="center">
94
-          <template slot-scope="scope">
95
-            <span>{{ scope.row.specification_name }}</span>
96
-          </template>
97
-        </el-table-column>
98
-        <el-table-column label="单位" align="center">
99
-          <template slot-scope="scope">
100
-            <span>{{getUnit(scope.row.good_unit)}}</span>
101
-          </template>
102
-        </el-table-column>
103
-        <el-table-column label="进货价" align="center">
104
-          <template slot-scope="scope">
105
-            <span v-if="scope.row.query_warehousing_info.length>0">{{scope.row.query_warehousing_info[0].price?scope.row.query_warehousing_info[0].price:""}}</span>
106
-          </template>
107
-        </el-table-column>
108
-        <el-table-column label="入库数量" align="center">
109
-          <template slot-scope="scope">
110
-            <span
111
-              @click="showStockInDetailDialog(scope.row.good_id)"
112
-              >{{ stockInCount(scope.row) }}</span
113
-            >
114
-          </template>
115
-        </el-table-column>
116
-        <el-table-column label="入库退货" align="center">
117
-          <template slot-scope="scope">
118
-            <span
119
-              @click="showSaleReturnDetailDialog(scope.row)"
120
-              >{{ salesReturnCount(scope.row) }}</span
121
-            >
122
-          </template>
123
-        </el-table-column>
124
-        <el-table-column label="实际入库" align="center">
125
-          <template slot-scope="scope">
126
-            {{ stockInCount(scope.row) - salesReturnCount(scope.row) }}
127
-          </template>
128
-        </el-table-column>
129
-        <el-table-column label="出库数量" align="center">
130
-          <template slot-scope="scope">
131
-            <span
132
-              @click="showStockOutDetailDialog(scope.row.good_id)"
133
-              >{{ stockOutCount(scope.row) }}</span
134
-            >
135
-          </template>
136
-        </el-table-column>
137
-        <el-table-column label="出库退库" align="center">
138
-          <template slot-scope="scope">
139
-            <span
140
-              @click="showCancelStockDetailDialog(scope.row)"
141
-              >{{ cancelStockCount(scope.row) }}</span
142
-            >
143
-          </template>
144
-        </el-table-column>
145
-        <el-table-column label="实际出库" align="center">
146
-          <template slot-scope="scope">
147
-            {{ stockOutCount(scope.row) - cancelStockCount(scope.row) }}
148
-          </template>
149
-        </el-table-column>
150
 
67
 
151
-        <el-table-column label="剩余库存" align="center">
152
-          <template slot-scope="scope">
153
-            <span>{{stockInCount(scope.row)  - stockOutCount(scope.row) }}</span>
154
-          </template>
155
-        </el-table-column>
156
-      </el-table> -->
157
        <el-table
68
        <el-table
158
         :row-style="{ color: '#303133' }"
69
         :row-style="{ color: '#303133' }"
159
         :header-cell-style="{
70
         :header-cell-style="{