78308 国内外政策、政策入库流程 根据发布日期自动带入年度
This commit is contained in:
@@ -140,7 +140,9 @@
|
|||||||
<el-form-item label="发文日期" prop="issueTime" label-width="150px" class="add-form-item">
|
<el-form-item label="发文日期" prop="issueTime" label-width="150px" class="add-form-item">
|
||||||
<el-datePicker v-model="sarLawsStandEO.issueTime"
|
<el-datePicker v-model="sarLawsStandEO.issueTime"
|
||||||
:editable="false"
|
:editable="false"
|
||||||
placeholder="请选择发文日期"></el-datePicker>
|
placeholder="请选择发文日期"
|
||||||
|
@change="issueTimeChange"
|
||||||
|
></el-datePicker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
@@ -572,6 +574,7 @@ import CustomSelect from '@/components/CustomFormComponents/Select'
|
|||||||
import customSelectArray from '@/components/CustomFormComponents/SelectArray'
|
import customSelectArray from '@/components/CustomFormComponents/SelectArray'
|
||||||
import RoleTree from "@/components/roleTree";
|
import RoleTree from "@/components/roleTree";
|
||||||
import MechanismTree from "@/components/mechanismTree";
|
import MechanismTree from "@/components/mechanismTree";
|
||||||
|
import moment from "moment";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "editDrawer",
|
name: "editDrawer",
|
||||||
@@ -909,6 +912,10 @@ export default {
|
|||||||
// this.getDept()
|
// this.getDept()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
issueTimeChange (val) {
|
||||||
|
const year = moment(val).format('YYYY')
|
||||||
|
this.sarLawsStandEO.lawsYear = this.lawsYearOptions.find(item => item.label === year)?.value || ''
|
||||||
|
},
|
||||||
initType (value) {
|
initType (value) {
|
||||||
if (value && value !== '') {
|
if (value && value !== '') {
|
||||||
return value.split(',')
|
return value.split(',')
|
||||||
|
|||||||
@@ -68,7 +68,8 @@
|
|||||||
<DatePickerFormItem label="发文日期"
|
<DatePickerFormItem label="发文日期"
|
||||||
prop="issueTime"
|
prop="issueTime"
|
||||||
v-model="form.issueTime"
|
v-model="form.issueTime"
|
||||||
:disabled="disabled">
|
:disabled="disabled"
|
||||||
|
@input="issueTimeChange">
|
||||||
</DatePickerFormItem>
|
</DatePickerFormItem>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
@@ -161,6 +162,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import moment from 'moment'
|
||||||
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
import ProcessTitle from '@/pages/processCenter/pages/components/ProcessTitle'
|
||||||
|
|
||||||
import SelectFormItem from '@/components/hzwlComponents/SelectFormItem'
|
import SelectFormItem from '@/components/hzwlComponents/SelectFormItem'
|
||||||
@@ -209,6 +211,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
issueTimeChange (val) {
|
||||||
|
const year = moment(val).format('YYYY')
|
||||||
|
this.form.lawsYear = this.dict.lawsYearOptions.find(item => item.label === year)?.value || ''
|
||||||
|
},
|
||||||
handleSearch () {
|
handleSearch () {
|
||||||
this.$refs.SearchResultRef.open()
|
this.$refs.SearchResultRef.open()
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user