浏览代码

下拉框,商户号导出

xw 12 小时之前
父节点
当前提交
6170063cd2

+ 9 - 0
src/views/course/coursePlaySourceConfig/index.vue

@@ -22,6 +22,7 @@
           style="width: 220px"
           clearable
           size="small"
+          @focus="loadCompanyOptionsIfEmpty"
         >
           <el-option
             v-for="item in companyOptions"
@@ -244,6 +245,7 @@
             style="width: 220px"
             clearable
             size="small"
+            @focus="loadCompanyOptionsIfEmpty"
           >
             <el-option
               v-for="item in companyOptions"
@@ -266,6 +268,7 @@
             style="width: 220px"
             clearable
             size="small"
+            @focus="loadCompanyOptionsIfEmpty"
           >
             <el-option
               v-for="item in companyOptions"
@@ -828,6 +831,12 @@ export default {
       this.getSwitchConfig(row.appid);
       this.switchDialogVisible = true;
     },
+    /** 点击所属公司输入框时,若尚未加载过列表则加载,便于直接下拉选择 */
+    loadCompanyOptionsIfEmpty() {
+      if (!this.companyOptions || this.companyOptions.length === 0) {
+        this.searchCompanies("");
+      }
+    },
     /** 搜索公司 */
     searchCompanies(query) {
       this.companySearchLoading = true;

+ 1 - 1
src/views/course/sop/appIdList.vue

@@ -8,7 +8,7 @@
         </el-select>
       </el-form-item>
       <el-form-item label="小程序ID" prop="appId">
-       <el-select v-model="queryParams.appId" placeholder="请选择所属小程序" clearable size="small">
+       <el-select v-model="queryParams.appId" placeholder="请选择所属小程序" clearable filterable size="small">
           <el-option
             v-for="item in appMallOptions"
             :key="item.appId"

+ 1 - 0
src/views/hisStore/storeOrder/healthStoreList.vue

@@ -1307,6 +1307,7 @@ export default {
 
         { key: 'erpPhone', label: 'ERP电话', checked: false },
         { key: 'erpAccount', label: 'ERP账号', checked: false },
+        { key: 'merchantId', label: '商户号', checked: false },
         { key: 'orderCode', label: '订单号', checked: true },
         { key: 'userId', label: '会员ID', checked: true },
         { key: 'orderType', label: '订单类型', checked: true },