Newer
Older
smart_construction / miniprogram / pages / addDevicelog / addDeviceLog.wxml
zhout on 16 Jun 2020 3 KB 初版提交
<!-- <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="设备型号" data-id="devicetype" value="{{form.devicetype}}" placeholder="扫描后自动显示" bind:blur="confirm" required />

</van-cell-group>
<van-cell-group>
	<van-row>
		<van-col span="12">
			<van-field data-id="longitude" value="{{form.longitude}}" label="经度" placeholder="116.12345" bind:blur="confirm" border="{{ false }}" 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="position" value="{{form.position}}" label="位置描述" placeholder="请简单描述具体位置" bind:blur="confirm" 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>
				<van-dropdown-item value="{{ form.welltype }}" options="{{ option1 }}" bind:change="selectValue" />
			</van-dropdown-menu>
		</van-col>
	</van-row>

	<van-field data-id="wellcode" value="{{form.wellcode}}" label="井编号" bind:blur="confirm" required />

	<van-field data-id="welldepth" value="{{form.welldepth}}" label="井深/埋深" bind:blur="confirm" />

	<van-field data-id="installheigt" value="{{form.installheigt}}" label="到井口距离" bind:blur="confirm" />
</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>
				<van-dropdown-item value="{{ form.installperson}}" options="{{ personoption1 }}" bind:change="selectpersonValue" />
			</van-dropdown-menu>
		</van-col>
	</van-row>
	<van-cell  title="安装时间" value="{{form.installtimeFmt}}" bind:click="onDisplay" />
	<van-calendar show="{{ show }}" bind:close="onClose"   show-confirm="{{ false }}" bind:confirm="onConfirm"  />
</van-cell-group>

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

	<van-row>
		<van-col span="12">
			<van-field disabled label="所属项目" border="{{ true }}" />
		</van-col>
		<van-col span="12">
			<van-dropdown-menu>
				<van-dropdown-item value="{{ form.project }}" options="{{ projectoption }}" bind:change="selectprojectValue" />
			</van-dropdown-menu>
		</van-col>
	</van-row>
	<!-- <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  value="{{form.logs}}" label="历史记录" placeholder="" disabled/>
	<van-field data-id="description"  value="{{form.description}}" label="备注" placeholder="备注" bind:blur="confirm"  required />
	<van-uploader upload-text="现场照片" file-list="{{ fileList }}" max-count="3"  bind:after-read="afterRead" bind:delete="deletePhoto" />
	<!-- <button formType="submit">提交</button> -->
	<van-button type="primary" block color="#F4EA2A" bind:click="formSubmit">保存</van-button>
	<!-- <van-button  color="#EEB422" type="primary" size="large" bind:click="formSubmit">保存</van-button> -->
</van-cell-group>
<!-- </form> -->

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