<!--pages/contract/add/add.wxml-->
<view class="ns" style="height:{{isIPX?'88px':'64px'}};">
    <image src="../../../image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};height: 19.0909px;" mode="widthFix" bindtap="back" referrer="no-referrer|origin|unsafe-url"></image>
    <text style="top:{{isIPX?'54px':'30px'}};">{{form.id?"查看":"新增"}}合同信息</text>
</view>
<view class="main-box table-box" style="margin-top:{{isIPX?'100px':'75px'}};">
    <view style="margin-bottom:15px;">
        <image src="../../../image/icon/contract_icon.png" referrer="no-referrer|origin|unsafe-url" style="width: 15px;height: 15px;margin-right: 10px;"></image>
        <text class="tit">合同信息</text>
    </view>
    <view class="table-boxs">
        <view>
            <view>
                <text><text style="color:red;margin-right: 10rpx;">*</text>合同编码</text>
            </view>
            <view>
                <input type="text" value="{{form.code}}" bindinput="bindNewInput" data-name="form.code" placeholder="合同编码"  style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 10rpx;">*</text>合同名称</text>
            </view>
            <view>
                <input type="text" value="{{form.name}}" bindinput="bindNewInput" data-name="form.name" placeholder="合同名称" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view class="section">
            <view class="section__title"><text style="color:red;margin-right: 22rpx;"></text>合同类型</view>
            <picker bindchange="onConfirmAssetType" value="{{assetTypeindex}}" range="{{assetTypeOptions}}" range-key="{{'dictLabel'}}">
                <view class="picker">
                    {{assetTypeOptions[assetTypeindex].dictLabel?assetTypeOptions[assetTypeindex].dictLabel:"选择合同类型"}}
                    <van-icon name="arrow-down" />
                </view>
            </picker>
        </view>
        <view class="section">
            <view class="section__title"><text style="color:red;margin-right: 10rpx;">*</text>合同来源</view>
            <picker bindchange="onConfirmContractionSource" value="{{contractionSourceindex}}" range="{{contractionSourceOptions}}" range-key="{{'dictLabel'}}">
                <view class="picker">
                    {{contractionSourceOptions[contractionSourceindex].dictLabel?contractionSourceOptions[contractionSourceindex].dictLabel:"选择合同来源"}}
                    <van-icon name="arrow-down" />
                </view>
            </picker>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 10rpx;">*</text>甲方名称</text>
            </view>
            <view>
                <input type="text" value="{{form.firstParty}}" bindinput="bindNewInput" data-name="form.firstParty" placeholder="甲方名称" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>甲方代表</text>
            </view>
            <view>
                <input type="text" value="{{form.firstPartyDirector}}" bindinput="bindNewInput" data-name="form.firstPartyDirector" placeholder="甲方代表" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>甲方电话</text>
            </view>
            <view>
                <input type="text" value="{{form.firstPartyPhone}}" bindinput="bindNewInput" data-name="form.firstPartyPhone" placeholder="甲方电话" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 10rpx;">*</text>乙方名称</text>
            </view>
            <view>
                <input type="text" value="{{form.secondParty}}" bindinput="bindNewInput" data-name="form.secondParty" placeholder="乙方名称" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>乙方代表</text>
            </view>
            <view>
                <input type="text" value="{{form.secondPartyDirector}}" bindinput="bindNewInput" data-name="form.secondPartyDirector" placeholder="乙方代表" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>乙方电话</text>
            </view>
            <view>
                <input type="text" value="{{form.secondPartyPhone}}" bindinput="bindNewInput" data-name="form.secondPartyPhone" placeholder="乙方电话" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view class="section">
            <view class="section__title"><text style="color:red;margin-right: 10rpx;">*</text>收付款类型</view>
            <picker bindchange="onConfirmCollectionPay" value="{{collectionPayindex}}" range="{{collectionPayOptions}}" range-key="{{'dictLabel'}}">
                <view class="picker">
                    {{collectionPayOptions[collectionPayindex].dictLabel?collectionPayOptions[collectionPayindex].dictLabel:"选择首付款类型"}}
                    <van-icon name="arrow-down" />
                </view>
            </picker>
        </view>
        <view class="section">
            <view class="section__title"><text style="color:red;margin-right: 10rpx;">*</text>结款方式</view>
            <picker bindchange="onConfirmSettleType" value="{{settleTypeindex}}" range="{{settleTypeOptions}}" range-key="{{'dictLabel'}}">
                <view class="picker">
                    {{settleTypeOptions[settleTypeindex].dictLabel?settleTypeOptions[settleTypeindex].dictLabel:"选择结款方式"}}
                    <van-icon name="arrow-down" />
                </view>
            </picker>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 10rpx;">*</text>合同金额(元)</text>
            </view>
            <view>
                <input type="text" value="{{form.totalAmount}}" bindinput="bindNewInput" type="digit" data-name="form.totalAmount" placeholder="合同金额" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>数量/面积</text>
            </view>
            <view>
                <input type="text" value="{{form.num}}" bindinput="bindNewInput" type="digit" data-name="form.num" placeholder="数量/面积" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>计量单位</text>
            </view>
            <view>
                <input type="text" value="{{form.unit}}" bindinput="bindNewInput" data-name="form.unit" placeholder="计量单位" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 10rpx;">*</text>单价(元)</text>
            </view>
            <view>
                <input type="text" value="{{form.price}}" bindinput="bindNewInput" type="digit" data-name="form.price" placeholder="单价(元)" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 10rpx;">*</text>已结款(元)</text>
            </view>
            <view>
                <input type="text" value="{{form.receivedAmount}}" bindinput="bindNewInput" type="digit" data-name="form.receivedAmount" placeholder="已结款(元)" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>下次结款(元)</text>
            </view>
            <view>
                <input type="text" value="{{form.settledAmount}}" bindinput="bindNewInput" type="digit" data-name="form.settledAmount" placeholder="下次结款(元)" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view class="section">
            <view class="section__title"><text style="color:red;margin-right: 10rpx;">*</text>签订日期</view>
            <picker mode="date" value="{{form.buildingTime}}" start="{{ minDate }}" end="{{ maxDate }}" bindchange="onConfirmBuildingTime">
                <view class="picker">
                    {{form.buildingTime}}
                </view>
            </picker>
        </view>
        <view class="section">
            <view class="section__title"><text style="color:red;margin-right: 10rpx;">*</text>开始日期</view>
            <picker mode="date" value="{{form.startTime}}" start="{{ minDate }}" end="{{ maxDate }}" bindchange="onConfirmStartTime">
                <view class="picker">
                    {{form.startTime}}
                </view>
            </picker>
        </view>
        <view class="section">
            <view class="section__title"><text style="color:red;margin-right: 10rpx;">*</text>结束日期</view>
            <picker mode="date" value="{{form.endTime}}" start="{{ minDate }}" end="{{ maxDate }}" bindchange="onConfirmEndTime">
                <view class="picker">
                    {{form.endTime}}
                </view>
            </picker>
        </view>
        <view class="section">
            <view class="section__title"><text style="color:red;margin-right: 10rpx;">*</text>合同状态</view>
            <picker bindchange="onConfirmContractionStatus" value="{{contractionStatusindex}}" range="{{contractionStatusOptions}}" range-key="{{'dictLabel'}}">
                <view class="picker">
                    {{contractionStatusOptions[contractionStatusindex].dictLabel?contractionStatusOptions[contractionStatusindex].dictLabel:"选择合同状态"}}
                    <van-icon name="arrow-down" />
                </view>
            </picker>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>备注</text>
            </view>
            <view>
                <input type="text" value="{{form.remark}}" bindinput="bindNewInput" data-name="form.remark" placeholder="备注" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
    </view>
