From 3a8223b71d18205d40b894fd0b4c0fa1ca773e86 Mon Sep 17 00:00:00 2001 From: Lius <Lius2225@163.com> Date: 星期一, 13 十一月 2023 10:44:11 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/mdc-test' into mdc-test --- src/views/eam/modules/malfunctionRepair/MalfunctionRepaireModal.vue | 45 ++++++++++++++++++++++++++++++++------------- 1 files changed, 32 insertions(+), 13 deletions(-) diff --git a/src/views/eam/modules/malfunctionRepair/MalfunctionRepaireModal.vue b/src/views/eam/modules/malfunctionRepair/MalfunctionRepaireModal.vue index c22adfa..5394b39 100644 --- a/src/views/eam/modules/malfunctionRepair/MalfunctionRepaireModal.vue +++ b/src/views/eam/modules/malfunctionRepair/MalfunctionRepaireModal.vue @@ -19,7 +19,7 @@ :wrapperCol="wrapperCol" > <a-input - :disabled="disableSubmit" + :disabled="true" placeholder="璇疯緭鍏ュ崟鎹彿" v-decorator="['num', validatorRules.num]" /> @@ -33,7 +33,6 @@ > <j-dict-select-tag allow-clear - :disabled="disableSubmit" :placeholder="disableSubmit?'':'璇烽�夋嫨鏄惁鍋滄満缁翠慨'" :triggerChange="true" dictCode="is_stop" @@ -67,7 +66,7 @@ :wrapperCol="wrapperCol" > <j-date - :disabled="disableSubmit" + :disabled="true" style="width: 100%" placeholder="璇烽�夋嫨鏁呴殰鏃堕棿" :showTime="true" @@ -175,7 +174,7 @@ </a-form-item> </a-col> </a-row> - <a-row :gutter="24"> + <!-- <a-row :gutter="24"> <a-col :span="24/2"> <a-form-item label="绱ф�ョ▼搴�" @@ -191,21 +190,21 @@ v-decorator="['urgency', validatorRules.urgency]" /> </a-form-item> - </a-col> - <a-col :span="24/2" v-show="false"> + </a-col> --> + <!-- <a-col :span="24/2" v-show="false"> <a-form-item label="鏁呴殰鍘熷洜" :labelCol="labelCol" :wrapperCol="wrapperCol" > <a-input - :disabled="disableSubmit" + :disabled="disableSubmit" enter-button v-decorator="['faultReason', validatorRules.faultReason]" /> </a-form-item> - </a-col> - </a-row> + </a-col> --> + <!-- </a-row> --> <a-row :gutter="24"> <a-col :span="24/2"> <a-form-item @@ -290,6 +289,8 @@ // import JImageUpload from '@/components/jeecg/JImage2Upload' import EquipmentList from './EquipmentList' import Vue from 'vue' +import dayjs from 'dayjs' + export default { name: "MalfunctionRepaireModal", @@ -297,7 +298,8 @@ JMultiSelectTag, Tooltip, // JImageUpload, - EquipmentList + EquipmentList, + dayjs }, data() { return { @@ -338,13 +340,19 @@ { required: true, message: '璇烽�夋嫨鏁呴殰鏃堕棿!' }, ] }, + faultDescription:{ + rules: [ + { required: true, message: '璇锋弿杩版晠闅�!' }, + { max: 1000, min:1,message: '鏈�澶氬彲鎻忚堪1000瀛�!' }, + ] + }, }, url: { add: "/eam/equipmentReportRepair/add", edit: "/eam/equipmentReportRepair/edit", getSysDeparts: "/eam/equipment/getSysDeparts", + getNum:'/eam/sysIdentity/getNumNew' }, - dataSource: [], } }, @@ -354,9 +362,20 @@ }, methods: { - add() { - this.edit({}) + let that = this; + let param = { + type: 'EquipmentReportRepair', + length: 4 + }; + let modelDefault = {}; + getAction(this.url.getNum,param).then(res=>{ + if(res.success){ + modelDefault.num = res.result; + modelDefault.faultTime = dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss'); + that.edit(modelDefault); + } + }) }, edit(record) { let that = this; -- Gitblit v1.9.3