Ver código fonte

1.新增修改收货地址功能

2.新增货权转移地址修改判断
dw 1 semana atrás
pai
commit
9313a6bae6
1 arquivos alterados com 66 adições e 12 exclusões
  1. 66
    12
      src/view/ware/storechange.vue

+ 66
- 12
src/view/ware/storechange.vue Ver arquivo

42
 						<el-input v-model="query.model" size="small" style="width:120px;margin-left: -8px">
42
 						<el-input v-model="query.model" size="small" style="width:120px;margin-left: -8px">
43
 						</el-input>
43
 						</el-input>
44
 					</el-form-item>
44
 					</el-form-item>
45
-					
45
+
46
 					<el-form-item label="订单号" style="margin-left: -15px">
46
 					<el-form-item label="订单号" style="margin-left: -15px">
47
 						<el-input v-model="query.ordNo" size="small" style="width:120px;margin-left: -8px" @input="getOrdList">
47
 						<el-input v-model="query.ordNo" size="small" style="width:120px;margin-left: -8px" @input="getOrdList">
48
 						</el-input>
48
 						</el-input>
61
 						<el-button size="medium" type="danger" @click="handleInBack">取消入库</el-button> -->
61
 						<el-button size="medium" type="danger" @click="handleInBack">取消入库</el-button> -->
62
 						<el-button type="primary" size="small"  @click="showDistribution">配货</el-button>
62
 						<el-button type="primary" size="small"  @click="showDistribution">配货</el-button>
63
             			<el-button type="primary" size="small"  @click="showOut">出库</el-button>
63
             			<el-button type="primary" size="small"  @click="showOut">出库</el-button>
64
-            			
64
+
65
 						<el-button type="primary" size="small"  @click="resetButton" >重置</el-button>
65
 						<el-button type="primary" size="small"  @click="resetButton" >重置</el-button>
66
 						<el-button type="primary" size="small"  @click="handleRemark1" >修改垛位备注</el-button>
66
 						<el-button type="primary" size="small"  @click="handleRemark1" >修改垛位备注</el-button>
67
             			<el-button type="success" size="small"  @click="handleExport" >导出记录</el-button>
67
             			<el-button type="success" size="small"  @click="handleExport" >导出记录</el-button>
68
-						
68
+
69
 					</el-form-item>
69
 					</el-form-item>
70
 					<el-form-item label="" style="margin-top: 0px;margin-left: 10px">
70
 					<el-form-item label="" style="margin-top: 0px;margin-left: 10px">
71
 						<el-dropdown placement="bottom" trigger="click" @command="batchOperate">
71
 						<el-dropdown placement="bottom" trigger="click" @command="batchOperate">
73
 							<el-dropdown-menu slot="dropdown">
73
 							<el-dropdown-menu slot="dropdown">
74
 								<el-dropdown-item command="handleInBack" style="background-color: #f5f5f5;">取消入库</el-dropdown-item>
74
 								<el-dropdown-item command="handleInBack" style="background-color: #f5f5f5;">取消入库</el-dropdown-item>
75
 								<el-dropdown-item command="handleChangeCustomer" style="background-color: #f5f5f5;">修改客户</el-dropdown-item>
75
 								<el-dropdown-item command="handleChangeCustomer" style="background-color: #f5f5f5;">修改客户</el-dropdown-item>
76
+                <el-dropdown-item command="updateAddress" style="background-color: #f5f5f5;">修改收货地址</el-dropdown-item>
76
 							</el-dropdown-menu>
77
 							</el-dropdown-menu>
77
 						</el-dropdown>
78
 						</el-dropdown>
78
-						
79
+
79
 					</el-form-item>
80
 					</el-form-item>
80
 						<!-- <el-button type="primary" @click="showOut">出库</el-button> -->
81
 						<!-- <el-button type="primary" @click="showOut">出库</el-button> -->
81
 					<!-- 	<el-form-item label=" ">
82
 					<!-- 	<el-form-item label=" ">
90
 						</el-input>
91
 						</el-input>
91
 					</el-form-item>
92
 					</el-form-item>
92
 				</el-row>
93
 				</el-row>
93
-				
94
+
94
 			</el-form>
95
 			</el-form>
95
 		</div>
96
 		</div>
96
 		<div class="tabledata-grid">
97
 		<div class="tabledata-grid">
211
 						</el-option>
212
 						</el-option>
212
 					</el-select>
213
 					</el-select>
213
 				</el-form-item>
214
 				</el-form-item>
214
-				
215
+
215
 				<el-form-item label=" ">
216
 				<el-form-item label=" ">
216
 					<el-button type="success" @click="handleChangeCUSTSave">保存</el-button>
217
 					<el-button type="success" @click="handleChangeCUSTSave">保存</el-button>
