| | |
| | | > |
| | | <!-- <a-input-search |
| | | :disabled="disableSubmit" |
| | | placeholder="请选择对象部门" |
| | | placeholder="请选择使用部门" |
| | | enter-button |
| | | @search="onDepartList()" |
| | | :read-only="true" |
| | |
| | | <a-input |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请输入设备编码/名称/型号'" |
| | | :placeholder="disableSubmit?'':'请输入统一编码/名称/型号'" |
| | | v-decorator="['equipmentId', validatorRules.equipmentId ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <!-- <a-col :span="12"> |
| | | <a-form-item |
| | | label="对象部门Id" |
| | | label="使用部门Id" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-input |
| | | allow-clear |
| | | :disabled="true" |
| | | :placeholder="disableSubmit?'':'请输入对象部门id'" |
| | | :placeholder="disableSubmit?'':'请输入使用部门id'" |
| | | v-decorator="['departId', validatorRules.useId ]" |
| | | /> |
| | | </a-form-item> |
| | |
| | | <!-- <a-row :gutter="24"> |
| | | <a-col :span="12"> |
| | | <a-form-item |
| | | label="对象部门" |
| | | label="使用部门" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请对象部门'" |
| | | :placeholder="disableSubmit?'':'请使用部门'" |
| | | :triggerChange="true" |
| | | dictCode="sys_depart,depart_name,id,version = '7' and del_flag!='1'" |
| | | v-decorator="['departId', validatorRules.departId]" |
| | |
| | | }, |
| | | useDepartName: { |
| | | rules: [ |
| | | { required: true, message: '请选择对象部门!' }, |
| | | { required: true, message: '请选择使用部门!' }, |
| | | ] |
| | | }, |
| | | equipmentName: { |
| | |
| | | onEquipmentList() { |
| | | let data = this.form.getFieldsValue(['departId']); |
| | | if (data.departId == null || data.departId == "") { |
| | | this.$message.warning("请先选择对象部门!"); |
| | | this.$message.warning("请先选择使用部门!"); |
| | | return |
| | | } |
| | | this.$refs.EquipmentList.list(data.departId); |
| | |
| | | |
| | | onDepartList() { |
| | | this.$refs.DepartList.list(); |
| | | this.$refs.DepartList.title = "选择对象部门"; |
| | | this.$refs.DepartList.title = "选择使用部门"; |
| | | }, |
| | | sendDepartRecord(data) { |
| | | this.dataSource = []; |