<wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
<!-- 顶部信息 -->
<van-sticky scroll-top="0">
  <dk-navbar titleFontColor="#000000" navbarTitle="商品属性" bind:clickBack="handleNavBack" operateShow="{{ guideUrl ? true: false}}" operateUrl="{{guideUrl}}"/>
  <!-- 查询条件 -->
  <dk-dropdown-menu model:value="{{searchForm}}" menuList="{{searchContent}}" pullMenuList="{{pullMenuList}}" bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['attributeName'])}}">
  </dk-dropdown-menu>
</van-sticky>
<van-dialog id="van-dialog" />
<loading wx:if="{{loading}}" ></loading>
<view style="display: flex;">
  <!-- 左侧菜单列表 -->
  <van-sidebar activeKey="{{sideKey}}" bindchange="changeSidebar" custom-class="left-class" >
    <view style="height:calc({{windowHeight+'px'}} - {{'220rpx'}});overflow: scroll;">
      <van-sidebar-item wx:key="index" custom-class="{{sideKey - 1 == index? 'sidebar-item-before': (sideKey + 1 == index?'sidebar-item-next':'sidebar-item')}}" title="{{item.kindName}}" data-id="{{item.id}}" wx:for="{{sidebarList}}" />
    </view>
  
  </van-sidebar>

  <!-- 内容列表 -->
  <view style="margin-left: 140rpx;width: 100%;">

    <!-- 商品品牌 -->
    <dk-list flgValidOnFlag="{{true}}"  wx:if="{{formDataName == $t['goodsBrandSys']}}" list="{{tableData}}" titleImageFlag="{{false}}" swipeDisabled="{{false}}" simpleFlag="{{gradeCode == 'STD'? true:false}}" bind:swipe="deactivateEnable" statusFlag="{{false}}" flgPoint="{{false}}" switchFlag="{{true}}" title="brandName" content="{{contentList}}" collectName="" contentObj="{{contentObj}}" bind:toTitle="toDetail" bind:toDetail="toDetail" routeObjName="{{routeObjName}}" buttonList="{{buttonList}}" bind:open="open"></dk-list>
    
    <!-- 商品种类 -->
    <dk-tree-form-more flgValidOnFlag="{{false}}"  wx:if="{{formDataName == $t['goodsCategorySys']}}" treeList="{{tableData}}" idKey="catId" flgValidKey="flgValid" nameKey="catName" parentIdKey="parentId" itemListKey="children" id="treeSelect" bind:clickName="toDetail" bind:onSwipe="onSwipeBind"   ></dk-tree-form-more>

    <!-- 商品系列 -->
    <dk-list flgValidOnFlag="{{true}}"  wx:if="{{formDataName ==  $t['goodsSeriesSys']}}" list="{{tableData}}" titleImageFlag="{{false}}" swipeDisabled="{{false}}" simpleFlag="{{true}}" bind:swipe="deactivateEnable" statusFlag="{{false}}" flgPoint="{{false}}" switchFlag="{{true}}" title="seriesName" bind:toDetail="toDetail" bind:open="open"></dk-list>

    <!-- 计量单位 -->
    <dk-list flgValidOnFlag="{{false}}"  wx:if="{{formDataName ==  $t['unitSys']}}" list="{{tableData}}" titleImageFlag="{{false}}" swipeDisabled="{{false}}" bind:swipe="deactivateEnable" subMainTitlelabel="{{$t['decimalPlacesNumber']}}" subMainTitle="decimalPlaces" statusFlag="{{false}}" simpleFlag="{{true}}" flgPoint="{{false}}" switchFlag="{{true}}" title="unitName" bind:toDetail="toDetail" bind:open="open" ></dk-list>


    <!-- 保留高度 -->
    <view style="height: 220rpx;"></view>
  </view>
</view>


<dk-popup id="popup" type="basic" validFlag="{{true}}" priceTitle="" priceCol="pricePromotion" subCol="desc" title="{{formDataTitle}}" value="{{dataItem}}" autoCloseFlag="{{false}}" show="{{showPop}}" routeObjName="{{routeObjNameGoTo}}" contentObj="{{popContent}}" bind:commit="editItems">
</dk-popup>



<!-- 底部信息 -->
<dk-save-button model:value="{{btnFormData}}" btnAutoWidthFlag="{{true}}" btnRightFlag="{{true}}" buttonList="{{buttonSaveList}}" contentList="{{contentSaveList}}" bind:open="toAdd"></dk-save-button>