YL2767 2 月之前
父節點
當前提交
d3b1304ab8
共有 2 個文件被更改,包括 76 次插入39 次删除
  1. 26
    9
      src/view/record/inrecord.vue
  2. 50
    30
      src/view/record/outrecord.vue

+ 26
- 9
src/view/record/inrecord.vue 查看文件

@@ -29,7 +29,7 @@
29 29
 								</el-select>
30 30
 							</el-form-item>
31 31
 							<el-form-item label="订单号" style="margin-left: -25px">
32
-								<el-input v-model="query.ordNo" size="small"  style="width:120px;margin-left: -8px">
32
+								<el-input v-model="query.ordNo" size="small"  style="width:120px;margin-left: -8px"  @input="getOrdList">
33 33
 								</el-input>
34 34
 							</el-form-item>
35 35
 							<el-form-item label="车号" style="margin-left: -25px">
@@ -43,7 +43,7 @@
43 43
 								</el-input>
44 44
 							</el-form-item>
45 45
 							<el-form-item label="钢板号" style="margin-left: -35px;margin-top: -15px">
46
-								<el-input v-model="query.plateNo" size="small"  style="width:120px;margin-left: -8px">
46
+								<el-input v-model="query.plateNo" size="small"  style="width:120px;margin-left: -8px" @input="getPltList">
47 47
 								</el-input>
48 48
 							</el-form-item>
49 49
 							<el-form-item label="理货人员" style="margin-top: -15px">
@@ -62,6 +62,10 @@
62 62
 									</el-option>
63 63
 								</el-select>
64 64
 							</el-form-item>
65
+							<el-form-item label="垛位备注" style="margin-left: -35px;margin-top: -15px">
66
+								<el-input v-model="query.remark1" size="small"  style="width:120px;margin-left: -8px" @input="getPltList">
67
+								</el-input>
68
+							</el-form-item>
65 69
 							<el-form-item  label=" " style="margin-left: -35px;margin-top: -15px">
66 70
 								<el-button size="small" @click="handleSearch" type="primary">查询</el-button>
67 71
 								<!-- <el-button @click="handleSearch" type="primary" size="small">查询</el-button> -->
@@ -123,6 +127,8 @@
123 127
 				</el-table-column>
124 128
 				<el-table-column prop="remark" label="备注" width="100px" show-overflow-tooltip align="left">
125 129
 				</el-table-column>
130
+				<el-table-column prop="remark1" label="垛位备注" width="100px" show-overflow-tooltip align="left">
131
+				</el-table-column>
126 132
 				<el-table-column prop="recordType" label="类型" width="100px" show-overflow-tooltip align="center" :formatter="typeFormatter">
127 133
 				</el-table-column>
128 134
 				
@@ -167,6 +173,7 @@
167 173
 					carNo:'',
168 174
 					tallyPeople:'',
169 175
 					fkComponyName:'',
176
+					remark1:''
170 177
 				},
171 178
 				loading: false,
172 179
 				tableData: [],
@@ -177,7 +184,7 @@
177 184
 				//分页参数
178 185
 				currentPage: 1,
179 186
 				totalRows: 0,
180
-				pageSizes: [50, 100, 200,500],
187
+				pageSizes: [50, 100, 200,500,1000],
181 188
 				pageSize: 50,
182 189
 				childParam:{
183 190
 					page: '',
@@ -290,7 +297,9 @@
290 297
 				this.query.fkcustmerName = '',
291 298
 				this.query.carNo = '',
292 299
 				this.query.tallyPeople = '',
293
-				this.query.fkComponyName = ''
300
+				this.query.fkComponyName = '',
301
+				this.query.remark1 = '';
302
+				this.setSearchTime()
294 303
 			},
295 304
 			getWare() {
296 305
 				var url = 'MaintWare/queryByUserId.do'
@@ -319,10 +328,10 @@
319 328
 					materialName: this.query.materialName,
320 329
 					standard: this.query.standard,
321 330
 					customerName: this.query.customerName,
322
-					plateNo: this.query.plateNo,
331
+					plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
323 332
 					fromDate:(!this.query.inRecordDate[0]) ? "1970-01-01 00:00:00" : this.query.inRecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
324 333
 					toDate  :(!this.query.inRecordDate[1]) ? new Date().Format("yyyy-MM-dd HH:mm:ss") :this.query.inRecordDate[1].Format("yyyy-MM-dd HH:mm:ss"),
325
-					ordNo :this.query.ordNo,
334
+					ordNo: this.query.ordNo == 0 ? '' : this.query.ordNo.join(','),
326 335
 					carNo : this.query.carNo,
327 336
 					tallyPeople:this.query.tallyPeople,
328 337
 					fkComponyName:this.query.fkComponyName
@@ -346,6 +355,14 @@
346 355
 			},
347 356
 			changeWare(){
348 357
 
358
+			},
359
+			getPltList(){
360
+				const replaceResult = this.query.plateNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
361
+				this.query.plateNo = replaceResult;
362
+			},
363
+			getOrdList(){
364
+				const replaceResult = this.query.ordNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
365
+				this.query.ordNo = replaceResult;
349 366
 			},
