From c5703b4b88a580f3eac41cc6572eb320a7ae34f0 Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 3 Mar 2023 10:06:29 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E6=96=99=E4=BD=8D=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/storageBox.vue | 23 ++++++++--- .../modules/pms/materialStorageQty/index.vue | 41 ++++++++++--------- src/views/modules/pms/testingStep/config.js | 2 +- 3 files changed, 41 insertions(+), 25 deletions(-) diff --git a/src/views/modules/pms/materialStorageQty/components/storageBox.vue b/src/views/modules/pms/materialStorageQty/components/storageBox.vue index 4e39dd0..0dafdc9 100644 --- a/src/views/modules/pms/materialStorageQty/components/storageBox.vue +++ b/src/views/modules/pms/materialStorageQty/components/storageBox.vue @@ -11,7 +11,13 @@
-
+
+ {{ computedRatio + '%' }} +
@@ -56,8 +62,12 @@ export default { }, unitValue: { type: String, - default: null - } + default: null, + }, + ratio: { + type: Number, + default: 0.0, + }, }, data() { return { @@ -66,9 +76,12 @@ export default { }, computed: { computedUnit() { - if (!this.unitValue) return '存量' - return this.unitList(this.unitValue)+' 存量' + if (!this.unitValue) return "存量"; + return this.unitList(this.unitValue) + " 存量"; }, + computedRatio() { + return this.ratio ? this.ratio.toFixed(2) * 100 : 0 + } }, created() {}, mounted() {}, diff --git a/src/views/modules/pms/materialStorageQty/index.vue b/src/views/modules/pms/materialStorageQty/index.vue index 6e01f86..b8e0af8 100644 --- a/src/views/modules/pms/materialStorageQty/index.vue +++ b/src/views/modules/pms/materialStorageQty/index.vue @@ -7,8 +7,8 @@

-

+ :ratio="st.ratio" + />
-
-

+
+

- 中间仓 + 中间仓

-
+ :ratio="st.ratio" + />
-
-

+
+

- 未知仓 -

-
- +
+
diff --git a/src/views/modules/pms/testingStep/config.js b/src/views/modules/pms/testingStep/config.js index aa6bfae..8dca8e0 100644 --- a/src/views/modules/pms/testingStep/config.js +++ b/src/views/modules/pms/testingStep/config.js @@ -69,7 +69,7 @@ export default function () { const dialogConfigs = { extraIds: { wsId: 4 }, // 工艺管理里面的相关模块的 dialogWithMenu 需要额外的工序 id - menu: [{ name: "压制工艺", key: 'info' }, { name: "工艺参数", key: 'attr', onlyEditMode: true }], + menu: [{ name: "检测工艺", key: 'info' }, { name: "工艺参数", key: 'attr', onlyEditMode: true }], form: { rows: [ [