|
|
@ -160,7 +160,7 @@ |
|
|
|
<el-input v-model.number="form.beginHostSN" placeholder="" clearable type="number" size="small" style="width: 240px" |
|
|
|
@change="beginHostSNChange" /> |
|
|
|
<label class="label1">-</label> |
|
|
|
<el-input v-model="form.endHostSN" placeholder="" clearable :disabled="true" size="small" style="width: 240px;" /> |
|
|
|
<el-input v-show="this.listQuery.productType === 2" v-model="form.endHostSN" placeholder="" clearable :disabled="true" size="small" style="width: 240px;" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -1172,7 +1172,7 @@ |
|
|
|
this.hostPrintQuery.fwStation = this.listQuery.fwStation; |
|
|
|
|
|
|
|
//后端服务更改了 前端跟着更改成以下方式 |
|
|
|
if (this.listQuery.productType === 1) { |
|
|
|
if (this.listQuery.productType === 1) { //打印门板分支 |
|
|
|
//门板 |
|
|
|
this.hostSNQuery.isZhuHuBan = "0"; |
|
|
|
console.log("门板hostsn2参数" + JSON.stringify(this.hostSNQuery)); |
|
|
@ -1186,9 +1186,20 @@ |
|
|
|
console.log(response.item); |
|
|
|
if (response.item !== null) { |
|
|
|
this.form.beginHostSN = parseInt(response.item.beginHostSN); |
|
|
|
this.printNum = parseInt(response.item.count); |
|
|
|
this.printNum = parseInt(response.item.count); //从数据库中取未打印订单数 |
|
|
|
if (this.listQuery.productLine == "01") { |
|
|
|
if (this.printNum > 26) { |
|
|
|
this.printNum = 26; |
|
|
|
} |
|
|
|
} |
|
|
|
else if (this.listQuery.productLine == "02") { |
|
|
|
if (this.printNum > 24) { |
|
|
|
this.printNum = 24; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (this.listQuery.productType === 1) { |
|
|
|
this.form.endHostSN = parseInt(response.item.beginHostSN) + parseInt(response.item.count) - 1; |
|
|
|
this.form.endHostSN = parseInt(response.item.beginHostSN) + this.printNum - 1; |
|
|
|
} else if (this.listQuery.productType === 2) { |
|
|
|
//柱护板 |
|
|
|
this.form.endHostSN = parseInt(response.item) + 23; |
|
|
@ -1201,7 +1212,7 @@ |
|
|
|
return; |
|
|
|
} |
|
|
|
}); |
|
|
|
} else if (this.listQuery.productType === 2) { |
|
|
|
} else if (this.listQuery.productType === 2) { //打印柱护板分支 |
|
|
|
//柱护板 |
|
|
|
this.hostSNQuery.isZhuHuBan = "1"; |
|
|
|
console.log("柱护板hostsn2参数" + JSON.stringify(this.hostSNQuery)); |
|
|
@ -1264,8 +1275,13 @@ |
|
|
|
case "00": |
|
|
|
this.productName = "全部门板"; |
|
|
|
break; |
|
|
|
case "01": |
|
|
|
this.productName = "大众一厂"; |
|
|
|
break; |
|
|
|
case "02": |
|
|
|
this.productName = "大众二厂"; |
|
|
|
break; |
|
|
|
} |
|
|
|
|
|
|
|
this.formTitle = "打印-门板发货排序单"; |
|
|
|
} else { |
|
|
|
this.productName = ""; |
|
|
|