Commit 2bf067e762487ef1a58921525834e2314bfacb61
1 parent
a0868f00
Exists in
master
and in
1 other branch
fix: 下单选择器优化
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
pages/order/add.vue
| @@ -390,6 +390,7 @@ export default { | @@ -390,6 +390,7 @@ export default { | ||
| 390 | }); | 390 | }); |
| 391 | }, | 391 | }, |
| 392 | choseProjectCode() { | 392 | choseProjectCode() { |
| 393 | + uni.$off('select-common'); | ||
| 393 | uni.$once('select-common', option => { | 394 | uni.$once('select-common', option => { |
| 394 | this.form.projectCode = option.code; | 395 | this.form.projectCode = option.code; |
| 395 | this.form.projectName = option.name; | 396 | this.form.projectName = option.name; |
| @@ -406,6 +407,7 @@ export default { | @@ -406,6 +407,7 @@ export default { | ||
| 406 | }); | 407 | }); |
| 407 | }, | 408 | }, |
| 408 | choseGoodsName() { | 409 | choseGoodsName() { |
| 410 | + uni.$off('select-common'); | ||
| 409 | uni.$once('select-common', option => { | 411 | uni.$once('select-common', option => { |
| 410 | this.form.goodsName = option.name; | 412 | this.form.goodsName = option.name; |
| 411 | }); | 413 | }); |