Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
@ -273,7 +273,7 @@ export class SupplyManagementBulkComponent implements OnInit {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: '取消货源',
|
text: '取消货源',
|
||||||
// click: (_record) => this.delOne(_record),
|
click: (_record) => this.delOne(_record),
|
||||||
// iif: item => item.auditStatus === 1 || item.auditStatus === 2,
|
// iif: item => item.auditStatus === 1 || item.auditStatus === 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -417,6 +417,24 @@ handleOK() {
|
|||||||
sta: 4
|
sta: 4
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
// 取消货源
|
||||||
|
delOne(item: any) {
|
||||||
|
this.modal.confirm({
|
||||||
|
nzTitle: '<b>确定取消货源吗?</b>',
|
||||||
|
nzContent: `<b>取消后不可恢复,谨慎操作</b>`,
|
||||||
|
nzOnOk: () =>
|
||||||
|
this.service.request(this.service.$api_cancelSource, {id: item.id}).subscribe((res) => {
|
||||||
|
if(res) {
|
||||||
|
this.service.msgSrv.success('已取消货源!')
|
||||||
|
this.st?.reload();
|
||||||
|
this.getGoodsSourceStatistical();
|
||||||
|
} else {
|
||||||
|
this.service.msgSrv.error(res.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
// 获取货源状态统计
|
// 获取货源状态统计
|
||||||
getGoodsSourceStatistical() {
|
getGoodsSourceStatistical() {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: your name
|
* @Author: your name
|
||||||
* @Date: 2021-12-03 11:10:14
|
* @Date: 2021-12-03 11:10:14
|
||||||
* @LastEditTime: 2021-12-21 15:45:48
|
* @LastEditTime: 2021-12-22 10:45:44
|
||||||
* @LastEditors: Please set LastEditors
|
* @LastEditors: Please set LastEditors
|
||||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
* @FilePath: \tms-obc-web\src\app\routes\supply-management\services\supply-management.service.ts
|
* @FilePath: \tms-obc-web\src\app\routes\supply-management\services\supply-management.service.ts
|
||||||
@ -44,6 +44,8 @@ export class SupplyManagementService extends BaseService {
|
|||||||
public $api_getList = '/api/mdc/cuc/enterpriseInfo/cargoOwner/getList?_allow_anonymous=true';
|
public $api_getList = '/api/mdc/cuc/enterpriseInfo/cargoOwner/getList?_allow_anonymous=true';
|
||||||
// 获取货主企业列表
|
// 获取货主企业列表
|
||||||
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
|
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
|
||||||
|
// 取消货源
|
||||||
|
public $api_cancelSource = '/api/sdc/goodsResourceOperate/cancelSource';
|
||||||
constructor(public injector: Injector) {
|
constructor(public injector: Injector) {
|
||||||
super(injector)
|
super(injector)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user