CanadaMes-ui/src/api/home.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
CanadaMes-ui/src/img/xmjc.png | 补丁 | 查看 | 原始文档 | blame | 历史 | |
CanadaMes-ui/src/lang/locales/en-US.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
CanadaMes-ui/src/lang/locales/zh-CN.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
CanadaMes-ui/src/views/home/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
CanadaMes-ui/src/api/home.js
@@ -123,3 +123,11 @@ data }) } export function SelectGlass(orderid) { return request({ url: '/home/SelectGlass?orderid=' + orderid, method: 'post', data:"" }) } CanadaMes-ui/src/img/xmjc.pngCanadaMes-ui/src/lang/locales/en-US.json
@@ -240,7 +240,7 @@ "width":"width", "Operate":"Operate", "end task":"end task", "cancal":"cancal", "cancel":"cancel", "confirm":"confirm", "number":"number", "Outfeed Barcodid":"Outfeed Barcodid", @@ -289,6 +289,9 @@ "Usage":"Usage", "Space (Pieces)":"Space (Pieces)", "This glass is already in the cage":"This glass is already in the cage", "Enter the Order lD":"Enter the Order lD", "OrderInfo":"OrderInfo", "Query":"Query", "permission update":"permission update" } CanadaMes-ui/src/lang/locales/zh-CN.json
@@ -235,7 +235,7 @@ "width":"宽", "Operate":"操作", "end task":"完成任务", "cancal":"取消", "cancel":"取消", "confirm":"确认", "number":"数量", "Outfeed Barcodid":"出片玻璃id", @@ -292,6 +292,9 @@ "Usage":"使用率", "Space (Pieces)":"空间(片数)", "This glass is already in the cage":"笼子里已有此玻璃", "Enter the Order lD":"请输入订单id", "OrderInfo":"订单信息", "Query":"查询", "permission update":"权限编辑" } CanadaMes-ui/src/views/home/index.vue
@@ -111,6 +111,12 @@ top: 366px; */ } .orderbutton { position: absolute; left: 1070px; top: 70px; } .blocks-img3 { height: 90px; max-width: 100vw; @@ -268,6 +274,8 @@ <div class="blocks-img" :style="{ left: car2 + 'px', top: '175px' }"></div> <div class="blocks-img2"></div> <div class="blocks-img3"></div> <el-button class="orderbutton" type="primary" @click="showform2()">{{ $t('OrderInfo') }}</el-button> <!-- <div style="display:flex;position: absolute;float:left;z-index: 999;top:112px;left:328px;"> <div :class="getStatusClass(item.state)" v-for="(item,index) in cagelist1" :key="item['date']" :style="{ height: 35 * item['glassWidth'] + 'px',left:4.22*index+'px' }" @@ -299,7 +307,7 @@ <el-form-item :label="$t('Barcodid')"> <el-input style="width:15%;" :placeholder="$t('Enter the glass lD')" v-model="glassid"></el-input> <el-button type="primary" @click="showform(3)">query</el-button> <el-button type="primary" @click="showform(3)">{{ $t('Query') }}</el-button> </el-form-item> <el-form-item :label="$t('order')"> <el-input v-model="form.orderId" readonly autocomplete="off" /> @@ -322,7 +330,7 @@ <el-button @click="FeedInglassid()" :style="{ display: confirm2 == true ? '' : 'none' }" type="primary">{{ $t('confirm') }}</el-button> <el-button @click="cancal()">{{ $t('cancal') }}</el-button> <el-button @click="cancel()">{{ $t('cancel') }}</el-button> </span> </template> </el-dialog> @@ -338,7 +346,7 @@ <template #footer> <span class="dialog-footer"> <el-button @click="getOrder();" type="primary">{{ $t('confirm') }}</el-button> <el-button @click="cancal1()">{{ $t('cancal') }}</el-button> <el-button @click="cancel1()">{{ $t('cancel') }}</el-button> </span> </template> </el-dialog> @@ -376,13 +384,24 @@ </el-table-column> </el-table> </el-dialog> <el-dialog :visible.sync="dialogFormVisible4" :title="$t('OrderInfo')" top="5vh"> <el-input style="width:15%;" :placeholder="$t('Enter the Order lD')" v-model="orderid"></el-input> <el-button type="primary" @click="selectglassinfo()">{{ $t('Query') }}</el-button> <el-table :data="this.GlassInfo" :height="700" border style="width: 100%;overflow: auto;"> <el-table-column prop="glassId" :label="$t('Barcodid')"></el-table-column> <el-table-column prop="orderId" :label="$t('Order Number')"></el-table-column> <el-table-column prop="width" :label="$t('length')"></el-table-column> <el-table-column prop="height" :label="$t('width')"></el-table-column> </el-table> </el-dialog> </el-container> </template> <script> //:disabled="scope.row.glassId > 0 || scope.row.disabled == 1 ? true : false" import { home, home2, loadtask, InsertOrder, Addglassid, UpdateTask, SelectAlarmmgInfo, SelectCageInfo, DeleteByGlassID, OutByGlassID, Loadcarlist, SelectPassword, SelectGlassByGlassID, Disabled, Inglassid SelectCageInfo, DeleteByGlassID, OutByGlassID, Loadcarlist, SelectPassword, SelectGlassByGlassID, Disabled, Inglassid, SelectGlass } from "../../api/home"; @@ -403,6 +422,7 @@ dialogFormVisible1: false, dialogFormVisible2: false, dialogFormVisible3: false, dialogFormVisible4: false, form: { orderId: "", glassId: "", @@ -436,7 +456,9 @@ loadglassheight: 0, password: 1, text: "", zhuangtai: "" zhuangtai: "", orderid: "", GlassInfo: [] }; }, created() { @@ -489,6 +511,9 @@ SelectCageInfo(this.cage).then(res => { this.cageinfo = res.data.cageinfo; }); SelectGlass(this.orderid).then(res => { this.GlassInfo = res.data.glass; }); this.$forceUpdate(); @@ -504,36 +529,34 @@ } }, load() { //加载笼子使用情况数据 home().then(res => { this.tableData = res.data.list; }); //加载理片笼玻璃数据 home2().then(res => { this.cagelist1 = res.data.list1; this.cagelist2 = res.data.list2; this.cagelist3 = res.data.list3; this.cagelist4 = res.data.list4; }); //加载进片任务数据 loadtask(this.task1).then(res => { this.tasklist1 = res.data.list; if (res.data.list.length > 0) { this.incell = this.tasklist1[0]['cell']; } }); loadtask(this.task2).then(res => { this.tasklist2 = res.data.list; if (res.data.list.length > 0) { this.outcell = this.tasklist2[0]['cell']; } }); //加载进出片任务数据 loadtask(this.task2).then(res => { this.tasklist2 = res.data.list; }); //加载报警信息 SelectAlarmmgInfo().then(res => { this.alarm = res.data.alarmmg; }); //加载小车位置信息 Loadcarlist().then(res => { this.carlist = res.data.carlist; }); //加载确认密码 SelectPassword().then(res => { this.password = res.data.password; }); @@ -578,7 +601,7 @@ Addglassid(this.glassid).then(res => { if (res.data.message2 == 200) { this.$message.success(this.$t('Operation successful')); this.cancal(); this.cancel(); } else if (res.data.message2 == 500) { this.$message.error(this.$t('There are currently tasks')); } @@ -595,6 +618,7 @@ } } }, //显示确认玻璃信息也没 showform(buttons) { if (buttons == 1) { this.confirm1 = true; @@ -603,6 +627,7 @@ this.confirm1 = false; this.confirm2 = true; } //根据输入的玻璃id获取玻璃信息 SelectGlassByGlassID(this.glassid).then(res => { if (res.data.form != null) { this.form = res.data.form; @@ -614,6 +639,7 @@ } }); }, //显示订单信息页面 showform1() { if (this.order != "") { this.form1 = @@ -623,10 +649,20 @@ }; this.dialogFormVisible1 = true; } }, cancal() { selectglassinfo() { SelectGlass(this.orderid).then(res => { this.GlassInfo = res.data.glass; }); }, showform2() { SelectGlass(this.orderid).then(res => { this.GlassInfo = res.data.glass; }); this.dialogFormVisible4 = true; }, //取消操作时关闭页面 cancel() { this.dialogFormVisible = false; this.form = { orderId: "", @@ -635,10 +671,12 @@ width: "" }; }, cancal1() { //取消操作时关闭页面 cancel1() { this.dialogFormVisible1 = false; this.form1 = {}; }, //结束进/出片任务 endtask(type, glassid, cell) { this.$prompt(this.$t('Are you sure to perform this operation ?'), this.$t('prompt'), { inputType: 'password', @@ -663,6 +701,7 @@ }); }); }, //显示理片笼详情信息 showcageinfo(cage) { this.cage = cage; SelectCageInfo(cage).then(res => { @@ -670,6 +709,7 @@ this.dialogFormVisible3 = true; }); }, //删除理片笼玻璃 deleteglass(glassid, state) { this.$prompt(this.$t('Are you sure to perform this operation ?'), this.$t('prompt'), { inputType: 'password', @@ -699,6 +739,7 @@ }); }); }, //手动出片 outglass(glassid, state) { this.$prompt(this.$t('Are you sure to perform this operation ?'), this.$t('prompt'), { inputType: 'password', @@ -733,6 +774,7 @@ }); }); }, //手动往理片笼添加玻璃 insertglass(cage, cell, tier) { this.$prompt(this.$t('Are you sure to perform this operation ?'), this.$t('prompt'), { inputType: 'password', @@ -742,14 +784,6 @@ type: 'warning' }).then(({ value }) => { if (this.password == value) { // OutByGlassID(glassid).then(res => { // if (res.data.message3 == 200) { // this.$message.success(this.$t('Operation successful')); // } // else if (res.data.message2 == 300) { // this.$message.error(this.$t('There is no such grid')); // } // }); this.insertcage = cage; this.insertcell = cell; this.inserttier = tier; @@ -764,6 +798,7 @@ }); }); }, //手动上片 FeedInglassid() { Inglassid(this.insertcage, this.insertcell, this.inserttier, this.form).then(res => { if (this.form.glassId != "") { @@ -779,6 +814,7 @@ }); }, //启用//理片笼禁用 UpdateDisabled(cage, cell, disabled) { Disabled(cage, cell, disabled).then(res => { if (res.data.message == 200) { springboot-vue3/src/main/java/com/example/springboot/controller/HomeController.java
@@ -34,6 +34,7 @@ @Autowired SpianMapper spianMapper; //查询理片笼使用情况 @GetMapping("/load") public Result selectAll() { List<StorageCage> storageCagelist = homeMapper.selectAll(); @@ -41,7 +42,7 @@ map.put("list", storageCagelist); return Result.success(map); } //查询理片笼玻璃情况 @GetMapping("/loads") public Result selectRack() { List<StorageCage> storageCagelist1 = homeMapper.selectRack1(); @@ -55,7 +56,7 @@ map.put("list4", storageCagelist4); return Result.success(map); } //查询进/出片任务 @GetMapping("/loadinout") public Result selectinout(Integer types) { List<StorageCage> storageCageinout = homeMapper.selectinout(types); @@ -63,7 +64,7 @@ map.put("list", storageCageinout); return Result.success(map); } //按订单出片 @GetMapping("/InsertOrder") public Result InsertOrder(String orderid) { short result = homeMapper.SelectOrder(orderid); @@ -77,7 +78,7 @@ } return Result.success(map); } //根据玻璃id手动上片 @GetMapping("/Addglassid") public Result Addglassid(String glassid) { Map<String, Object> map = new HashMap<>(); @@ -97,7 +98,7 @@ } return Result.success(map); } //手动完成进/出片任务 @GetMapping("/UpdateTask") public Result UpdateTask(Integer types, Integer shelfrack, String glassid) { Map<String, Object> map = new HashMap<>(); @@ -116,7 +117,7 @@ map.put("message3", "200"); return Result.success(map); } //查询报警信息 @GetMapping("/SelectAlarmmgInfo") public Result SelectAlarmmgInfo() { List<alarmmg> alarmmg = homeMapper.SelectAlarmmgInfo(); @@ -124,7 +125,7 @@ map.put("alarmmg", alarmmg); return Result.success(map); } //查询理片笼详情 @GetMapping("/SelectCageInfo") public Result SelectCageInfo(short cage) { List<StorageCage> cageinfo = homeMapper.SelectCageInfo(cage); @@ -132,7 +133,7 @@ map.put("cageinfo", cageinfo); return Result.success(map); } //手动删除理片笼玻璃 @GetMapping("/DeleteByGlassID") public Result DeleteByGlassID(String glassid) { StorageCage glassinfor = homeMapper.SelectGlassInfo(glassid); @@ -142,7 +143,7 @@ map.put("message3", "200"); return Result.success(map); } //根据玻璃id手动出片 @GetMapping("/OutByGlassID") public Result OutByGlassID(String glassid) { Map<String, Object> map = new HashMap<>(); @@ -161,7 +162,7 @@ return Result.success(map); } //加载小车位置 @GetMapping("/Loadcarlist") public Result Loadcarlist() { List<CarPosition> carlist = homeMapper.Loadcarlist(); @@ -169,7 +170,7 @@ map.put("carlist", carlist); return Result.success(map); } //查询确认密码 @GetMapping("/SelectPassword") public Result SelectPassword() { String pwdct = homeMapper.SelectPassword(); @@ -177,7 +178,7 @@ map.put("password", pwdct); return Result.success(map); } //根据玻璃id查询玻璃信息 @GetMapping("/SelectGlassByGlassID") public Result SelectGlassByGlassID(String glassid) { Glass Glass = homeMapper.SelectGlassByGlassID(glassid); @@ -185,7 +186,7 @@ map.put("form", Glass); return Result.success(map); } //启用/禁用理片笼格子 @GetMapping("/Disabled") public Result Disabled(short cage, short cell, short disabled) { homeMapper.Disabled(cage, cell, disabled); @@ -193,7 +194,7 @@ map.put("message", "200"); return Result.success(map); } //手动往理片笼添加玻璃 @PostMapping("/Inglassid") public Result Inglassid(short cage, short cell, short tier, @RequestBody Glass glass) { Map<String, Object> map = new HashMap<>(); @@ -207,4 +208,12 @@ return Result.success(map); } //查询玻璃信息 @PostMapping("/SelectGlass") public Result SelectGlass(String orderid) { Map<String, Object> map = new HashMap<>(); List<Glass> glass=homeMapper.SelectGlass(orderid); map.put("glass", glass); return Result.success(map); } } springboot-vue3/src/main/java/com/example/springboot/mapper/HomeMapper.java
@@ -107,4 +107,7 @@ @Select("select count(*) from storage_cage where glass_id=#{glassId}") short SelectStorageByGlassId(String glassId); @Select("select * from glass where orderid=#{orderid}") List<Glass> SelectGlass(String orderid); }