update:
1. 主单录入表单界面优化-录入的件重字符过滤. 2. 尺寸删除时还提交原数组数据的BUG修复
正在显示
1 个修改的文件
包含
16 行增加
和
5 行删除
@@ -667,7 +667,9 @@ Handling Information | @@ -667,7 +667,9 @@ Handling Information | ||
667 | <el-row style="margin-bottom: -5px"> | 667 | <el-row style="margin-bottom: -5px"> |
668 | <el-col style="width: 95%"> | 668 | <el-col style="width: 95%"> |
669 | <el-form-item> | 669 | <el-form-item> |
670 | - <el-input v-model="form.bill.quantity_picecs" auto-complete="off" placeholder="件数" size="mini"></el-input> | 670 | + <el-input v-model="form.bill.quantity_picecs" |
671 | + oninput="this.value=this.value.replace(/[^0-9]/g,'').trim();" | ||
672 | + auto-complete="off" placeholder="件数1" size="mini"></el-input> | ||
671 | </el-form-item> | 673 | </el-form-item> |
672 | </el-col> | 674 | </el-col> |
673 | </el-row> | 675 | </el-row> |
@@ -676,7 +678,9 @@ Handling Information | @@ -676,7 +678,9 @@ Handling Information | ||
676 | <el-row style="margin-bottom: -5px"> | 678 | <el-row style="margin-bottom: -5px"> |
677 | <el-col style="width: 95%"> | 679 | <el-col style="width: 95%"> |
678 | <el-form-item> | 680 | <el-form-item> |
679 | - <el-input v-model="form.bill.quantity_weight" auto-complete="off" placeholder="重量(KG)" size="mini"></el-input> | 681 | + <el-input v-model="form.bill.quantity_weight" |
682 | + oninput="this.value=this.value.replace(/[^0-9\.]/g,'');" | ||
683 | + auto-complete="off" placeholder="重量(KG)" size="mini"></el-input> | ||
680 | </el-form-item> | 684 | </el-form-item> |
681 | </el-col> | 685 | </el-col> |
682 | </el-row> | 686 | </el-row> |
@@ -719,7 +723,9 @@ Handling Information | @@ -719,7 +723,9 @@ Handling Information | ||
719 | <el-row style="margin-bottom: -5px"> | 723 | <el-row style="margin-bottom: -5px"> |
720 | <el-col style="width: 95%"> | 724 | <el-col style="width: 95%"> |
721 | <el-form-item> | 725 | <el-form-item> |
722 | - <el-input v-model="form.rtd.rtd_charge_weight" auto-complete="off" placeholder="计费重量" size="mini"></el-input> | 726 | + <el-input v-model="form.rtd.rtd_charge_weight" |
727 | + oninput="this.value=this.value.replace(/[^0-9\.]/g,'');" | ||
728 | + auto-complete="off" placeholder="计费重量" size="mini"></el-input> | ||
723 | </el-form-item> | 729 | </el-form-item> |
724 | </el-col> | 730 | </el-col> |
725 | </el-row> | 731 | </el-row> |
@@ -728,7 +734,9 @@ Handling Information | @@ -728,7 +734,9 @@ Handling Information | ||
728 | <el-row style="margin-bottom: -5px"> | 734 | <el-row style="margin-bottom: -5px"> |
729 | <el-col style="width: 95%"> | 735 | <el-col style="width: 95%"> |
730 | <el-form-item> | 736 | <el-form-item> |
731 | - <el-input v-model="form.rtd.rtd_rate_charge" auto-complete="off" placeholder="费率" size="mini"></el-input> | 737 | + <el-input v-model="form.rtd.rtd_rate_charge" |
738 | + oninput="this.value=this.value.replace(/[^0-9\.]/g,'');" | ||
739 | + auto-complete="off" placeholder="费率" size="mini"></el-input> | ||
732 | </el-form-item> | 740 | </el-form-item> |
733 | </el-col> | 741 | </el-col> |
734 | </el-row> | 742 | </el-row> |
@@ -737,7 +745,9 @@ Handling Information | @@ -737,7 +745,9 @@ Handling Information | ||
737 | <el-row style="margin-bottom: -5px"> | 745 | <el-row style="margin-bottom: -5px"> |
738 | <el-col style="width: 95%"> | 746 | <el-col style="width: 95%"> |
739 | <el-form-item> | 747 | <el-form-item> |
740 | - <el-input v-model="form.rtd.rtd_total" auto-complete="off" placeholder="总计" size="mini"></el-input> | 748 | + <el-input v-model="form.rtd.rtd_total" |
749 | + oninput="this.value=this.value.replace(/[^0-9\.]/g,'');" | ||
750 | + auto-complete="off" placeholder="总计" size="mini"></el-input> | ||
741 | </el-form-item> | 751 | </el-form-item> |
742 | </el-col> | 752 | </el-col> |
743 | </el-row> | 753 | </el-row> |
@@ -2403,6 +2413,7 @@ Handling Information | @@ -2403,6 +2413,7 @@ Handling Information | ||
2403 | //删除行 | 2413 | //删除行 |
2404 | deleteRows(scope) { | 2414 | deleteRows(scope) { |
2405 | this.gridData.splice(scope.$index, 1); | 2415 | this.gridData.splice(scope.$index, 1); |
2416 | + this.form.rtd.dimensions.splice(scope.$index,1); | ||
2406 | }, | 2417 | }, |
2407 | //求体积 | 2418 | //求体积 |
2408 | handleEdit(index, row) { | 2419 | handleEdit(index, row) { |
-
请 注册 或 登录 后发表评论