SublistModal.wxml
1.89 KB
<!--components/SelectInvoiceModal/SelectInvoiceModal.wxml-->
<!-- 申请开票 - 选择发票类型弹窗 -->
<!-- btns="{{ ['取消','确定'] }}" -->
<modal id="modal" class="modal" custom="true" btns="{{ [] }}" maskEnable="{{ false }}" tapTitle="选择商品是否需要施工">
<scroll-view style="height: 200px; padding: 15px 0 10px; " scroll-y>
<view class="modatcontent">
<block wx:for="{{ constructionList }}" wx:key="index">
<view class="itembox">
<view class="item-text">
<text class="subName">{{item.upgradeGoodsName}}</text>
<!-- <view class="inventory">库存1020.00米/件</view> -->
<view class="inventory" catch:tap="openInventoryPopup" data-inventory="{{item}}">库存{{item.stock===0||item.stock?item.stock:'-'}}</view>
</view>
<view class="checked_img">
<!-- <block wx:if="{{multiple}}"> -->
<view class="checked" bind:tap="switchValue" data-index="{{ index }}" data-value="1">
<image src="{{ item.constructionFlag == 1 ? 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/radio.png' : 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/radio_icon.png' }}" />
是
</view>
<view class="checked nocheck" bind:tap="switchValue" data-index="{{ index }}" data-value="2">
<image src="{{ item.constructionFlag == 2 ? 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/radio.png' : 'https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/radio_icon.png' }}" />
否
</view>
</view>
</view>
</block>
</view>
</scroll-view>
<view class="btnbox">
<view class="btn cancel" bind:tap="handleCancel">取消</view>
<view class="btn confirm {{constructionList.length == '0' || first? 'disabled' : '' }}" bind:tap="handleConfirm">下一步</view>
</view>
</modal>