<import src="insert.skeleton.wxml" />
<template is="skeleton" wx:if="{{loading}}" />

<view class="header">
    <view class="title">
        {{language[reportname]||reportname}}
    </view>
    {{date}}
</view>
<view class="inputs {{item.editable==0?'disabled':''}}" wx:for="{{list}}" wx:key="rowindex">
    <view class="label">
        <view>{{language[item.title]||item.title}}</view>
        <Yl_VoiceInput wx:if="{{item.editable!=0}}" class="Yl_VoiceInput" data-index="{{index}}" data-item="{{item}}" bindcallback="onVoiceInput" />
    </view>
    <textarea value="{{item.content}}" disabled='{{item.editable==0}}' placeholder="{{item.editable==0?(language['暂无']||'暂无'):(language['请输入']||'请输入')+'...'}}" auto-height maxlength='-1' data-index="{{index}}" data-item="{{item}}" bindinput='onInput' />
</view>

<view class="inputs">
    <view class="files-box">
        {{language['附件']||'附件'}}:
        <view>
            <My_upload accept='media' binduploadCallback="insertImgEdit">
                <navigator url="#" class="but">
                    <van-icon name="photo-o" />
                </navigator>
            </My_upload>
            <My_upload accept='file' binduploadCallback="insertImgEdit">
                <navigator url="#" class="but">
                    <van-icon name="description" />
                </navigator>
            </My_upload>
        </view>
    </view>
</view>
<view style="background-color: #fff; width: 100vw;margin-top: -40rpx;padding-top: 20rpx;">
    <Yl_Files delete id="Yl_Files" />
</view>

<view style="height: 136rpx;" />
<view class="footer">
    <view />
    <view class="but-box">
        <van-button custom-class='but' plain type="default" bind:click="onCancel">{{language['取消']||'取消'}}</van-button>
        <van-button custom-class='but submit1' loading='{{loading1}}' color='#3874F6' bind:click="submit">{{language['提交']||'提交'}}</van-button>
    </view>
</view>