217
 					<el-button type="danger" @click="handleChangeCUSTCancelSave">取消</el-button>
218
 					<el-button type="danger" @click="handleChangeCUSTCancelSave">取消</el-button>
254
 			</el-table>
255
 			</el-table>
255
 
256
 
256
 		</el-dialog>
257
 		</el-dialog>
257
-		
258
+    <el-dialog title="修改收货地址" :visible.sync="outDialogVisible" width="500px">
259
+      <el-form>
260
+        <el-form-item label="新收货地址">
261
+          <el-input v-model="address">
262
+          </el-input>
263
+        </el-form-item>
264
+        <el-form-item label=" ">
265
+          <el-button type="success" @click="handleUpAddress">保存</el-button>
266
+          <el-button type="danger" @click="()=>{
267
+            outDialogVisible = false
268
+            address = ''
269
+          }">取消</el-button>
270
+        </el-form-item>
271
+      </el-form>
272
+    </el-dialog>
273
+
258
 	</div>
274
 	</div>
259
 </template>
275
 </template>
260
 
276
 
352
 				newRemark:'',
368
 				newRemark:'',
353
 				changeCUSTDialogVisible: false,
369
 				changeCUSTDialogVisible: false,
354
 				newCustomername:'',
370
 				newCustomername:'',
355
-				newFKCustomername:''
371
+				newFKCustomername:'',
372
+        outDialogVisible: false,
373
+        address: '',
356
 			};
374
 			};
357
 		},
375
 		},
358
 		mounted() {
376
 		mounted() {
376
 					case "handleChangeCustomer":
394
 					case "handleChangeCustomer":
377
 						this.handleChangeCustomer();
395
 						this.handleChangeCustomer();
378
 						break;
396
 						break;
397
+          case "updateAddress":
398
+            this.upAddress();
399
+            break;
379
 				}
400
 				}
380
 			},
401
 			},
381
 
402
 
386
 				this.query.customerName = customer.name
407
 				this.query.customerName = customer.name
387
 			},
408
 			},
388
 
409
 
389
-			
410
+
390
 			showFKcustmer() {
411
 			showFKcustmer() {
391
 				this.$refs.PopupFKcustmer.show()
412
 				this.$refs.PopupFKcustmer.show()
392
 			},
413
 			},
465
 						});
486
 						});
466
 					}
487
 					}
467
 				}).catch(() => {});
488
 				}).catch(() => {});
468
-				
489
+
469
 			},
490
 			},
470
 			resetButton(){      //查询条件重置
491
 			resetButton(){      //查询条件重置
471
 				this.query.wareName = '',
492
 				this.query.wareName = '',
490
 				this.$refs.PopupDistribution.show()
511
 				this.$refs.PopupDistribution.show()
491
 
512
 
492
 			},
513
 			},
514
+      upAddress(){
515
+        this.address = ''
516
+				this.outDialogVisible= true
517
+			},
518
+      handleUpAddress(){
519
+        if (this.selectRows.length < 1) {
520
+         return  this.$message({
521
+            type: 'warning',
522
+            message: '选择一条数据!',
523
+          });
524
+        }
525
+
526
+
527
+        axios.post('WareStore/modifyReceiveAddress.do', {
528
+          id: this.selectRows.map(item => item.id).join(','),
529
+          inId: this.selectRows.map(item => item.inId).join(','),
530
+          receiveAddressNew: this.address
531
+        }).then(response => {
532
+          if (response.data.code == 0) {
533
+            this.$message({
534
+              type: 'success',
535
+              message: '修改成功',
536
+            });
537
+            this.getTableData()
538
+            this.outDialogVisible = false
539
+          } else {
540
+            this.$message({
541
+              type: 'error',
542
+              message: '操作失败;' + response.data.msg,
543
+            });
544
+          }
545
+        });
546
+      },
493
 			handleChangeCustomer(){
547
 			handleChangeCustomer(){
494
 				this.newCustomername = '',
548
 				this.newCustomername = '',
495
 				this.newFKCustomername='',
549
 				this.newFKCustomername='',
597
 					this.newCustomer.name = "",
651
 					this.newCustomer.name = "",
598
 					this.newCustomer.id = "",
652
 					this.newCustomer.id = "",
599
 					this.customerDialogVisible = true
653
 					this.customerDialogVisible = true
600
-					
654
+
601
 				} else {
655
 				} else {
602
 					this.$message({
656
 					this.$message({
603
 						type: 'error',
657
 						type: 'error',
906
 					}
960
 					}
907
 
961
 
908
 				});
962
 				});
909
-				
963
+
910
 			},
964
 			},
911
 			exportExcel(imptData) {
965
 			exportExcel(imptData) {
912
 				// alert(JSON.stringify(imptData))
966
 				// alert(JSON.stringify(imptData))

Carregando…
Cancelar
Salvar