|
|
|
@ -1141,11 +1141,12 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const code = sr.workorderCode;
|
|
|
|
|
const machineCode = sr.machineCode;
|
|
|
|
|
let _this = this;
|
|
|
|
|
this.$modal
|
|
|
|
|
.confirm('是否确认工单"' + code + '"的数据项向sap报工?')
|
|
|
|
|
.confirm('是否确认线体'+machineCode+',工单' + code + '的数据项向sap报工?')
|
|
|
|
|
.then(function () {
|
|
|
|
|
reportSap(code).then((response) => {
|
|
|
|
|
reportSap(code,machineCode).then((response) => {
|
|
|
|
|
if (response != null && response.code == 200) {
|
|
|
|
|
_this.$modal.msgSuccess("报工成功");
|
|
|
|
|
}
|
|
|
|
@ -1161,11 +1162,12 @@ export default {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
let sr = this.selectRow[0];
|
|
|
|
|
const code = sr.workorderCode;
|
|
|
|
|
const machineCode = sr.machineCode;
|
|
|
|
|
let _this = this;
|
|
|
|
|
this.$modal
|
|
|
|
|
.confirm('是否确认工单"' + code + '"的数据项撤销sap报工?')
|
|
|
|
|
.then(function () {
|
|
|
|
|
reportSapCancel(code).then((response) => {
|
|
|
|
|
reportSapCancel(code,machineCode).then((response) => {
|
|
|
|
|
if (response != null && response.code == 200) {
|
|
|
|
|
_this.$modal.msgSuccess("报工撤销成功");
|
|
|
|
|
}
|
|
|
|
@ -1191,6 +1193,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.queryParams.workorderCode = sr.workorderCode;
|
|
|
|
|
this.queryParams.machineCode = sr.machineCode;
|
|
|
|
|
|
|
|
|
|
//查询工单报工记录列表
|
|
|
|
|
getAllLevelReportList(this.queryParams).then((response) => {
|
|
|
|
@ -1298,6 +1301,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.queryParams.workorderCode = sr.workorderCode;
|
|
|
|
|
this.queryParams.machineCode = sr.machineCode;
|
|
|
|
|
//查询母工单报工记录列表
|
|
|
|
|
getAllLevelConsumeList(this.queryParams).then((response) => {
|
|
|
|
|
this.libConsumeTabs = response;
|
|
|
|
|