| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.isPermission = isPermission("isSubmit") |
| | | // this.isPermission = isPermission("isSubmit") |
| | | console.log('权限', this.isPermission); |
| | | }, |
| | | methods: { |
| | |
| | | */ |
| | | async getProcessData(id) { |
| | | const { code, data } = await personSupervisionProcessingPage({ id }) |
| | | if (code == 202) { |
| | | if (!data) { |
| | | this.controlType = '新增' |
| | | this.supervisionRecordId = id |
| | | this.active = 0 |
| | | this.pageStatus = 0 |
| | | this.processId = undefined |
| | | } |
| | | if (code == 200) { |
| | | if (data && code == 200) { |
| | | this.currentResponsible = data.currentResponsible |
| | | this.controlType = '编辑' |
| | | this.supervisionRecordId = id |
| | |
| | | console.log('第1步', this.active, currentState) |
| | | let { factForm } = this.mainForm |
| | | this.submitForm({ |
| | | proposingDepartmentDate: dateFormat(new Date(), 'YYYY-MM-DD HH:mm:ss'), |
| | | proposingDepartmentDate: this.$moment().format('YYYY-MM-DD HH:mm:ss'), |
| | | currentState: currentState, |
| | | ...factForm |
| | | }) |
| | |
| | | console.log('第2步', this.active, currentState) |
| | | let { reasonForm } = this.mainForm |
| | | this.submitForm({ |
| | | causeAnalysisDate: dateFormat(new Date(), 'YYYY-MM-DD HH:mm:ss'), |
| | | causeAnalysisDate: this.$moment().format('YYYY-MM-DD HH:mm:ss'), |
| | | currentState: currentState, |
| | | ...reasonForm |
| | | }) |
| | |
| | | let { measureForm } = this.mainForm |
| | | let { requestDepartmentConfirmation, ...measureFormRest } = measureForm |
| | | this.submitForm({ |
| | | correctiveActionDate: dateFormat(new Date(), 'YYYY-MM-DD HH:mm:ss'), |
| | | correctiveActionDate: this.$moment().format('YYYY-MM-DD HH:mm:ss'), |
| | | currentState: currentState, |
| | | requestDepartmentConfirmation: requestDepartmentConfirmation ? 1 : 2, |
| | | ...measureFormRest |
| | |
| | | console.log('第4步', this.active, currentState) |
| | | let { resultForm } = this.mainForm |
| | | this.submitForm({ |
| | | verificationDepartmentDate: dateFormat(new Date(), 'YYYY-MM-DD HH:mm:ss'), |
| | | verificationDepartmentDate: this.$moment().format('YYYY-MM-DD HH:mm:ss'), |
| | | currentState: currentState, |
| | | ...resultForm |
| | | }) |