Commit b07f3b1b by jiawei.su
parents cc832d0e af0348f8
......@@ -154,7 +154,7 @@
>工单信息:</span
>
<span class="info">{{
orderDetail.orderNumber
orderDetail2.orderNumber
}}</span>
</p>
<p class="flex">
......@@ -162,7 +162,7 @@
>产品编号:</span
>
<span class="info">{{
orderDetail.productCode
orderDetail2.productCode
}}</span>
</p>
<p class="flex">
......@@ -170,7 +170,7 @@
>产品名称:</span
>
<span class="info">{{
orderDetail.productName
orderDetail2.productName
}}</span>
</p>
<p class="flex">
......@@ -178,7 +178,7 @@
>工件编号:</span
>
<span class="info">{{
orderDetail.sn
orderDetail2.sn
}}</span>
</p>
</div>
......@@ -188,11 +188,11 @@
>状态:</span
>
<span class="info">{{
orderDetail.status == 1
orderDetail2.status == 1
? "待上料"
: orderDetail.status == 2
: orderDetail2.status == 2
? "运行中"
: orderDetail.status == 3
: orderDetail2.status == 3
? "待下料"
: ""
}}</span>
......@@ -202,7 +202,7 @@
>储位编号:</span
>
<span class="info">{{
orderDetail.location
orderDetail2.location
}}</span>
</p>
<p class="flex">
......@@ -210,7 +210,7 @@
>工装编号:</span
>
<span class="info">{{
orderDetail.fixtureGuid
orderDetail2.fixtureGuid
}}</span>
</p>
</div>
......@@ -277,7 +277,7 @@ export default {
a: -1,
b: -1,
attr1: false, //上料、下料、上下料
attr2: true, //上料、下料、上下料
attr2: false, //上料、下料、上下料
modal: false,
code: "", //工令单
columns1: [
......@@ -331,6 +331,7 @@ export default {
],
data2: [],
orderDetail: {},
orderDetail2: {},
detailobj: {},
sectionid: 0,
tabindex: "1",
......@@ -385,20 +386,23 @@ export default {
let status = this.stationList[index].status;
this.sectionid = this.stationList[index].section;
// status = 2;
if (status == 3) {
this.attr1 = true;
this.tabindex = "2";
// if (status == 3) {
// this.attr1 = true;
// this.tabindex = "2";
this.getRunningDetail(index);
} else {
this.attr2 = true;
}
// } else {
// this.attr2 = true;
// }
if (status == 2) {
this.getRunningDetail(index);
}
// // if (status == 2) {
// this.getRunningDetail(index);
// }
},
getIndex(name) {
this.tabindex = name;
if(this.tabindex == '2'){
this.orderDetail = {};
}
this.getStorages();
},
//获取储位
......@@ -430,22 +434,27 @@ export default {
this.request("/acc/AutomationOperate/ScanCode", data, "get")
.then((res) => {
if (res.data.ret == 1) {
let obj = res.data.data;
if (
obj.url == null ||
obj.url == "" ||
obj.url == undefined
) {
obj.url = "";
if (this.tabindex == "2") {
this.orderDetail = {};
} else {
obj.url = this.axios.publicPath + obj.url.slice(4);
let obj = res.data.data;
if (
obj.url == null ||
obj.url == "" ||
obj.url == undefined
) {
obj.url = "";
} else {
obj.url =
this.axios.publicPath + obj.url.slice(4);
}
this.orderDetail = Object.assign(
{},
this.orderDetail,
obj
);
this.getStorages();
}
this.orderDetail = Object.assign(
{},
this.orderDetail,
obj
);
this.getStorages();
} else {
this.$Message.error(this.$t(res.data.msg));
this.orderDetail = {};
......@@ -482,6 +491,7 @@ export default {
obj
);
if (this.tabindex == "2") {
this.orderDetail2 = res.data.data;
this.getStorages();
}
} else {
......@@ -592,6 +602,7 @@ export default {
this.orderDetail.fixtureGuid = this.detailobj.fixtureguid;
this.orderDetail.location = this.detailobj.locationid;
if (this.locationobj.id) {
// this.getRunningDetail();
this.request(
"/acc/AutomationOperate/ScanCode?id=" + this.locationobj.id,
"",
......@@ -600,9 +611,9 @@ export default {
.then((res) => {
if (res.data.ret == 1) {
let obj = res.data.data;
this.orderDetail = Object.assign(
this.orderDetail2 = Object.assign(
{},
this.orderDetail,
this.orderDetail2,
obj
);
} else {
......
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