소스 검색

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

xiaoming_global 6 년 전
부모
커밋
a31031aec5

+ 8 - 8
src/api/stock.js 파일 보기

@@ -385,9 +385,9 @@ export function DeleteWarehouseInfoItem(params) {
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 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 391
     method: 'post',
392 392
     data: params
393 393
   })
@@ -433,9 +433,9 @@ export function deleteSalesReturnInfo(params) {
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 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 439
     method: 'post',
440 440
     data: params
441 441
   })
@@ -473,9 +473,9 @@ export function getWarehouseOutInfo(params) {
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 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 479
     method: 'post',
480 480
     data: params
481 481
   })
@@ -489,9 +489,9 @@ export function getCancelStockList(params) {
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 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 495
     method: 'post',
496 496
     data: params
497 497
   })

+ 8 - 8
src/views/layout/components/Navbar.vue 파일 보기

@@ -13,14 +13,14 @@
13 13
       </div>
14 14
       <div class="system-nav">
15 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 18
             <span><i class="iconfont icon-pengyou"></i> SCRM</span>
19 19
           </a>
20 20
         </div>
21 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 24
             <span><i class="icon iconfont icon-service_fill"></i> 微商城</span>
25 25
           </a>
26 26
         </div>
@@ -30,15 +30,15 @@
30 30
           </a>
31 31
         </div>
32 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 35
             <span><i class="icon iconfont icon-manbing-xuanzhong"></i> 慢病管理</span>
36 36
           </a>
37 37
         </div>
38 38
 
39 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 42
             <span><i class="icon iconfont icon-suoyou"></i> 应用</span>
43 43
           </a>
44 44
         </div>

+ 7 - 5
src/xt_pages/stock/cancelStockOrderAdd.vue 파일 보기

@@ -175,7 +175,7 @@
175 175
           manufacturer: '',
176 176
           dealer: ''
177 177
         },
178
-
178
+        warehouseOutInfoList:[],
179 179
         manufacturer: [],
180 180
         dealer: [],
181 181
         goodType: []
@@ -213,6 +213,8 @@
213 213
           } else {
214 214
             var warehouseOutList = response.data.data.warehouseOutList
215 215
             var warehouseOutInfoList = response.data.data.warehouseOutInfoList
216
+            this.warehouseOutInfoList = response.data.data.warehouseOutInfoList
217
+
216 218
             for (let i = 0; i < warehouseOutList.length; i++) {
217 219
               if (warehouseOutList[i].Manufacturer.id > 0) {
218 220
                 this.manufacturer.push(warehouseOutList[i].Manufacturer)
@@ -293,10 +295,10 @@
293 295
           return
294 296
         } else {
295 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 304
           const obj3 = {}

+ 7 - 5
src/xt_pages/stock/cancelStockOrderEdit.vue 파일 보기

@@ -157,7 +157,7 @@
157 157
           manufacturer: '',
158 158
           dealer: ''
159 159
         },
160
-
160
+        warehouseOutInfoList:[],
161 161
         cancelStock: {},
162 162
         manufacturer: [],
163 163
         dealer: [],
@@ -197,6 +197,8 @@
197 197
             return false
198 198
           } else {
199 199
             var warehouseOutInfoList = response.data.data.warehouseOutInfoList
200
+            this.warehouseOutInfoList = response.data.data.warehouseOutInfoList
201
+
200 202
             for (let i = 0; i < warehouseOutInfoList.length; i++) {
201 203
               this.propForm.goodInfo.push(warehouseOutInfoList[i].GoodInfo)
202 204
               this.propForm.goodType.push(warehouseOutInfoList[i].GoodInfo.GoodsType)
@@ -268,9 +270,9 @@
268 270
         }
269 271
       }, showDialog(index, row) {
270 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 278
         const obj3 = {}
@@ -299,7 +301,7 @@
299 301
             const params = {
300 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 305
               if (response.data.state == 0) {
304 306
                 this.$message.error(response.data.msg)
305 307
                 return false

+ 1 - 1
src/xt_pages/stock/detail/salesReturnDetail.vue 파일 보기

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

+ 1 - 1
src/xt_pages/stock/detail/stockInDetail.vue 파일 보기

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

+ 1 - 1
src/xt_pages/stock/detail/stockOutDetail.vue 파일 보기

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

+ 6 - 5
src/xt_pages/stock/salesReturnEdit.vue 파일 보기

@@ -163,7 +163,7 @@
163 163
           manufacturer: '',
164 164
           dealer: ''
165 165
         },
166
-
166
+        warehouseInfoList:[],
167 167
         salesReturn: {},
168 168
         manufacturer: [],
169 169
         dealer: [],
@@ -204,6 +204,7 @@
204 204
             return false
205 205
           } else {
206 206
             var warehouseInfoList = response.data.data.warehouseInfoList
207
+            this.warehouseInfoList = response.data.data.warehouseInfoList
207 208
             for (let i = 0; i < warehouseInfoList.length; i++) {
208 209
               this.propForm.goodInfo.push(warehouseInfoList[i].GoodInfo)
209 210
               this.propForm.goodType.push(warehouseInfoList[i].GoodInfo.GoodsType)
@@ -278,9 +279,9 @@
278 279
       }, showDialog(index, row) {
279 280
         this.currentIndex = index
280 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 287
         const obj3 = {}
@@ -308,7 +309,7 @@
308 309
             const params = {
309 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 313
               if (response.data.state == 0) {
313 314
                 this.$message.error(response.data.msg)
314 315
                 return false

+ 7 - 4
src/xt_pages/stock/salesReturnOrderAdd.vue 파일 보기

@@ -184,7 +184,7 @@
184 184
           manufacturer: '',
185 185
           dealer: ''
186 186
         },
187
-
187
+        warehouseInfoList:[],
188 188
         manufacturer: [],
189 189
         dealer: [],
190 190
         goodType: []
@@ -224,6 +224,8 @@
224 224
           } else {
225 225
             var warehouseList = response.data.data.warehouseList
226 226
             var warehouseInfoList = response.data.data.warehouseInfoList
227
+            this.warehouseInfoList =  response.data.data.warehouseInfoList
228
+
227 229
             for (let i = 0; i < warehouseList.length; i++) {
228 230
               if (warehouseList[i].Manufacturer.id > 0) {
229 231
                 this.manufacturer.push(warehouseList[i].Manufacturer)
@@ -254,6 +256,7 @@
254 256
               obj4[next.id] ? '' : obj4[next.id] = true && cur.push(next)
255 257
               return cur
256 258
             }, [])
259
+
257 260
           }
258 261
         })
259 262
       }, typeName: function(good_type_id) {
@@ -306,9 +309,9 @@
306 309
         } else {
307 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 317
           const obj3 = {}

+ 1 - 1
src/xt_pages/stock/stockInOrderEdit.vue 파일 보기

@@ -406,7 +406,7 @@ export default {
406 406
             const params = {
407 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 410
               if (response.data.state == 0) {
411 411
                 this.$message.error(response.data.msg)
412 412
                 return false

+ 5 - 5
src/xt_pages/stock/stockOutOrderAdd.vue 파일 보기

@@ -203,7 +203,7 @@
203 203
           manufacturer: '',
204 204
           dealer: ''
205 205
         },
206
-
206
+        warehouseInfoList:[],
207 207
         manufacturer: [],
208 208
         dealer: [],
209 209
         goodType: []
@@ -245,6 +245,7 @@
245 245
           } else {
246 246
             var warehouseList = response.data.data.warehouseList
247 247
             var warehouseInfoList = response.data.data.warehouseInfoList
248
+            this.warehouseInfoList = response.data.data.warehouseInfoList
248 249
             for (let i = 0; i < warehouseList.length; i++) {
249 250
               if (warehouseList[i].Manufacturer.id > 0) {
250 251
                 this.manufacturer.push(warehouseList[i].Manufacturer)
@@ -329,10 +330,9 @@
329 330
         } else {
330 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 338
           const obj3 = {}

+ 9 - 6
src/xt_pages/stock/stockOutOrderEdit.vue 파일 보기

@@ -184,7 +184,7 @@
184 184
           manufacturer: '',
185 185
           dealer: ''
186 186
         },
187
-
187
+        warehouseInfoList:[],
188 188
         warehouseOut: {},
189 189
         manufacturer: [],
190 190
         dealer: [],
@@ -226,6 +226,8 @@
226 226
             return false
227 227
           } else {
228 228
             var warehouseInfoList = response.data.data.warehouseInfoList
229
+            this.warehouseInfoList = response.data.data.warehouseInfoList
230
+
229 231
             for (let i = 0; i < warehouseInfoList.length; i++) {
230 232
               this.propForm.goodInfo.push(warehouseInfoList[i].GoodInfo)
231 233
               this.propForm.goodType.push(warehouseInfoList[i].GoodInfo.GoodsType)
@@ -300,10 +302,9 @@
300 302
         }
301 303
       }, showDialog(index, row) {
302 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 310
         const obj3 = {}
@@ -332,7 +333,7 @@
332 333
             const params = {
333 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 337
               if (response.data.state == 0) {
337 338
                 this.$message.error(response.data.msg)
338 339
                 return false
@@ -361,6 +362,8 @@
361 362
             }
362 363
             this.warehouseOut = response.data.data.info
363 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 369
           if (this.recordInfo.recordData.length == 0) {