Преглед изворни кода

修改太杂,懒得写了(下次再细分)

YL2767 пре 2 месеци
родитељ
комит
8aef52a727
1 измењених фајлова са 18 додато и 3 уклоњено
  1. 18
    3
      src/view/ware/storechange.vue

+ 18
- 3
src/view/ware/storechange.vue Прегледај датотеку

@@ -13,7 +13,7 @@
13 13
 						<el-input v-model="query.stackName" size="small" style="width:120px;margin-left: -8px"></el-input>
14 14
 					</el-form-item>
15 15
 					<el-form-item label="钢板号" style="margin-left: -15px">
16
-						<el-input v-model="query.plateNo" size="small" style="width:120px;margin-left: -8px">
16
+						<el-input v-model="query.plateNo" size="small" style="width:120px;margin-left: -8px" @input="getPltList">
17 17
 						</el-input>
18 18
 					</el-form-item>
19 19
 					<el-form-item label="物料名称" style="margin-left: -35px">
@@ -44,7 +44,7 @@
44 44
 					</el-form-item>
45 45
 					
46 46
 					<el-form-item label="订单号" style="margin-left: -15px">
47
-						<el-input v-model="query.ordNo" size="small" style="width:120px;margin-left: -8px">
47
+						<el-input v-model="query.ordNo" size="small" style="width:120px;margin-left: -8px" @input="getOrdList">
48 48
 						</el-input>
49 49
 					</el-form-item>
50 50
 					<el-form-item label="" style="margin-top: 0px;margin-left: 10px">
@@ -424,8 +424,11 @@
424 424
 					model: this.query.model,
425 425
 					materialName: this.query.materialName,
426 426
 					standard: this.query.standard,
427
-					customerName: this.query.customerName
427
+					customerName: this.query.customerName,
428
+					plateNo: this.query.plateNo == "" ? this.query.plateNo : this.query.plateNo.join(','),
429
+					ordNo: this.query.ordNo == "" ? this.query.ordNo : this.query.ordNo.join(',')
428 430
 				}
431
+				console.log(param);
429 432
 				axios.get(url, param).then(response => {
430 433
 					if (response.data.code == 0) {
431 434
 						this.tableData = response.data.data.list
@@ -704,6 +707,18 @@
704 707
 			selectAll(selection){
705 708
 				this.selectRows = selection;
706 709
 			},
710
+			getlist(){
711
+				const replaceResult = this.query.plateNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
712
+				this.query.plateNo = replaceResult;
713
+			},
714
+			getPltList(){
715
+				const replaceResult = this.query.plateNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
716
+				this.query.plateNo = replaceResult;
717
+			},
718
+			getOrdList(){
719
+				const replaceResult = this.query.ordNo.replace(/[;,,;\s\r\n]+/g, ",").split(",");
720
+				this.query.ordNo = replaceResult;
721
+			},
707 722
 
708 723
 			handleExport() {
709 724
 				var imptData = [];

Loading…
Откажи
Сачувај