|
|
@@ -179,7 +179,6 @@
|
|
|
import { copyObj } from '@/utils/util';
|
|
|
import outSourceSendDialog from '@/views/purchasingManage/purchaseOrder/invoice/components/outSourceSendDialog.vue';
|
|
|
import { getPurchaseOutSourceSendDetailAPI } from '@/api/purchasingManage/outSourceSend';
|
|
|
- import { getWarehouseListByIds } from '@/api/purchasingManage/returnGoods';
|
|
|
// import fileMain from '@/components/addDoc/index.vue';
|
|
|
import processSubmitDialog from '@/BIZComponents/processSubmitDialog/processSubmitDialog.vue';
|
|
|
|
|
|
@@ -547,13 +546,7 @@
|
|
|
this.loading = false;
|
|
|
this.$message.success('修改成功');
|
|
|
if (type === 'sub') {
|
|
|
- let storemanIds = '';
|
|
|
- let ids = commitData.productList.map(
|
|
|
- (item) => item.warehouseId
|
|
|
- );
|
|
|
- let warehouseList = await getWarehouseListByIds(ids || []);
|
|
|
- storemanIds = warehouseList.map((item) => item.ownerId);
|
|
|
- this.sub(res, commitData.sourceType, storemanIds.toString());
|
|
|
+ this.sub(res, commitData.sourceType);
|
|
|
return;
|
|
|
}
|
|
|
this.cancel();
|
|
|
@@ -569,13 +562,7 @@
|
|
|
this.loading = false;
|
|
|
this.$message.success('新增成功');
|
|
|
if (type === 'sub') {
|
|
|
- let storemanIds = '';
|
|
|
- let ids = commitData.productList.map(
|
|
|
- (item) => item.warehouseId
|
|
|
- );
|
|
|
- let warehouseList = await getWarehouseListByIds(ids || []);
|
|
|
- storemanIds = warehouseList.map((item) => item.ownerId);
|
|
|
- this.sub(res, commitData.sourceType, storemanIds.toString());
|
|
|
+ this.sub(res, commitData.sourceType);
|
|
|
return;
|
|
|
}
|
|
|
this.cancel();
|
|
|
@@ -590,7 +577,7 @@
|
|
|
// 表单验证未通过,不执行保存操作
|
|
|
}
|
|
|
},
|
|
|
- async sub(res, sourceType, storemanIds) {
|
|
|
+ async sub(res, sourceType) {
|
|
|
const data = await getReceiveSaleOrderrecordDetail(
|
|
|
this.businessId || res
|
|
|
);
|
|
|
@@ -608,7 +595,6 @@
|
|
|
businessCode: data.receiveNo,
|
|
|
receiveType: data.receiveType,
|
|
|
sourceType: data.sourceType,
|
|
|
- storemanIds: storemanIds.toString(),
|
|
|
businessName: data.supplierName,
|
|
|
businessType: '采购收货'
|
|
|
}
|