select-goods.wxml 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. <wxs module="m1">
  2. var displayPrice = function (item) {
  3. var numberFormat = require("/utils/numberFormat.wxs");
  4. // 如果有促销显示标准售价,如果正常品显示标价
  5. // if (item.promotionType == 0) {
  6. //优先显示促销价
  7. if (item.pricePromotion) {
  8. return '¥' + numberFormat.toThousandCents(item.pricePromotion)
  9. } else {
  10. return '¥' + numberFormat.toThousandCents(item.priceStandard)
  11. }
  12. // } else {
  13. // return '¥' + numberFormat.toThousandCents(item.pricePromotion)
  14. // }
  15. // return ''
  16. }
  17. module.exports.displayPrice = displayPrice
  18. </wxs>
  19. <wxs src='/utils/numberFormat.wxs' module="numberFormat"></wxs>
  20. <wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
  21. <loading wx:if="{{loading}}" loadingName="加载中" backgroundColor="#f2f2f2;" opacity="0.8"></loading>
  22. <van-dialog id="van-dialog" />
  23. <van-tabs type="card" custom-class="tags-class" tab-active-class="{{active==0?'van-tab-active-left':'van-tab-active-right'}}" animated="{{true}}" swipeable="{{true}}" active="{{ active }}" dot bind:change="changeTag">
  24. <van-tab title="商品列表"></van-tab>
  25. <van-tab title="已选商品" info="{{choosedGoodsList.length==0?'':choosedGoodsList.length}}"></van-tab>
  26. </van-tabs>
  27. <view class="main-good-class" style="height:{{windowHeight+'px'}}">
  28. <scroll-view scroll-y='{{true}}' bindscrolltolower='scrollToLower' lower-threshold='100' wx:if="{{active == 0}}" class="goods-class" style="height:calc({{windowHeight+'px'}} - 295rpx);overflow: scroll;">
  29. <van-cell-group style="display: flex;justify-content: flex-end;width: calc({{windowWidth+'px'}} - 20rpx);" custom-class="width-70">
  30. <!-- 商品列表 -->
  31. <van-cell wx:for="{{goodsList}}" wx:key="index" border="{{ false }}" data-item="{{item}}" bind:click="openAddItemInfo" custom-class="goods-cell-class">
  32. <view class="goods-item-class">
  33. <view>
  34. <van-image radius="15rpx" custom-class="goods-item-image" fit="fill" src="{{item.iconThumPath }}" />
  35. </view>
  36. <view style="margin-left: 26rpx;width: 100%;">
  37. <!-- 标题 -->
  38. <view style="display: flex;">
  39. <dk-title titleTag="{{item.titleTag}}" title="{{item.title}}"></dk-title>
  40. </view>
  41. <!-- 描述 -->
  42. <view style="display: flex; ">
  43. <dk-text value="{{item.desc}}"></dk-text>
  44. </view>
  45. <view style="display: flex;">
  46. <!-- 标准价/标价-->
  47. <view style="width: 85%;">
  48. <dk-cell height="46rpx" spaceWidth="1rpx" left="0" fontSize="13" contentColor="#CAA977" fontWeight="bold" title="标准售价:" content="{{item.pricePromotion?item.pricePromotion:(item.priceStandard?item.priceStandard:0)}}"></dk-cell>
  49. </view>
  50. <!-- 加号 -->
  51. <view class="van-icon-class">
  52. <van-icon size="25px" name="add" style="color:#1B365D" />
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </van-cell>
  58. <view wx:if="{{goodsList.length!=0}}" style="height:180rpx;"></view>
  59. <van-cell wx:if="{{goodsList.length==0}}" border="{{ false }}">
  60. <view style="width:100%;">
  61. <van-empty description="暂无商品" />
  62. </view>
  63. </van-cell>
  64. </van-cell-group>
  65. </scroll-view>
  66. <!--已选列表-->
  67. <view wx:if="{{active == 1}}" class="goods-selected-class">
  68. <view class="goods-class" style="height:calc({{windowHeight+'px'}} - 295rpx);overflow: scroll;"></view>
  69. <van-cell-group style="display: flex;justify-content: flex-end;width: calc({{windowWidth+'px'}} - 20rpx);" custom-class="width-80">
  70. <van-cell wx:if="{{choosedGoodsList.length==0}}" border="{{ false }}">
  71. <van-empty description="暂无商品" />
  72. </van-cell>
  73. <van-cell custom-class="goods-cell-class" wx:for="{{choosedGoodsList}}" wx:key="index" data-index="{{index}}" border="{{ false }}">
  74. <van-swipe-cell right-width="{{ 65 }}" data-index="{{index}}" async-close bind:close="delChoosedGoodsItem">
  75. <view class="goods-item-class">
  76. <view>
  77. <van-image radius="15rpx" custom-class="goods-item-image" fit="fill" src="{{item.iconThumPath }}" />
  78. </view>
  79. <view style="margin-left: 26rpx;width: 100%;">
  80. <view data-item="{{item}}" data-index="{{index}}" bind:tap="openChoosedItemInfo">
  81. <!-- 标题 -->
  82. <view style="display: flex;">
  83. <dk-title titleTag="{{item.titleTag}}" title="{{item.title}}"></dk-title>
  84. </view>
  85. <!-- 描述 -->
  86. <view style="display: flex; ">
  87. <dk-text value="{{item.desc}}"></dk-text>
  88. </view>
  89. <view style="display: flex;">
  90. <!-- 标准价/标价-->
  91. <view style="width: 85%;">
  92. <dk-cell height="46rpx" spaceWidth="1rpx" left="0" fontSize="13" contentColor="#CAA977" fontWeight="bold" title="售价:" content="{{item.priceSale?item.priceSale:0}}"></dk-cell>
  93. </view>
  94. <view style="text-align: right;width: 5%;">
  95. <van-icon name="arrow" style="font-size:3.5vw;" />
  96. </view>
  97. </view>
  98. </view>
  99. <view style="display:flex">
  100. <view style="padding-top: 5rpx;">
  101. <dk-text value="数量:"></dk-text>
  102. </view>
  103. <van-stepper value="{{item.itemQuantity}}" data-index="{{index}}" min="0" integer="{{true}}" max="999999999" bind:change="changeAllreadyChooseQuantity" />
  104. </view>
  105. </view>
  106. </view>
  107. <view slot="right">删除</view>
  108. </van-swipe-cell>
  109. </van-cell>
  110. </van-cell-group>
  111. <view style="height:180rpx;"></view>
  112. </view>
  113. </view>
  114. <van-search wx:if="{{active == 0}}" bind:search="doSearch" custom-class="search-class" bind:change="onSearchText" model:value="{{ searchText }}" placeholder="商品名称/商品型号" use-right-icon-slot="{{true}}" placeholder-style="color:#95A8CB">
  115. </van-search>
  116. <view wx:if="{{active == 0}}" class="scan-class">
  117. <image class="scan-image" fit="fill" src="/static/img/Group.png"></image>
  118. </view>
  119. <van-sidebar activeKey="{{sideKey}}" bindchange="changeSidebar" custom-class="{{active == 0 ? 'left-class' : 'right-class'}}">
  120. <view wx:if="{{active != 1}}" style="height:calc({{windowHeight+'px'}} - {{active == 1 ? '270rpx' :'370rpx' }});overflow: scroll;">
  121. <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="{{typeList}}" />
  122. </view>
  123. </van-sidebar>
  124. <!-- 合计保存相关组件 -->
  125. <dk-save-bottom flagTypeName="order-choose-goods" selectTotallength="{{sumQuantity}}" selectlength="{{categoryQuantity}}" totallength="{{numberFormat.toThousandCents(sumGoodsAmount)}}" bind:submit="submit" />
  126. <!--选择框-->
  127. <van-popup custom-class="dk-popup" show="{{ showAdd }}" round="{{true}}" position="bottom" bind:close="closeAddItemInfo">
  128. <view style=" position:relative; top:280rpx;background-color: transparent; height: 44rpx;"></view>
  129. <view class="special-topic">
  130. <view class="special-topic-content">
  131. <van-image radius="15rpx" custom-class="goods-pop-image" fit="fill" src="{{ currentChoosedItem.iconThumPath }}"></van-image>
  132. </view>
  133. <view class="special-topic-title">
  134. <dk-title id="titleTagPop" titleTag="{{currentChoosedItem.titleTag}}" title="{{currentChoosedItem.title}}"></dk-title>
  135. <view style="padding-top: 10rpx;white-space: nowrap;">
  136. <dk-text fontWeight="" value="{{currentChoosedItem.desc}}"> </dk-text>
  137. </view>
  138. <view style="display: flex;padding-top: 5rpx;">
  139. <view wx:if="{{currentChoosedItem.promotionType != 0 }}" class="price-pop-class" style="display: flex;width: 100%;">
  140. <view style="width: 100%;" wx:if="{{ currentChoosedItem.promotionType == 2 || currentChoosedItem.skuName}}">
  141. <dk-cell height="46rpx" spaceWidth="1rpx" left="0" fontSize="14" contentColor="#CAA977" fontWeight="bold" title="标准售价:" content="{{currentChoosedItem.pricePromotion}}" tailColor="#95A8CB" tailLine="{{true}}" tailFontWeight="400" tail="{{currentChoosedItem.priceStandard?'¥' + numberFormat.toThousandCents(currentChoosedItem.priceStandard):''}}"></dk-cell>
  142. </view>
  143. <!-- <view style="width: 50%;" wx:if="{{currentChoosedItem.priceStandard}}">
  144. <dk-cell height="46rpx" spaceWidth="0rpx" left="0" fontSize="12" contentColor="#1B365D" fontWeight="nomal" title="标价:" content="{{currentChoosedItem.priceStandard}}"></dk-cell>
  145. </view> -->
  146. </view>
  147. <view wx:else class="price-pop-class">
  148. <dk-cell height="46rpx" spaceWidth="0rpx" left="0" fontSize="14" contentColor="#CAA977" fontWeight="bold" title="标价:" content="{{currentChoosedItem.priceStandard}}"></dk-cell>
  149. </view>
  150. <!-- 可换件 -->
  151. <view style="text-align: right; width: 14%;" wx:if="{{currentChoosedItem.replaceableSku}}">
  152. <dk-van-tag color="red" roundFlag="{{true}}" size="medium" value="可换件"></dk-van-tag>
  153. </view>
  154. </view>
  155. <!--sku编码-->
  156. <view class="selected-sku-text" wx:if="{{(currentChoosedItem.skuSpecsList && currentChoosedItem.skuSpecsList.length > 0 && (currentChoosedItem.skuName || currentChoosedItem.skuCode)) || (skuSpecsData.length == 1 &&( currentChoosedItem.promotionType == 0 || currentChoosedItem.promotionType == 1)) }}" style="padding-top: 3rpx;">
  157. <dk-text fontWeight="" fontSize="10px" value="已选:{{ currentChoosedItem.skuName ? currentChoosedItem.skuName : ''}}"> </dk-text>
  158. <dk-text fontWeight="" fontSize="10px" value="编码:{{ currentChoosedItem.skuCode ? currentChoosedItem.skuCode : ''}}"> </dk-text>
  159. </view>
  160. </view>
  161. </view>
  162. <view class="pop-content-class">
  163. <van-cell-group>
  164. <view style="height:calc({{windowHeight+'px'}} - 676rpx);overflow-y: scroll;overflow-x: hidden;">
  165. <!-- 正常品 -->
  166. <view wx:if="{{ show1}}">
  167. <!-- 就一个商品 -->
  168. <view wx:if="{{currentChoosedItem.skuSpecsList.length == 0 && skuSpecsData.length == 1 && (currentChoosedItem.promotionType == 0 || currentChoosedItem.promotionType == 1)}}" style="display: flex;justify-content: space-between;">
  169. <view style="width: 30%;">
  170. </view>
  171. <!--显示已选商品编码-->
  172. <view style="align-items: center; padding-top: 12rpx;">
  173. <dk-text fontSize="10px" fontWeight="" value="编码:{{currentChoosedItem.skuCode ? currentChoosedItem.skuCode : ''}}"> </dk-text>
  174. </view>
  175. </view>
  176. <view wx:for="{{currentChoosedItem.skuSpecsList}}" wx:key="index" date-item="{{item}}">
  177. <view style="display: flex;justify-content: space-between;">
  178. <view style="width: 30%;">
  179. <dk-text fontSize="13px" value="{{item.specsName}}"></dk-text>
  180. </view>
  181. <!--显示已选商品编码-->
  182. <view style="align-items: center; padding-top: 12rpx;" wx:if="{{currentChoosedItem.skuCode && index == 0}}">
  183. <dk-text fontSize="10px" fontWeight="" value="编码:{{currentChoosedItem.skuCode ? currentChoosedItem.skuCode : ''}}"> </dk-text>
  184. </view>
  185. </view>
  186. <view class="tags">
  187. <view class="tag-bom-item" wx:key="indext" wx:for="{{item.specsList}}" wx:for-index="indext" wx:for-item="itemt">
  188. <!-- <view wx:if="{{itemt.disabled}}" style="z-index: 1000; position:absolute;margin-top: -25rpx;margin-left: 75rpx;">
  189. <dk-van-tag color="#98979C" fontSize="8px" height="20rpx" size="small" value="无货"></dk-van-tag>
  190. </view> -->
  191. <!-- <van-button disabled="{{itemt.disabled}}" size="small" catchtap="changeSkuSpecs" data-pindex="{{index}}" custom-class="{{itemt.default?'button-selected-class':'button-class'}}" data-itemt="{{itemt}}" data-indext="{{indext}}">{{ itemt.key }}
  192. </van-button> -->
  193. <van-button disabled="{{itemt.disabled}}" size="small" bind:click="changeSkuSpecs" data-pindex="{{index}}" custom-class="{{itemt.default?'button-selected-class':'button-class'}}" data-itemt="{{itemt}}" data-indext="{{indext}}"><text wx:if="{{itemt.disabled}}" style="color:black;text-decoration:line-through"><text style="color:#95A8CB;">{{ itemt.key }}</text></text><text wx:if="{{!itemt.disabled}}">{{ itemt.key }}</text></van-button>
  194. </view>
  195. </view>
  196. </view>
  197. </view>
  198. <!-- 组合促销 -->
  199. <view wx:if="{{show4}}">
  200. <view wx:for="{{currentChoosedItem.combinedData.combinedType}}" wx:key="index">
  201. <view style="width: 30%;">
  202. <dk-text fontSize="13px" value="{{item.specsName}}"></dk-text>
  203. </view>
  204. <view class="tags">
  205. <view wx:key="indext" wx:for="{{currentChoosedItem.combinedData.combinedItem}}" wx:for-index="indext" wx:for-item="itemt">
  206. <van-button wx:if="{{item.typeId == itemt.combinedTypeId}}" size="small" catchtap="changeCombinedItem" custom-class="{{itemt.infotype=='info'?'button-selected-class':'button-class'}}" data-pindex="{{index}}" data-itemt="{{itemt}}">
  207. <view class="tag-text">{{ itemt.skuModel?itemt.skuModel:'' }}</view>
  208. <view class="tag-text">{{ itemt.skuName }}</view>
  209. </van-button>
  210. </view>
  211. </view>
  212. <!-- <van-divider /> -->
  213. </view>
  214. <view>
  215. </view>
  216. </view>
  217. <!-- 促销单品选择 -->
  218. <view wx:if="{{show5}}">
  219. <view>
  220. <view class="tags">
  221. <view style="margin-left: 5px;margin-bottom: 12px;" wx:key="indext" wx:for="{{PricePromotionData}}" wx:for-index="indext" wx:for-item="itemt">
  222. <van-button size="small" catchtap="clickDP" custom-class="button-class" data-pindex="{{index}}" data-itemt="{{itemt}}" data-indext="{{indext}}" plain type="{{itemt.infotype}}">
  223. <text style="display:flex;">{{ itemt.skuName }}</text>
  224. <text style="display:flex;">{{ itemt.skuCode }}</text>
  225. </van-button>
  226. </view>
  227. </view>
  228. <van-divider />
  229. </view>
  230. <view>
  231. </view>
  232. </view>
  233. <!-- 非标商品选择 -->
  234. <view wx:if="{{show6 && (skuData.length > 0)}}">
  235. <view wx:key="index">
  236. <view style="width: 30%;">
  237. <dk-text fontSize="13px" value="商品"></dk-text>
  238. </view>
  239. <view class="tags">
  240. <view wx:key="indext" wx:for="{{skuData}}" wx:for-index="indext" wx:for-item="itemt">
  241. <van-button disabled="{{itemt.disabled}}" size="small" bind:click="nonGlassSpuItemsTap" custom-class="{{itemt.infotype=='info'?'button-selected-class':'button-class'}}" data-indext="{{indext}}" data-itemt="{{itemt}}">
  242. <view wx:if="{{itemt.disabled}}" style="color:black;text-decoration:line-through">
  243. <view class="tag-text" style="color:#95A8CB;">{{ itemt.skuModel}} </view>
  244. <view class="tag-text" style="color:#95A8CB;">{{ itemt.skuName }}</view>
  245. </view>
  246. <view wx:else>
  247. <view class="tag-text">{{ itemt.skuModel}} </view>
  248. <view class="tag-text">{{ itemt.skuName }}</view>
  249. </view>
  250. </van-button>
  251. </view>
  252. </view>
  253. </view>
  254. <view>
  255. </view>
  256. </view>
  257. <!-- 非标参数选择 -->
  258. <view wx:if="{{ show7}}">
  259. <view wx:for="{{currentChoosedItem.nonStandardList}}" wx:key="index" date-item="{{item}}">
  260. <view style="width: 30%;">
  261. <dk-text wx:if="{{item.isScope == 0}}" fontSize="13px" value="{{item.fieldName}}"></dk-text>
  262. </view>
  263. <view class="tags" wx:if="{{item.isScope == 0}}">
  264. <view class="tag-bom-item" wx:key="indext" wx:for="{{item.options}}" wx:for-index="indext" wx:for-item="itemt">
  265. <van-button size="small" catchtap="nonStandardTap" data-pindex="{{index}}" custom-class="{{itemt.infotype=='info'?'button-selected-class':'button-class'}}" data-itemt="{{itemt}}" data-indext="{{indext}}">{{ itemt.name }}
  266. </van-button>
  267. </view>
  268. </view>
  269. <!-- 输入范围 -->
  270. <view wx:if="{{item.isScope == 1}}" style="display: flex; padding-bottom: 20rpx; padding-top: 10rpx;">
  271. <view style="width: 50%;">
  272. <dk-text fontSize="13px" value="{{item.fieldName}}"></dk-text>
  273. </view>
  274. <view style="width: 50%; text-align: right;font-size: 13px; ">
  275. <input type="text" placeholder-class="placeholder-class" placeholder="{{'请输入'+item.fieldName}}" data-pindex="{{index}}" data-item="{{item}}" value="{{item.optionName}}" bindblur="bindBlurIsScopeOne" bindinput="bindInputIsScopeOne"></input>
  276. </view>
  277. </view>
  278. </view>
  279. <view wx:if="{{currentChoosedItem.flgNonStandardType == 1}}">
  280. <view style="display: flex; padding-bottom: 20rpx; padding-top: 10rpx;">
  281. <view style="width: 50%;">
  282. <dk-text fontSize="13px" value="面积公式"></dk-text>
  283. </view>
  284. <view style="width: 50%; text-align: right;font-size: 13px; ">
  285. <input type="text" placeholder-class="placeholder-class" data-pindex="{{index}}" disabled="{{true}}" data-item="{{item}}" value="{{currentChoosedItem.specialFormulaName}}" bindblur="bindBlurIsScopeOne" bindinput="bindInputIsScopeOne"></input>
  286. </view>
  287. </view>
  288. <van-cell border="{{ false }}" title-width="410rpx" title-class="{{!currentChoosedItem.flgGift ? 'red-label' : ''}}" disabled="{{currentChoosedItem.flgGift}}">
  289. <view slot="title">
  290. 面积
  291. </view>
  292. <view Cell Slot="value">
  293. <!-- <input type="text" placeholder-class="placeholder-class" placeholder="请输入面积" value="{{currentChoosedItem.nonStandardArea ? currentChoosedItem.nonStandardArea : ''}}" bindblur="bindBlurNonStantardArea" bindinput="bindInputNonStantardArea"></input> -->
  294. <dk-number-input sign="" formatThousandth="{{false}}" digits="{{6}}" center="right" data-key="nonStandardArea" inputValue="{{currentChoosedItem.nonStandardArea?currentChoosedItem.nonStandardArea:0}}" bind:triggerBindValue="bindBlurNonStantardArea">
  295. </dk-number-input>
  296. </view>
  297. </van-cell>
  298. </view>
  299. </view>
  300. <van-cell border="{{ false }}" title="数量" title-class="red-label">
  301. <van-stepper value="{{currentChoosedItem.itemQuantity}}" integer="{{true}}" data-index="{{index}}" min="0" max="999999999" bind:change="changeAllreadyChooseQuantityPop" />
  302. </van-cell>
  303. <!--销售价格-->
  304. <van-cell border="{{ false }}" title-width="410rpx" title-class="{{!currentChoosedItem.flgGift ? 'red-label' : ''}}" disabled="{{currentChoosedItem.flgGift}}">
  305. <view slot="title">
  306. 销售价格
  307. </view>
  308. <view Cell Slot="value">
  309. <dk-number-input center="right" data-key="priceSale" inputValue="{{currentChoosedItem.priceSale}}" bind:triggerBindValue="changeSalesPriceField"></dk-number-input>
  310. </view>
  311. </van-cell>
  312. <!--销售金额-->
  313. <van-cell border="{{ false }}" title-width="410rpx" title-class="{{!currentChoosedItem.flgGift ? 'red-label' : ''}}" disabled="{{currentChoosedItem.flgGift}}">
  314. <view slot="title">
  315. 销售金额
  316. </view>
  317. <view Cell Slot="value">
  318. <dk-number-input center="right" data-key="itemAmount" inputValue="{{currentChoosedItem.itemAmount}}" bind:triggerBindValue="changeItemAmountField"></dk-number-input>
  319. </view>
  320. </van-cell>
  321. <!--正常品显示-->
  322. <van-cell wx:if="{{currentChoosedItem.promotionType==0}}" border="{{ false }}" title-width="410rpx" disabled="{{currentChoosedItem.flgGift}}">
  323. <view slot="title" style="color:#95A8CB">
  324. 标价折扣
  325. </view>
  326. <dk-number-input center="right" signSize="20" percentSignFlag="{{true}}" data-key="discountStandard" inputValue="{{(currentChoosedItem.discountStandard || currentChoosedItem.discountStandard ==0)?(currentChoosedItem.discountStandard):'' }}" bind:triggerBindValue="changeDiscountField"></dk-number-input>
  327. <!-- <dk-text color="#1B365D" fontSize="13px" fontWeight="nomal" value="{{(currentChoosedItem.discountStandard || currentChoosedItem.discountStandard ==0)?(currentChoosedItem.discountStandard+ '%'):'' }}"></dk-text> -->
  328. </van-cell>
  329. <!--促销品显示-->
  330. <van-cell wx:if="{{currentChoosedItem.promotionType !=0 }}" border="{{ false }}" title-width="410rpx" disabled="{{currentChoosedItem.flgGift}}">
  331. <view slot="title" style="color:#95A8CB">
  332. 标准售价折扣
  333. </view>
  334. <!--只显示-->
  335. <dk-number-input center="right" signSize="20" percentSignFlag="{{true}}" data-key="discountPromotion" inputValue="{{(currentChoosedItem.discountPromotion || currentChoosedItem.discountPromotion ==0)?(currentChoosedItem.discountPromotion):'' }}" bind:triggerBindValue="changeDiscountField"></dk-number-input>
  336. <!-- <dk-text color="#1B365D" fontSize="13px" fontWeight="nomal" value="{{currentChoosedItem.discountPromotion?(currentChoosedItem.discountPromotion+ '%'):'' }}"></dk-text> -->
  337. </van-cell>
  338. <van-field label-class="nomal-label" label="使用位置" type="usedLocation" bind:click-icon="clicIconkUseLocation" bind:blur="blurUseLocation" bind:change="changeUseLocation" data-item="currentChoosedItem" data-key="usedLocation" value="{{currentChoosedItem.usedLocation}}" input-align="right" placeholder="请输入使用位置" border="{{ false }}" />
  339. <van-cell wx:if="{{currentChoosedItem.cpFlgGift}}" style="color:#95A8CB" title="赠品标识" border="{{ false }}" value-class="value-class">
  340. <van-checkbox shape="round" value="{{ currentChoosedItem.flgGift}}" data-index="{{index}}" data-key="flgGift" bind:change="changeAllReadyCheckBox" />
  341. </van-cell>
  342. <van-cell wx:if="{{currentChoosedItem.flgAllowSpecsUndefine}}" style="color:#95A8CB" title="坑距待定" border="{{ false }}" value-class="value-class">
  343. <van-checkbox shape="round" value="{{ currentChoosedItem.flgSpecsUndefine}}" data-index="{{index}}" data-key="flgSpecsUndefine" bind:change="changeFlgAllowSpecsUndefine" />
  344. </van-cell>
  345. <view style="height: 100rpx;"></view>
  346. </view>
  347. <van-cell value-class="button-pop-cell-class">
  348. <van-button disabled="{{skuloading}}" custom-class="button-pop-class" type="info" size="small" bind:click="chooseSkuInfo">确定
  349. </van-button>
  350. </van-cell>
  351. </van-cell-group>
  352. </view>
  353. </van-popup>