From e42c799d0f49e914182e15d1bca5228a7de4c032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=96=87=E5=B3=B0?= Date: Thu, 22 Jan 2026 21:24:00 +0800 Subject: [PATCH] up --- .../src/views/purchase/addorder.vue | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/frontent/ops_vue_js/src/views/purchase/addorder.vue b/frontent/ops_vue_js/src/views/purchase/addorder.vue index e8e673d..89ea9f9 100644 --- a/frontent/ops_vue_js/src/views/purchase/addorder.vue +++ b/frontent/ops_vue_js/src/views/purchase/addorder.vue @@ -16,8 +16,31 @@ const router = useRouter(); import TomSelect from "tom-select"; import "tom-select/dist/css/tom-select.css"; + +const textarea_maxlen=256 +const textarea_len=ref(0) +const textarea_val=ref() + const { t, locale } = useI18n(); +function submit_order(){ + +} + + +function textarea_change(a){ + //console.log(textarea_val.value.length) + + textarea_len.value=textarea_val.value.length + + // if(a.inputType=="insertText"){ + // textarea_len.value+=1; + // } + // if(a.inputType=="deleteContentBackward"){ + // textarea_len.value-=1; + // } +} + function functionupdataTitle() { document.title = "Operations." + t("purchase.add_part"); } @@ -137,13 +160,16 @@ watch(locale, () => {
{{textarea_len}}/{{textarea_maxlen}} @@ -262,7 +288,7 @@ watch(locale, () => { class="form-control" step="0.01" min="0" - value="0.0" + value="0" v-model="cost_sheet.cost" />
@@ -342,7 +368,7 @@ watch(locale, () => {