This commit is contained in:
wangshiming
2022-03-24 14:03:44 +08:00
parent e37601b0af
commit d64d0d7ed4

View File

@ -147,11 +147,50 @@ export class SupplyManagementVehicleComponent implements OnInit {
this.st.load(1); this.st.load(1);
}, 500); }, 500);
} }
/** /**
* 导入货源 * 导入货源
*/ */
importGoodsSource() { } importGoodsSource() {
const modalRef = this.modal.create({
nzTitle: '货源导入',
nzWidth: 600,
nzContent: SupplyManagementImportSupplyComponent,
nzComponentParams: {
// i: item
},
nzFooter: null
});
modalRef.afterClose.subscribe(result => {
if (result) {
const tipsModal = this.modal.create({
nzTitle: '上传提示',
nzWidth: 600,
nzContent: `<div>文件上传完成!成功<span class="text-blue-dark">${result?.successNumber}</span>条,失败<span class="text-red-dark">${result?.failNumber}</span>条!</div>`,
nzFooter: [
{
label: '取 消',
type: 'default',
onClick: () => {
tipsModal.destroy();
}
},
{
label: '下载失败数据',
type: 'primary',
onClick: () => {
this.service.request(this.service.$api_getFailUploadGoodsOperateResource, result.ids).subscribe((res: any) => {
if(res) {
console.log(res);
}
})
console.log(111);
}
},
]
})
}
});
}
/** /**
* 修改运费 * 修改运费