Browse Source

多卷号查询

LiuCheng 2 weeks ago
parent
commit
75f39d26b2
1 changed files with 12 additions and 4 deletions
  1. 12
    4
      src/view/record/outrecord.vue

+ 12
- 4
src/view/record/outrecord.vue View File

46
 							</el-input>
46
 							</el-input>
47
 						</el-form-item>
47
 						</el-form-item>
48
 						<el-form-item label="钢板号" style="margin-left: -35px;">
48
 						<el-form-item label="钢板号" style="margin-left: -35px;">
49
-							<el-input v-model="query.plateNo" size="small" style="width:120px;margin-left: -8px">
49
+							<el-input v-model="query.plateNo" size="small" style="width:120px;margin-left: -8px" @input="getPltList">
50
 							</el-input>
50
 							</el-input>
51
 						</el-form-item>
51
 						</el-form-item>
52
 						<el-form-item label="出库时间" style="margin-left: -35px;margin-top: 0px">
52
 						<el-form-item label="出库时间" style="margin-left: -35px;margin-top: 0px">
265
 					materialName: '',
265
 					materialName: '',
266
 					standard: '',
266
 					standard: '',
267
 					customerName: '',
267
 					customerName: '',
268
-					plateNo: '',
268
+					plateNo: [],
269
 					RecordDate:[],
269
 					RecordDate:[],
270
 					carNo:'',
270
 					carNo:'',
271
 					tallyPeople:'',
271
 					tallyPeople:'',
538
 					materialName: this.query.materialName,
538
 					materialName: this.query.materialName,
539
 					standard: this.query.standard,
539
 					standard: this.query.standard,
540
 					customerName: this.query.customerName,
540
 					customerName: this.query.customerName,
541
-					plateNo: this.query.plateNo,
541
+					plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
542
+					//plateNo: this.query.plateNo,
542
 					pFromDate:(!this.query.RecordDate[0]) ? "1970-01-01 00:00:00" : this.query.RecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
543
 					pFromDate:(!this.query.RecordDate[0]) ? "1970-01-01 00:00:00" : this.query.RecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
543
 					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"),
544
 					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"),
544
 					carNo:this.query.carNo,
545
 					carNo:this.query.carNo,
569
 			handleSelectionChange(val) {
570
 			handleSelectionChange(val) {
570
 				this.selectRows = val
571
 				this.selectRows = val
571
 			},
572
 			},
573
+			getPltList(){
574
+				const replaceResult = this.query.plateNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
575
+				this.query.plateNo = replaceResult;
576
+			},
572
 			handleOutBack() {
577
 			handleOutBack() {
573
 				if (this.selectRows.length != 1) {
578
 				if (this.selectRows.length != 1) {
574
 					this.$message({
579
 					this.$message({
669
 					materialName: this.query.materialName,
674
 					materialName: this.query.materialName,
670
 					standard: this.query.standard,
675
 					standard: this.query.standard,
671
 					customerName: this.query.customerName,
676
 					customerName: this.query.customerName,
672
-					plateNo: this.query.plateNo,
677
+					//plateNo: this.query.plateNo,
678
+					plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
673
 					pFromDate:(!this.query.RecordDate[0]) ? "1970-01-01 00:00:00" : this.query.RecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
679
 					pFromDate:(!this.query.RecordDate[0]) ? "1970-01-01 00:00:00" : this.query.RecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
674
 					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"),
680
 					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"),
675
 					carNo:this.query.carNo,
681
 					carNo:this.query.carNo,
734
 								,"出库时间"
740
 								,"出库时间"
735
 								,"备注"
741
 								,"备注"
736
 								,"类型"
742
 								,"类型"
743
+								,"库龄"
737
 
744
 
738
 				] // 导出的表头名
745
 				] // 导出的表头名
739
 				const filterVal = [
746
 				const filterVal = [
766
 						,"addTime"
773
 						,"addTime"
767
 						,"remark"
774
 						,"remark"
768
 						,"recordType"
775
 						,"recordType"
776
+						,"inwareDay"
769
 				]
777
 				]
770
 
778
 
771
 				for(var i=0;i<imptData.length;i++){
779
 				for(var i=0;i<imptData.length;i++){

Loading…
Cancel
Save