瀏覽代碼

调整参数

yfh 1 天之前
父節點
當前提交
a97ca8fc26
共有 1 個文件被更改,包括 133 次插入414 次删除
  1. 133 414
      src/views/his/company/index.vue

+ 133 - 414
src/views/his/company/index.vue

@@ -94,17 +94,6 @@
         >导出
         </el-button>
       </el-col>
-      <el-col :span="1.5">
-        <el-button
-          type="primary"
-          plain
-          icon="el-icon-edit"
-          size="mini"
-          :disabled="multiple"
-          @click="handleMiniProgram"
-        >批量修改小程序
-        </el-button>
-      </el-col>
       <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
     </el-row>
 
@@ -122,7 +111,6 @@
       </el-table-column>
 
       <el-table-column label="余额" align="center" prop="money"/>
-      <el-table-column label="红包余额" align="center" prop="redPackageMoney"/>
       <el-table-column label="企业类型" align="center" prop="companyType">
         <template slot-scope="scope">
           <dict-tag :options="companyTypeOptions" :value="scope.row.companyType"/>
@@ -130,9 +118,9 @@
       </el-table-column>
       <el-table-column label="管理员账号" align="center" prop="userName"/>
       <el-table-column label="限制用户数量" align="center" prop="limitUserCount"/>
-      <el-table-column label="限制pad数量" align="center" prop="maxPadNum" :formatter="padNumFormatter" v-if="this.$store.state.user.medicalMallConfig.resource"/>
-      <el-table-column label="占用pad数量" align="center" prop="usedNum" v-if="this.$store.state.user.medicalMallConfig.resource"/>
-      <el-table-column label="所属部门" align="center" prop="deptId" v-if="this.$store.state.user.medicalMallConfig.resource">
+      <el-table-column label="限制pad数量" align="center" prop="maxPadNum" :formatter="padNumFormatter"/>
+      <el-table-column label="占用pad数量" align="center" prop="usedNum"/>
+      <el-table-column label="所属部门" align="center" prop="deptId">
         <template slot-scope="scope">
           <el-tag prop="deptId" v-for="(item, index) in deptOptions" :key="'deptId'+index"
                   v-if="scope.row.deptId===item.deptId"
@@ -146,7 +134,7 @@
       <el-table-column label="创建时间" align="center" prop="createTime" width="180"/>
       <el-table-column label="更新时间" align="center" prop="updateTime" width="180"/>
       <!--      <el-table-column label="主机重启时间" align="center" prop="restartTime" width="180" />-->
-      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="220px">
+      <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="300px">
         <template slot-scope="scope">
           <el-button
             size="mini"
@@ -164,6 +152,14 @@
             v-hasPermi="['his:company:pass']"
           >重置密码
           </el-button>
+          <!-- 新增绑定店铺按钮 -->
+          <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-shop"
+            @click="handleBindShop(scope.row)"
+            v-hasPermi="['company:company:bindShop']"
+          >绑定店铺</el-button>
           <el-button
             size="mini"
             type="text"
@@ -188,29 +184,7 @@
             v-hasPermi="['his:company:deduct']"
           >扣款
           </el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handleRedRecharge(scope.row)"
-            v-hasPermi="['his:company:redRecharge']"
-          >红包充值
-          </el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handleRedDeduct(scope.row)"
-            v-hasPermi="['his:company:redDeduct']"
-          >红包扣款
-          </el-button>
-          <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-edit"
-            @click="handleRevenue(scope.row)"
-            v-hasPermi="['company:company:revenue']"
-          >分账配置</el-button>
+
         </template>
       </el-table-column>
     </el-table>
@@ -223,6 +197,38 @@
       @pagination="getList"
     />
 
+    <!-- 绑定店铺对话框 -->
+    <el-dialog :title="bindShop.title" :visible.sync="bindShop.open" width="600px" append-to-body>
+      <el-form ref="bindShopForm" :rules="bindShopRules" :model="bindShopForm" label-width="100px">
+        <el-form-item label="公司名称">
+          <el-input v-model="bindShopForm.companyName" disabled />
+        </el-form-item>
+        <el-form-item label="选择店铺" prop="shopId">
+          <el-select
+            v-model="bindShopForm.shopId"
+            placeholder="请选择店铺"
+            filterable
+            clearable
+            style="width: 100%"
+            @change="handleShopChange"
+          >
+            <el-option
+              v-for="shop in shopList"
+              :key="shop.storeId"
+              :label="shop.storeName"
+              :value="shop.storeId"
+            >
+              <span style="float: left">{{ shop.storeName }}</span>
+              <span style="float: right; color: #8492a6; font-size: 13px">{{ shop.storeId }}</span>
+            </el-option>
+          </el-select>
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitBindShopForm" :loading="bindShop.submitLoading">确 定</el-button>
+        <el-button @click="bindShop.open=false">取 消</el-button>
+      </div>
+    </el-dialog>
     <!-- 添加或修改诊所管理对话框 -->
     <el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
 
