|
|
@ -479,6 +479,22 @@ export default {
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
myubmitOrder(row) {
|
|
|
|
|
|
|
|
let params = {id: row.id};
|
|
|
|
|
|
|
|
submitStockOrderToThirdSys(params).then((res) => {
|
|
|
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
type: "success",
|
|
|
|
|
|
|
|
message: "提交成功!"
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
this.$message.error("提交失败");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
submitOrder(row) {
|
|
|
|
submitOrder(row) {
|
|
|
|
if (row.exportStatus == 1) {
|
|
|
|
if (row.exportStatus == 1) {
|
|
|
|
this.$confirm("单据已经提交,是否重复提交?", "提示", {
|
|
|
|
this.$confirm("单据已经提交,是否重复提交?", "提示", {
|
|
|
@ -487,7 +503,7 @@ export default {
|
|
|
|
type: "warning",
|
|
|
|
type: "warning",
|
|
|
|
center: true
|
|
|
|
center: true
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
this.confirmSubmitOrder(row);
|
|
|
|
this.myubmitOrder(row);
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -498,30 +514,17 @@ export default {
|
|
|
|
type: "warning",
|
|
|
|
type: "warning",
|
|
|
|
center: true
|
|
|
|
center: true
|
|
|
|
}).then(() => {
|
|
|
|
}).then(() => {
|
|
|
|
this.confirmSubmitOrder(row);
|
|
|
|
this.myubmitOrder(row);
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
confirmSubmitOrder(row) {
|
|
|
|
|
|
|
|
let params = {id: row.id};
|
|
|
|
|
|
|
|
submitStockOrderToThirdSys(params).then((res) => {
|
|
|
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
|
|
|
type: "success",
|
|
|
|
|
|
|
|
message: "提交成功!"
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((error) => {
|
|
|
|
},
|
|
|
|
this.$message.error("提交失败");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
components: {},
|
|
|
|
components: {},
|
|
|
|
filters: {
|
|
|
|
filters: {
|
|
|
|
statusFilterType(status) {
|
|
|
|
statusFilterType(status) {
|
|
|
|