Commit f24b729c by lyy

function

parent 50fc4ae3
...@@ -334,8 +334,10 @@ ...@@ -334,8 +334,10 @@
type="text" type="text"
class="searchInput" class="searchInput"
style="width: 250px" style="width: 250px"
v-model="code" v-model="code2"
@on-keyup.enter="scanOrder()" @on-keyup.enter="
scanOrder(0, code2)
"
/> />
<Button <Button
type="primary" type="primary"
...@@ -472,6 +474,7 @@ export default { ...@@ -472,6 +474,7 @@ export default {
sectionid: 0, sectionid: 0,
tabindex: "1", tabindex: "1",
locationobj: {}, locationobj: {},
code2: "",
loading1: false, loading1: false,
loading2: false, loading2: false,
loading3: false, loading3: false,
...@@ -748,31 +751,50 @@ export default { ...@@ -748,31 +751,50 @@ export default {
} }
}); });
}, },
scanOrder(){ scanOrder(section, code) {
// 上下料扫工单 // 上下料扫工单
let data ={ let data = {
section:sectionid, section: section,
code:'' code: code,
} };
this.request( this.request(
"", "acc/AutomationOperate/CurrentOrder",
data, data,
"" "post"
).then((res) => { ).then((res) => {
if (res.data.ret == 1) { if (res.data.ret == 1) {
this.$Message.success(this.$t(res.data.msg)); this.$Message.success(this.$t(res.data.msg));
this.orderDetail2 = res.data.data;
} else { } else {
this.$Message.error(this.$t(res.data.msg)); this.$Message.error(this.$t(res.data.msg));
} }
}); });
}, },
sameFeed() { sameFeed() {
// 同工单上料 // 同工单上料
this.scanOrder(this.sectionid, "");
}, },
complexFeed(){ complexFeed() {
// 复合操作上料
if (this.sectionid == 0) {
this.$Message.error("请选择生产线、工位");
return false;
}
let data = {
section: this.sectionid,
};
this.request(
" acc/AutomationOperate/DisassembleAndAssemble",
data,
"post"
).then((res) => {
if (res.data.ret == 1) {
this.$Message.success(this.$t(res.data.msg));
this.orderDetail2 = res.data.data;
} else {
this.$Message.error(this.$t(res.data.msg));
}
});
}, },
handleRowChange(currentRow, oldCurrentRow) { handleRowChange(currentRow, oldCurrentRow) {
this.detailobj = currentRow; this.detailobj = currentRow;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment