Browse Source

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

YL2767 2 months ago
parent
commit
8aef52a727
1 changed files with 18 additions and 3 deletions
  1. 18
    3
      src/view/ware/storechange.vue

+ 18
- 3
src/view/ware/storechange.vue View File

13
 						<el-input v-model="query.stackName" size="small" style="width:120px;margin-left: -8px"></el-input>
13
 						<el-input v-model="query.stackName" size="small" style="width:120px;margin-left: -8px"></el-input>
14
 					</el-form-item>
14
 					</el-form-item>
15
 					<el-form-item label="钢板号" style="margin-left: -15px">
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
 						</el-input>
17
 						</el-input>
18
 					</el-form-item>
18
 					</el-form-item>
19
 					<el-form-item label="物料名称" style="margin-left: -35px">
19
 					<el-form-item label="物料名称" style="margin-left: -35px">
44
 					</el-form-item>
44
 					</el-form-item>
45
 					
45
 					
46
 					<el-form-item label="订单号" style="margin-left: -15px">
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
 						</el-input>
48
 						</el-input>
49
 					</el-form-item>
49
 					</el-form-item>
50
 					<el-form-item label="" style="margin-top: 0px;margin-left: 10px">
50
 					<el-form-item label="" style="margin-top: 0px;margin-left: 10px">
424
 					model: this.query.model,
424
 					model: this.query.model,
425
 					materialName: this.query.materialName,
425
 					materialName: this.query.materialName,
426
 					standard: this.query.standard,
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
 				axios.get(url, param).then(response => {
432
 				axios.get(url, param).then(response => {
430
 					if (response.data.code == 0) {
433
 					if (response.data.code == 0) {
431
 						this.tableData = response.data.data.list
434
 						this.tableData = response.data.data.list
704
 			selectAll(selection){
707
 			selectAll(selection){
705
 				this.selectRows = selection;
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
 			handleExport() {
723
 			handleExport() {
709
 				var imptData = [];
724
 				var imptData = [];

Loading…
Cancel
Save