From 81349b956f3393c742b35946ae3e084652dec0d8 Mon Sep 17 00:00:00 2001 From: duan Date: Thu, 8 Sep 2022 23:41:11 +0800 Subject: [PATCH] =?UTF-8?q?feat(src/views/reagent/weighing/index.vue):=20?= =?UTF-8?q?=E7=A7=B0=E9=87=8D=E6=A8=A1=E5=9D=97=E6=8E=A5=E5=8F=A3=E6=8E=A5?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/reagent/weight.js | 17 +++++++ src/views/reagent/weighing/index.vue | 66 +++++++++++++++++++++++----- 2 files changed, 72 insertions(+), 11 deletions(-) diff --git a/src/api/reagent/weight.js b/src/api/reagent/weight.js index 85f22eb..1da0425 100644 --- a/src/api/reagent/weight.js +++ b/src/api/reagent/weight.js @@ -8,6 +8,22 @@ export function weigh() { }) } +export function tare() { + return request({ + url: '/api/tare/', + method: 'get', + baseURL: process.env.VUE_APP_FACE_API + }) +} + +export function zero() { + return request({ + url: '/api/zero/', + method: 'get', + baseURL: process.env.VUE_APP_FACE_API + }) +} + export function update_drug_remain(data) { return request({ url: '/api/drug/update_drug_remain', @@ -23,3 +39,4 @@ export function get_drug_info(data) { data }) } + diff --git a/src/views/reagent/weighing/index.vue b/src/views/reagent/weighing/index.vue index 1620ec5..d6127a2 100644 --- a/src/views/reagent/weighing/index.vue +++ b/src/views/reagent/weighing/index.vue @@ -15,15 +15,15 @@
精度:0.01g±0.03g
- {{ weight }} + {{ checkInputWeigh() ? parseFloat(inputWeigh) : weight }} 克(g)
余量称重 用量称重 开始称重 - 去皮(初始化天平) - + 去皮(初始化天平) + 设置为空
@@ -61,7 +61,7 @@