@@ -246,7 +252,7 @@
           </el-select>
         </el-form-item>
         <!-- 所属部门 -->
-        <el-form-item label="所属部门" prop="deptId" v-if="this.$store.state.user.medicalMallConfig.resource">
+        <el-form-item label="所属部门" prop="deptId">
           <el-select
             v-model="form.deptId"
             placeholder="请选择"
@@ -273,7 +279,7 @@
         <el-form-item label="员工数量" prop="limitUserCount">
           <el-input-number v-model="form.limitUserCount" :min="1" :max="10000"></el-input-number>
         </el-form-item>
-        <el-form-item label="pad数量" prop="maxPadNum" v-if="this.$store.state.user.medicalMallConfig.resource">
+        <el-form-item label="pad数量" prop="maxPadNum">
           <el-input-number v-model="form.maxPadNum" :min="-1" :max="10000"></el-input-number>
           <span class="pad-tips">
             注:-1表示不做限制
@@ -453,6 +459,9 @@
             />
           </el-select>
         </el-form-item>
+        <el-form-item label="PAD分配数量" prop="maxPadNum">
+          <el-input-number v-model="form.maxPadNum" placeholder="默认-1不限制"/>
+        </el-form-item>
         <el-form-item label="备注" prop="remark">
           <el-input v-model="form.remark" type="textarea" :rows="2" placeholder="请输入备注"/>
         </el-form-item>
@@ -487,27 +496,6 @@
       </div>
     </el-dialog>
 
-    <el-dialog :title="redRecharge.title" :visible.sync="redRecharge.open" width="500px" append-to-body>
-      <el-form ref="redRechargeForm" :rules="redRechargeRules" :model="redRechargeForm" label-width="80px">
-        <el-form-item label="公司">
-          <el-input v-model="redRechargeForm.companyName" disabled/>
-        </el-form-item>
-        <el-form-item label="余额">
-          <el-input v-model="redRechargeForm.balance" disabled/>
-        </el-form-item>
-        <el-form-item label="充值金额" prop="money">
-          <el-input-number v-model="redRechargeForm.money" :min="0.01" placeholder="请输入充值金额"/>
-        </el-form-item>
-        <el-form-item label="备注" prop="remark">
-          <el-input v-model="redRechargeForm.remark" placeholder="请输入备注"/>
-        </el-form-item>
-      </el-form>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitRedRechargeForm" :disabled="redSubmit">确 定</el-button>
-        <el-button @click="redRecharge.open=false">取 消</el-button>
-      </div>
-    </el-dialog>
-
     <el-dialog :title="deduct.title" :visible.sync="deduct.open" width="500px" append-to-body>
       <el-form ref="deductForm" :rules="deductRules" :model="deductForm" label-width="80px">
         <el-form-item label="公司">
@@ -528,183 +516,6 @@
         <el-button @click="deduct.open=false">取 消</el-button>
       </div>
     </el-dialog>
