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 @@