
<view class="map-view" hover-class="none" hover-stop-propagation="false">
<map id="map" longitude="{{longitude}}" latitude=" {{latitude}}"      
   markers="{{markers}}" scale="13" show-location 
style="width: 100%; height: 100%; min-height:100%">
</map>
</view>
<van-cell-group class="content">
	<van-field required disabled wx:if="{{!devcodeDisabled}}" clearable data-id="devcode" label="设备编号"  value="{{form.devcode}}" placeholder="请扫描设备条形码添加" use-icon-slot bind:blur="confirm"  bind:click-icon="scan">
		<!-- <van-icon name="scan" size="50rpx" slot="right-icon" /> -->
	</van-field>
    <van-field required wx:if="{{devcodeDisabled}}" clearable data-id="devcode" label="设备编号"  value="{{form.devcode}}" placeholder="请扫描设备条形码添加" use-icon-slot bind:blur="confirm"  bind:click-icon="scan">
		<van-icon name="scan" size="50rpx" slot="right-icon" />
	</van-field>

	<van-field label="设备类型" data-id="devicetype" value="{{form.devicetype}}" placeholder="扫描后自动显示" bind:blur="confirm" clearable  required />

</van-cell-group>
<van-cell-group>
	<van-field data-id="longitude" value="{{form.longitude}}" label="经度" border="{{ true }}" placeholder="116.12345" bind:blur="confirm" bind:clear="clearLongitude" clearable required />
	<van-field data-id="latitude" value="{{form.latitude}}" label="纬度" border="{{ true }}" placeholder="39.1237" use-icon-slot bind:click-icon="paste" bind:blur="confirm" bind:clear="clearLatitude" clearable required>
        <!-- <van-icon name="edit" size="50rpx" slot="right-icon" /> -->
    </van-field>
	<!-- <van-row>
		<van-col span="12">
			<van-field data-id="longitude" value="{{form.longitude}}" label="经度" placeholder="116.12345" bind:blur="confirm" required />
		</van-col>
		<van-col span="12">
			<van-field data-id="latitude" value="{{form.latitude}}" label="纬度" placeholder="39.1237" use-icon-slot bind:click-icon="paste" bind:blur="confirm" required>
				<van-icon name="edit" size="50rpx" slot="right-icon" />
			</van-field>
		</van-col>
	</van-row> -->
<van-field data-id="area" value="{{form.area}}" label="区域" placeholder="" bind:blur="confirm"  clearable="true"  />
<van-field data-id="street" value="{{form.street}}" label="街道" placeholder="" bind:blur="confirm" clearable="true"  />

	<van-field data-id="position" value="{{form.position}}" label="位置描述" placeholder="请简单描述具体位置" bind:blur="confirm" clearable="true" required />
</van-cell-group>
<van-cell-group>
	<van-row>
		<van-col span="12">
			<van-field disabled label="井类型" border="{{ true }}" />
		</van-col>
		<van-col span="12">
			<van-dropdown-menu active-color="#ffcf00"  border="{{ true }}">
				<van-dropdown-item value="{{ form.welltype }}" options="{{ option1 }}" bind:change="selectValue" bind:open="open" bind:closed="close"/>
			</van-dropdown-menu>
		</van-col>
	</van-row>

	<van-field data-id="wellcode" value="{{form.wellcode}}" label="井编号" bind:blur="confirm" clearable required/>
	<van-field data-id="wellname" value="{{form.wellname}}" label="井名称" bind:blur="confirm" clearable />
	<van-field data-id="welldepth" value="{{form.welldepth}}" label="井深/埋深" bind:blur="confirm" clearable />

	<van-field data-id="installheigt" value="{{form.installheigt}}" label="到井口距离" bind:blur="confirm" clearable />
</van-cell-group>
<van-cell-group>
    <van-row custom-class='row-class'>
		<van-col span="12">
			<van-field required disabled label="设备安装情况" border="{{ true }}"/>
		</van-col>
		<van-col span="12">
			<van-dropdown-menu active-color="#ffcf00">
				<van-dropdown-item value="{{ form.installType }}" options="{{ installTypeList }}" bind:change="selectInstallType" />
			</van-dropdown-menu>
		</van-col>
	</van-row>
</van-cell-group>

<van-cell-group>
	<van-field value="{{form.installperson}}" label="运维人员" required disabled/>
	<!-- <van-row>
		<van-col span="12">
			<van-field disabled label="运维人员" border="{{ true }}" required/>
		</van-col>
		<van-col span="12">
			<van-dropdown-menu active-color="#ffcf00">
				<van-dropdown-item value="{{ form.installperson}}" options="{{ personoption1 }}"  disabled  bind:open="open" bind:closed="close" bind:change="selectpersonValue" />
			</van-dropdown-menu>
		</van-col>
	</van-row> -->
	<!-- <van-cell  title="运维时间" value="{{form.installtimeFmt}}" bind:click="onDisplay" required/>
	<van-calendar show="{{ show }}"  bind:close="onClose" bind:open="open" bind:closed="close"  show-confirm="{{ false }}" bind:confirm="onConfirm"  /> -->
	<van-field value="{{form.installtimeFmt}}" label="运维时间" required disabled/>
</van-cell-group>


<van-cell-group>
	<van-field data-id="factory" value="{{form.factory}}" label="权属单位" bind:blur="confirm" clearable />

	<!-- <van-row wx-if="{{showSelectProject}}">
		<van-col span="12">
			<van-field disabled label="所属项目" border="{{ true }}" required/>
		</van-col>
		<van-col span="12">
			<van-dropdown-menu active-color="#ffcf00">
				<van-dropdown-item value="{{ form.project }}" options="{{ projectoption }}" bind:open="open" bind:closed="close" bind:change="selectprojectValue" />
			</van-dropdown-menu>
		</van-col>
	</van-row> -->
	<van-field disabled label="所属项目" value="{{projectName}}" border="{{ true }}" required/>

	<!-- <van-field value="{{project}}" label="所属项目" required /> -->
	<!-- <van-field  data-id="workmsg" value="{{form.workmsg}}" label="施工信息" placeholder="施工信息" bind:blur="confirm"  required /> -->
	<van-field data-id="logs"  type="textarea" autosize="true"  wx:if="{{ !showMask }}" value="{{form.logs}}" label="历史记录" placeholder="" disabled/>
	<van-field data-id="description"  value="{{form.description}}" label="备注" placeholder="备注" bind:blur="confirm" clearable />
	<van-uploader upload-text="现场照片" file-list="{{ fileList }}" max-count="6"  bind:after-read="afterRead" bind:delete="deletePhoto" />

</van-cell-group>
	<van-button class="saveButtom"   round type="primary" block color="#ffcf00" bind:click="formSubmit">保存</van-button>

