| | |
| | | background-size: 46px 94px;
|
| | | background-attachment: local;
|
| | | width: 32px;
|
| | |
|
| | | position: absolute;
|
| | | /* left: 116px; */
|
| | | /* left:1060px;18.88px */
|
| | | background-image: url('../../img/bigcar01.png');
|
| | | }
|
| | |
|
| | | .blocks-img2 {
|
| | | height: 100px;
|
| | | max-width: 100vw;
|
| | | background-repeat: no-repeat;
|
| | | background-size: 85px 100px;
|
| | | background-attachment: local;
|
| | | width: 100px;
|
| | | position: absolute;
|
| | | /* left: 116px; */
|
| | | /* left:1060px;18.88px */
|
| | | background-image: url('../../img/dipan.png');
|
| | | }
|
| | |
|
| | | .blocks-img3 {
|
| | | height: 90px;
|
| | | max-width: 100vw;
|
| | | background-repeat: no-repeat;
|
| | | background-size: 160px 40px;
|
| | | background-attachment: local;
|
| | | width: 160px;
|
| | | position: absolute;
|
| | | /* left: 116px; */
|
| | | /* left:1060px;18.88px */
|
| | | background-image: url('../../img/taimian.png');
|
| | | }
|
| | |
|
| | | .el-table td,
|
| | |
| | | <el-table-column :label="$t('Operate')">
|
| | | <template slot-scope='scope'>
|
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;"
|
| | | @click="endtask(0, scope.row.glassId, scope.row.cell)">{{$t('end task')}}</el-button>
|
| | | @click="endtask(0, scope.row.glassId, scope.row.cell)">{{ $t('end task') }}</el-button>
|
| | | </template>
|
| | | </el-table-column>
|
| | | </el-table>
|
| | |
| | | <el-table-column :label="$t('Operate')">
|
| | | <template slot-scope='scope'>
|
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;"
|
| | | @click="endtask(1, scope.row.glassId, scope.row.cell)">{{$t('end task')}}</el-button>
|
| | | @click="endtask(1, scope.row.glassId, scope.row.cell)">{{ $t('end task') }}</el-button>
|
| | | </template>
|
| | | </el-table-column>
|
| | | </el-table>
|
| | |
| | | </div>
|
| | | <div class="blocks-img" :style="{ left: car1 + 'px', top: '16px' }"></div>
|
| | | <div class="blocks-img" :style="{ left: car2 + 'px', top: '194px' }"></div>
|
| | | <div class="blocks-img2" :style="{ left: '912px', top: '366px' }"></div>
|
| | | <div class="blocks-img3" :style="{ left: '875px', top: '455px' }"></div>
|
| | | </div>
|
| | | </el-footer>
|
| | | <el-dialog :visible.sync="dialogFormVisible" :title="$t('Please confirm the glass information')">
|
| | |
| | | <template slot-scope='scope'>
|
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;"
|
| | | @click="deleteglass(scope.row.glassId, scope.row.state)">{{ $t('delete') }}</el-button>
|
| | | <!-- <el-button type="primary" style="padding: 4px 10px;font-size: 12px;" @click="open">{{ $t('delete')
|
| | | }}</el-button> -->
|
| | | <el-button type="primary" style="padding: 4px 10px;font-size: 12px;"
|
| | | @click="outglass(scope.row.glassId, scope.row.state)">{{ $t('out') }}</el-button>
|
| | | </template>
|
| | |
| | | if (this.form1.order != "") {
|
| | | InsertOrder(this.order).then(res => {
|
| | | if (res.data.message == 200) {
|
| | | this.dialogFormVisible1=false;
|
| | | this.$message.success("Operation successful");
|
| | | this.dialogFormVisible1 = false;
|
| | | this.$message.success(this.$t('Operation successful'));
|
| | |
|
| | | } else {
|
| | | this.$message.success("There is no such order");
|
| | | this.$message.success(this.$t('There is no glass for this order'));
|
| | | }
|
| | | this.load();
|
| | | });
|
| | |
| | | if (this.form.order != "") {
|
| | | Addglassid(this.glassid).then(res => {
|
| | | if (res.data.message2 == 200) {
|
| | | this.$message.success("Operation successful");
|
| | | this.$message.success(this.$t('Operation successful'));
|
| | | this.cancal();
|
| | | } else if(res.data.message2 == 500) {
|
| | | this.$message.success("There are currently tasks");
|
| | | } else if (res.data.message2 == 500) {
|
| | | this.$message.success(this.$t('There are currently tasks'));
|
| | | }
|
| | | else if(res.data.message2 == 300) {
|
| | | this.$message.success("There is no such glass");
|
| | | else if (res.data.message2 == 300) {
|
| | | this.$message.success(this.$t('There is no such glass'));
|
| | | }
|
| | | else if(res.data.message2 == 400) {
|
| | | this.$message.success("There is no such grid");
|
| | | else if (res.data.message2 == 400) {
|
| | | this.$message.success(this.$t('There is no such grid'));
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | this.form1 = {};
|
| | | },
|
| | | endtask(type, glassid, cell) {
|
| | | UpdateTask(type, glassid, cell).then(res => {
|
| | | if (res.data.message3 == 200) {
|
| | | this.$message.success("Operation successful");
|
| | | }
|
| | | this.$confirm(this.$t('Are you sure to perform this operation ?'), this.$t('prompt'), {
|
| | | confirmButtonText: this.$t('Yes'),
|
| | | cancelButtonText: this.$t('No'),
|
| | | type: 'warning'
|
| | | }).then(() => {
|
| | | UpdateTask(type, glassid, cell).then(res => {
|
| | | if (res.data.message3 == 200) {
|
| | | this.$message.success(this.$t('Operation successful'));
|
| | | }
|
| | | });
|
| | | }).catch(() => {
|
| | | this.$message({
|
| | | type: 'info',
|
| | | message: this.$t('Operation canceled')
|
| | | });
|
| | | });
|
| | |
|
| | | },
|
| | | showcageinfo(cage) {
|
| | | this.cage = cage;
|
| | |
| | | });
|
| | | },
|
| | | deleteglass(glassid, state) {
|
| | | if (state == 1) {
|
| | | DeleteByGlassID(glassid).then(res => {
|
| | | if (res.data.message3 == 200) {
|
| | | this.$message.success("Operation successful");
|
| | | }
|
| | | this.$confirm(this.$t('Are you sure to perform this operation ?'), this.$t('prompt'), {
|
| | | confirmButtonText: this.$t('Yes'),
|
| | | cancelButtonText: this.$t('No'),
|
| | | type: 'warning'
|
| | | }).then(() => {
|
| | | if (state == 1) {
|
| | | DeleteByGlassID(glassid).then(res => {
|
| | | if (res.data.message3 == 200) {
|
| | | this.$message.success(this.$t('Operation successful'));
|
| | | }
|
| | | });
|
| | | } else {
|
| | | this.$message.success(this.$t('No delete allowed'));
|
| | | }
|
| | | }).catch(() => {
|
| | | this.$message({
|
| | | type: 'info',
|
| | | message: this.$t('Operation canceled')
|
| | | });
|
| | | } else {
|
| | | this.$message.success("No out allowed");
|
| | | }
|
| | | });
|
| | | },
|
| | | outglass(glassid, state) {
|
| | | if (state == 1) {
|
| | | OutByGlassID(glassid).then(res => {
|
| | | if (res.data.message3 == 200) {
|
| | | this.$message.success("Operation successful");
|
| | | }
|
| | | this.$confirm(this.$t('Are you sure to perform this operation ?'), this.$t('prompt'), {
|
| | | confirmButtonText: this.$t('Yes'),
|
| | | cancelButtonText: this.$t('No'),
|
| | | type: 'warning'
|
| | | }).then(() => {
|
| | | if (state == 1) {
|
| | | OutByGlassID(glassid).then(res => {
|
| | | if (res.data.message3 == 200) {
|
| | | this.$message.success(this.$t('Operation successful'));
|
| | | }
|
| | | });
|
| | | } else {
|
| | | this.$message.success(this.$t('No out allowed'));
|
| | | }
|
| | | }).catch(() => {
|
| | | this.$message({
|
| | | type: 'info',
|
| | | message: this.$t('Operation canceled')
|
| | | });
|
| | | } else {
|
| | | this.$message.success("No out allowed");
|
| | | }
|
| | | });
|
| | |
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | </script> |