This commit is contained in:
Taric Xin
2022-04-18 16:20:26 +08:00
parent 6addf5c416
commit eb75a988af
5 changed files with 60 additions and 8 deletions

View File

@ -334,7 +334,7 @@ export class OrderManagementBulkComponent implements OnInit {
visibleIf: {
_$expand: (value: boolean) => value
},
asyncData: () => this.shipperservice.getNetworkFreightForwarder()
asyncData: () => this.shipperservice.getNetworkEnterpriseName()
}
},
serviceType: {

View File

@ -306,7 +306,7 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme
widget: 'select',
placeholder: '请选择',
allowClear: true,
asyncData: () => this.shipperservice.getNetworkFreightForwarder()
asyncData: () => this.shipperservice.getNetworkEnterpriseName()
}
},
// goodsNameId: {

View File

@ -5,7 +5,7 @@
<div nz-row nzGutter="8">
<div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
<sf #sf [schema]="searchSchema"
[ui]="{ '*': { spanLabelFixed: 100,grid: { lg: 8, md: 12, sm: 12, xs: 24 } }}" [compact]="true"
[ui]="{ '*': { spanLabelFixed: 110,grid: { lg: 8, md: 12, sm: 12, xs: 24 } }}" [compact]="true"
[button]="'none'"></sf>
</div>
<div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right"

View File

@ -123,7 +123,7 @@ export class InputInvoiceComponent implements OnInit {
title: '发票类型',
enum: [
{ value: '', label: '全部' },
{ value: '1', label: '运输专票' },
{ value: '1', label: '运输专票' }
],
ui: {
widget: 'select',
@ -138,7 +138,10 @@ export class InputInvoiceComponent implements OnInit {
type: 'string',
title: '销售方',
ui: {
placeholder: '请输入',
widget: 'select',
placeholder: '请选择',
allowClear: true,
asyncData: () => this.service.getCRMCustomerId(),
visibleIf: {
expand: (value: boolean) => value
}
@ -220,8 +223,8 @@ export class InputInvoiceComponent implements OnInit {
private initST(): STColumn[] {
return [
{ title: '', index: 'key', type: 'checkbox', width: 60, className: 'text-center', fixed: 'left' },
{ title: '收票单号', index: 'inpinvcode', type: 'link', width: 170 },
{ title: '网络货运人', index: 'ltdName', width: 150 },
{ title: '收票单号', index: 'inpinvcode', type: 'link', width: 190 },
{ title: '网络货运人', index: 'ltdName', width: 220 },
{ title: '发票日期', index: 'invdate', type: 'date', width: 150, className: 'text-center' },
{ title: '发票号', index: 'invoiceno', width: 130 },
{
@ -241,7 +244,7 @@ export class InputInvoiceComponent implements OnInit {
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invtax }) }
},
{ title: '发票类型', index: 'invtype', width: 150, className: 'text-center' },
{ title: '销售方', index: 'hrtoName', width: 150 },
{ title: '销售方', index: 'hrtoName', width: 200 },
{ title: '创建时间', index: 'createtime', type: 'date', width: 150, className: 'text-center' },
{ title: '创建人', index: 'createbyname', width: 120 },
{ title: '收票状态', index: 'stsLabel', width: 120, className: 'text-center' },

View File

@ -124,6 +124,30 @@ export class ShipperBaseService extends BaseService {
* @returns
*/
getNetworkFreightForwarder(params = {}, containerAll = false) {
return this.request(this.$api_get_network_freight_forwarder_list, params).pipe(
map((res: any) => {
if (!res) {
return [];
}
const list = res.map((item: any) => {
return {
label: item.enterpriseName,
value: item.id
};
});
const obj = [];
if (containerAll) {
obj.push({ label: '全部', value: '' });
}
return [...obj, ...list];
})
);
}
/**
* 获取网络货运人
* @returns
*/
getNetworkEnterpriseName(params = {}, containerAll = false) {
return this.request(this.$api_get_network_freight_forwarder_list, params).pipe(
map((res: any) => {
if (!res) {
@ -169,6 +193,31 @@ export class ShipperBaseService extends BaseService {
);
}
/**
* 获取CRM客户 crmCustomerId
* @returns
*/
getCRMCustomerId(params = {}, containerAll = false) {
return this.request(this.$api_get_crm_customer_list, params).pipe(
map((res: any) => {
if (!res) {
return [];
}
const list = res.map((item: any) => {
return {
label: item.enterpriseName,
value: item.crmCustomerId
};
});
const obj = [];
if (containerAll) {
obj.push({ label: '全部', value: '' });
}
return [...obj, ...list];
})
);
}
/**
* 获取货主企业列表
* @returns