Commit 0ce9adff authored by 仇晓婷's avatar 仇晓婷

产品bom优化

parent dc28e50d
......@@ -94,9 +94,9 @@ export default {
drawingNo: "",
name: "",
type: "", //物料类型
productCode: "", //产品编号
// productCode: "", //产品编号
// status: null,
remark: "",
// remark: "",
madeCompany: "",
madeCompanyTitle: "",
// extend: "",
......@@ -168,13 +168,13 @@ export default {
if (e.id == val) {
this.entity.name = e.name;
this.entity.mmcode = e.code;
this.entity.drawingNo = e.drawingNo;
this.entity.drawingNo = e.drawing;
this.entity.version = e.version;
}
});
},
clickData(data, liUrl) {
debugger;
this.img = liUrl;
this.entity.productUrl = liUrl;
},
......
......@@ -13,6 +13,16 @@
<Filed :span="8" :name="l('productUrl')+':'">
<a href="#" @click="seeImg(entity.productUrl)">查看图片</a>
</Filed>
<Filed :span="24" :name="l('productUrlList')+':'">
<files
ref="refFile"
:parms="parms"
fileFormat
:Photos="true"
:showList="false"
@clickItem="clickData"
/>
</Filed>
</Row>
</div>
<TreeGrid :columns="columns" :items="treeData"></TreeGrid>
......@@ -27,6 +37,7 @@ import Api from "./api";
export default {
data() {
return {
downUrl: fileUrlDown,
modal: false,
title: "新增",
detail: null,
......@@ -135,12 +146,16 @@ export default {
});
},
seeImg(url) {
let url1 = this.downUrl + url;
if (url) {
window.open(url, "_blank");
window.open(url1, "_blank");
} else {
this.$Message.error("暂无图片");
}
},
clickData(data) {
window.open(data, "_blank");
},
ok() {
this.init();
// this.load(this.eid);
......
......@@ -28,6 +28,7 @@ export default {
name: "Add",
data() {
return {
downUrl: fileUrlDown,
entity: {},
rules: {
name: [{ required: true, message: "必填", trigger: "blur" }],
......@@ -54,8 +55,9 @@ export default {
window.open(data, "_blank");
},
seeImg(url) {
let url1 = this.downUrl + url;
if (url) {
window.open(url, "_blank");
window.open(url1, "_blank");
} else {
this.$Message.error("暂无图片");
}
......
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