wuyouming666
2024-05-20 183c3ed6b30e3edf5e44c8bd2128d3be968bc1f4
CanadaMes-ui/src/views/home/index.vue
@@ -1674,16 +1674,13 @@
                confirmButtonText: this.$t('Yes'),
                cancelButtonText: this.$t('No'),
                type: 'warning'
            }).then(({ value }) => {
                if (this.password == value) {
            }).then(() => {
                    UpdateTask(type, glassid, cell).then(res => {
                        if (res.data.message3 == 200) {
                            this.$message.success(this.$t('Operation successful'));
                        }
                    });
                } else {
                    this.$message.error(this.$t('Password error'));//密码错误
                }
            }).catch(() => {
                this.$message({
                    type: 'info',
@@ -1713,17 +1710,13 @@
                confirmButtonText: this.$t('Yes'),
                cancelButtonText: this.$t('No'),
                type: 'warning'
            }).then(({ value }) => {
                if (this.password == value) {
            }).then(() => {
                    if (state == 1) {
                        DeleteByGlassID(glassid).then(res => {
                            if (res.data.message3 == 200) {
                                this.$message.success(this.$t('Operation successful'));
                            }
                        });
                    } else {
                        this.$message.error(this.$t('No delete allowed'));
                    }
                } else {
                    this.$message.error(this.$t('Password error'));//密码错误
                }
@@ -1743,8 +1736,7 @@
                confirmButtonText: this.$t('Yes'),
                cancelButtonText: this.$t('No'),
                type: 'warning'
            }).then(({ value }) => {
                if (this.password == value) {
            }).then(() => {
                    if (state == 1) {
                        OutByGlassID(glassid).then(res => {
                            if (res.data.message2 == 200) {
@@ -1760,9 +1752,6 @@
                                this.$message.error(this.$t('This glass is already in the Queue'));
                            }
                        });
                    } else {
                        this.$message.error(this.$t('No out allowed'));
                    }
                } else {
                    this.$message.error(this.$t('Password error'));//密码错误
                }
@@ -1781,15 +1770,11 @@
                confirmButtonText: this.$t('Yes'),
                cancelButtonText: this.$t('No'),
                type: 'warning'
            }).then(({ value }) => {
                if (this.password == value) {
            }).then(() => {
                    this.insertcage = cage;
                    this.insertcell = cell;
                    this.inserttier = tier;
                    this.showform(2);
                } else {
                    this.$message.error(this.$t('Password error'));//密码错误
                }
            }).catch(() => {
                this.$message({
                    type: 'info',
@@ -1833,14 +1818,12 @@
                confirmButtonText: this.$t('Yes'),
                cancelButtonText: this.$t('No'),
                type: 'warning'
            }).then(({ value }) => {
                if (this.password == value) {
            }).then(() => {
                    Disabled(cage, cell, disabled).then(res => {
                        if (res.data.message == 200) {
                            this.$message.success(this.$t('Operation successful'));
                        }
                    });
                }
            }).catch(() => {
                this.$message({
                    type: 'info',
@@ -1858,7 +1841,6 @@
                cancelButtonText: this.$t('No'),
                type: 'warning'
            }).then(() => {
                // if (this.password == value) {
                DeleteProductionQueueGlass(id).then(res => {
                    if (res.data.message == 200) {
                        this.$message.success(this.$t('Operation successful'));
@@ -1866,7 +1848,6 @@
                        this.$message.error(this.$t('This frame has glass that is currently outing'));
                    }
                });
                // }
            }).catch(() => {
                this.$message({
                    type: 'info',