zouyu
2025-03-14 d3a5fbcc6516c77b32f54518a65e3238c3029d6d
src/views/CNAS/personnel/personnelInfo/Department/components/Records/dispose/index.vue
@@ -94,7 +94,7 @@
        }
    },
    mounted() {
        this.isPermission = isPermission("isSubmit")
        // this.isPermission = isPermission("isSubmit")
        console.log('权限', this.isPermission);
    },
    methods: {
@@ -118,14 +118,14 @@
         */
        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
@@ -162,7 +162,7 @@
                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
                })
@@ -171,7 +171,7 @@
                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
                })
@@ -181,7 +181,7 @@
                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
@@ -191,7 +191,7 @@
                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
                })