ソースを参照

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

2.新增货权转移地址修改判断
dw 1週間前
コミット
9313a6bae6
1個のファイルの変更66行の追加12行の削除
  1. 66
    12
      src/view/ware/storechange.vue

+ 66
- 12
src/view/ware/storechange.vue ファイルの表示

@@ -42,7 +42,7 @@
42 42
 						<el-input v-model="query.model" size="small" style="width:120px;margin-left: -8px">
43 43
 						</el-input>
44 44
 					</el-form-item>
45
-					
45
+
46 46
 					<el-form-item label="订单号" style="margin-left: -15px">
47 47
 						<el-input v-model="query.ordNo" size="small" style="width:120px;margin-left: -8px" @input="getOrdList">
48 48
 						</el-input>
@@ -61,11 +61,11 @@
61 61
 						<el-button size="medium" type="danger" @click="handleInBack">取消入库</el-button> -->
62 62
 						<el-button type="primary" size="small"  @click="showDistribution">配货</el-button>
63 63
             			<el-button type="primary" size="small"  @click="showOut">出库</el-button>
64
-            			
64
+
65 65
 						<el-button type="primary" size="small"  @click="resetButton" >重置</el-button>
66 66
 						<el-button type="primary" size="small"  @click="handleRemark1" >修改垛位备注</el-button>
67 67
             			<el-button type="success" size="small"  @click="handleExport" >导出记录</el-button>
68
-						
68
+
69 69
 					</el-form-item>
70 70
 					<el-form-item label="" style="margin-top: 0px;margin-left: 10px">
71 71
 						<el-dropdown placement="bottom" trigger="click" @command="batchOperate">
@@ -73,9 +73,10 @@
73 73
 							<el-dropdown-menu slot="dropdown">
74 74
 								<el-dropdown-item command="handleInBack" style="background-color: #f5f5f5;">取消入库</el-dropdown-item>
75 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 77
 							</el-dropdown-menu>
77 78
 						</el-dropdown>
78
-						
79
+
79 80
 					</el-form-item>
80 81
 						<!-- <el-button type="primary" @click="showOut">出库</el-button> -->
81 82
 					<!-- 	<el-form-item label=" ">
@@ -90,7 +91,7 @@
90 91
 						</el-input>
91 92
 					</el-form-item>
92 93
 				</el-row>
93
-				
94
+
94 95
 			</el-form>
95 96
 		</div>
96 97
 		<div class="tabledata-grid">
@@ -211,7 +212,7 @@
211 212
 						</el-option>
212 213
 					</el-select>
213 214
 				</el-form-item>
214
-				
215
+
215 216
 				<el-form-item label=" ">
216 217
 					<el-button type="success" @click="handleChangeCUSTSave">保存</el-button>
217 218
 					<el-button type="danger" @click="handleChangeCUSTCancelSave">取消</el-button>
@@ -254,7 +255,22 @@
254 255
 			</el-table>
255 256
 
256 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 274
 	</div>
259 275
 </template>
260 276
 
@@ -352,7 +368,9 @@
352 368
 				newRemark:'',
353 369
 				changeCUSTDialogVisible: false,
354 370
 				newCustomername:'',
355
-				newFKCustomername:''
371
+				newFKCustomername:'',
372
+        outDialogVisible: false,
373
+        address: '',
356 374
 			};
357 375
 		},
358 376
 		mounted() {
@@ -376,6 +394,9 @@
376 394
 					case "handleChangeCustomer":
377 395
 						this.handleChangeCustomer();
378 396
 						break;
397
+          case "updateAddress":
398
+            this.upAddress();
399
+            break;
379 400
 				}
380 401
 			},
381 402
 
@@ -386,7 +407,7 @@
386 407
 				this.query.customerName = customer.name
387 408
 			},
388 409
 
389
-			
410
+
390 411
 			showFKcustmer() {
391 412
 				this.$refs.PopupFKcustmer.show()
392 413
 			},
@@ -465,7 +486,7 @@
465 486
 						});
466 487
 					}
467 488
 				}).catch(() => {});
468
-				
489
+
469 490
 			},
470 491
 			resetButton(){      //查询条件重置
471 492
 				this.query.wareName = '',
@@ -490,6 +511,39 @@
490 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 547
 			handleChangeCustomer(){
494 548
 				this.newCustomername = '',
495 549
 				this.newFKCustomername='',
@@ -597,7 +651,7 @@
597 651
 					this.newCustomer.name = "",
598 652
 					this.newCustomer.id = "",
599 653
 					this.customerDialogVisible = true
600
-					
654
+
601 655
 				} else {
602 656
 					this.$message({
603 657
 						type: 'error',
@@ -906,7 +960,7 @@
906 960
 					}
907 961
 
908 962
 				});
909
-				
963
+
910 964
 			},
911 965
 			exportExcel(imptData) {
912 966
 				// alert(JSON.stringify(imptData))

読み込み中…
キャンセル
保存