From 1ca3522153c8289b27a830831b06489f39bdcde5 Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Wed, 22 Sep 2021 10:05:02 +0800
Subject: [PATCH] xiugai
---
hb_client/package.json | 1 +
hb_client/src/views/mtm/productprocess.vue | 25 ++++++++++++-------
hb_client/src/views/sam/contract.vue | 4 ++-
hb_server/apps/mtm/views.py | 4 +--
.../sam/migrations/0003_contract_invoice.py | 18 +++++++++++++
hb_server/apps/sam/models.py | 1 +
6 files changed, 41 insertions(+), 12 deletions(-)
create mode 100644 hb_server/apps/sam/migrations/0003_contract_invoice.py
diff --git a/hb_client/package.json b/hb_client/package.json
index 7cf7fbf..44c26e7 100644
--- a/hb_client/package.json
+++ b/hb_client/package.json
@@ -29,6 +29,7 @@
"path-to-regexp": "^6.2.0",
"vue": "^2.6.14",
"vue-json-editor": "^1.4.3",
+ "vue-quill-editor": "^3.0.6",
"vue-router": "^3.5.2",
"vuex": "^3.6.2",
"webpack-dev-server": "^4.2.0",
diff --git a/hb_client/src/views/mtm/productprocess.vue b/hb_client/src/views/mtm/productprocess.vue
index e810968..29afc03 100644
--- a/hb_client/src/views/mtm/productprocess.vue
+++ b/hb_client/src/views/mtm/productprocess.vue
@@ -386,12 +386,15 @@
>
-
+
-
-
-
+
+
+
+
+
+
{
+ getMaterialList({pageoff:true}).then((response) => {
if (response.data) {
- this.materialoptions = genTree(response.data.results);
+ this.materialoptions = genTree(response.data);
}
this.listLoading = false;
});
@@ -546,6 +553,7 @@ export default {
{
this.process = id;
// alert(this.process)
+ this.getmaterialList();//物料列表
this.getInputmaterialLists();//输入物料
this.getOutputmaterialLists();//输出物料
@@ -564,7 +572,6 @@ export default {
this.listQueryinput.process=this.process;
this.listQueryinput.product=this.product
- //this.listQueryinput.page=0;
getInputmaterialList(this.listQueryinput).then((response) => {
if (response.data) {
diff --git a/hb_client/src/views/sam/contract.vue b/hb_client/src/views/sam/contract.vue
index a268f51..254bfad 100644
--- a/hb_client/src/views/sam/contract.vue
+++ b/hb_client/src/views/sam/contract.vue
@@ -112,7 +112,9 @@
-
+
+
+