Commit b9dcda6c by jiawei.su
parents 79cce1d0 20d3ec42
<template> <template>
<div> <div>
员工上下料管理
<div class="divborder"> <div class="divborder">
<div class="choose"> <div class="choose">
<p class="selectTitle"> <p class="selectTitle">
...@@ -117,8 +116,7 @@ ...@@ -117,8 +116,7 @@
<p class="infoLabel">产品图片:</p> <p class="infoLabel">产品图片:</p>
<div> <div>
<img <img
:src=" :src="orderDetail.url
axios.publicPath + orderDetail.url
" "
alt="" alt=""
style="width: 100%" style="width: 100%"
...@@ -421,6 +419,11 @@ export default { ...@@ -421,6 +419,11 @@ export default {
.then((res) => { .then((res) => {
if (res.data.ret == 1) { if (res.data.ret == 1) {
let obj = res.data.data; let obj = res.data.data;
if(obj.url == null || obj.url=='' || obj.url ==undefined){
obj.url = ''
}else{
obj.url = this.axios.publicPath +obj.url;
}
this.orderDetail = Object.assign( this.orderDetail = Object.assign(
{}, {},
this.orderDetail, this.orderDetail,
...@@ -428,6 +431,7 @@ export default { ...@@ -428,6 +431,7 @@ export default {
); );
} else { } else {
this.$Message.error(this.$t(res.data.msg)); this.$Message.error(this.$t(res.data.msg));
this.orderDetail = {};
} }
}) })
.catch((err) => { .catch((err) => {
...@@ -556,7 +560,7 @@ export default { ...@@ -556,7 +560,7 @@ export default {
handleRowChange1(currentRow, oldCurrentRow) { handleRowChange1(currentRow, oldCurrentRow) {
console.log(currentRow); console.log(currentRow);
this.locationobj = currentRow; this.locationobj = currentRow;
this.orderDetail.fixtureGuid = this.detailobj.fixtureguid; this.orderDetail.fixtureGuid = this.detailobj.fixtureguid;
this.orderDetail.location = this.detailobj.locationid; this.orderDetail.location = this.detailobj.locationid;
if(this.locationobj.id){ if(this.locationobj.id){
this.request("/acc/AutomationOperate/ScanCode?id="+this.locationobj.id, '', "get") this.request("/acc/AutomationOperate/ScanCode?id="+this.locationobj.id, '', "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