Commit 4a33e287 by xin.yang
parents 6265e4e7 687af983
......@@ -52,40 +52,53 @@
<div class="row">
<p class="flex">
<span class="infoLabel">工单信息:</span>
<span class="info"></span>
<span class="info">{{
orderDetail.orderNumber
}}</span>
</p>
<p class="flex">
<span class="infoLabel">产品编号:</span>
<span class="info"></span>
<span class="info">{{
orderDetail.productCode
}}</span>
</p>
<p class="flex">
<span class="infoLabel">产品名称:</span>
<span class="info"></span>
<span class="info">{{
orderDetail.productName
}}</span>
</p>
<p class="flex">
<span class="infoLabel">工件编号:</span>
<span class="info"></span>
<span class="info">{{
orderDetail.sn
}}</span>
</p>
</div>
<div class="row">
<p class="flex">
<span class="infoLabel">状态:</span>
<span class="info"></span>
<span class="info">{{
orderDetail.status
}}</span>
</p>
<p class="flex">
<span class="infoLabel">储位编号:</span>
<span class="info"></span>
<span class="info">{{
orderDetail.location
}}</span>
</p>
<p class="flex">
<span class="infoLabel">工装编号:</span>
<span class="info"></span>
<span class="info">{{
orderDetail.fixtureGuid
}}</span>
</p>
<Button type="primary" @click="modal = true"
>储位选择</Button
>
</div>
<div>
<Button type="primary">准备上料</Button>
<Button type="primary" @click="feedReady()"
>准备上料</Button
>
<Button type="primary">安装完成</Button>
</div>
</TabPane>
......@@ -107,7 +120,7 @@
>工单信息:</span
>
<span class="info">{{
orderDetail.code
orderDetail.orderNumber
}}</span>
</p>
<p class="flex">
......@@ -115,7 +128,7 @@
>产品编号:</span
>
<span class="info">{{
orderDetail.code
orderDetail.productCode
}}</span>
</p>
<p class="flex">
......@@ -123,7 +136,7 @@
>产品名称:</span
>
<span class="info">{{
orderDetail.code
orderDetail.productName
}}</span>
</p>
<p class="flex">
......@@ -131,7 +144,7 @@
>工件编号:</span
>
<span class="info">{{
orderDetail.code
orderDetail.sn
}}</span>
</p>
</div>
......@@ -149,7 +162,7 @@
>储位编号:</span
>
<span class="info">{{
orderDetail.code
orderDetail.location
}}</span>
</p>
<p class="flex">
......@@ -157,7 +170,7 @@
>工装编号:</span
>
<span class="info">{{
orderDetail.code
orderDetail.fixtureGuid
}}</span>
</p>
</div>
......@@ -277,7 +290,8 @@ export default {
],
data2: [],
orderDetail: {},
detailobj:{}
detailobj: {},
sectionid: 0,
};
},
created() {
......@@ -327,6 +341,7 @@ export default {
change2(index) {
this.b = index;
let status = this.stationList[index].status;
this.sectionid = this.stationList[index].section;
if (status == 1) {
this.attr2 = true;
}
......@@ -354,8 +369,12 @@ export default {
this.request("/acc/AutomationOperate/ScanCode", data, "get")
.then((res) => {
if (res.data.ret == 1) {
console.log(res.data.data);
this.orderDetail = res.data.data;
let obj = res.data.data;
this.orderDetail = Object.assign(
{},
this.orderDetail,
obj
);
} else {
this.$Message.error(this.$t(res.data, msg));
}
......@@ -367,14 +386,19 @@ export default {
feedReady() {
// 准备上料
if (this.sectionid == 0) {
this.$Message.error("请选择工位");
}
let data = {
section: 13,
code: "234324",
section: this.sectionid,
code: this.orderDetail.fixtureGuid,
};
this.request("/acc/AutomationOperate/Loading", data, "post").thne(
(res) => {
if (res.data.ret == 1) {
console.log(res.data.data);
} else {
this.$Message.error(this.$t(res.data.msg));
}
}
);
......@@ -392,7 +416,6 @@ export default {
},
handleRowChange(currentRow, oldCurrentRow) {
this.detailobj = currentRow;
},
request(url, data, type) {
if (type == "get") {
......
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