|
@@ -1592,7 +1592,7 @@ export default {
|
|
|
this.form = response.data[0];
|
|
|
this.tableData = response.data;
|
|
|
|
|
|
- await this.getAllBatchData(); //获取所有产品数据
|
|
|
+ await this.getAllBatchData(this.form.machineTool); //获取所有产品数据
|
|
|
await this.getLineOptionLsit(); //获取机台选项数据
|
|
|
await this.getSelectOptions();
|
|
|
this.initProductData();
|
|
@@ -1611,7 +1611,7 @@ export default {
|
|
|
this.printAuto = false;
|
|
|
this.form = response.data[0];
|
|
|
this.tableData = response.data;
|
|
|
- await this.getAllBatchData(); //获取所有产品数据
|
|
|
+ await this.getAllBatchData(this.form.machineTool); //获取所有产品数据
|
|
|
await this.getLineOptionLsit(); //获取机台选项数据
|
|
|
await this.getSelectOptions();
|
|
|
this.initProductData();
|
|
@@ -1622,7 +1622,11 @@ export default {
|
|
|
// 初始化产品相关数据
|
|
|
initProductData() {
|
|
|
this.batchNum = this.form.lotNum;
|
|
|
- this.batchNumChange();
|
|
|
+ // this.batchNumChange();
|
|
|
+ console.log(this.batchData);
|
|
|
+ this.batchTableData = this.batchData.filter(
|
|
|
+ (item) => item.productId == this.tableData[0].productId
|
|
|
+ );
|
|
|
if (this.batchTableData.length) {
|
|
|
let {
|
|
|
machineTool,
|