diff --git a/src/views/basic/BasicThirdSys.vue b/src/views/basic/BasicThirdSys.vue
index 5302d95..f966bd5 100644
--- a/src/views/basic/BasicThirdSys.vue
+++ b/src/views/basic/BasicThirdSys.vue
@@ -235,7 +235,7 @@
第三方单据类型:
-
+
{
- 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) {