<!--pages/workBenchNew/components/kaihu/index.wxml-->
<navigator canBack="{{true}}" title="开户" />
<view class="modalContentWrapper">
    <van-field
        value="{{ parkName }}"
        placeholder="请选择园区"
        label="园区"
        use-button-slot
        readonly
        title-width="120rpx"
        required
    >
        <van-button slot="button" size="small" type="info" bind:click="onParkFocus">
            选择
        </van-button>
    </van-field>
        <van-field
            value="{{name}}"
            data-name="name"
            bind:change="onChange"
            label="商户全称"
            type="textarea"
            placeholder="请输入商户全称"
            autosize="{{true}}"
            title-width="132rpx"
            required
        />
        <van-field
            value="{{shortName}}"
            data-name="shortName"
            bind:change="onChange"
            label="商户简称"
            placeholder="请输入商户简称"
            type="textarea"
            autosize="{{true}}"
            title-width="132rpx"
        />
        <van-field
            value="{{address}}"
            data-name="address"
            bind:change="onChange"
            label="联系地址"
            placeholder="请输入联系地址"
            type="textarea"
            autosize="{{true}}"
            title-width="132rpx"
            required
        />
        <van-field
            value="{{contact}}"
            data-name="contact"
            bind:change="onChange"
            label="联系人"
            placeholder="请输入联系人"
            type="textarea"
            autosize="{{true}}"
            title-width="132rpx"
            required
        />
        <van-field
            value="{{phone}}"
            data-name="phone"
            bind:change="onChange"
            label="联系电话"
            placeholder="请输入联系电话"
            type="textarea"
            autosize="{{true}}"
            title-width="132rpx"
            required
        />
        <van-field
            value="{{ buildingName }}"
            placeholder="请选择建筑"
            label="建筑"
            use-button-slot
            readonly
            title-width="120rpx"
            required
        >
            <van-button slot="button" size="small" type="info" bind:click="onBuildingFocus">
                选择
            </van-button>
        </van-field>
        <van-field
            value="{{ feeTypeName }}"
            placeholder="请选择收费类型"
            label="收费类型"
            readonly
            use-button-slot
            title-width="120rpx"
        >
            <van-button slot="button" size="small" type="info" bind:click="onFeeTypeFocus">
                选择
            </van-button>
        </van-field>
    </view>
    <view class="operate">
        <view style="margin-top: 60rpx; margin-bottom: 60rpx;display: flex; justify-content: center; align-items: center;">
            <van-button type="info" size="small" style="margin-right: 30rpx;" bind:click="onSubmit" data-status="0"> 保存 </van-button>
            <van-button size="small" bind:click="handleBack" data-status="1"> 返回 </van-button>
        </view>
    </view>

    <search-select 
        show="{{show}}" 
        title="{{title}}" 
        type="{{type}}" 
        park="{{park}}"
        bindconfirm="onConfirm"
        bindcancel="onCancel"
    />