车辆对接
This commit is contained in:
@ -273,7 +273,7 @@ export class SupplyManagementBulkComponent implements OnInit {
|
||||
},
|
||||
{
|
||||
text: '取消货源',
|
||||
// click: (_record) => this.delOne(_record),
|
||||
click: (_record) => this.delOne(_record),
|
||||
// iif: item => item.auditStatus === 1 || item.auditStatus === 2,
|
||||
},
|
||||
{
|
||||
@ -417,6 +417,24 @@ handleOK() {
|
||||
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() {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-03 11:10:14
|
||||
* @LastEditTime: 2021-12-16 20:16:30
|
||||
* @LastEditTime: 2021-12-22 10:37:47
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
|
||||
@ -74,9 +74,9 @@ size="small"
|
||||
<ng-template st-row="resourceCode" let-item let-index="index">
|
||||
<a [routerLink]="'/supply-management/vehicle-detail/'+item.id">{{item.resourceCode}}</a>
|
||||
</ng-template>
|
||||
<ng-template st-row="vehicleDemand" let-item let-index="index">
|
||||
<div>车型: {{item?.vehicleDemand?.maxWeight}}</div>
|
||||
<div class="error">车长: {{item?.vehicleDemand?.maxCube}} 米</div>
|
||||
<ng-template st-row="demand" let-item let-index="index">
|
||||
<div>车型: {{item.maxWeightLabel}}</div>
|
||||
<div class="error">车长: {{item.maxCubeLabel}} 米</div>
|
||||
</ng-template>
|
||||
<ng-template st-row="serviceType" let-item let-index="index">
|
||||
<span *ngIf="item?.serviceType === 1 || item?.serviceType === '1'">抢单</span>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Author: your name
|
||||
* @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
|
||||
* @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
|
||||
@ -44,6 +44,8 @@ export class SupplyManagementService extends BaseService {
|
||||
public $api_getList = '/api/mdc/cuc/enterpriseInfo/cargoOwner/getList?_allow_anonymous=true';
|
||||
// 获取货主企业列表
|
||||
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
|
||||
// 取消货源
|
||||
public $api_cancelSource = '/api/sdc/goodsResourceOperate/cancelSource';
|
||||
constructor(public injector: Injector) {
|
||||
super(injector)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user