product-attribute.wxml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!-- 顶部信息 -->
  2. <van-sticky scroll-top="0">
  3. <van-search model:value="{{ searchText }}" bind:change="onSearchText" bind:search="doSearch" placeholder="输入要素名称/备注"> </van-search>
  4. <van-dropdown-menu active-color="#1B365D">
  5. <van-dropdown-item id="status" title="{{statusItem.text }}">
  6. <dk-dropdown-switch dataList="{{statusList}}" bind:commit='dropdownSwitchCommit'></dk-dropdown-switch>
  7. </van-dropdown-item>
  8. </van-dropdown-menu>
  9. </van-sticky>
  10. <loading wx:if="{{loading}}" loadingName="{{$t['loading']}}" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
  11. <view style="display: flex;">
  12. <!-- 左侧菜单列表 -->
  13. <van-sidebar activeKey="{{sideKey}}" bindchange="changeSidebar" custom-class="left-class">
  14. <view style="height:calc({{windowHeight+'px'}} - {{'220rpx'}});overflow: scroll;">
  15. <van-sidebar-item wx:key="index" custom-class="{{sideKey - 1 == index? 'sidebar-item-before': (sideKey + 1 == index?'sidebar-item-next':'sidebar-item')}}" title="{{item.name}}" data-id="{{item.id}}" wx:for="{{sidebarList}}" />
  16. </view>
  17. </van-sidebar>
  18. <!-- 内容列表 -->
  19. <view style="margin-left: 140rpx;width: 100%;">
  20. <!-- 商品品牌 -->
  21. <dk-list wx:if="{{formDataName == $t['goodsBrand']}}" list="{{tableData}}" titleImageFlag="{{false}}" swipeDisabled="{{false}}" bind:swipe="deactivateEnable" statusFlag="{{false}}" flgPoint="{{false}}" switchFlag="{{true}}" title="goodsBrand" content="{{contentList}}" collectName="" contentObj="{{contentObj}}" bind:toDetail="toDetail" bind:toPoint="toPoint" routeObjName="{{routeObjName}}" buttonList="{{buttonList}}" bind:open="open"></dk-list>
  22. <!-- 商品种类 -->
  23. <dk-tree-form-more wx:if="{{formDataName == $t['goodsCategory']}}" treeList="{{tableData}}" idKey="catId" flgValidKey="flgValid" nameKey="catName" parentIdKey="parentId" itemListKey="children" id="treeSelect" bind:onclick="treeClick" bind:onSwipe="onSwipeBind" ></dk-tree-form-more>
  24. <!-- 商品系列 -->
  25. <dk-list wx:if="{{formDataName == $t['goodsSeries']}}" list="{{tableData}}" titleImageFlag="{{false}}" swipeDisabled="{{false}}" bind:swipe="deactivateEnable" statusFlag="{{false}}" flgPoint="{{false}}" switchFlag="{{true}}" title="seriesName" bind:toDetail="toDetail" bind:open="open"></dk-list>
  26. <!-- 计量单位 -->
  27. <dk-list wx:if="{{formDataName == $t['unit']}}" list="{{tableData}}" titleImageFlag="{{false}}" swipeDisabled="{{false}}" bind:swipe="deactivateEnable" subMainTitlelabel="{{$t['decimalPlacesNumber']}}" subMainTitle="decimalPlaces" statusFlag="{{false}}" flgPoint="{{false}}" switchFlag="{{true}}" title="unitName" bind:toDetail="toDetail" bind:open="open"></dk-list>
  28. <!-- 保留高度 -->
  29. <view style="height: 220rpx;"></view>
  30. </view>
  31. </view>
  32. <dk-popup type="basic" priceTitle="" priceCol="pricePromotion" subCol="desc" title="{{formDataName}}" value="{{dataItem}}" show="{{showPop}}" routeObjName="{{routeObjNameGoTo}}" contentObj="{{popContent}}" bind:commit="editItems">
  33. </dk-popup>
  34. <!-- 底部信息 -->
  35. <dk-save-bottom flagTypeName="basic-data" bottomClass="{{true}}" bind:submit="toClose" bind:allClean="toAdd" />