开办开始时间结束时间规则更改(开始时间为:班级创建时间,结束时间为发包单位确定时间)

2024年3月12日AIBOX&ALARM
liujun 2024-03-01 13:54:53 +08:00
parent 5dc74cc129
commit 11c158477b
3 changed files with 12 additions and 6 deletions

View File

@ -59,8 +59,8 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col v-if="false" :span="12">
<el-form-item label="培训有效期" prop="VALIDITY_PERIOD"> <el-form-item v-if="false" label="培训有效期" prop="VALIDITY_PERIOD">
<el-date-picker <el-date-picker
v-model="form.VALIDITY_PERIOD" v-model="form.VALIDITY_PERIOD"
:disabled="isShow" :disabled="isShow"
@ -226,8 +226,6 @@ export default {
return return
} }
this.form.list = JSON.stringify(this.peopleList) this.form.list = JSON.stringify(this.peopleList)
this.form.VALIDITY_PERIOD_START = this.form.VALIDITY_PERIOD[0]
this.form.VALIDITY_PERIOD_END = this.form.VALIDITY_PERIOD[1]
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
requestFN( requestFN(

View File

@ -55,7 +55,7 @@
<div class="text textone">所在单位</div> <div class="text textone">所在单位</div>
</td> </td>
<td colspan="3"> <td colspan="3">
<div class="text">{{ item.DEPARTMENT_NAME }}</div> <div class="text">{{ item.BELONG_TO_CORP_NAME }}</div>
</td> </td>
<td rowspan="3" style="padding-top: 6px" @click="click()"> <td rowspan="3" style="padding-top: 6px" @click="click()">
<vue-qr :text="qrCodeStr" :margin="0" :size="110" color-dark="#000" color-light="#fff"/> <vue-qr :text="qrCodeStr" :margin="0" :size="110" color-dark="#000" color-light="#fff"/>

View File

@ -39,6 +39,11 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col v-if="form.STATUS === '1' && !form.STEP " :span="12">
<el-form-item v-if="form.STATUS === '1'" prop="LIMIT_END_TIME" label="指定培训有效截至时间:">
<el-date-picker v-model="form.LIMIT_END_TIME" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" style="width:300px "/>
</el-form-item>
</el-col>
</el-row> </el-row>
</el-form> </el-form>
@ -77,6 +82,7 @@ export default {
APPOINT_USER_NAME: '', APPOINT_USER_NAME: '',
OPINION: '', OPINION: '',
STEP: false, STEP: false,
LIMIT_END_TIME: '',
user: '', user: '',
tm: new Date().getTime(), tm: new Date().getTime(),
list: [], list: [],
@ -95,6 +101,9 @@ export default {
], ],
OPINION: [ OPINION: [
{ required: true, message: '请填写打回原因', trigger: 'change' } { required: true, message: '请填写打回原因', trigger: 'change' }
],
LIMIT_END_TIME: [
{ required: true, message: '请选择指定培训有效截至时间', trigger: 'change' }
] ]
}, },
heirloom: {}, heirloom: {},
@ -113,7 +122,6 @@ export default {
}, },
methods: { methods: {
async init(e) { async init(e) {
console.log(e)
this.loading = true this.loading = true
this.visible = true this.visible = true
this.heirloom = JSON.stringify(e) this.heirloom = JSON.stringify(e)