Browse Source

Merge branch 'superman' of http://git.shengws.com/zhangbj/xt_vue into superman

xiaoming_global 6 years ago
parent
commit
a31031aec5

+ 8 - 8
src/api/stock.js View File

385
   })
385
   })
386
 }
386
 }
387
 
387
 
388
-export function EditWarehouse(params, warehousing_time, id,type) {
388
+export function EditWarehouse(params, warehousing_time, id,type,manufacturer_id) {
389
   return request({
389
   return request({
390
-    url: '/api/warehouse/edit?warehousing_time=' + warehousing_time + '&id=' + id+"&type="+type,
390
+    url: '/api/warehouse/edit?warehousing_time=' + warehousing_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id,
391
     method: 'post',
391
     method: 'post',
392
     data: params
392
     data: params
393
   })
393
   })
433
   })
433
   })
434
 }
434
 }
435
 
435
 
436
-export function editSalesReturnInfo(params, return_time, id,type) {
436
+export function editSalesReturnInfo(params, return_time, id,type,manufacturer_id) {
437
   return request({
437
   return request({
438
-    url: '/api/salesreturn/edit?return_time=' + return_time + '&id=' + id+"&type="+type,
438
+    url: '/api/salesreturn/edit?return_time=' + return_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id,
439
     method: 'post',
439
     method: 'post',
440
     data: params
440
     data: params
441
   })
441
   })
473
   })
473
   })
474
 }
474
 }
475
 
475
 
476
-export function editWarehouseoutInfo(params, warehouse_out_time, id,type) {
476
+export function editWarehouseoutInfo(params, warehouse_out_time, id,type,manufacturer_id) {
477
   return request({
477
   return request({
478
-    url: '/api/warehouseout/edit?warehouse_out_time=' + warehouse_out_time + '&id=' + id+"&type="+type,
478
+    url: '/api/warehouseout/edit?warehouse_out_time=' + warehouse_out_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id,
479
     method: 'post',
479
     method: 'post',
480
     data: params
480
     data: params
481
   })
481
   })
489
   })
489
   })
490
 }
490
 }
491
 
491
 
492
-export function editCancelStockInfo(params, cancel_stock_time, id,type) {
492
+export function editCancelStockInfo(params, cancel_stock_time, id,type,manufacturer_id) {
493
   return request({
493
   return request({
494
-    url: '/api/cancelstockinfo/edit?cancel_time=' + cancel_stock_time + '&id=' + id+"&type="+type,
494
+    url: '/api/cancelstockinfo/edit?cancel_time=' + cancel_stock_time + '&id=' + id+"&type="+type+"&manufacturer_id="+manufacturer_id,
495
     method: 'post',
495
     method: 'post',
496
     data: params
496
     data: params
497
   })
497
   })

+ 8 - 8
src/views/layout/components/Navbar.vue View File

13
       </div>
13
       </div>
14
       <div class="system-nav">
14
       <div class="system-nav">
15
         <div class="system-nav-menu">
15
         <div class="system-nav-menu">
16
-          <!--<a  href="http://jk.kuyicloud.com/">-->
17
-          <a href="http://test1.sgjyun.com/">
16
+          <a  href="http://jk.kuyicloud.com/">
17
+          <!-- <a href="http://test1.sgjyun.com/"> -->
18
             <span><i class="iconfont icon-pengyou"></i> SCRM</span>
18
             <span><i class="iconfont icon-pengyou"></i> SCRM</span>
19
           </a>
19
           </a>
20
         </div>
20
         </div>
21
         <div class="system-nav-menu">
21
         <div class="system-nav-menu">
22
-          <!--<a href="http://mall.kuyicloud.com/">-->
23
-          <a href="http://mall.test.sgjyun.com/">
22
+          <a href="http://mall.kuyicloud.com/">
23
+          <!-- <a href="http://mall.test.sgjyun.com/"> -->
24
             <span><i class="icon iconfont icon-service_fill"></i> 微商城</span>
24
             <span><i class="icon iconfont icon-service_fill"></i> 微商城</span>
25
           </a>
25
           </a>
26
         </div>
26
         </div>
30
           </a>
30
           </a>
31
         </div>
31
         </div>
32
         <div class="system-nav-menu">
32
         <div class="system-nav-menu">
33
-          <!--<a href="http://cdm.kuyicloud.com/">-->
34
-          <a href=" http://cdm.test.sgjyun.com/">
33
+          <a href="http://cdm.kuyicloud.com/">
34
+          <!-- <a href=" http://cdm.test.sgjyun.com/"> -->
35
             <span><i class="icon iconfont icon-manbing-xuanzhong"></i> 慢病管理</span>
35
             <span><i class="icon iconfont icon-manbing-xuanzhong"></i> 慢病管理</span>
36
           </a>
36
           </a>
37
         </div>
37
         </div>
38
 
38
 
39
         <div class="system-nav-menu">
39
         <div class="system-nav-menu">
40
-          <!--<a href="http://sso.kuyicloud.com/org/app/create">-->
41
-          <a href="http://testsso.sgjyun.com/org/app/create">
40
+          <a href="http://sso.kuyicloud.com/org/app/create">
41
+          <!-- <a href="http://testsso.sgjyun.com/org/app/create"> -->
42
             <span><i class="icon iconfont icon-suoyou"></i> 应用</span>
42
             <span><i class="icon iconfont icon-suoyou"></i> 应用</span>
43
           </a>
43
           </a>
44
         </div>
44
         </div>

+ 7 - 5
src/xt_pages/stock/cancelStockOrderAdd.vue View File

175
           manufacturer: '',
175
           manufacturer: '',
176
           dealer: ''
176
           dealer: ''
177
         },
177
         },