350 367
 			handleExport() {
351 368
 				var imptData = [];
@@ -359,13 +376,13 @@
359 376
 					materialName: this.query.materialName,
360 377
 					standard: this.query.standard,
361 378
 					customerName: this.query.customerName,
362
-					plateNo: this.query.plateNo,
379
+					plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
363 380
 					fromDate:(!this.query.inRecordDate[0]) ? "1970-01-01 00:00:00" : this.query.inRecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
364 381
 					toDate  :(!this.query.inRecordDate[1]) ? new Date().Format("yyyy-MM-dd HH:mm:ss") :this.query.inRecordDate[1].Format("yyyy-MM-dd HH:mm:ss"),
365
-					ordNo : this.query.ordNo,
382
+					ordNo: this.query.ordNo == 0 ? '' : this.query.ordNo.join(','),
366 383
 					carNo : this.query.carNo,
367 384
 					tallyPeople:this.query.tallyPeople,
368
-					fkComponyName:this.query.fkComponyName,
385
+					fkComponyName:this.query.fkComponyName
369 386
 				}
370 387
 
371 388
 

+ 50
- 30
src/view/record/outrecord.vue 查看文件

@@ -44,7 +44,7 @@
44 44
 							</el-input>
45 45
 						</el-form-item>
46 46
 						<el-form-item label="钢板号" style="margin-left: -35px;">
47
-							<el-input v-model="query.plateNo" size="small" style="width:120px;margin-left: -8px">
47
+							<el-input v-model="query.plateNo" size="small" style="width:120px;margin-left: -8px"  @input="getPltList">
48 48
 							</el-input>
49 49
 						</el-form-item>
50 50
 						<el-form-item label="出库时间" style="margin-left: -35px">
@@ -58,7 +58,11 @@
58 58
 							</el-select>
59 59
 						</el-form-item>
60 60
 						<el-form-item label="订单号" style="margin-left: -25px">
61
-							<el-input v-model="query.ordNo" size="small"  style="width:120px;margin-left: -8px">
61
+							<el-input v-model="query.ordNo" size="small"  style="width:120px;margin-left: -8px"  @input="getOrdList">
62
+							</el-input>
63
+						</el-form-item>
64
+						<el-form-item label="垛位备注" style="margin-left: -25px">
65
+							<el-input v-model="query.remark1" size="small"  style="width:120px;margin-left: -8px"  @input="getOrdList">
62 66
 							</el-input>
63 67
 						</el-form-item>
64 68
 						<el-form-item label=" " style="margin-left: -60px">
@@ -67,6 +71,7 @@
67 71
 							<el-button @click="handleOutBack" type="danger" size="small" style="width:70px">取消出库</el-button>
68 72
 							<el-button @click="handleVerifyAcc" type="primary" size="small" style="width:70px">对账</el-button>
69 73
 							<el-button @click="handleModifyPrice" type="primary" size="small" >批量改价</el-button>
74
+							<el-button type="primary" size="small"  @click="resetButton" :disabled="backAble">重置</el-button>
70 75
 							
71 76
 						</el-form-item>
72 77
 						<el-form-item label="" >
@@ -77,9 +82,7 @@
77 82
 								<el-button   type="success" @click="handleExport" style="margin-left: 2px" size="small">导出记录</el-button>
78 83
 							</el-upload>
79 84
 						</el-form-item>
80
-						<el-form-item label="" >
81
-							    <el-button type="primary" size="small"  @click="resetButton" :disabled="backAble">重置</el-button>
82
-						</el-form-item>
85
+						
83 86
 					</el-row>
84 87
 				</el-form>
85 88
 			</el-row>
@@ -144,6 +147,8 @@
144 147
 				</el-table-column>
145 148
 				<el-table-column prop="remark" label="备注" width="100px" show-overflow-tooltip align="left">
146 149
 				</el-table-column>
150
+				<el-table-column prop="remark1" label="垛位备注" width="100px" show-overflow-tooltip align="left">
151
+				</el-table-column>
147 152
 				<el-table-column prop="recordType" label="类型" width="100px" show-overflow-tooltip align="center" :formatter="typeFormatter">
148 153
 				</el-table-column>
149 154
 				<el-table-column prop="verifyAccountId" v-if="false" label="对账ID" width="100px" show-overflow-tooltip align="center" >
@@ -260,12 +265,13 @@
260 265
 					materialName: '',
261 266
 					standard: '',
262 267
 					customerName: '',
263
-					plateNo: '',
268
+					plateNo: [],
264 269
 					RecordDate:[],
265 270
 					carNo:'',
266 271
 					tallyPeople:'',
267
-					ordNo:'',
272
+					ordNo:[],
268 273
 					fkComponyName:'',
274
+					remark1:''
269 275
 					
270 276
 				},
271 277
 				accData:{
@@ -279,7 +285,7 @@
279 285
 
280 286
 				currentPage: 1,
281 287
 				totalRows: 0,
282
-				pageSizes: [50, 100, 200,500],
288
+				pageSizes: [50, 100, 200,500,1000],
283 289
 				pageSize: 50,
284 290
 				HideAndShow: 0,
285 291
 				optionsWare: [],
@@ -295,7 +301,8 @@
295 301
 					materialName: '',
296 302
 					standard: '',
297 303
 					customerName: '',
298
-					plateNo: ''
304
+					plateNo: '',
305
+					remark1:'',
299 306
 				},
