From 997835429a1d66643364091e8437ebbbeb8ff97a Mon Sep 17 00:00:00 2001 From: zenglf <18502938215@163.com> Date: 星期四, 28 九月 2023 14:09:58 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' into develop --- src/views/mdc/base/modules/mdcProcessQuantity/mdcProcessQuantityModelEdit.vue | 27 +++++++++++++++++++++------ 1 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/views/mdc/base/modules/mdcProcessQuantity/mdcProcessQuantityModelEdit.vue b/src/views/mdc/base/modules/mdcProcessQuantity/mdcProcessQuantityModelEdit.vue index c342b4e..9b0c3eb 100644 --- a/src/views/mdc/base/modules/mdcProcessQuantity/mdcProcessQuantityModelEdit.vue +++ b/src/views/mdc/base/modules/mdcProcessQuantity/mdcProcessQuantityModelEdit.vue @@ -1,19 +1,19 @@ <template> <a-modal :title="title" :width="800" :visible="visible" :confirmLoading="confirmLoading" - :okButtonProps="{ props: {disabled: disableSubmit} }" @ok="handleOk" @cancel="handleCancel" cancelText="鍏抽棴"> + @ok="handleOk" @cancel="handleCancel" cancelText="鍏抽棴"> <a-spin :spinning="confirmLoading"> <a-form :form="form"> <a-row :gutter="24"> <a-col :span="12"> <a-form-item label="璁惧缂栧彿" :labelCol="labelCol" :wrapperCol="wrapperCol"> - <a-input :disabled="disableSubmit" :readOnly="readOnly" allow-clear placeholder="璇疯緭鍏ヨ澶囩紪鍙�" + <a-input :readOnly="readOnly" allow-clear placeholder="璇疯緭鍏ヨ澶囩紪鍙�" v-decorator="['equipmentId',validatorRules.equipmentId]"/> </a-form-item> </a-col> <a-col :span="12"> <a-form-item label="璁惧鍚嶇О" :labelCol="labelCol" :wrapperCol="wrapperCol"> - <a-input :disabled="disableSubmit" :readOnly="readOnly" allow-clear placeholder="璇疯緭鍏ヨ澶囧悕绉�" + <a-input :readOnly="readOnly" allow-clear placeholder="璇疯緭鍏ヨ澶囧悕绉�" v-decorator="['equipmentName',validatorRules.equipmentName]"/> </a-form-item> </a-col> @@ -46,21 +46,21 @@ <a-col :span="12"> <a-form-item label="鏃ユ湡" :labelCol="labelCol" :wrapperCol="wrapperCol"> - <j-date :disabled="disableSubmit" date-format="YYYY-MM-DD" placeholder="璇烽�夋嫨鏃ユ湡" + <j-date date-format="YYYY-MM-DD" placeholder="璇烽�夋嫨鏃ユ湡" v-decorator="['efficientDate', validatorRules.efficientDate]"></j-date> </a-form-item> </a-col> <a-col :span="12"> <a-form-item label='鍔犲伐鏁伴噺' :labelCol="labelCol" :wrapperCol="wrapperCol"> - <a-input-number :min="0" :disabled="disableSubmit" placeholder="璇疯緭鍏ュ姞宸ユ暟閲�" v-decorator="['processQuantity', validatorRules.processQuantity]"></a-input-number> + <a-input-number :min="0" placeholder="璇疯緭鍏ュ姞宸ユ暟閲�" v-decorator="['processQuantity', validatorRules.processQuantity]"></a-input-number> </a-form-item> </a-col> </a-row> <a-row :gutter="24"> <a-col :span="24"> <a-form-item label="澶囨敞" :labelCol="labelColLong" :wrapperCol="wrapperColLong"> - <a-textarea :maxLength="20" :disabled="disableSubmit" v-decorator="['remark', validatorRules.remark]" placeholder="璇疯緭鍏ュ娉�" ></a-textarea> + <a-textarea :maxLength="20" v-decorator="['remark', validatorRules.remark]" placeholder="璇疯緭鍏ュ娉�" ></a-textarea> </a-form-item> </a-col> </a-row> @@ -152,6 +152,21 @@ }, ], }, + duration:{ + rules:[ + {required:true,message:'璇烽�夋嫨鏍囧噯鍔犲伐鏃堕棿'} + ] + }, + efficientDate:{ + rules:[ + {required:true,message:'璇烽�夋嫨鏃ユ湡'} + ] + }, + processQuantity:{ + rules:[ + {required:true,message:'璇烽�夋嫨鍔犲伐鏁伴噺'} + ] + }, // mdcRepairType:{ // rules:[ // { -- Gitblit v1.9.3