edit
This commit is contained in:
		@ -20,7 +20,7 @@ module.exports = {
 | 
				
			|||||||
  // }
 | 
					  // }
 | 
				
			||||||
  '//api': {
 | 
					  '//api': {
 | 
				
			||||||
    target: {
 | 
					    target: {
 | 
				
			||||||
      host: 'tms-api-test.eascs.com',
 | 
					      host: 'tms-api-dev.eascs.com',
 | 
				
			||||||
      protocol: 'https:',
 | 
					      protocol: 'https:',
 | 
				
			||||||
      port: 443
 | 
					      port: 443
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
				
			|||||||
@ -60,3 +60,16 @@
 | 
				
			|||||||
  </p>
 | 
					  </p>
 | 
				
			||||||
  <app-logistics-time-line [data]="routesInfo?.routes"></app-logistics-time-line>
 | 
					  <app-logistics-time-line [data]="routesInfo?.routes"></app-logistics-time-line>
 | 
				
			||||||
</ng-template>
 | 
					</ng-template>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<ng-template #requestedModal>
 | 
				
			||||||
 | 
					  <div nz-row nzGutter="8">
 | 
				
			||||||
 | 
					      <div nz-col nzSpan="24" se-container [labelWidth]="100">
 | 
				
			||||||
 | 
					          <se [col]="1" label="快递公司" required>
 | 
				
			||||||
 | 
					              <input nz-input [(ngModel)]="openInfo.expresscompany" placeholder="请输入" />
 | 
				
			||||||
 | 
					          </se>
 | 
				
			||||||
 | 
					          <se [col]="1" label="快递单号" required>
 | 
				
			||||||
 | 
					              <input nz-input [(ngModel)]="openInfo.expressno" placeholder="请输入" />
 | 
				
			||||||
 | 
					          </se>
 | 
				
			||||||
 | 
					      </div>
 | 
				
			||||||
 | 
					  </div>
 | 
				
			||||||
 | 
					</ng-template>
 | 
				
			||||||
@ -30,6 +30,10 @@ export class InvoicedListComponent implements OnInit {
 | 
				
			|||||||
    mailNo: '',
 | 
					    mailNo: '',
 | 
				
			||||||
    routes: []
 | 
					    routes: []
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  @ViewChild('requestedModal', { static: false })
 | 
				
			||||||
 | 
					  requestedModal!: any;
 | 
				
			||||||
 | 
					  openInfo: any = { expresscompany: null, expressno: null };
 | 
				
			||||||
  constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {}
 | 
					  constructor(public service: TicketService, private nzModalService: NzModalService, private router: Router) {}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  ngOnInit(): void {}
 | 
					  ngOnInit(): void {}
 | 
				
			||||||
@ -77,6 +81,42 @@ export class InvoicedListComponent implements OnInit {
 | 
				
			|||||||
    });
 | 
					    });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  /**
 | 
				
			||||||
 | 
					   * 填写物流/修改物流
 | 
				
			||||||
 | 
					   * @param item
 | 
				
			||||||
 | 
					   */
 | 
				
			||||||
 | 
					  requestedAction(item: any) {
 | 
				
			||||||
 | 
					    this.openInfo = { expresscompany: item.expresscompany || null, expressno: item.expressno || null };
 | 
				
			||||||
 | 
					    const modal = this.nzModalService.create({
 | 
				
			||||||
 | 
					      nzTitle: item.expresscompany ? '修改物流' : '填写物流',
 | 
				
			||||||
 | 
					      nzContent: this.requestedModal,
 | 
				
			||||||
 | 
					      nzOnOk: () => {
 | 
				
			||||||
 | 
					        if (!this.openInfo?.expresscompany || !this.openInfo?.expressno) {
 | 
				
			||||||
 | 
					          this.service.msgSrv.warning('请填快递信息');
 | 
				
			||||||
 | 
					          return false;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					        const params = {
 | 
				
			||||||
 | 
					          expresscompany: this.openInfo.expresscompany,
 | 
				
			||||||
 | 
					          expressno: this.openInfo.expressno
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					        this.service
 | 
				
			||||||
 | 
					          .request(this.service.$api_update_Express, {
 | 
				
			||||||
 | 
					            id: item.id,
 | 
				
			||||||
 | 
					            ...params
 | 
				
			||||||
 | 
					          })
 | 
				
			||||||
 | 
					          .subscribe(res => {
 | 
				
			||||||
 | 
					            if (res) {
 | 
				
			||||||
 | 
					              this.service.msgSrv.success(item.expresscompany ? '修改成功' : '填写成功');
 | 
				
			||||||
 | 
					              this.st.load(1);
 | 
				
			||||||
 | 
					              modal.destroy();
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					          });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        return false;
 | 
				
			||||||
 | 
					      }
 | 
				
			||||||
 | 
					    });
 | 
				
			||||||
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  invoiceHongChong() {
 | 
					  invoiceHongChong() {
 | 
				
			||||||
    if (this.selectedRows?.length <= 0) {
 | 
					    if (this.selectedRows?.length <= 0) {
 | 
				
			||||||
      this.service.msgSrv.warning('请选择发票');
 | 
					      this.service.msgSrv.warning('请选择发票');
 | 
				
			||||||
@ -283,6 +323,16 @@ export class InvoicedListComponent implements OnInit {
 | 
				
			|||||||
            text: '查看物流<br>',
 | 
					            text: '查看物流<br>',
 | 
				
			||||||
            click: item => this.showlogosticsLogs(item),
 | 
					            click: item => this.showlogosticsLogs(item),
 | 
				
			||||||
            iif: item => item.expresscompany
 | 
					            iif: item => item.expresscompany
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					          {
 | 
				
			||||||
 | 
					            text: '填写物流<br>',
 | 
				
			||||||
 | 
					            click: item => this.requestedAction(item),
 | 
				
			||||||
 | 
					            iif: item => !item.expresscompany
 | 
				
			||||||
 | 
					          },
 | 
				
			||||||
 | 
					          {
 | 
				
			||||||
 | 
					            text: '修改物流<br>',
 | 
				
			||||||
 | 
					            click: item => this.requestedAction(item),
 | 
				
			||||||
 | 
					            iif: item => item.expresscompany
 | 
				
			||||||
          }
 | 
					          }
 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
				
			|||||||
@ -55,6 +55,9 @@ export class TicketService extends ShipperBaseService {
 | 
				
			|||||||
  // 已开发票查询
 | 
					  // 已开发票查询
 | 
				
			||||||
  $api_get_invoice_page = '/api/fcc/ficoVatinvH/list/page';
 | 
					  $api_get_invoice_page = '/api/fcc/ficoVatinvH/list/page';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  // 更新快递信息
 | 
				
			||||||
 | 
					  $api_update_Express= '/api/fcc/ficoVatinvH/updateExpress';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // 发票作废
 | 
					  // 发票作废
 | 
				
			||||||
  $api_cancel_invoice = '/api/fcc/ficoVatinvH/inpinvHCancel';
 | 
					  $api_cancel_invoice = '/api/fcc/ficoVatinvH/inpinvHCancel';
 | 
				
			||||||
  // 获取销项发票抬头
 | 
					  // 获取销项发票抬头
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user