<!--miniprogram/pages/applog/applog.wxml--> <van-cell-group> <van-field clearable data-id="devcode" label="设备编号" value="{{devcode}}" placeholder="请扫描设备条形码添加" use-icon-slot bind:change="confirm" bind:click-icon="scan"> <van-icon name="scan" size="50rpx" slot="right-icon" /> </van-field> <!-- <van-field data-id="devtype" label="设备类型" bind:change="confirm" /> --> <van-row> <van-col span="12"> <van-field disabled label="设备类型" border="{{ true }}"/> </van-col> <van-col span="12"> <van-dropdown-menu active-color="#ffcf00"> <van-dropdown-item value="{{ devtype }}" options="{{ devtypeList }}" bind:open="open" bind:closed="close" bind:change="selectDevType" /> </van-dropdown-menu> </van-col> </van-row> <van-row> <van-col span="12"> <van-field disabled label="安装人员" border="{{ true }}"/> </van-col> <van-col span="12"> <van-dropdown-menu active-color="#ffcf00"> <van-dropdown-item value="{{ installPerson }}" options="{{ personoption }}" bind:change="selectpersonValue" /> </van-dropdown-menu> </van-col> </van-row> <van-row> <van-col span="12"> <van-cell title="所属项目" /> </van-col> <van-col span="12" class="menuRight"> <van-dropdown-menu active-color="#ffcf00"> <van-dropdown-item value="{{ projectvalue }}" options="{{ projectoption }}" bind:change="selectprojectValue" title-class="所属项目"/> </van-dropdown-menu> </van-col> </van-row> <view wx:if="{{timeShow}}"> <van-cell title="安装时间" value="{{installtimeFmt}}" bind:click="onDisplay" /> <van-calendar show="{{ show }}" type="range" min-date="{{minDate}}" default-date="{{defaultDay}}" allow-same-day="{{true}}" bind:close="onClose" show-confirm="{{ true }}" bind:confirm="onConfirm" /> </view> <van-button type="primary" bind:click="query" round block color="#ffcf00" >查询</van-button> </van-cell-group>