|
|
@@ -1219,7 +1219,7 @@ export default {
|
|
|
this.getDicts("sys_store_order_delivery_status").then(response => {
|
|
|
this.deliveryStatusOptions = response.data;
|
|
|
});
|
|
|
- this.getErpAccountList();
|
|
|
+ //this.getErpAccountList();
|
|
|
this.getAppMallOptions();
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -1477,32 +1477,32 @@ export default {
|
|
|
this.calculateOrderSummary();
|
|
|
},
|
|
|
|
|
|
- //获取ERP账户列表
|
|
|
- async getErpAccountList() {
|
|
|
- try {
|
|
|
- const response = await getErpAccount();
|
|
|
- if (response.code === 200) {
|
|
|
- const list = response.data || [];
|
|
|
- this.erpAccountList = [...list];
|
|
|
- this.erpAccountQueryList = [...list, '未分拣'];
|
|
|
- // 设置默认值:第一条真实账户
|
|
|
- if (list.length && !this.queryParams.erpAccount) {
|
|
|
- this.$set(this.queryParams, 'erpAccount', list[0]);
|
|
|
- this.getList();
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.$message.error(response.msg || '获取ERP账户列表失败');
|
|
|
- this.erpAccountList = [];
|
|
|
- }
|
|
|
+ // //获取ERP账户列表
|
|
|
+ // async getErpAccountList() {
|
|
|
+ // try {
|
|
|
+ // const response = await getErpAccount();
|
|
|
+ // if (response.code === 200) {
|
|
|
+ // const list = response.data || [];
|
|
|
+ // this.erpAccountList = [...list];
|
|
|
+ // this.erpAccountQueryList = [...list, '未分拣'];
|
|
|
+ // // 设置默认值:第一条真实账户
|
|
|
+ // if (list.length && !this.queryParams.erpAccount) {
|
|
|
+ // this.$set(this.queryParams, 'erpAccount', list[0]);
|
|
|
+ // this.getList();
|
|
|
+ // }
|
|
|
+ // } else {
|
|
|
+ // this.$message.error(response.msg || '获取ERP账户列表失败');
|
|
|
+ // this.erpAccountList = [];
|
|
|
+ // }
|
|
|
|
|
|
- } catch (error) {
|
|
|
- console.error('获取ERP账户列表失败:', error);
|
|
|
- this.$message.error('获取ERP账户列表失败');
|
|
|
- this.erpAccountList = [];
|
|
|
- } finally {
|
|
|
- this.erpAccountDialog.loading = false;
|
|
|
- }
|
|
|
- },
|
|
|
+ // } catch (error) {
|
|
|
+ // console.error('获取ERP账户列表失败:', error);
|
|
|
+ // this.$message.error('获取ERP账户列表失败');
|
|
|
+ // this.erpAccountList = [];
|
|
|
+ // } finally {
|
|
|
+ // this.erpAccountDialog.loading = false;
|
|
|
+ // }
|
|
|
+ // },
|
|
|
|
|
|
// 新增:计算订单统计信息
|
|
|
calculateOrderSummary() {
|
|
|
@@ -1614,7 +1614,7 @@ export default {
|
|
|
if (response.code === 200) {
|
|
|
this.$message.success('订单ERP账号设置成功');
|
|
|
this.cancelErpAccountDialog();
|
|
|
- this.getErpAccountList(); // 刷新列表
|
|
|
+ //this.getErpAccountList(); // 刷新列表
|
|
|
this.getList();
|
|
|
} else {
|
|
|
this.$message.error(response.msg || 'ERP账号设置失败');
|
|
|
@@ -1675,7 +1675,7 @@ export default {
|
|
|
if (response.code === 200) {
|
|
|
this.$message.success('ERP订单创建成功');
|
|
|
this.cancelErpAccountDialog();
|
|
|
- this.getErpAccountList(); // 刷新列表
|
|
|
+ //this.getErpAccountList(); // 刷新列表
|
|
|
this.getList();
|
|
|
} else {
|
|
|
this.$message.error(response.msg || 'ERP订单创建失败');
|