Commit 7a5ed869 authored by 周远喜's avatar 周远喜

Merge branch 'product' of http://git.mes123.com/zhouyx/mes-ui into product

parents 2406be22 d555e978
...@@ -1427,7 +1427,7 @@ export default { ...@@ -1427,7 +1427,7 @@ export default {
}, },
product_info:{ product_info:{
// mmcode:'物料编号', mmcode:'物料编号',
materialId:'物料', materialId:'物料',
levelId:'产品分类', levelId:'产品分类',
type:"类型", type:"类型",
...@@ -1437,10 +1437,14 @@ export default { ...@@ -1437,10 +1437,14 @@ export default {
status:'', status:'',
remark:'备注', remark:'备注',
madeCompany:'主承制单位', madeCompany:'主承制单位',
creationTime:'创建时间',
extend:'', extend:'',
productUrl:'产品图像', productUrl:'产品图像',
productUrlList:'产品图象列表', productUrlList:'产品图象列表',
count:'数量',
postion:'位置',
upId:'上级id',
version:"版本"
}, },
order_list:{ order_list:{
mesCode:'订单编号', mesCode:'订单编号',
......
<template> <template>
<div class="detail" style="width:90%;margin:0 auto"> <div class="detail table-detail">
<Row> <Row>
<Filed :span="6" :name="l('productName')">{{entity.productName}}</Filed> <Filed :span="6" :name="l('productName')">{{entity.productName}}</Filed>
<Filed :span="6" :name="l('mesCode')">{{entity.mesCode}}</Filed> <Filed :span="6" :name="l('mesCode')">{{entity.mesCode}}</Filed>
......
<template> <template>
<div style="padding:40px 0"> <div style="padding:30px 0">
<Detail :idVal="detailId" /> <Detail :idVal="detailId" />
<Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" @node-click="show"/> <Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" @node-click="show"/>
<!-- <Footer :idVal="detailId" :footerStatu="footerStatu" @showModalCheckOk='modalCheckOk=true'></Footer> --> <!-- <Footer :idVal="detailId" :footerStatu="footerStatu" @showModalCheckOk='modalCheckOk=true'></Footer> -->
......
<template> <template>
<div class="detail" style="width:90%;margin:0 auto"> <div class="detail table-detail">
<Row> <Row>
<Filed :span="8" :name="l('code')">{{formValidate.code}}</Filed> <Filed :span="8" :name="l('code')">{{formValidate.code}}</Filed>
<Filed :span="8" :name="l('creationTime')">{{formValidate.creationTime}}</Filed> <Filed :span="8" :name="l('creationTime')">{{formValidate.creationTime}}</Filed>
......
<template> <template>
<div style="padding:40px 0"> <div style="padding:30px 0">
<Detail :idVal="detailId" /> <Detail :idVal="detailId" />
<Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" /> <Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" />
<div class="footers" v-if="footerStatu === '2'" style="text-align:left;"> <div class="footers" v-if="footerStatu === '2'" style="text-align:left;">
......
<template> <template>
<div class="detail" style="width:90%;margin:0 auto"> <div class="detail table-detail">
<Row> <Row>
<Filed :span="8" :name="l('code')">{{formValidate.code}}</Filed> <Filed :span="8" :name="l('code')">{{formValidate.code}}</Filed>
<Filed :span="8" :name="l('creationTime')">{{formValidate.creationTime}}</Filed> <Filed :span="8" :name="l('creationTime')">{{formValidate.creationTime}}</Filed>
......
<template> <template>
<div style="padding:40px 0"> <div style="padding:30px 0">
<Detail :idVal="detailId" /> <Detail :idVal="detailId" />
<Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" /> <Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" />
<div class="footers" v-if="footerStatu === '2'" style="text-align:left;"> <div class="footers" v-if="footerStatu === '2'" style="text-align:left;">
......
<template> <template>
<div class="detail" style="width:90%;margin:0 auto"> <div class="detail table-detail">
<Row> <Row>
<Filed :span="8" :name="l('code')">{{formValidate.code}}</Filed> <Filed :span="8" :name="l('code')">{{formValidate.code}}</Filed>
<Filed :span="8" :name="l('creationTime')">{{formValidate.creationTime}}</Filed> <Filed :span="8" :name="l('creationTime')">{{formValidate.creationTime}}</Filed>
......
<template> <template>
<div style="padding:40px 0"> <div style="padding:30px 0">
<Detail :idVal="detailId" /> <Detail :idVal="detailId" />
<Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" /> <Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" />
<div class="footers" v-if="footerStatu === '2'" style="text-align:left;"> <div class="footers" v-if="footerStatu === '2'" style="text-align:left;">
......
<style lang="less" scope>
@import "../shen.less";
</style>
<template> <template>
<div class="new-detail"> <div class="new-detail">
<Row> <Row>
......
<template> <template>
<div style="padding:40px 0"> <div style="padding:30px 0">
<Detail :idVal="detailId" /> <Detail :idVal="detailId" />
<Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" /> <Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" />
<div class="footers" v-if="footerStatu === '2'" style="text-align:left;"> <div class="footers" v-if="footerStatu === '2'" style="text-align:left;">
......
<template> <template>
<div style="padding:40px 0"> <div style="padding:30px 0">
<Detail :idVal="detailId" /> <Detail :idVal="detailId" />
<Process ref="userProcess" :idVal="detailId" /> <Process ref="userProcess" :idVal="detailId" />
......
<template> <template>
<div style="padding:40px 0"> <div style="padding:30px 0">
<Detail :idVal="detailId" /> <Detail :idVal="detailId" />
<Process ref="userProcess" :idVal="detailId" style="width:80%"/> <Process ref="userProcess" :idVal="detailId" style="width:80%"/>
<div class="footers" v-if="footerStatu === '2'" style="text-align:left;"> <div class="footers" v-if="footerStatu === '2'" style="text-align:left;">
......
<template> <template>
<div class="detail" style="width:90%;margin:0 auto"> <div class="detail table-detail">
<Row> <Row>
<Filed :span="8" :name="l('documentCode')">{{processData.orderMaterial.code}}</Filed> <Filed :span="8" :name="l('documentCode')">{{processData.orderMaterial.code}}</Filed>
<Filed :span="8" :name="l('platesNum')">{{processData.orderMaterial.platesnum}}</Filed> <Filed :span="8" :name="l('platesNum')">{{processData.orderMaterial.platesnum}}</Filed>
......
<template> <template>
<div style="padding:40px 0"> <div style="padding:30px 0">
<Detail :idVal="detailId" /> <Detail :idVal="detailId" />
<Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj"/> <Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj"/>
<div class="footers" v-if="footerStatu === '2'"> <div class="footers" v-if="footerStatu === '2'">
......
<template> <template>
<div class="detail"style="width:90%;margin:0 auto" > <div class="detail table-detail">
<Row> <Row>
<Filed :span="12" :name="'工艺更改单'">{{results.changeorder_code}}</Filed> <Filed :span="12" :name="'工艺更改单'">{{results.changeorder_code}}</Filed>
<Filed :span="12" :name="'提出人'">{{results.propose_user_name}}</Filed> <Filed :span="12" :name="'提出人'">{{results.propose_user_name}}</Filed>
......
<template> <template>
<div style="padding:40px 0"> <div style="padding:30px 0">
<Detail :idVal="detailId" /> <Detail :idVal="detailId" />
<Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" /> <Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" />
<div class="footers" v-if="footerStatu === '2'" style="text-align:left;"> <div class="footers" v-if="footerStatu === '2'" style="text-align:left;">
......
<template> <template>
<div class="detail" style="width:90%;margin:0 auto"> <div class="detail table-detail">
<Row> <Row>
<!-- <Filed :span="8" :name="l('unqualifiedCode')">{{entity.unqualified_order_code}}</Filed> <!-- <Filed :span="8" :name="l('unqualifiedCode')">{{entity.unqualified_order_code}}</Filed>
<Filed :span="8" :name="l('department')">{{entity.department_name}}</Filed> <Filed :span="8" :name="l('department')">{{entity.department_name}}</Filed>
......
<template> <template>
<div style="padding:40px 0"> <div style="padding:30px 0">
<Detail :idVal="detailId" /> <Detail :idVal="detailId" />
<Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" @node-click="show"/> <Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" @node-click="show"/>
<div class="footers" v-if="footerStatu === '2'"> <div class="footers" v-if="footerStatu === '2'">
......
<template> <template>
<div class="detail" style="width:90%;margin:0 auto"> <div class="detail table-detail">
<Row> <Row>
<Filed :span="12" :name="'生产协调单'">{{results.technical_coordination_code}}</Filed> <Filed :span="12" :name="'生产协调单'">{{results.technical_coordination_code}}</Filed>
<Filed :span="12" :name="'任务号'">{{results.taskCode}}</Filed> <Filed :span="12" :name="'任务号'">{{results.taskCode}}</Filed>
......
<template> <template>
<div style="padding:40px 0"> <div style="padding:30px 0">
<Detail :idVal="detailId" /> <Detail :idVal="detailId" />
<Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" @node-click="show"/> <Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" @node-click="show"/>
<div class="footers" v-if="footerStatu === '2'" style="text-align:left;"> <div class="footers" v-if="footerStatu === '2'" style="text-align:left;">
......
<template> <template>
<div class="pdf-detail" style="width:85%;margin:0 auto"> <div class="pdf-detail table-detail">
<div class="cerioficate-pdf-detail"> <div class="cerioficate-pdf-detail">
<div class="bian-hao">产品合格证编号:{{results.serialNumber}}</div> <div class="bian-hao">产品合格证编号:{{results.serialNumber}}</div>
<div class="body-d"> <div class="body-d">
...@@ -120,7 +120,8 @@ export default { ...@@ -120,7 +120,8 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.pdf-detail { .pdf-detail {
margin: 0 20px 20px 20px; // margin: 0 20px 20px 20px;
background: #fff;
.pdf-out { .pdf-out {
text-align: right; text-align: right;
} }
......
<template> <template>
<div style="padding:40px 0"> <div style="padding:30px 0">
<Detail :idVal="detailId" /> <Detail :idVal="detailId" />
<Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" /> <Process ref="userProcess" :idVal="detailId" :resulstInfo="testObj" />
<div class="footers" v-if="footerStatu === '2'" style="text-align:left;"> <div class="footers" v-if="footerStatu === '2'" style="text-align:left;">
......
...@@ -4,10 +4,20 @@ ...@@ -4,10 +4,20 @@
background: #fff; background: #fff;
box-shadow: 0px 2px 6px rgba(0,0,0,0.16); box-shadow: 0px 2px 6px rgba(0,0,0,0.16);
} }
.table-detail{
padding: 20px 100px;
display: block;
width: 98%;
margin: 0 auto;
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.16);
.ivu-row .filed-col > .label{
background: #267feb1e;
}
}
.Design{ .Design{
margin:20px auto; margin:20px auto;
width: 98%; width: 98%;
padding: 20px; padding: 20px 100px;
background: #fff; background: #fff;
box-shadow: 0px 2px 6px rgba(0,0,0,0.16); box-shadow: 0px 2px 6px rgba(0,0,0,0.16);
.ivu-timeline-item-head{ .ivu-timeline-item-head{
......
...@@ -36,6 +36,12 @@ ...@@ -36,6 +36,12 @@
<Input v-model="entity.name" disabled></Input> <Input v-model="entity.name" disabled></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12">
<FormItem :label="l('version')" prop="version">
<Input v-model="entity.version"></Input>
</FormItem>
</Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('type')" prop="type"> <FormItem :label="l('type')" prop="type">
<!-- <Input v-model="entity.type"></Input> --> <!-- <Input v-model="entity.type"></Input> -->
...@@ -162,6 +168,8 @@ export default { ...@@ -162,6 +168,8 @@ export default {
if (e.id == val) { if (e.id == val) {
this.entity.name = e.name; this.entity.name = e.name;
this.entity.mmcode = e.code; this.entity.mmcode = e.code;
this.entity.drawingNo = e.drawingNo;
this.entity.version = e.version;
} }
}); });
}, },
......
<template> <template>
<div class="bom"> <div class="bom">
<div class="btn">
<Button type="primary" @click="add()" class="mb10">新增Bom</Button>
</div>
<div class="new-detail"> <div class="new-detail">
<Row> <Row>
<Filed :span="8" :name="l('levelId')+':'">{{entity.levelId}}</Filed> <Filed :span="8" :name="l('levelId')+':'">{{entity.levelId}}</Filed>
<Filed :span="8" :name="l('materialId')+':'">{{entity.materialId}}</Filed> <Filed :span="8" :name="l('mmcode')+':'">{{entity.mmcode}}</Filed>
<Filed :span="8" :name="l('drawingNo')+':'">{{entity.drawingNo}}</Filed> <Filed :span="8" :name="l('drawingNo')+':'">{{entity.drawingNo}}</Filed>
<Filed :span="8" :name="l('name')+':'">{{entity.name}}</Filed> <Filed :span="8" :name="l('name')+':'">{{entity.name}}</Filed>
<Filed :span="8" :name="l('madeCompany')+':'">{{entity.madeCompanyTitle}}</Filed> <Filed :span="8" :name="l('madeCompany')+':'">{{entity.madeCompanyTitle}}</Filed>
<Filed :span="8" :name="l('productUrl')+':'"> <Filed :span="8" :name="l('productUrl')+':'">
<a href="#" @click="seeImg(entity.productUrl)">查看图片</a> <a href="#" @click="seeImg(entity.productUrl)">查看图片</a>
</Filed> </Filed>
<div>
</div>
</Row> </Row>
</div> </div>
<TreeGrid :columns="columns" :items="treeData"></TreeGrid>
<Modal v-model="modal" :title="title" width="1200" footer-hide>
<component :is="detail" :eid="curId" @on-close="cancel" @on-ok="ok" />
</Modal>
</div> </div>
</template> </template>
<script> <script>
...@@ -23,13 +27,69 @@ import Api from "./api"; ...@@ -23,13 +27,69 @@ import Api from "./api";
export default { export default {
data() { data() {
return { return {
modal: false,
title: "新增",
detail: null,
curId: 0,
entity: {}, entity: {},
parms: { parms: {
app: "technology", app: "technology",
eid: "", eid: "",
name: "", name: "",
field: "" field: ""
},
treeData: [{ name: "112" }],
columns: [
{
key: "name",
title: this.l("name"),
align: "left",
high: true
},
{
key: "creationTime",
title: this.l("creationTime"),
align: "left",
easy: true,
high: true
},
{
title: "操作",
key: "id",
align: "left",
render: (h, params) => {
let actions = [
h(
"op",
{
attrs: { oprate: "add" },
on: { click: () => this.add(params.row) }
},
"新增"
),
h(
"op",
{
attrs: { oprate: "edit" },
on: { click: () => this.edit(params.row) }
},
"编辑"
),
h(
"op",
{
attrs: { oprate: "delete" },
on: { click: () => this.remove(params.row.id) }
},
"删除"
)
];
return h("div", { class: "action" }, actions);
}
} }
]
}; };
}, },
props: { props: {
...@@ -41,6 +101,47 @@ export default { ...@@ -41,6 +101,47 @@ export default {
} }
}, },
methods: { methods: {
// init() {
// Api.getpaged().then(r => {
// this.treeData = [];
// this.treeData = this.$u.toTree(
// r.result.items,
// 0,
// undefined,
// "parent_Id"
// );
// });
// },
add() {
this.curId = 0;
this.title = "新增";
this.detail = () => import("./bomAdd");
this.modal = true;
},
edit(id) {
this.curId = id;
this.title = "编辑";
this.detail = () => import("./bomEdit");
this.modal = true;
},
remove(row) {
this.$Modal.confirm({
title: "删除",
content: "<p>您确定要删除此物料吗?</p>",
onOk: () => {
// Api.delete(row.id).then(r => {
// if (r.success) {
// this.$refs.grid.load();
// this.$Message.success("删除成功");
// }
// });
},
onCancel: () => {
this.$Message.success("取消删除");
}
});
},
load(v) { load(v) {
Api.get({ id: v }).then(r => { Api.get({ id: v }).then(r => {
this.entity = r.result; this.entity = r.result;
...@@ -55,6 +156,15 @@ export default { ...@@ -55,6 +156,15 @@ export default {
this.$Message.error("暂无图片"); this.$Message.error("暂无图片");
} }
}, },
ok() {
// this.$refs.grid.load();
this.modal = false;
this.curId = 0;
},
cancel() {
this.curId = 0;
this.modal = false;
},
l(key) { l(key) {
key = "product_info" + "." + key; key = "product_info" + "." + key;
return this.$t(key); return this.$t(key);
...@@ -71,5 +181,11 @@ export default { ...@@ -71,5 +181,11 @@ export default {
</script> </script>
<style lang="less"> <style lang="less">
.bom { .bom {
.btn {
text-align: right;
}
.new-detail {
margin-bottom: 10px;
}
} }
</style> </style>
<template>
<Form ref="form" :model="entity" :rules="rules" :label-width="120">
<Row>
<Col :span="12">
<!-- <FormItem label="层级类型" prop="levelTitle">
<Input v-model="entity.levelTitle" ></Input>
</FormItem>-->
</Col>
<Col :span="12">
<FormItem :label="l('materialId')" prop="materialId">
<Select v-model="entity.materialId" filterable clearable @on-change="change">
<Option v-for="item in dataList" :value="item.id" :key="item.id">{{ item.code }}</Option>
</Select>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('drawingNo')" prop="drawingNo">
<Input v-model="entity.drawingNo"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('name')" prop="name">
<Input v-model="entity.name" disabled></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('count')" prop="count">
<Input v-model="entity.count"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('postion')" prop="postion">
<Input v-model="entity.postion"></Input>
</FormItem>
</Col>
</Row>
<FormItem>
<Button type="primary" @click="handleSubmit" :disabled="disabled">保存</Button>
<Button @click="handleClose" class="ml20">取消</Button>
</FormItem>
</Form>
</template>
<script>
import Api from "./api";
import service from "@/plugins/request";
export default {
name: "Add",
data() {
return {
disabled: false,
entity: {
upId: this.eid
},
dataList: [],
downUrl: fileUrlDown,
componaylist: [],
componaylist: [],
data2: [],
selectdata1: [],
rules: {
materialId: [{ required: true, message: "必填", trigger: "change" }]
},
parms: {
app: "technology",
eid: "",
name: "",
field: ""
},
img: ""
};
},
props: {
eid: Number
},
async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
},
created() {
this.getTree();
this.getMaterialList();
},
methods: {
getTree() {
var url = `${designUrl}/productlevel/getdepartmentstree`;
service.get(`${url}`).then(response => {
this.data2 = response.result;
});
},
getMaterialList() {
let data = {
conditions: []
};
Api.materiallist(data).then(r => {
this.dataList = r.result.filter(item => item.status == 3);
});
},
change(val) {
this.dataList.forEach(e => {
if (e.id == val) {
this.entity.name = e.name;
this.entity.mmcode = e.code;
this.entity.drawingNo = e.drawingNo;
}
});
},
handleSubmit() {
this.$refs.form.validate(v => {
if (v) {
this.disabled = true;
Api.create(this.entity)
.then(r => {
this.disabled = false;
if (r.success) {
this.$Message.success("保存成功");
this.$emit("on-ok");
} else {
this.$Message.error("保存失败");
}
})
.catch(err => {
this.disabled = false;
this.$Message.error("保存失败");
console.warn(err);
});
}
});
},
handleClose() {
this.$emit("on-close");
},
l(key) {
key = "product_info" + "." + key;
return this.$t(key);
}
},
watch: {
v() {
this.entity = this.$u.clone(this.v);
}
}
};
</script>
<style lang="less">
.ivu-layout-sider {
background: rgba(255, 255, 255, 1);
margin-right: 10px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
.add-list {
width: 100%;
height: 300px;
overflow: hidden;
}
}
</style>
\ No newline at end of file
<template>
<Form ref="form" :model="entity" :rules="rules" :label-width="120">
<Row>
<Col :span="12">
<!-- <FormItem label="层级类型" prop="levelTitle">
<Input v-model="entity.levelTitle" ></Input>
</FormItem>-->
</Col>
<Col :span="12">
<FormItem :label="l('materialId')" prop="materialId">
<Select v-model="entity.materialId" filterable clearable @on-change="change">
<Option v-for="item in dataList" :value="item.id" :key="item.id">{{ item.code }}</Option>
</Select>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('drawingNo')" prop="drawingNo">
<Input v-model="entity.drawingNo"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('name')" prop="name">
<Input v-model="entity.name" disabled></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('count')" prop="count">
<Input v-model="entity.count"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('postion')" prop="postion">
<Input v-model="entity.postion"></Input>
</FormItem>
</Col>
</Row>
<FormItem>
<Button type="primary" @click="handleSubmit" :disabled="disabled">保存</Button>
<Button @click="handleClose" class="ml20">取消</Button>
</FormItem>
</Form>
</template>
<script>
import Api from "./api";
import service from "@/plugins/request";
export default {
name: "Add",
data() {
return {
disabled: false,
entity: {
upId: this.eid
},
dataList: [],
downUrl: fileUrlDown,
componaylist: [],
componaylist: [],
data2: [],
selectdata1: [],
rules: {
materialId: [{ required: true, message: "必填", trigger: "change" }]
},
parms: {
app: "technology",
eid: "",
name: "",
field: ""
},
img: ""
};
},
props: {
eid: Number
},
async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
},
created() {
if (this.eid > 0) {
this.load(this.eid);
}
this.getMaterialList();
},
methods: {
load(v) {
Api.get({ id: v }).then(r => {
this.entity = r.result;
});
},
getMaterialList() {
let data = {
conditions: []
};
Api.materiallist(data).then(r => {
this.dataList = r.result.filter(item => item.status == 3);
});
},
change(val) {
this.dataList.forEach(e => {
if (e.id == val) {
this.entity.name = e.name;
this.entity.mmcode = e.code;
this.entity.drawingNo = e.drawingNo;
}
});
},
handleSubmit() {
this.$refs.form.validate(v => {
if (v) {
this.disabled = true;
Api.create(this.entity)
.then(r => {
this.disabled = false;
if (r.success) {
this.$Message.success("保存成功");
this.$emit("on-ok");
} else {
this.$Message.error("保存失败");
}
})
.catch(err => {
this.disabled = false;
this.$Message.error("保存失败");
console.warn(err);
});
}
});
},
handleClose() {
this.$emit("on-close");
},
l(key) {
key = "product_info" + "." + key;
return this.$t(key);
}
},
watch: {
v() {
this.entity = this.$u.clone(this.v);
}
}
};
</script>
<style lang="less">
.ivu-layout-sider {
background: rgba(255, 255, 255, 1);
margin-right: 10px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
.add-list {
width: 100%;
height: 300px;
overflow: hidden;
}
}
</style>
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="detail"> <div class="detail">
<Row> <Row>
<Filed :span="12" :name="l('levelId')">{{entity.levelId}}</Filed> <Filed :span="12" :name="l('levelId')">{{entity.levelId}}</Filed>
<Filed :span="12" :name="l('materialId')">{{entity.materialId}}</Filed> <Filed :span="12" :name="l('mmcode')">{{entity.mmcode}}</Filed>
<Filed :span="12" :name="l('drawingNo')">{{entity.drawingNo}}</Filed> <Filed :span="12" :name="l('drawingNo')">{{entity.drawingNo}}</Filed>
<Filed :span="12" :name="l('name')">{{entity.name}}</Filed> <Filed :span="12" :name="l('name')">{{entity.name}}</Filed>
<Filed :span="12" :name="l('madeCompany')">{{entity.madeCompanyTitle}}</Filed> <Filed :span="12" :name="l('madeCompany')">{{entity.madeCompanyTitle}}</Filed>
......
...@@ -42,6 +42,11 @@ ...@@ -42,6 +42,11 @@
<Input v-model="entity.name"></Input> <Input v-model="entity.name"></Input>
</FormItem> </FormItem>
</Col> </Col>
<Col :span="12">
<FormItem :label="l('version')" prop="version">
<Input v-model="entity.version"></Input>
</FormItem>
</Col>
<Col :span="12"> <Col :span="12">
<FormItem :label="l('type')" prop="type"> <FormItem :label="l('type')" prop="type">
<!-- <Input v-model="entity.type"></Input> --> <!-- <Input v-model="entity.type"></Input> -->
...@@ -140,6 +145,16 @@ export default { ...@@ -140,6 +145,16 @@ export default {
await store.dispatch("loadDictionary"); // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
methods: { methods: {
change(val) {
this.dataList.forEach(e => {
if (e.id == val) {
this.entity.name = e.name;
this.entity.mmcode = e.code;
this.entity.drawingNo = e.drawingNo;
this.entity.version = e.version;
}
});
},
getMaterialList() { getMaterialList() {
let data = { let data = {
conditions: [] conditions: []
......
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