Sfoglia il codice sorgente

fix: 政策货品信息更改

zh 2 anni fa
parent
commit
6a026bae93

+ 18 - 17
src/views/sales_policy/components/AddPolicy.vue

@@ -173,23 +173,24 @@
                 <template v-if="scope.row.fang">
                   {{ scope.row.specification }}
                 </template>
-                <el-select
-                  v-else
-                  v-model="scope.row.specification"
-                  size="mini"
-                  :remote-method="query => remoteMethod(query, 'specification')"
-                  filterable
-                  style="width: 85%"
-                  remote
-                  @change="handleK3List($event, scope.row, scope.$index, 'specification')"
-                >
-                  <el-option
-                    v-for="(item, index) in k3List"
-                    :key="index"
-                    :label="item.specification"
-                    :value="item.id"
-                  />
-                </el-select>
+                <el-tooltip v-else :disabled="scope.row.specification? false: true" class="item" effect="dark" :content="scope.row.specification" placement="top-start">
+                  <el-select
+                    v-model="scope.row.specification"
+                    size="mini"
+                    :remote-method="query => remoteMethod(query, 'specification')"
+                    filterable
+                    style="width: 85%"
+                    remote
+                    @change="handleK3List($event, scope.row, scope.$index, 'specification')"
+                  >
+                    <el-option
+                      v-for="(item, index) in k3List"
+                      :key="index"
+                      :label="item.specification"
+                      :value="item.id"
+                    />
+                  </el-select>
+                </el-tooltip>
               </template>
             </pl-table-column>
             <pl-table-column show-overflow-tooltip min-width="150" prop="saleTypeName" label="销售类型" align="left">

+ 18 - 17
src/views/sales_policy/components/editPolicy.vue

@@ -176,23 +176,24 @@
                   <template v-if="scope.row.fang">
                     {{ scope.row.specification }}
                   </template>
-                  <el-select
-                    v-else
-                    v-model="scope.row.specification"
-                    size="mini"
-                    :remote-method="query => remoteMethod(query, 'specification')"
-                    filterable
-                    style="width: 85%"
-                    remote
-                    @change="handleK3List($event, scope.row, scope.$index, 'specification')"
-                  >
-                    <el-option
-                      v-for="(item, index) in k3List"
-                      :key="index"
-                      :label="item.specification"
-                      :value="item.id"
-                    />
-                  </el-select>
+                  <el-tooltip v-else :disabled="scope.row.specification? false: true" class="item" effect="dark" :content="scope.row.specification" placement="top-start">
+                    <el-select
+                      v-model="scope.row.specification"
+                      size="mini"
+                      :remote-method="query => remoteMethod(query, 'specification')"
+                      filterable
+                      style="width: 85%"
+                      remote
+                      @change="handleK3List($event, scope.row, scope.$index, 'specification')"
+                    >
+                      <el-option
+                        v-for="(item, index) in k3List"
+                        :key="index"
+                        :label="item.specification"
+                        :value="item.id"
+                      />
+                    </el-select>
+                  </el-tooltip>
                 </template>
               </pl-table-column>
               <pl-table-column show-overflow-tooltip min-width="150" prop="saleTypeName" label="销售类型" align="left">