|
|
@ -304,7 +304,6 @@ |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
style="width: 240px" |
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
/> |
|
|
|
<label class = "label1" >-</label> |
|
|
|
<el-input |
|
|
@ -313,7 +312,6 @@ |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
style="width: 240px" |
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -328,7 +326,6 @@ |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
style="width: 240px" |
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
/> |
|
|
|
<label class = "label1" >-</label> |
|
|
|
<el-input |
|
|
@ -337,7 +334,6 @@ |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
style="width: 240px" |
|
|
|
@keyup.enter.native="handleQuery" |
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
@ -904,7 +900,15 @@ export default { |
|
|
|
if(response.item !== null) |
|
|
|
{ |
|
|
|
this.form.beginHostSN = parseInt(response.item); |
|
|
|
this.form.endHostSN = parseInt(response.item) + 11; |
|
|
|
if(this.listQuery.productType === 1)//门板 |
|
|
|
{ |
|
|
|
this.form.endHostSN = parseInt(response.item) + 11; |
|
|
|
} |
|
|
|
else if(this.listQuery.productType === 2)//柱护板 |
|
|
|
{ |
|
|
|
this.form.endHostSN = parseInt(response.item) + 23; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
@ -1003,21 +1007,36 @@ export default { |
|
|
|
if(this.form.beginHostSN === "" || this.form.endHostSN === "") |
|
|
|
{ |
|
|
|
this.$message({ |
|
|
|
message: "请输入完整的底盘号起始范围", |
|
|
|
message: "请输入完整的顺序号起始范围", |
|
|
|
type: "error", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if(parseInt(this.form.endHostSN )-parseInt(this.form.beginHostSN) > 11) |
|
|
|
if(this.listQuery.productType === 1)//门板 |
|
|
|
{ |
|
|
|
this.$message({ |
|
|
|
message: "终止顺序号不能大于"+(parseInt(this.form.beginHostSN)+11), |
|
|
|
if(parseInt(this.form.endHostSN )-parseInt(this.form.beginHostSN) > 11) |
|
|
|
{ |
|
|
|
this.$message({ |
|
|
|
message: "最多只能打印12个顺序号,终止顺序号不能大于"+(parseInt(this.form.beginHostSN)+11), |
|
|
|
type: "error", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
else if(this.listQuery.productType === 2)//柱护板 |
|
|
|
{ |
|
|
|
if(parseInt(this.form.endHostSN )-parseInt(this.form.beginHostSN) > 23) |
|
|
|
{ |
|
|
|
this.$message({ |
|
|
|
message: "最多只能打印24个顺序号,终止顺序号不能大于"+(parseInt(this.form.beginHostSN)+23), |
|
|
|
type: "error", |
|
|
|
}); |
|
|
|
return; |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
@ -1031,17 +1050,6 @@ export default { |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if(parseInt(this.form.endHostSN )-parseInt(this.form.beginHostSN) > 11) |
|
|
|
{ |
|
|
|
this.$message({ |
|
|
|
message: "终止顺序号不能大于"+(parseInt(this.form.beginHostSN)+11), |
|
|
|
type: "error", |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
/**打印时传递大众顺序号范围,接口1获取大众顺序号,接口2验证是否断号,接口3获取打印数据,接口4获得grid++模板的base64编码 */ |
|
|
@ -1186,6 +1194,11 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
|
message: response.message, |
|
|
|
type: "error", |
|
|
|
}); |
|
|
|
return; |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
@ -1226,6 +1239,11 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
|
message: response.message, |
|
|
|
type: "error", |
|
|
|
}); |
|
|
|
return; |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -1277,6 +1295,11 @@ export default { |
|
|
|
|
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
|
message: response.message, |
|
|
|
type: "error", |
|
|
|
}); |
|
|
|
return; |
|
|
|
}); |
|
|
|
} |
|
|
|
else if(this.listQuery.productType === 2)//柱护板 |
|
|
@ -1316,6 +1339,11 @@ export default { |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
this.$message({ |
|
|
|
message: response.message, |
|
|
|
type: "error", |
|
|
|
}); |
|
|
|
return; |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|