YL2767 2 달 전
부모
커밋
2e50fbf92a
3개의 변경된 파일99개의 추가작업 그리고 5개의 파일을 삭제
  1. 47
    4
      src/view/record/inrecord.vue
  2. 49
    1
      src/view/record/outrecord.vue
  3. 3
    0
      src/view/ware/storechange.vue

+ 47
- 4
src/view/record/inrecord.vue 파일 보기

@@ -81,12 +81,16 @@
81 81
 							<el-form-item label="" style="margin-top: -15px">
82 82
 							    <el-button type="primary" size="small"  @click="resetButton" :disabled="backAble">重置</el-button>
83 83
 							</el-form-item>
84
+							<el-form-item label="" style="margin-top: -15px">
85
+							    <el-button type="danger" size="small"  @click="deleteRecord" :disabled="backAble">删除记录</el-button>
86
+							</el-form-item>
84 87
 						</el-row>
85 88
 					</el-form>
86 89
 			<total-block ref="totalBlock" style="margin-left: -25px;font-size: 13px;margin-left: 5px" v-bind:childParam="childParam" v-bind:childUrl = 'childUrl'></total-block>
87 90
 		</div>
88 91
 		<div class="tabledata-grid">
89
-			<el-table v-loading="loading"  :data="tableData" height="100%" stripe border style="width: 97%;font-size: 13px;margin-top: -50px;margin-left: 25px" :header-cell-style="{'text-align':'center'}">
92
+			<el-table v-loading="loading"  :data="tableData" height="100%" stripe border style="width: 97%;font-size: 13px;margin-top: -50px;margin-left: 25px" @select="handleTableSelect" :header-cell-style="{'text-align':'center'}">
93
+				<el-table-column type="selection" width="40" header-align="center" align="center"></el-table-column>
90 94
 				<el-table-column prop="id" label="编号" min-width="10%" v-if="false">
91 95
 				</el-table-column>
92 96
 				<el-table-column prop="wareName" label="仓库名称" width="150px" show-overflow-tooltip header-align="center">
@@ -175,6 +179,7 @@
175 179
 					fkComponyName:'',
176 180
 					remark1:''
177 181
 				},
182
+				selectRows: [],
178 183
 				loading: false,
179 184
 				tableData: [],
180 185
 				optionsWare: [],
@@ -195,7 +200,8 @@
195 200
 					materialName: '',
196 201
 					standard: '',
197 202
 					customerName: '',
198
-					plateNo: ''
203
+					plateNo: '',
204
+					ord_no:''
199 205
 				},
200 206
 				childUrl:'WareInRecord/queryTotal.do',
201 207
 				tallyPeopleOption:[],
@@ -245,6 +251,11 @@
245 251
 						break;
246 252
 				}
247 253
 			},
254
+			handleTableSelect(selection, row) {  //第一个参数是目前所有选中的数据
255
+				console.log(JSON.stringify(row))
256
+				this.selectRows = selection
257
+				this.setLayerColor()
258
+			},
248 259
 			showMaterial() {
249 260
 				this.$refs.PopupMaterial.show()
250 261
 			},
@@ -334,7 +345,8 @@
334 345
 					ordNo: this.query.ordNo == 0 ? '' : this.query.ordNo.join(','),
335 346
 					carNo : this.query.carNo,
336 347
 					tallyPeople:this.query.tallyPeople,
337
-					fkComponyName:this.query.fkComponyName
348
+					fkComponyName:this.query.fkComponyName,
349
+					remark1:this.query.remark1
338 350
 				}
339 351
 
340 352
 				this.childParam = param;
@@ -382,7 +394,8 @@
382 394
 					ordNo: this.query.ordNo == 0 ? '' : this.query.ordNo.join(','),
383 395
 					carNo : this.query.carNo,
384 396
 					tallyPeople:this.query.tallyPeople,
385
-					fkComponyName:this.query.fkComponyName
397
+					fkComponyName:this.query.fkComponyName,
398
+					remark1:this.query.remark1
386 399
 				}
387 400
 
388 401
 
@@ -480,6 +493,36 @@
480 493
 					return v[j]
481 494
 				}))
482 495
 			},
496
+			handleTableSelectionChange(val) {
497
+				this.selectRows = val
498
+				this.setLayerColor()
499
+			},
500
+			deleteRecord(){
501
+				if (this.selectRows.length < 1) {
502
+					this.$message({
503
+						type: 'error',
504
+						message: '至少选择一条数据!',
505
+					});
506
+					return
507
+				}else{
508
+					var url = 'WareInRecord/deleterecord.do'
509
+					var param = {
510
+						json: JSON.stringify(this.selectRows),
511
+					}
512
+					axios.post(url, param).then(response => {
513
+						if (response.data.code == 0) {
514
+							this.getTableData()
515
+							this.stackDialogVisible = false
516
+						} else {
517
+							this.$message({
518
+								type: 'error',
519
+								message: '操作失败;' + response.data.msg,
520
+							});
521
+						}
522
+					});
523
+				}
524
+				
525
+			}
483 526
 