-
-    <el-dialog :title="redDeduct.title" :visible.sync="redDeduct.open" width="500px" append-to-body>
-      <el-form ref="redDeductForm" :rules="redDeductRules" :model="redDeductForm" label-width="80px">
-        <el-form-item label="公司">
-          <el-input v-model="redDeductForm.companyName" disabled/>
-        </el-form-item>
-        <el-form-item label="余额">
-          <el-input v-model="redDeductForm.balance" disabled/>
-        </el-form-item>
-        <el-form-item label="扣款金额" prop="money">
-          <el-input-number v-model="redDeductForm.money" :min="0.01" placeholder="请输入扣款金额"/>
-        </el-form-item>
-        <el-form-item label="备注" prop="remark">
-          <el-input v-model="redDeductForm.remark" placeholder="请输入备注"/>
-        </el-form-item>
-      </el-form>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitRedDeductForm">确 定</el-button>
-        <el-button @click="redDeduct.open=false">取 消</el-button>
-      </div>
-    </el-dialog>
-
-    <el-dialog :title="revenue.title" :visible.sync="revenue.open" width="800px" append-to-body>
-      <el-form ref="revenueForm"  :model="revenueForm" label-width="150px">
-        <el-form-item label="公司">
-          <el-input v-model="revenueForm.companyName" disabled/>
-        </el-form-item>
-
-        <el-form-item label="开启分账">
-          <el-switch
-            v-model="revenueForm.divFlag"
-            active-color="#13ce66"
-            inactive-color="#ff4949"
-            active-value="1"
-            inactive-value="0"
-          >
-          </el-switch>
-        </el-form-item>
-
-        <el-form-item label="分账模式" v-if="revenueForm.divFlag == 1">
-          <el-radio v-model="revenueForm.delayAcctFlag" label="N">实时分账</el-radio>
-          <el-radio v-model="revenueForm.delayAcctFlag" label="Y">延时分账</el-radio>
-        </el-form-item>
-        <el-form-item label="是否使用百分比分账" v-if="revenueForm.divFlag == 1">
-          <el-switch
-            v-model="revenueForm.percentageFlag"
-            active-color="#13ce66"
-            inactive-color="#ff4949"
-            active-value="Y"
-            inactive-value="N"
-          >
-          </el-switch>
-        </el-form-item>
-        <el-form-item label="是否净值分账" v-if="revenueForm.percentageFlag == 'Y'">
-          <el-switch
-            v-model="revenueForm.iscCleanSplit"
-            active-color="#13ce66"
-            inactive-color="#ff4949"
-            active-value="Y"
-            inactive-value="N"
-          >
-          </el-switch>
-        </el-form-item>
-        <div v-if="revenueForm.divFlag == 1">
-            <el-form-item label="分账接收方配置">
-              <el-tooltip content="批量设置分账接收账户" placement="top">
-                <el-button type="primary" icon="el-icon-plus" @click="addAcctInfo" style="margin-bottom: 5px;">
-                  添加新接收方
-                </el-button>
-              </el-tooltip>
-
-            </el-form-item>
-
-            <div v-for="(account, index) in revenueForm.acctInfos" :key="index"
-                 style="border: 1px solid #dcdfe6; padding: 20px; margin-bottom: 20px; border-radius: 4px;"
-            >
-              <div style="display: flex; justify-content: between; align-items: center; margin-bottom: 15px;">
-                <div style="margin: 0; color: #409eff;">账户 {{ index + 1 }}</div>
-                <el-button
-                  type="danger"
-                  icon="el-icon-delete"
-                  size="mini"
-                  @click="removeAcctInfo(index)"
-                  v-if="revenueForm.acctInfos.length > 0"
-                >
-                  删除账户
-                </el-button>
-              </div>
-
-              <el-form-item label="分账接收方ID" :prop="`acctInfos.${index}.huifuId`">
-                <el-input v-model="account.huifuId"   placeholder="斗拱开户时生成;示例值:6666000123120001"></el-input>
-              </el-form-item>
-              <el-form-item label="账户号" :prop="`acctInfos.${index}.acctId`" >
-                <el-input v-model="account.acctId"  placeholder="可指定账户号,仅支持基本户、现金户,不填默认为基本户;示例值:F00598600"></el-input>
-              </el-form-item>
-
-              <el-form-item label="分账百分比%" v-if="revenueForm.percentageFlag == 'Y'" :prop="`acctInfos.${index}.percentageDiv`"  >
-                <el-input-number v-model="account.percentageDiv" :precision="2" :step="0.1" :min="0" :max="100" placeholder="示例值:23.50,表示23.50%。acct_infos中全部分账百分比之和必须为100.00%。"></el-input-number>
-              </el-form-item>
-              <el-form-item label="分账金额" v-if="revenueForm.percentageFlag == 'N'" :prop="`acctInfos.${index}.divAmt`"  >
-                <el-input-number v-model="account.divAmt" :precision="2" :step="1" :min="0.01" placeholder="单位元,需保留小数点后两位,示例值:1.00 ,最低传入0.01"></el-input-number>
-              </el-form-item>
-
-            </div>
-          </div>
-
-
-
-      </el-form>
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitRevenueForm">确 定</el-button>
-        <el-button @click="revenue.open=false">取 消</el-button>
-      </div>
-    </el-dialog>
-
-    <!-- 批量修改小程序 -->
-    <el-dialog :title="miniProgram.title" :visible.sync="miniProgram.open" width="700px" append-to-body>
-
-      <el-form ref="form" :model="form" :rules="rules" label-width="120px">
-        <el-form-item label="小程序点播配置" prop="courseMiniAppId">
-          <el-select
-            v-model="form.courseMiniAppId"
-            placeholder="请选择小程序"
-            clearable
-            size="small"
-          >
-            <el-option
-              v-for="item in miniAppList"
-              :key="item.appId"
-              :label="item.appName"
-              :value="item.appId"
-            />
-          </el-select>
-        </el-form-item>
-        <el-form-item label="主要小程序" prop="miniAppMaster">
-          <el-select
-            v-model="form.miniAppMaster"
-            multiple
-            :multiple-limit="1"
-            placeholder="请选择"
-            clearable
-            size="small"
-          >
-            <el-option
-              v-for="item in miniAppList"
-              :key="item.appId"
-              :label="item.appName"
-              :value="item.appId"
-            />
-          </el-select>
-        </el-form-item>
-        <el-form-item label="备用小程序" prop="miniAppServer">
-          <el-select
-            v-model="form.miniAppServer"
-            multiple
-            :multiple-limit="1"
-            placeholder="请选择"
-            clearable
-            size="small"
-          >
-            <el-option
-              v-for="item in miniAppList"
-              :key="item.appId"
-              :label="item.appName"
-              :value="item.appId"
-            />
-          </el-select>
-        </el-form-item>
-      </el-form>
-
-
-      <div slot="footer" class="dialog-footer">
-        <el-button type="primary" @click="submitMiniProgramForm">确 定</el-button>
-        <el-button @click="cancelMiniProgram">取 消</el-button>
-      </div>
-    </el-dialog>
-
   </div>
 </template>
 
