| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item label="类型" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-input :disabled="disableSubmit" placeholder="请输入类型" |
| | | :triggerChange="true" |
| | | v-decorator="['noplanType', validatorRules.noplanType]"/> |
| | | <j-dict-select-tag :readOnly="disableSubmit" placeholder="请选择类型" |
| | | :triggerChange="true" dictCode="mdc_noplan_type" |
| | | v-decorator="['noplanType', validatorRules.noplanType]" allow-clear/> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-form-item label="备注" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> |
| | | <a-textarea :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="请输入备注" ></a-textarea> |
| | | <a-textarea :maxLength="20" :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="请输入备注" ></a-textarea> |
| | | </a-form-item> |
| | | </a-row> |
| | | </a-form> |
| | |
| | | import pick from 'lodash.pick' |
| | | // import DeviceRepairListModel from './DeviceRepairListModel' |
| | | // import DeviceRepairEditListModel from './DeviceRepairEditListModel' |
| | | // import JDate from './JDate' |
| | | import { |
| | | getAction, |
| | | postAction, |
| | |
| | | duplicateCheck |
| | | } from '@/api/api' |
| | | import AFormItem from 'ant-design-vue/es/form/FormItem' |
| | | |
| | | import JDate from '../deviceRepair/JDate' |
| | | export default { |
| | | name: 'UnplannedDowntimemManagerModalEdit', |
| | | components: { AFormItem }, |
| | | components: { AFormItem,JDate }, |
| | | // components: {DeviceRepairListModel,JDate,DeviceRepairEditListModel}, |
| | | props: {}, |
| | | data() { |
| | |
| | | let startOne = start.replace(/:/g,''); |
| | | let endOne = end.replace(/:/g,''); |
| | | if(startOne>=endOne){ |
| | | that.$message.warning("结束时间不能小于开始时间"); |
| | | // that.$message.warning("结束时间不能小于开始时间"); |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:"结束时间不能小于开始时间" |
| | | }); |
| | | |
| | | // console.log(this.model) |
| | | // this.endTime = '' |
| | | that.confirmLoading = false |
| | |
| | | } |
| | | obj.then((res) => { |
| | | if (res.success) { |
| | | that.$message.success("添加成功") |
| | | // that.$message.success("添加成功") |
| | | that.$notification.success({ |
| | | message:'消息', |
| | | description:"添加成功" |
| | | }); |
| | | // that.$message.success(res.message) |
| | | that.$emit('ok', res.result) |
| | | } else { |
| | | that.$message.warning(res.message) |
| | | // that.$message.warning(res.message) |
| | | that.$notification.warning({ |
| | | message:'消息', |
| | | description:res.message |
| | | }); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false |