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

Loading…
Cancel
Save