|
|
|
@ -487,39 +487,41 @@ export default {
|
|
|
|
|
type: "warning",
|
|
|
|
|
center: true
|
|
|
|
|
}).then(() => {
|
|
|
|
|
let params = {id: row.id};
|
|
|
|
|
submitStockOrderToThirdSys(params).then((res) => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "提交成功!"
|
|
|
|
|
})
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.$message.error("提交失败");
|
|
|
|
|
});
|
|
|
|
|
this.confirmSubmitOrder(row);
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "info",
|
|
|
|
|
message: "已取消"
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
let params = {id: row.id};
|
|
|
|
|
submitStockOrderToThirdSys(params).then((res) => {
|
|
|
|
|
if (res.code == 20000) {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: "success",
|
|
|
|
|
message: "提交成功!"
|
|
|
|
|
});
|
|
|
|
|
this.getList();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error("提交失败");
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.$message.error("提交失败");
|
|
|
|
|
});
|
|
|
|
|
this.$confirm("确定手动上传单据?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|
cancelButtonText: "取消",
|
|
|
|
|
type: "warning",
|
|
|
|
|
center: true
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.confirmSubmitOrder(row);
|
|
|
|
|
}).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: {},
|
|
|
|
|
filters: {
|
|
|
|
|
statusFilterType(status) {
|
|
|
|
|