edit.wxml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <!--pages/store/edit1.wxml-->
  2. <view class="container">
  3. <form bindsubmit="formSubmit" bindreset="formReset">
  4. <tui-list-cell hover="{{false}}">
  5. <view class="tui-line-cell">
  6. <view class="tui-title"><text style="color:red;">*</text>门店名称:</view>
  7. <input placeholder-class="phcolor" class="tui-input" name="storeName" placeholder="请输入门店名称" maxlength="50" catchinput="inputedit" value="{{storeInfo.storeName}}" data-name="storeInfo.storeName"/>
  8. </view>
  9. </tui-list-cell>
  10. <tui-list-cell hover="{{false}}">
  11. <view class="tui-line-cell">
  12. <view class="tui-title"><text style="color:red;">*</text>门店负责人:</view>
  13. <input placeholder-class="phcolor" class="tui-input" name="storePrincipal" placeholder="请输入门店负责人"
  14. maxlength="50" value="{{storeInfo.storePrincipal}}" catchinput="inputedit" data-name="storeInfo.storePrincipal"/>
  15. </view>
  16. </tui-list-cell>
  17. <tui-list-cell hover="{{false}}">
  18. <view class="tui-line-cell">
  19. <view class="tui-title"><text style="color:red;">*</text>负责人电话:</view>
  20. <input placeholder-class="phcolor" class="tui-input" name="storePrincipalPhone" placeholder="请输入负责人电话"
  21. maxlength="11" type="number" value="{{storeInfo.storePrincipalPhone}}" catchinput="inputedit" data-name="storeInfo.storePrincipalPhone"/>
  22. </view>
  23. </tui-list-cell>
  24. <tui-list-cell hover="{{false}}">
  25. <view class="tui-line-cell">
  26. <view class="tui-title">前台电话:</view>
  27. <input placeholder-class="phcolor" class="tui-input" name="storeTel" placeholder="请输入前台电话" maxlength="50" value="{{storeInfo.storeTel}}" catchinput="inputedit" data-name="storeInfo.storeTel"/>
  28. </view>
  29. </tui-list-cell>
  30. <tui-list-cell hover="{{false}}">
  31. <view class="tui-line-cell">
  32. <view class="tui-title">设备数量:</view>
  33. <input placeholder-class="phcolor" class="tui-input" name="storeDeviceNum" placeholder="请输入设备数量" type="number" value="{{storeInfo.storeDeviceNum}}" catchinput="inputedit" data-name="storeInfo.storeDeviceNum"/>
  34. </view>
  35. </tui-list-cell>
  36. <tui-list-cell hover="{{false}}">
  37. <view class="tui-line-cell">
  38. <view class="tui-title">门店分成%:</view>
  39. <input placeholder-class="phcolor" class="tui-input" name="storeDivide" placeholder="请输入门店分成百分比" type="number" maxlength="50" catchinput="inputedit" value="{{storeInfo.storeDivide}}" data-name="storeInfo.storeDivide"/>
  40. </view>
  41. </tui-list-cell>
  42. <tui-list-cell hover="{{false}}" >
  43. <view class="tui-line-cell">
  44. <view class="tui-title">二级品类</view>
  45. <picker name="mtType" value="{{value}}" mode="multiSelector" bindchange="picker" bindcolumnchange="columnPicker" range="{{multiArray}}" >
  46. <text class="tui-input" wx:if="{{text==''}}">请选择二级品类</text>
  47. <text class="tui-input" wx:if="{{text!=''}}">{{text}}</text>
  48. </picker>
  49. </view>
  50. </tui-list-cell>
  51. <picker bindchange="bindDadaTypeDictPickerChange" value="{{index}}" range="{{dadaTypeDictList}}" range-key="text">
  52. <tui-list-cell hover="{{false}}">
  53. <view class="tui-line-cell">
  54. <view class="tui-title">达达品类</view>
  55. <input placeholder-class="phcolor" class="tui-input" name="dadaType" placeholder="请选择达达品类" type="text" disabled="true"
  56. value="{{storeInfo.dadaTypeName}}" />
  57. </view>
  58. </tui-list-cell>
  59. </picker>
  60. <tui-list-cell hover="{{false}}" bindtap="timePickerShow">
  61. <view class="tui-line-cell">
  62. <view class="tui-title">营业时间</view>
  63. <input placeholder-class="phcolor" class="tui-input" placeholder="请选择起止时间" type="text" disabled="true"
  64. value="{{dataStr}}" />
  65. </view>
  66. </tui-list-cell>
  67. <picker bindchange="bindDictPickerChange" value="{{index}}" range="{{dictList}}" range-key="text">
  68. <tui-list-cell hover="{{false}}">
  69. <view class="tui-line-cell">
  70. <view class="tui-title">配送类型</view>
  71. <input placeholder-class="phcolor" class="tui-input" name="peisongType" placeholder="请选择配送类型" type="text" disabled="true"
  72. value="{{storeInfo.peisongTypeName}}" />
  73. </view>
  74. </tui-list-cell>
  75. </picker>
  76. <picker bindchange="bindDataCityDictPickerChange" value="{{index}}" range="{{dataCityDictList}}" range-key="text">
  77. <tui-list-cell hover="{{false}}">
  78. <view class="tui-line-cell">
  79. <view class="tui-title">达达配送城市</view>
  80. <input placeholder-class="phcolor" class="tui-input" name="dadaCityCode" placeholder="请选择达达配送城市" type="text" disabled="true"
  81. value="{{storeInfo.dadaCityName}}" />
  82. </view>
  83. </tui-list-cell>
  84. </picker>
  85. <tui-list-cell hover="{{false}}">
  86. <view class="tui-line-cell">
  87. <view class="tui-title">所在地区:</view>
  88. <!-- <input placeholder-class="phcolor" class="tui-input" name="storeArea" placeholder="请输入所在地区" catchinput="inputedit" value="{{storeInfo.storeArea}}" data-name="storeInfo.storeArea"/> -->
  89. <picker mode="region" name="storeArea" bindchange="bindRegionChange" value="{{region}}" placeholder="请选择所在地区">
  90. <text class="tui-input" wx:if="{{region==''}}">请选择所在地区</text>
  91. <text class="tui-input">{{region[0]}}{{region[1]}}{{region[2]}}</text>
  92. </picker>
  93. </view>
  94. </tui-list-cell>
  95. <tui-list-cell hover="{{false}}">
  96. <view class="tui-line-cell">
  97. <view class="tui-title">详细地址:</view>
  98. <input placeholder-class="phcolor" class="tui-input" bindtap="selectMap" name="storeAddress" placeholder="请输入所在地区" catchinput="inputedit" value="{{storeInfo.storeAddress}}" data-name="storeInfo.storeAddress"/>
  99. <view class="tui-title">门牌号(栋、室):</view>
  100. <input placeholder-class="phcolor" class="tui-input" name="houseNum" placeholder="请输入门牌号" catchinput="inputedit" value="{{storeInfo.houseNum}}" data-name="storeInfo.houseNum"/>
  101. </view>
  102. </tui-list-cell>
  103. <!-- <tui-list-cell hover="{{false}}" bindtap="timePickerShow">
  104. <view class="tui-line-cell">
  105. <view class="tui-title">合约时间:</view>
  106. <input placeholder-class="phcolor" class="tui-input" placeholder="选择开始时间 - 选择结束时间" type="text" disabled="true"
  107. value="{{dataStr}}" />
  108. </view>
  109. </tui-list-cell> -->
  110. <view class="tui-btn-box">
  111. <button class="btn-primary margin-bottom-xs" hover-class="btn-hover" formType="submit" type="primary" bindtap="editStore">提交</button>
  112. <button class="btn-primary margin-bottom-xs btn-gray" hover-class="btn-gray-hover" formType="reset">重置</button>
  113. <button class="btn-primary btn-red" hover-class="btn-hover" formType="delete" type="primary" data-id="" bindtap="delete">删除</button>
  114. </view>
  115. <time-picker format="HHmm" pickerShow="{{isPickerShow}}" id="picker" wx:if="{{isPickerRender}}" bind:hidePicker="pickerHide"
  116. bind:setPickerTime="setPickerTime" config="{{pickerConfig}}"></time-picker>
  117. </form>
  118. </view>