| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420 |
- //
- // ProcurementApplyDetailListVc.m
- // IBOSS
- //
- // Created by guan hong hou on 2018/7/25.
- // Copyright © 2018年 elongtian. All rights reserved.
- //
- #import "ProcurementApplyDetailListVc.h"
- @interface ProcurementApplyDetailListVc ()
- @end
- @implementation ProcurementApplyDetailListVc
- - (void)viewDidLoad {
- [super viewDidLoad];
- [self initUI];
- }
- /**
- 安全区视图发生变化
- */
- -(void)viewSafeAreaInsetsDidChange{
- _scroll.frame = self.view.safeAreaLayoutGuide.layoutFrame;
- [super viewSafeAreaInsetsDidChange];
- }
- -(void)initUI
- {
- self.navigationItem.title = @"请购总表明细";
- self.view.backgroundColor = LineBackgroundColor;
- UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
- [button setImage:[UIImage imageNamed:@"icon_back"] forState:UIControlStateNormal];
- [button addTarget:self action:@selector(goBack)
- forControlEvents:UIControlEventTouchUpInside];
- button.frame = CGRectMake(0, 0,45,22);
-
- UIBarButtonItem *menuButton = [[UIBarButtonItem alloc] initWithCustomView:button];
- self.navigationItem.leftBarButtonItem = menuButton;
-
- CGFloat heightRow = 30;
- CGFloat lblx = 10;
- CGFloat lbly = 3;
- CGFloat lblwidth = 70;
- CGFloat lblheight = 25;
-
- CGFloat valuex = 80;
- CGFloat valuey = 3;
- CGFloat valueheight = 25;
-
- _scroll = [UIScrollView new];
- _scroll.frame=self.view.bounds;
-
- [self.view addSubview:_scroll];
- UIView *vContent = [UIView new];
- [_scroll addSubview:vContent];
- vContent.backgroundColor = [UIColor whiteColor];
-
- //请购单号
- UIView *vApplyNo = [UIView new];
- vApplyNo.frame=CGRectMake(0,0, Screen_Width, heightRow);
- [vContent addSubview:vApplyNo];
- UILabel *lblApplyNoTitle = [UILabel new];
- lblApplyNoTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblApplyNoTitle.text = @"请购单号:";
- lblApplyNoTitle.textColor = [UIColor blackColor];
- lblApplyNoTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vApplyNo addSubview:lblApplyNoTitle];
- UILabel *lblApplyNo = [UILabel new];
- lblApplyNo.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblApplyNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblApplyNo.text = _applyListModel.applyNo;
- [vApplyNo addSubview:lblApplyNo];
-
-
- UIView *vApplyTitle = [UIView new];
- vApplyTitle.frame=CGRectMake(0, CGRectGetMaxY(vApplyNo.frame), Screen_Width, heightRow);
- [vContent addSubview:vApplyTitle];
- UILabel *lblApplyTitleTitle = [UILabel new];
- lblApplyTitleTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblApplyTitleTitle.text = @"请购名头:";
- lblApplyTitleTitle.textColor = [UIColor blackColor];
- lblApplyTitleTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vApplyTitle addSubview:lblApplyTitleTitle];
-
- UILabel *lblApplyTitle = [UILabel new];
- lblApplyTitle.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblApplyTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblApplyTitle.text=_applyListModel.applyTitle;
- [vApplyTitle addSubview:lblApplyTitle];
-
- //订单单号
- UIView *vOrderNo = [UIView new];
- vOrderNo.frame=CGRectMake(0, CGRectGetMaxY(vApplyTitle.frame), Screen_Width, heightRow);
- [vContent addSubview:vOrderNo];
- UILabel *lblOrderNoTitle = [UILabel new];
- lblOrderNoTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblOrderNoTitle.text = @"订单单号:";
- lblOrderNoTitle.textColor = [UIColor blackColor];
- lblOrderNoTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vOrderNo addSubview:lblOrderNoTitle];
- UILabel *lblOrderNo = [UILabel new];
- lblOrderNo.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblOrderNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblOrderNo.text=_applyListModel.orderNo;
- [vOrderNo addSubview:lblOrderNo];
-
- //客户编码
- UIView *vCustomerCode = [UIView new];
- vCustomerCode.frame=CGRectMake(0, CGRectGetMaxY(vOrderNo.frame), Screen_Width, heightRow);
- [vContent addSubview:vCustomerCode];
-
- UILabel *lblCustomerCodeTitle = [UILabel new];
- lblCustomerCodeTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblCustomerCodeTitle.text = @"客户编码:";
- lblCustomerCodeTitle.textColor = [UIColor blackColor];
- lblCustomerCodeTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCustomerCode addSubview:lblCustomerCodeTitle];
- UILabel *lblCustomerCode = [UILabel new];
- lblCustomerCode.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblCustomerCode.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblCustomerCode.text=_applyListModel.customerCode;
- [vCustomerCode addSubview:lblCustomerCode];
-
- //客户名称
- UIView *vCustomerName= [UIView new];
- vCustomerName.frame=CGRectMake(0, CGRectGetMaxY(vCustomerCode.frame), Screen_Width, heightRow);
- [vContent addSubview:vCustomerName];
-
- UILabel *lblCustomerNameTitle = [UILabel new];
- lblCustomerNameTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblCustomerNameTitle.text = @"客户名称:";
- lblCustomerNameTitle.textColor = [UIColor blackColor];
- lblCustomerNameTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCustomerName addSubview:lblCustomerNameTitle];
- UILabel *lblCustomerName = [UILabel new];
- lblCustomerName.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblCustomerName.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblCustomerName.text=_applyListModel.customerName;
- [vCustomerName addSubview:lblCustomerName];
-
-
- //合同号
- UIView *vContractNumber = [UIView new];
- vContractNumber.frame=CGRectMake(0, CGRectGetMaxY(vCustomerName.frame), Screen_Width, heightRow);
- [vContent addSubview:vContractNumber];
- UILabel *lblContractNumberTitle = [UILabel new];
- lblContractNumberTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblContractNumberTitle.text = @"合 同 号:";
- lblContractNumberTitle.textColor = [UIColor blackColor];
- lblContractNumberTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vContractNumber addSubview:lblContractNumberTitle];
-
- UILabel *lblContractNumber = [UILabel new];
- lblContractNumber.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblContractNumber.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblContractNumber.text=_applyListModel.contractNumber;
- [vContractNumber addSubview:lblContractNumber];
-
-
- UIView *vArrivalDate = [UIView new];
- vArrivalDate.frame=CGRectMake(0, CGRectGetMaxY(vContractNumber.frame), Screen_Width, heightRow);
- [vContent addSubview:vArrivalDate];
-
- UILabel *lblArrivalDateTitle = [UILabel new];
- lblArrivalDateTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblArrivalDateTitle.text = @"到货日期:";
- lblArrivalDateTitle.textColor = [UIColor blackColor];
- lblArrivalDateTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vArrivalDate addSubview:lblArrivalDateTitle];
-
- UILabel *lblArrivalDate = [UILabel new];
- lblArrivalDate.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblArrivalDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblArrivalDate.text=_applyListModel.arrivalDate;
- [vArrivalDate addSubview:lblArrivalDate];
-
- //请购部门
- UIView *vApplyDepartment = [UIView new];
- vApplyDepartment.frame=CGRectMake(0, CGRectGetMaxY(vArrivalDate.frame), Screen_Width, heightRow);
- [vContent addSubview:vApplyDepartment];
- UILabel *lblApplyDepartmentTitle = [UILabel new];
- lblApplyDepartmentTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblApplyDepartmentTitle.text = @"申请部门:";
- lblApplyDepartmentTitle.textColor = [UIColor blackColor];
- lblApplyDepartmentTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vApplyDepartment addSubview:lblApplyDepartmentTitle];
-
- UILabel *lblApplyDepartment = [UILabel new];
- lblApplyDepartment.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblApplyDepartment.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblApplyDepartment.text=_applyListModel.organizationName;
- [vApplyDepartment addSubview:lblApplyDepartment];
-
-
- //申请者
- UIView *vApplicant = [UIView new];
- vApplicant.frame=CGRectMake(0, CGRectGetMaxY(vApplyDepartment.frame), Screen_Width, heightRow);
- [vContent addSubview:vApplicant];
-
- UILabel *lblApplicantTitle = [UILabel new];
- lblApplicantTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblApplicantTitle.text = @"申 请 者:";
- lblApplicantTitle.textColor = [UIColor blackColor];
- lblApplicantTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vApplicant addSubview:lblApplicantTitle];
-
- UILabel *lblApplicant = [UILabel new];
- lblApplicant.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblApplicant.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblApplicant.text=_applyListModel.applicant;
- [vApplicant addSubview:lblApplicant];
-
- //明细备注
- UIView *vRemarks = [UIView new];
- vRemarks.frame=CGRectMake(0, CGRectGetMaxY(vApplicant.frame), Screen_Width, heightRow);
- [vContent addSubview:vRemarks];
-
- UILabel *lblRemarksTitle = [UILabel new];
- lblRemarksTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblRemarksTitle.text = @"明细备注:";
- lblRemarksTitle.textColor = [UIColor blackColor];
- lblRemarksTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vRemarks addSubview:lblRemarksTitle];
- UILabel *lblRemarks = [UILabel new];
- lblRemarks.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblRemarks.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblRemarks.text=_applyListModel.remarks;
- [vRemarks addSubview:lblRemarks];
-
-
- UIView *vInvoiceStatus = [UIView new];
- vInvoiceStatus.frame=CGRectMake(0, CGRectGetMaxY(vRemarks.frame), Screen_Width, heightRow);
- [vContent addSubview:vInvoiceStatus];
-
- UILabel *lblInvoiceStatusTitle = [UILabel new];
- lblInvoiceStatusTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblInvoiceStatusTitle.text = @"单据状态:";
- lblInvoiceStatusTitle.textColor = [UIColor blackColor];
- lblInvoiceStatusTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vInvoiceStatus addSubview:lblInvoiceStatusTitle];
- UILabel *lblInvoiceStatus = [UILabel new];
- lblInvoiceStatus.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblInvoiceStatus.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblInvoiceStatus.text=_applyListModel.invoiceStatusName;
- [vInvoiceStatus addSubview:lblInvoiceStatus];
-
- //审批人
- UIView *vReviewer= [UIView new];
- vReviewer.frame=CGRectMake(0, CGRectGetMaxY(vInvoiceStatus.frame), Screen_Width, heightRow);
- [vContent addSubview:vReviewer];
-
- UILabel *lblReviewerTitle = [UILabel new];
- lblReviewerTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblReviewerTitle.text = @"审 批 人:";
- lblReviewerTitle.textColor = [UIColor blackColor];
- lblReviewerTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vReviewer addSubview:lblReviewerTitle];
-
- UILabel *lblReviewer = [UILabel new];
- lblReviewer.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblReviewer.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblReviewer.text=_applyListModel.reviewerName;
- [vReviewer addSubview:lblReviewer];
-
-
- UIView *vReversedApply = [UIView new];
- vReversedApply.frame=CGRectMake(0, CGRectGetMaxY(vReviewer.frame), Screen_Width, heightRow);
- [vContent addSubview:vReversedApply];
- UILabel *lblReversedApplyTitle = [UILabel new];
- lblReversedApplyTitle.frame=CGRectMake(lblx, lbly, lblwidth+30, lblheight);
- lblReversedApplyTitle.text = @"冲正请购单号:";
- lblReversedApplyTitle.textColor = [UIColor blackColor];
- lblReversedApplyTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vReversedApply addSubview:lblReversedApplyTitle];
-
- UILabel *lblReversedApply = [UILabel new];
- lblReversedApply.frame=CGRectMake(valuex+30, valuey, Screen_Width - valuex - lblx, valueheight);
- lblReversedApply.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblReversedApply.text=_applyListModel.reversedApply;
- [vReversedApply addSubview:lblReversedApply];
-
-
-
- UIView *vAccountDate= [UIView new];
- vAccountDate.frame=CGRectMake(0, CGRectGetMaxY(vReversedApply.frame), Screen_Width, heightRow);
- [vContent addSubview:vAccountDate];
-
- UILabel *lblAccountDateTitle = [UILabel new];
- lblAccountDateTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblAccountDateTitle.text = @"账务日期:";
- lblAccountDateTitle.textColor = [UIColor blackColor];
- lblAccountDateTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vAccountDate addSubview:lblAccountDateTitle];
-
- UILabel *lblAccountDate = [UILabel new];
- lblAccountDate.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblAccountDate.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblAccountDate.text=_applyListModel.accountDate;
- [vAccountDate addSubview:lblAccountDate];
-
-
- UIView *vCreater= [UIView new];
- vCreater.frame=CGRectMake(0, CGRectGetMaxY(vAccountDate.frame), Screen_Width, heightRow);
- [vContent addSubview:vCreater];
-
- UILabel *lblCreaterTitle = [UILabel new];
- lblCreaterTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblCreaterTitle.text = @"创 建 者:";
- lblCreaterTitle.textColor = [UIColor blackColor];
- lblCreaterTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCreater addSubview:lblCreaterTitle];
-
- UILabel *lblCreater = [UILabel new];
- lblCreater.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblCreater.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblCreater.text=_applyListModel.createUser;
- [vCreater addSubview:lblCreater];
-
-
- UIView *vCreateTime= [UIView new];
- vCreateTime.frame=CGRectMake(0, CGRectGetMaxY(vCreater.frame), Screen_Width, heightRow);
- [vContent addSubview:vCreateTime];
-
- UILabel *lblCreateTimeTitle = [UILabel new];
- lblCreateTimeTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblCreateTimeTitle.text = @"创建时间:";
- lblCreateTimeTitle.textColor = [UIColor blackColor];
- lblCreateTimeTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vCreateTime addSubview:lblCreateTimeTitle];
-
- UILabel *lblCreateTime = [UILabel new];
- lblCreateTime.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblCreateTime.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblCreateTime.text=_applyListModel.createTime;
- [vCreateTime addSubview:lblCreateTime];
-
-
-
- UIView *vUpdater= [UIView new];
- vUpdater.frame=CGRectMake(0, CGRectGetMaxY(vCreateTime.frame), Screen_Width, heightRow);
- [vContent addSubview:vUpdater];
-
- UILabel *lblUpdaterTitle = [UILabel new];
- lblUpdaterTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblUpdaterTitle.text = @"更 新 者:";
- lblUpdaterTitle.textColor = [UIColor blackColor];
- lblUpdaterTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vUpdater addSubview:lblUpdaterTitle];
-
- UILabel *lblUpdater = [UILabel new];
- lblUpdater.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblUpdater.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblUpdater.text=_applyListModel.updateUser;
- [vUpdater addSubview:lblUpdater];
-
-
- UIView *vUpdateTime= [UIView new];
- vUpdateTime.frame=CGRectMake(0, CGRectGetMaxY(vUpdater.frame), Screen_Width, heightRow);
- [vContent addSubview:vUpdateTime];
-
- UILabel *lblUpdateTimeTitle = [UILabel new];
- lblUpdateTimeTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblUpdateTimeTitle.text = @"更新时间:";
- lblUpdateTimeTitle.textColor = [UIColor blackColor];
- lblUpdateTimeTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vUpdateTime addSubview:lblUpdateTimeTitle];
-
- UILabel *lblUpdateTime = [UILabel new];
- lblUpdateTime.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblUpdateTime.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblUpdateTime.text=_applyListModel.updateTime;
- [vUpdateTime addSubview:lblUpdateTime];
-
- UIView *vDistrict= [UIView new];
- vDistrict.frame=CGRectMake(0, CGRectGetMaxY(vUpdateTime.frame), Screen_Width, heightRow);
- [vContent addSubview:vDistrict];
-
- UILabel *lblDistrictTitle = [UILabel new];
- lblDistrictTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblDistrictTitle.text = @"客户区域:";
- lblDistrictTitle.textColor = [UIColor blackColor];
- lblDistrictTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vDistrict addSubview:lblDistrictTitle];
-
- UILabel *lblDistrict = [UILabel new];
- lblDistrict.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblDistrict.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblDistrict.text=_applyListModel.districtName;
- [vDistrict addSubview:lblDistrict];
-
- UIView *vSourceNo= [UIView new];
- vSourceNo.frame=CGRectMake(0, CGRectGetMaxY(vDistrict.frame), Screen_Width, heightRow);
- [vContent addSubview:vSourceNo];
-
- UILabel *lblSourceNoTitle = [UILabel new];
- lblSourceNoTitle.frame=CGRectMake(lblx, lbly, lblwidth, lblheight);
- lblSourceNoTitle.text = @"源 单 号:";
- lblSourceNoTitle.textColor = [UIColor blackColor];
- lblSourceNoTitle.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- [vSourceNo addSubview:lblSourceNoTitle];
-
- UILabel *lblSourceNo = [UILabel new];
- lblSourceNo.frame=CGRectMake(valuex, valuey, Screen_Width - valuex - lblx, valueheight);
- lblSourceNo.font = [UIFont systemFontOfSize: LabelAndTextFontOfSize];
- lblSourceNo.text=_applyListModel.sourceNo;
- [vSourceNo addSubview:lblSourceNo];
-
- vContent.frame=CGRectMake(10, 10, Screen_Width-20, CGRectGetMaxY(vSourceNo.frame) );
- vContent.layer.cornerRadius = CornerRadius;
- _scroll.contentSize = CGSizeMake(self.view.frame.size.width, CGRectGetMaxY(vContent.frame)+rectStatusHeight+rectNavHeight+10);
-
-
- }
- @end
|