shish 2 лет назад
Родитель
Сommit
c33682d26b
1 измененных файлов с 13 добавлено и 6 удалено
  1. 13 6
      ghs/src/views/item/batch-modify.vue

+ 13 - 6
ghs/src/views/item/batch-modify.vue

@@ -23,22 +23,22 @@
                             </template>
                         </el-table-column>
 
-                        <el-table-column prop="hjPrice" label="大客价" align="center" width="80">
+                        <el-table-column prop="showHjPrice" label="大客价" align="center" width="80">
                             <template slot-scope="scope">
-                                <el-input v-model="scope.row.hjPrice" @focus="scope.row.hjPrice=''" placeholder="大客价" size="small"></el-input>
+                                <el-input v-model="scope.row.showHjPrice" @focus="scope.row.showHjPrice=''" placeholder="大客价" size="small"></el-input>
                             </template>
                         </el-table-column>
 
-                        <el-table-column prop="price" label="批发价" align="center" width="90">
+                        <el-table-column prop="showPrice" label="批发价" align="center" width="90">
                             <template slot-scope="scope">
-                                <el-input v-model="scope.row.price" @focus="scope.row.price=''" placeholder="批发价" size="small">
+                                <el-input v-model="scope.row.showPrice" @focus="scope.row.showPrice=''" placeholder="批发价" size="small">
                                 </el-input>
                             </template>
                         </el-table-column>
 
-                        <el-table-column prop="skPrice" label="散客价" align="center" width="80">
+                        <el-table-column prop="showSkPrice" label="散客价" align="center" width="80">
                             <template slot-scope="scope">
-                                <el-input v-model="scope.row.skPrice" @focus="scope.row.skPrice=''" placeholder="散客价" size="small"></el-input>
+                                <el-input v-model="scope.row.showSkPrice" @focus="scope.row.showSkPrice=''" placeholder="散客价" size="small"></el-input>
                             </template>
                         </el-table-column>
 
@@ -82,6 +82,13 @@
                         //console.log(item.child)
                         if (item.child && !this.$util.isEmpty(item.child)) {
 
+                                item.child.forEach((single,ix,array)=>{
+                                    array[ix].showPrce=''
+                                    array[ix].showSkPrce=''
+                                    array[ix].showHjPrce=''
+                                })
+
+
                                 // 分三组
                                 let segmentsCount = 3;
                                 let length = item.child.length