Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-mall
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1c5bf569
authored
Sep 02, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修复价格输入框禁用状态错误
将v-model绑定的disabled属性从动态判断改为固定true,确保输入框始终禁用
1 parent
e3b7c13e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/views/pointProducts/setPriceDialog.vue
src/views/pointProducts/setPriceDialog.vue
View file @
1c5bf56
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</el-input>
</el-input>
<span>
+
</span>
<span>
+
</span>
<el-input
size=
"small"
type=
"text"
onkeyup=
"value = value ? value.replace(/^0\d/g, '0').replace(/[^\d.]/g, '').replace(/^\./g, '').replace(/^\d
{6}\d+(\.\d+)?/g, value.substr(0,6)).replace(/\.{2,}/g, '').replace('.', '$#$')
<el-input
size=
"small"
type=
"text"
onkeyup=
"value = value ? value.replace(/^0\d/g, '0').replace(/[^\d.]/g, '').replace(/^\./g, '').replace(/^\d
{6}\d+(\.\d+)?/g, value.substr(0,6)).replace(/\.{2,}/g, '').replace('.', '$#$')
.replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d).*$/, '$1$2.$3') : value" v-model="batchPrice" placeholder="请输入金额"
:disabled="echoParams.goodsSource == 2
">
.replace(/\./g, '').replace('$#$', '.').replace(/^(-)*(\d+)\.(\d\d).*$/, '$1$2.$3') : value" v-model="batchPrice" placeholder="请输入金额"
disabled="true
">
<span
slot=
"append"
>
元
</span>
<span
slot=
"append"
>
元
</span>
</el-input>
</el-input>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment