Commit dd804cc7 authored by 仇晓婷's avatar 仇晓婷

产品

parent 14cfad59
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
</template> </template>
<script> <script>
import Api from "./api"; import Api from "./api";
import service from "@/plugins/request";
export default { export default {
name: "Add", name: "Add",
data() { data() {
...@@ -140,20 +140,18 @@ export default { ...@@ -140,20 +140,18 @@ export default {
await store.dispatch("loadDictionary"); // 加载数据字典 await store.dispatch("loadDictionary"); // 加载数据字典
}, },
created() { created() {
this.getTree(); this.treeCompany();
this.parms.eid = this.$u.guid(); this.parms.eid = this.$u.guid();
this.entity.levelId = this.parents.id; this.entity.levelId = this.parents.id;
}, },
methods: { methods: {
getTree() { treeCompany() {
var url = `${designUrl}/productlevel/getdepartmentstree`; Api.getdepartmentstree().then(response => {
service.get(`${url}`).then(response => { this.data2 = response.result;
this.data2 = response.result; //主承制单位
}); });
}, },
change(e) { change(e) {
// console.log(e); // console.log(e);
this.entity.name = e.name; this.entity.name = e.name;
this.entity.mmcode = e.mmcode; this.entity.mmcode = e.mmcode;
this.entity.drawingNo = e.drawingNo; this.entity.drawingNo = e.drawingNo;
......
...@@ -20,10 +20,13 @@ export default { ...@@ -20,10 +20,13 @@ export default {
return Api.post(`${technologyUrl}productinfo/batchdelete`,params); return Api.post(`${technologyUrl}productinfo/batchdelete`,params);
}, },
materiallist(params){ materiallist(params){
return Api.post(`${systemUrl}/material/materiallist`,params);//物料 return Api.post(`${systemUrl}/material/materiallist`,params);//物料
}, },
alltree(params){ alltree(params){
return Api.post(`${technologyUrl}productinfo/alltree`,params); //bom树 return Api.post(`${technologyUrl}productinfo/alltree`,params); //bom树
}, },
getdepartmentstree(params){
return Api.get(`${technologyUrl}productlevel/getdepartmentstree`,params);//主承制单位
},
} }
\ No newline at end of file
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
</template> </template>
<script> <script>
import Api from "./api"; import Api from "./api";
import service from "@/plugins/request";
export default { export default {
name: "Edit", name: "Edit",
data() { data() {
...@@ -167,8 +167,7 @@ export default { ...@@ -167,8 +167,7 @@ export default {
this.entity.levelTitle = listName.join(" / "); this.entity.levelTitle = listName.join(" / ");
}, },
treeCompany() { treeCompany() {
var url = `${designUrl}/productlevel/getdepartmentstree`; Api.getdepartmentstree().then(response => {
service.get(`${url}`).then(response => {
this.data2 = response.result; this.data2 = response.result;
}); });
}, },
......
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