Selaa lähdekoodia

feat: EK-1281: 【Product Management】商品设置可售卖国家时,搜索国家并填写或修改DP时无法修改

tyler 8 kuukautta sitten
vanhempi
commit
f718eb5a6f
2 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 2 2
      src/views/shop/goods-add.vue
  2. 3 3
      src/views/shop/index.vue

+ 2 - 2
src/views/shop/goods-add.vue

@@ -83,7 +83,7 @@
             <el-table-column :label="$t('shop.salesPrice')" min-width="100px;">
               <template slot-scope="scope">
                 <el-form-item :prop="`availableCountriesList.${scope.$index}.sellPrice`" >
-                  <el-input-number v-model="scope.row.sellPrice" :controls="false"></el-input-number>
+                  <el-input-number v-model="scope.row.sellPrice" :precision="2" :min="0" :controls="false" clearable></el-input-number>
                 </el-form-item>
               </template>
             </el-table-column>
@@ -118,7 +118,7 @@
             <el-table-column :label="$t('shop.salesPrice')" min-width="100px;">
               <template slot-scope="scope">
                 <el-form-item :prop="`tempData.${scope.$index}.sellPrice`" >
-                  <el-input-number v-model="scope.row.sellPrice" :controls="false" disabled></el-input-number>
+                  <el-input-number v-model="scope.row.sellPrice" :controls="false" clearable></el-input-number>
                 </el-form-item>
               </template>
             </el-table-column>

+ 3 - 3
src/views/shop/index.vue

@@ -131,14 +131,14 @@
             <el-table-column :label="$t('shop.salesPrice')" min-width="100px;">
               <template slot-scope="scope">
                 <el-form-item :prop="`availableCountriesList.${scope.$index}.sellPrice`" >
-                  <el-input-number v-model="scope.row.sellPrice" :controls="false"></el-input-number>
+                  <el-input-number v-model="scope.row.sellPrice" :precision="2" :min="0" :controls="false" clearable></el-input-number>
                 </el-form-item>
               </template>
             </el-table-column>
             <el-table-column :label="$t('shop.marketPrice')" min-width="100px;">
               <template slot-scope="scope">
                 <el-form-item :prop="`availableCountriesList.${scope.$index}.marketPrice`" >
-                  <el-input-number v-model="scope.row.marketPrice" :precision="2" :min="0.01" :controls="false" clearable></el-input-number>
+                  <el-input-number v-model="scope.row.marketPrice" :precision="2" :min="0" :controls="false" clearable></el-input-number>
                 </el-form-item>
               </template>
             </el-table-column>
@@ -166,7 +166,7 @@
                 <el-table-column :label="$t('shop.salesPrice')" min-width="100px;">
                     <template slot-scope="scope">
                         <el-form-item :prop="`tempData.${scope.$index}.sellPrice`" >
-                            <el-input-number v-model="scope.row.sellPrice" :controls="false" disabled></el-input-number>
+                            <el-input-number v-model="scope.row.sellPrice" :controls="false" clearable></el-input-number>
                         </el-form-item>
                     </template>
                 </el-table-column>