| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- <!-- 套餐编码搜索 -->
- <van-overlay show="{{show}}" z-index='999'>
- <view class="show_box">
- <view class="show_title"> <van-search style="width: 85%;" value="{{ searchValue }}" placeholder="请输入搜索关键词" bind:search="onSearch"
- />
- <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancel">取消</view>
- </view>
- <scroll-view style="height: 88%;" scroll-y="true">
- <view wx:for="{{searchList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChoose">
- {{item.code}}
- </view>
- </scroll-view>
- </view>
- </van-overlay>
- <!-- 套餐名称搜索 -->
- <van-overlay show="{{t_show}}" z-index='999'>
- <view class="show_box">
- <view class="show_title"> <van-search style="width: 85%;" value="{{ searchTValue }}" placeholder="请输入搜索关键词" bind:search="onSearchT"
- />
- <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancelT">取消</view>
- </view>
- <scroll-view style="height: 88%;" scroll-y="true">
- <view wx:for="{{searchTList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChoose">
- {{item.title}}
- </view>
- </scroll-view>
- </view>
- </van-overlay>
- <!-- 施工部位搜索 -->
- <van-overlay show="{{d_show}}" z-index='999'>
- <view class="show_box">
- <view class="show_title"> <van-search style="width: 85%;" value="{{ searchDValue }}" placeholder="请输入搜索关键词" bind:search="onSearchD"
- />
- <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancelD">取消</view>
- </view>
- <scroll-view style="height: 88%;" scroll-y="true">
- <view wx:for="{{searchDList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChooseD">
- {{item.title}}
- </view>
- </scroll-view>
- </view>
- </van-overlay>
- <!-- 卷膜分类搜索 -->
- <van-overlay show="{{b_show}}" z-index='999'>
- <view class="show_box">
- <view class="show_title"> <van-search style="width: 85%;" value="{{ searchBValue }}" placeholder="请输入搜索关键词" bind:search="onSearchB"
- />
- <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancelB">取消</view>
- </view>
- <scroll-view style="height: 88%;" scroll-y="true">
- <view wx:for="{{searchBList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChooseB">
- {{item.title}}
- </view>
- </scroll-view>
- </view>
- </van-overlay>
- <!-- 卷膜型号搜索 -->
- <van-overlay show="{{r_show}}" z-index='999'>
- <view class="show_box">
- <view class="show_title"> <van-search style="width: 85%;" value="{{ searchRValue }}" placeholder="请输入搜索关键词" bind:search="onSearchR"
- />
- <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancelR">取消</view>
- </view>
- <scroll-view style="height: 88%;" scroll-y="true">
- <view wx:for="{{searchRList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChooseR">
- {{item.title}}
- </view>
- </scroll-view>
- </view>
- </van-overlay>
- <!-- 卷膜编码搜索 -->
- <van-overlay show="{{n_show}}" z-index='999'>
- <view class="show_box">
- <view class="show_title"> <van-search style="width: 85%;" value="{{ searchNValue }}" placeholder="请输入搜索关键词" bind:search="onSearchN"
- />
- <view style="margin-right: 40rpx;color: rgb(146, 171, 218);" bindtap="handleCancelN">取消</view>
- </view>
- <scroll-view style="height: 88%;" scroll-y="true">
- <view wx:for="{{searchNList}}" wx:key="index" data-item="{{item}}" data-index="{{index}}" class="show_item" bindtap="handleChooseN">
- {{item.roll_film_number}}
- </view>
- </scroll-view>
- </view>
- </van-overlay>
- <view wx:if="{{showCamera}}" style="width: 100%; height: 100%;" class="cation">
- <camera device-position="back" flash="auto" binderror="error" style="width: 100%; height: 70%;margin:40rpx auto"></camera>
- <view class="take_content">
- <view class="take" bindtap="takePhoto">
- <image src="../../../images/take.png" mode="widthFix" style="width: 40pt;"/>
- </view>
- </view>
- </view>
- <view wx:else>
- <image src="../../../images/head.png" style="width:100%;height: 250rpx;z-index:-1"></image>
- <view class="title">5.选择产品套餐</view>
- <view style="height:60vh;overflow: auto;">
- <view wx:for="{{chooseList}}" wx:for-item='item' wx:for-index='index' class="chooseItem" wx:key="index">
- <view wx:if="{{set_status!='is_detail'}}" class="btn1 add" data-index="{{index}}" bindtap="handleAdd">+</view>
- <view wx:if="{{set_status!='is_detail'}}" class="btn1 delete" data-index="{{index}}" bindtap="handleDelete">X</view>
- <van-cell-group>
- <van-field
- label='套餐名称'
- value="{{ item.title }}"
- placeholder="请选择"
- required
- readonly
- use-button-slot
- >
- <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" data-index="{{index}}" bindtap="onChooseT">
- 选择
- </van-button>
- </van-field>
- <van-field
- label='套餐编码'
- value="{{ item.code }}"
- placeholder="请选择"
- required
- readonly
- use-button-slot
- >
- <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" data-index="{{index}}" bindtap="onChoose">
- 选择
- </van-button>
- </van-field>
- <van-field
- label='数量'
- value="{{ item.number }}"
- placeholder="请输入"
- required
- data-index="{{index}}"
- bind:change='handleChangeNumber'
- >
- </van-field>
- </van-cell-group>
- <view wx:for="{{item.detail}}" wx:for-item="_item" wx:for-index='_index' wx:key="_index" class="item_in">
- <view wx:if="{{set_status!='is_detail'}}" class="btn1 add1" data-index="{{index}}" data-itemIndex="{{_index}}" bindtap="handleAddItem">+</view>
- <view wx:if="{{set_status!='is_detail'}}" class="btn1 delete1" data-index="{{index}}" data-itemIndex="{{_index}}" bindtap="handleDeleteItem">X</view>
- <van-cell-group>
- <van-field
- label='施工部位'
- value="{{_item.car_depart_name}}"
- placeholder="请选择施工部位"
- required
- readonly
- use-button-slot
- >
- <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" data-index="{{index}}" data-itemIndex="{{_index}}" bindtap="onChooseCarDepart">
- 选择
- </van-button>
- </van-field>
- <van-field
- wx:if="{{!special_type}}"
- label='卷膜分类'
- value="{{ _item.basic_roll_film_name }}"
- placeholder="请选择卷膜分类"
- required
- readonly
- use-button-slot
- >
- <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" bindtap="onChooseBasicFilm" data-index="{{index}}" data-itemIndex="{{_index}}">
- 选择
- </van-button>
- </van-field>
- <van-field
- label='卷膜型号'
- wx:if="{{!special_type}}"
- value="{{ _item.roll_film_name }}"
- placeholder="请选择卷膜型号"
- required
- readonly
- use-button-slot
- >
- <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" bindtap="onChooseRollFilm" data-index="{{index}}" data-itemIndex="{{_index}}" data-item="{{_item}}">
- 选择
- </van-button>
- </van-field>
- <van-field
- label='卷膜编码'
- wx:if="{{!special_type}}"
- value="{{ _item.roll_film_number }}"
- placeholder="请选择卷膜编码"
- required
- readonly
- use-button-slot
- >
- <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" bindtap="scanBarcode" data-index="{{index}}" data-itemIndex="{{_index}}" style="margin-right: 10rpx;">
- 扫码
- </van-button>
- <van-button wx:if="{{set_status!='is_detail'}}" slot="button" size="small" type="primary" bindtap="onChooseNumber" data-index="{{index}}" data-itemIndex="{{_index}}" data-item="{{_item}}">
- 选择
- </van-button>
- </van-field>
- <van-field
- label='耗用米数'
- wx:if="{{!special_type}}"
- value="{{ _item.expend_meters }}"
- placeholder="默认带出"
- required
- readonly
- >
- </van-field>
- </van-cell-group>
- <view class="image_item" bindtap="handleOpenCamera" data-index='{{index}}' data-itemIndex="{{_index}}" wx:if="{{showImg}}" style="position: relative;">
- <view wx:if="{{_item.src&&set_status!=='is_detail'?true:false}}" style="position: absolute;right: 0;top: 0;" catch:tap="handleDelPic" data-index="{{index}}" data-itemIndex="{{_index}}"><van-icon name="close" color='red' size='30'/></view>
- <image wx:if="{{_item.src?true:false}}" style="width: 100%;height: 100%;" src="{{set_status?_item.show_url:_item.src}}"></image>
- <image wx:else style="width: 100%;height: 100%;" src="https://zh.qingyaokeji.com/3.jpg"></image>
- </view>
- </view>
- </view>
- </view>
- <view class="btn">
- <van-button color="linear-gradient(to top, #626365, #ffffff)" class="btn_item" bindtap="handleReturn"><text class="font_item">上一步</text></van-button>
- <van-button disabled='{{chooseList.length!=0?false:true}}' color="linear-gradient(to top, #626365, #ffffff)" class="btn_item" bindtap="handleNext"> <text class="font_item">下一步</text></van-button>
- </view>
- </view>
|