| | |
| | | id: '', |
| | | companyId: null, |
| | | deptId: null, |
| | | year: '', |
| | | year: '2025', |
| | | fictionId: null, |
| | | checkId: null, |
| | | ratifyId: null, |
| | |
| | | state.form.companyName = value.companyName |
| | | state.companyList = companyList |
| | | } |
| | | state.form.year = new Date().getFullYear().toString() |
| | | title.value = type === 'add' ? '新增' : type ==='edit' ? '编辑' : '查看' ; |
| | | if(type === 'edit' || type === 'review') { |
| | | state.form = JSON.parse(JSON.stringify(value)); |
| | |
| | | const reset = () => { |
| | | state.form = { |
| | | id: '', |
| | | qualityId: '', |
| | | |
| | | fictionId : '', |
| | | fictionName: '', |
| | | fictionTime:'', |
| | | checkId :'', |
| | | checkName: '', |
| | | checkTime:'', |
| | | ratifyId:'', |
| | | ratifyName: '', |
| | | ratifyTime: '', |
| | | riskContents:[], |
| | | companyId: null, |
| | | deptId: null, |
| | | year: '2025', |
| | | fictionId: null, |
| | | checkId: null, |
| | | ratifyId: null, |
| | | document: null, |
| | | riskContents: [] |
| | | } |
| | | state.peopleList = [] |
| | | state.companyList = [] |