</view>
<view class="main-box table-box" style="margin-top:15px;">
    <view style="margin-bottom:15px;">
        <image src="../../../image/icon/target_icon.png" style="width: 15px;height: 15px;margin-right: 10px;" referrer="nor-referrer|origin|unsafe-url"></image>
        <text class="tit">招标信息</text>
    </view>
    <view class="table-boxs">
        <view class="section">
            <view class="section__title"><text style="color:red;margin-right: 22rpx;"></text>招标方式</view>
            <picker bindchange="onConfirmBiddingWay" value="{{biddingWayindex}}" range="{{biddingWayOptions}}" range-key="{{'dictLabel'}}">
                <view class="picker">
                    {{biddingWayOptions[biddingWayindex].dictLabel?biddingWayOptions[biddingWayindex].dictLabel:"选择招标方式"}}
                    <van-icon name="arrow-down" />
                </view>
            </picker>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>项目编号</text>
            </view>
            <view>
                <input type="text" value="{{form.itemId}}" bindinput="bindNewInput" placeholder="项目编号" data-name="form.itemId" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>项目名称</text>
            </view>
            <view>
                <input type="text" value="{{form.itemName}}" bindinput="bindNewInput" placeholder="项目名称" data-name="form.itemName" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>经办人</text>
            </view>
            <view>
                <input type="text" value="{{form.handleName}}" bindinput="bindNewInput" placeholder="经办人" data-name="form.handleName" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>预算金额(元)</text>
            </view>
            <view>
                <input type="text" value="{{form.budget}}" bindinput="bindNewInput" type="digit" placeholder="预算金额(元)" data-name="form.budget" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view class="section">
            <view class="section__title"><text style="color:red;margin-right: 22rpx;"></text>招标日期</view>
            <picker mode="date" value="{{form.biddingDate}}" fields="day" start="{{ minDate }}" end="{{ maxDate }}" bindchange="onConfirmBiddingDate">
                <view class="picker">
                    {{form.biddingDate?form.biddingDate:'未选择'}}
                </view>
            </picker>
        </view>
        <view class="section">
            <view class="section__title"><text style="color:red;margin-right: 22rpx;"></text>招标类型</view>
            <picker bindchange="onConfirmbiddingType" value="{{biddingTypeindex}}" range="{{biddingTypeOptions}}" range-key="{{'dictLabel'}}">
                <view class="picker">
                    {{biddingTypeOptions[biddingTypeindex].dictLabel?biddingTypeOptions[biddingTypeindex].dictLabel:"选择招标方式"}}
                    <van-icon name="arrow-down" />
                </view>
            </picker>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>中标单位</text>
            </view>
            <view>
                <input type="text" value="{{form.winBiddingCompany}}" bindinput="bindNewInput" placeholder="中标单位" data-name="form.winBiddingCompany" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>中标金额(元)</text>
            </view>
            <view>
                <input type="text" value="{{form.winBiddingPrice}}" bindinput="bindNewInput" type="digit"  placeholder="中标金额(元)" data-name="form.nawinBiddingPriceme" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view>
            <view>
                <text><text style="color:red;margin-right: 22rpx;"></text>审核人</text>
            </view>
            <view>
                <input type="text" value="{{form.reviewer}}" bindinput="bindNewInput" placeholder="审核人" data-name="form.reviewer" style="text-align: right;margin-top: 20rpx;" />
            </view>
        </view>
        <view class="section">
            <view class="section__title"><text style="color:red;margin-right: 22rpx;"></text>审核时间</view>
            <picker mode="date" value="{{form.reviewTime}}" fields="day" start="{{ minDate }}" end="{{ maxDate }}" bindchange="onConfirmReviewTime">
                <view class="picker">
                    {{form.reviewTime?form.reviewTime:'未选择'}}
                </view>
            </picker>
        </view>
    </view>
</view>
<view class="bottom">
    <view class="btn2" bindtap="goSubmit" wx:if="{{form.contractionStatus==1}}">保存</view>
</view>