178
-
178
+        warehouseOutInfoList:[],
179
         manufacturer: [],
179
         manufacturer: [],
180
         dealer: [],
180
         dealer: [],
181
         goodType: []
181
         goodType: []
213
           } else {
213
           } else {
214
             var warehouseOutList = response.data.data.warehouseOutList
214
             var warehouseOutList = response.data.data.warehouseOutList
215
             var warehouseOutInfoList = response.data.data.warehouseOutInfoList
215
             var warehouseOutInfoList = response.data.data.warehouseOutInfoList
216
+            this.warehouseOutInfoList = response.data.data.warehouseOutInfoList
217
+
216
             for (let i = 0; i < warehouseOutList.length; i++) {
218
             for (let i = 0; i < warehouseOutList.length; i++) {
217
               if (warehouseOutList[i].Manufacturer.id > 0) {
219
               if (warehouseOutList[i].Manufacturer.id > 0) {
218
                 this.manufacturer.push(warehouseOutList[i].Manufacturer)
220
                 this.manufacturer.push(warehouseOutList[i].Manufacturer)
293
           return
295
           return
294
         } else {
296
         } else {
295
           this.$refs.dialog.show()
297
           this.$refs.dialog.show()
296
-          console.log(this.form.manufacturer)
297
-          for (let i = 0; i < this.propForm.goodInfo.length; i++) {
298
-            if (this.propForm.goodInfo[i].manufacturer == this.form.manufacturer) {
299
-              this.propForm.goodType.push(this.propForm.goodInfo[i].GoodsType)
298
+
299
+          for (let i = 0; i < this.warehouseOutInfoList.length; i++) {
300
+            if (this.warehouseOutInfoList[i].manufacturer == this.form.manufacturer) {
301
+              this.propForm.goodType.push(this.warehouseOutInfoList[i].GoodInfo.GoodsType)
300
             }
302
             }
301
           }
303
           }
302
           const obj3 = {}
304
           const obj3 = {}

+ 7 - 5
src/xt_pages/stock/cancelStockOrderEdit.vue View File

157
           manufacturer: '',
157
           manufacturer: '',
158
           dealer: ''
158
           dealer: ''
159
         },
159
         },
160
-
160
+        warehouseOutInfoList:[],
161
         cancelStock: {},
161
         cancelStock: {},
162
         manufacturer: [],
162
         manufacturer: [],
163
         dealer: [],
163
         dealer: [],
197
             return false
197
             return false
198
           } else {
198
           } else {
199
             var warehouseOutInfoList = response.data.data.warehouseOutInfoList
199
             var warehouseOutInfoList = response.data.data.warehouseOutInfoList
200
+            this.warehouseOutInfoList = response.data.data.warehouseOutInfoList
201
+
200
             for (let i = 0; i < warehouseOutInfoList.length; i++) {
202
             for (let i = 0; i < warehouseOutInfoList.length; i++) {
201
               this.propForm.goodInfo.push(warehouseOutInfoList[i].GoodInfo)
203
               this.propForm.goodInfo.push(warehouseOutInfoList[i].GoodInfo)
202
               this.propForm.goodType.push(warehouseOutInfoList[i].GoodInfo.GoodsType)
204
               this.propForm.goodType.push(warehouseOutInfoList[i].GoodInfo.GoodsType)
268
         }
270
         }
269
       }, showDialog(index, row) {
271
       }, showDialog(index, row) {
270
         this.currentIndex = index
272
         this.currentIndex = index
271
-        for (let i = 0; i < this.propForm.goodInfo.length; i++) {
272
-          if (this.propForm.goodInfo[i].manufacturer == this.form.manufacturer) {
273
-            this.propForm.goodType.push(this.propForm.goodInfo[i].GoodsType)
273
+        for (let i = 0; i < this.warehouseOutInfoList.length; i++) {
274
+          if (this.warehouseOutInfoList[i].manufacturer == this.form.manufacturer) {
275
+            this.propForm.goodType.push(this.warehouseOutInfoList[i].GoodInfo.GoodsType)
274
           }
276
           }
275
         }
277
         }
276
         const obj3 = {}
278
         const obj3 = {}
299
             const params = {
301
             const params = {
300
               'cancelStock': this.recordInfo.recordData
302
               'cancelStock': this.recordInfo.recordData
301
             }
303
             }
302
-            editCancelStockInfo(params, this.return_time, this.$route.query.id, this.$route.query.type).then(response => {
304
+            editCancelStockInfo(params, this.return_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer).then(response => {
303
               if (response.data.state == 0) {
305
               if (response.data.state == 0) {
304
                 this.$message.error(response.data.msg)
306
                 this.$message.error(response.data.msg)
305
                 return false
307
                 return false

+ 1 - 1
src/xt_pages/stock/detail/salesReturnDetail.vue View File

61
             </template>
61
             </template>
62
           </el-table-column>
62
           </el-table-column>
63
 
63
 
64
-          <el-table-column label="商品类型" align="center">
64
+          <el-table-column label="商品" align="center">
65
             <template slot-scope="scope">
65
             <template slot-scope="scope">
66
               {{specificationName(scope.row.good_id)}}
66
               {{specificationName(scope.row.good_id)}}
67
             </template>
67
             </template>

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

58
             </template>
58
             </template>
59
           </el-table-column>
59
           </el-table-column>
60
 
60
 
61
-          <el-table-column label="商品类型" align="center">
61
+          <el-table-column label="商品" align="center">
62
             <template slot-scope="scope">
62
             <template slot-scope="scope">
63
               {{specificationName(scope.row.good_id)}}
63
               {{specificationName(scope.row.good_id)}}
64
             </template>
64
             </template>

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

62
             </template>
62
             </template>
63
           </el-table-column>
63
           </el-table-column>
64
 
64
 
65
-          <el-table-column label="商品类型" align="center">
65
+          <el-table-column label="商品" align="center">
66
             <template slot-scope="scope">
66
             <template slot-scope="scope">
67
               {{specificationName(scope.row.good_id)}}
67
               {{specificationName(scope.row.good_id)}}
68
             </template>
68
             </template>

+ 6 - 5
src/xt_pages/stock/salesReturnEdit.vue View File

163
           manufacturer: '',
163
           manufacturer: '',
164
           dealer: ''
164
           dealer: ''
165
         },
165
         },
166
-
166
+        warehouseInfoList:[],
167
         salesReturn: {},
167
         salesReturn: {},
168
         manufacturer: [],
168
         manufacturer: [],
169
         dealer: [],
169
         dealer: [],
204
             return false
204
             return false
205
           } else {
205
           } else {
206
             var warehouseInfoList = response.data.data.warehouseInfoList
206
             var warehouseInfoList = response.data.data.warehouseInfoList
207
+            this.warehouseInfoList = response.data.data.warehouseInfoList
207
             for (let i = 0; i < warehouseInfoList.length; i++) {
208
             for (let i = 0; i < warehouseInfoList.length; i++) {
208
               this.propForm.goodInfo.push(warehouseInfoList[i].GoodInfo)
209
               this.propForm.goodInfo.push(warehouseInfoList[i].GoodInfo)
209
               this.propForm.goodType.push(warehouseInfoList[i].GoodInfo.GoodsType)
210
               this.propForm.goodType.push(warehouseInfoList[i].GoodInfo.GoodsType)
278
       }, showDialog(index, row) {
279
       }, showDialog(index, row) {
279
         this.currentIndex = index
280
         this.currentIndex = index
280
         this.$refs.dialog.show()
281
         this.$refs.dialog.show()
281
-        for (let i = 0; i < this.propForm.goodInfo.length; i++) {
282
-          if (this.propForm.goodInfo[i].manufacturer == this.form.manufacturer) {
283
-            this.propForm.goodType.push(this.propForm.goodInfo[i].GoodsType)
282
+        for (let i = 0; i < this.warehouseInfoList.length; i++) {
283
+          if (this.warehouseInfoList[i].manufacturer == this.form.manufacturer) {
284
+            this.propForm.goodType.push(this.warehouseInfoList[i].GoodInfo.GoodsType)
284
           }
285
           }
285
         }
286
         }
286
         const obj3 = {}
287
         const obj3 = {}
308
             const params = {
309
             const params = {
309
               'salesReturn': this.recordInfo.recordData
310
               'salesReturn': this.recordInfo.recordData
310
             }
311
             }
311
-            editSalesReturnInfo(params, this.return_time, this.$route.query.id, this.$route.query.type).then(response => {
312
+            editSalesReturnInfo(params, this.return_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer).then(response => {
312
               if (response.data.state == 0) {
313
               if (response.data.state == 0) {
313
                 this.$message.error(response.data.msg)
314
                 this.$message.error(response.data.msg)
314
                 return false
315
                 return false

+ 7 - 4
src/xt_pages/stock/salesReturnOrderAdd.vue View File

184
           manufacturer: '',
184
           manufacturer: '',
185
           dealer: ''
185
           dealer: ''
186
         },
186
         },
187
-
187
+        warehouseInfoList:[],
188
         manufacturer: [],
188
         manufacturer: [],
189
         dealer: [],
189
         dealer: [],
190
         goodType: []
190
         goodType: []
224
           } else {
224
           } else {
225
             var warehouseList = response.data.data.warehouseList
225
             var warehouseList = response.data.data.warehouseList
226
             var warehouseInfoList = response.data.data.warehouseInfoList
226
             var warehouseInfoList = response.data.data.warehouseInfoList
227
+            this.warehouseInfoList =  response.data.data.warehouseInfoList
228
+
227
             for (let i = 0; i < warehouseList.length; i++) {
229
             for (let i = 0; i < warehouseList.length; i++) {
228
               if (warehouseList[i].Manufacturer.id > 0) {
230
               if (warehouseList[i].Manufacturer.id > 0) {
229
                 this.manufacturer.push(warehouseList[i].Manufacturer)
231
                 this.manufacturer.push(warehouseList[i].Manufacturer)
254
               obj4[next.id] ? '' : obj4[next.id] = true && cur.push(next)
256
               obj4[next.id] ? '' : obj4[next.id] = true && cur.push(next)
255
               return cur
257
               return cur
256
             }, [])
258
             }, [])
259
+
257
           }
260
           }
258
         })
261
         })
259
       }, typeName: function(good_type_id) {
262
       }, typeName: function(good_type_id) {
306
         } else {
309
         } else {
307
           this.$refs.dialog.show()
310
           this.$refs.dialog.show()
308
 
311
 
309
-          for (let i = 0; i < this.propForm.goodInfo.length; i++) {
310
-            if (this.propForm.goodInfo[i].manufacturer == this.form.manufacturer) {
311
-              this.propForm.goodType.push(this.propForm.goodInfo[i].GoodsType)
312
+          for (let i = 0; i < this.warehouseInfoList.length; i++) {
313
+            if (this.warehouseInfoList[i].manufacturer == this.form.manufacturer) {
314
+              this.propForm.goodType.push(this.warehouseInfoList[i].GoodInfo.GoodsType)
312
             }
315
             }
313
           }
316
           }
314
           const obj3 = {}
317
           const obj3 = {}

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

406
             const params = {
406
             const params = {
407
               'stockIn': this.recordInfo.recordData
407
               'stockIn': this.recordInfo.recordData
408
             }
408
             }
409
-            EditWarehouse(params, this.warehousing_time, this.$route.query.id, this.$route.query.type).then(response => {
409
+            EditWarehouse(params, this.warehousing_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer).then(response => {
410
               if (response.data.state == 0) {
410
               if (response.data.state == 0) {
411
                 this.$message.error(response.data.msg)
411
                 this.$message.error(response.data.msg)
412
                 return false
412
                 return false

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

203
           manufacturer: '',
203
           manufacturer: '',
204
           dealer: ''
204
           dealer: ''
205
         },
205
         },
206
-
206
+        warehouseInfoList:[],
207
         manufacturer: [],
207
         manufacturer: [],
208
         dealer: [],
208
         dealer: [],
209
         goodType: []
209
         goodType: []
245
           } else {
245
           } else {
246
             var warehouseList = response.data.data.warehouseList
246
             var warehouseList = response.data.data.warehouseList
247
             var warehouseInfoList = response.data.data.warehouseInfoList
247
             var warehouseInfoList = response.data.data.warehouseInfoList
248
+            this.warehouseInfoList = response.data.data.warehouseInfoList
248
             for (let i = 0; i < warehouseList.length; i++) {
249
             for (let i = 0; i < warehouseList.length; i++) {
249
               if (warehouseList[i].Manufacturer.id > 0) {
250
               if (warehouseList[i].Manufacturer.id > 0) {
250
                 this.manufacturer.push(warehouseList[i].Manufacturer)
251
                 this.manufacturer.push(warehouseList[i].Manufacturer)
329
         } else {
330
         } else {
330
           this.$refs.dialog.show()
331
           this.$refs.dialog.show()
331
 
332
 
332
-          console.log(this.form.manufacturer)
333
-          for (let i = 0; i < this.propForm.goodInfo.length; i++) {
334
-            if (this.propForm.goodInfo[i].manufacturer == this.form.manufacturer) {
335
-              this.propForm.goodType.push(this.propForm.goodInfo[i].GoodsType)
333
+          for (let i = 0; i < this.warehouseInfoList.length; i++) {
334
+            if (this.warehouseInfoList[i].manufacturer == this.form.manufacturer) {
335
+              this.propForm.goodType.push(this.warehouseInfoList[i].GoodInfo.GoodsType)
336
             }
336
             }
337
           }
337
           }
338
           const obj3 = {}
338
           const obj3 = {}

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

184
           manufacturer: '',
184
           manufacturer: '',
185
           dealer: ''
185
           dealer: ''
186
         },
186
         },
187
-
187
+        warehouseInfoList:[],
188
         warehouseOut: {},
188
         warehouseOut: {},
189
         manufacturer: [],
189
         manufacturer: [],
190
         dealer: [],
190
         dealer: [],
226
             return false
226
             return false
227
           } else {
227
           } else {
228
             var warehouseInfoList = response.data.data.warehouseInfoList
228
             var warehouseInfoList = response.data.data.warehouseInfoList
229
+            this.warehouseInfoList = response.data.data.warehouseInfoList
230
+
229
             for (let i = 0; i < warehouseInfoList.length; i++) {
231
             for (let i = 0; i < warehouseInfoList.length; i++) {
230
               this.propForm.goodInfo.push(warehouseInfoList[i].GoodInfo)
232
               this.propForm.goodInfo.push(warehouseInfoList[i].GoodInfo)
231
               this.propForm.goodType.push(warehouseInfoList[i].GoodInfo.GoodsType)
233
               this.propForm.goodType.push(warehouseInfoList[i].GoodInfo.GoodsType)
300
         }
302
         }
301
       }, showDialog(index, row) {
303
       }, showDialog(index, row) {
302
         this.currentIndex = index
304
         this.currentIndex = index
303
-
304
-        for (let i = 0; i < this.propForm.goodInfo.length; i++) {
305
-          if (this.propForm.goodInfo[i].manufacturer == this.form.manufacturer) {
306
-            this.propForm.goodType.push(this.propForm.goodInfo[i].GoodsType)
305
+        for (let i = 0; i < this.warehouseInfoList.length; i++) {
306
+          if (this.warehouseInfoList[i].manufacturer == this.form.manufacturer) {
307
+            this.propForm.goodType.push(this.warehouseInfoList[i].GoodInfo.GoodsType)
307
           }
308
           }
308
         }
309
         }
309
         const obj3 = {}
310
         const obj3 = {}
332
             const params = {
333
             const params = {
333
               'stockOut': this.recordInfo.recordData
334
               'stockOut': this.recordInfo.recordData
334
             }
335
             }
335
-            editWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type).then(response => {
336
+            editWarehouseoutInfo(params, this.warehouse_out_time, this.$route.query.id, this.$route.query.type,this.form.manufacturer).then(response => {
336
               if (response.data.state == 0) {
337
               if (response.data.state == 0) {
337
                 this.$message.error(response.data.msg)
338
                 this.$message.error(response.data.msg)
338
                 return false
339
                 return false
361
             }
362
             }
362
             this.warehouseOut = response.data.data.info
363
             this.warehouseOut = response.data.data.info
363
             this.warehouse_out_time = this.getTime(this.warehouseOut.warehouse_out_time, '{y}-{m}-{d}')
364
             this.warehouse_out_time = this.getTime(this.warehouseOut.warehouse_out_time, '{y}-{m}-{d}')
365
+            this.form.manufacturer = this.warehouseOut.manufacturer
366
+
364
           }
367
           }
365
 
368
 
366
           if (this.recordInfo.recordData.length == 0) {
369
           if (this.recordInfo.recordData.length == 0) {