Ver código fonte

Merge branch 'feature/Feature-copy' into develop

howie 2 anos atrás
pai
commit
d2255c8564
1 arquivos alterados com 6 adições e 3 exclusões
  1. 6 3
      src/views/supply/engin/components/home_form.vue

+ 6 - 3
src/views/supply/engin/components/home_form.vue

@@ -220,18 +220,18 @@
         </el-table-column>
         <el-table-column align="left" label="实装规格型号" prop="realSpecification" min-width="300" show-overflow-tooltip>
               <template slot-scope="scope">
-            <el-input :style="scope.row.realSpecification != scope.row.specification?{color:'blue'}:''" v-model="scope.row.realSpecification" size="small" readonly @click.native="getRealMaterData(scope.$index)" ></el-input>
+            <el-input :class="scope.row.realSpecification != scope.row.specification?'input':''" v-model="scope.row.realSpecification" size="small" readonly @click.native="getRealMaterData(scope.$index)" ></el-input>
 
           </template>
             </el-table-column>
         <el-table-column align="left" label="实装物料编号" prop="realMaterialNumber" min-width="150" show-overflow-tooltip>
           <template slot-scope="scope">
-            <el-input :style="scope.row.realMaterialNumber != scope.row.materialNumber?{color:'blue'}:''" v-model="scope.row.realMaterialNumber" size="small" readonly @click.native="getRealMaterData(scope.$index)" ></el-input>
+            <el-input :class="scope.row.realMaterialNumber != scope.row.materialNumber?'input':''" v-model="scope.row.realMaterialNumber" size="small" readonly @click.native="getRealMaterData(scope.$index)" ></el-input>
           </template>
         </el-table-column>
             <el-table-column align="left" label="实装厂产品编码" prop="realMaterialOldNumber" min-width="200" show-overflow-tooltip>
               <template slot-scope="scope">
-            <el-input :style="scope.row.realMaterialOldNumber != scope.row.materialOldNumber?{color:'blue'}:''" v-model="scope.row.realMaterialOldNumber" size="small" readonly @click.native="getRealMaterData(scope.$index)"></el-input>
+            <el-input :class="scope.row.realMaterialOldNumber != scope.row.materialOldNumber?'input':''" v-model="scope.row.realMaterialOldNumber" size="small" readonly @click.native="getRealMaterData(scope.$index)"></el-input>
           </template>
             </el-table-column>
 
@@ -1555,6 +1555,9 @@ export default {
 </script>
 
 <style scoped lang="scss">
+  ::v-deep .input .el-input__inner{
+    color:blue;
+  }
   .detail-container {
     width: 100%;
     height: 100%;