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
 								</el-select>
29
 								</el-select>
30
 							</el-form-item>
30
 							</el-form-item>
31
 							<el-form-item label="订单号" style="margin-left: -25px">
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
 								</el-input>
33
 								</el-input>
34
 							</el-form-item>
34
 							</el-form-item>
35
 							<el-form-item label="车号" style="margin-left: -25px">
35
 							<el-form-item label="车号" style="margin-left: -25px">
43
 								</el-input>
43
 								</el-input>
44
 							</el-form-item>
44
 							</el-form-item>
45
 							<el-form-item label="钢板号" style="margin-left: -35px;margin-top: -15px">
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
 								</el-input>
47
 								</el-input>
48
 							</el-form-item>
48
 							</el-form-item>
49
 							<el-form-item label="理货人员" style="margin-top: -15px">
49
 							<el-form-item label="理货人员" style="margin-top: -15px">
62
 									</el-option>
62
 									</el-option>
63
 								</el-select>
63
 								</el-select>
64
 							</el-form-item>
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
 							<el-form-item  label=" " style="margin-left: -35px;margin-top: -15px">
69
 							<el-form-item  label=" " style="margin-left: -35px;margin-top: -15px">
66
 								<el-button size="small" @click="handleSearch" type="primary">查询</el-button>
70
 								<el-button size="small" @click="handleSearch" type="primary">查询</el-button>
67
 								<!-- <el-button @click="handleSearch" type="primary" size="small">查询</el-button> -->
71
 								<!-- <el-button @click="handleSearch" type="primary" size="small">查询</el-button> -->
123
 				</el-table-column>
127
 				</el-table-column>
124
 				<el-table-column prop="remark" label="备注" width="100px" show-overflow-tooltip align="left">
128
 				<el-table-column prop="remark" label="备注" width="100px" show-overflow-tooltip align="left">
125
 				</el-table-column>
129
 				</el-table-column>
130
+				<el-table-column prop="remark1" label="垛位备注" width="100px" show-overflow-tooltip align="left">
131
+				</el-table-column>
126
 				<el-table-column prop="recordType" label="类型" width="100px" show-overflow-tooltip align="center" :formatter="typeFormatter">
132
 				<el-table-column prop="recordType" label="类型" width="100px" show-overflow-tooltip align="center" :formatter="typeFormatter">
127
 				</el-table-column>
133
 				</el-table-column>
128
 				
134
 				
167
 					carNo:'',
173
 					carNo:'',
168
 					tallyPeople:'',
174
 					tallyPeople:'',
169
 					fkComponyName:'',
175
 					fkComponyName:'',
176
+					remark1:''
170
 				},
177
 				},
171
 				loading: false,
178
 				loading: false,
172
 				tableData: [],
179
 				tableData: [],
177
 				//分页参数
184
 				//分页参数
178
 				currentPage: 1,
185
 				currentPage: 1,
179
 				totalRows: 0,
186
 				totalRows: 0,
180
-				pageSizes: [50, 100, 200,500],
187
+				pageSizes: [50, 100, 200,500,1000],
181
 				pageSize: 50,
188
 				pageSize: 50,
182
 				childParam:{
189
 				childParam:{
183
 					page: '',
190
 					page: '',
290
 				this.query.fkcustmerName = '',
297
 				this.query.fkcustmerName = '',
291
 				this.query.carNo = '',
298
 				this.query.carNo = '',
292
 				this.query.tallyPeople = '',
299
 				this.query.tallyPeople = '',
293
-				this.query.fkComponyName = ''
300
+				this.query.fkComponyName = '',
301
+				this.query.remark1 = '';
302
+				this.setSearchTime()
294
 			},
303
 			},
295
 			getWare() {
304
 			getWare() {
296
 				var url = 'MaintWare/queryByUserId.do'
305
 				var url = 'MaintWare/queryByUserId.do'
319
 					materialName: this.query.materialName,
328
 					materialName: this.query.materialName,
320
 					standard: this.query.standard,
329
 					standard: this.query.standard,
321
 					customerName: this.query.customerName,
330
 					customerName: this.query.customerName,
322
-					plateNo: this.query.plateNo,
331
+					plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
323
 					fromDate:(!this.query.inRecordDate[0]) ? "1970-01-01 00:00:00" : this.query.inRecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
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
 					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"),
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
 					carNo : this.query.carNo,
335
 					carNo : this.query.carNo,
327
 					tallyPeople:this.query.tallyPeople,
336
 					tallyPeople:this.query.tallyPeople,
328
 					fkComponyName:this.query.fkComponyName
337
 					fkComponyName:this.query.fkComponyName
346
 			},
355
 			},
