281 lines
7.2 KiB
Java
281 lines
7.2 KiB
Java
<!--维护-->
|
|
<template>
|
|
<a-modal
|
|
:title="$t('recordmaintenance')"
|
|
:width="600"
|
|
:visible="visible"
|
|
:confirm-loading="confirmLoading"
|
|
:maskClosable="false"
|
|
@ok="handleOk"
|
|
@cancel="handleCancel"
|
|
>
|
|
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
|
<a-row :gutter="24">
|
|
<a-col :span="24">
|
|
<div class="box-title-text">
|
|
<div class="title-text">
|
|
<!-- <span class="Required">*</span>-->
|
|
<span class="title-text-text" :title="$t('recordstatus')">
|
|
{{$t('recordstatus')}}</span>
|
|
</div>
|
|
<a-form-model-item class="itemModel" prop="recordstatus">
|
|
<j-dict-select-tag class="box-input" v-model="formInline.bazt"
|
|
:placeholder="$t('PleaseSelect')+$t('recordstatus')"
|
|
:type="'select'"
|
|
:triggerChange="false" :dictCode="'recordstatus'"/>
|
|
</a-form-model-item>
|
|
</div>
|
|
</a-col>
|
|
<a-col :span="24">
|
|
<div class="box-title-text">
|
|
<div class="title-text">
|
|
<!-- <span class="Required">*</span>-->
|
|
<span class="title-text-text" :title="$t('filingtime')">
|
|
{{$t('filingtime')}}</span>
|
|
</div>
|
|
<a-form-model-item class="itemModel" prop="filingtime">
|
|
<a-date-picker class="box-input"
|
|
:placeholder="$t('PleaseSelect')+$t('filingtime')"
|
|
@change="dateChange({db_field_name:'batjsj'})"
|
|
format="YYYY-MM-DD"
|
|
:getCalendarContainer="(trigger) => trigger.parentNode"
|
|
v-model="formInline.batjsj"
|
|
:disabled="false"
|
|
style="width: 100%"/>
|
|
</a-form-model-item>
|
|
</div>
|
|
</a-col>
|
|
<a-col :span="24">
|
|
<div class="box-title-text">
|
|
<div class="title-text">
|
|
<!-- <span class="Required">*</span>-->
|
|
<span class="title-text-text" :title="$t('remarks')">
|
|
{{$t('remarks')}}</span>
|
|
</div>
|
|
<a-form-model-item class="itemModel" prop="remarks">
|
|
<a-textarea :placeholder="$t('pleaseEnter')+$t('remarks')"
|
|
v-model="formInline.bz"
|
|
:rows="4"/>
|
|
</a-form-model-item>
|
|
</div>
|
|
</a-col>
|
|
</a-row>
|
|
</a-form-model>
|
|
</a-modal>
|
|
</template>
|
|
|
|
<script>
|
|
import { getAction, postAction, putAction } from '@/api/manage'
|
|
import moment from 'moment'
|
|
|
|
export default {
|
|
name: 'settingList',
|
|
props: ['url'],
|
|
data() {
|
|
return {
|
|
visible: false,
|
|
confirmLoading: false,
|
|
formInline: {
|
|
batjsj:'',
|
|
},
|
|
rules: {
|
|
// listConfirmation: [
|
|
// {
|
|
// required: true,
|
|
// message: this.$t('confirmationOfRegulationsList') + this.$t('cannotEmpty'),
|
|
// trigger: 'change'
|
|
// }
|
|
// ],
|
|
// legalTaskConfirmation: [
|
|
// {
|
|
// required: true,
|
|
// message: this.$t('regulatoryTaskConfirmation') + this.$t('cannotEmpty'),
|
|
// trigger: 'change'
|
|
// }
|
|
// ],
|
|
// designDeadline: [
|
|
// {
|
|
// required: true,
|
|
// message: this.$t('confirmationOfDesignConformity') + this.$t('cannotEmpty'),
|
|
// trigger: 'change'
|
|
// }
|
|
// ],
|
|
// prehomoDeadline: [
|
|
// {
|
|
// required: true,
|
|
// message: this.$t('preHomoCompletion') + this.$t('cannotEmpty'),
|
|
// trigger: 'change'
|
|
// }
|
|
// ],
|
|
// attestationStartTime: [
|
|
// {
|
|
// required: true,
|
|
// message: this.$t('certificationStart') + this.$t('cannotEmpty'),
|
|
// trigger: 'change'
|
|
// }
|
|
// ],
|
|
// attestationEndTime: [
|
|
// {
|
|
// required: true,
|
|
// message: this.$t('certificationEnd') + this.$t('cannotEmpty'),
|
|
// trigger: 'change'
|
|
// }
|
|
// ],
|
|
// verifyDeadline: [
|
|
// {
|
|
// required: true,
|
|
// message: this.$t('verificationConfirmationDeadline') + this.$t('cannotEmpty'),
|
|
// trigger: 'change'
|
|
// }
|
|
// ]
|
|
},
|
|
ids: ''
|
|
}
|
|
},
|
|
mounted() {
|
|
},
|
|
methods: {
|
|
edit(row) {
|
|
if(row instanceof Array){
|
|
this.ids = row.join(',')
|
|
}else{
|
|
this.formInline.bazt = row.bazt
|
|
this.formInline.batjsj = row.batjsj
|
|
this.formInline.bz = row.bz
|
|
this.ids = row.id
|
|
}
|
|
this.visible = true
|
|
this.$nextTick(() => {
|
|
this.$refs.ruleForm.clearValidate()
|
|
})
|
|
},
|
|
handleOk() {
|
|
this.$refs.ruleForm.validate(valid => {
|
|
if (valid) {
|
|
let query = {
|
|
...this.formInline,
|
|
ids:this.ids.join(',')
|
|
}
|
|
this.confirmLoading = true
|
|
postAction('ota/otaBaSjList/batchRecord', query).then((res) => {
|
|
if (res.success) {
|
|
this.$message.success(this.$t('OperationSuccessful'))
|
|
this.visible = false
|
|
this.confirmLoading = false
|
|
this.$emit('getList')
|
|
} else {
|
|
this.$message.warning(this.$t('operationFailed'))
|
|
this.confirmLoading = false
|
|
}
|
|
})
|
|
}
|
|
})
|
|
},
|
|
handleCancel() {
|
|
this.formInline = {
|
|
batjsj:''
|
|
}
|
|
this.ids = ''
|
|
this.visible = false
|
|
},
|
|
dateChange(item) {
|
|
this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : ''
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.formAdd .ant-form-item-label {
|
|
width: 130px;
|
|
}
|
|
|
|
.formAdd .ant-form-item-control-wrapper {
|
|
display: inline-block;
|
|
width: 100%;
|
|
}
|
|
|
|
/*.formAdd .ant-form-item {*/
|
|
/* margin-bottom: 20px;*/
|
|
/*}*/
|
|
|
|
.itemModel .ant-form-item-control-wrapper {
|
|
width: 90%;
|
|
}
|
|
|
|
.box-input .ant-select-selection--single {
|
|
height: 38px;
|
|
}
|
|
|
|
.box-input .ant-select-selection--multiple {
|
|
height: 38px;
|
|
}
|
|
|
|
.box-input .ant-select-selection__rendered {
|
|
line-height: 38px;
|
|
height: 38px;
|
|
}
|
|
|
|
.box-input .ant-select-selection--multiple .ant-select-selection__rendered > ul > li {
|
|
margin-top: 6px;
|
|
}
|
|
|
|
.box-input .ant-calendar-picker {
|
|
line-height: 38px;
|
|
height: 38px;
|
|
}
|
|
|
|
.box-input .ant-calendar-picker-input {
|
|
height: 38px;
|
|
}
|
|
|
|
.box-input .ant-input-number-input-wrap {
|
|
line-height: 38px;
|
|
height: 38px;
|
|
}
|
|
</style>
|
|
<style scoped>
|
|
.box-title-text {
|
|
line-height: 1.4;
|
|
display: flex;
|
|
}
|
|
|
|
.title-text {
|
|
width: 144px;
|
|
text-align: right;
|
|
display: inline-block;
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
margin-right: 16px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
height: 42px;
|
|
line-height: 42px;
|
|
}
|
|
|
|
.box-input {
|
|
display: inline-block;
|
|
height: 38px;
|
|
width: 100%;
|
|
}
|
|
|
|
.itemModel {
|
|
width: calc(100% - 130px);
|
|
display: inline-block;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.title-text-text {
|
|
margin-top: 9px;
|
|
}
|
|
|
|
.formAdd {
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.Required {
|
|
color: red;
|
|
margin-right: 3px;
|
|
}
|
|
</style> |