<!-- <form bindsubmit="formSubmit" bindreset="formReset"> -->

<van-cell-group>
	<van-field required 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="设备类型" value="{{form.devicetype}}" data-id="devicetype" placeholder="扫描后自动显示" bind:blur="confirm" required /> -->

	
    <van-row custom-class='row-class'>
		<van-col span="12">
			<van-field  disabled label="设备类型" border="{{ true }}" required/>
		</van-col>
		<van-col span="12">
			<van-dropdown-menu active-color="#ffcf00" required>
				<van-dropdown-item value="{{ form.devicetype }}" options="{{ devtypeList }}" bind:open="open" bind:closed="close" bind:change="selectDevType" />
			</van-dropdown-menu>
		</van-col>
	</van-row>

</van-cell-group>
<van-cell-group>
	<van-field data-id="longitude" value="{{longitude}}" label="经度" placeholder="116.12345" bind:clear="clearLongitude" bind:blur="confirm" border="{{ true }}"  clearable  required/>
    <van-field data-id="latitude" value="{{latitude}}" label="纬度" placeholder="39.1237" bind:clear="clearLatitude" use-icon-slot bind:click-icon="paste" bind:blur="confirm" clearable required>
        <!-- <van-icon name="edit" size="50rpx" slot="right-icon" /> -->
    </van-field>
	
<van-field data-id="area" value="{{form.area}}" label="区" placeholder="" bind:blur="confirm" clearable  />
<van-field data-id="street" value="{{form.street}}" label="街道" placeholder="" bind:blur="confirm" clearable  />
	<van-field data-id="position" value="{{form.position}}" label="位置描述" placeholder="请简单描述具体位置" bind:blur="confirm" clearable  required/>
</van-cell-group>
<van-cell-group>
    <!-- 井编号 -->
    <van-field data-id="wellcode" model:value="{{form.wellcode}}" label="井编号" bind:blur="confirm" clearable  bind:clear="clickClearable" bind:change="changeWellCode" required>
        <van-icon name="search" size="50rpx" slot="right-icon" bind:click="searchWellCode"/>
    </van-field>
    <!-- 井类型 -->
	<van-row custom-class='row-class'>
		<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="{{ form.welltype }}" options="{{ option1 }}" bind:change="selectValue"/>
			</van-dropdown-menu>
		</van-col>
	</van-row>
    <!-- 井名称 -->
    <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-row custom-class='row-class'>
		<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="{{ form.installType }}" options="{{ installTypeList }}" bind:change="selectInstallType" />
			</van-dropdown-menu>
		</van-col>
	</van-row>
<van-cell-group>
	<van-row custom-class='row-class'>
		<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 }}" bind:change="selectpersonValue" id="selectPersonDropdown"/>
			</van-dropdown-menu>
		</van-col>
	</van-row>
	<!-- <van-cell title="安装时间" value="{{installtimeFmt}}" bind:click="onDisplay" required/>
	<van-calendar show="{{ show }}" bind:close="onClose" show-confirm="{{ false }}" bind:confirm="onConfirm" /> -->
	<van-field data-id="installtimeFmt" value="{{installtimeFmt}}" label="安装时间"  disabled required/>
</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="6">
			<van-field disabled label="所属项目" border="{{ true }}" required/>
		</van-col>
		<van-col span="18">
			<van-dropdown-menu active-color="#ffcf00">
				<van-dropdown-item value="{{ form.project }}" options="{{ projectoption }}" bind:change="selectprojectValue" />
			</van-dropdown-menu>
		</van-col>

	</van-row>
	<van-field wx-if="{{!showSelectProject}}" disabled label="所属项目" value="{{projectName}}" border="{{ true }}" required/>
	<!-- <van-field value="{{project}}" label="所属项目" required /> -->
	<!-- <van-field data-id="workmsg" value="{{workmsg}}" label="施工信息" placeholder="施工信息" bind:blur="confirm" required /> -->
	<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" />

<!-- <view class="container">
 <view>
 <button type="default" bindtap="gotoShow" >点击上传照片</button> 
 </view>
 <view>
 <image class= "show-image" mode="aspectFitf" src="{{src}}"></image>
 </view>
</view> -->
	<!-- <button formType="submit">提交</button> -->

	<!-- <van-button  color="#EEB422" type="primary" size="large" bind:click="formSubmit">保存</van-button> -->

<!-- 
	  <canvas  class='canvas' style="width:{{canvasWidth}}px;height:{{canvasHeight}}px;top:{{canvasHeight*2}}px;" canvas-id="firstCanvas"></canvas> -->

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

<!-- <van-submit-bar center button-text="保存" bind:submit="saveData" /> -->

<van-action-sheet
  show="{{ wellShow }}"
  actions="{{ wellActions }}"
  description="请选择井"
  cancel-text="取消"
  bind:cancel="cancleWellShow"
  bind:select="selectWells"
/>