add.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <import src="add.skeleton.wxml" />
  2. <template is="skeleton" wx:if="{{skeletonShow}}" />
  3. <navigator wx:if="{{userrole!='经销商'}}" url="#" class="groud" bindtap="selectAgency">
  4. <view class="label jxs">
  5. 指定经销商:
  6. </view>
  7. <view class="agency" wx:if="{{agency.sys_enterpriseid}}">
  8. <view class="title">
  9. {{agency.enterprisename||" --"}}
  10. </view>
  11. <view class="exp">联系人:{{agency.changeby||" --"}} {{agency.phonenumber||" --"}}</view>
  12. <view class="exp">详细地址:{{agency.province+agency.city+agency.county+agency.address||" --"}}</view>
  13. </view>
  14. <view wx:else>
  15. 点击选择经销商
  16. </view>
  17. </navigator>
  18. <view class="groud" wx:if="{{brandList.length}}">
  19. <view class="label">
  20. 订单类型
  21. </view>
  22. <view class="content">
  23. <van-button wx:for="{{orderList}}" custom-class='but {{type==item?"active":""}}' data-name="{{item}}" bindtap="onSelectType">{{item}}</van-button>
  24. </view>
  25. </view>
  26. <view class="groud" wx:if="{{brandList.length}}">
  27. <view class="label">
  28. 选择品牌
  29. </view>
  30. <view class="content">
  31. <van-button custom-class='but {{item.sa_brandid==sa_brandid?"active":""}}' wx:for="{{brandList}}" wx:key="sa_brandid" data-item="{{item}}" bindtap="onSelectBrand">{{item.brandname}}</van-button>
  32. </view>
  33. </view>
  34. <view class="groud" wx:if="{{domainList.length}}">
  35. <view class="label">
  36. 选择领域
  37. </view>
  38. <view class="content">
  39. <van-button custom-class='but {{item.tradefield==tradefield?"active":""}}' wx:for="{{domainList}}" wx:key="sys_enterprise_tradefieldid" data-item="{{item}}" bindtap="onSelect">{{item.tradefield}}</van-button>
  40. </view>
  41. </view>
  42. <view class="groud" wx:if="{{optionalAccount.length>1}}">
  43. <view class="label">
  44. 选择账户
  45. </view>
  46. <view class="content">
  47. <van-button custom-class='but {{item.sa_accountclassid==sa_accountclassid?"active":""}}' wx:for="{{optionalAccount}}" wx:key="sa_accountclassid" data-item="{{item}}" bindtap="onSelectAcc">{{item.accountname}}</van-button>
  48. </view>
  49. </view>
  50. <!-- 底部 -->
  51. <view style="height: 150rpx;" />
  52. <view class="footer">
  53. <van-button custom-class='but' loading='{{loading}}' loading-text='创建中...' bindtap="submit">创建订单</van-button>
  54. </view>