变更运费更改
This commit is contained in:
@ -60,7 +60,7 @@ export class OrderManagementBulkComponent implements OnInit {
|
||||
public shipperservice: ShipperBaseService,
|
||||
private router: Router,
|
||||
private ar: ActivatedRoute,
|
||||
) {}
|
||||
) { }
|
||||
|
||||
/**
|
||||
* 查询参数
|
||||
@ -108,7 +108,7 @@ export class OrderManagementBulkComponent implements OnInit {
|
||||
this.loading = false
|
||||
return data.map(item => ({
|
||||
...item,
|
||||
disabled: item.billStatus !== '4'
|
||||
disabled: item.billStatus !== '4'
|
||||
}));
|
||||
};
|
||||
get selectedRows() {
|
||||
@ -185,14 +185,14 @@ export class OrderManagementBulkComponent implements OnInit {
|
||||
type: 'string',
|
||||
title: '订单号',
|
||||
ui: {
|
||||
placeholder: '最多100个单号,空号隔开',
|
||||
placeholder: '最多100个单号,空号隔开',
|
||||
}
|
||||
},
|
||||
wayBillCode: {
|
||||
type: 'string',
|
||||
title: '运单号',
|
||||
ui: {
|
||||
placeholder: '最多100个单号,空号隔开',
|
||||
placeholder: '最多100个单号,空号隔开',
|
||||
}
|
||||
},
|
||||
resourceCode: {
|
||||
@ -212,7 +212,7 @@ export class OrderManagementBulkComponent implements OnInit {
|
||||
_$expand: (value: boolean) => value
|
||||
},
|
||||
onSearch: (q: any) => {
|
||||
let str =q.replace(/^\s+|\s+$/g,"");
|
||||
let str = q.replace(/^\s+|\s+$/g, "");
|
||||
if (str) {
|
||||
return this.service
|
||||
.request(this.service.$api_enterpriceList, { enterpriseName: str })
|
||||
@ -469,7 +469,7 @@ export class OrderManagementBulkComponent implements OnInit {
|
||||
width: '180px',
|
||||
className: 'text-left',
|
||||
format: (item: any) =>
|
||||
`${item?.goodsName}/
|
||||
`${item?.goodsName}/
|
||||
${item?.weight || '0'}吨/
|
||||
${item?.volume || '0'}方/
|
||||
${item?.goodsNumber || '0'}件`
|
||||
@ -559,7 +559,10 @@ export class OrderManagementBulkComponent implements OnInit {
|
||||
{
|
||||
text: '变更运费',
|
||||
click: _record => this.updateFreight(_record),
|
||||
iif: item => item.billStatus !== '1' && item.billStatus !== '6' && item.overallPaymentStatus != '2',
|
||||
iif: _record => {
|
||||
const flag = _record.mybidDetailInfo.find((item: any) => item?.expenseCode === 'TRA' && item?.paymentStatus === '4');
|
||||
return _record.billStatus !== '1' && _record.billStatus !== '6' && !flag;
|
||||
},
|
||||
acl: { ability: ['ORDER-BULK-FreightChangeBulkDetail'] },
|
||||
},
|
||||
{
|
||||
@ -857,6 +860,6 @@ export class OrderManagementBulkComponent implements OnInit {
|
||||
}
|
||||
// 导出
|
||||
exprot() {
|
||||
this.service.exportStart({ ...this.reqParams, pageSize: -1 },this.service.$api_get_asyncExportBulkList);
|
||||
this.service.exportStart({ ...this.reqParams, pageSize: -1 }, this.service.$api_get_asyncExportBulkList);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user