Commit 448e593b authored by Sandy's avatar Sandy

销售录入新建接口调试/查询接口调试

parent c32525ec
......@@ -101,6 +101,7 @@
8FEF5EAE1F28612B001496E3 /* BaseViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8FEF5E981F28612B001496E3 /* BaseViewController.m */; };
8FEF5EB01F28612B001496E3 /* ZJBaseFileModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 8FEF5E9A1F28612B001496E3 /* ZJBaseFileModel.m */; };
8FEF5EB21F28612B001496E3 /* ZJBaseModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 8FEF5E9C1F28612B001496E3 /* ZJBaseModel.m */; };
8FF9F6DE1F3450AC006B0EC0 /* SaleInputDetailViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8FF9F6DD1F3450AC006B0EC0 /* SaleInputDetailViewController.m */; };
B3A759A50113DA2AD3E85C40 /* libPods-hdmall_base-HDMall_TEST.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3784BD616CA8AF0775D5526F /* libPods-hdmall_base-HDMall_TEST.a */; };
/* End PBXBuildFile section */
......@@ -293,6 +294,8 @@
8FEF5E9A1F28612B001496E3 /* ZJBaseFileModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZJBaseFileModel.m; sourceTree = "<group>"; };
8FEF5E9B1F28612B001496E3 /* ZJBaseModel.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZJBaseModel.h; sourceTree = "<group>"; };
8FEF5E9C1F28612B001496E3 /* ZJBaseModel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZJBaseModel.m; sourceTree = "<group>"; };
8FF9F6DC1F3450AC006B0EC0 /* SaleInputDetailViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SaleInputDetailViewController.h; sourceTree = "<group>"; };
8FF9F6DD1F3450AC006B0EC0 /* SaleInputDetailViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SaleInputDetailViewController.m; sourceTree = "<group>"; };
B7647FC31ADEF96A4D33BB34 /* Pods-hdmall_base-HDMall.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-hdmall_base-HDMall.release.xcconfig"; path = "Pods/Target Support Files/Pods-hdmall_base-HDMall/Pods-hdmall_base-HDMall.release.xcconfig"; sourceTree = "<group>"; };
D3A3D2FD83D7ADD6AC921E3B /* Pods-hdmall_base-HDMall_TEST.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-hdmall_base-HDMall_TEST.debug.xcconfig"; path = "Pods/Target Support Files/Pods-hdmall_base-HDMall_TEST/Pods-hdmall_base-HDMall_TEST.debug.xcconfig"; sourceTree = "<group>"; };
DE3C94E5EBEB6D5CCA6E7916 /* Pods-hdmall_base-HDMall.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-hdmall_base-HDMall.debug.xcconfig"; path = "Pods/Target Support Files/Pods-hdmall_base-HDMall/Pods-hdmall_base-HDMall.debug.xcconfig"; sourceTree = "<group>"; };
......@@ -618,6 +621,8 @@
8F4BFCD21F2EF543003EA16B /* SaleInputListViewController.m */,
8F4BFCDD1F2F0279003EA16B /* SaleInputAddViewController.h */,
8F4BFCDE1F2F0279003EA16B /* SaleInputAddViewController.m */,
8FF9F6DC1F3450AC006B0EC0 /* SaleInputDetailViewController.h */,
8FF9F6DD1F3450AC006B0EC0 /* SaleInputDetailViewController.m */,
);
path = ViewControllers;
sourceTree = "<group>";
......@@ -1158,6 +1163,7 @@
8F4BFD0D1F3019AC003EA16B /* SalesInputTotalVIew.m in Sources */,
8F4BFCFA1F2F32D5003EA16B /* InspectRepairAddPicTableViewCell.m in Sources */,
8F250D841F29C14F0031B4BC /* LoginViewModel.m in Sources */,
8FF9F6DE1F3450AC006B0EC0 /* SaleInputDetailViewController.m in Sources */,
8FEF5E7E1F285E56001496E3 /* UIViewController+Additions.m in Sources */,
8F250D3B1F297DA80031B4BC /* XWCoolAnimator+XWPageFlip.m in Sources */,
8F250D4D1F297DA80031B4BC /* XWFilterAnimator+XWMask.m in Sources */,
......
......@@ -78,7 +78,8 @@
@property (nonatomic, strong) NSString <Optional> * receiver;
@property (nonatomic, strong) NSNumber <Optional> * balance;
@property (nonatomic, strong) NSString <Optional> * billNumber;
@property (nonatomic, assign) BOOL balance;
@property (nonatomic, strong) HMSaleInputDetail_tenant <Optional> * tenant;
......
......@@ -43,44 +43,44 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="时间:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ufl-0t-iXS">
<rect key="frame" x="20" y="70" width="37.5" height="23"/>
<rect key="frame" x="20" y="71" width="37.5" height="24"/>
<constraints>
<constraint firstAttribute="height" constant="23" id="S8p-Rp-Whu"/>
<constraint firstAttribute="height" constant="24" id="duB-sd-UUp"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" red="0.2027770877" green="0.20276418330000001" blue="0.20277169349999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="单号:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ayS-Oo-MMy">
<rect key="frame" x="20" y="112" width="37.5" height="19.5"/>
<rect key="frame" x="20" y="114" width="37.5" height="19.5"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" red="0.2027770877" green="0.20276418330000001" blue="0.20277169349999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="000002332340034" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Myo-Ab-30t">
<rect key="frame" x="65" y="112" width="146" height="19.5"/>
<rect key="frame" x="65" y="114" width="146" height="19.5"/>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" red="0.2027770877" green="0.20276418330000001" blue="0.20277169349999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="UrT-GZ-4xX">
<rect key="frame" x="20" y="103" width="335" height="1"/>
<rect key="frame" x="20" y="105" width="335" height="1"/>
<color key="backgroundColor" red="0.90188914539999998" green="0.89984929560000004" blue="0.93195199969999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="FZa-Q2-AEM"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="笔数:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bSa-gd-kdW">
<rect key="frame" x="20" y="39" width="37.5" height="23"/>
<rect key="frame" x="20" y="39" width="37.5" height="24"/>
<constraints>
<constraint firstAttribute="height" constant="23" id="gET-qi-ZWr"/>
<constraint firstAttribute="height" constant="24" id="bd4-Cd-bLl"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" red="0.2027770877" green="0.20276418330000001" blue="0.20277169349999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="照明设施更换" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UcL-xw-odG">
<rect key="frame" x="68" y="39" width="98" height="23"/>
<rect key="frame" x="68" y="39.5" width="98" height="23"/>
<constraints>
<constraint firstAttribute="height" constant="23" id="h8V-ZS-zlt"/>
</constraints>
......@@ -89,7 +89,7 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2014-04-15 11:30:34" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wyu-19-g9E">
<rect key="frame" x="68" y="70" width="154" height="23"/>
<rect key="frame" x="68" y="71.5" width="154" height="23"/>
<constraints>
<constraint firstAttribute="height" constant="23" id="0Jy-zb-mks"/>
</constraints>
......@@ -98,7 +98,7 @@
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xGG-J8-bQ9">
<rect key="frame" x="292" y="110" width="63" height="22.5"/>
<rect key="frame" x="292" y="112" width="63" height="22.5"/>
<constraints>
<constraint firstAttribute="height" constant="22.5" id="bf6-xt-yQh"/>
</constraints>
......@@ -110,7 +110,7 @@
</state>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="neW-Rt-WfY">
<rect key="frame" x="0.0" y="143.5" width="375" height="10"/>
<rect key="frame" x="0.0" y="145.5" width="375" height="10"/>
<color key="backgroundColor" red="0.90188914539999998" green="0.89984929560000004" blue="0.93195199969999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="10" id="t5i-X8-kDY"/>
......@@ -125,7 +125,6 @@
</imageView>
</subviews>
<constraints>
<constraint firstAttribute="bottom" secondItem="ayS-Oo-MMy" secondAttribute="bottom" constant="22" id="1db-Jg-kno"/>
<constraint firstItem="Myo-Ab-30t" firstAttribute="centerY" secondItem="ayS-Oo-MMy" secondAttribute="centerY" id="2od-2E-Q6S"/>
<constraint firstItem="Myo-Ab-30t" firstAttribute="leading" secondItem="ayS-Oo-MMy" secondAttribute="trailing" constant="7.5" id="4db-E5-9gH"/>
<constraint firstItem="wyu-19-g9E" firstAttribute="centerY" secondItem="ufl-0t-iXS" secondAttribute="centerY" id="6HX-ck-4WW"/>
......@@ -147,6 +146,7 @@
<constraint firstItem="ayS-Oo-MMy" firstAttribute="top" secondItem="UrT-GZ-4xX" secondAttribute="bottom" constant="8" id="cF1-4s-qlo"/>
<constraint firstItem="UcL-xw-odG" firstAttribute="centerY" secondItem="bSa-gd-kdW" secondAttribute="centerY" id="eMd-ZS-AvM"/>
<constraint firstItem="UrT-GZ-4xX" firstAttribute="top" secondItem="ufl-0t-iXS" secondAttribute="bottom" constant="10.5" id="eeY-wt-1q1"/>
<constraint firstItem="neW-Rt-WfY" firstAttribute="top" secondItem="ayS-Oo-MMy" secondAttribute="bottom" constant="12" id="f14-v8-lem"/>
<constraint firstItem="ufl-0t-iXS" firstAttribute="leading" secondItem="bSa-gd-kdW" secondAttribute="leading" id="f6H-j6-Kgv"/>
<constraint firstAttribute="trailing" secondItem="xGG-J8-bQ9" secondAttribute="trailing" constant="20" id="lJg-1E-YwV"/>
<constraint firstItem="UrT-GZ-4xX" firstAttribute="leading" secondItem="AXq-8y-utO" secondAttribute="leading" constant="20" id="tco-tL-LjN"/>
......@@ -250,6 +250,9 @@
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="s9r-Fx-3zW">
<rect key="frame" x="114" y="0.0" width="233" height="40"/>
<state key="normal" title="请选择商户"/>
<connections>
<action selector="actionContract:" destination="Tfl-FO-sZI" eventType="touchUpInside" id="1Za-yv-0nb"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="请选择商铺" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="94u-p7-BhS">
<rect key="frame" x="114" y="9" width="237" height="23"/>
......@@ -740,13 +743,554 @@
<connections>
<outlet property="btnBottom" destination="pGM-pq-sCr" id="Taa-zY-MVJ"/>
<outlet property="tableView" destination="ByU-Du-Lfu" id="EYl-ha-xkO"/>
<outlet property="topView" destination="Tfl-FO-sZI" id="cPY-If-iBE"/>
<outlet property="totalView" destination="53i-tk-Lrb" id="Jgr-zL-cHb"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="8BI-14-Fwd" userLabel="First Responder" sceneMemberID="firstResponder"/>
<tapGestureRecognizer id="oQa-iO-TPh"/>
</objects>
<point key="canvasLocation" x="-92" y="139.880059970015"/>
<point key="canvasLocation" x="92" y="1341"/>
</scene>
<!--Sale Input Detail View Controller-->
<scene sceneID="LoX-JB-pS5">
<objects>
<viewController storyboardIdentifier="SaleInputDetailViewController" automaticallyAdjustsScrollViewInsets="NO" id="gxh-e1-pCF" customClass="SaleInputDetailViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="r4B-aM-3cE"/>
<viewControllerLayoutGuide type="bottom" id="V6i-sO-24d"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="gYD-Z8-HJK">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="IEP-3c-1bE" customClass="SaleInputTopView">
<rect key="frame" x="0.0" y="0.0" width="375" height="120"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8mI-AK-J7d">
<rect key="frame" x="0.0" y="0.0" width="375" height="40"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="商户" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jCv-nD-Arh">
<rect key="frame" x="16" y="8" width="90" height="23"/>
<constraints>
<constraint firstAttribute="width" constant="90" id="xCc-KZ-fMW"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="19"/>
<color key="textColor" red="1" green="0.9999405146" blue="0.99998033050000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="right_arrow_white" translatesAutoresizingMaskIntoConstraints="NO" id="LAq-Xw-TKd">
<rect key="frame" x="355" y="6" width="10" height="27"/>
<color key="tintColor" red="1" green="0.9999405146" blue="0.99998033050000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="Itn-Bm-ZHf"/>
<constraint firstAttribute="height" constant="27" id="KL1-QA-Sfu"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="q4u-d7-OOp">
<rect key="frame" x="114" y="0.0" width="233" height="40"/>
<state key="normal" title="请选择商户"/>
<connections>
<action selector="actionContract:" destination="IEP-3c-1bE" eventType="touchUpInside" id="lnL-uB-suC"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="请选择商铺" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Wmh-SG-xFa">
<rect key="frame" x="114" y="9" width="237" height="23"/>
<fontDescription key="fontDescription" type="system" pointSize="19"/>
<color key="textColor" red="1" green="0.9999405146" blue="0.99998033050000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.98920059199999999" green="0.41316801310000001" blue="0.031795684249999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="LAq-Xw-TKd" secondAttribute="trailing" constant="10" id="H60-dh-66e"/>
<constraint firstItem="Wmh-SG-xFa" firstAttribute="leading" secondItem="jCv-nD-Arh" secondAttribute="trailing" constant="8" id="IuU-8n-kQl"/>
<constraint firstAttribute="bottom" secondItem="q4u-d7-OOp" secondAttribute="bottom" id="LBW-q9-Dgs"/>
<constraint firstItem="LAq-Xw-TKd" firstAttribute="centerY" secondItem="8mI-AK-J7d" secondAttribute="centerY" id="Oaw-0B-A3v"/>
<constraint firstItem="jCv-nD-Arh" firstAttribute="centerY" secondItem="8mI-AK-J7d" secondAttribute="centerY" id="WKk-3d-D6U"/>
<constraint firstItem="LAq-Xw-TKd" firstAttribute="leading" secondItem="q4u-d7-OOp" secondAttribute="trailing" constant="8" id="d2V-OT-HPX"/>
<constraint firstItem="Wmh-SG-xFa" firstAttribute="centerY" secondItem="8mI-AK-J7d" secondAttribute="centerY" id="fuX-ig-S37"/>
<constraint firstItem="jCv-nD-Arh" firstAttribute="leading" secondItem="8mI-AK-J7d" secondAttribute="leading" constant="16" id="iyC-3n-qz2"/>
<constraint firstItem="q4u-d7-OOp" firstAttribute="top" secondItem="8mI-AK-J7d" secondAttribute="top" id="ohp-rS-g4P"/>
<constraint firstAttribute="height" constant="40" id="wD8-O3-YtL"/>
<constraint firstItem="q4u-d7-OOp" firstAttribute="leading" secondItem="jCv-nD-Arh" secondAttribute="trailing" constant="8" id="y8K-W2-67R"/>
<constraint firstItem="LAq-Xw-TKd" firstAttribute="leading" secondItem="Wmh-SG-xFa" secondAttribute="trailing" constant="4" id="zSf-PU-1HN"/>
</constraints>
<variation key="default">
<mask key="subviews">
<exclude reference="Wmh-SG-xFa"/>
</mask>
</variation>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nqJ-28-FF8">
<rect key="frame" x="0.0" y="40" width="375" height="40"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="销售日期" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="d2x-rF-Jj3">
<rect key="frame" x="16" y="8" width="90" height="23"/>
<constraints>
<constraint firstAttribute="width" constant="90" id="oPX-IK-bS1"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="19"/>
<color key="textColor" red="1" green="0.9999405146" blue="0.99998033050000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="right_arrow_white" translatesAutoresizingMaskIntoConstraints="NO" id="3Gr-0c-6Wb">
<rect key="frame" x="355" y="6" width="10" height="27"/>
<color key="tintColor" red="1" green="0.9999405146" blue="0.99998033050000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="236-oX-bO5"/>
<constraint firstAttribute="height" constant="27" id="Nlg-XU-6Iv"/>
</constraints>
</imageView>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="mQO-eI-6t1">
<rect key="frame" x="114" y="0.0" width="237" height="40"/>
<color key="tintColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
<color key="textColor" red="1" green="0.9999405146" blue="0.99998033050000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<textInputTraits key="textInputTraits"/>
</textField>
</subviews>
<color key="backgroundColor" red="0.98920059199999999" green="0.41316801310000001" blue="0.031795684249999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="3Gr-0c-6Wb" firstAttribute="leading" secondItem="mQO-eI-6t1" secondAttribute="trailing" constant="4" id="10f-5Y-zkq"/>
<constraint firstAttribute="trailing" secondItem="3Gr-0c-6Wb" secondAttribute="trailing" constant="10" id="1Pp-hb-dLd"/>
<constraint firstItem="d2x-rF-Jj3" firstAttribute="centerY" secondItem="nqJ-28-FF8" secondAttribute="centerY" id="A9w-rm-tNj"/>
<constraint firstAttribute="height" constant="40" id="C6K-Fc-UL5"/>
<constraint firstItem="mQO-eI-6t1" firstAttribute="leading" secondItem="d2x-rF-Jj3" secondAttribute="trailing" constant="8" id="Uxz-h4-x4f"/>
<constraint firstAttribute="bottom" secondItem="mQO-eI-6t1" secondAttribute="bottom" id="in4-x2-y2h"/>
<constraint firstItem="d2x-rF-Jj3" firstAttribute="leading" secondItem="nqJ-28-FF8" secondAttribute="leading" constant="16" id="lsO-Wq-9LV"/>
<constraint firstItem="3Gr-0c-6Wb" firstAttribute="centerY" secondItem="nqJ-28-FF8" secondAttribute="centerY" id="mGF-dA-GdV"/>
<constraint firstItem="mQO-eI-6t1" firstAttribute="top" secondItem="nqJ-28-FF8" secondAttribute="top" id="qj0-LY-4fz"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="C6K-Fc-UL5"/>
</mask>
</variation>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="u8p-s0-dEI">
<rect key="frame" x="0.0" y="80" width="375" height="40"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="H3m-eR-64b">
<rect key="frame" x="114" y="8" width="229" height="23"/>
<fontDescription key="fontDescription" type="system" pointSize="19"/>
<color key="textColor" red="1" green="0.9999405146" blue="0.99998033050000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="元" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5ld-ke-DK6">
<rect key="frame" x="345" y="0.0" width="22" height="40"/>
<constraints>
<constraint firstAttribute="width" constant="22" id="w7X-gR-lLe"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" red="1" green="0.9999405146" blue="0.99998033050000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="今日累计" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uTD-G4-SRB">
<rect key="frame" x="16" y="8" width="90" height="23"/>
<constraints>
<constraint firstAttribute="width" constant="90" id="bv6-hA-GqX"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="19"/>
<color key="textColor" red="1" green="0.9999405146" blue="0.99998033050000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.98920059199999999" green="0.41316801310000001" blue="0.031795684249999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="uTD-G4-SRB" firstAttribute="centerY" secondItem="u8p-s0-dEI" secondAttribute="centerY" id="0Qz-Af-2iI"/>
<constraint firstAttribute="height" constant="50" id="FXM-4O-fWe"/>
<constraint firstItem="uTD-G4-SRB" firstAttribute="leading" secondItem="u8p-s0-dEI" secondAttribute="leading" constant="16" id="O4q-Ga-DNH"/>
<constraint firstItem="5ld-ke-DK6" firstAttribute="leading" secondItem="H3m-eR-64b" secondAttribute="trailing" constant="2" id="Tmu-5u-rOp"/>
<constraint firstAttribute="bottom" secondItem="5ld-ke-DK6" secondAttribute="bottom" id="alb-0D-SdJ"/>
<constraint firstItem="H3m-eR-64b" firstAttribute="centerY" secondItem="u8p-s0-dEI" secondAttribute="centerY" id="fSX-dy-Ukb"/>
<constraint firstItem="H3m-eR-64b" firstAttribute="leading" secondItem="uTD-G4-SRB" secondAttribute="trailing" constant="8" id="gtu-mE-GoM"/>
<constraint firstItem="5ld-ke-DK6" firstAttribute="top" secondItem="u8p-s0-dEI" secondAttribute="top" id="vMf-dm-rRV"/>
<constraint firstAttribute="trailing" secondItem="5ld-ke-DK6" secondAttribute="trailing" constant="8" id="vVh-d7-PA1"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="FXM-4O-fWe"/>
</mask>
</variation>
</view>
</subviews>
<color key="backgroundColor" red="1" green="0.9999405146" blue="0.99998033050000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="u8p-s0-dEI" secondAttribute="trailing" id="AnC-qQ-rAW"/>
<constraint firstItem="8mI-AK-J7d" firstAttribute="top" secondItem="IEP-3c-1bE" secondAttribute="top" id="BIL-Cg-SrY"/>
<constraint firstItem="nqJ-28-FF8" firstAttribute="height" secondItem="8mI-AK-J7d" secondAttribute="height" id="FjW-Wz-dKs"/>
<constraint firstItem="nqJ-28-FF8" firstAttribute="leading" secondItem="IEP-3c-1bE" secondAttribute="leading" id="FyW-Wd-MHr"/>
<constraint firstItem="nqJ-28-FF8" firstAttribute="top" secondItem="8mI-AK-J7d" secondAttribute="bottom" id="IPb-bU-mgi"/>
<constraint firstItem="u8p-s0-dEI" firstAttribute="height" secondItem="8mI-AK-J7d" secondAttribute="height" id="MDs-ZV-X14"/>
<constraint firstItem="u8p-s0-dEI" firstAttribute="top" secondItem="nqJ-28-FF8" secondAttribute="bottom" id="QEl-HN-lnV"/>
<constraint firstItem="u8p-s0-dEI" firstAttribute="leading" secondItem="IEP-3c-1bE" secondAttribute="leading" id="f43-3k-fSC"/>
<constraint firstAttribute="height" constant="120" id="kGE-AX-eB4"/>
<constraint firstAttribute="trailing" secondItem="8mI-AK-J7d" secondAttribute="trailing" id="r7o-Ig-RRR"/>
<constraint firstAttribute="trailing" secondItem="nqJ-28-FF8" secondAttribute="trailing" id="tz0-bX-pHp"/>
<constraint firstItem="8mI-AK-J7d" firstAttribute="leading" secondItem="IEP-3c-1bE" secondAttribute="leading" id="u9c-B0-pMS"/>
</constraints>
<connections>
<outlet property="btnStore" destination="q4u-d7-OOp" id="iKl-Cu-eQr"/>
<outlet property="labelTodayTotal" destination="H3m-eR-64b" id="Gcb-2F-NID"/>
<outlet property="right1" destination="LAq-Xw-TKd" id="svm-84-6Sc"/>
<outlet property="right2" destination="3Gr-0c-6Wb" id="XKv-3g-rWG"/>
<outlet property="textFieldDate" destination="mQO-eI-6t1" id="XlD-OM-BMv"/>
</connections>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="yCe-pP-2fK">
<rect key="frame" x="0.0" y="603" width="375" height="64"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="hAw-s6-R5u">
<rect key="frame" x="40" y="10" width="295" height="44"/>
<color key="backgroundColor" red="0.86230891939999998" green="0.0" blue="0.088002808390000006" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="VR8-2S-66e"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="22"/>
<state key="normal" title="提交">
<color key="titleColor" red="1" green="0.9999405146" blue="0.99998033050000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="layer.cornerRadius">
<integer key="value" value="5"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="layer.masksToBounds" value="YES"/>
</userDefinedRuntimeAttributes>
<connections>
<action selector="actionSubmit:" destination="gxh-e1-pCF" eventType="touchUpInside" id="clg-dw-ylA"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="1" green="0.9999405146" blue="0.99998033050000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="hAw-s6-R5u" secondAttribute="trailing" constant="40" id="A02-OF-Gd0"/>
<constraint firstAttribute="height" constant="64" id="OmM-i2-Zic"/>
<constraint firstItem="hAw-s6-R5u" firstAttribute="centerY" secondItem="yCe-pP-2fK" secondAttribute="centerY" id="PZR-wi-5C3"/>
<constraint firstItem="hAw-s6-R5u" firstAttribute="leading" secondItem="yCe-pP-2fK" secondAttribute="leading" constant="40" id="Pea-Qv-0Vv"/>
</constraints>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="none" rowHeight="54" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="2LS-4r-o54">
<rect key="frame" x="0.0" y="120" width="375" height="483"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<view key="tableHeaderView" contentMode="scaleToFill" id="P9E-VG-PuP" customClass="SalesInputTotalVIew">
<rect key="frame" x="0.0" y="0.0" width="375" height="140"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qcH-FP-5fr">
<rect key="frame" x="0.0" y="0.0" width="375" height="100"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="本单合计(元)" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OB9-jD-1VO">
<rect key="frame" x="0.0" y="13" width="183.5" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="VSd-yb-WgY"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="本单笔数(笔)" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="XMR-24-jdn">
<rect key="frame" x="191.5" y="13" width="183.5" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="CPN-D8-qp3"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="16"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="jza-Cj-OcL">
<rect key="frame" x="73" y="46" width="38" height="42"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9Ex-BJ-6V3">
<rect key="frame" x="10" y="4" width="18" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="28"/>
<color key="textColor" red="0.9859483242" green="0.0" blue="0.026950567960000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstItem="9Ex-BJ-6V3" firstAttribute="centerX" secondItem="jza-Cj-OcL" secondAttribute="centerX" id="B4k-bc-65r"/>
<constraint firstAttribute="height" constant="42" id="LgM-rp-mbb"/>
<constraint firstItem="9Ex-BJ-6V3" firstAttribute="centerY" secondItem="jza-Cj-OcL" secondAttribute="centerY" id="anl-TA-hgi"/>
<constraint firstItem="9Ex-BJ-6V3" firstAttribute="leading" secondItem="jza-Cj-OcL" secondAttribute="leading" constant="10" id="cgM-Su-upa"/>
<constraint firstAttribute="trailing" secondItem="9Ex-BJ-6V3" secondAttribute="trailing" constant="10" id="hGe-fe-kXX"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="L4z-MI-xZl">
<rect key="frame" x="275" y="50" width="18" height="34"/>
<fontDescription key="fontDescription" type="system" pointSize="28"/>
<color key="textColor" red="0.8991458416" green="0.0" blue="0.1079747528" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="1" borderStyle="roundedRect" placeholder="请输入笔数" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="NSr-cC-AbE">
<rect key="frame" x="232" y="45" width="104" height="45"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="4Xo-OZ-kvP"/>
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="45" id="Ijo-OB-caV"/>
<constraint firstAttribute="width" constant="104" id="Ior-QR-zXv"/>
</constraints>
<nil key="textColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" keyboardType="numbersAndPunctuation"/>
</textField>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="5Fo-9J-i40">
<rect key="frame" x="0.0" y="99" width="375" height="1"/>
<color key="backgroundColor" red="0.92144894600000005" green="0.92063152790000002" blue="0.94577074049999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="P40-GD-f1D"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="28z-NC-Esx">
<rect key="frame" x="187" y="13" width="1" height="79"/>
<color key="backgroundColor" red="0.92144894600000005" green="0.92063152790000002" blue="0.94577074049999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="e7T-el-fr2"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="1" green="0.99997437" blue="0.99999129769999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="OB9-jD-1VO" firstAttribute="top" secondItem="qcH-FP-5fr" secondAttribute="top" constant="13" id="0n0-aN-EqW"/>
<constraint firstItem="5Fo-9J-i40" firstAttribute="leading" secondItem="qcH-FP-5fr" secondAttribute="leading" id="5LK-rH-lLA"/>
<constraint firstAttribute="trailing" secondItem="5Fo-9J-i40" secondAttribute="trailing" id="5Or-aK-zod"/>
<constraint firstItem="XMR-24-jdn" firstAttribute="leading" secondItem="OB9-jD-1VO" secondAttribute="trailing" constant="8" id="5bv-bg-qlF"/>
<constraint firstItem="NSr-cC-AbE" firstAttribute="centerX" secondItem="XMR-24-jdn" secondAttribute="centerX" id="6GJ-tg-Yxz"/>
<constraint firstItem="L4z-MI-xZl" firstAttribute="centerY" secondItem="9Ex-BJ-6V3" secondAttribute="centerY" id="CFX-Qd-vLD"/>
<constraint firstItem="28z-NC-Esx" firstAttribute="centerX" secondItem="qcH-FP-5fr" secondAttribute="centerX" id="FzJ-XA-muI"/>
<constraint firstAttribute="bottom" secondItem="5Fo-9J-i40" secondAttribute="bottom" id="GF2-PE-09T"/>
<constraint firstAttribute="height" constant="100" id="TPI-su-tcQ"/>
<constraint firstItem="5Fo-9J-i40" firstAttribute="top" secondItem="28z-NC-Esx" secondAttribute="bottom" constant="7" id="VMw-2i-dG2"/>
<constraint firstItem="L4z-MI-xZl" firstAttribute="centerX" secondItem="XMR-24-jdn" secondAttribute="centerX" id="ZSn-XT-p4Y"/>
<constraint firstItem="NSr-cC-AbE" firstAttribute="centerY" secondItem="9Ex-BJ-6V3" secondAttribute="centerY" id="enZ-dD-TtU"/>
<constraint firstItem="XMR-24-jdn" firstAttribute="top" secondItem="qcH-FP-5fr" secondAttribute="top" constant="13" id="fkr-c8-4h9"/>
<constraint firstAttribute="trailing" secondItem="XMR-24-jdn" secondAttribute="trailing" id="hBW-kf-svN"/>
<constraint firstItem="28z-NC-Esx" firstAttribute="top" secondItem="qcH-FP-5fr" secondAttribute="top" constant="13" id="jij-Mm-r0C"/>
<constraint firstItem="XMR-24-jdn" firstAttribute="leading" secondItem="OB9-jD-1VO" secondAttribute="trailing" constant="8" id="jvj-Sb-bjV"/>
<constraint firstItem="28z-NC-Esx" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="jza-Cj-OcL" secondAttribute="trailing" constant="4" id="oxb-VT-vpF"/>
<constraint firstItem="jza-Cj-OcL" firstAttribute="top" secondItem="OB9-jD-1VO" secondAttribute="bottom" constant="12" id="p63-7O-ZhD"/>
<constraint firstItem="OB9-jD-1VO" firstAttribute="width" secondItem="XMR-24-jdn" secondAttribute="width" id="tu4-IL-hFt"/>
<constraint firstItem="jza-Cj-OcL" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="qcH-FP-5fr" secondAttribute="leading" constant="4" id="uZ4-Hp-WlF"/>
<constraint firstItem="jza-Cj-OcL" firstAttribute="centerX" secondItem="OB9-jD-1VO" secondAttribute="centerX" id="xVx-aB-txu"/>
<constraint firstItem="OB9-jD-1VO" firstAttribute="leading" secondItem="qcH-FP-5fr" secondAttribute="leading" id="z7l-Aq-SSe"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nro-oU-Liu">
<rect key="frame" x="0.0" y="100" width="375" height="40"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="支付明细" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OMc-FW-lvU">
<rect key="frame" x="16" y="7" width="90" height="27"/>
<fontDescription key="fontDescription" type="system" pointSize="22"/>
<color key="textColor" red="0.93035113810000003" green="0.35202065110000003" blue="0.063138075170000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.994497776" green="0.97084438799999995" blue="0.94110399479999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="Oq3-gD-VXv"/>
<constraint firstItem="OMc-FW-lvU" firstAttribute="leading" secondItem="nro-oU-Liu" secondAttribute="leading" constant="16" id="Trw-jR-y1q"/>
<constraint firstItem="OMc-FW-lvU" firstAttribute="centerY" secondItem="nro-oU-Liu" secondAttribute="centerY" id="eWi-x3-B95"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="1" green="0.99997437" blue="0.99999129769999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="nro-oU-Liu" firstAttribute="top" secondItem="qcH-FP-5fr" secondAttribute="bottom" id="0WT-wx-TdJ"/>
<constraint firstAttribute="trailing" secondItem="nro-oU-Liu" secondAttribute="trailing" id="4hn-HH-4g9"/>
<constraint firstItem="qcH-FP-5fr" firstAttribute="leading" secondItem="P9E-VG-PuP" secondAttribute="leading" id="6lF-7p-Bdi"/>
<constraint firstItem="nro-oU-Liu" firstAttribute="leading" secondItem="P9E-VG-PuP" secondAttribute="leading" id="787-S3-tpl"/>
<constraint firstAttribute="bottom" secondItem="nro-oU-Liu" secondAttribute="bottom" id="Efg-L7-mxR"/>
<constraint firstAttribute="trailing" secondItem="qcH-FP-5fr" secondAttribute="trailing" id="MP1-eB-T8x"/>
<constraint firstItem="qcH-FP-5fr" firstAttribute="top" secondItem="P9E-VG-PuP" secondAttribute="top" id="jlj-k4-t77"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="Efg-L7-mxR"/>
</mask>
</variation>
<connections>
<outlet property="labelTotal" destination="9Ex-BJ-6V3" id="Ba6-tR-SbH"/>
<outlet property="textFieldBillCount" destination="NSr-cC-AbE" id="cS0-By-396"/>
<outlet property="viewRedBac" destination="jza-Cj-OcL" id="SuQ-Z4-uq8"/>
</connections>
</view>
<prototypes>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" reuseIdentifier="SaleInputAddAmountCell" rowHeight="50" id="yFi-Df-di7" customClass="SaleInputAddAmountCell">
<rect key="frame" x="0.0" y="168" width="375" height="50"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="yFi-Df-di7" id="pBX-Js-Ac6">
<rect key="frame" x="0.0" y="0.0" width="375" height="50"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="现金" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QeE-pw-zXL">
<rect key="frame" x="16" y="0.0" width="175" height="50"/>
<constraints>
<constraint firstAttribute="width" constant="131" id="VoL-sQ-Hs6"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="17"/>
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
<variation key="default">
<mask key="constraints">
<exclude reference="VoL-sQ-Hs6"/>
</mask>
</variation>
</label>
<textField opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" borderStyle="roundedRect" placeholder="请输入金额" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="ET5-Bf-XBi">
<rect key="frame" x="209" y="5" width="150" height="40"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="IMb-nU-HAy"/>
<constraint firstAttribute="width" constant="150" id="dgD-3v-MMW"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" keyboardType="numbersAndPunctuation"/>
</textField>
</subviews>
<constraints>
<constraint firstItem="ET5-Bf-XBi" firstAttribute="centerY" secondItem="pBX-Js-Ac6" secondAttribute="centerY" id="Kno-5h-dsZ"/>
<constraint firstAttribute="bottom" secondItem="QeE-pw-zXL" secondAttribute="bottom" id="L6A-Ee-Sz1"/>
<constraint firstItem="QeE-pw-zXL" firstAttribute="leading" secondItem="pBX-Js-Ac6" secondAttribute="leading" constant="16" id="MIv-KF-eAY"/>
<constraint firstItem="QeE-pw-zXL" firstAttribute="top" secondItem="pBX-Js-Ac6" secondAttribute="top" id="Txl-Vy-bdI"/>
<constraint firstAttribute="trailing" secondItem="ET5-Bf-XBi" secondAttribute="trailing" constant="16" id="sKg-73-Tbw"/>
<constraint firstItem="ET5-Bf-XBi" firstAttribute="leading" secondItem="QeE-pw-zXL" secondAttribute="trailing" constant="18" id="zWf-oz-BnV"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" red="0.99215686270000003" green="0.96470588239999999" blue="0.92941176469999998" alpha="1" colorSpace="calibratedRGB"/>
<connections>
<outlet property="labelTitle" destination="QeE-pw-zXL" id="0fL-Co-X0b"/>
<outlet property="textFieldInput" destination="ET5-Bf-XBi" id="ach-s9-QgN"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" reuseIdentifier="InspectRepairAddPicTableViewCell" rowHeight="114" id="fuJ-7O-GFm" customClass="InspectRepairAddPicTableViewCell">
<rect key="frame" x="0.0" y="218" width="375" height="114"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="fuJ-7O-GFm" id="Qd0-Kb-Qb2">
<rect key="frame" x="0.0" y="0.0" width="375" height="114"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" scrollEnabled="NO" dataMode="prototypes" translatesAutoresizingMaskIntoConstraints="NO" id="qek-GK-y7n">
<rect key="frame" x="0.0" y="0.0" width="375" height="114"/>
<color key="backgroundColor" red="1" green="0.99997437" blue="0.99999129769999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="2u8-2P-Wp1">
<size key="itemSize" width="50" height="50"/>
<size key="headerReferenceSize" width="0.0" height="0.0"/>
<size key="footerReferenceSize" width="0.0" height="0.0"/>
<inset key="sectionInset" minX="10" minY="0.0" maxX="10" maxY="0.0"/>
</collectionViewFlowLayout>
<cells>
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" reuseIdentifier="RepairAddPicCollectionViewCell" id="wpi-oZ-06P" customClass="RepairAddPicCollectionViewCell">
<rect key="frame" x="10" y="0.0" width="120.5" height="85"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
<rect key="frame" x="0.0" y="0.0" width="120.5" height="85"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView hidden="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="add_photo_icon" translatesAutoresizingMaskIntoConstraints="NO" id="hzo-35-Qjm">
<rect key="frame" x="19" y="14" width="82" height="56"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="dQt-fP-0Iq">
<rect key="frame" x="0.0" y="0.0" width="121" height="85"/>
</imageView>
</subviews>
</view>
<color key="backgroundColor" red="1" green="0.99997437" blue="0.99999129769999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="hzo-35-Qjm" firstAttribute="centerX" secondItem="wpi-oZ-06P" secondAttribute="centerX" id="2I1-0s-iN2"/>
<constraint firstAttribute="trailing" secondItem="dQt-fP-0Iq" secondAttribute="trailing" id="JWi-7W-Vys"/>
<constraint firstAttribute="bottom" secondItem="dQt-fP-0Iq" secondAttribute="bottom" id="UlG-3g-hg5"/>
<constraint firstItem="dQt-fP-0Iq" firstAttribute="leading" secondItem="wpi-oZ-06P" secondAttribute="leading" id="Wcr-2J-xsH"/>
<constraint firstItem="hzo-35-Qjm" firstAttribute="centerY" secondItem="wpi-oZ-06P" secondAttribute="centerY" id="bEa-xg-oaN"/>
<constraint firstItem="dQt-fP-0Iq" firstAttribute="top" secondItem="wpi-oZ-06P" secondAttribute="top" id="dif-EB-TVz"/>
</constraints>
<size key="customSize" width="120.5" height="85"/>
<connections>
<outlet property="img" destination="hzo-35-Qjm" id="uRq-Eb-n3u"/>
<outlet property="imgPicture" destination="dQt-fP-0Iq" id="rGl-ul-6Bq"/>
</connections>
</collectionViewCell>
</cells>
</collectionView>
</subviews>
<constraints>
<constraint firstItem="qek-GK-y7n" firstAttribute="top" secondItem="Qd0-Kb-Qb2" secondAttribute="top" id="5B5-YW-L1e"/>
<constraint firstAttribute="bottom" secondItem="qek-GK-y7n" secondAttribute="bottom" id="BQo-0o-bGL"/>
<constraint firstItem="qek-GK-y7n" firstAttribute="leading" secondItem="Qd0-Kb-Qb2" secondAttribute="leading" id="ljp-Ea-5Qe"/>
<constraint firstAttribute="trailing" secondItem="qek-GK-y7n" secondAttribute="trailing" id="wrj-v4-cxn"/>
</constraints>
</tableViewCellContentView>
<connections>
<outlet property="collectionView" destination="qek-GK-y7n" id="Fkh-T9-s2b"/>
<outlet property="layOut" destination="2u8-2P-Wp1" id="j0T-gT-7TC"/>
</connections>
</tableViewCell>
<tableViewCell clipsSubviews="YES" contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" reuseIdentifier="header" id="iGV-KI-mDd">
<rect key="frame" x="0.0" y="332" width="375" height="54"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="iGV-KI-mDd" id="g9S-JH-had">
<rect key="frame" x="0.0" y="0.0" width="375" height="54"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="照片附件" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4Cf-6h-88i">
<rect key="frame" x="16" y="14" width="73.5" height="26"/>
<fontDescription key="fontDescription" type="system" pointSize="18"/>
<color key="textColor" red="0.90180099010000003" green="0.26248830560000003" blue="0.062464497979999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="(上传当日结账单)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5f2-BT-r4b">
<rect key="frame" x="97.5" y="24" width="102" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" red="0.90180099010000003" green="0.26248830560000003" blue="0.062464497979999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstItem="5f2-BT-r4b" firstAttribute="bottom" secondItem="4Cf-6h-88i" secondAttribute="bottom" id="36j-dd-l7B"/>
<constraint firstItem="5f2-BT-r4b" firstAttribute="leading" secondItem="4Cf-6h-88i" secondAttribute="trailing" constant="8" id="HzK-ar-C72"/>
<constraint firstItem="4Cf-6h-88i" firstAttribute="leading" secondItem="g9S-JH-had" secondAttribute="leading" constant="16" id="Wvc-6q-XEh"/>
<constraint firstItem="5f2-BT-r4b" firstAttribute="centerY" secondItem="4Cf-6h-88i" secondAttribute="centerY" constant="5" id="boo-bI-gm4"/>
<constraint firstItem="4Cf-6h-88i" firstAttribute="centerY" secondItem="g9S-JH-had" secondAttribute="centerY" id="vCF-vJ-6JA"/>
</constraints>
</tableViewCellContentView>
</tableViewCell>
</prototypes>
<connections>
<outlet property="dataSource" destination="gxh-e1-pCF" id="Sha-9h-m9w"/>
<outlet property="delegate" destination="gxh-e1-pCF" id="lKU-6x-d1a"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" red="1" green="0.9999405146" blue="0.99998033050000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="2LS-4r-o54" secondAttribute="trailing" id="0Cu-l9-7eJ"/>
<constraint firstAttribute="trailing" secondItem="IEP-3c-1bE" secondAttribute="trailing" id="1Ne-Nc-vlb"/>
<constraint firstItem="V6i-sO-24d" firstAttribute="top" secondItem="yCe-pP-2fK" secondAttribute="bottom" id="DwV-SI-hTs"/>
<constraint firstItem="IEP-3c-1bE" firstAttribute="leading" secondItem="gYD-Z8-HJK" secondAttribute="leading" id="Eao-gc-UHO"/>
<constraint firstItem="IEP-3c-1bE" firstAttribute="top" secondItem="gYD-Z8-HJK" secondAttribute="top" id="Pe2-ef-23y"/>
<constraint firstItem="2LS-4r-o54" firstAttribute="top" secondItem="IEP-3c-1bE" secondAttribute="bottom" id="hmL-qX-hFG"/>
<constraint firstItem="yCe-pP-2fK" firstAttribute="leading" secondItem="gYD-Z8-HJK" secondAttribute="leading" id="hyd-mA-0tC"/>
<constraint firstItem="yCe-pP-2fK" firstAttribute="top" secondItem="2LS-4r-o54" secondAttribute="bottom" id="lmD-t6-RzU"/>
<constraint firstItem="IEP-3c-1bE" firstAttribute="top" secondItem="r4B-aM-3cE" secondAttribute="bottom" id="uVh-0d-VKN"/>
<constraint firstAttribute="trailing" secondItem="yCe-pP-2fK" secondAttribute="trailing" id="yIH-c3-34u"/>
<constraint firstItem="2LS-4r-o54" firstAttribute="leading" secondItem="gYD-Z8-HJK" secondAttribute="leading" id="yy2-Gd-ha1"/>
</constraints>
<variation key="default">
<mask key="constraints">
<exclude reference="uVh-0d-VKN"/>
</mask>
</variation>
</view>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<size key="freeformSize" width="375" height="667"/>
<connections>
<outlet property="btnBottom" destination="hAw-s6-R5u" id="iaD-Mf-hEH"/>
<outlet property="tableView" destination="2LS-4r-o54" id="1KQ-mB-K4n"/>
<outlet property="topView" destination="IEP-3c-1bE" id="Nee-87-4pY"/>
<outlet property="totalView" destination="P9E-VG-PuP" id="Vr0-mi-5au"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dmO-Ie-WOR" userLabel="First Responder" sceneMemberID="firstResponder"/>
<tapGestureRecognizer id="KAC-b9-swJ"/>
</objects>
<point key="canvasLocation" x="826" y="1341"/>
</scene>
</scenes>
<resources>
......
......@@ -7,7 +7,18 @@
//
#import "BaseViewController.h"
#import "SaleInputViewModel.h"
#import "SaleInputAmountCollectionViewCell.h"
#import "SaleInputAddAmountCell.h"
#import "InspectRepairAddPicTableViewCell.h"
#import "CalculateHelper.h"
#import "SalesInputTotalVIew.h"
#import "SaleInputTopView.h"
@interface SaleInputAddViewController : BaseViewController
@property (weak, nonatomic) IBOutlet UITableView *tableView;
/** 计算本单合计、输入总笔数 */
@property (nonatomic, weak) IBOutlet SalesInputTotalVIew *totalView;
@property (weak, nonatomic) IBOutlet UIButton *btnBottom;
@property (strong, nonatomic) SaleInputViewModel *viewModel;
@property (weak, nonatomic) IBOutlet SaleInputTopView *topView;
@end
......@@ -7,31 +7,19 @@
//
#import "SaleInputAddViewController.h"
#import "SaleInputViewModel.h"
#import "SaleInputAmountCollectionViewCell.h"
#import "SaleInputAddAmountCell.h"
#import "InspectRepairAddPicTableViewCell.h"
#import "CalculateHelper.h"
#import "SalesInputTotalVIew.h"
@interface SaleInputAddViewController ()<UITableViewDelegate, UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UITableView *tableView;
/** 计算本单合计、输入总笔数 */
@property (nonatomic, weak) IBOutlet SalesInputTotalVIew *totalView;
@property (weak, nonatomic) IBOutlet UIButton *btnBottom;
@property (strong, nonatomic) SaleInputViewModel *viewModel;
@property (strong, nonatomic) NSMutableArray *arrData;
@end
@implementation SaleInputAddViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
WS(weakSelf);
[self.viewModel httpAllPayments:^(NSMutableArray<HMSaleInputDetail_payments_payment *> *arrPayments) {
weakSelf.arrData = arrPayments;
[self.viewModel httpAllPayments:^(BOOL isSuccess) {
[weakSelf.tableView reloadData];
CLog(@"%@", arrPayments);
}];
}
......@@ -41,7 +29,7 @@
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
if (section == 0) {
return self.arrData.count;
return self.viewModel.arrPayments.count;
}else{
return 1;
}
......@@ -73,7 +61,7 @@
//输入各种支付方式的金额
SaleInputAddAmountCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SaleInputAddAmountCell" forIndexPath:indexPath];
cell.isEdit = self.viewModel.type != SaleInputTypeReadOnly;
[cell configCellWithArray:self.arrData indexPath:indexPath];
[cell configCellWithArray:self.viewModel.arrPayments indexPath:indexPath];
WS(weakSelf);
cell.blockNumberChanged = ^{
[weakSelf allInputMoney];
......@@ -95,7 +83,7 @@
- (void)allInputMoney {
NSDecimalNumber *allInputMoney = nil;
for (HMSaleInputDetail_payments *cellModel in self.arrData) {
for (HMSaleInputDetail_payments *cellModel in self.viewModel.arrPayments) {
allInputMoney = [CalculateHelper calculateNum1:allInputMoney num2:cellModel.total type:CalculateTypeAdd];
}
//本单合计
......@@ -109,10 +97,15 @@
#pragma mark - actions
- (IBAction)actionSubmit:(id)sender {
[self.viewModel httpUpload];
self.viewModel.request.saleCount = @(self.totalView.textFieldBillCount.text.integerValue);
self.viewModel.request.contract = self.topView.contract;
WS(weakSelf);
[self.viewModel httpSubmit:^(BOOL isSuccess) {
if (isSuccess) {
[weakSelf.navigationController popViewControllerAnimated:YES];
}
}];
}
ZJLazy(SaleInputViewModel, viewModel);
ZJLazy(NSMutableArray, arrData);
@end
//
// SaleInputDetailViewController.h
// HDMall
//
// Created by Javen on 2017/8/4.
// Copyright © 2017年 上海勾芒信息科技. All rights reserved.
//
#import "SaleInputAddViewController.h"
#import "HMSaleInputDetail.h"
@interface SaleInputDetailViewController : SaleInputAddViewController
@property (strong, nonatomic) HMSaleInputDetail *listModel;
@end
//
// SaleInputDetailViewController.m
// HDMall
//
// Created by Javen on 2017/8/4.
// Copyright © 2017年 上海勾芒信息科技. All rights reserved.
//
#import "SaleInputDetailViewController.h"
@interface SaleInputDetailViewController ()
@end
@implementation SaleInputDetailViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
[self.viewModel httpDetailWithUuid:self.listModel.billNumber callBack:^(BOOL isSuccess) {
}];
}
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
}
*/
@end
......@@ -9,11 +9,12 @@
#import "SaleInputListViewController.h"
#import "SaleInputAddViewController.h"
#import "SaleInputListTableViewCell.h"
//#import "SaleInputDetailModel.h"
//#import "SaleInputDetailViewController.h"
#import "HMSaleInputDetail.h"
#import "SaleInputDetailViewController.h"
#import "HMSaleInputQuery.h"
@interface SaleInputListViewController ()
@property (strong, nonatomic) HMSaleInputQuery *query;
@end
@implementation SaleInputListViewController
......@@ -37,10 +38,16 @@
self.query.pageSize = @(self.pageSize);
self.query.dateRange = [HMSaleInputQuery_dateRange new];
self.query.dateRange.beginDate = @"2016-07-12";
self.query.dateRange.endDate = @"2017-07-13";
self.query.dateRange.endDate = [NSDate date].yearMonthDayString;
WS(weakSelf);
[ZJHttpManager POST:@"hdmall/salesinput/query" parameters:self.query.toDictionary complete:^(id responseObject, NSError *error) {
if (kIsResponse) {
if (weakSelf.page == 0) {
[weakSelf.arrData removeAllObjects];
}
NSMutableArray *arr = [HMSaleInputDetail modelsFromArray:responseObject[@"data"][@"records"]];
[weakSelf.arrData addObjectsFromArray:arr];
}else{
kFalseHttpTips;
......@@ -59,11 +66,10 @@
}
- (void)listDidSelect:(id)model {
// SaleInputDetailModel *listModel = model;
// SaleInputDetailViewController *detailVC = [SaleInputDetailViewController viewControllerWithStoryBoardType:STORYBOARD_TYPE_SALEINPUT];
// detailVC.detailType = SaleInputDetailTypeReadOnly;
// detailVC.listModel = listModel;
// [self.navigationController pushViewController:detailVC animated:YES];
HMSaleInputDetail *listModel = model;
SaleInputDetailViewController *detailVC = [SaleInputDetailViewController viewControllerWithStoryBoardType:STORYBOARD_TYPE_SALEINPUT];
detailVC.listModel = listModel;
[self.navigationController pushViewController:detailVC animated:YES];
}
- (void)actionAdd:(UIButton *)sender {
......
......@@ -9,7 +9,7 @@
#import <Foundation/Foundation.h>
#import "HMSaleInputDetail.h"
#import "PicViewModel.h"
typedef void (^blockCallBack)(BOOL isSuccess);
typedef NS_ENUM(NSInteger, SaleInputType) {
SaleInputTypeCreate,
SaleInputTypeEdit,
......@@ -18,13 +18,23 @@ typedef NS_ENUM(NSInteger, SaleInputType) {
@interface SaleInputViewModel : NSObject
@property (assign, nonatomic) SaleInputType type;
@property (strong, nonatomic) PicViewModel *picVM;
@property (strong, nonatomic) NSMutableArray *arrPayments;
/** 创建销售录入单的请求体 */
@property (strong, nonatomic) HMSaleInputDetail *request;
/** 获取销售录入单详情 */
@property (strong, nonatomic) HMSaleInputDetail *detail;
/**
获取全部支付方式
@param callBack 获取到支付方式的回调(如果arrPayments = nil, 则代表请求失败)
*/
- (void)httpAllPayments:(void (^)(NSMutableArray<HMSaleInputDetail_payments *> *arrPayments))callBack;
- (void)httpAllPayments:(blockCallBack)callBack;
- (void)httpUpload;
- (void)httpSubmit:(blockCallBack)callBack;
- (void)httpDetailWithUuid:(NSString *)uuid callBack:(blockCallBack)callBack;
@end
......@@ -7,7 +7,7 @@
//
#import "SaleInputViewModel.h"
#import "CalculateHelper.h"
@implementation SaleInputViewModel
/**
......@@ -15,7 +15,7 @@
@param callBack 获取到支付方式的回调(如果arrPayments = nil, 则代表请求失败)
*/
- (void)httpAllPayments:(void (^)(NSMutableArray<HMSaleInputDetail_payments *> *arrPayments))callBack {
- (void)httpAllPayments:(blockCallBack)callBack {
[ZJHttpManager GET:@"hdmall/salesinput/getAllPayments" parameters:nil complete:^(id responseObject, NSError *error) {
if (kIsResponse) {
NSMutableArray *arrData = [HMSaleInputDetail_payments_payment modelsFromArray:responseObject[@"data"]];
......@@ -27,15 +27,41 @@
payments.payment = pay;
[arrPayments addObject:payments];
}
callBack(arrPayments);
self.arrPayments = arrPayments;
callBack(true);
}else{
callBack(nil);
callBack(false);
kFalseHttpTips;
}
}];
}
- (void)httpUpload {
- (void)httpUpload:(void (^)(void))complete {
}
- (void)httpSubmit:(blockCallBack)callBack {
//赋值
if (self.request.contract == nil) {
[MBProgressHUD j_error:@"请选择合同" complete:nil];
return;
}
self.request.oper = AppGlobal.user.code;
self.request.store = [HMSaleInputDetail_store modelWithDic:AppGlobal.user.store.toDictionary];
// self.request.tenant = [HMSaleInputDetail_tenant modelWithDic:AppGlobal.user.tenant.toDictionary];
self.request.receiver = @"contract";
self.request.balance = false;
self.request.saleDate = [[NSDate date] httpParameterString];
self.request.payments = (id)[NSMutableArray array];
for (HMSaleInputDetail_payments *payments in self.arrPayments) {
HMSaleInputDetail_payments *paymentsCopy = [HMSaleInputDetail_payments modelWithDic:payments.toDictionary];
if (paymentsCopy.total == nil) {
paymentsCopy.total = @(0);
}
[self.request.payments addObject:paymentsCopy];
}
//上传附件
NSMutableArray *arrImage = [NSMutableArray array];
for (UIImage *img in self.picVM.arrPics) {
ZJBaseFileModel *file = [ZJBaseFileModel new];
......@@ -46,10 +72,36 @@
[arrImage addObject:file];
}
[MBProgressHUD j_loading:@"上传中…"];
[ZJHttpManager upLoadFiles:arrImage params:nil commplete:^(NSMutableArray *attachments) {
self.request.mediaFiles = attachments;
[MBProgressHUD j_loading:@"提交中…"];
[ZJHttpManager POST:@"hdmall/salesinput/save" parameters:self.request.toDictionary complete:^(id responseObject, NSError *error) {
if (kIsResponse) {
[MBProgressHUD j_hideLoadingView];
callBack(true);
}else{
callBack(false);
kFalseHttpTips;
}
}];
}];
}
- (void)httpDetailWithUuid:(NSString *)uuid callBack:(blockCallBack)callBack {
NSString *url = [@"hdmall/salesinput/" stringByAppendingString:uuid];
[ZJHttpManager GET:url parameters:nil complete:^(id responseObject, NSError *error) {
if (kIsResponse) {
}else{
kFalseHttpTips;
}
}];
}
ZJLazy(PicViewModel, picVM);
ZJLazy(NSMutableArray, arrPayments);
ZJLazy(HMSaleInputDetail, request);
@end
......@@ -7,13 +7,13 @@
//
#import <UIKit/UIKit.h>
//#import "SaleInputDetailModel.h"
#import "HMSaleInputDetail.h"
@interface SaleInputListTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *labelTItle;
@property (weak, nonatomic) IBOutlet UILabel *labelBillCount;
@property (weak, nonatomic) IBOutlet UILabel *labelTime;
@property (weak, nonatomic) IBOutlet UILabel *labelBillNumber;
//@property (nonatomic, strong) SaleInputDetailModel *model;
@property (nonatomic, strong) HMSaleInputDetail *model;
@property (weak, nonatomic) IBOutlet UIImageView *imgState;
......
......@@ -16,12 +16,12 @@
}
- (void)configCellWithArray:(NSMutableArray *)array indexPath:(NSIndexPath *)indexPath {
// self.model = array[indexPath.row];
// self.labelTItle.text = self.model.contract.name;
// self.labelBillCount.text = [NSString stringWithFormat:@"%.0f",self.model.saleCount];
// self.labelTime.text = self.model.saleDate;
self.model = array[indexPath.row];
self.labelTItle.text = self.model.contract.name;
self.labelBillCount.text = [NSString stringWithFormat:@"%ld",self.model.saleCount.integerValue];
self.labelTime.text = self.model.saleDate;
// self.imgState.image = [UIImage imageNamed:self.model.stateImageName];
// self.labelBillNumber.text = self.model.billNumber;
self.labelBillNumber.text = self.model.billNumber;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
......
......@@ -7,7 +7,7 @@
//
#import <UIKit/UIKit.h>
#import "HMSaleInputDetail.h"
@interface SaleInputTopView : UIView
/** 选择商铺 */
@property (weak, nonatomic) IBOutlet UIButton *btnStore;
......@@ -18,5 +18,6 @@
//两个三角
@property (weak, nonatomic) IBOutlet UIImageView *right1;
@property (weak, nonatomic) IBOutlet UIImageView *right2;
@property (strong, nonatomic) HMSaleInputDetail_contract *contract;
@property (nonatomic, copy) void (^blockDidChooseDate)(void);
@end
......@@ -32,12 +32,28 @@
self.blockDidChooseDate();
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
// Drawing code
- (IBAction)actionContract:(id)sender {
if (AppGlobal.user.contracts.count == 1) {
UserInfo_contracts *contract = AppGlobal.user.contracts[0];
self.contract = [HMSaleInputDetail_contract modelWithDic:contract.toDictionary];
[self.btnStore setTitle:contract.name forState:UIControlStateNormal];
}else{
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"选择合同" message:nil preferredStyle:(UIAlertControllerStyleAlert)];
for (UserInfo_contracts *contract in AppGlobal.user.contracts) {
UIAlertAction *action = [UIAlertAction actionWithTitle:contract.name style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
self.contract = [HMSaleInputDetail_contract modelWithDic:contract.toDictionary];
[self.btnStore setTitle:contract.name forState:UIControlStateNormal];
}];
[alert addAction:action];
}
UIAlertAction *action = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil];
[alert addAction:action];
[self.viewController.navigationController presentViewController:alert animated:YES completion:nil];
}
}
*/
@end
......@@ -11,6 +11,7 @@
#define ZJHttpManager [ZJBaseHttpManager shareCilent]
@interface ZJBaseHttpManager : NSObject
@property (assign, nonatomic) BOOL debugLogEnabled;
+ (ZJBaseHttpManager *)shareCilent;
- (void)POST:(NSString *)URLString
......
......@@ -165,7 +165,7 @@
} success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
if (kIsResponse) {
complete(responseObject[@"data"]);
} else {
kFalseHttpTips;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment