<!--pages/apply/index.wxml--> <view class="ns" style="height:{{isIPX?'88px':'64px'}};"> <image src="/image/apply/back.png" style="top:{{isIPX?'54px':'30px'}};" mode="widthFix" bindtap="back"></image> <text style="top:{{isIPX?'54px':'30px'}};">修改收入登记</text> </view> <!-- 付款单位开始 --> <view class="top" style="margin-top:{{isIPX?'100px':'75px'}};"> <image src="/image/apply/dress_icon.png" mode="widthFix"></image> <view class="top-tit">收入单位</view> <view class="top-title">{{bookName}}</view> </view> <text class="title">基础信息</text> <view class="main-box table-box"> <view class="flex-block"> <text class="rules">收入时间</text> <view class="wrap" bindtap="onsrDate" > {{formData.accountDate}} </view> <van-calendar show="{{ srShow }}" min-date="{{ minDate }}" max-date="{{ maxDate }}" bind:close="onClose" bind:confirm="onConfirm" /> </view> <view class="flex-block"> <text class="rules">收入金额</text> <input class="wrap" data-prop="formData.jieAmount" type="digit" value="{{formData.jieAmount}}" bindinput="inputChange" placeholder="请输入收入金额"/> </view> <view class="flex-block"><text class="rules">存入账户</text> <!-- <input class="wrap" type="number" bindinput="inputChange" data-prop="formData.accountName" value="{{formData.accountName}}" placeholder="请输入存入账户"/> --> <view bindtap="oncrzhShow" class="wrap"> <text wx:if="{{formData.accountName==''}}" class="color-gray">请选择存入账户</text> <text wx:else>{{formData.accountName}}</text> </view> <!-- custom-style="height: 20%;"--> <van-popup show="{{ crzhShow }}" position="bottom" bind:close="onCancelcrzh" > <van-picker columns="{{ accountListOptions }}" value-key="accountName" bind:cancel="onCancelcrzh" show-toolbar="{{true}}" bind:confirm="onConfirmcrzh"/> </van-popup> </view> <view class="flex-block"> <text class="rules">收入类型</text> <view bindtap="oncrlxShow" class="wrap"> <text wx:if="{{incomeTypeText==''}}" class="color-gray">请选择收入类型</text> <text wx:else>{{incomeTypeText}}</text> </view> </view> <van-popup show="{{ crlxShow }}" position="bottom" bind:close="onCancelcrlx" > <van-picker columns="{{ incomeTypeOptions }}" value-key="dictLabel" bind:cancel="onCancelcrlx" show-toolbar="{{true}}" bind:confirm="bindPickerChange"/> <!-- <picker bindchange="bindPickerChange" class="wrap picker_wrap" value="{{incomeTypeText}}" range="{{incomeTypeOptions}}" range-key="dictLabel"> </picker> --> </van-popup> <view class="flex-block"><text class="rules no">单据编码</text> <input class="wrap" bindinput="inputChange" data-prop="formData.billNum" value="{{formData.billNum}}" placeholder="请输入单据编码"/></view> <!-- <view class="flex-block"> <text class="rules no">对方科目</text> <view class="wrap" bindtap="selectKM"> <text wx:if="{{formData.subjectNameAll==''||formData.subjectNameAll==null}}" class="color-gray">请选择对方科目</text> <text wx:else>{{formData.subjectNameAll}}</text> </view> <van-popup show="{{showKm}}" round position="bottom" bind:close="closeBoxKM" > <van-picker columns="{{subjectOptions}}" show-toolbar value-key="subjectNameAll" bind:cancel="closeBoxKM" bind:confirm="onConfirmContractionKm" /> </van-popup> </view> --> <view class="flex-block"><text class="rules">备注说明</text> <input class="wrap" bindinput="inputChange" data-prop="formData.accountSummary" placeholder="请输入备注说明" value="{{formData.accountSummary}}"/></view> <view class="flex-block" wx:if="{{formData.checkedStatus == 4}}"><text class="rules">挂起原因</text> <input class="wrap" bindinput="inputChange" data-prop="formData.remark" placeholder="请输入挂起原因" value="{{formData.remark}}"/></view> </view> <block wx:if="{{incomeType == 2}}"> <view class="title"> <text>关联合同</text> </view> <view class="main-box table-box"> <view class="flex-block"> <text class="rules {{formData.incomeType == '2' ?'':'no'}}">付款人{{}}</text> <view class="wrap" bindtap="selectContraction"> <text wx:if="{{payerText==''}}" class="color-gray">请选择付款人</text> <text wx:else>{{payerText}}</text> </view> <van-popup show="{{showHt}}" round position="bottom" bind:close="closeBox" > <van-picker columns="{{contractionOptions}}" show-toolbar value-key="name" bind:cancel="closeBox" bind:confirm="onConfirmContraction" /> </van-popup> </view> <view class="flex-block"><text class="rules {{formData.incomeType == '2' ?'':'no'}}">合同编码</text> <view class="wrap" bindtap="selectContraction"> <text wx:if="{{contractionIdID==''}}" class="color-gray">请选择合同编码</text> <text wx:else>{{contractionIdID}}</text> </view> </view> </view> </block> <view class="main-box table-box" style="margin-top: 15px;"> <van-cell> <!-- <view slot="icon"> <van-icon class-prefix="my-icon" name="extra" /> </view> --> <view slot="title"> <view class="van-cell-text">附件<van-tag type="danger" style="margin-left: 10px;">可拍照</van-tag></view> </view> <view> <view class="van-cell-text">总数<van-tag round color="#5CAE77" plain style="margin-left: 10px;"> {{fileNum}}张 </van-tag></view> </view> </van-cell> <view class="fj-box"> <view class="fj-li" wx:for="{{uploadOptions}}" wx:key="index"> <view> <text>{{item.dictLabel}}</text> </view> <view class="img_box"> <view class="img_list" wx:for="{{item.Pics}}" wx:for-index="childrenIndex" wx:for-item="item2" wx:key="childrenIndex"> <image class="img_li" src="{{item2.tempFilePath}}" bindlongpress="bindlongpressimg" data-status="sjPics" bindtap="imgPreviewImage" data-id='{{childrenIndex}}' data-option="{{item.Pics}}" data-index="{{childrenIndex}}" ></image> <van-icon name="/image/apply/img_delete.png" data-id="{{childrenIndex}}" data-imgid="{{item2.id}}" size="20px" data-status="uploadOptions[{{index}}]" data-index="{{index}}" bindtap="deleteimg" /> </view> <view class="img_list"> <image class="img_li img_add" src="/image/apply/fj_upload.png" data-index="{{index}}" bindtap="uploadSjPics"></image> </view> </view> </view> </view> <!-- <view style="margin:10px 0 5px;" class="flex-block"> <text class="fjLable">收据</text> <view class='content'> <view class='img-box'> <view class='img-list'> <block wx:for="{{sjPics}}" wx:for-index="index" wx:key="index"> <view class='img-item'> <van-icon class="close-ico" data-id="{{index}}" name="/image/apply/img_delete.png" size="20px" data-status="sjPics" bindtap="deleteimg" /> <image src='{{item.file}}' class="imagea" bindlongpress="bindlongpressimg" data-status="sjPics" bindtap="imgPreviewImage" data-id='{{index}}'></image> </view> </block> <view class='chooseimg' bindtap='uploadSjPics'> <view class="weui-uploader__input-box"></view> </view> </view> </view> </view> </view> <view style="margin:10px 0 5px;" class="flex-block"> <text class="fjLable">发票</text> <view class='content'> <view class='img-box'> <view class='img-list'> <block wx:for="{{fpPics}}" wx:for-index="index" wx:key="index"> <view class='img-item'> <van-icon class="close-ico" data-id="{{index}}" name="/image/apply/img_delete.png" size="20px" data-status="fpPics" bindtap="deleteimg" /> <image src='{{item.file}}' data-status="fpPics" bindtap="imgPreviewImage" class="imagea" bindlongpress="bindlongpressimg" data-id='{{index}}'></image> </view> </block> <view class='chooseimg' bindtap='uploadFpPics'> <view class="weui-uploader__input-box"></view> </view> </view> </view> </view> </view> <view style="margin:10px 0 5px;" class="flex-block"> <text class="fjLable">其他</text> <view class='content'> <view class='img-box'> <view class='img-list'> <block wx:for="{{qtPics}}" wx:for-index="index" wx:key="index"> <view class='img-item'> <van-icon class="close-ico" name="/image/apply/img_delete.png" size="20px" data-id="{{index}}" data-status="qtPics" bindtap="deleteimg" /> <image src='{{item.file}}' data-status="qtPics" bindtap="imgPreviewImage" class="imagea" bindlongpress="bindlongpressimg" data-id='{{index}}'></image> </view> </block> <view class='chooseimg' bindtap='uploadQtPics'> <view class="weui-uploader__input-box"></view> </view> </view> </view> </view> </view> --> </view> <view class="bottom"> <!-- <view class="btn1" data-type="3" bindtap="goSubmit">提交复核</view> --> <view class="btn1" data-code="1" bindtap="swichAccounting">保存</view> <view class="btn2" data-code="2" bindtap="swichAccounting">保存并提交</view> </view> <!-- <view class="main-box table-box" style="margin-top: 30rpx;"> <view class="btn flex-block"> <button type="primary" data-code="1" bindtap="swichAccounting" plain="true">暂存</button> <button type="primary" data-code="2" bindtap="swichAccounting">提交</button> </view> </view> -->