1.增加提交单据到第三方系统功能按钮

master
x_z 3 years ago
parent 4829cbe8f9
commit 1ed9c3f11c

@ -278,4 +278,12 @@ export function stockOrderChange(query) {
});
}
export function submitStockOrderToThirdSys(params) {
return axios({
url: "/udiwms/stock/order/error/submitStockOrderToThirdSys",
method: "get",
params: params
})
}

@ -333,10 +333,8 @@
import {
stockOrderList, stockOrderDetail,
deleteStockOrderById, deleteStockOrderDetailById,
copyStockOrderDetail, submitStockOrder,
uploadStockOrderDetail, uploadStockOrderDetailCount,
generateStockOrderQRCodeText, supplementOrder,
updateStockOrderDetail
copyStockOrderDetail, uploadStockOrderDetail,supplementOrder,
updateStockOrderDetail, submitStockOrderToThirdSys
} from "../../api/inout/stockOrder";
import stockOrderDistribution from "./stockOrderDistribution";
import stockOrderQRCodeDetail from "./stockOrderQRCodeDetail";
@ -882,10 +880,15 @@ export default {
type: "warning",
center: true
}).then(() => {
this.$message({
type: "success",
message: "提交成功!"
})
let params = {id: row.id};
submitStockOrderToThirdSys(params).then((res) => {
this.$message({
type: "success",
message: "提交成功!"
})
}).catch((error) => {
this.$message.error("提交失败");
});
}).catch(() => {
this.$message({
type: "info",
@ -893,10 +896,20 @@ export default {
})
})
} else {
this.$message({
type: "success",
message: "提交成功!"
})
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("提交失败");
});
}
}
},

Loading…
Cancel
Save