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

产品

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