300 307
 				childUrl:'WareOutRecord/queryTotal.do',
301 308
 				time:"",
@@ -442,6 +449,22 @@
442 449
 				this.accData.accDate = new Date(now.getFullYear(), now.getMonth(), now.getDate());
443 450
 				this.popupVerifyAcc = true;
444 451
 			},
452
+			resetButton(){      //查询条件重置
453
+					this.query.wareName= '',
454
+					this.query.stackName= '',
455
+					this.query.model= '',
456
+					this.query.materialName= '',
457
+					this.query.standard= '',
458
+					this.query.customerName= '',
459
+					this.query.plateNo= [],
460
+					this.query.RecordDate=[],
461
+					this.query.carNo='',
462
+					this.query.tallyPeople='',
463
+					this.query.ordNo=[],
464
+					this.query.fkComponyName='',
465
+					this.query.remark1='';
466
+					this.setSearchTime()
467
+			},
445 468
 			numSub(num1, num2) { 
446 469
 				var baseNum, baseNum1, baseNum2; 
447 470
 				var precision;// 精度 
@@ -507,21 +530,6 @@
507 530
 				this.currentPage = 1
508 531
 				this.getTableData()
509 532
 			},
510
-			resetButton(){      //查询条件重置
511
-				this.query.wareName = '',
512
-				this.query.stackName = '',
513
-				this.query.model = '',
514
-				this.query.materialName = '',
515
-				this.query.standard = '',
516
-				this.query.customerName = '',
517
-				this.query.plateNo = '',
518
-				this.query.wareId = '',
519
-				this.query.ordNo = '',
520
-				this.query.fkcustmerName = '',
521
-				this.query.carNo = '',
522
-				this.query.tallyPeople = '',
523
-				this.query.fkComponyName = ''
524
-			},
525 533
 			showMaterial() {
526 534
 				this.$refs.PopupMaterial.show()
527 535
 			},
@@ -557,15 +565,18 @@
557 565
 					materialName: this.query.materialName,
558 566
 					standard: this.query.standard,
559 567
 					customerName: this.query.customerName,
560
-					plateNo: this.query.plateNo,
568
+					plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
561 569
 					pFromDate:(!this.query.RecordDate[0]) ? "1970-01-01 00:00:00" : this.query.RecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
562 570
 					pToDate  :(!this.query.RecordDate[1]) ? new Date().Format("yyyy-MM-dd HH:mm:ss") :this.query.RecordDate[1].Format("yyyy-MM-dd HH:mm:ss"),
563 571
 					carNo:this.query.carNo,
564 572
 					tallyPeople:this.query.tallyPeople,
565
-					ordNo :this.query.ordNo,
566
-					fkComponyName:this.query.fkComponyName
573
+					ordNo: this.query.ordNo == 0 ? '' : this.query.ordNo.join(','),
574
+					fkComponyName:this.query.fkComponyName,
575
+					remark1 : this.query.remark1
567 576
 				}
568 577
 				this.childParam = param;
578
+				console.log(param);
579
+				console.log(this.childParam);
569 580
 
570 581
 				axios.get(url, param).then(response => {
571 582
 					if (response.data.code == 0) {
@@ -636,6 +647,14 @@
636 647
 			changeWare(){
637 648
 				//this.getTableData()
638 649
 			},
650
+			getPltList(){
651
+				const replaceResult = this.query.plateNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
652
+				this.query.plateNo = replaceResult;
653
+			},
654
+			getOrdList(){
655
+				const replaceResult = this.query.ordNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
656
+				this.query.ordNo = replaceResult;
657
+			},
639 658
 			handlePrintOut(){
640 659
 				if(this.selectRows.length > 1){
641 660
 					this.$message({
@@ -687,13 +706,14 @@
687 706
 					materialName: this.query.materialName,
688 707
 					standard: this.query.standard,
689 708
 					customerName: this.query.customerName,
690
-					plateNo: this.query.plateNo,
709
+					plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
691 710
 					pFromDate:(!this.query.RecordDate[0]) ? "1970-01-01 00:00:00" : this.query.RecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
692 711
 					pToDate  :(!this.query.RecordDate[1]) ? new Date().Format("yyyy-MM-dd HH:mm:ss") :this.query.RecordDate[1].Format("yyyy-MM-dd HH:mm:ss"),
693 712
 					carNo:this.query.carNo,
694 713
 					tallyPeople:this.query.tallyPeople,
695
-					ordNo :this.query.ordNo,
696
-					fkComponyName:this.query.fkComponyName
714
+					ordNo: this.query.ordNo == 0 ? '' : this.query.ordNo.join(','),
715
+					fkComponyName:this.query.fkComponyName,
716
+					remark1:this.query.remark1
697 717
 				}
698 718
 				// alert(JSON.stringify(param))
699 719
 

Loading…
取消
儲存