diff --git a/hb_client/src/api/wpm.js b/hb_client/src/api/wpm.js
index a6f998a..7e3462d 100644
--- a/hb_client/src/api/wpm.js
+++ b/hb_client/src/api/wpm.js
@@ -58,6 +58,15 @@ export function wproductTest(data) {
data
})
}
+//半成品复检
+export function wproductRetest(data) {
+ return request({
+ url: '/wpm/wproduct/retest/',
+ method: 'post',
+ data
+ })
+}
+
//半成品入库
diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js
index 2212e45..b739f6c 100644
--- a/hb_client/src/router/index.js
+++ b/hb_client/src/router/index.js
@@ -103,6 +103,7 @@ export const asyncRoutes = [
name: 'material',
component: () => import('@/views/mtm/material'),
meta: { title: '物料清单', icon: 'example', perms: ['mtm_material'] }
+
}
,
{
@@ -337,6 +338,12 @@ export const asyncRoutes = [
component: () => import('@/views/inm/wproduct'),
meta: { title: '半成品', icon: 'example', perms: ['index_manage'] }
},
+ {
+ path: 'product',
+ name: 'product',
+ component: () => import('@/views/inm/product'),
+ meta: { title: '成品', icon: 'example', perms: ['index_manage'] }
+ },
]
},
diff --git a/hb_client/src/views/inm/inventory.vue b/hb_client/src/views/inm/inventory.vue
index a221592..668a027 100644
--- a/hb_client/src/views/inm/inventory.vue
+++ b/hb_client/src/views/inm/inventory.vue
@@ -49,9 +49,13 @@
{{ scope.row.material_.unit }}
-
+
{{ scope.row.material_.specification }}
+
+ {{options_[scope.row.material_.type]}}
+
+
{{ scope.row.count }}
@@ -90,7 +94,16 @@ export default {
page: 1,
page_size: 20,
},
-
+ options_:{
+
+ "1":'成品',
+ "2":'半成品',
+ "3":'主要原料',
+ "4":'辅助材料',
+ "5":'加工工具',
+ "6":'辅助工装',
+
+ },
listLoading: true,
dialogVisible: false,
dialogType: "new",
diff --git a/hb_client/src/views/inm/materialbatch.vue b/hb_client/src/views/inm/materialbatch.vue
index a4f883b..5272e5b 100644
--- a/hb_client/src/views/inm/materialbatch.vue
+++ b/hb_client/src/views/inm/materialbatch.vue
@@ -44,7 +44,10 @@
{{ scope.row.material_.name }}
-
+
+ {{ scope.row.material_.specification }}
+
+
{{
scope.row.material_.number
diff --git a/hb_client/src/views/inm/product.vue b/hb_client/src/views/inm/product.vue
new file mode 100644
index 0000000..2af5745
--- /dev/null
+++ b/hb_client/src/views/inm/product.vue
@@ -0,0 +1,89 @@
+
+
+
+
+
+
+
+ {{ scope.row.number }}
+
+
+
+ {{ scope.row.batch }}
+
+
+ {{ scope.row.material_.name }}
+
+
+
+ {{ scope.row.warehouse_.name }}
+
+
+
+
+
+
+
+
+
+
diff --git a/hb_client/src/views/mtm/material.vue b/hb_client/src/views/mtm/material.vue
index cf40afa..5cbe25d 100644
--- a/hb_client/src/views/mtm/material.vue
+++ b/hb_client/src/views/mtm/material.vue
@@ -1,13 +1,15 @@
+
+
新增物料
+
+
+
+
+
+
+
+
{{ scope.row.specification }}
+
+ {{ scope.row.piece_count }}
+
{{ scope.row.unit }}
@@ -144,7 +157,11 @@
-
+
+
+
+
+
@@ -230,7 +247,8 @@ export default {
page: 1,
page_size: 20,
},
-
+ activeName:"",
+
listLoading: true,
dialogVisible: false,
dialogType: "new",
@@ -250,8 +268,18 @@ export default {
},
methods: {
checkPermission,
- //物料列表
- getList() {
+ //选项卡切换
+ handleClick(tab) {
+ this.listLoading = true;
+ this.listQuery.type=tab.name;
+ getMaterialList(this.listQuery).then((response) => {
+ if (response.data) {
+ this.materialList = response.data;
+ }
+ this.listLoading = false;
+ });
+ },
+ getList() {
this.listLoading = true;
getMaterialList(this.listQuery).then((response) => {
if (response.data) {
@@ -260,10 +288,6 @@ export default {
this.listLoading = false;
});
},
- filterTag(value, row) {
- return row.type === value;
-
- },
//工序清单
getProcessList() {
getProcessList().then((res) => {
@@ -282,6 +306,7 @@ export default {
this.getList();
},
resetFilter() {
+ this.activeName="";
this.listQuery = {
page: 1,
page_size: 20,
diff --git a/hb_client/src/views/mtm/process.vue b/hb_client/src/views/mtm/process.vue
index fba7a12..f5f2c07 100644
--- a/hb_client/src/views/mtm/process.vue
+++ b/hb_client/src/views/mtm/process.vue
@@ -25,6 +25,9 @@
{{ scope.row.name }}
+
+
+ {{ type_[scope.row.type] }}
{{ scope.row.workshop_.name }}
@@ -88,6 +91,16 @@
+
+
+
+
+
+
@@ -149,7 +162,22 @@ export default {
page: 1,
page_size: 20,
},
-
+ type_:{
+ 10:'特殊',
+ 20:'关键',
+ 30:'普通',
+
+ },
+ option: [{
+ value: 10,
+ label: '特殊'
+ }, {
+ value: 20,
+ label: '关键'
+ }, {
+ value: 30,
+ label: '普通'
+ }],
listLoading: true,
dialogVisible: false,
dialogType: "new",
diff --git a/hb_client/src/views/mtm/productprocess.vue b/hb_client/src/views/mtm/productprocess.vue
index 42b75b2..f874189 100644
--- a/hb_client/src/views/mtm/productprocess.vue
+++ b/hb_client/src/views/mtm/productprocess.vue
@@ -2,7 +2,7 @@
-
+
-
- {{ scope.row.number }}-{{ scope.row.name }}
+
+
+ {{ scope.row.number }}
+
+
+ {{ scope.row.name }}
+
+
+
+ {{ scope.row.specification }}
+
@@ -54,7 +63,7 @@
-
+
-
+
{{ scope.row.name }}
@@ -38,9 +38,7 @@
-
- {{ scope.row.sort }}
-
+
-
+
-
+
{{ scope.row.name }}
+
+
+
+ 启用
+ 禁用
+
+
+
+ {{ scope.row.number }}
+
+
+
+
+
+
+
+
-
+
+
{{ scope.row.number }}
-
+
{{ scope.row.order_.number }}
{{ scope.row.order_.contract_.number }}
-
- {{ scope.row.order_.customer_.name }}
-
+
- {{ scope.row.product_.number }}-{{ scope.row.product_.name }}
+ {{ scope.row.product_.name }}
{{ scope.row.product_.specification }}
@@ -107,10 +105,14 @@
{{ scope.row.number }}
-
+
{{ scope.row.customer_.name }}
-
+
+
+ {{ scope.row.contract_.number }}
+
+
{{ scope.row.contract_.name }}
@@ -119,7 +121,7 @@
{{ scope.row.product_.specification }}
-
+
{{ scope.row.count }}
diff --git a/hb_client/src/views/pm/resources.vue b/hb_client/src/views/pm/resources.vue
index 34fc8bd..aec583f 100644
--- a/hb_client/src/views/pm/resources.vue
+++ b/hb_client/src/views/pm/resources.vue
@@ -33,7 +33,7 @@
{{ scope.row.product_.name }}
-
+
{{ scope.row.count }}
@@ -43,10 +43,13 @@
{{ scope.row.product_.specification }}
-
+
{{ scope.row.customer_.name }}
-
+
+ {{ scope.row.contract_.number }}
+
+
{{ scope.row.contract_.name }}
diff --git a/hb_client/src/views/pm/work.vue b/hb_client/src/views/pm/work.vue
index 860274e..6e2ef53 100644
--- a/hb_client/src/views/pm/work.vue
+++ b/hb_client/src/views/pm/work.vue
@@ -8,22 +8,27 @@
-
+
+
+ {{ scope.row.product_.name }}
+
+
+ {{ scope.row.product_.specification }}
+
{{ scope.row.subproduction_.name }}
-
- {{ scope.row.workshop_.name }}
-
+
{{ scope.row.process_.name }}
@@ -40,7 +45,10 @@
-
+
+ {{ scope.row.workshop_.name }}
+
+
{{ scope.row.main_count }}
@@ -61,6 +69,7 @@
align="center"
label="操作"
width="100px"
+
>
{{ scope.row.contract_.name }}
-
+
{{ scope.row.product_.name }}
{{ scope.row.product_.specification }}
-
+
{{ scope.row.count }}
diff --git a/hb_client/src/views/wpm/need.vue b/hb_client/src/views/wpm/need.vue
index 1c7bea1..c1ac98b 100644
--- a/hb_client/src/views/wpm/need.vue
+++ b/hb_client/src/views/wpm/need.vue
@@ -49,7 +49,55 @@
/>
-
+
+
+
+
+
+ {{ scope.row.material_.name }}
+
+
+
+ {{ scope.row.number }}
+
+
+
+ {{ actstate_[scope.row.act_state] }}
+
+
+
+
+ {{ scope.row.step_.name }}
+
+
+
+
+ 检验
+
+
+
+
+
+
+
{
if (response.data) {
this.wproductList = response.data;
@@ -365,9 +424,21 @@ export default {
this.listLoading = false;
});
},
+ //复检半成品列表
+ getList2() {
+
+ this.listQuery2.act_state = 6;
+ getwproductList(this.listQuery2).then((response) => {
+ if (response.data) {
+ this.wproductList2 = response.data;
+ }
+
+ });
+ },
+ //已合格半成品
getList1() {
- this.listQuery1.act_state = 3;
+ this.listQuery1.act_state = 30;
getwproductList(this.listQuery1).then((response) => {
if (response.data) {
this.wproductList1 = response.data;
@@ -389,6 +460,7 @@ export default {
//调该物料对应的检查表
this.outerVisible = true;
this.wproduct=scope.row.id;//半成品ID
+ this.wproductactstate=scope.row.act_state;//半成品状态
this.listQueryrecordform.material = scope.row.material;//
this.listQueryrecordform.type = 2;
this.recordform="";
@@ -427,14 +499,22 @@ export default {
this.testrecord.record_data = _this.field;//检查项列表
this.testrecord.is_testok = this.is_testok;//检查表检查结果
this.testrecord.wproduct = this.wproduct;//半成品ID
- wproductTest(this.testrecord).then((res) => {
+
+
+
+ wproductTest(this.testrecord).then((res) => {
if (res.code >= 200) {
this.innerVisible = false;
this.outerVisible = false;
this.getList();
this.getList1();
+ this.getList2();
}
});
+
+
+
+
},
//半成品入库
handlePutin(scope){
diff --git a/hb_client/src/views/wpm/operation.vue b/hb_client/src/views/wpm/operation.vue
index 1497aed..881d642 100644
--- a/hb_client/src/views/wpm/operation.vue
+++ b/hb_client/src/views/wpm/operation.vue
@@ -36,10 +36,10 @@
>
-
+
{{ scope.row.record_count }}
-
+
{{ scope.row.wproduct_count }}
diff --git a/hb_client/src/views/wpm/operationdo.vue b/hb_client/src/views/wpm/operationdo.vue
index 9b28fe9..5f5593c 100644
--- a/hb_client/src/views/wpm/operationdo.vue
+++ b/hb_client/src/views/wpm/operationdo.vue
@@ -74,9 +74,9 @@
label="子计划编号"
>
-
+
-
+
@@ -127,7 +127,7 @@
- 自定义表格
+ 生产记录表
-
+
diff --git a/hb_client/src/views/wpm/worktask.vue b/hb_client/src/views/wpm/worktask.vue
index 057c4fc..4cb2b8b 100644
--- a/hb_client/src/views/wpm/worktask.vue
+++ b/hb_client/src/views/wpm/worktask.vue
@@ -19,7 +19,7 @@
>
-
+
{{
scope.row.number
}}
@@ -141,11 +141,11 @@
{{scope.row.subproduction_plan}}
-
+
{{ scope.row.number }}
-
+
{{
scope.row.material_.name
}}
@@ -155,6 +155,11 @@
{{
scope.row.step_.name
}}
+
+
+ {{
+ actstate_[scope.row.act_state]
+ }}
@@ -265,12 +270,12 @@
-
+
{{ scope.row.number }}
-
+
{{ scope.row.material_.name }}
@@ -380,14 +385,14 @@
>
-
+
{{ scope.row.number }}
{{ scope.row.batch }}
-
+
{{ scope.row.material_.name }}
@@ -687,6 +692,15 @@ export default {
needwl: "",
showPrise: false,
showPrise1: false,
+ actstate_: {
+ 6: "待复检",
+ 10: "生产中",
+ 20: "待检验",
+ 30: "已合格",
+ 40: "库存中",
+ 50: "不合格",
+ 60: "待成品检验",
+ },
state_: {
0: "制定中",
1: "已下达",
@@ -937,7 +951,7 @@ handlepick(scope){
handleReceive(scope){
this.dialogTableVisiblepicks=true;
this.bcpxlID=scope.row.id;
- getwproductList({material:scope.row.material,act_state:3,page:0}).then((res) => {
+ getwproductList({material:scope.row.material,act_state:30,page:0}).then((res) => {
if (res.code >= 200) {
this.wproductslist = res.data;
}