Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
		@ -334,7 +334,7 @@ export class OrderManagementBulkComponent implements OnInit {
 | 
				
			|||||||
            visibleIf: {
 | 
					            visibleIf: {
 | 
				
			||||||
              _$expand: (value: boolean) => value
 | 
					              _$expand: (value: boolean) => value
 | 
				
			||||||
            },
 | 
					            },
 | 
				
			||||||
            asyncData: () => this.shipperservice.getNetworkFreightForwarder()
 | 
					            asyncData: () => this.shipperservice.getNetworkEnterpriseName()
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        serviceType: {
 | 
					        serviceType: {
 | 
				
			||||||
 | 
				
			|||||||
@ -306,7 +306,7 @@ export class OrderManagementVehicleComponent extends BasicTableComponent impleme
 | 
				
			|||||||
            widget: 'select',
 | 
					            widget: 'select',
 | 
				
			||||||
            placeholder: '请选择',
 | 
					            placeholder: '请选择',
 | 
				
			||||||
            allowClear: true,
 | 
					            allowClear: true,
 | 
				
			||||||
            asyncData: () => this.shipperservice.getNetworkFreightForwarder()
 | 
					            asyncData: () => this.shipperservice.getNetworkEnterpriseName()
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        // goodsNameId: {
 | 
					        // goodsNameId: {
 | 
				
			||||||
 | 
				
			|||||||
@ -5,7 +5,7 @@
 | 
				
			|||||||
    <div nz-row nzGutter="8">
 | 
					    <div nz-row nzGutter="8">
 | 
				
			||||||
        <div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
 | 
					        <div nz-col [nzXl]="_$expand ? 24 : 18" [nzLg]="24" [nzSm]="24" [nzXs]="24">
 | 
				
			||||||
            <sf #sf [schema]="searchSchema"
 | 
					            <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>
 | 
					                [button]="'none'"></sf>
 | 
				
			||||||
        </div>
 | 
					        </div>
 | 
				
			||||||
        <div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right"
 | 
					        <div nz-col [nzXl]="_$expand ? 24 : 6" [nzLg]="24" [nzSm]="24" [nzXs]="24" class="text-right"
 | 
				
			||||||
 | 
				
			|||||||
@ -123,7 +123,7 @@ export class InputInvoiceComponent implements OnInit {
 | 
				
			|||||||
          title: '发票类型',
 | 
					          title: '发票类型',
 | 
				
			||||||
          enum: [
 | 
					          enum: [
 | 
				
			||||||
            { value: '', label: '全部' },
 | 
					            { value: '', label: '全部' },
 | 
				
			||||||
            { value: '1', label: '运输专票' },
 | 
					            { value: '1', label: '运输专票' }
 | 
				
			||||||
          ],
 | 
					          ],
 | 
				
			||||||
          ui: {
 | 
					          ui: {
 | 
				
			||||||
            widget: 'select',
 | 
					            widget: 'select',
 | 
				
			||||||
@ -138,7 +138,10 @@ export class InputInvoiceComponent implements OnInit {
 | 
				
			|||||||
          type: 'string',
 | 
					          type: 'string',
 | 
				
			||||||
          title: '销售方',
 | 
					          title: '销售方',
 | 
				
			||||||
          ui: {
 | 
					          ui: {
 | 
				
			||||||
            placeholder: '请输入',
 | 
					            widget: 'select',
 | 
				
			||||||
 | 
					            placeholder: '请选择',
 | 
				
			||||||
 | 
					            allowClear: true,
 | 
				
			||||||
 | 
					            asyncData: () => this.service.getCRMCustomerId(),
 | 
				
			||||||
            visibleIf: {
 | 
					            visibleIf: {
 | 
				
			||||||
              expand: (value: boolean) => value
 | 
					              expand: (value: boolean) => value
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@ -220,8 +223,8 @@ export class InputInvoiceComponent implements OnInit {
 | 
				
			|||||||
  private initST(): STColumn[] {
 | 
					  private initST(): STColumn[] {
 | 
				
			||||||
    return [
 | 
					    return [
 | 
				
			||||||
      { title: '', index: 'key', type: 'checkbox', width: 60, className: 'text-center', fixed: 'left' },
 | 
					      { title: '', index: 'key', type: 'checkbox', width: 60, className: 'text-center', fixed: 'left' },
 | 
				
			||||||
      { title: '收票单号', index: 'inpinvcode', type: 'link', width: 170 },
 | 
					      { title: '收票单号', index: 'inpinvcode', type: 'link', width: 190 },
 | 
				
			||||||
      { title: '网络货运人', index: 'ltdName', width: 150 },
 | 
					      { title: '网络货运人', index: 'ltdName', width: 220 },
 | 
				
			||||||
      { title: '发票日期', index: 'invdate', type: 'date', width: 150, className: 'text-center' },
 | 
					      { title: '发票日期', index: 'invdate', type: 'date', width: 150, className: 'text-center' },
 | 
				
			||||||
      { title: '发票号', index: 'invoiceno', width: 130 },
 | 
					      { title: '发票号', index: 'invoiceno', width: 130 },
 | 
				
			||||||
      {
 | 
					      {
 | 
				
			||||||
@ -241,7 +244,7 @@ export class InputInvoiceComponent implements OnInit {
 | 
				
			|||||||
        widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invtax }) }
 | 
					        widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invtax }) }
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      { title: '发票类型', index: 'invtype', width: 150, className: 'text-center' },
 | 
					      { 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: 'createtime', type: 'date', width: 150, className: 'text-center' },
 | 
				
			||||||
      { title: '创建人', index: 'createbyname', width: 120 },
 | 
					      { title: '创建人', index: 'createbyname', width: 120 },
 | 
				
			||||||
      { title: '收票状态', index: 'stsLabel', width: 120, className: 'text-center' },
 | 
					      { title: '收票状态', index: 'stsLabel', width: 120, className: 'text-center' },
 | 
				
			||||||
 | 
				
			|||||||
@ -124,6 +124,30 @@ export class ShipperBaseService extends BaseService {
 | 
				
			|||||||
   * @returns
 | 
					   * @returns
 | 
				
			||||||
   */
 | 
					   */
 | 
				
			||||||
  getNetworkFreightForwarder(params = {}, containerAll = false) {
 | 
					  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(
 | 
					    return this.request(this.$api_get_network_freight_forwarder_list, params).pipe(
 | 
				
			||||||
      map((res: any) => {
 | 
					      map((res: any) => {
 | 
				
			||||||
        if (!res) {
 | 
					        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
 | 
					   * @returns
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user