<view>
  <van-search wx:if="{{flgSearchText}}" readonly="{{searchReadonly}}" model:value="{{ form.searchText }}" bind:change="onSearchText" bind:search="doSearch" use-action-slot placeholder="{{searchTextPlaceholder}}">
  </van-search>
  <van-search wx:if="{{flgSearchFlag}}" readonly="{{true}}" model:value="{{ flgSearchTextSearchText }}" use-action-slot placeholder="{{searchTextPlaceholder}}">
  </van-search>
  <van-dropdown-menu active-color="#3E69F6" wx:if="{{menuList.length > 0}}">
    <!--查询条件-->
    <van-dropdown-item wx:for="{{menuList}}" data-index="{{index}}" title="{{item.title}}" data-item="{{item}}" id="{{item.code}}" options="{{item.options}}" value="{{item.value}}" bind:open="openDropdown" bind:change="onChange">
      <!-- 日期 -->
      <dk-dropdown-date wx:if="{{item.searchType === 'date'}}" blankFlag="{{false}}" data-item="{{item}}" defaultValue="{{item.defaultValue}}" bind:dateCommit='dateCommit' code="{{item.code}}"></dk-dropdown-date>
      <!-- 开关 -->
      <dk-dropdown-switch wx:if="{{item.searchType === 'switch'}}" switchKey="{{item.key}}" switchCode="{{item.code}}" dataList="{{item.list}}" code="{{item.code}}" bind:commit='switchCommit'></dk-dropdown-switch>
    </van-dropdown-item>
  </van-dropdown-menu>
  <!-- 多选 -->
  <dk-muti-dropdown-item show="{{dropDownFlag}}" typeName="{{dropType}}" bind:commit='mutiSearchAll' navBarHeight="{{navBarHeight}}" bind:muticlose='mutiCloseAll'></dk-muti-dropdown-item>
  <!--单选-->
  <dk-single-dropdown-item show="{{dropSingleDownFlag}}" typeName='{{dropType}}' bind:commit='chooseData' navBarHeight="{{navBarHeight}}" bind:muticlose='muticlose'></dk-single-dropdown-item>
  <!-- 筛选 -->
  <dk-side-pull-menu show_p="{{pickFlag}}" searchForm="{{form}}" bind:clearSearchForm="clearform" bind:doSearchData="mutiSearchAll" 
  navBarHeight="{{navBarHeight}}" bind:onClose="mutiCloseAll">
    <view wx:for="{{pullMSelectMenuList}}" data-index="{{index}}" data-item="{{item}}">
      <dk-label-multiple-select id="{{item.code}}" show="{{dropDownFlag}}" typeName="{{item.typeName}}" bind:onClickTag="onClickTag"></dk-label-multiple-select>
    </view>
    <van-cell-group wx:if="{{pullOtherMenuList != null && pullOtherMenuList.length > 0}}">
      <view wx:for="{{pullOtherMenuList}}" data-index="{{index}}" data-item="{{item}}">
        <van-field wx:if="{{!item.dataType || item.dataType == 'number'}}" border="{{ false }}" input-align="right" bind:change="handleFieldChange" label-class="title-class" type="{{item.dataType}}" input-class="value-class" value="{{form[item.code]}}" label="{{item.title?item.title:$t[item.code]}}" data-key="{{item.code}}" placeholder="{{$t['inputWords'] }}{{item.title?item.title:$t[item.code]}}"  />
        <van-cell wx:if="{{item.dataType == 'date'}}" title-width="150rpx" value-class="{{form[item.code]?'cell-value-class':'cell-value-class-no-select'}}" value="{{form[item.code] ? form[item.code] :($t['inputWords'] + (item.title?item.title:$t[item.code]) )}}" is-link border="{{ false }}" title-class="title-class" title="{{item.title?item.title:$t[item.code]}}" data-key="{{item.code}}" bind:click="onClickDate"></van-cell>
        <!--选择框-->
        <van-field wx:if="{{item.dataType=='checkbox'}}" input-width="100rpx" input-class="dk-cell-value-class" label-class="nomal-label" input-align="right" label="{{item.title?item.title:$t[item.code]}}" autosize border="{{ false }}" readonly="{{true}}">
          <view slot="end" style="text-align: right;margin-left: 10rpx;" data-item="{{item}}" data-index="{{index}}" data-value="{{form[item.code]}}" data-key="{{item.code}}" catchtap="onChangeCheck">
            <van-checkbox shape="round" value="{{form[item.code]}}" />
          </view>
        </van-field>
      </view>
    </van-cell-group>
  </dk-side-pull-menu>

  <dk-dropdown-date-day show="{{dropDateFlag}}" bind:dateCommit="pickDateCommit"></dk-dropdown-date-day>

</view>