|
@ -105,6 +105,7 @@ import * as SupplierdeliverRequestMainApi from '@/api/wms/supplierdeliverRequest |
|
|
import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail' |
|
|
import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
import point from '@/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/point.vue' |
|
|
import point from '@/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/point.vue' |
|
|
|
|
|
import * as SupplierdeliverRecordMainApi from '@/api/wms/supplierdeliverRecordMain' |
|
|
|
|
|
|
|
|
// 供应商发货申请 |
|
|
// 供应商发货申请 |
|
|
defineOptions({ name: 'SupplierdeliverRequestMain' }) |
|
|
defineOptions({ name: 'SupplierdeliverRequestMain' }) |
|
@ -465,8 +466,13 @@ const genRecords = async (id: number) => { |
|
|
await message.confirm('是否处理所选中数据?') |
|
|
await message.confirm('是否处理所选中数据?') |
|
|
tableObject.loading = true |
|
|
tableObject.loading = true |
|
|
// 发起处理 |
|
|
// 发起处理 |
|
|
await SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id) |
|
|
await SupplierdeliverRequestMainApi.genRecordsSupplierdeliverRequestMain(id).then(res => { |
|
|
message.success(t('处理成功!')) |
|
|
message.success(t('处理成功!')) |
|
|
|
|
|
if(!res){ |
|
|
|
|
|
SupplierdeliverRecordMainApi.createPurchasereceiptRequest(res.number) |
|
|
|
|
|
message.success(t('采购申请生成成功')) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
// 刷新列表 |
|
|
// 刷新列表 |
|
|
await getList() |
|
|
await getList() |
|
|
} catch {}finally{ |
|
|
} catch {}finally{ |
|
|