Преглед изворни кода

轮胎商城销售订单批次号去掉添加

caojunjie пре 1 година
родитељ
комит
0b52e39d39
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue

+ 6 - 2
src/views/tirePartsMall/salesManagement/saleOrder/detailsPage.vue

@@ -97,7 +97,7 @@
                                 <span v-else>{{ row.price }}</span>
                             </template>
                             <template slot="dot" slot-scope="{ row }">
-                                <el-select v-if="!mingxibaocun && row.whether=='1'" v-model="row.dot" allow-create filterable default-first-option @focus="picihaolistfun(row.goodsId)">
+                                <el-select v-if="!mingxibaocun && row.whether=='1'" v-model="row.dot" filterable default-first-option @focus="picihaolistfun(row.goodsId)">
                                     <el-option v-for="(item, index) in picihaolist" :key="index" :label="item.dot"
                                                :value="item.dot"></el-option>
                                 </el-select>
@@ -219,7 +219,11 @@
                                                  @input="amountChange(row)" style="width: 100%" />
                             </template>
                             <template slot="dot" slot-scope="{row}">
-                                <el-select v-model="row.dot" allow-create filterable default-first-option @focus="picihaolistfun(row.id)">
+                                <!--使用allow-create属性即可通过在输入框中输入文字来创建新的条目。注意此时filterable必须为真。-->
+                                <!--本例还使用了default-first-option属性, 在该属性打开的情况下,按下回车就可以选中当前选项列表中的第一个选项,-->
+                                <!--无需使用鼠标或键盘方向键进行定位。-->
+                                <!--allow-create filterable default-first-option-->
+                                <el-select v-model="row.dot" filterable default-first-option @focus="picihaolistfun(row.id)">
                                     <el-option v-for="(item, index) in picihaolist" :key="index" :label="item.dot"
                                                :value="item.dot"></el-option>
                                 </el-select>