-
-
-
-
+
+
-
+
-
+
+
+
@@ -305,15 +320,9 @@
>
-
-
-
-
+
+
-
+
+
+
@@ -507,11 +522,12 @@
import { getMaterialList,getMaterial,getInputmaterialList,createInputmaterial,updateInputmaterial
,deleteInputmaterial,getOutputmaterialList,createOutputmaterial,updateOutputmaterial,deleteOutputmaterial,
getUsedstepList,createUsedstep,deleteUsedstep,getStepList,gettechdocList,createtechdoc,updatetechdoc,deletetechdoc
-,getsubproducationList,createsubproducation,updatesubproducation,deletesubproducation } from "@/api/mtm";
+,getsubproducationList,createsubproducation,updatesubproducation,deletesubproducation,getProcessList } from "@/api/mtm";
import { quillEditor } from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
+
import { upUrl, upHeaders } from "@/api/file";
import checkPermission from "@/utils/permission";
import { genTree } from "@/utils";
@@ -529,7 +545,7 @@ const defaulttechdoc = {
};
const defaultsubproducation = {
-
+
};
export default {
@@ -541,6 +557,7 @@ export default {
subproducationData:"",
inputtableData:"",
editorOption: {} ,
+ processOptions:[],
techdoc: defaulttechdoc,
subproducation:defaultsubproducation,
inputmaterial: defaultinputmaterial,
@@ -625,7 +642,12 @@ export default {
this.listLoading = false;
});
},
-
+ //工序清单
+ getProcessList() {
+ getProcessList().then((res) => {
+ this.processOptions = genTree(res.data.results);
+ });
+ },
//获取产品,工艺
getMaterial(){
getMaterial(this.product).then((response) => {
@@ -639,11 +661,14 @@ export default {
handleCurrentChange(row){
this.product=row.id;
this.getMaterial();
+ this.getProcessList();
this.getsubproducationList();
+
},
//点击产品分解弹出输入、输出物料,子工序,技术文件
handlespChange(row){
this.subproduction = row.id;
+ this.processes = row.process;
this.getmaterialList();//物料列表
this.getInputmaterialLists();//输入物料
@@ -911,7 +936,7 @@ export default {
},
getstepList() {
-
+ this.listQuerystep.process=this.processes;
getStepList(this.listQuerystep).then((response) => {
if (response.data) {
this.stepoptions = genTree(response.data);
@@ -1071,3 +1096,4 @@ export default {
},
};
+
diff --git a/hb_client/src/views/pm/plan.vue b/hb_client/src/views/pm/plan.vue
index 98a559d..2f2fa4d 100644
--- a/hb_client/src/views/pm/plan.vue
+++ b/hb_client/src/views/pm/plan.vue
@@ -159,7 +159,7 @@
-
+
diff --git a/hb_client/src/views/pm/resources.vue b/hb_client/src/views/pm/resources.vue
index 21af9ad..ce4beb9 100644
--- a/hb_client/src/views/pm/resources.vue
+++ b/hb_client/src/views/pm/resources.vue
@@ -7,60 +7,60 @@
合同订单列表
+ 计算物料
+ @selection-change="handleSelectionChange">
+
+
{{ scope.row.number }}
+
+
+ {{ scope.row.product_.name }}
+
+
+
+ {{ scope.row.count }}
+
+
+ {{ scope.row.planed_count }}
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.product_.specification }}
+
{{ scope.row.customer_.name }}
{{ scope.row.contract_.name }}
-
- {{ scope.row.product_.name }}
-
-
- {{ scope.row.product_.specification }}
-
-
- {{ scope.row.count }}
-
-
- {{ scope.row.planed_count }}
-
-
{{ scope.row.delivery_date }}
{{ scope.row.create_time }}
-
-
-
- 排产
-
-
-
+
-
+
+ {{ scope.row.name }}
+
+
+ {{options_[scope.row.type]}}
+
+
{{ scope.row.number }}
-
- {{ scope.row.customer_.name }}
-
-
- {{ scope.row.contract_.name }}
-
-
- {{ scope.row.product_.name }}
-
-
- {{ scope.row.product_.specification }}
-
-
+
{{ scope.row.count }}
-
- {{ scope.row.planed_count }}
+
+ {{ scope.row.inv_count }}
-
- {{ scope.row.delivery_date }}
-
-
- {{ scope.row.create_time }}
-
-
-
-
- 排产
-
-
-
+
-
+
@@ -154,59 +121,30 @@
+
-
- {{ scope.row.number }}
+
+ {{ scope.row.name }}
-
- {{ scope.row.customer_.name }}
+
+ {{state_[scope.row.state]}}
-
- {{ scope.row.contract_.name }}
+
+ {{scope.row.number}}
-
- {{ scope.row.product_.name }}
-
-
- {{ scope.row.product_.specification }}
-
-
- {{ scope.row.count }}
-
-
- {{ scope.row.planed_count }}
+
+ {{scope.row.model}}
-
- {{ scope.row.delivery_date }}
-
-
- {{ scope.row.create_time }}
-
-
-
-
- 排产
-
-
-
+