@@ -716,14 +527,12 @@ import {
   addCompany,
   updateCompany,
   recharge,
-  redRecharge,
   deduct,
-  redDeduct,
   exportCompany,
-  resetPwd,
-  getDivConfig,
-  setDiv, exitMiniProgram
+  resetPwd
 } from '@/api/his/company'
+import {bindShopCompany} from "@/api/company/company";
+import { storeList } from '@/api/hisStore/store'
 import { getFollowDoctorList } from '@/api/his/doctor'
 import { docList } from '@/api/his/doctor'
 import { getVoiceApiList } from '@/api/company/companyVoiceApi'
@@ -737,21 +546,26 @@ export default {
   name: 'Company',
   data() {
     return {
-      redSubmit: false,
-      //分账参数
-      revenue:{
-          open: false,
-          title: '分账配置'
+      shopList: [], // 清空店铺列表
+      // 绑定店铺相关
+      bindShopForm: {
+        companyId: null,
+        shopId: null,
+        companyName: null,
       },
-      revenueForm:{
-        acctInfos: []
+      bindShopRules: {
+        shopId: [
+          { required: true, message: "店铺不能为空", trigger: "blur" }
+        ]
       },
-      // 表单参数
-      deductForm: {
-        money: 0
+      bindShop: {
+        open: false,
+        title: "绑定店铺",
+        loading: false,
+        submitLoading: false
       },
       // 表单参数
-      redDeductForm: {
+      deductForm: {
         money: 0
       },
       doctorIds: [],
@@ -760,10 +574,6 @@ export default {
         open: false,
         title: '后台充值'
       },
-      redRecharge: {
-        open: false,
-        title: '红包充值'
-      },
       // 遮罩层
       loading: true,
       // 导出遮罩层
@@ -806,10 +616,6 @@ export default {
       rechargeForm: {
         money: 0
       },
-      // 红包充值表单参数
-      redRechargeForm: {
-        money: 0
-      },
       followDoctorList: [],
       cateList: [],
       // 表单参数
@@ -881,41 +687,22 @@ export default {
           { required: true, message: '扣款金额不能为空', trigger: 'blur' }
         ]
       },
-      // 表单校验
-      redDeductRules: {
-        money: [
-          { required: true, message: '扣款金额不能为空', trigger: 'blur' }
-        ]
-      },
       rechargeRules: {
         money: [
           { required: true, message: '扣款金额不能为空', trigger: 'blur' }
         ]
       },
-      redRechargeRules: {
-        money: [
-          { required: true, message: '扣款金额不能为空', trigger: 'blur' }
-        ]
-      },
       deduct: {
         open: false,
         title: '后台扣款'
       },
-      redDeduct: {
-        open: false,
-        title: '红包扣款'
-      },
       maAppList: [],
       miniAppList: [],
-      customAppList: [],
-      //分账参数
-      miniProgram:{
-        open: false,
-        title: '批量修改小程序'
-      },
+      customAppList: []
     }
   },
   created() {
+    this.storeList();
     this.getList()
     this.getDicts('sys_company_status').then(response => {
       this.statusOptions = response.data
@@ -947,49 +734,64 @@ export default {
     })
   },
   methods: {
-    // 添加分账账户
-    addAcctInfo() {
-      console.log("-----------------",this.revenueForm)
-      this.revenueForm.acctInfos.push({
-        huifuId: '',
-        acctId: '',
-        percentageDiv: null,
-        divAmt: null
-      })
+
+    /** 店铺选择变化 */
+    handleShopChange(shopId) {
+      if (shopId) {
+        // 可以在这里获取选中店铺的详细信息
+        console.log('选中的店铺ID:', shopId);
+      }
     },
-    // 删除接收方账户
-    removeAcctInfo(index) {
-      this.$confirm('确认删除该接收方账户?', '提示', {
-        confirmButtonText: '确定',
-        cancelButtonText: '取消',
-        type: 'warning'
-      }).then(() => {
-        this.revenueForm.acctInfos.splice(index, 1)
-        this.$message.success('删除成功')
-      }).catch(() => {
-      })
+    /** 绑定店铺按钮操作 */
+    handleBindShop(row) {
+      this.resetBindShopForm();
+      this.bindShopForm.companyId = row.companyId;
+      this.bindShopForm.companyName = row.companyName;
+      this.bindShopForm.shopId = row.storeId ? String(row.storeId) : '';
+      this.bindShop.open = true;
     },
-    handleRevenue(row){
-      const companyId = row.companyId
-      //查询配置
-      this.revenueForm.isAdd = 1
-      getDivConfig(companyId).then(response => {
-        if(response.data){
-          this.revenueForm = response.data
-          if(response.data.acctInfos == null){
-            this.revenueForm.acctInfos = []
-          }
-          if(response.data.divFlag){
-            this.revenueForm.divFlag = String(response.data.divFlag)
-          }
+    /** 重置绑定店铺表单 */
+    resetBindShopForm() {
+      this.bindShopForm = {
+        companyId: null,
+        companyName: '',
+        shopId: null,
+        shopName: '',
+        remark: ''
+      };
+      this.resetForm("bindShopForm");
+    },
+    /** 提交绑定店铺表单 */
+    submitBindShopForm() {
+      this.$refs["bindShopForm"].validate(valid => {
+        if (valid) {
+          this.bindShop.submitLoading = true;
+          console.log( this.bindShopForm.companyId)
+          console.log( this.bindShopForm.shopId)
+          // 调用绑定店铺的API
+          bindShopCompany({
+            companyId: this.bindShopForm.companyId,
+            storeId: this.bindShopForm.shopId
+          }).then(response => {
+            if (response.code === 200) {
+              this.msgSuccess("绑定店铺成功");
+              this.bindShop.open = false;
+              this.getList(); // 刷新列表
+            } else {
+              this.msgError(response.msg);
+            }
+            this.bindShop.submitLoading = false;
+          }).catch(() => {
+            this.bindShop.submitLoading = false;
+          });
         }
-      })
-      this.revenueForm.companyId = companyId
-      this.revenueForm.companyName = row.companyName
-      if(row.divFlag){
-        this.revenueForm.divFlag == "0"
-      }
-      this.revenue.open = true
+      });
+    },
+    storeList() {
+      storeList().then(response => {
+        console.log(response.data)
+        this.shopList = response.data;
+      });
     },
     handleRecharge(row) {
       const companyId = row.companyId
@@ -999,15 +801,6 @@ export default {
       this.rechargeForm.money = null
       this.recharge.open = true
     },
-    // 红包充值
-    handleRedRecharge(row) {
-      this.redSubmit=false
-      this.redRechargeForm.companyId = row.companyId
-      this.redRechargeForm.companyName = row.companyName
-      this.redRechargeForm.balance = row.money
-      this.redRechargeForm.money = null
-      this.redRecharge.open = true
-    },
     handleDeduct(row) {
       const companyId = row.companyId
       this.deductForm.companyId = row.companyId
@@ -1016,13 +809,6 @@ export default {
       this.deductForm.money = null
       this.deduct.open = true
     },
-    handleRedDeduct(row) {
-      this.redDeductForm.companyId = row.companyId
-      this.redDeductForm.companyName = row.companyName
-      this.redDeductForm.balance = row.money
-      this.redDeductForm.money = null
-      this.redDeduct.open = true
-    },
     /** 提交按钮 */
     submitRechargeForm() {
       this.$refs['rechargeForm'].validate(valid => {
@@ -1037,35 +823,6 @@ export default {
         }
       })
     },
-    /** 红包充值提交按钮 */
-    submitRedRechargeForm() {
-      this.$refs['redRechargeForm'].validate(valid => {
-        if (valid) {
-          this.redSubmit=true
-          redRecharge(this.redRechargeForm).then(response => {
-            if (response.code === 200) {
-              this.msgSuccess(response.msg)
-              this.redRecharge.open = false
-              this.getList()
-            }
-          })
-        }
-      })
-    },
-    submitRevenueForm(){
-      var param = this.revenueForm;
-      console.log("--------------",param)
-      if(param.companyId && param.divFlag){
-        setDiv(param).then(response => {
-            if (response.code === 200) {
-              this.msgSuccess(response.msg)
-              this.revenue.open = false
-              this.getList()
-            }
-          })
-        console.log("--------------",param)
-      }
-    },
     /** 提交按钮 */
     submitDeductForm() {
       this.$refs['deductForm'].validate(valid => {
@@ -1080,20 +837,6 @@ export default {
         }
       })
     },
-    /** 提交按钮 */
-    submitRedDeductForm() {
-      this.$refs['redDeductForm'].validate(valid => {
-        if (valid) {
-          redDeduct(this.redDeductForm).then(response => {
-            if (response.code === 200) {
-              this.msgSuccess(response.msg)
-              this.redDeduct.open = false
-              this.getList()
-            }
-          })
-        }
-      })
-    },
 
     getList() {
       this.loading = true
@@ -1174,17 +917,17 @@ export default {
     /** 新增按钮操作 */
     handleAdd() {
       this.reset()
-      this.getAppList(null)
+      this.getAppList()
       this.open = true
       this.doctorIds = []
       this.title = '添加公司'
     },
     /** 修改按钮操作 */
     handleUpdate(row) {
-      const companyId = row.companyId || this.ids
       this.reset()
-      this.getAppList(companyId)
+      this.getAppList()
       this.doctorIds = []
+      const companyId = row.companyId || this.ids
       getCompany(companyId).then(response => {
         this.form = response.data
         this.form.usedNum = row.usedNum
@@ -1207,11 +950,12 @@ export default {
         }
       })
     },
-    getAppList(companyId) {
+    getAppList() {
       this.maAppList = []
       this.miniAppList = []
       this.customAppList = []
-      listAll().then(response => {
+      const key = 'courseMa.config'
+      listAll(key).then(response => {
         const { code, data } = response
         if (code === 200) {
           if (data) {
@@ -1312,32 +1056,7 @@ export default {
     padNumFormatter(row){
       // console.log(row.maxPadNum.type)
       return row.maxPadNum === -1 ? '不限' : row.maxPadNum
-    },
-    handleMiniProgram() {
-      this.getAppList(null);
-      this.miniProgram.open = true;
-      this.form = {
-        ...this.form,
-        courseMiniAppId:null,
-        miniAppMaster: null,
-        miniAppServer: null
-      };
-    },
-    // 取消按钮
-    cancelMiniProgram() {
-      this.miniProgram.open = false;
-      this.reset()
-    },
-    submitMiniProgramForm(){
-      this.form.ids = this.ids;
-      exitMiniProgram(this.form).then(response => {
-        if (response.code === 200) {
-          this.miniProgram.open = false;
-          this.msgSuccess('修改小程序成功')
-          this.getList()
-        }
-      });
-    },
+    }
   }
 }
 </script>