347
 			changeWare(){
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
 			handleExport() {
367
 			handleExport() {
351
 				var imptData = [];
368
 				var imptData = [];
359
 					materialName: this.query.materialName,
376
 					materialName: this.query.materialName,
360
 					standard: this.query.standard,
377
 					standard: this.query.standard,
361
 					customerName: this.query.customerName,
378
 					customerName: this.query.customerName,
362
-					plateNo: this.query.plateNo,
379
+					plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
363
 					fromDate:(!this.query.inRecordDate[0]) ? "1970-01-01 00:00:00" : this.query.inRecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
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
 					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"),
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
 					carNo : this.query.carNo,
383
 					carNo : this.query.carNo,
367
 					tallyPeople:this.query.tallyPeople,
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
 							</el-input>
44
 							</el-input>
45
 						</el-form-item>
45
 						</el-form-item>
46
 						<el-form-item label="钢板号" style="margin-left: -35px;">
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
 							</el-input>
48
 							</el-input>
49
 						</el-form-item>
49
 						</el-form-item>
50
 						<el-form-item label="出库时间" style="margin-left: -35px">
50
 						<el-form-item label="出库时间" style="margin-left: -35px">
58
 							</el-select>
58
 							</el-select>
59
 						</el-form-item>
59
 						</el-form-item>
60
 						<el-form-item label="订单号" style="margin-left: -25px">
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
 							</el-input>
66
 							</el-input>
63
 						</el-form-item>
67
 						</el-form-item>
64
 						<el-form-item label=" " style="margin-left: -60px">
68
 						<el-form-item label=" " style="margin-left: -60px">
67
 							<el-button @click="handleOutBack" type="danger" size="small" style="width:70px">取消出库</el-button>
71
 							<el-button @click="handleOutBack" type="danger" size="small" style="width:70px">取消出库</el-button>
68
 							<el-button @click="handleVerifyAcc" type="primary" size="small" style="width:70px">对账</el-button>
72
 							<el-button @click="handleVerifyAcc" type="primary" size="small" style="width:70px">对账</el-button>
69
 							<el-button @click="handleModifyPrice" type="primary" size="small" >批量改价</el-button>
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
 						</el-form-item>
76
 						</el-form-item>
72
 						<el-form-item label="" >
77
 						<el-form-item label="" >
77
 								<el-button   type="success" @click="handleExport" style="margin-left: 2px" size="small">导出记录</el-button>
82
 								<el-button   type="success" @click="handleExport" style="margin-left: 2px" size="small">导出记录</el-button>
78
 							</el-upload>
83
 							</el-upload>
79
 						</el-form-item>
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
 					</el-row>
86
 					</el-row>
84
 				</el-form>
87
 				</el-form>
85
 			</el-row>
88
 			</el-row>
144
 				</el-table-column>
147
 				</el-table-column>
145
 				<el-table-column prop="remark" label="备注" width="100px" show-overflow-tooltip align="left">
148
 				<el-table-column prop="remark" label="备注" width="100px" show-overflow-tooltip align="left">
146
 				</el-table-column>
149
 				</el-table-column>
150
+				<el-table-column prop="remark1" label="垛位备注" width="100px" show-overflow-tooltip align="left">
151
+				</el-table-column>
147
 				<el-table-column prop="recordType" label="类型" width="100px" show-overflow-tooltip align="center" :formatter="typeFormatter">
152
 				<el-table-column prop="recordType" label="类型" width="100px" show-overflow-tooltip align="center" :formatter="typeFormatter">
148
 				</el-table-column>
153
 				</el-table-column>
149
 				<el-table-column prop="verifyAccountId" v-if="false" label="对账ID" width="100px" show-overflow-tooltip align="center" >
154
 				<el-table-column prop="verifyAccountId" v-if="false" label="对账ID" width="100px" show-overflow-tooltip align="center" >
260
 					materialName: '',
265
 					materialName: '',
261
 					standard: '',
266
 					standard: '',
262
 					customerName: '',
267
 					customerName: '',
263
-					plateNo: '',
268
+					plateNo: [],
264
 					RecordDate:[],
269
 					RecordDate:[],
265
 					carNo:'',
270
 					carNo:'',
266
 					tallyPeople:'',
271
 					tallyPeople:'',
267
-					ordNo:'',
272
+					ordNo:[],
268
 					fkComponyName:'',
273
 					fkComponyName:'',
274
+					remark1:''
269
 					
275
 					
270
 				},
276
 				},
271
 				accData:{
277
 				accData:{
279
 
285
 
280
 				currentPage: 1,
286
 				currentPage: 1,
281
 				totalRows: 0,
287
 				totalRows: 0,
282
-				pageSizes: [50, 100, 200,500],
288
+				pageSizes: [50, 100, 200,500,1000],
283
 				pageSize: 50,
289
 				pageSize: 50,
284
 				HideAndShow: 0,
290
 				HideAndShow: 0,
285
 				optionsWare: [],
291
 				optionsWare: [],
295
 					materialName: '',
301
 					materialName: '',
296
 					standard: '',
302
 					standard: '',
297
 					customerName: '',
303
 					customerName: '',
298
-					plateNo: ''
304
+					plateNo: '',
305
+					remark1:'',
299
 				},
306
 				},
300
 				childUrl:'WareOutRecord/queryTotal.do',
307
 				childUrl:'WareOutRecord/queryTotal.do',
301
 				time:"",
308
 				time:"",
442
 				this.accData.accDate = new Date(now.getFullYear(), now.getMonth(), now.getDate());
449
 				this.accData.accDate = new Date(now.getFullYear(), now.getMonth(), now.getDate());
443
 				this.popupVerifyAcc = true;
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
 			numSub(num1, num2) { 
468
 			numSub(num1, num2) { 
446
 				var baseNum, baseNum1, baseNum2; 
469
 				var baseNum, baseNum1, baseNum2; 
447
 				var precision;// 精度 
470
 				var precision;// 精度 
507
 				this.currentPage = 1
530
 				this.currentPage = 1
508
 				this.getTableData()
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
 			showMaterial() {
533
 			showMaterial() {
526
 				this.$refs.PopupMaterial.show()
534
 				this.$refs.PopupMaterial.show()
527
 			},
535
 			},
557
 					materialName: this.query.materialName,
565
 					materialName: this.query.materialName,
558
 					standard: this.query.standard,
566
 					standard: this.query.standard,
559
 					customerName: this.query.customerName,
567
 					customerName: this.query.customerName,
560
-					plateNo: this.query.plateNo,
568
+					plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
561
 					pFromDate:(!this.query.RecordDate[0]) ? "1970-01-01 00:00:00" : this.query.RecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
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
 					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"),
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
 					carNo:this.query.carNo,
571
 					carNo:this.query.carNo,
564
 					tallyPeople:this.query.tallyPeople,
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
 				this.childParam = param;
577
 				this.childParam = param;
578
+				console.log(param);
579
+				console.log(this.childParam);
569
 
580
 
570
 				axios.get(url, param).then(response => {
581
 				axios.get(url, param).then(response => {
571
 					if (response.data.code == 0) {
582
 					if (response.data.code == 0) {
636
 			changeWare(){
647
 			changeWare(){
637
 				//this.getTableData()
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
 			handlePrintOut(){
658
 			handlePrintOut(){
640
 				if(this.selectRows.length > 1){
659
 				if(this.selectRows.length > 1){
641
 					this.$message({
660
 					this.$message({
687
 					materialName: this.query.materialName,
706
 					materialName: this.query.materialName,
688
 					standard: this.query.standard,
707
 					standard: this.query.standard,
689
 					customerName: this.query.customerName,
708
 					customerName: this.query.customerName,
690
-					plateNo: this.query.plateNo,
709
+					plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
691
 					pFromDate:(!this.query.RecordDate[0]) ? "1970-01-01 00:00:00" : this.query.RecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
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
 					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"),
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
 					carNo:this.query.carNo,
712
 					carNo:this.query.carNo,
694
 					tallyPeople:this.query.tallyPeople,
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
 				// alert(JSON.stringify(param))
718
 				// alert(JSON.stringify(param))
699
 
719
 

Loading…
取消
儲存