484 527
 		},
485 528
 	}

+ 49
- 1
src/view/record/outrecord.vue 파일 보기

@@ -72,7 +72,7 @@
72 72
 							<el-button @click="handleVerifyAcc" type="primary" size="small" style="width:70px">对账</el-button>
73 73
 							<el-button @click="handleModifyPrice" type="primary" size="small" >批量改价</el-button>
74 74
 							<el-button type="primary" size="small"  @click="resetButton" :disabled="backAble">重置</el-button>
75
-							
75
+							<el-button @click="changeCarNoShow" type="primary" size="small" >修改车号</el-button>
76 76
 						</el-form-item>
77 77
 						<el-form-item label="" >
78 78
 							<el-upload class="upload-demo" action="" 
@@ -226,6 +226,20 @@
226 226
 				</el-row>
227 227
 			</el-form>
228 228
 		</el-dialog>
229
+
230
+		<el-dialog title="更改出库车号" :visible.sync="popupCarno" width="780px">
231
+			<el-form label-width="150px" inline="">
232
+				<el-row>
233
+					<el-form-item label="车号" style="">
234
+							<el-input v-model="changeCarNo" size="small" style="width:150px;margin-left: -8px"></el-input>
235
+						</el-form-item>
236
+				</el-row>
237
+				<el-row>
238
+					<el-button size="small" type="primary" style="margin-left: 30px;" @click="handlechangeCarNo">提交</el-button>
239
+				</el-row>
240
+				
241
+			</el-form>
242
+		</el-dialog>
229 243
 		<popup-stack-with-select-ware :selectVareName="optionsWare" ref="PopupStackWithSelectWare" @receviceFromChild="receviceFromWareStack"></popup-stack-with-select-ware>
230 244
 		<popup-material ref="PopupMaterial" @receviceFromChild="receviceFromMaterial"></popup-material>
231 245
 		<popup-customer ref="PopupCustomer" @receviceFromChild="receviceFromCustomer"></popup-customer>
@@ -313,6 +327,8 @@
313 327
 				modifyWgt:0,
314 328
 				modifyPrice:0,
315 329
 				optionsCust:[],
330
+				changeCarNo:"",
331
+				popupCarno: false
316 332
 			};
317 333
 		},
318 334
 		//页面加载完成渲染
@@ -675,6 +691,38 @@
675 691
 				window.open(this.serverName + 'ureport/preview?_u=file:out.ureport.xml&id=' + distId +
676 692
 					'&time=' + this.time)
677 693
 
694
+			},
695
+			changeCarNoShow(){
696
+				this.popupCarno = true,
697
+				this.changeCarNo = ""
698
+			},
699
+			handlechangeCarNo(){
700
+				if(this.selectRows.length > 1){
701
+					this.$message({
702
+						type: 'warning',
703
+						message: '操作失败,请选择一条数据进行操作' ,
704
+					});
705
+					return;
706
+				}
707
+				// console.log(JSON.stringify(this.selectRows[0]))
708
+				var distId = this.selectRows[0].distributionId;
709
+				var url = 'WareOut/changeCarNo.do'
710
+				var param = {
711
+					distId: distId,
712
+					carNo: this.changeCarNo
713
+				}
714
+				axios.post(url, param).then(response => {
715
+					if (response.data.code == 0) {
716
+						this.popupCarno = false,
717
+						this.getTableData()
718
+					} else {
719
+						this.$message({
720
+							type: 'error',
721
+							message: '操作失败;' + response.data.msg,
722
+						});
723
+					}
724
+				});
725
+
678 726
 			},
679 727
 			getTime() {
680 728
 				var date = new Date();

+ 3
- 0
src/view/ware/storechange.vue 파일 보기

@@ -530,7 +530,10 @@
530 530
 				if (boolean) {
531 531
 					this.oldCustomer = this.multipleSelection[0].customer.name
532 532
 					//this.newAddress = this.multipleSelection[0].receiveAddress
533
+					this.newCustomer.name = "",
534
+					this.newCustomer.id = "",
533 535
 					this.customerDialogVisible = true
536
+					
534 537
 				} else {
535 538
 					this.$message({
536 539
 						type: 'error',

Loading…
취소
저장