From cb9eeec0baa75abb9c5e961aeb8e0c519a951f64 Mon Sep 17 00:00:00 2001
From: dcc <dcc@163.com>
Date: Tue, 16 Jul 2024 10:18:32 +0800
Subject: [PATCH] 123
---
src/page/list/favorites/data.list.vue | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/page/list/favorites/data.list.vue b/src/page/list/favorites/data.list.vue
index 174fbf3..90f2b92 100644
--- a/src/page/list/favorites/data.list.vue
+++ b/src/page/list/favorites/data.list.vue
@@ -54,9 +54,9 @@
>{{ item.name }}</span
>
</div>
- <div class="bt">
+ <!-- <div class="bt">
<span>{{ item.code }}</span>
- </div>
+ </div> -->
</div></van-col
>
@@ -99,7 +99,7 @@
<div class="laber">
{{ shengouObj.type === 1 ? $t("hj57") : $t("配售数量") }}:
</div>
- <input type="number" :value="fromData.value" @input="fromDatavalue" />
+ <input type="text" :maxlength="9" v-model="fromData.value" @input="fromDatavalue" />
</div>
<div class="shijian">
@@ -220,14 +220,14 @@
},
methods: {
fromDatavalue(e) {
- this.fromData.value = e.target.value;
+ this.fromData.value = this.fromData.value.replace(/^(0+)|[^\d]+/g, '')
},
async newAddxg() {
console.log(this.shengouObj, "=====");
const res = await api.getNewAdd({
newCode: this.shengouObj.code,
applyNums: this.fromData.value,
- type: this.fromData.type,
+ type: this.shengouObj.type,
});
if (res.status === 0) {
Notify({ type: "success", message: res.msg });
@@ -417,4 +417,4 @@
text-align: center;
line-height: 35px;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3