From 4e0d5f4f2e4d0935a6f4cc1cf39504b9df2bd424 Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Tue, 16 Nov 2021 10:38:17 +0800
Subject: [PATCH] guize
---
hb_client/src/router/index.js | 2 +-
hb_client/src/views/em/detection.vue | 9 +-
hb_client/src/views/em/equipment.vue | 9 +-
hb_client/src/views/em/record.vue | 9 +-
hb_client/src/views/inm/fifo.vue | 9 +-
hb_client/src/views/inm/warehouse.vue | 9 +-
hb_client/src/views/mtm/material.vue | 9 +-
hb_client/src/views/mtm/materialdo.vue | 974 ++++++++++++++-----------
hb_client/src/views/pm/plan.vue | 23 +-
hb_client/src/views/pm/resources.vue | 7 +-
hb_client/src/views/sam/contract.vue | 9 +-
hb_client/src/views/sam/customer.vue | 9 +-
hb_client/src/views/sam/order.vue | 9 +-
hb_client/src/views/sam/review.vue | 9 +-
hb_client/src/views/wpm/need.vue | 61 +-
hb_client/src/views/wpm/worktask.vue | 13 +-
16 files changed, 643 insertions(+), 527 deletions(-)
diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js
index 1003fbd..cbf1edd 100644
--- a/hb_client/src/router/index.js
+++ b/hb_client/src/router/index.js
@@ -189,7 +189,7 @@ export const asyncRoutes = [
path: 'need/:id',
name: 'need',
component: () => import('@/views/wpm/need'),
- meta: { title: '检测项目', icon: 'example', perms: ['index_manage'] }
+ meta: { title: '半成品检验', icon: 'example', perms: ['index_manage'] }
}
]
},
diff --git a/hb_client/src/views/em/detection.vue b/hb_client/src/views/em/detection.vue
index 3838c41..36ce520 100644
--- a/hb_client/src/views/em/detection.vue
+++ b/hb_client/src/views/em/detection.vue
@@ -2,6 +2,9 @@
+ 新增设备
重置
-
- 新增设备
-
+
+ 新增设备
重置
-
- 新增设备
-
+
+ 新增校准或检定
重置
-
- 新增校准或检定
-
+
+
新增出入库记录
-
- 新增出入库记录
-
+
+ 新增仓库
重置
-
- 新增仓库
-
+
+ 新增物料
重置
-
- 新增物料
-
+
-
-
-
+
+
- 物料检验记录表
+ 物料检验记录表
新增
+ >新增
{{ scope.row.name }}
-
+
查看
+ >查看
编辑
+ >编辑
删除
+ >删除
@@ -57,233 +57,373 @@
label-width="80px"
label-position="right"
>
-
-
-
-
-
- 取消
- 确认
+ 取消
+ 确认
-
-
-
-
+ :title="tableForm.name"
+ >
+
+
+
+
-
-
+
+
-
-
+
+
-
+
-
+
-
-
+
+
+ :value="item1"
+ >
-
-
+
+
+ :value="item1"
+ >
-
-
+
+
-
-
+
+
- 记录字段
+ 记录字段
- 新增
+ 新增
-
+
- {{ scope.row.field_name }}
-
-
-
- {{ options_[scope.row.field_type] }}
+ {{
+ scope.row.field_name
+ }}
-
+
+ {{
+ options_[scope.row.field_type]
+ }}
+
- {{ scope.row.field_key }}
+ {{
+ scope.row.field_key
+ }}
-
- {{ scope.row.high_limit }}
+
+ {{
+ scope.row.high_limit
+ }}
-
- {{ highoptionss_[scope.row.high_rule] }}
+
+ {{
+ highoptionss_[scope.row.high_rule]
+ }}
-
- {{ scope.row.low_limit }}
+
+ {{
+ scope.row.low_limit
+ }}
-
- {{ lowoptionss_[scope.row.low_rule] }}
-
-
+
- 是
- 否
-
+ {{ lowoptionss_[scope.row.low_rule] }}
-
-
-
-
+
+ 是
+ 否
+
+
+
+
编辑编辑
删除删除
-
-
-
+
+
-
+
+ :value="item.value"
+ >
-
+
-
-
+
+
- 添加
+ 添加
-
+
-
+
-
-
+
+
+
-
+
-
-
-
+
+
+
+
+
+
+
+
-
+
- 取消
- 确认
+ 取消
+ 确认
@@ -294,329 +434,329 @@
diff --git a/hb_client/src/views/pm/plan.vue b/hb_client/src/views/pm/plan.vue
index b581a2e..7fb0a6f 100644
--- a/hb_client/src/views/pm/plan.vue
+++ b/hb_client/src/views/pm/plan.vue
@@ -274,7 +274,9 @@ export default {
},
handleclick(scope){
this.orderID = scope.row.id;
-
+ this.countsx = scope.row.count;
+ this.planed_count = scope.row.planed_count;
+ this.delivery_date = scope.row.delivery_date;
this.dialogVisible = true;
this.$nextTick(() => {
this.$refs["Form"].clearValidate();
@@ -284,9 +286,18 @@ export default {
async confirm(form) {
this.orderplan.start_date = this.value1[0];
- this.orderplan.end_date = this.value1[1];
+
+ if( this.delivery_date>=this.value1[1])
+ {
+ this.orderplan.end_date = this.value1[1];
+ }
+ else{
+ this.$message.error("计划完成时间超过订单交付日期,请从新选择日期!");
+ }
+
this.orderplan.order = this.orderID
- createProductionplan(this.orderplan).then((res) => {
+ if( this.orderplan.count<=(this.countsx-this.planed_count)){
+ createProductionplan(this.orderplan).then((res) => {
if (res.code >= 200) {
this.getorderList();
this.getplanList();
@@ -294,6 +305,12 @@ export default {
this.$message.success("成功");
}
});
+ }
+ else
+ {
+ this.$message.error("排产数超过所需数,请合理排产!");
+ }
+
},
handleWork(scope)
{
diff --git a/hb_client/src/views/pm/resources.vue b/hb_client/src/views/pm/resources.vue
index d5f6dd7..34fc8bd 100644
--- a/hb_client/src/views/pm/resources.vue
+++ b/hb_client/src/views/pm/resources.vue
@@ -90,6 +90,7 @@
fit
stripe
style="width: 100%"
+ height="320"
>
@@ -130,7 +131,7 @@
fit
stripe
style="width: 100%"
-
+ height="300"
>
@@ -151,8 +152,8 @@
+ 新增合同
重置
-
- 新增合同
-
+
+ 新增客户
重置
-
- 新增客户
-
+
+ 新增订单
重置
-
- 新增订单
-
+
+ 新增客户
重置
-
- 新增客户
-
+
重置
-
- 新增项目
-
+
-
- {{ scope.row.name }}
+
+ {{ scope.row.m_state_.name }}
-
- {{ scope.row.term_number }}
-
-
- {{ scope.row.standard_.name }}
-
-
- {{
- scope.row.standard_.number
- }}
-
-
-
- {{ scope.row.create_time }}
+
+ {{ scope.row.m_state_.number }}
+
编辑
- 删除检验
+