初步联调货源
This commit is contained in:
@ -13,7 +13,7 @@ import { SupplyManagementUpdatePriceComponent } from '../update-price/update-pri
|
||||
templateUrl: './bulk.component.html',
|
||||
})
|
||||
export class SupplyManagementBulkComponent implements OnInit {
|
||||
url = `/user?_allow_anonymous=true`;
|
||||
resourceStatus: any;
|
||||
ui: SFUISchema = {};
|
||||
ui2: SFUISchema = {};
|
||||
schema: SFSchema = {};
|
||||
@ -27,22 +27,22 @@ export class SupplyManagementBulkComponent implements OnInit {
|
||||
@ViewChild('sfFre', { static: false }) sfFre!: SFComponent;
|
||||
tabs = [ {
|
||||
name: '全部',
|
||||
type: 5,
|
||||
type: 0,
|
||||
count: 0,
|
||||
},
|
||||
{
|
||||
name: '待接单',
|
||||
type: 5,
|
||||
name: '进行中',
|
||||
type: 1,
|
||||
count: 0,
|
||||
},
|
||||
{
|
||||
name: '已接单',
|
||||
type: 5,
|
||||
name: '已完结',
|
||||
type: 2,
|
||||
count: 0,
|
||||
},
|
||||
{
|
||||
name: '已取消',
|
||||
type: 5,
|
||||
type: 3,
|
||||
count: 0,
|
||||
},
|
||||
];
|
||||
@ -57,7 +57,14 @@ export class SupplyManagementBulkComponent implements OnInit {
|
||||
* 查询参数
|
||||
*/
|
||||
get reqParams() {
|
||||
console.log(this.resourceStatus)
|
||||
const a:any = {};
|
||||
if(this.resourceStatus) {
|
||||
a.resourceStatus = this.resourceStatus
|
||||
}
|
||||
console.log(a)
|
||||
return {
|
||||
...a,
|
||||
...this.sf?.value,
|
||||
};
|
||||
}
|
||||
@ -68,27 +75,25 @@ export class SupplyManagementBulkComponent implements OnInit {
|
||||
this.schema = {
|
||||
properties: {
|
||||
_$expand: { type: 'boolean', ui: { hidden: true } },
|
||||
no: {
|
||||
resourceCode: {
|
||||
type: 'string',
|
||||
title: '货源编号'
|
||||
},
|
||||
no2: {
|
||||
loadingAddressArr: {
|
||||
type: 'string',
|
||||
title: '装货地'
|
||||
},
|
||||
no1: {
|
||||
unloadingAddressArr: {
|
||||
type: 'string',
|
||||
title: '卸货地'
|
||||
},
|
||||
sex2: {
|
||||
serviceType: {
|
||||
title: '服务类型',
|
||||
type: 'string',
|
||||
default: 0,
|
||||
enum: [
|
||||
{ label: '未知', value: 0 },
|
||||
{ label: '男', value: 1 },
|
||||
{ label: '女', value: 2 },
|
||||
{ label: '保密', value: 3 },
|
||||
{ label: '抢单', value: 1 },
|
||||
{ label: '指派', value: 2 },
|
||||
],
|
||||
ui: {
|
||||
widget: 'select',
|
||||
@ -97,7 +102,7 @@ export class SupplyManagementBulkComponent implements OnInit {
|
||||
},
|
||||
} as SFSelectWidgetSchema,
|
||||
},
|
||||
sex: {
|
||||
settlementBasis: {
|
||||
title: '结算依据',
|
||||
type: 'string',
|
||||
default: 0,
|
||||
@ -114,7 +119,7 @@ export class SupplyManagementBulkComponent implements OnInit {
|
||||
},
|
||||
} as SFSelectWidgetSchema,
|
||||
},
|
||||
createTime: {
|
||||
releaseTime: {
|
||||
title: '发布时间',
|
||||
type: 'string',
|
||||
ui: {
|
||||
@ -126,7 +131,7 @@ export class SupplyManagementBulkComponent implements OnInit {
|
||||
},
|
||||
} as SFDateWidgetSchema,
|
||||
},
|
||||
createTime2: {
|
||||
deadlineTime: {
|
||||
title: '截止时间',
|
||||
type: 'string',
|
||||
ui: {
|
||||
@ -138,7 +143,7 @@ export class SupplyManagementBulkComponent implements OnInit {
|
||||
},
|
||||
} as SFDateWidgetSchema,
|
||||
},
|
||||
appId: {
|
||||
enterpriseInfoName: {
|
||||
type: 'string',
|
||||
title: '网络货运人',
|
||||
ui: {
|
||||
@ -168,7 +173,7 @@ export class SupplyManagementBulkComponent implements OnInit {
|
||||
initSFFre() {
|
||||
this.freightSchema = {
|
||||
properties: {
|
||||
roleDescription: {
|
||||
remarks: {
|
||||
title: '备注',
|
||||
type: 'string',
|
||||
maxLength: 50,
|
||||
@ -191,68 +196,76 @@ export class SupplyManagementBulkComponent implements OnInit {
|
||||
title: '货源编号',
|
||||
width: '100px',
|
||||
className: 'text-center',
|
||||
render: 'goodsId'
|
||||
render: 'resourceCode'
|
||||
},
|
||||
{ title: '服务类型', index: 'linkUrl', width: '120px', className: 'text-center' },
|
||||
{ title: '货主', index: 'linkUrl', width: '120px', className: 'text-center' },
|
||||
{ title: '项目名称', index: 'linkUrl', width: '120px', className: 'text-center' },
|
||||
{ title: '服务类型', render: 'serviceType', width: '120px', className: 'text-center' },
|
||||
{ title: '货主', index: 'shipperAppUserNmae', width: '120px', className: 'text-center' },
|
||||
{ title: '项目名称', index: 'enterpriseProjectName', width: '120px', className: 'text-center' },
|
||||
{ title: '关联订单', render: 'orderSn', width: '120px', className: 'text-center' },
|
||||
{ title: '货物信息', render: 'goodsInfo', width: '180px', className: 'text-center' },
|
||||
{ title: '货物信息', render: 'goodsInfos', width: '180px', className: 'text-center' },
|
||||
{
|
||||
title: '装货地',
|
||||
className: 'text-center',
|
||||
index: 'loadingAddressArr',
|
||||
width: '120px',
|
||||
}, {
|
||||
title: '卸货地',
|
||||
className: 'text-center',
|
||||
index: 'unloadingAddressArr',
|
||||
width: '120px',
|
||||
},
|
||||
{
|
||||
title: '用车需求',
|
||||
className: 'text-center',
|
||||
width: '150px',
|
||||
render: 'demand'
|
||||
index: 'vehicleDemand'
|
||||
},
|
||||
{
|
||||
title: '运费单价',
|
||||
className: 'text-center',
|
||||
width: '150px',
|
||||
index: 'freightPrice',
|
||||
},
|
||||
{
|
||||
title: '结算依据',
|
||||
className: 'text-center',
|
||||
width: '120px',
|
||||
index: 'settlementBasis',
|
||||
},
|
||||
{
|
||||
title: '货源状态',
|
||||
className: 'text-center',
|
||||
index: 'enStatusStr2',
|
||||
index: 'resourceStatus',
|
||||
type: 'badge',
|
||||
width: '120px',
|
||||
badge: {
|
||||
正常: { text: '正常', color: 'success' },
|
||||
冻结: { text: '冻结', color: 'warning' },
|
||||
废弃: { text: '废弃', color: 'default' },
|
||||
1: { text: '待接单', color: 'success' },
|
||||
2: { text: '已接单', color: 'warning' },
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '截止时间',
|
||||
width: '170px',
|
||||
className: 'text-center',
|
||||
index: 'deadlineTime',
|
||||
},
|
||||
{
|
||||
title: '发布时间',
|
||||
width: '170px',
|
||||
className: 'text-center',
|
||||
index: 'releaseTime',
|
||||
},
|
||||
{
|
||||
title: '审核状态',
|
||||
className: 'text-center',
|
||||
index: 'enStatusStr3',
|
||||
index: 'auditStatus',
|
||||
type: 'badge',
|
||||
width: '170px',
|
||||
badge: {
|
||||
正常: { text: '正常', color: 'success' },
|
||||
冻结: { text: '冻结', color: 'warning' },
|
||||
废弃: { text: '废弃', color: 'default' },
|
||||
1: { text: '待审核', color: 'warning' },
|
||||
2: { text: '审核通过', color: 'success' },
|
||||
3: { text: '不通过', color: 'default' },
|
||||
4: { text: '已取消', color: 'default' },
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -332,7 +345,12 @@ export class SupplyManagementBulkComponent implements OnInit {
|
||||
}
|
||||
|
||||
selectChange(e: number) {
|
||||
|
||||
console.log(e);
|
||||
this.resourceStatus = e;
|
||||
this.initST();
|
||||
setTimeout(() => {
|
||||
this.st.load();
|
||||
}, 500);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user