| | |
| | | slot="action" |
| | | slot-scope="text, record" |
| | | > |
| | | <a-popconfirm |
| | | <a |
| | | :disabled=" record.status !== '4'" |
| | | @click="handleAccept(record)" |
| | | >éªæ¶</a> |
| | | <!-- <a-popconfirm |
| | | v-if="record.status == '1' || record.status == '4'" |
| | | title="确认æäº¤å?" |
| | | @confirm="() =>handleCommit(record, 'commit')" |
| | |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </a-dropdown> --> |
| | | </span> |
| | | <span slot="faultDescription" slot-scope="text"> |
| | | <span slot="jell" slot-scope="text"> |
| | | <j-ellipsis :value="text" :length="10" /> |
| | | </span> |
| | | |
| | |
| | | @ok='approvalModalFormOk' |
| | | @cancel='approvalModalFormOk' |
| | | ></approvel-modal> |
| | | <accept-model |
| | | ref="acceptModel" |
| | | @ok="modalFormOk" |
| | | ></accept-model> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import ApprovelModal from './modules/malfunctionRepair/ApprovelModal' |
| | | import JEllipsis from '@/components/jeecg/JEllipsis' |
| | | import moment from 'moment' |
| | | import AcceptModel from './modules/malfunctionRepair/AcceptModel' |
| | | |
| | | export default { |
| | | name: 'MalfunctionRepairList', |
| | |
| | | MalfunctionRepairModal, |
| | | FaultDescriptionList, |
| | | ApprovelModal, |
| | | JEllipsis |
| | | JEllipsis, |
| | | AcceptModel, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | align: "center", |
| | | dataIndex: 'createBy' |
| | | }, |
| | | // { |
| | | // title: 'å建æ¶é´', |
| | | // align: "center", |
| | | // dataIndex: 'createTime', |
| | | // }, |
| | | { |
| | | title: 'éªæ¶æè§', |
| | | align: "center", |
| | | dataIndex: 'errUda5', |
| | | scopedSlots: { |
| | | customRender: 'jell' |
| | | } |
| | | }, |
| | | { |
| | | title: '夿³¨', |
| | | align: "center", |
| | | dataIndex: 'remark' |
| | | }, |
| | | // { |
| | | // title: 'æä½', |
| | | // dataIndex: 'action', |
| | | // align: "center", |
| | | // fixed: "right", |
| | | // width: 200, |
| | | // scopedSlots: { customRender: 'action' } |
| | | // } |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: "center", |
| | | fixed: "right", |
| | | width: 200, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/eam/equipmentReportRepair/getReportRepairList", |
| | |
| | | timeChange(){ |
| | | this.queryParam.faultStartTime = moment(this.faultTime[0]).format("YYYY-MM-DD HH:mm:ss") |
| | | this.queryParam.faultEndTime = moment(this.faultTime[1]).format("YYYY-MM-DD HH:mm:ss") |
| | | }, |
| | | handleAccept(record){ |
| | | this.$refs.acceptModel.title="éªæ¶" |
| | | this.$refs.acceptModel.edit(record) |
| | | } |
| | | } |
| | | } |
| | |
| | | :wrapperCol="wrapperCol" |
| | | prop="useId" |
| | | > |
| | | <!-- <a-tree-select |
| | | style="width: 100%" |
| | | :disabled="formDisabled" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="è¯·éæ©ä½¿ç¨é¨é¨" |
| | | tree-default-expand-all |
| | | v-model="model.useId" |
| | | /> --> |
| | | |
| | | |
| | | |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | :confirmLoading="confirmLoading" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é" |
| | | > |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model |
| | | ref="form" |
| | | :model="model" |
| | | :rules="validatorRules" |
| | | > |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-model-item |
| | | label="éªæ¶æè§" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="errUda5" |
| | | > |
| | | <a-textarea v-model="model.remark" rows="4" placeholder="éªæ¶æè§" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </a-spin> |
| | | </j-modal> |
| | | </template> |
| | | <script> |
| | | import { httpAction } from '@/api/manage' |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | import pick from 'lodash.pick' |
| | | import { postAction, requestPut, getAction } from '@/api/manage' |
| | | import { duplicateCheck } from '@/api/api' |
| | | import moment from 'moment' |
| | | import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js' |
| | | import { JVXETypes } from '@/components/jeecg/JVxeTable' |
| | | export default { |
| | | name: "NodeModel", |
| | | mixins: [JVxeTableModelMixin], |
| | | components: { |
| | | validateDuplicateValue, |
| | | }, |
| | | props: { |
| | | disableSubmit: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | }, |
| | | caytegoryParam: { |
| | | type: String, |
| | | default: '', |
| | | required: false |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | | title: "æä½", |
| | | width: 1500, |
| | | visible: false, |
| | | model: { |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | remark: [ |
| | | { min: 0, max: 100, message: 'é¿åº¦ä¸è¶
è¿ 100 个å符', trigger: 'blur' }, |
| | | ], |
| | | }, |
| | | url: { |
| | | accept: "/eam/equipmentReportRepair/accept", |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | | //å¤ä»½modelåå§å¼ |
| | | this.initOptions(); |
| | | this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
| | | }, |
| | | methods: { |
| | | add() { |
| | | this |
| | | this.edit(this.modelDefault); |
| | | }, |
| | | edit(record) { |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | }, |
| | | close() { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | this.$refs.form.clearValidate(); |
| | | }, |
| | | handleOk() { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true; |
| | | let httpurl = this.url.accept; |
| | | let method = 'put'; |
| | | httpAction(httpurl, this.model, method).then((res) => { |
| | | if (res.success) { |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | | } else { |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | that.close(); |
| | | }) |
| | | } else { |
| | | return false |
| | | } |
| | | }) |
| | | }, |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | }, |
| | | computed: { |
| | | formDisabled() { |
| | | return this.disableSubmit |
| | | }, |
| | | }, |
| | | } |
| | | </script> |