|
|
@ -18,7 +18,7 @@ |
|
|
<el-button type="primary" @click="feedingMaterialRollFun">{{ buttons.confirmButton }}</el-button> |
|
|
<el-button type="primary" @click="feedingMaterialRollFun">{{ buttons.confirmButton }}</el-button> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row > |
|
|
|
|
|
|
|
|
<el-row> |
|
|
<el-col style="margin-top: -10px" :span="16"> |
|
|
<el-col style="margin-top: -10px" :span="16"> |
|
|
<el-form-item :label=labels.bomItemNo> |
|
|
<el-form-item :label=labels.bomItemNo> |
|
|
<el-select v-model="pageData.bomItemNo" :disabled="selectFlag" style="width: 120px"> |
|
|
<el-select v-model="pageData.bomItemNo" :disabled="selectFlag" style="width: 120px"> |
|
|
@ -35,7 +35,7 @@ |
|
|
<el-button type="primary" @click="closeDialog">{{ buttons.closeButton }}</el-button> |
|
|
<el-button type="primary" @click="closeDialog">{{ buttons.closeButton }}</el-button> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row > |
|
|
|
|
|
|
|
|
<el-row> |
|
|
<el-col style="margin-top: -10px" :span="24"> |
|
|
<el-col style="margin-top: -10px" :span="24"> |
|
|
<el-form-item :label='labels.rollNoQty'> |
|
|
<el-form-item :label='labels.rollNoQty'> |
|
|
<el-input v-model="pageData.rollQty" readonly |
|
|
<el-input v-model="pageData.rollQty" readonly |
|
|
@ -45,7 +45,7 @@ |
|
|
</el-col> |
|
|
</el-col> |
|
|
|
|
|
|
|
|
</el-row> |
|
|
</el-row> |
|
|
<el-row > |
|
|
|
|
|
|
|
|
<el-row> |
|
|
<el-col style="margin-top: -10px" :span="24"> |
|
|
<el-col style="margin-top: -10px" :span="24"> |
|
|
<el-form-item :label='labels.depleteQty'> |
|
|
<el-form-item :label='labels.depleteQty'> |
|
|
<el-input v-model="pageData.qtyConsumed" type="number" min="0" |
|
|
<el-input v-model="pageData.qtyConsumed" type="number" min="0" |
|
|
@ -66,6 +66,7 @@ import { |
|
|
scannerMaterial |
|
|
scannerMaterial |
|
|
} from "@/api/yieldReport/com_produce_material.js"; |
|
|
} from "@/api/yieldReport/com_produce_material.js"; |
|
|
|
|
|
|
|
|
|
|
|
import {infoRollno} from "@/api/crollinfo/crollinfo.js"; |
|
|
import { |
|
|
import { |
|
|
searchFunctionButtonList, |
|
|
searchFunctionButtonList, |
|
|
} from "@/api/sysLanguage.js"; |
|
|
} from "@/api/sysLanguage.js"; |
|
|
@ -227,7 +228,7 @@ export default { |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
|
|
|
//初始化页面的参数 |
|
|
//初始化页面的参数 |
|
|
init(scheduleData, operatorData,selectSfdcRollData) { |
|
|
|
|
|
|
|
|
init(scheduleData, operatorData, selectSfdcRollData) { |
|
|
//初始化参数 |
|
|
//初始化参数 |
|
|
this.scheduleData = scheduleData; |
|
|
this.scheduleData = scheduleData; |
|
|
//初始化操作员对象 |
|
|
//初始化操作员对象 |
|
|
@ -237,7 +238,7 @@ export default { |
|
|
this.pageData.itemNo = scheduleData.itemNo; |
|
|
this.pageData.itemNo = scheduleData.itemNo; |
|
|
this.pageData.seqNo = scheduleData.seqNo; |
|
|
this.pageData.seqNo = scheduleData.seqNo; |
|
|
this.pageData.rollNo = selectSfdcRollData.rollNo; |
|
|
this.pageData.rollNo = selectSfdcRollData.rollNo; |
|
|
this.pageData.rollQty = selectSfdcRollData.rollQty; |
|
|
|
|
|
|
|
|
// this.pageData.rollQty = selectSfdcRollData.rollQty; |
|
|
this.pageData.scanRmRollNo = ''; |
|
|
this.pageData.scanRmRollNo = ''; |
|
|
this.pageData.rmRollNo = ''; |
|
|
this.pageData.rmRollNo = ''; |
|
|
this.pageData.bomItemNo = ''; |
|
|
this.pageData.bomItemNo = ''; |
|
|
@ -291,6 +292,12 @@ export default { |
|
|
} |
|
|
} |
|
|
//处理扫描材料卷号 |
|
|
//处理扫描材料卷号 |
|
|
this.refreshSomItemNos(); |
|
|
this.refreshSomItemNos(); |
|
|
|
|
|
// 查询卷信息 |
|
|
|
|
|
infoRollno({site: this.pageData.site, rollno: this.pageData.scanRmRollNo}).then(({data}) => { |
|
|
|
|
|
if (data.code == 0){ |
|
|
|
|
|
this.pageData.rollQty = data.cRollinfo.rollqty |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/*获取BOM行号*/ |
|
|
/*获取BOM行号*/ |
|
|
@ -328,15 +335,15 @@ export default { |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
//判断是否选中行号 |
|
|
//判断是否选中行号 |
|
|
if (!this.pageData.qtyConsumed ) { |
|
|
|
|
|
|
|
|
if (!this.pageData.qtyConsumed) { |
|
|
this.$message.error(this.labels.pleaseQtyConsumed) |
|
|
this.$message.error(this.labels.pleaseQtyConsumed) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
if (this.pageData.qtyConsumed <=0 ) { |
|
|
|
|
|
|
|
|
if (this.pageData.qtyConsumed <= 0) { |
|
|
this.$message.error(this.labels.pleaseQtyConsumed2) |
|
|
this.$message.error(this.labels.pleaseQtyConsumed2) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
if (this.pageData.qtyConsumed > this.pageData.rollQty ) { |
|
|
|
|
|
|
|
|
if (this.pageData.qtyConsumed > this.pageData.rollQty) { |
|
|
this.$message.error(this.labels.pleaseQtyConsumed3) |
|
|
this.$message.error(this.labels.pleaseQtyConsumed3) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
@ -346,16 +353,16 @@ export default { |
|
|
//清空当前扫描卷属性值 防止重复点击确认 |
|
|
//清空当前扫描卷属性值 防止重复点击确认 |
|
|
this.pageData.scanRmRollNo = ''; |
|
|
this.pageData.scanRmRollNo = ''; |
|
|
let dto = { |
|
|
let dto = { |
|
|
site:this.$store.state.user.site, |
|
|
|
|
|
orderNo: this.pageData.orderNo, |
|
|
|
|
|
itemNo: this.pageData.itemNo, |
|
|
|
|
|
seqNo: this.pageData.seqNo, |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
rollNo: this.pageData.rollNo, |
|
|
|
|
|
rmRollNo: this.pageData.rmRollNo, |
|
|
|
|
|
bomItemNo: this.pageData.bomItemNo, |
|
|
|
|
|
operatorId: this.pageData.operatorId, |
|
|
|
|
|
qtyConsumed: this.pageData.qtyConsumed , |
|
|
|
|
|
|
|
|
site: this.$store.state.user.site, |
|
|
|
|
|
orderNo: this.pageData.orderNo, |
|
|
|
|
|
itemNo: this.pageData.itemNo, |
|
|
|
|
|
seqNo: this.pageData.seqNo, |
|
|
|
|
|
userId: this.$store.state.user.name, |
|
|
|
|
|
rollNo: this.pageData.rollNo, |
|
|
|
|
|
rmRollNo: this.pageData.rmRollNo, |
|
|
|
|
|
bomItemNo: this.pageData.bomItemNo, |
|
|
|
|
|
operatorId: this.pageData.operatorId, |
|
|
|
|
|
qtyConsumed: this.pageData.qtyConsumed, |
|
|
} |
|
|
} |
|
|
//调用方法执行上材料 |
|
|
//调用方法执行上材料 |
|
|
scannerMaterial(this.pageData).then(({data}) => { |
|
|
scannerMaterial(this.pageData).then(({data}) => { |
|
|
@ -368,6 +375,9 @@ export default { |
|
|
this.pageData.bomItemNo = -1; |
|
|
this.pageData.bomItemNo = -1; |
|
|
this.bomList = []; |
|
|
this.bomList = []; |
|
|
this.timeArray = []; |
|
|
this.timeArray = []; |
|
|
|
|
|
this.pageData.rollQty = ''; |
|
|
|
|
|
this.pageData.qtyConsumed = ''; |
|
|
|
|
|
this.closeDialog() |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|