|
|
@ -4,9 +4,16 @@ G |
|
|
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" :title="title" :visible.sync="open" width="500px" append-to-body> |
|
|
<el-dialog :close-on-click-modal="false" :close-on-press-escape="false" :title="title" :visible.sync="open" width="500px" append-to-body> |
|
|
<el-form ref="signForm" :model="form" :rules="rules" label-width="120px"> |
|
|
<el-form ref="signForm" :model="form" :rules="rules" label-width="120px"> |
|
|
<el-row> |
|
|
<el-row> |
|
|
|
|
|
<el-col :span="24" v-if="showDate"> |
|
|
|
|
|
<el-form-item :label="$t('page.business.study.study.jysj') + ':'" prop="startDate"> |
|
|
|
|
|
<el-date-picker v-model="dateArr" clearable type="daterange" range-separator="-" :start-placeholder="$t('form.startDate')" |
|
|
|
|
|
:end-placeholder="$t('form.endDate')" value-format="yyyy-MM-dd" style="width: 100%" @change="changeDate" /> |
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item :label="$t('form.qmyy')" prop="qmyy"> |
|
|
<el-form-item :label="$t('form.qmyy')" prop="qmyy"> |
|
|
<el-input type="text" v-model="form.qmyy" maxlength="50" readonly |
|
|
|
|
|
|
|
|
<el-input type="text" v-model="form.qmyy" maxlength="50" disabled |
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
@ -19,13 +26,13 @@ G |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item :label="$t('form.signer')"> |
|
|
<el-form-item :label="$t('form.signer')"> |
|
|
<el-input type="text" v-model="form.qmrMc" maxlength="50" readonly |
|
|
|
|
|
|
|
|
<el-input type="text" v-model="form.qmrMc" maxlength="50" disabled |
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
:placeholder="$t('form.placeholderInput')" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
<el-col :span="24"> |
|
|
<el-col :span="24"> |
|
|
<el-form-item :label="$t('form.password')" prop="qmrmm"> |
|
|
<el-form-item :label="$t('form.password')" prop="qmrmm"> |
|
|
<el-input type="password" v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" /> |
|
|
|
|
|
|
|
|
<el-input type="password" v-model="form.qmrmm" maxlength="20" :placeholder="$t('form.placeholderInput')" autocomplete="off" auto-complete="new-password" /> |
|
|
</el-form-item> |
|
|
</el-form-item> |
|
|
</el-col> |
|
|
</el-col> |
|
|
</el-row> |
|
|
</el-row> |
|
|
@ -51,13 +58,23 @@ export default { |
|
|
remark:'', |
|
|
remark:'', |
|
|
qmrId:'', |
|
|
qmrId:'', |
|
|
qmrMc:'', |
|
|
qmrMc:'', |
|
|
qmrmm:'' |
|
|
|
|
|
|
|
|
qmrmm:'', |
|
|
|
|
|
|
|
|
|
|
|
startDate:'', |
|
|
|
|
|
endDate:'' |
|
|
}, |
|
|
}, |
|
|
|
|
|
dateArr:[], |
|
|
|
|
|
showDate:false, |
|
|
rules: { |
|
|
rules: { |
|
|
qmrmm: [{ |
|
|
qmrmm: [{ |
|
|
required: true, |
|
|
required: true, |
|
|
message: ' ', |
|
|
message: ' ', |
|
|
trigger: 'blur' |
|
|
trigger: 'blur' |
|
|
|
|
|
}], |
|
|
|
|
|
startDate: [{ |
|
|
|
|
|
required: true, |
|
|
|
|
|
message: ' ', |
|
|
|
|
|
trigger: 'change' |
|
|
}] |
|
|
}] |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -67,14 +84,18 @@ export default { |
|
|
created() { |
|
|
created() { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
show(title,qmyy) { |
|
|
|
|
|
|
|
|
show(title,qmyy,showDate) { |
|
|
|
|
|
this.showDate = showDate==undefined?false:showDate |
|
|
|
|
|
this.dateArr = [] |
|
|
this.title = title |
|
|
this.title = title |
|
|
this.form = { |
|
|
this.form = { |
|
|
qmyy:qmyy, |
|
|
qmyy:qmyy, |
|
|
remark:'', |
|
|
remark:'', |
|
|
qmrId:this.$store.getters.id, |
|
|
qmrId:this.$store.getters.id, |
|
|
qmrMc:this.$store.getters.nickName, |
|
|
qmrMc:this.$store.getters.nickName, |
|
|
qmrmm:'' |
|
|
|
|
|
|
|
|
qmrmm:'', |
|
|
|
|
|
startDate:'', |
|
|
|
|
|
endDate:'' |
|
|
} |
|
|
} |
|
|
this.resetForm("signForm") |
|
|
this.resetForm("signForm") |
|
|
this.open = true |
|
|
this.open = true |
|
|
@ -82,6 +103,10 @@ export default { |
|
|
cancel() { |
|
|
cancel() { |
|
|
this.open = false |
|
|
this.open = false |
|
|
}, |
|
|
}, |
|
|
|
|
|
changeDate(val){ |
|
|
|
|
|
this.form.startDate = val && val.length>0?val[0]:'' |
|
|
|
|
|
this.form.endDate = val && val.length>1?val[1]:'' |
|
|
|
|
|
}, |
|
|
save() { |
|
|
save() { |
|
|
this.$refs["signForm"].validate(valid => { |
|
|
this.$refs["signForm"].validate(valid => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
|