Przeglądaj źródła

多行复制查询

LiuCheng 2 miesięcy temu
rodzic
commit
4d7d2729e0
1 zmienionych plików z 8 dodań i 5 usunięć
  1. 8
    5
      src/view/ware/storechange.vue

+ 8
- 5
src/view/ware/storechange.vue Wyświetl plik

37
 						</el-input>
37
 						</el-input>
38
 					</el-form-item>
38
 					</el-form-item>
39
 					<el-form-item label="钢板号" style="margin-left: -35px">
39
 					<el-form-item label="钢板号" style="margin-left: -35px">
40
-						<el-input v-model="query.plateNo" size="small" style="width:120px;margin-left: -8px">
40
+						<el-input v-model="query.plateNo" size="small" style="width:120px;margin-left: -8px" @input="getPltList">
41
 						</el-input>
41
 						</el-input>
42
 					</el-form-item>
42
 					</el-form-item>
43
 					<el-form-item label="订单号" style="margin-left: -35px">
43
 					<el-form-item label="订单号" style="margin-left: -35px">
235
 					materialName: '',
235
 					materialName: '',
236
 					standard: '',
236
 					standard: '',
237
 					customerName: '',
237
 					customerName: '',
238
-					plateNo: '',
238
+					plateNo: [],
239
 					wareId:'',
239
 					wareId:'',
240
 					inRecordDate:[],
240
 					inRecordDate:[],
241
 					fkcustmerName:'',
241
 					fkcustmerName:'',
426
 					materialName: this.query.materialName,
426
 					materialName: this.query.materialName,
427
 					standard: this.query.standard,
427
 					standard: this.query.standard,
428
 					customerName: this.query.customerName,
428
 					customerName: this.query.customerName,
429
-					plateNo: this.query.plateNo,
429
+					plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
430
 					fromDate:(!this.query.inRecordDate[0]) ? "1970-01-01 00:00:00" : this.query.inRecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
430
 					fromDate:(!this.query.inRecordDate[0]) ? "1970-01-01 00:00:00" : this.query.inRecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
431
 					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"),
431
 					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"),
432
 					fkcustmerName : this.query.fkcustmerName,
432
 					fkcustmerName : this.query.fkcustmerName,
717
 			selectAll(selection){
717
 			selectAll(selection){
718
 				this.selectRows = selection;
718
 				this.selectRows = selection;
719
 			},
719
 			},
720
-
720
+			getPltList(){
721
+				const replaceResult = this.query.plateNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
722
+				this.query.plateNo = replaceResult;
723
+			},
721
 			handleExport() {
724
 			handleExport() {
722
 				var imptData = [];
725
 				var imptData = [];
723
 				if(this.query.inRecordDate == null){
726
 				if(this.query.inRecordDate == null){
733
 					materialName: this.query.materialName,
736
 					materialName: this.query.materialName,
734
 					standard: this.query.standard,
737
 					standard: this.query.standard,
735
 					customerName: this.query.customerName,
738
 					customerName: this.query.customerName,
736
-					plateNo: this.query.plateNo,
739
+					plateNo: this.query.plateNo.length == 0 ? '' : this.query.plateNo.join(','),
737
 					fromDate:(!this.query.inRecordDate[0]) ? "1970-01-01 00:00:00" : this.query.inRecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
740
 					fromDate:(!this.query.inRecordDate[0]) ? "1970-01-01 00:00:00" : this.query.inRecordDate[0].Format("yyyy-MM-dd HH:mm:ss"),		//date类型
738
 					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"),
741
 					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"),
739
 					fkcustmerName : this.query.fkcustmerName,
742
 					fkcustmerName : this.query.fkcustmerName,

Ładowanie…
Anuluj
Zapisz