From aec826efc678ca0f32282c26e3f65e9d60945069 Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Wed, 22 Sep 2021 13:58:32 +0800
Subject: [PATCH] tijiaozigongxu
---
hb_client/package.json | 2 +-
hb_client/src/router/index.js | 7 +
hb_client/src/views/mtm/step.vue | 4 +-
hb_client/src/views/sam/contract.vue | 6 +-
hb_client/src/views/sam/order.vue | 4 +
hb_client/src/views/sam/review.vue | 284 +++++++++++++++++++++++++++
hb_server/apps/mtm/serializers.py | 2 +-
7 files changed, 304 insertions(+), 5 deletions(-)
create mode 100644 hb_client/src/views/sam/review.vue
diff --git a/hb_client/package.json b/hb_client/package.json
index d8201b2..0a17f55 100644
--- a/hb_client/package.json
+++ b/hb_client/package.json
@@ -20,7 +20,7 @@
"axios": "^0.21.1",
"cache-loader": "^4.1.0",
"compression-webpack-plugin": "^5.0.1",
- "d3": "^5.16.0",
+ "d3": "^5.14.2",
"dagre-d3": "^0.6.4",
"element-ui": "^2.15.5",
"file-saver": "^2.0.2",
diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js
index 87508ea..9685b0e 100644
--- a/hb_client/src/router/index.js
+++ b/hb_client/src/router/index.js
@@ -176,6 +176,13 @@ export const asyncRoutes = [
meta: { title: '合同信息', icon: 'example', perms: ['index_manage'] }
}
,
+ {
+ path: 'review',
+ name: 'review',
+ component: () => import('@/views/sam/review'),
+ meta: { title: '合同评审', icon: 'example', perms: ['index_manage'] }
+ }
+ ,
{
path: 'order',
name: 'order',
diff --git a/hb_client/src/views/mtm/step.vue b/hb_client/src/views/mtm/step.vue
index d614d5d..48f3c4d 100644
--- a/hb_client/src/views/mtm/step.vue
+++ b/hb_client/src/views/mtm/step.vue
@@ -6,7 +6,7 @@
font-weight: 700;
">子工序列表
- 新增子工序
过程记录表
- 新增
{{ scope.row.number }}
-
+
{{ scope.row.amount }}
+
+ {{ scope.row.invoice }}
+
+
{{ scope.row.customer_.name }}
diff --git a/hb_client/src/views/sam/order.vue b/hb_client/src/views/sam/order.vue
index a316672..79e731b 100644
--- a/hb_client/src/views/sam/order.vue
+++ b/hb_client/src/views/sam/order.vue
@@ -53,6 +53,9 @@
{{ scope.row.product_.name }}
+
+
+ {{ scope.row.product_.specification }}
{{ scope.row.count }}
@@ -117,6 +120,7 @@
+
diff --git a/hb_client/src/views/sam/review.vue b/hb_client/src/views/sam/review.vue
new file mode 100644
index 0000000..abd14b4
--- /dev/null
+++ b/hb_client/src/views/sam/review.vue
@@ -0,0 +1,284 @@
+
+
+
+
+
+ 搜索
+ 重置
+
+
+ 新增客户
+
+
+
+
+
+
+ {{ scope.row.name }}
+
+
+
+ {{ scope.row.number }}
+
+
+ {{ scope.row.amount }}
+
+
+ {{ scope.row.invoice }}
+
+
+
+ {{ scope.row.customer_.name }}
+
+
+ {{ scope.row.sign_date }}
+
+
+ {{ scope.row.description }}
+
+
+ {{ scope.row.create_time }}
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 取消
+ 确认
+
+
+
+
+
diff --git a/hb_server/apps/mtm/serializers.py b/hb_server/apps/mtm/serializers.py
index 68b214b..004d3d3 100644
--- a/hb_server/apps/mtm/serializers.py
+++ b/hb_server/apps/mtm/serializers.py
@@ -25,7 +25,7 @@ class MaterialDetailSerializer(serializers.ModelSerializer):
class MaterialSimpleSerializer(serializers.ModelSerializer):
class Meta:
model = Material
- fields = ['id', 'name', 'number', 'unit']
+ fields = ['id', 'name', 'number', 'unit','specification']
class ProcessSerializer(serializers.ModelSerializer):
instruction_ = FileSimpleSerializer(source='instruction', read_only=True)